configure revision 1.1.1.4 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.15.
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.15'
595 PACKAGE_STRING='xf86-video-nouveau 1.0.15'
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 LT_SYS_LIBRARY_PATH
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 LIBTOOL
677 MAN_SUBSTS
678 XORG_MAN_PAGE
679 ADMIN_MAN_DIR
680 DRIVER_MAN_DIR
681 MISC_MAN_DIR
682 FILE_MAN_DIR
683 LIB_MAN_DIR
684 APP_MAN_DIR
685 ADMIN_MAN_SUFFIX
686 DRIVER_MAN_SUFFIX
687 MISC_MAN_SUFFIX
688 FILE_MAN_SUFFIX
689 LIB_MAN_SUFFIX
690 APP_MAN_SUFFIX
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 INSTALL_CMD
701 PKG_CONFIG_LIBDIR
702 PKG_CONFIG_PATH
703 PKG_CONFIG
704 CHANGELOG_CMD
705 STRICT_CFLAGS
706 CWARNFLAGS
707 BASE_CFLAGS
708 EGREP
709 GREP
710 CPP
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 AM_BACKSLASH
729 AM_DEFAULT_VERBOSITY
730 AM_DEFAULT_V
731 AM_V
732 am__untar
733 am__tar
734 AMTAR
735 am__leading_dot
736 SET_MAKE
737 AWK
738 mkdir_p
739 MKDIR_P
740 INSTALL_STRIP_PROGRAM
741 STRIP
742 install_sh
743 MAKEINFO
744 AUTOHEADER
745 AUTOMAKE
746 AUTOCONF
747 ACLOCAL
748 VERSION
749 PACKAGE
750 CYGPATH_W
751 am__isrc
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_silent_rules
797 enable_dependency_tracking
798 enable_selective_werror
799 enable_strict_compilation
800 enable_static
801 enable_shared
802 with_pic
803 enable_fast_install
804 with_aix_soname
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 with_xorg_module_dir
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP
819 PKG_CONFIG
820 PKG_CONFIG_PATH
821 PKG_CONFIG_LIBDIR
822 LT_SYS_LIBRARY_PATH
823 LIBDRM_CFLAGS
824 LIBDRM_LIBS
825 LIBDRM_NOUVEAU_CFLAGS
826 LIBDRM_NOUVEAU_LIBS
827 XORG_CFLAGS
828 XORG_LIBS
829 XEXT_CFLAGS
830 XEXT_LIBS
831 PCIACCESS_CFLAGS
832 PCIACCESS_LIBS
833 LIBUDEV_CFLAGS
834 LIBUDEV_LIBS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures xf86-video-nouveau 1.0.15 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root
1424 [DATAROOTDIR/doc/xf86-video-nouveau]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.15:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --disable-selective-werror
1461 Turn off selective compiler errors. (default:
1462 enabled)
1463 --enable-strict-compilation
1464 Enable all warnings from compiler and make them
1465 errors (default: disabled)
1466 --enable-static[=PKGS] build static libraries [default=no]
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-aix-soname=aix|svr4|both
1478 shared library versioning (aka "SONAME") variant to
1479 provide on AIX, [default=aix].
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-xorg-module-dir=DIR
1484 Default xorg module directory
1485 [[default=$libdir/xorg/modules]]
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CPP C preprocessor
1496 PKG_CONFIG path to pkg-config utility
1497 PKG_CONFIG_PATH
1498 directories to add to pkg-config's search path
1499 PKG_CONFIG_LIBDIR
1500 path overriding pkg-config's built-in search path
1501 LT_SYS_LIBRARY_PATH
1502 User-defined run-time library search path.
1503 LIBDRM_CFLAGS
1504 C compiler flags for LIBDRM, overriding pkg-config
1505 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1506 LIBDRM_NOUVEAU_CFLAGS
1507 C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config
1508 LIBDRM_NOUVEAU_LIBS
1509 linker flags for LIBDRM_NOUVEAU, overriding pkg-config
1510 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1511 XORG_LIBS linker flags for XORG, overriding pkg-config
1512 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1513 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1514 PCIACCESS_CFLAGS
1515 C compiler flags for PCIACCESS, overriding pkg-config
1516 PCIACCESS_LIBS
1517 linker flags for PCIACCESS, overriding pkg-config
1518 LIBUDEV_CFLAGS
1519 C compiler flags for LIBUDEV, overriding pkg-config
1520 LIBUDEV_LIBS
1521 linker flags for LIBUDEV, overriding pkg-config
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 xf86-video-nouveau configure 1.0.15
1590 generated by GNU Autoconf 2.69
1591
1592 Copyright (C) 2012 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596 exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635 fi
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1642 # ---------------------------------------------
1643 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1644 # accordingly.
1645 ac_fn_c_check_decl ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 as_decl_name=`echo $2|sed 's/ *(.*//'`
1649 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1651 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 int
1659 main ()
1660 {
1661 #ifndef $as_decl_name
1662 #ifdef __cplusplus
1663 (void) $as_decl_use;
1664 #else
1665 (void) $as_decl_name;
1666 #endif
1667 #endif
1668
1669 ;
1670 return 0;
1671 }
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 eval "$3=yes"
1675 else
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_decl
1686
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_cpp ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_cpp
1723
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=$ac_status
1759 fi
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_run
1765
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_header_compile
1796
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_link ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_link
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1859
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1864
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1870
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main ()
1889 {
1890 return $2 ();
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_func
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1912
1913 It was created by xf86-video-nouveau $as_me 1.0.15, which was
1914 generated by GNU Autoconf 2.69. Invocation command line was
1915
1916 $ $0 $@
1917
1918 _ACEOF
1919 exec 5>>config.log
1920 {
1921 cat <<_ASUNAME
1922 ## --------- ##
1923 ## Platform. ##
1924 ## --------- ##
1925
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942
1943 _ASUNAME
1944
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 $as_echo "PATH: $as_dir"
1951 done
1952 IFS=$as_save_IFS
1953
1954 } >&5
1955
1956 cat >&5 <<_ACEOF
1957
1958
1959 ## ----------- ##
1960 ## Core tests. ##
1961 ## ----------- ##
1962
1963 _ACEOF
1964
1965
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_configure_args=
1972 ac_configure_args0=
1973 ac_configure_args1=
1974 ac_must_keep_next=false
1975 for ac_pass in 1 2
1976 do
1977 for ac_arg
1978 do
1979 case $ac_arg in
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1983 continue ;;
1984 *\'*)
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 esac
1987 case $ac_pass in
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 2)
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1993 else
1994 case $ac_arg in
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 esac
2002 ;;
2003 -* ) ac_must_keep_next=true ;;
2004 esac
2005 fi
2006 as_fn_append ac_configure_args " '$ac_arg'"
2007 ;;
2008 esac
2009 done
2010 done
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2013
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Save into config.log some information that might help in debugging.
2021 {
2022 echo
2023
2024 $as_echo "## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##"
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
2029 (
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
2045 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2048 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
2052 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;;
2055 esac |
2056 sort
2057 )
2058 echo
2059
2060 $as_echo "## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##"
2063 echo
2064 for ac_var in $ac_subst_vars
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 $as_echo "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073
2074 if test -n "$ac_subst_files"; then
2075 $as_echo "## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##"
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 $as_echo "## ----------- ##
2092 ## confdefs.h. ##
2093 ## ----------- ##"
2094 echo
2095 cat confdefs.h
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2101 } >&5
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 exit $exit_status
2105 ' 0
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108 done
2109 ac_signal=0
2110
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2113
2114 $as_echo "/* confdefs.h */" > confdefs.h
2115
2116 # Predefined preprocessor variables.
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2140 _ACEOF
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 ac_site_file1=NONE
2146 ac_site_file2=NONE
2147 if test -n "$CONFIG_SITE"; then
2148 # We do not want a PATH search for config.site.
2149 case $CONFIG_SITE in #((
2150 -*) ac_site_file1=./$CONFIG_SITE;;
2151 */*) ac_site_file1=$CONFIG_SITE;;
2152 *) ac_site_file1=./$CONFIG_SITE;;
2153 esac
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2160 fi
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 do
2163 test "x$ac_site_file" = xNONE && continue
2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file" \
2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173 fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191 fi
2192
2193 # Check that the precious variables saved in the cache have kept the same
2194 # value.
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2202 set,)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,set)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,);;
2211 *)
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 fi;;
2230 esac
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2233 case $ac_new_val in
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2236 esac
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240 esac
2241 fi
2242 done
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 fi
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2253
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define NV_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
2265 _ACEOF
2266
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define NV_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
2270 _ACEOF
2271
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define NV_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
2275 _ACEOF
2276
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \")
2280 _ACEOF
2281
2282
2283
2284 ac_config_headers="$ac_config_headers config.h"
2285
2286 ac_aux_dir=
2287 for ac_dir in . "$srcdir"/.; do
2288 if test -f "$ac_dir/install-sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install-sh -c"
2291 break
2292 elif test -f "$ac_dir/install.sh"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/install.sh -c"
2295 break
2296 elif test -f "$ac_dir/shtool"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/shtool install -c"
2299 break
2300 fi
2301 done
2302 if test -z "$ac_aux_dir"; then
2303 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2304 fi
2305
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2313
2314
2315
2316 am__api_version='1.15'
2317
2318 # Find a good install program. We prefer a C program (faster),
2319 # so one script is as good as another. But avoid the broken or
2320 # incompatible versions:
2321 # SysV /etc/install, /usr/sbin/install
2322 # SunOS /usr/etc/install
2323 # IRIX /sbin/install
2324 # AIX /bin/install
2325 # AmigaOS /C/install, which installs bootblocks on floppy discs
2326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2329 # OS/2's system install, which has a completely different semantic
2330 # ./install, which can be erroneously created by make from ./install.sh.
2331 # Reject install programs that cannot install multiple files.
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2334 if test -z "$INSTALL"; then
2335 if ${ac_cv_path_install+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 # Account for people who put trailing slashes in PATH elements.
2344 case $as_dir/ in #((
2345 ./ | .// | /[cC]/* | \
2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2348 /usr/ucb/* ) ;;
2349 *)
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2352 # by default.
2353 for ac_prog in ginstall scoinst install; do
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2356 if test $ac_prog = install &&
2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # AIX install. It has an incompatible calling convention.
2359 :
2360 elif test $ac_prog = install &&
2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # program-specific install script used by HP pwplus--don't use.
2363 :
2364 else
2365 rm -rf conftest.one conftest.two conftest.dir
2366 echo one > conftest.one
2367 echo two > conftest.two
2368 mkdir conftest.dir
2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2370 test -s conftest.one && test -s conftest.two &&
2371 test -s conftest.dir/conftest.one &&
2372 test -s conftest.dir/conftest.two
2373 then
2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2375 break 3
2376 fi
2377 fi
2378 fi
2379 done
2380 done
2381 ;;
2382 esac
2383
2384 done
2385 IFS=$as_save_IFS
2386
2387 rm -rf conftest.one conftest.two conftest.dir
2388
2389 fi
2390 if test "${ac_cv_path_install+set}" = set; then
2391 INSTALL=$ac_cv_path_install
2392 else
2393 # As a last resort, use the slow shell script. Don't cache a
2394 # value for INSTALL within a source directory, because that will
2395 # break other packages using the cache if that directory is
2396 # removed, or if the value is a relative name.
2397 INSTALL=$ac_install_sh
2398 fi
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2401 $as_echo "$INSTALL" >&6; }
2402
2403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2404 # It thinks the first close brace ends the variable substitution.
2405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2406
2407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2408
2409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2412 $as_echo_n "checking whether build environment is sane... " >&6; }
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name. Accept space and tab only in the latter.
2415 am_lf='
2416 '
2417 case `pwd` in
2418 *[\\\"\#\$\&\'\`$am_lf]*)
2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 esac
2421 case $srcdir in
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2423 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2424 esac
2425
2426 # Do 'set' in a subshell so we don't clobber the current shell's
2427 # arguments. Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2430 # directory).
2431 if (
2432 am_has_slept=no
2433 for am_try in 1 2; do
2434 echo "timestamp, slept: $am_has_slept" > conftest.file
2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2436 if test "$*" = "X"; then
2437 # -L didn't work.
2438 set X `ls -t "$srcdir/configure" conftest.file`
2439 fi
2440 if test "$*" != "X $srcdir/configure conftest.file" \
2441 && test "$*" != "X conftest.file $srcdir/configure"; then
2442
2443 # If neither matched, then we have a broken ls. This can happen
2444 # if, for instance, CONFIG_SHELL is bash and it inherits a
2445 # broken ls alias from the environment. This has actually
2446 # happened. Such a system could not be considered "sane".
2447 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2448 alias in your environment" "$LINENO" 5
2449 fi
2450 if test "$2" = conftest.file || test $am_try -eq 2; then
2451 break
2452 fi
2453 # Just in case.
2454 sleep 1
2455 am_has_slept=yes
2456 done
2457 test "$2" = conftest.file
2458 )
2459 then
2460 # Ok.
2461 :
2462 else
2463 as_fn_error $? "newly created file is older than distributed files!
2464 Check your system clock" "$LINENO" 5
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2468 # If we didn't sleep, we still need to ensure time stamps of config.status and
2469 # generated files are strictly newer.
2470 am_sleep_pid=
2471 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2472 ( sleep 1 ) &
2473 am_sleep_pid=$!
2474 fi
2475
2476 rm -f conftest.file
2477
2478 test "$program_prefix" != NONE &&
2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480 # Use a double $ so make ignores it.
2481 test "$program_suffix" != NONE &&
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483 # Double any \ or $.
2484 # By default was `s,x,x', remove it if useless.
2485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488 # Expand $ac_aux_dir to an absolute path.
2489 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2490
2491 if test x"${MISSING+set}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495 *)
2496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 esac
2498 fi
2499 # Use eval to expand $SHELL
2500 if eval "$MISSING --is-lightweight"; then
2501 am_missing_run="$MISSING "
2502 else
2503 am_missing_run=
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2505 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2506 fi
2507
2508 if test x"${install_sh+set}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512 *)
2513 install_sh="\${SHELL} $am_aux_dir/install-sh"
2514 esac
2515 fi
2516
2517 # Installed binaries are usually stripped using 'strip' when the user
2518 # run "make install-strip". However 'strip' might not be the right
2519 # tool to use in cross-compilation environments, therefore Automake
2520 # will honor the 'STRIP' environment variable to overrule this program.
2521 if test "$cross_compiling" != no; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}strip; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_STRIP+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$STRIP"; then
2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 STRIP=$ac_cv_prog_STRIP
2551 if test -n "$STRIP"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2553 $as_echo "$STRIP" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$ac_cv_prog_STRIP"; then
2562 ac_ct_STRIP=$STRIP
2563 # Extract the first word of "strip", so it can be a program name with args.
2564 set dummy strip; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$ac_ct_STRIP"; then
2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_ac_ct_STRIP="strip"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591 if test -n "$ac_ct_STRIP"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2593 $as_echo "$ac_ct_STRIP" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599 if test "x$ac_ct_STRIP" = x; then
2600 STRIP=":"
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608 STRIP=$ac_ct_STRIP
2609 fi
2610 else
2611 STRIP="$ac_cv_prog_STRIP"
2612 fi
2613
2614 fi
2615 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2618 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619 if test -z "$MKDIR_P"; then
2620 if ${ac_cv_path_mkdir+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_prog in mkdir gmkdir; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632 'mkdir (GNU coreutils) '* | \
2633 'mkdir (coreutils) '* | \
2634 'mkdir (fileutils) '4.1*)
2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636 break 3;;
2637 esac
2638 done
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644
2645 test -d ./--version && rmdir ./--version
2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
2648 else
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 MKDIR_P="$ac_install_sh -d"
2654 fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2657 $as_echo "$MKDIR_P" >&6; }
2658
2659 for ac_prog in gawk mawk nawk awk
2660 do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_AWK+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$AWK"; then
2669 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_AWK="$ac_prog"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 AWK=$ac_cv_prog_AWK
2689 if test -n "$AWK"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2691 $as_echo "$AWK" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 test -n "$AWK" && break
2699 done
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2703 set x ${MAKE-make}
2704 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2705 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat >conftest.make <<\_ACEOF
2709 SHELL = /bin/sh
2710 all:
2711 @echo '@@@%%%=$(MAKE)=@@@%%%'
2712 _ACEOF
2713 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2715 *@@@%%%=?*=@@@%%%*)
2716 eval ac_cv_prog_make_${ac_make}_set=yes;;
2717 *)
2718 eval ac_cv_prog_make_${ac_make}_set=no;;
2719 esac
2720 rm -f conftest.make
2721 fi
2722 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2725 SET_MAKE=
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 SET_MAKE="MAKE=${MAKE-make}"
2730 fi
2731
2732 rm -rf .tst 2>/dev/null
2733 mkdir .tst 2>/dev/null
2734 if test -d .tst; then
2735 am__leading_dot=.
2736 else
2737 am__leading_dot=_
2738 fi
2739 rmdir .tst 2>/dev/null
2740
2741 # Check whether --enable-silent-rules was given.
2742 if test "${enable_silent_rules+set}" = set; then :
2743 enableval=$enable_silent_rules;
2744 fi
2745
2746 case $enable_silent_rules in # (((
2747 yes) AM_DEFAULT_VERBOSITY=0;;
2748 no) AM_DEFAULT_VERBOSITY=1;;
2749 *) AM_DEFAULT_VERBOSITY=1;;
2750 esac
2751 am_make=${MAKE-make}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2753 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2754 if ${am_cv_make_support_nested_variables+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if $as_echo 'TRUE=$(BAR$(V))
2758 BAR0=false
2759 BAR1=true
2760 V=1
2761 am__doit:
2762 @$(TRUE)
2763 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2764 am_cv_make_support_nested_variables=yes
2765 else
2766 am_cv_make_support_nested_variables=no
2767 fi
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2770 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2771 if test $am_cv_make_support_nested_variables = yes; then
2772 AM_V='$(V)'
2773 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2774 else
2775 AM_V=$AM_DEFAULT_VERBOSITY
2776 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2777 fi
2778 AM_BACKSLASH='\'
2779
2780 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2782 # is not polluted with repeated "-I."
2783 am__isrc=' -I$(srcdir)'
2784 # test to see if srcdir already configured
2785 if test -f $srcdir/config.status; then
2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2787 fi
2788 fi
2789
2790 # test whether we have cygpath
2791 if test -z "$CYGPATH_W"; then
2792 if (cygpath --version) >/dev/null 2>/dev/null; then
2793 CYGPATH_W='cygpath -w'
2794 else
2795 CYGPATH_W=echo
2796 fi
2797 fi
2798
2799
2800 # Define the identity of the package.
2801 PACKAGE='xf86-video-nouveau'
2802 VERSION='1.0.15'
2803
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE "$PACKAGE"
2807 _ACEOF
2808
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define VERSION "$VERSION"
2812 _ACEOF
2813
2814 # Some tools Automake needs.
2815
2816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817
2818
2819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820
2821
2822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823
2824
2825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826
2827
2828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2829
2830 # For better backward compatibility. To be removed once Automake 1.9.x
2831 # dies out for good. For more background, see:
2832 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2833 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2834 mkdir_p='$(MKDIR_P)'
2835
2836 # We need awk for the "check" target (and possibly the TAP driver). The
2837 # system "awk" is bad on some platforms.
2838 # Always define AMTAR for backward compatibility. Yes, it's still used
2839 # in the wild :-( We should find a proper way to deprecate it ...
2840 AMTAR='$${TAR-tar}'
2841
2842
2843 # We'll loop over all known methods to create a tar archive until one works.
2844 _am_tools='gnutar pax cpio none'
2845
2846 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2847
2848
2849
2850
2851
2852
2853 # POSIX will say in a future version that running "rm -f" with no argument
2854 # is OK; and we want to be able to make that assumption in our Makefile
2855 # recipes. So use an aggressive probe to check that the usage we want is
2856 # actually supported "in the wild" to an acceptable degree.
2857 # See automake bug#10828.
2858 # To make any issue more visible, cause the running configure to be aborted
2859 # by default if the 'rm' program in use doesn't match our expectations; the
2860 # user can still override this though.
2861 if rm -f && rm -fr && rm -rf; then : OK; else
2862 cat >&2 <<'END'
2863 Oops!
2864
2865 Your 'rm' program seems unable to run without file operands specified
2866 on the command line, even when the '-f' option is present. This is contrary
2867 to the behaviour of most rm programs out there, and not conforming with
2868 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2869
2870 Please tell bug-automake@gnu.org about your system, including the value
2871 of your $PATH and any error possibly output before this message. This
2872 can help us improve future automake versions.
2873
2874 END
2875 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2876 echo 'Configuration will proceed anyway, since you have set the' >&2
2877 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2878 echo >&2
2879 else
2880 cat >&2 <<'END'
2881 Aborting the configuration process, to ensure you take notice of the issue.
2882
2883 You can download and install GNU coreutils to get an 'rm' implementation
2884 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2885
2886 If you want to complete the configuration process using your problematic
2887 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2888 to "yes", and re-run configure.
2889
2890 END
2891 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2892 fi
2893 fi
2894
2895
2896 # Check whether --enable-silent-rules was given.
2897 if test "${enable_silent_rules+set}" = set; then :
2898 enableval=$enable_silent_rules;
2899 fi
2900
2901 case $enable_silent_rules in # (((
2902 yes) AM_DEFAULT_VERBOSITY=0;;
2903 no) AM_DEFAULT_VERBOSITY=1;;
2904 *) AM_DEFAULT_VERBOSITY=0;;
2905 esac
2906 am_make=${MAKE-make}
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2908 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2909 if ${am_cv_make_support_nested_variables+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if $as_echo 'TRUE=$(BAR$(V))
2913 BAR0=false
2914 BAR1=true
2915 V=1
2916 am__doit:
2917 @$(TRUE)
2918 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2919 am_cv_make_support_nested_variables=yes
2920 else
2921 am_cv_make_support_nested_variables=no
2922 fi
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2925 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2926 if test $am_cv_make_support_nested_variables = yes; then
2927 AM_V='$(V)'
2928 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2929 else
2930 AM_V=$AM_DEFAULT_VERBOSITY
2931 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2932 fi
2933 AM_BACKSLASH='\'
2934
2935
2936 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949 DEPDIR="${am__leading_dot}deps"
2950
2951 ac_config_commands="$ac_config_commands depfiles"
2952
2953
2954 am_make=${MAKE-make}
2955 cat > confinc << 'END'
2956 am__doit:
2957 @echo this is the am__doit target
2958 .PHONY: am__doit
2959 END
2960 # If we don't find an include directive, just comment out the code.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2962 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2963 am__include="#"
2964 am__quote=
2965 _am_result=none
2966 # First try GNU make style include.
2967 echo "include confinc" > confmf
2968 # Ignore all kinds of additional output from 'make'.
2969 case `$am_make -s -f confmf 2> /dev/null` in #(
2970 *the\ am__doit\ target*)
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974 ;;
2975 esac
2976 # Now try BSD make style include.
2977 if test "$am__include" = "#"; then
2978 echo '.include "confinc"' > confmf
2979 case `$am_make -s -f confmf 2> /dev/null` in #(
2980 *the\ am__doit\ target*)
2981 am__include=.include
2982 am__quote="\""
2983 _am_result=BSD
2984 ;;
2985 esac
2986 fi
2987
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2990 $as_echo "$_am_result" >&6; }
2991 rm -f confinc confmf
2992
2993 # Check whether --enable-dependency-tracking was given.
2994 if test "${enable_dependency_tracking+set}" = set; then :
2995 enableval=$enable_dependency_tracking;
2996 fi
2997
2998 if test "x$enable_dependency_tracking" != xno; then
2999 am_depcomp="$ac_aux_dir/depcomp"
3000 AMDEPBACKSLASH='\'
3001 am__nodep='_no'
3002 fi
3003 if test "x$enable_dependency_tracking" != xno; then
3004 AMDEP_TRUE=
3005 AMDEP_FALSE='#'
3006 else
3007 AMDEP_TRUE='#'
3008 AMDEP_FALSE=
3009 fi
3010
3011
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059 set dummy gcc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_CC="gcc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned=yes ;;
3102 esac
3103 CC=$ac_ct_CC
3104 fi
3105 else
3106 CC="$ac_cv_prog_CC"
3107 fi
3108
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3112 set dummy ${ac_tool_prefix}cc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_CC="${ac_tool_prefix}cc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 fi
3149 fi
3150 if test -z "$CC"; then
3151 # Extract the first word of "cc", so it can be a program name with args.
3152 set dummy cc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 ac_prog_rejected=no
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3170 ac_prog_rejected=yes
3171 continue
3172 fi
3173 ac_cv_prog_CC="cc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 if test $ac_prog_rejected = yes; then
3182 # We found a bogon in the path, so make sure we never use it.
3183 set dummy $ac_cv_prog_CC
3184 shift
3185 if test $# != 0; then
3186 # We chose a different compiler from the bogus one.
3187 # However, it has the same basename, so the bogon will be chosen
3188 # first if we set CC to just the basename; use the full file name.
3189 shift
3190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3191 fi
3192 fi
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if test -z "$CC"; then
3207 if test -n "$ac_tool_prefix"; then
3208 for ac_prog in cl.exe
3209 do
3210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 CC=$ac_cv_prog_CC
3238 if test -n "$CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246
3247 test -n "$CC" && break
3248 done
3249 fi
3250 if test -z "$CC"; then
3251 ac_ct_CC=$CC
3252 for ac_prog in cl.exe
3253 do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282 if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284 $as_echo "$ac_ct_CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$ac_ct_CC" && break
3292 done
3293
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301 ac_tool_warned=yes ;;
3302 esac
3303 CC=$ac_ct_CC
3304 fi
3305 fi
3306
3307 fi
3308
3309
3310 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error $? "no acceptable C compiler found in \$PATH
3313 See \`config.log' for more details" "$LINENO" 5; }
3314
3315 # Provide some information about the compiler.
3316 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3317 set X $ac_compile
3318 ac_compiler=$2
3319 for ac_option in --version -v -V -qversion; do
3320 { { ac_try="$ac_compiler $ac_option >&5"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3328 ac_status=$?
3329 if test -s conftest.err; then
3330 sed '10a\
3331 ... rest of stderr output deleted ...
3332 10q' conftest.err >conftest.er1
3333 cat conftest.er1 >&5
3334 fi
3335 rm -f conftest.er1 conftest.err
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338 done
3339
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 ac_clean_files_save=$ac_clean_files
3352 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3353 # Try to create an executable without -o first, disregard a.out.
3354 # It will help us diagnose broken compilers, and finding out an intuition
3355 # of exeext.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3357 $as_echo_n "checking whether the C compiler works... " >&6; }
3358 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359
3360 # The possible output files:
3361 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362
3363 ac_rmfiles=
3364 for ac_file in $ac_files
3365 do
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3368 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3369 esac
3370 done
3371 rm -f $ac_rmfiles
3372
3373 if { { ac_try="$ac_link_default"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link_default") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3386 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3387 # so that the user can short-circuit this test for compilers unknown to
3388 # Autoconf.
3389 for ac_file in $ac_files ''
3390 do
3391 test -f "$ac_file" || continue
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 ;;
3395 [ab].out )
3396 # We found the default executable, but exeext='' is most
3397 # certainly right.
3398 break;;
3399 *.* )
3400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3401 then :; else
3402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 fi
3404 # We set ac_cv_exeext here because the later test for it is not
3405 # safe: cross compilers may not add the suffix if given an `-o'
3406 # argument, so we may need to know it at that point already.
3407 # Even if this section looks crufty: it has the advantage of
3408 # actually working.
3409 break;;
3410 * )
3411 break;;
3412 esac
3413 done
3414 test "$ac_cv_exeext" = no && ac_cv_exeext=
3415
3416 else
3417 ac_file=''
3418 fi
3419 if test -z "$ac_file"; then :
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 $as_echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error 77 "C compiler cannot create executables
3428 See \`config.log' for more details" "$LINENO" 5; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3434 $as_echo_n "checking for C compiler default output file name... " >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3436 $as_echo "$ac_file" >&6; }
3437 ac_exeext=$ac_cv_exeext
3438
3439 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3440 ac_clean_files=$ac_clean_files_save
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 $as_echo_n "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3456 # work properly (i.e., refer to `conftest.exe'), while it won't with
3457 # `rm'.
3458 for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466 done
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3471 See \`config.log' for more details" "$LINENO" 5; }
3472 fi
3473 rm -f conftest conftest$ac_cv_exeext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475 $as_echo "$ac_cv_exeext" >&6; }
3476
3477 rm -f conftest.$ac_ext
3478 EXEEXT=$ac_cv_exeext
3479 ac_exeext=$EXEEXT
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 #include <stdio.h>
3483 int
3484 main ()
3485 {
3486 FILE *f = fopen ("conftest.out", "w");
3487 return ferror (f) || fclose (f) != 0;
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 ac_clean_files="$ac_clean_files conftest.out"
3494 # Check that the compiler produces executables we can run. If not, either
3495 # the compiler is broken, or we cross compile.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3497 $as_echo_n "checking whether we are cross compiling... " >&6; }
3498 if test "$cross_compiling" != yes; then
3499 { { ac_try="$ac_link"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3510 if { ac_try='./conftest$ac_cv_exeext'
3511 { { case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_try") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; }; then
3521 cross_compiling=no
3522 else
3523 if test "$cross_compiling" = maybe; then
3524 cross_compiling=yes
3525 else
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "cannot run C compiled programs.
3529 If you meant to cross compile, use \`--host'.
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 fi
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3536
3537 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3538 ac_clean_files=$ac_clean_files_save
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3540 $as_echo_n "checking for suffix of object files... " >&6; }
3541 if ${ac_cv_objext+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.o conftest.obj
3556 if { { ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_compile") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3567 for ac_file in conftest.o conftest.obj conftest.*; do
3568 test -f "$ac_file" || continue;
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3572 break;;
3573 esac
3574 done
3575 else
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot compute suffix of object files: cannot compile
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 fi
3584 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3587 $as_echo "$ac_cv_objext" >&6; }
3588 OBJEXT=$ac_cv_objext
3589 ac_objext=$OBJEXT
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3591 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3592 if ${ac_cv_c_compiler_gnu+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597
3598 int
3599 main ()
3600 {
3601 #ifndef __GNUC__
3602 choke me
3603 #endif
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_compiler_gnu=yes
3611 else
3612 ac_compiler_gnu=no
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3619 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3620 if test $ac_compiler_gnu = yes; then
3621 GCC=yes
3622 else
3623 GCC=
3624 fi
3625 ac_test_CFLAGS=${CFLAGS+set}
3626 ac_save_CFLAGS=$CFLAGS
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3628 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3629 if ${ac_cv_prog_cc_g+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 ac_save_c_werror_flag=$ac_c_werror_flag
3633 ac_c_werror_flag=yes
3634 ac_cv_prog_cc_g=no
3635 CFLAGS="-g"
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638
3639 int
3640 main ()
3641 {
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_g=yes
3649 else
3650 CFLAGS=""
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653
3654 int
3655 main ()
3656 {
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663
3664 else
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3666 CFLAGS="-g"
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main ()
3672 {
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_cv_prog_cc_g=yes
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 ac_c_werror_flag=$ac_save_c_werror_flag
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3689 $as_echo "$ac_cv_prog_cc_g" >&6; }
3690 if test "$ac_test_CFLAGS" = set; then
3691 CFLAGS=$ac_save_CFLAGS
3692 elif test $ac_cv_prog_cc_g = yes; then
3693 if test "$GCC" = yes; then
3694 CFLAGS="-g -O2"
3695 else
3696 CFLAGS="-g"
3697 fi
3698 else
3699 if test "$GCC" = yes; then
3700 CFLAGS="-O2"
3701 else
3702 CFLAGS=
3703 fi
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3706 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3707 if ${ac_cv_prog_cc_c89+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 ac_cv_prog_cc_c89=no
3711 ac_save_CC=$CC
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714 #include <stdarg.h>
3715 #include <stdio.h>
3716 struct stat;
3717 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3718 struct buf { int x; };
3719 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3720 static char *e (p, i)
3721 char **p;
3722 int i;
3723 {
3724 return p[i];
3725 }
3726 static char *f (char * (*g) (char **, int), char **p, ...)
3727 {
3728 char *s;
3729 va_list v;
3730 va_start (v,p);
3731 s = g (p, va_arg (v,int));
3732 va_end (v);
3733 return s;
3734 }
3735
3736 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3737 function prototypes and stuff, but not '\xHH' hex character constants.
3738 These don't provoke an error unfortunately, instead are silently treated
3739 as 'x'. The following induces an error, until -std is added to get
3740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3741 array size at least. It's necessary to write '\x00'==0 to get something
3742 that's true only with -std. */
3743 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3744
3745 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3746 inside strings and character constants. */
3747 #define FOO(x) 'x'
3748 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3749
3750 int test (int i, double x);
3751 struct s1 {int (*f) (int a);};
3752 struct s2 {int (*f) (double a);};
3753 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3754 int argc;
3755 char **argv;
3756 int
3757 main ()
3758 {
3759 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766 do
3767 CC="$ac_save_CC $ac_arg"
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_c89=$ac_arg
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext
3772 test "x$ac_cv_prog_cc_c89" != "xno" && break
3773 done
3774 rm -f conftest.$ac_ext
3775 CC=$ac_save_CC
3776
3777 fi
3778 # AC_CACHE_VAL
3779 case "x$ac_cv_prog_cc_c89" in
3780 x)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3782 $as_echo "none needed" >&6; } ;;
3783 xno)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3785 $as_echo "unsupported" >&6; } ;;
3786 *)
3787 CC="$CC $ac_cv_prog_cc_c89"
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3789 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3790 esac
3791 if test "x$ac_cv_prog_cc_c89" != xno; then :
3792
3793 fi
3794
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801 ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3807 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3808 if ${am_cv_prog_cc_c_o+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 # Make sure it works both with $CC and with simple cc.
3823 # Following AC_PROG_CC_C_O, we do the test twice because some
3824 # compilers refuse to overwrite an existing .o file with -o,
3825 # though they will create one.
3826 am_cv_prog_cc_c_o=yes
3827 for am_i in 1 2; do
3828 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3829 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } \
3833 && test -f conftest2.$ac_objext; then
3834 : OK
3835 else
3836 am_cv_prog_cc_c_o=no
3837 break
3838 fi
3839 done
3840 rm -f core conftest*
3841 unset am_i
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3844 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3845 if test "$am_cv_prog_cc_c_o" != yes; then
3846 # Losing compiler, so override with the script.
3847 # FIXME: It is wrong to rewrite CC.
3848 # But if we don't then we get into trouble of one sort or another.
3849 # A longer-term fix would be to have automake use am__CC in this case,
3850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3851 CC="$am_aux_dir/compile $CC"
3852 fi
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859
3860 depcc="$CC" am_compiler_list=
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3863 $as_echo_n "checking dependency style of $depcc... " >&6; }
3864 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3868 # We make a subdir and do the tests there. Otherwise we can end up
3869 # making bogus files that we don't know about and never remove. For
3870 # instance it was reported that on HP-UX the gcc test will end up
3871 # making a dummy file named 'D' -- because '-MD' means "put the output
3872 # in D".
3873 rm -rf conftest.dir
3874 mkdir conftest.dir
3875 # Copy depcomp to subdir because otherwise we won't find it if we're
3876 # using a relative directory.
3877 cp "$am_depcomp" conftest.dir
3878 cd conftest.dir
3879 # We will build objects and dependencies in a subdirectory because
3880 # it helps to detect inapplicable dependency modes. For instance
3881 # both Tru64's cc and ICC support -MD to output dependencies as a
3882 # side effect of compilation, but ICC will put the dependencies in
3883 # the current directory while Tru64 will put them in the object
3884 # directory.
3885 mkdir sub
3886
3887 am_cv_CC_dependencies_compiler_type=none
3888 if test "$am_compiler_list" = ""; then
3889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890 fi
3891 am__universal=false
3892 case " $depcc " in #(
3893 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894 esac
3895
3896 for depmode in $am_compiler_list; do
3897 # Setup a source with many dependencies, because some compilers
3898 # like to wrap large dependency lists on column 80 (with \), and
3899 # we should not choose a depcomp mode which is confused by this.
3900 #
3901 # We need to recreate these files for each test, as the compiler may
3902 # overwrite some of them when testing with obscure command lines.
3903 # This happens at least with the AIX C compiler.
3904 : > sub/conftest.c
3905 for i in 1 2 3 4 5 6; do
3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3908 # Solaris 10 /bin/sh.
3909 echo '/* dummy */' > sub/conftst$i.h
3910 done
3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912
3913 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3914 # mode. It turns out that the SunPro C++ compiler does not properly
3915 # handle '-M -o', and we need to detect this. Also, some Intel
3916 # versions had trouble with output in subdirs.
3917 am__obj=sub/conftest.${OBJEXT-o}
3918 am__minus_obj="-o $am__obj"
3919 case $depmode in
3920 gcc)
3921 # This depmode causes a compiler race in universal mode.
3922 test "$am__universal" = false || continue
3923 ;;
3924 nosideeffect)
3925 # After this tag, mechanisms are not by side-effect, so they'll
3926 # only be used when explicitly requested.
3927 if test "x$enable_dependency_tracking" = xyes; then
3928 continue
3929 else
3930 break
3931 fi
3932 ;;
3933 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3934 # This compiler won't grok '-c -o', but also, the minuso test has
3935 # not run yet. These depmodes are late enough in the game, and
3936 # so weak that their functioning should not be impacted.
3937 am__obj=conftest.${OBJEXT-o}
3938 am__minus_obj=
3939 ;;
3940 none) break ;;
3941 esac
3942 if depmode=$depmode \
3943 source=sub/conftest.c object=$am__obj \
3944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946 >/dev/null 2>conftest.err &&
3947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951 # icc doesn't choke on unknown options, it will just issue warnings
3952 # or remarks (even with -Werror). So we grep stderr for any message
3953 # that says an option was ignored or not supported.
3954 # When given -MP, icc 7.0 and 7.1 complain thusly:
3955 # icc: Command line warning: ignoring option '-M'; no argument required
3956 # The diagnosis changed in icc 8.0:
3957 # icc: Command line remark: option '-MP' not supported
3958 if (grep 'ignoring option' conftest.err ||
3959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960 am_cv_CC_dependencies_compiler_type=$depmode
3961 break
3962 fi
3963 fi
3964 done
3965
3966 cd ..
3967 rm -rf conftest.dir
3968 else
3969 am_cv_CC_dependencies_compiler_type=none
3970 fi
3971
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976
3977 if
3978 test "x$enable_dependency_tracking" != xno \
3979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3980 am__fastdepCC_TRUE=
3981 am__fastdepCC_FALSE='#'
3982 else
3983 am__fastdepCC_TRUE='#'
3984 am__fastdepCC_FALSE=
3985 fi
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3989 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3990 if ${ac_cv_prog_cc_c99+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 ac_cv_prog_cc_c99=no
3994 ac_save_CC=$CC
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <stdarg.h>
3998 #include <stdbool.h>
3999 #include <stdlib.h>
4000 #include <wchar.h>
4001 #include <stdio.h>
4002
4003 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4004 #define debug(...) fprintf (stderr, __VA_ARGS__)
4005 #define showlist(...) puts (#__VA_ARGS__)
4006 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4007 static void
4008 test_varargs_macros (void)
4009 {
4010 int x = 1234;
4011 int y = 5678;
4012 debug ("Flag");
4013 debug ("X = %d\n", x);
4014 showlist (The first, second, and third items.);
4015 report (x>y, "x is %d but y is %d", x, y);
4016 }
4017
4018 // Check long long types.
4019 #define BIG64 18446744073709551615ull
4020 #define BIG32 4294967295ul
4021 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4022 #if !BIG_OK
4023 your preprocessor is broken;
4024 #endif
4025 #if BIG_OK
4026 #else
4027 your preprocessor is broken;
4028 #endif
4029 static long long int bignum = -9223372036854775807LL;
4030 static unsigned long long int ubignum = BIG64;
4031
4032 struct incomplete_array
4033 {
4034 int datasize;
4035 double data[];
4036 };
4037
4038 struct named_init {
4039 int number;
4040 const wchar_t *name;
4041 double average;
4042 };
4043
4044 typedef const char *ccp;
4045
4046 static inline int
4047 test_restrict (ccp restrict text)
4048 {
4049 // See if C++-style comments work.
4050 // Iterate through items via the restricted pointer.
4051 // Also check for declarations in for loops.
4052 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4053 continue;
4054 return 0;
4055 }
4056
4057 // Check varargs and va_copy.
4058 static void
4059 test_varargs (const char *format, ...)
4060 {
4061 va_list args;
4062 va_start (args, format);
4063 va_list args_copy;
4064 va_copy (args_copy, args);
4065
4066 const char *str;
4067 int number;
4068 float fnumber;
4069
4070 while (*format)
4071 {
4072 switch (*format++)
4073 {
4074 case 's': // string
4075 str = va_arg (args_copy, const char *);
4076 break;
4077 case 'd': // int
4078 number = va_arg (args_copy, int);
4079 break;
4080 case 'f': // float
4081 fnumber = va_arg (args_copy, double);
4082 break;
4083 default:
4084 break;
4085 }
4086 }
4087 va_end (args_copy);
4088 va_end (args);
4089 }
4090
4091 int
4092 main ()
4093 {
4094
4095 // Check bool.
4096 _Bool success = false;
4097
4098 // Check restrict.
4099 if (test_restrict ("String literal") == 0)
4100 success = true;
4101 char *restrict newvar = "Another string";
4102
4103 // Check varargs.
4104 test_varargs ("s, d' f .", "string", 65, 34.234);
4105 test_varargs_macros ();
4106
4107 // Check flexible array members.
4108 struct incomplete_array *ia =
4109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4110 ia->datasize = 10;
4111 for (int i = 0; i < ia->datasize; ++i)
4112 ia->data[i] = i * 1.234;
4113
4114 // Check named initializers.
4115 struct named_init ni = {
4116 .number = 34,
4117 .name = L"Test wide string",
4118 .average = 543.34343,
4119 };
4120
4121 ni.number = 58;
4122
4123 int dynamic_array[ni.number];
4124 dynamic_array[ni.number - 1] = 543;
4125
4126 // work around unused variable warnings
4127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4128 || dynamic_array[ni.number - 1] != 543);
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4135 do
4136 CC="$ac_save_CC $ac_arg"
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_c99=$ac_arg
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext
4141 test "x$ac_cv_prog_cc_c99" != "xno" && break
4142 done
4143 rm -f conftest.$ac_ext
4144 CC=$ac_save_CC
4145
4146 fi
4147 # AC_CACHE_VAL
4148 case "x$ac_cv_prog_cc_c99" in
4149 x)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4151 $as_echo "none needed" >&6; } ;;
4152 xno)
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4154 $as_echo "unsupported" >&6; } ;;
4155 *)
4156 CC="$CC $ac_cv_prog_cc_c99"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4158 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4159 esac
4160 if test "x$ac_cv_prog_cc_c99" != xno; then :
4161
4162 fi
4163
4164
4165
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4172 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4173 # On Suns, sometimes $CPP names a directory.
4174 if test -n "$CPP" && test -d "$CPP"; then
4175 CPP=
4176 fi
4177 if test -z "$CPP"; then
4178 if ${ac_cv_prog_CPP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 # Double quotes because CPP needs to be expanded
4182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4183 do
4184 ac_preproc_ok=false
4185 for ac_c_preproc_warn_flag in '' yes
4186 do
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #ifdef __STDC__
4196 # include <limits.h>
4197 #else
4198 # include <assert.h>
4199 #endif
4200 Syntax error
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203
4204 else
4205 # Broken: fails on valid input.
4206 continue
4207 fi
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <ac_nonexistent.h>
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4217 # Broken: success on invalid input.
4218 continue
4219 else
4220 # Passes both tests.
4221 ac_preproc_ok=:
4222 break
4223 fi
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4225
4226 done
4227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228 rm -f conftest.i conftest.err conftest.$ac_ext
4229 if $ac_preproc_ok; then :
4230 break
4231 fi
4232
4233 done
4234 ac_cv_prog_CPP=$CPP
4235
4236 fi
4237 CPP=$ac_cv_prog_CPP
4238 else
4239 ac_cv_prog_CPP=$CPP
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4242 $as_echo "$CPP" >&6; }
4243 ac_preproc_ok=false
4244 for ac_c_preproc_warn_flag in '' yes
4245 do
4246 # Use a header file that comes with gcc, so configuring glibc
4247 # with a fresh cross-compiler works.
4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249 # <limits.h> exists even on freestanding compilers.
4250 # On the NeXT, cc -E runs the code through the compiler's parser,
4251 # not just through cpp. "Syntax error" is here to catch this case.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #ifdef __STDC__
4255 # include <limits.h>
4256 #else
4257 # include <assert.h>
4258 #endif
4259 Syntax error
4260 _ACEOF
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262
4263 else
4264 # Broken: fails on valid input.
4265 continue
4266 fi
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ac_nonexistent.h>
4274 _ACEOF
4275 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: success on invalid input.
4277 continue
4278 else
4279 # Passes both tests.
4280 ac_preproc_ok=:
4281 break
4282 fi
4283 rm -f conftest.err conftest.i conftest.$ac_ext
4284
4285 done
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.i conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then :
4289
4290 else
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details" "$LINENO" 5; }
4295 fi
4296
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4305 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4306 if ${ac_cv_path_GREP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -z "$GREP"; then
4310 ac_path_GREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in grep ggrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320 as_fn_executable_p "$ac_path_GREP" || continue
4321 # Check for GNU ac_path_GREP and select it if it is found.
4322 # Check for GNU $ac_path_GREP
4323 case `"$ac_path_GREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326 *)
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4330 do
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'GREP' >> "conftest.nl"
4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_GREP="$ac_path_GREP"
4341 ac_path_GREP_max=$ac_count
4342 fi
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349 $ac_path_GREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_GREP"; then
4355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356 fi
4357 else
4358 ac_cv_path_GREP=$GREP
4359 fi
4360
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4363 $as_echo "$ac_cv_path_GREP" >&6; }
4364 GREP="$ac_cv_path_GREP"
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4368 $as_echo_n "checking for egrep... " >&6; }
4369 if ${ac_cv_path_EGREP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4373 then ac_cv_path_EGREP="$GREP -E"
4374 else
4375 if test -z "$EGREP"; then
4376 ac_path_EGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in egrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 as_fn_executable_p "$ac_path_EGREP" || continue
4387 # Check for GNU ac_path_EGREP and select it if it is found.
4388 # Check for GNU $ac_path_EGREP
4389 case `"$ac_path_EGREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4392 *)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'EGREP' >> "conftest.nl"
4401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_EGREP="$ac_path_EGREP"
4407 ac_path_EGREP_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415 $ac_path_EGREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_EGREP"; then
4421 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422 fi
4423 else
4424 ac_cv_path_EGREP=$EGREP
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4430 $as_echo "$ac_cv_path_EGREP" >&6; }
4431 EGREP="$ac_cv_path_EGREP"
4432
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4435 $as_echo_n "checking for ANSI C header files... " >&6; }
4436 if ${ac_cv_header_stdc+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <stdlib.h>
4442 #include <stdarg.h>
4443 #include <string.h>
4444 #include <float.h>
4445
4446 int
4447 main ()
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_cv_header_stdc=yes
4456 else
4457 ac_cv_header_stdc=no
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460
4461 if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <string.h>
4466
4467 _ACEOF
4468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4469 $EGREP "memchr" >/dev/null 2>&1; then :
4470
4471 else
4472 ac_cv_header_stdc=no
4473 fi
4474 rm -f conftest*
4475
4476 fi
4477
4478 if test $ac_cv_header_stdc = yes; then
4479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <stdlib.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "free" >/dev/null 2>&1; then :
4487
4488 else
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f conftest*
4492
4493 fi
4494
4495 if test $ac_cv_header_stdc = yes; then
4496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4497 if test "$cross_compiling" = yes; then :
4498 :
4499 else
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <ctype.h>
4503 #include <stdlib.h>
4504 #if ((' ' & 0x0FF) == 0x020)
4505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4507 #else
4508 # define ISLOWER(c) \
4509 (('a' <= (c) && (c) <= 'i') \
4510 || ('j' <= (c) && (c) <= 'r') \
4511 || ('s' <= (c) && (c) <= 'z'))
4512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4513 #endif
4514
4515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 int
4517 main ()
4518 {
4519 int i;
4520 for (i = 0; i < 256; i++)
4521 if (XOR (islower (i), ISLOWER (i))
4522 || toupper (i) != TOUPPER (i))
4523 return 2;
4524 return 0;
4525 }
4526 _ACEOF
4527 if ac_fn_c_try_run "$LINENO"; then :
4528
4529 else
4530 ac_cv_header_stdc=no
4531 fi
4532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4533 conftest.$ac_objext conftest.beam conftest.$ac_ext
4534 fi
4535
4536 fi
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4539 $as_echo "$ac_cv_header_stdc" >&6; }
4540 if test $ac_cv_header_stdc = yes; then
4541
4542 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4543
4544 fi
4545
4546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4548 inttypes.h stdint.h unistd.h
4549 do :
4550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4551 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4552 "
4553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4554 cat >>confdefs.h <<_ACEOF
4555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 _ACEOF
4557
4558 fi
4559
4560 done
4561
4562
4563
4564
4565
4566
4567 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4568 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4569 CLANGCC="yes"
4570 else
4571 CLANGCC="no"
4572 fi
4573
4574 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4575 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4576 INTELCC="yes"
4577 else
4578 INTELCC="no"
4579 fi
4580
4581 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4582 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4583 SUNCC="yes"
4584 else
4585 SUNCC="no"
4586 fi
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4597 if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 case $PKG_CONFIG in
4606 [\\/]* | ?:[\\/]*)
4607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4608 ;;
4609 *)
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 ;;
4626 esac
4627 fi
4628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4629 if test -n "$PKG_CONFIG"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4631 $as_echo "$PKG_CONFIG" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638 fi
4639 if test -z "$ac_cv_path_PKG_CONFIG"; then
4640 ac_pt_PKG_CONFIG=$PKG_CONFIG
4641 # Extract the first word of "pkg-config", so it can be a program name with args.
4642 set dummy pkg-config; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 case $ac_pt_PKG_CONFIG in
4649 [\\/]* | ?:[\\/]*)
4650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4651 ;;
4652 *)
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 ;;
4669 esac
4670 fi
4671 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4672 if test -n "$ac_pt_PKG_CONFIG"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4674 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680 if test "x$ac_pt_PKG_CONFIG" = x; then
4681 PKG_CONFIG=""
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 PKG_CONFIG=$ac_pt_PKG_CONFIG
4690 fi
4691 else
4692 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4693 fi
4694
4695 fi
4696 if test -n "$PKG_CONFIG"; then
4697 _pkg_min_version=0.9.0
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4699 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4700 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4702 $as_echo "yes" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 PKG_CONFIG=""
4707 fi
4708 fi
4709 # Make sure we can run config.sub.
4710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4714 $as_echo_n "checking build system type... " >&6; }
4715 if ${ac_cv_build+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_build_alias=$build_alias
4719 test "x$ac_build_alias" = x &&
4720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4721 test "x$ac_build_alias" = x &&
4722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4723 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4725
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4728 $as_echo "$ac_cv_build" >&6; }
4729 case $ac_cv_build in
4730 *-*-*) ;;
4731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4732 esac
4733 build=$ac_cv_build
4734 ac_save_IFS=$IFS; IFS='-'
4735 set x $ac_cv_build
4736 shift
4737 build_cpu=$1
4738 build_vendor=$2
4739 shift; shift
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4742 build_os=$*
4743 IFS=$ac_save_IFS
4744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4748 $as_echo_n "checking host system type... " >&6; }
4749 if ${ac_cv_host+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test "x$host_alias" = x; then
4753 ac_cv_host=$ac_cv_build
4754 else
4755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4757 fi
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4761 $as_echo "$ac_cv_host" >&6; }
4762 case $ac_cv_host in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4765 esac
4766 host=$ac_cv_host
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_host
4769 shift
4770 host_cpu=$1
4771 host_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 host_os=$*
4776 IFS=$ac_save_IFS
4777 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4781 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4782 if ${ac_cv_path_SED+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4786 for ac_i in 1 2 3 4 5 6 7; do
4787 ac_script="$ac_script$as_nl$ac_script"
4788 done
4789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4790 { ac_script=; unset ac_script;}
4791 if test -z "$SED"; then
4792 ac_path_SED_found=false
4793 # Loop through the user's path and test for each of PROGNAME-LIST
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_prog in sed gsed; do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4802 as_fn_executable_p "$ac_path_SED" || continue
4803 # Check for GNU ac_path_SED and select it if it is found.
4804 # Check for GNU $ac_path_SED
4805 case `"$ac_path_SED" --version 2>&1` in
4806 *GNU*)
4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4808 *)
4809 ac_count=0
4810 $as_echo_n 0123456789 >"conftest.in"
4811 while :
4812 do
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 $as_echo '' >> "conftest.nl"
4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819 as_fn_arith $ac_count + 1 && ac_count=$as_val
4820 if test $ac_count -gt ${ac_path_SED_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_SED="$ac_path_SED"
4823 ac_path_SED_max=$ac_count
4824 fi
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4827 done
4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829 esac
4830
4831 $ac_path_SED_found && break 3
4832 done
4833 done
4834 done
4835 IFS=$as_save_IFS
4836 if test -z "$ac_cv_path_SED"; then
4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4838 fi
4839 else
4840 ac_cv_path_SED=$SED
4841 fi
4842
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4845 $as_echo "$ac_cv_path_SED" >&6; }
4846 SED="$ac_cv_path_SED"
4847 rm -f conftest.sed
4848
4849
4850
4851
4852
4853
4854 # Check whether --enable-selective-werror was given.
4855 if test "${enable_selective_werror+set}" = set; then :
4856 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4857 else
4858 SELECTIVE_WERROR=yes
4859 fi
4860
4861
4862
4863
4864
4865 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4866 if test "x$SUNCC" = "xyes"; then
4867 BASE_CFLAGS="-v"
4868 else
4869 BASE_CFLAGS=""
4870 fi
4871
4872 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 xorg_testset_save_CFLAGS="$CFLAGS"
4887
4888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4891 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4892 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 int i;
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 xorg_cv_cc_flag_unknown_warning_option=yes
4901 else
4902 xorg_cv_cc_flag_unknown_warning_option=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4907 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4909 CFLAGS="$xorg_testset_save_CFLAGS"
4910 fi
4911
4912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4915 fi
4916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4918 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4919 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 int i;
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 xorg_cv_cc_flag_unused_command_line_argument=yes
4928 else
4929 xorg_cv_cc_flag_unused_command_line_argument=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4934 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4937 fi
4938
4939 found="no"
4940
4941 if test $found = "no" ; then
4942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4944 fi
4945
4946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948 fi
4949
4950 CFLAGS="$CFLAGS -Wall"
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4953 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4954 cacheid=xorg_cv_cc_flag__Wall
4955 if eval \${$cacheid+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 int i;
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 if ac_fn_c_try_link "$LINENO"; then :
4970 eval $cacheid=yes
4971 else
4972 eval $cacheid=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext \
4975 conftest$ac_exeext conftest.$ac_ext
4976 fi
4977
4978
4979 CFLAGS="$xorg_testset_save_CFLAGS"
4980
4981 eval supported=\$$cacheid
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4983 $as_echo "$supported" >&6; }
4984 if test "$supported" = "yes" ; then
4985 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4986 found="yes"
4987 fi
4988 fi
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 xorg_testset_save_CFLAGS="$CFLAGS"
5005
5006 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5009 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5010 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 int i;
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 xorg_cv_cc_flag_unknown_warning_option=yes
5019 else
5020 xorg_cv_cc_flag_unknown_warning_option=no
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5025 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5027 CFLAGS="$xorg_testset_save_CFLAGS"
5028 fi
5029
5030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5033 fi
5034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5036 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5037 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 xorg_cv_cc_flag_unused_command_line_argument=yes
5046 else
5047 xorg_cv_cc_flag_unused_command_line_argument=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5052 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5055 fi
5056
5057 found="no"
5058
5059 if test $found = "no" ; then
5060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5062 fi
5063
5064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066 fi
5067
5068 CFLAGS="$CFLAGS -Wpointer-arith"
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5071 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5072 cacheid=xorg_cv_cc_flag__Wpointer_arith
5073 if eval \${$cacheid+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 int i;
5079 int
5080 main ()
5081 {
5082
5083 ;
5084 return 0;
5085 }
5086 _ACEOF
5087 if ac_fn_c_try_link "$LINENO"; then :
5088 eval $cacheid=yes
5089 else
5090 eval $cacheid=no
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094 fi
5095
5096
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5098
5099 eval supported=\$$cacheid
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5101 $as_echo "$supported" >&6; }
5102 if test "$supported" = "yes" ; then
5103 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5104 found="yes"
5105 fi
5106 fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 xorg_testset_save_CFLAGS="$CFLAGS"
5123
5124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5127 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5128 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5133 int i;
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 xorg_cv_cc_flag_unknown_warning_option=yes
5137 else
5138 xorg_cv_cc_flag_unknown_warning_option=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5143 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5145 CFLAGS="$xorg_testset_save_CFLAGS"
5146 fi
5147
5148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151 fi
5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5154 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5155 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 xorg_cv_cc_flag_unused_command_line_argument=yes
5164 else
5165 xorg_cv_cc_flag_unused_command_line_argument=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 found="no"
5176
5177 if test $found = "no" ; then
5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180 fi
5181
5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 fi
5185
5186 CFLAGS="$CFLAGS -Wmissing-declarations"
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5189 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5190 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5191 if eval \${$cacheid+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 int i;
5197 int
5198 main ()
5199 {
5200
5201 ;
5202 return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_link "$LINENO"; then :
5206 eval $cacheid=yes
5207 else
5208 eval $cacheid=no
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 fi
5213
5214
5215 CFLAGS="$xorg_testset_save_CFLAGS"
5216
5217 eval supported=\$$cacheid
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219 $as_echo "$supported" >&6; }
5220 if test "$supported" = "yes" ; then
5221 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5222 found="yes"
5223 fi
5224 fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 xorg_testset_save_CFLAGS="$CFLAGS"
5241
5242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5245 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5246 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 int i;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 xorg_cv_cc_flag_unknown_warning_option=yes
5255 else
5256 xorg_cv_cc_flag_unknown_warning_option=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5261 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5263 CFLAGS="$xorg_testset_save_CFLAGS"
5264 fi
5265
5266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269 fi
5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5273 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 int i;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 xorg_cv_cc_flag_unused_command_line_argument=yes
5282 else
5283 xorg_cv_cc_flag_unused_command_line_argument=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5288 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291 fi
5292
5293 found="no"
5294
5295 if test $found = "no" ; then
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 fi
5299
5300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302 fi
5303
5304 CFLAGS="$CFLAGS -Wformat=2"
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5307 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5308 cacheid=xorg_cv_cc_flag__Wformat_2
5309 if eval \${$cacheid+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 int i;
5315 int
5316 main ()
5317 {
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_link "$LINENO"; then :
5324 eval $cacheid=yes
5325 else
5326 eval $cacheid=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext \
5329 conftest$ac_exeext conftest.$ac_ext
5330 fi
5331
5332
5333 CFLAGS="$xorg_testset_save_CFLAGS"
5334
5335 eval supported=\$$cacheid
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5337 $as_echo "$supported" >&6; }
5338 if test "$supported" = "yes" ; then
5339 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5340 found="yes"
5341 fi
5342 fi
5343
5344 if test $found = "no" ; then
5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5347 fi
5348
5349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5351 fi
5352
5353 CFLAGS="$CFLAGS -Wformat"
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5356 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5357 cacheid=xorg_cv_cc_flag__Wformat
5358 if eval \${$cacheid+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 int i;
5364 int
5365 main ()
5366 {
5367
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_link "$LINENO"; then :
5373 eval $cacheid=yes
5374 else
5375 eval $cacheid=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext \
5378 conftest$ac_exeext conftest.$ac_ext
5379 fi
5380
5381
5382 CFLAGS="$xorg_testset_save_CFLAGS"
5383
5384 eval supported=\$$cacheid
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5386 $as_echo "$supported" >&6; }
5387 if test "$supported" = "yes" ; then
5388 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5389 found="yes"
5390 fi
5391 fi
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 xorg_testset_save_CFLAGS="$CFLAGS"
5410
5411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 int i;
5421 _ACEOF
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423 xorg_cv_cc_flag_unknown_warning_option=yes
5424 else
5425 xorg_cv_cc_flag_unknown_warning_option=no
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5432 CFLAGS="$xorg_testset_save_CFLAGS"
5433 fi
5434
5435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438 fi
5439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 int i;
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 xorg_cv_cc_flag_unused_command_line_argument=yes
5451 else
5452 xorg_cv_cc_flag_unused_command_line_argument=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460 fi
5461
5462 found="no"
5463
5464 if test $found = "no" ; then
5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5467 fi
5468
5469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5471 fi
5472
5473 CFLAGS="$CFLAGS -Wstrict-prototypes"
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5476 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5477 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5478 if eval \${$cacheid+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 int i;
5484 int
5485 main ()
5486 {
5487
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_link "$LINENO"; then :
5493 eval $cacheid=yes
5494 else
5495 eval $cacheid=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext \
5498 conftest$ac_exeext conftest.$ac_ext
5499 fi
5500
5501
5502 CFLAGS="$xorg_testset_save_CFLAGS"
5503
5504 eval supported=\$$cacheid
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5506 $as_echo "$supported" >&6; }
5507 if test "$supported" = "yes" ; then
5508 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5509 found="yes"
5510 fi
5511 fi
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 xorg_testset_save_CFLAGS="$CFLAGS"
5528
5529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 int i;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 xorg_cv_cc_flag_unknown_warning_option=yes
5542 else
5543 xorg_cv_cc_flag_unknown_warning_option=no
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5550 CFLAGS="$xorg_testset_save_CFLAGS"
5551 fi
5552
5553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5556 fi
5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 xorg_cv_cc_flag_unused_command_line_argument=yes
5569 else
5570 xorg_cv_cc_flag_unused_command_line_argument=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5578 fi
5579
5580 found="no"
5581
5582 if test $found = "no" ; then
5583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585 fi
5586
5587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589 fi
5590
5591 CFLAGS="$CFLAGS -Wmissing-prototypes"
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5594 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5595 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5596 if eval \${$cacheid+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 int i;
5602 int
5603 main ()
5604 {
5605
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_link "$LINENO"; then :
5611 eval $cacheid=yes
5612 else
5613 eval $cacheid=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617 fi
5618
5619
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621
5622 eval supported=\$$cacheid
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5624 $as_echo "$supported" >&6; }
5625 if test "$supported" = "yes" ; then
5626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5627 found="yes"
5628 fi
5629 fi
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 int i;
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 xorg_cv_cc_flag_unknown_warning_option=yes
5660 else
5661 xorg_cv_cc_flag_unknown_warning_option=no
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 fi
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5669 fi
5670
5671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674 fi
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 int i;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 xorg_cv_cc_flag_unused_command_line_argument=yes
5687 else
5688 xorg_cv_cc_flag_unused_command_line_argument=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696 fi
5697
5698 found="no"
5699
5700 if test $found = "no" ; then
5701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703 fi
5704
5705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707 fi
5708
5709 CFLAGS="$CFLAGS -Wnested-externs"
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5712 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5713 cacheid=xorg_cv_cc_flag__Wnested_externs
5714 if eval \${$cacheid+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 int
5721 main ()
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_link "$LINENO"; then :
5729 eval $cacheid=yes
5730 else
5731 eval $cacheid=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
5735 fi
5736
5737
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740 eval supported=\$$cacheid
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742 $as_echo "$supported" >&6; }
5743 if test "$supported" = "yes" ; then
5744 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5745 found="yes"
5746 fi
5747 fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 int i;
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 xorg_cv_cc_flag_unknown_warning_option=yes
5778 else
5779 xorg_cv_cc_flag_unknown_warning_option=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5786 CFLAGS="$xorg_testset_save_CFLAGS"
5787 fi
5788
5789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 fi
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 xorg_cv_cc_flag_unused_command_line_argument=yes
5805 else
5806 xorg_cv_cc_flag_unused_command_line_argument=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814 fi
5815
5816 found="no"
5817
5818 if test $found = "no" ; then
5819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821 fi
5822
5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825 fi
5826
5827 CFLAGS="$CFLAGS -Wbad-function-cast"
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5830 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5831 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5832 if eval \${$cacheid+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 int i;
5838 int
5839 main ()
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_link "$LINENO"; then :
5847 eval $cacheid=yes
5848 else
5849 eval $cacheid=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext conftest.$ac_ext
5853 fi
5854
5855
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858 eval supported=\$$cacheid
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860 $as_echo "$supported" >&6; }
5861 if test "$supported" = "yes" ; then
5862 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5863 found="yes"
5864 fi
5865 fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 int i;
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895 xorg_cv_cc_flag_unknown_warning_option=yes
5896 else
5897 xorg_cv_cc_flag_unknown_warning_option=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904 CFLAGS="$xorg_testset_save_CFLAGS"
5905 fi
5906
5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910 fi
5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 _ACEOF
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922 xorg_cv_cc_flag_unused_command_line_argument=yes
5923 else
5924 xorg_cv_cc_flag_unused_command_line_argument=no
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932 fi
5933
5934 found="no"
5935
5936 if test $found = "no" ; then
5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939 fi
5940
5941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943 fi
5944
5945 CFLAGS="$CFLAGS -Wold-style-definition"
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5948 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5949 cacheid=xorg_cv_cc_flag__Wold_style_definition
5950 if eval \${$cacheid+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 int i;
5956 int
5957 main ()
5958 {
5959
5960 ;
5961 return 0;
5962 }
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 eval $cacheid=yes
5966 else
5967 eval $cacheid=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 fi
5972
5973
5974 CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976 eval supported=\$$cacheid
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978 $as_echo "$supported" >&6; }
5979 if test "$supported" = "yes" ; then
5980 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5981 found="yes"
5982 fi
5983 fi
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -fd"
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5997 $as_echo_n "checking if $CC supports -fd... " >&6; }
5998 cacheid=xorg_cv_cc_flag__fd
5999 if eval \${$cacheid+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 int i;
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 eval $cacheid=yes
6015 else
6016 eval $cacheid=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 fi
6021
6022
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024
6025 eval supported=\$$cacheid
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6027 $as_echo "$supported" >&6; }
6028 if test "$supported" = "yes" ; then
6029 BASE_CFLAGS="$BASE_CFLAGS -fd"
6030 found="yes"
6031 fi
6032 fi
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 xorg_testset_save_CFLAGS="$CFLAGS"
6049
6050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 xorg_cv_cc_flag_unknown_warning_option=yes
6063 else
6064 xorg_cv_cc_flag_unknown_warning_option=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6072 fi
6073
6074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077 fi
6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 int i;
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then :
6089 xorg_cv_cc_flag_unused_command_line_argument=yes
6090 else
6091 xorg_cv_cc_flag_unused_command_line_argument=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6098 CFLAGS="$xorg_testset_save_CFLAGS"
6099 fi
6100
6101 found="no"
6102
6103 if test $found = "no" ; then
6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106 fi
6107
6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110 fi
6111
6112 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6115 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6116 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6117 if eval \${$cacheid+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 int i;
6123 int
6124 main ()
6125 {
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"; then :
6132 eval $cacheid=yes
6133 else
6134 eval $cacheid=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138 fi
6139
6140
6141 CFLAGS="$xorg_testset_save_CFLAGS"
6142
6143 eval supported=\$$cacheid
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6145 $as_echo "$supported" >&6; }
6146 if test "$supported" = "yes" ; then
6147 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6148 found="yes"
6149 fi
6150 fi
6151
6152
6153
6154
6155
6156 # This chunk adds additional warnings that could catch undesired effects.
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 xorg_testset_save_CFLAGS="$CFLAGS"
6171
6172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6175 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6176 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 int i;
6182 _ACEOF
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 xorg_cv_cc_flag_unknown_warning_option=yes
6185 else
6186 xorg_cv_cc_flag_unknown_warning_option=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6191 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6193 CFLAGS="$xorg_testset_save_CFLAGS"
6194 fi
6195
6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199 fi
6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6203 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 xorg_cv_cc_flag_unused_command_line_argument=yes
6212 else
6213 xorg_cv_cc_flag_unused_command_line_argument=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6218 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221 fi
6222
6223 found="no"
6224
6225 if test $found = "no" ; then
6226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228 fi
6229
6230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232 fi
6233
6234 CFLAGS="$CFLAGS -Wunused"
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6237 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6238 cacheid=xorg_cv_cc_flag__Wunused
6239 if eval \${$cacheid+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 int i;
6245 int
6246 main ()
6247 {
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 if ac_fn_c_try_link "$LINENO"; then :
6254 eval $cacheid=yes
6255 else
6256 eval $cacheid=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6260 fi
6261
6262
6263 CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265 eval supported=\$$cacheid
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267 $as_echo "$supported" >&6; }
6268 if test "$supported" = "yes" ; then
6269 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6270 found="yes"
6271 fi
6272 fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 int i;
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 xorg_cv_cc_flag_unknown_warning_option=yes
6303 else
6304 xorg_cv_cc_flag_unknown_warning_option=no
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6311 CFLAGS="$xorg_testset_save_CFLAGS"
6312 fi
6313
6314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317 fi
6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 int i;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 xorg_cv_cc_flag_unused_command_line_argument=yes
6330 else
6331 xorg_cv_cc_flag_unused_command_line_argument=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6338 CFLAGS="$xorg_testset_save_CFLAGS"
6339 fi
6340
6341 found="no"
6342
6343 if test $found = "no" ; then
6344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 fi
6347
6348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350 fi
6351
6352 CFLAGS="$CFLAGS -Wuninitialized"
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6355 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6356 cacheid=xorg_cv_cc_flag__Wuninitialized
6357 if eval \${$cacheid+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 int i;
6363 int
6364 main ()
6365 {
6366
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 eval $cacheid=yes
6373 else
6374 eval $cacheid=no
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378 fi
6379
6380
6381 CFLAGS="$xorg_testset_save_CFLAGS"
6382
6383 eval supported=\$$cacheid
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385 $as_echo "$supported" >&6; }
6386 if test "$supported" = "yes" ; then
6387 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6388 found="yes"
6389 fi
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 xorg_testset_save_CFLAGS="$CFLAGS"
6407
6408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6411 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6412 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 int i;
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420 xorg_cv_cc_flag_unknown_warning_option=yes
6421 else
6422 xorg_cv_cc_flag_unknown_warning_option=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6427 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6429 CFLAGS="$xorg_testset_save_CFLAGS"
6430 fi
6431
6432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 fi
6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6438 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6439 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 xorg_cv_cc_flag_unused_command_line_argument=yes
6448 else
6449 xorg_cv_cc_flag_unused_command_line_argument=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6454 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457 fi
6458
6459 found="no"
6460
6461 if test $found = "no" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465
6466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468 fi
6469
6470 CFLAGS="$CFLAGS -Wshadow"
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6473 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6474 cacheid=xorg_cv_cc_flag__Wshadow
6475 if eval \${$cacheid+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 int i;
6481 int
6482 main ()
6483 {
6484
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 if ac_fn_c_try_link "$LINENO"; then :
6490 eval $cacheid=yes
6491 else
6492 eval $cacheid=no
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext \
6495 conftest$ac_exeext conftest.$ac_ext
6496 fi
6497
6498
6499 CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501 eval supported=\$$cacheid
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503 $as_echo "$supported" >&6; }
6504 if test "$supported" = "yes" ; then
6505 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6506 found="yes"
6507 fi
6508 fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 xorg_testset_save_CFLAGS="$CFLAGS"
6525
6526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6529 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6530 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 int i;
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 xorg_cv_cc_flag_unknown_warning_option=yes
6539 else
6540 xorg_cv_cc_flag_unknown_warning_option=no
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6545 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6547 CFLAGS="$xorg_testset_save_CFLAGS"
6548 fi
6549
6550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553 fi
6554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6556 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6557 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 int i;
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565 xorg_cv_cc_flag_unused_command_line_argument=yes
6566 else
6567 xorg_cv_cc_flag_unused_command_line_argument=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575 fi
6576
6577 found="no"
6578
6579 if test $found = "no" ; then
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 fi
6583
6584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586 fi
6587
6588 CFLAGS="$CFLAGS -Wmissing-noreturn"
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6591 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6592 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6593 if eval \${$cacheid+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 int i;
6599 int
6600 main ()
6601 {
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_link "$LINENO"; then :
6608 eval $cacheid=yes
6609 else
6610 eval $cacheid=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6614 fi
6615
6616
6617 CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619 eval supported=\$$cacheid
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621 $as_echo "$supported" >&6; }
6622 if test "$supported" = "yes" ; then
6623 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6624 found="yes"
6625 fi
6626 fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 int i;
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 xorg_cv_cc_flag_unknown_warning_option=yes
6657 else
6658 xorg_cv_cc_flag_unknown_warning_option=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6666 fi
6667
6668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 fi
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 xorg_cv_cc_flag_unused_command_line_argument=yes
6684 else
6685 xorg_cv_cc_flag_unused_command_line_argument=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693 fi
6694
6695 found="no"
6696
6697 if test $found = "no" ; then
6698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700 fi
6701
6702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704 fi
6705
6706 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6709 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6710 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6711 if eval \${$cacheid+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 int i;
6717 int
6718 main ()
6719 {
6720
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 if ac_fn_c_try_link "$LINENO"; then :
6726 eval $cacheid=yes
6727 else
6728 eval $cacheid=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6732 fi
6733
6734
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736
6737 eval supported=\$$cacheid
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739 $as_echo "$supported" >&6; }
6740 if test "$supported" = "yes" ; then
6741 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6742 found="yes"
6743 fi
6744 fi
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760 xorg_testset_save_CFLAGS="$CFLAGS"
6761
6762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6765 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6766 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 int i;
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774 xorg_cv_cc_flag_unknown_warning_option=yes
6775 else
6776 xorg_cv_cc_flag_unknown_warning_option=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6781 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6783 CFLAGS="$xorg_testset_save_CFLAGS"
6784 fi
6785
6786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6789 fi
6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6793 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 xorg_cv_cc_flag_unused_command_line_argument=yes
6802 else
6803 xorg_cv_cc_flag_unused_command_line_argument=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6808 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6810 CFLAGS="$xorg_testset_save_CFLAGS"
6811 fi
6812
6813 found="no"
6814
6815 if test $found = "no" ; then
6816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818 fi
6819
6820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822 fi
6823
6824 CFLAGS="$CFLAGS -Wredundant-decls"
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6827 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6828 cacheid=xorg_cv_cc_flag__Wredundant_decls
6829 if eval \${$cacheid+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int i;
6835 int
6836 main ()
6837 {
6838
6839 ;
6840 return 0;
6841 }
6842 _ACEOF
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 eval $cacheid=yes
6845 else
6846 eval $cacheid=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6850 fi
6851
6852
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854
6855 eval supported=\$$cacheid
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6857 $as_echo "$supported" >&6; }
6858 if test "$supported" = "yes" ; then
6859 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6860 found="yes"
6861 fi
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 xorg_testset_save_CFLAGS="$CFLAGS"
6879
6880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 int i;
6890 _ACEOF
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 xorg_cv_cc_flag_unknown_warning_option=yes
6893 else
6894 xorg_cv_cc_flag_unknown_warning_option=no
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6901 CFLAGS="$xorg_testset_save_CFLAGS"
6902 fi
6903
6904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 fi
6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 int i;
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 xorg_cv_cc_flag_unused_command_line_argument=yes
6920 else
6921 xorg_cv_cc_flag_unused_command_line_argument=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6928 CFLAGS="$xorg_testset_save_CFLAGS"
6929 fi
6930
6931 found="no"
6932
6933 if test $found = "no" ; then
6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936 fi
6937
6938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6940 fi
6941
6942 CFLAGS="$CFLAGS -Wlogical-op"
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6945 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6946 cacheid=xorg_cv_cc_flag__Wlogical_op
6947 if eval \${$cacheid+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 int i;
6953 int
6954 main ()
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 if ac_fn_c_try_link "$LINENO"; then :
6962 eval $cacheid=yes
6963 else
6964 eval $cacheid=no
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 fi
6969
6970
6971 CFLAGS="$xorg_testset_save_CFLAGS"
6972
6973 eval supported=\$$cacheid
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6975 $as_echo "$supported" >&6; }
6976 if test "$supported" = "yes" ; then
6977 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6978 found="yes"
6979 fi
6980 fi
6981
6982
6983
6984 # These are currently disabled because they are noisy. They will be enabled
6985 # in the future once the codebase is sufficiently modernized to silence
6986 # them. For now, I don't want them to drown out the other warnings.
6987 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6988 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6989 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6990
6991 # Turn some warnings into errors, so we don't accidently get successful builds
6992 # when there are problems that should be fixed.
6993
6994 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 xorg_testset_save_CFLAGS="$CFLAGS"
7009
7010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 int i;
7020 _ACEOF
7021 if ac_fn_c_try_compile "$LINENO"; then :
7022 xorg_cv_cc_flag_unknown_warning_option=yes
7023 else
7024 xorg_cv_cc_flag_unknown_warning_option=no
7025 fi
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7031 CFLAGS="$xorg_testset_save_CFLAGS"
7032 fi
7033
7034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037 fi
7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 int i;
7047 _ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 xorg_cv_cc_flag_unused_command_line_argument=yes
7050 else
7051 xorg_cv_cc_flag_unused_command_line_argument=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7058 CFLAGS="$xorg_testset_save_CFLAGS"
7059 fi
7060
7061 found="no"
7062
7063 if test $found = "no" ; then
7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066 fi
7067
7068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7070 fi
7071
7072 CFLAGS="$CFLAGS -Werror=implicit"
7073
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7075 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7076 cacheid=xorg_cv_cc_flag__Werror_implicit
7077 if eval \${$cacheid+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 int i;
7083 int
7084 main ()
7085 {
7086
7087 ;
7088 return 0;
7089 }
7090 _ACEOF
7091 if ac_fn_c_try_link "$LINENO"; then :
7092 eval $cacheid=yes
7093 else
7094 eval $cacheid=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7098 fi
7099
7100
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102
7103 eval supported=\$$cacheid
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7105 $as_echo "$supported" >&6; }
7106 if test "$supported" = "yes" ; then
7107 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7108 found="yes"
7109 fi
7110 fi
7111
7112 if test $found = "no" ; then
7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115 fi
7116
7117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119 fi
7120
7121 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7122
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7124 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7125 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7126 if eval \${$cacheid+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 int i;
7132 int
7133 main ()
7134 {
7135
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141 eval $cacheid=yes
7142 else
7143 eval $cacheid=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 fi
7148
7149
7150 CFLAGS="$xorg_testset_save_CFLAGS"
7151
7152 eval supported=\$$cacheid
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7154 $as_echo "$supported" >&6; }
7155 if test "$supported" = "yes" ; then
7156 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7157 found="yes"
7158 fi
7159 fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175 xorg_testset_save_CFLAGS="$CFLAGS"
7176
7177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 int i;
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 xorg_cv_cc_flag_unknown_warning_option=yes
7190 else
7191 xorg_cv_cc_flag_unknown_warning_option=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7198 CFLAGS="$xorg_testset_save_CFLAGS"
7199 fi
7200
7201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 fi
7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 int i;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 xorg_cv_cc_flag_unused_command_line_argument=yes
7217 else
7218 xorg_cv_cc_flag_unused_command_line_argument=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226 fi
7227
7228 found="no"
7229
7230 if test $found = "no" ; then
7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233 fi
7234
7235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237 fi
7238
7239 CFLAGS="$CFLAGS -Werror=nonnull"
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7242 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7243 cacheid=xorg_cv_cc_flag__Werror_nonnull
7244 if eval \${$cacheid+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 int i;
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 eval $cacheid=yes
7260 else
7261 eval $cacheid=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 fi
7266
7267
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270 eval supported=\$$cacheid
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272 $as_echo "$supported" >&6; }
7273 if test "$supported" = "yes" ; then
7274 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7275 found="yes"
7276 fi
7277 fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 xorg_testset_save_CFLAGS="$CFLAGS"
7294
7295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 int i;
7305 _ACEOF
7306 if ac_fn_c_try_compile "$LINENO"; then :
7307 xorg_cv_cc_flag_unknown_warning_option=yes
7308 else
7309 xorg_cv_cc_flag_unknown_warning_option=no
7310 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7316 CFLAGS="$xorg_testset_save_CFLAGS"
7317 fi
7318
7319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 fi
7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 xorg_cv_cc_flag_unused_command_line_argument=yes
7335 else
7336 xorg_cv_cc_flag_unused_command_line_argument=no
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344 fi
7345
7346 found="no"
7347
7348 if test $found = "no" ; then
7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351 fi
7352
7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355 fi
7356
7357 CFLAGS="$CFLAGS -Werror=init-self"
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7360 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7361 cacheid=xorg_cv_cc_flag__Werror_init_self
7362 if eval \${$cacheid+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 int i;
7368 int
7369 main ()
7370 {
7371
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 eval $cacheid=yes
7378 else
7379 eval $cacheid=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 fi
7384
7385
7386 CFLAGS="$xorg_testset_save_CFLAGS"
7387
7388 eval supported=\$$cacheid
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390 $as_echo "$supported" >&6; }
7391 if test "$supported" = "yes" ; then
7392 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7393 found="yes"
7394 fi
7395 fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 xorg_testset_save_CFLAGS="$CFLAGS"
7412
7413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 int i;
7423 _ACEOF
7424 if ac_fn_c_try_compile "$LINENO"; then :
7425 xorg_cv_cc_flag_unknown_warning_option=yes
7426 else
7427 xorg_cv_cc_flag_unknown_warning_option=no
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434 CFLAGS="$xorg_testset_save_CFLAGS"
7435 fi
7436
7437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440 fi
7441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 xorg_cv_cc_flag_unused_command_line_argument=yes
7453 else
7454 xorg_cv_cc_flag_unused_command_line_argument=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7462 fi
7463
7464 found="no"
7465
7466 if test $found = "no" ; then
7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7469 fi
7470
7471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473 fi
7474
7475 CFLAGS="$CFLAGS -Werror=main"
7476
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7478 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7479 cacheid=xorg_cv_cc_flag__Werror_main
7480 if eval \${$cacheid+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485 int i;
7486 int
7487 main ()
7488 {
7489
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495 eval $cacheid=yes
7496 else
7497 eval $cacheid=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 fi
7502
7503
7504 CFLAGS="$xorg_testset_save_CFLAGS"
7505
7506 eval supported=\$$cacheid
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7508 $as_echo "$supported" >&6; }
7509 if test "$supported" = "yes" ; then
7510 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7511 found="yes"
7512 fi
7513 fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 xorg_testset_save_CFLAGS="$CFLAGS"
7530
7531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 xorg_cv_cc_flag_unknown_warning_option=yes
7544 else
7545 xorg_cv_cc_flag_unknown_warning_option=no
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 fi
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7552 CFLAGS="$xorg_testset_save_CFLAGS"
7553 fi
7554
7555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558 fi
7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 int i;
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 xorg_cv_cc_flag_unused_command_line_argument=yes
7571 else
7572 xorg_cv_cc_flag_unused_command_line_argument=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 found="no"
7583
7584 if test $found = "no" ; then
7585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587 fi
7588
7589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591 fi
7592
7593 CFLAGS="$CFLAGS -Werror=missing-braces"
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7596 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7597 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7598 if eval \${$cacheid+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 int i;
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 eval $cacheid=yes
7614 else
7615 eval $cacheid=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 fi
7620
7621
7622 CFLAGS="$xorg_testset_save_CFLAGS"
7623
7624 eval supported=\$$cacheid
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7626 $as_echo "$supported" >&6; }
7627 if test "$supported" = "yes" ; then
7628 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7629 found="yes"
7630 fi
7631 fi
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 xorg_testset_save_CFLAGS="$CFLAGS"
7648
7649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 int i;
7659 _ACEOF
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 xorg_cv_cc_flag_unknown_warning_option=yes
7662 else
7663 xorg_cv_cc_flag_unknown_warning_option=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 fi
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 int i;
7686 _ACEOF
7687 if ac_fn_c_try_compile "$LINENO"; then :
7688 xorg_cv_cc_flag_unused_command_line_argument=yes
7689 else
7690 xorg_cv_cc_flag_unused_command_line_argument=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698 fi
7699
7700 found="no"
7701
7702 if test $found = "no" ; then
7703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705 fi
7706
7707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7709 fi
7710
7711 CFLAGS="$CFLAGS -Werror=sequence-point"
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7714 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7715 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7716 if eval \${$cacheid+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 int
7723 main ()
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"; then :
7731 eval $cacheid=yes
7732 else
7733 eval $cacheid=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
7737 fi
7738
7739
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741
7742 eval supported=\$$cacheid
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7744 $as_echo "$supported" >&6; }
7745 if test "$supported" = "yes" ; then
7746 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7747 found="yes"
7748 fi
7749 fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 xorg_testset_save_CFLAGS="$CFLAGS"
7766
7767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 _ACEOF
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 xorg_cv_cc_flag_unknown_warning_option=yes
7780 else
7781 xorg_cv_cc_flag_unknown_warning_option=no
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 fi
7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 int i;
7804 _ACEOF
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806 xorg_cv_cc_flag_unused_command_line_argument=yes
7807 else
7808 xorg_cv_cc_flag_unused_command_line_argument=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7816 fi
7817
7818 found="no"
7819
7820 if test $found = "no" ; then
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 fi
7824
7825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827 fi
7828
7829 CFLAGS="$CFLAGS -Werror=return-type"
7830
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7832 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7833 cacheid=xorg_cv_cc_flag__Werror_return_type
7834 if eval \${$cacheid+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 int i;
7840 int
7841 main ()
7842 {
7843
7844 ;
7845 return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 eval $cacheid=yes
7850 else
7851 eval $cacheid=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 fi
7856
7857
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859
7860 eval supported=\$$cacheid
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7862 $as_echo "$supported" >&6; }
7863 if test "$supported" = "yes" ; then
7864 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7865 found="yes"
7866 fi
7867 fi
7868
7869 if test $found = "no" ; then
7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872 fi
7873
7874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876 fi
7877
7878 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7881 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7882 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7883 if eval \${$cacheid+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 int i;
7889 int
7890 main ()
7891 {
7892
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"; then :
7898 eval $cacheid=yes
7899 else
7900 eval $cacheid=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 fi
7905
7906
7907 CFLAGS="$xorg_testset_save_CFLAGS"
7908
7909 eval supported=\$$cacheid
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7911 $as_echo "$supported" >&6; }
7912 if test "$supported" = "yes" ; then
7913 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7914 found="yes"
7915 fi
7916 fi
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932 xorg_testset_save_CFLAGS="$CFLAGS"
7933
7934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 int i;
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 xorg_cv_cc_flag_unknown_warning_option=yes
7947 else
7948 xorg_cv_cc_flag_unknown_warning_option=no
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7955 CFLAGS="$xorg_testset_save_CFLAGS"
7956 fi
7957
7958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 fi
7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int i;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 xorg_cv_cc_flag_unused_command_line_argument=yes
7974 else
7975 xorg_cv_cc_flag_unused_command_line_argument=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983 fi
7984
7985 found="no"
7986
7987 if test $found = "no" ; then
7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990 fi
7991
7992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994 fi
7995
7996 CFLAGS="$CFLAGS -Werror=trigraphs"
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7999 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8000 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8001 if eval \${$cacheid+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 int i;
8007 int
8008 main ()
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_link "$LINENO"; then :
8016 eval $cacheid=yes
8017 else
8018 eval $cacheid=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 fi
8023
8024
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027 eval supported=\$$cacheid
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029 $as_echo "$supported" >&6; }
8030 if test "$supported" = "yes" ; then
8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8032 found="yes"
8033 fi
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 xorg_testset_save_CFLAGS="$CFLAGS"
8051
8052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 int i;
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064 xorg_cv_cc_flag_unknown_warning_option=yes
8065 else
8066 xorg_cv_cc_flag_unknown_warning_option=no
8067 fi
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8073 CFLAGS="$xorg_testset_save_CFLAGS"
8074 fi
8075
8076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079 fi
8080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 int i;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 xorg_cv_cc_flag_unused_command_line_argument=yes
8092 else
8093 xorg_cv_cc_flag_unused_command_line_argument=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101 fi
8102
8103 found="no"
8104
8105 if test $found = "no" ; then
8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108 fi
8109
8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112 fi
8113
8114 CFLAGS="$CFLAGS -Werror=array-bounds"
8115
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8117 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8118 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8119 if eval \${$cacheid+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int i;
8125 int
8126 main ()
8127 {
8128
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"; then :
8134 eval $cacheid=yes
8135 else
8136 eval $cacheid=no
8137 fi
8138 rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8140 fi
8141
8142
8143 CFLAGS="$xorg_testset_save_CFLAGS"
8144
8145 eval supported=\$$cacheid
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8147 $as_echo "$supported" >&6; }
8148 if test "$supported" = "yes" ; then
8149 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8150 found="yes"
8151 fi
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 xorg_testset_save_CFLAGS="$CFLAGS"
8169
8170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 int i;
8180 _ACEOF
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182 xorg_cv_cc_flag_unknown_warning_option=yes
8183 else
8184 xorg_cv_cc_flag_unknown_warning_option=no
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 fi
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8191 CFLAGS="$xorg_testset_save_CFLAGS"
8192 fi
8193
8194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197 fi
8198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int i;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 xorg_cv_cc_flag_unused_command_line_argument=yes
8210 else
8211 xorg_cv_cc_flag_unused_command_line_argument=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219 fi
8220
8221 found="no"
8222
8223 if test $found = "no" ; then
8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226 fi
8227
8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230 fi
8231
8232 CFLAGS="$CFLAGS -Werror=write-strings"
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8235 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8236 cacheid=xorg_cv_cc_flag__Werror_write_strings
8237 if eval \${$cacheid+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int i;
8243 int
8244 main ()
8245 {
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 eval $cacheid=yes
8253 else
8254 eval $cacheid=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 fi
8259
8260
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263 eval supported=\$$cacheid
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265 $as_echo "$supported" >&6; }
8266 if test "$supported" = "yes" ; then
8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8268 found="yes"
8269 fi
8270 fi
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 xorg_testset_save_CFLAGS="$CFLAGS"
8287
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 int i;
8298 _ACEOF
8299 if ac_fn_c_try_compile "$LINENO"; then :
8300 xorg_cv_cc_flag_unknown_warning_option=yes
8301 else
8302 xorg_cv_cc_flag_unknown_warning_option=no
8303 fi
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8309 CFLAGS="$xorg_testset_save_CFLAGS"
8310 fi
8311
8312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315 fi
8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 int i;
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 xorg_cv_cc_flag_unused_command_line_argument=yes
8328 else
8329 xorg_cv_cc_flag_unused_command_line_argument=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8337 fi
8338
8339 found="no"
8340
8341 if test $found = "no" ; then
8342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344 fi
8345
8346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348 fi
8349
8350 CFLAGS="$CFLAGS -Werror=address"
8351
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8353 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8354 cacheid=xorg_cv_cc_flag__Werror_address
8355 if eval \${$cacheid+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 int i;
8361 int
8362 main ()
8363 {
8364
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370 eval $cacheid=yes
8371 else
8372 eval $cacheid=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 fi
8377
8378
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381 eval supported=\$$cacheid
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383 $as_echo "$supported" >&6; }
8384 if test "$supported" = "yes" ; then
8385 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8386 found="yes"
8387 fi
8388 fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8415 int i;
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418 xorg_cv_cc_flag_unknown_warning_option=yes
8419 else
8420 xorg_cv_cc_flag_unknown_warning_option=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427 CFLAGS="$xorg_testset_save_CFLAGS"
8428 fi
8429
8430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433 fi
8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 int i;
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"; then :
8445 xorg_cv_cc_flag_unused_command_line_argument=yes
8446 else
8447 xorg_cv_cc_flag_unused_command_line_argument=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8455 fi
8456
8457 found="no"
8458
8459 if test $found = "no" ; then
8460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462 fi
8463
8464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466 fi
8467
8468 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8469
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8471 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8472 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8473 if eval \${$cacheid+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 int i;
8479 int
8480 main ()
8481 {
8482
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_link "$LINENO"; then :
8488 eval $cacheid=yes
8489 else
8490 eval $cacheid=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 fi
8495
8496
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499 eval supported=\$$cacheid
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501 $as_echo "$supported" >&6; }
8502 if test "$supported" = "yes" ; then
8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8504 found="yes"
8505 fi
8506 fi
8507
8508 if test $found = "no" ; then
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 fi
8512
8513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515 fi
8516
8517 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8518
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8520 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8521 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8522 if eval \${$cacheid+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 int i;
8528 int
8529 main ()
8530 {
8531
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 eval $cacheid=yes
8538 else
8539 eval $cacheid=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 fi
8544
8545
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547
8548 eval supported=\$$cacheid
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8550 $as_echo "$supported" >&6; }
8551 if test "$supported" = "yes" ; then
8552 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8553 found="yes"
8554 fi
8555 fi
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571 xorg_testset_save_CFLAGS="$CFLAGS"
8572
8573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 int i;
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"; then :
8585 xorg_cv_cc_flag_unknown_warning_option=yes
8586 else
8587 xorg_cv_cc_flag_unknown_warning_option=no
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8594 CFLAGS="$xorg_testset_save_CFLAGS"
8595 fi
8596
8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600 fi
8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 int i;
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612 xorg_cv_cc_flag_unused_command_line_argument=yes
8613 else
8614 xorg_cv_cc_flag_unused_command_line_argument=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8621 CFLAGS="$xorg_testset_save_CFLAGS"
8622 fi
8623
8624 found="no"
8625
8626 if test $found = "no" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629 fi
8630
8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633 fi
8634
8635 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8636
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8638 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8639 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8640 if eval \${$cacheid+:} 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 int
8647 main ()
8648 {
8649
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 if ac_fn_c_try_link "$LINENO"; then :
8655 eval $cacheid=yes
8656 else
8657 eval $cacheid=no
8658 fi
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 fi
8662
8663
8664 CFLAGS="$xorg_testset_save_CFLAGS"
8665
8666 eval supported=\$$cacheid
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8668 $as_echo "$supported" >&6; }
8669 if test "$supported" = "yes" ; then
8670 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8671 found="yes"
8672 fi
8673 fi
8674
8675 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8676 else
8677 { $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
8678 $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;}
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 xorg_testset_save_CFLAGS="$CFLAGS"
8693
8694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 int i;
8704 _ACEOF
8705 if ac_fn_c_try_compile "$LINENO"; then :
8706 xorg_cv_cc_flag_unknown_warning_option=yes
8707 else
8708 xorg_cv_cc_flag_unknown_warning_option=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8713 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716 fi
8717
8718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 fi
8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8724 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 int i;
8731 _ACEOF
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else
8735 xorg_cv_cc_flag_unused_command_line_argument=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 found="no"
8746
8747 if test $found = "no" ; then
8748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754 fi
8755
8756 CFLAGS="$CFLAGS -Wimplicit"
8757
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8759 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8760 cacheid=xorg_cv_cc_flag__Wimplicit
8761 if eval \${$cacheid+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 int i;
8767 int
8768 main ()
8769 {
8770
8771 ;
8772 return 0;
8773 }
8774 _ACEOF
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 eval $cacheid=yes
8777 else
8778 eval $cacheid=no
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 fi
8783
8784
8785 CFLAGS="$xorg_testset_save_CFLAGS"
8786
8787 eval supported=\$$cacheid
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8789 $as_echo "$supported" >&6; }
8790 if test "$supported" = "yes" ; then
8791 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8792 found="yes"
8793 fi
8794 fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810 xorg_testset_save_CFLAGS="$CFLAGS"
8811
8812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 int i;
8822 _ACEOF
8823 if ac_fn_c_try_compile "$LINENO"; then :
8824 xorg_cv_cc_flag_unknown_warning_option=yes
8825 else
8826 xorg_cv_cc_flag_unknown_warning_option=no
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8833 CFLAGS="$xorg_testset_save_CFLAGS"
8834 fi
8835
8836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 fi
8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 int i;
8849 _ACEOF
8850 if ac_fn_c_try_compile "$LINENO"; then :
8851 xorg_cv_cc_flag_unused_command_line_argument=yes
8852 else
8853 xorg_cv_cc_flag_unused_command_line_argument=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 found="no"
8864
8865 if test $found = "no" ; then
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 fi
8869
8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872 fi
8873
8874 CFLAGS="$CFLAGS -Wnonnull"
8875
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8877 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8878 cacheid=xorg_cv_cc_flag__Wnonnull
8879 if eval \${$cacheid+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 int i;
8885 int
8886 main ()
8887 {
8888
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894 eval $cacheid=yes
8895 else
8896 eval $cacheid=no
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 fi
8901
8902
8903 CFLAGS="$xorg_testset_save_CFLAGS"
8904
8905 eval supported=\$$cacheid
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8907 $as_echo "$supported" >&6; }
8908 if test "$supported" = "yes" ; then
8909 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8910 found="yes"
8911 fi
8912 fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 xorg_testset_save_CFLAGS="$CFLAGS"
8929
8930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8933 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 int i;
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"; then :
8942 xorg_cv_cc_flag_unknown_warning_option=yes
8943 else
8944 xorg_cv_cc_flag_unknown_warning_option=no
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8949 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8951 CFLAGS="$xorg_testset_save_CFLAGS"
8952 fi
8953
8954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957 fi
8958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 xorg_cv_cc_flag_unused_command_line_argument=yes
8970 else
8971 xorg_cv_cc_flag_unused_command_line_argument=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8976 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979 fi
8980
8981 found="no"
8982
8983 if test $found = "no" ; then
8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986 fi
8987
8988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990 fi
8991
8992 CFLAGS="$CFLAGS -Winit-self"
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8995 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8996 cacheid=xorg_cv_cc_flag__Winit_self
8997 if eval \${$cacheid+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 int
9004 main ()
9005 {
9006
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 if ac_fn_c_try_link "$LINENO"; then :
9012 eval $cacheid=yes
9013 else
9014 eval $cacheid=no
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 fi
9019
9020
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022
9023 eval supported=\$$cacheid
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9025 $as_echo "$supported" >&6; }
9026 if test "$supported" = "yes" ; then
9027 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9028 found="yes"
9029 fi
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046 xorg_testset_save_CFLAGS="$CFLAGS"
9047
9048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 int i;
9058 _ACEOF
9059 if ac_fn_c_try_compile "$LINENO"; then :
9060 xorg_cv_cc_flag_unknown_warning_option=yes
9061 else
9062 xorg_cv_cc_flag_unknown_warning_option=no
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069 CFLAGS="$xorg_testset_save_CFLAGS"
9070 fi
9071
9072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 fi
9076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 int i;
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087 xorg_cv_cc_flag_unused_command_line_argument=yes
9088 else
9089 xorg_cv_cc_flag_unused_command_line_argument=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097 fi
9098
9099 found="no"
9100
9101 if test $found = "no" ; then
9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104 fi
9105
9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108 fi
9109
9110 CFLAGS="$CFLAGS -Wmain"
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9113 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9114 cacheid=xorg_cv_cc_flag__Wmain
9115 if eval \${$cacheid+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 int i;
9121 int
9122 main ()
9123 {
9124
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 if ac_fn_c_try_link "$LINENO"; then :
9130 eval $cacheid=yes
9131 else
9132 eval $cacheid=no
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 fi
9137
9138
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9140
9141 eval supported=\$$cacheid
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9143 $as_echo "$supported" >&6; }
9144 if test "$supported" = "yes" ; then
9145 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9146 found="yes"
9147 fi
9148 fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 xorg_testset_save_CFLAGS="$CFLAGS"
9165
9166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 int i;
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 xorg_cv_cc_flag_unknown_warning_option=yes
9179 else
9180 xorg_cv_cc_flag_unknown_warning_option=no
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9187 CFLAGS="$xorg_testset_save_CFLAGS"
9188 fi
9189
9190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 fi
9194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int i;
9203 _ACEOF
9204 if ac_fn_c_try_compile "$LINENO"; then :
9205 xorg_cv_cc_flag_unused_command_line_argument=yes
9206 else
9207 xorg_cv_cc_flag_unused_command_line_argument=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9214 CFLAGS="$xorg_testset_save_CFLAGS"
9215 fi
9216
9217 found="no"
9218
9219 if test $found = "no" ; then
9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222 fi
9223
9224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226 fi
9227
9228 CFLAGS="$CFLAGS -Wmissing-braces"
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9231 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9232 cacheid=xorg_cv_cc_flag__Wmissing_braces
9233 if eval \${$cacheid+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 int i;
9239 int
9240 main ()
9241 {
9242
9243 ;
9244 return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 eval $cacheid=yes
9249 else
9250 eval $cacheid=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 fi
9255
9256
9257 CFLAGS="$xorg_testset_save_CFLAGS"
9258
9259 eval supported=\$$cacheid
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9261 $as_echo "$supported" >&6; }
9262 if test "$supported" = "yes" ; then
9263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9264 found="yes"
9265 fi
9266 fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282 xorg_testset_save_CFLAGS="$CFLAGS"
9283
9284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9287 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9288 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 int i;
9294 _ACEOF
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 xorg_cv_cc_flag_unknown_warning_option=yes
9297 else
9298 xorg_cv_cc_flag_unknown_warning_option=no
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 fi
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9303 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9305 CFLAGS="$xorg_testset_save_CFLAGS"
9306 fi
9307
9308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311 fi
9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9315 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 int i;
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323 xorg_cv_cc_flag_unused_command_line_argument=yes
9324 else
9325 xorg_cv_cc_flag_unused_command_line_argument=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9330 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333 fi
9334
9335 found="no"
9336
9337 if test $found = "no" ; then
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 fi
9341
9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344 fi
9345
9346 CFLAGS="$CFLAGS -Wsequence-point"
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9349 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9350 cacheid=xorg_cv_cc_flag__Wsequence_point
9351 if eval \${$cacheid+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 int i;
9357 int
9358 main ()
9359 {
9360
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 eval $cacheid=yes
9367 else
9368 eval $cacheid=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 fi
9373
9374
9375 CFLAGS="$xorg_testset_save_CFLAGS"
9376
9377 eval supported=\$$cacheid
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9379 $as_echo "$supported" >&6; }
9380 if test "$supported" = "yes" ; then
9381 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9382 found="yes"
9383 fi
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400 xorg_testset_save_CFLAGS="$CFLAGS"
9401
9402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 int i;
9412 _ACEOF
9413 if ac_fn_c_try_compile "$LINENO"; then :
9414 xorg_cv_cc_flag_unknown_warning_option=yes
9415 else
9416 xorg_cv_cc_flag_unknown_warning_option=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 fi
9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 int i;
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"; then :
9441 xorg_cv_cc_flag_unused_command_line_argument=yes
9442 else
9443 xorg_cv_cc_flag_unused_command_line_argument=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9450 CFLAGS="$xorg_testset_save_CFLAGS"
9451 fi
9452
9453 found="no"
9454
9455 if test $found = "no" ; then
9456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458 fi
9459
9460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462 fi
9463
9464 CFLAGS="$CFLAGS -Wreturn-type"
9465
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9467 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9468 cacheid=xorg_cv_cc_flag__Wreturn_type
9469 if eval \${$cacheid+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 int i;
9475 int
9476 main ()
9477 {
9478
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484 eval $cacheid=yes
9485 else
9486 eval $cacheid=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 fi
9491
9492
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495 eval supported=\$$cacheid
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497 $as_echo "$supported" >&6; }
9498 if test "$supported" = "yes" ; then
9499 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9500 found="yes"
9501 fi
9502 fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518 xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529 int i;
9530 _ACEOF
9531 if ac_fn_c_try_compile "$LINENO"; then :
9532 xorg_cv_cc_flag_unknown_warning_option=yes
9533 else
9534 xorg_cv_cc_flag_unknown_warning_option=no
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9541 CFLAGS="$xorg_testset_save_CFLAGS"
9542 fi
9543
9544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 fi
9548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 int i;
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 xorg_cv_cc_flag_unused_command_line_argument=yes
9560 else
9561 xorg_cv_cc_flag_unused_command_line_argument=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9568 CFLAGS="$xorg_testset_save_CFLAGS"
9569 fi
9570
9571 found="no"
9572
9573 if test $found = "no" ; then
9574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576 fi
9577
9578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580 fi
9581
9582 CFLAGS="$CFLAGS -Wtrigraphs"
9583
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9585 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9586 cacheid=xorg_cv_cc_flag__Wtrigraphs
9587 if eval \${$cacheid+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 int i;
9593 int
9594 main ()
9595 {
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 eval $cacheid=yes
9603 else
9604 eval $cacheid=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 fi
9609
9610
9611 CFLAGS="$xorg_testset_save_CFLAGS"
9612
9613 eval supported=\$$cacheid
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615 $as_echo "$supported" >&6; }
9616 if test "$supported" = "yes" ; then
9617 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9618 found="yes"
9619 fi
9620 fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 xorg_testset_save_CFLAGS="$CFLAGS"
9637
9638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 int i;
9648 _ACEOF
9649 if ac_fn_c_try_compile "$LINENO"; then :
9650 xorg_cv_cc_flag_unknown_warning_option=yes
9651 else
9652 xorg_cv_cc_flag_unknown_warning_option=no
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 fi
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659 CFLAGS="$xorg_testset_save_CFLAGS"
9660 fi
9661
9662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 fi
9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 xorg_cv_cc_flag_unused_command_line_argument=yes
9678 else
9679 xorg_cv_cc_flag_unused_command_line_argument=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9686 CFLAGS="$xorg_testset_save_CFLAGS"
9687 fi
9688
9689 found="no"
9690
9691 if test $found = "no" ; then
9692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694 fi
9695
9696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698 fi
9699
9700 CFLAGS="$CFLAGS -Warray-bounds"
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9703 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9704 cacheid=xorg_cv_cc_flag__Warray_bounds
9705 if eval \${$cacheid+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 int i;
9711 int
9712 main ()
9713 {
9714
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720 eval $cacheid=yes
9721 else
9722 eval $cacheid=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 fi
9727
9728
9729 CFLAGS="$xorg_testset_save_CFLAGS"
9730
9731 eval supported=\$$cacheid
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9733 $as_echo "$supported" >&6; }
9734 if test "$supported" = "yes" ; then
9735 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9736 found="yes"
9737 fi
9738 fi
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754 xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 int i;
9766 _ACEOF
9767 if ac_fn_c_try_compile "$LINENO"; then :
9768 xorg_cv_cc_flag_unknown_warning_option=yes
9769 else
9770 xorg_cv_cc_flag_unknown_warning_option=no
9771 fi
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777 CFLAGS="$xorg_testset_save_CFLAGS"
9778 fi
9779
9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783 fi
9784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 xorg_cv_cc_flag_unused_command_line_argument=yes
9796 else
9797 xorg_cv_cc_flag_unused_command_line_argument=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 found="no"
9808
9809 if test $found = "no" ; then
9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812 fi
9813
9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816 fi
9817
9818 CFLAGS="$CFLAGS -Wwrite-strings"
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9821 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9822 cacheid=xorg_cv_cc_flag__Wwrite_strings
9823 if eval \${$cacheid+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 int i;
9829 int
9830 main ()
9831 {
9832
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"; then :
9838 eval $cacheid=yes
9839 else
9840 eval $cacheid=no
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844 fi
9845
9846
9847 CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849 eval supported=\$$cacheid
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851 $as_echo "$supported" >&6; }
9852 if test "$supported" = "yes" ; then
9853 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9854 found="yes"
9855 fi
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872 xorg_testset_save_CFLAGS="$CFLAGS"
9873
9874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9877 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9878 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 int i;
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886 xorg_cv_cc_flag_unknown_warning_option=yes
9887 else
9888 xorg_cv_cc_flag_unknown_warning_option=no
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9893 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9895 CFLAGS="$xorg_testset_save_CFLAGS"
9896 fi
9897
9898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901 fi
9902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9904 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9905 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"; then :
9913 xorg_cv_cc_flag_unused_command_line_argument=yes
9914 else
9915 xorg_cv_cc_flag_unused_command_line_argument=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9920 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923 fi
9924
9925 found="no"
9926
9927 if test $found = "no" ; then
9928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930 fi
9931
9932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934 fi
9935
9936 CFLAGS="$CFLAGS -Waddress"
9937
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9939 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9940 cacheid=xorg_cv_cc_flag__Waddress
9941 if eval \${$cacheid+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 int i;
9947 int
9948 main ()
9949 {
9950
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 eval $cacheid=yes
9957 else
9958 eval $cacheid=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 fi
9963
9964
9965 CFLAGS="$xorg_testset_save_CFLAGS"
9966
9967 eval supported=\$$cacheid
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9969 $as_echo "$supported" >&6; }
9970 if test "$supported" = "yes" ; then
9971 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9972 found="yes"
9973 fi
9974 fi
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990 xorg_testset_save_CFLAGS="$CFLAGS"
9991
9992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9995 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9996 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 int i;
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"; then :
10004 xorg_cv_cc_flag_unknown_warning_option=yes
10005 else
10006 xorg_cv_cc_flag_unknown_warning_option=no
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019 fi
10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"; then :
10031 xorg_cv_cc_flag_unused_command_line_argument=yes
10032 else
10033 xorg_cv_cc_flag_unused_command_line_argument=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10038 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 found="no"
10044
10045 if test $found = "no" ; then
10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 fi
10049
10050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052 fi
10053
10054 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10057 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10058 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10059 if eval \${$cacheid+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 int i;
10065 int
10066 main ()
10067 {
10068
10069 ;
10070 return 0;
10071 }
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 eval $cacheid=yes
10075 else
10076 eval $cacheid=no
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 fi
10081
10082
10083 CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085 eval supported=\$$cacheid
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087 $as_echo "$supported" >&6; }
10088 if test "$supported" = "yes" ; then
10089 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10090 found="yes"
10091 fi
10092 fi
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108 xorg_testset_save_CFLAGS="$CFLAGS"
10109
10110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10113 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10114 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 int i;
10120 _ACEOF
10121 if ac_fn_c_try_compile "$LINENO"; then :
10122 xorg_cv_cc_flag_unknown_warning_option=yes
10123 else
10124 xorg_cv_cc_flag_unknown_warning_option=no
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 fi
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131 CFLAGS="$xorg_testset_save_CFLAGS"
10132 fi
10133
10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137 fi
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 int i;
10147 _ACEOF
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149 xorg_cv_cc_flag_unused_command_line_argument=yes
10150 else
10151 xorg_cv_cc_flag_unused_command_line_argument=no
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10156 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10158 CFLAGS="$xorg_testset_save_CFLAGS"
10159 fi
10160
10161 found="no"
10162
10163 if test $found = "no" ; then
10164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10166 fi
10167
10168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10170 fi
10171
10172 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10175 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10176 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10177 if eval \${$cacheid+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 int
10184 main ()
10185 {
10186
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 eval $cacheid=yes
10193 else
10194 eval $cacheid=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 fi
10199
10200
10201 CFLAGS="$xorg_testset_save_CFLAGS"
10202
10203 eval supported=\$$cacheid
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10205 $as_echo "$supported" >&6; }
10206 if test "$supported" = "yes" ; then
10207 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10208 found="yes"
10209 fi
10210 fi
10211
10212
10213 fi
10214
10215
10216
10217
10218
10219
10220
10221 CWARNFLAGS="$BASE_CFLAGS"
10222 if test "x$GCC" = xyes ; then
10223 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10224 fi
10225
10226
10227
10228
10229
10230
10231
10232
10233 # Check whether --enable-strict-compilation was given.
10234 if test "${enable_strict_compilation+set}" = set; then :
10235 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10236 else
10237 STRICT_COMPILE=no
10238 fi
10239
10240
10241
10242
10243
10244
10245 STRICT_CFLAGS=""
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259 xorg_testset_save_CFLAGS="$CFLAGS"
10260
10261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 int i;
10271 _ACEOF
10272 if ac_fn_c_try_compile "$LINENO"; then :
10273 xorg_cv_cc_flag_unknown_warning_option=yes
10274 else
10275 xorg_cv_cc_flag_unknown_warning_option=no
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10282 CFLAGS="$xorg_testset_save_CFLAGS"
10283 fi
10284
10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288 fi
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 int i;
10298 _ACEOF
10299 if ac_fn_c_try_compile "$LINENO"; then :
10300 xorg_cv_cc_flag_unused_command_line_argument=yes
10301 else
10302 xorg_cv_cc_flag_unused_command_line_argument=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 found="no"
10313
10314 if test $found = "no" ; then
10315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10317 fi
10318
10319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321 fi
10322
10323 CFLAGS="$CFLAGS -pedantic"
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10326 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10327 cacheid=xorg_cv_cc_flag__pedantic
10328 if eval \${$cacheid+:} false; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int i;
10334 int
10335 main ()
10336 {
10337
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 eval $cacheid=yes
10344 else
10345 eval $cacheid=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 fi
10350
10351
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353
10354 eval supported=\$$cacheid
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10356 $as_echo "$supported" >&6; }
10357 if test "$supported" = "yes" ; then
10358 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10359 found="yes"
10360 fi
10361 fi
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377 xorg_testset_save_CFLAGS="$CFLAGS"
10378
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391 xorg_cv_cc_flag_unknown_warning_option=yes
10392 else
10393 xorg_cv_cc_flag_unknown_warning_option=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 fi
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10400 CFLAGS="$xorg_testset_save_CFLAGS"
10401 fi
10402
10403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406 fi
10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 int i;
10416 _ACEOF
10417 if ac_fn_c_try_compile "$LINENO"; then :
10418 xorg_cv_cc_flag_unused_command_line_argument=yes
10419 else
10420 xorg_cv_cc_flag_unused_command_line_argument=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428 fi
10429
10430 found="no"
10431
10432 if test $found = "no" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436
10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 fi
10440
10441 CFLAGS="$CFLAGS -Werror"
10442
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10444 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10445 cacheid=xorg_cv_cc_flag__Werror
10446 if eval \${$cacheid+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 int i;
10452 int
10453 main ()
10454 {
10455
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461 eval $cacheid=yes
10462 else
10463 eval $cacheid=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 fi
10468
10469
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471
10472 eval supported=\$$cacheid
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10474 $as_echo "$supported" >&6; }
10475 if test "$supported" = "yes" ; then
10476 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10477 found="yes"
10478 fi
10479 fi
10480
10481 if test $found = "no" ; then
10482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484 fi
10485
10486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10488 fi
10489
10490 CFLAGS="$CFLAGS -errwarn"
10491
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10493 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10494 cacheid=xorg_cv_cc_flag__errwarn
10495 if eval \${$cacheid+:} 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 int
10502 main ()
10503 {
10504
10505 ;
10506 return 0;
10507 }
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"; then :
10510 eval $cacheid=yes
10511 else
10512 eval $cacheid=no
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 fi
10517
10518
10519 CFLAGS="$xorg_testset_save_CFLAGS"
10520
10521 eval supported=\$$cacheid
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10523 $as_echo "$supported" >&6; }
10524 if test "$supported" = "yes" ; then
10525 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10526 found="yes"
10527 fi
10528 fi
10529
10530
10531
10532 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10533 # activate it with -Werror, so we add it here explicitly.
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 xorg_testset_save_CFLAGS="$CFLAGS"
10548
10549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 _ACEOF
10560 if ac_fn_c_try_compile "$LINENO"; then :
10561 xorg_cv_cc_flag_unknown_warning_option=yes
10562 else
10563 xorg_cv_cc_flag_unknown_warning_option=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570 CFLAGS="$xorg_testset_save_CFLAGS"
10571 fi
10572
10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576 fi
10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 int i;
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588 xorg_cv_cc_flag_unused_command_line_argument=yes
10589 else
10590 xorg_cv_cc_flag_unused_command_line_argument=no
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10597 CFLAGS="$xorg_testset_save_CFLAGS"
10598 fi
10599
10600 found="no"
10601
10602 if test $found = "no" ; then
10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605 fi
10606
10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10609 fi
10610
10611 CFLAGS="$CFLAGS -Werror=attributes"
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10614 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10615 cacheid=xorg_cv_cc_flag__Werror_attributes
10616 if eval \${$cacheid+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621 int i;
10622 int
10623 main ()
10624 {
10625
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 eval $cacheid=yes
10632 else
10633 eval $cacheid=no
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 fi
10638
10639
10640 CFLAGS="$xorg_testset_save_CFLAGS"
10641
10642 eval supported=\$$cacheid
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10644 $as_echo "$supported" >&6; }
10645 if test "$supported" = "yes" ; then
10646 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10647 found="yes"
10648 fi
10649 fi
10650
10651
10652
10653 if test "x$STRICT_COMPILE" = "xyes"; then
10654 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10655 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10656 fi
10657
10658
10659
10660
10661
10662
10663 cat >>confdefs.h <<_ACEOF
10664 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10665 _ACEOF
10666
10667 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10668 if test "x$PVM" = "x"; then
10669 PVM="0"
10670 fi
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define PACKAGE_VERSION_MINOR $PVM
10674 _ACEOF
10675
10676 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10677 if test "x$PVP" = "x"; then
10678 PVP="0"
10679 fi
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10683 _ACEOF
10684
10685
10686
10687 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10688 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10689 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10690 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10691
10692
10693
10694
10695 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10696 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10697 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10698 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10699 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10700
10701
10702
10703
10704
10705
10706 if test x$APP_MAN_SUFFIX = x ; then
10707 APP_MAN_SUFFIX=1
10708 fi
10709 if test x$APP_MAN_DIR = x ; then
10710 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10711 fi
10712
10713 if test x$LIB_MAN_SUFFIX = x ; then
10714 LIB_MAN_SUFFIX=3
10715 fi
10716 if test x$LIB_MAN_DIR = x ; then
10717 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10718 fi
10719
10720 if test x$FILE_MAN_SUFFIX = x ; then
10721 case $host_os in
10722 solaris*) FILE_MAN_SUFFIX=4 ;;
10723 *) FILE_MAN_SUFFIX=5 ;;
10724 esac
10725 fi
10726 if test x$FILE_MAN_DIR = x ; then
10727 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10728 fi
10729
10730 if test x$MISC_MAN_SUFFIX = x ; then
10731 case $host_os in
10732 solaris*) MISC_MAN_SUFFIX=5 ;;
10733 *) MISC_MAN_SUFFIX=7 ;;
10734 esac
10735 fi
10736 if test x$MISC_MAN_DIR = x ; then
10737 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10738 fi
10739
10740 if test x$DRIVER_MAN_SUFFIX = x ; then
10741 case $host_os in
10742 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10743 *) DRIVER_MAN_SUFFIX=4 ;;
10744 esac
10745 fi
10746 if test x$DRIVER_MAN_DIR = x ; then
10747 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10748 fi
10749
10750 if test x$ADMIN_MAN_SUFFIX = x ; then
10751 case $host_os in
10752 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10753 *) ADMIN_MAN_SUFFIX=8 ;;
10754 esac
10755 fi
10756 if test x$ADMIN_MAN_DIR = x ; then
10757 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10758 fi
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774 XORG_MAN_PAGE="X Version 11"
10775
10776 MAN_SUBSTS="\
10777 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10778 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10779 -e 's|__xservername__|Xorg|g' \
10780 -e 's|__xconfigfile__|xorg.conf|g' \
10781 -e 's|__projectroot__|\$(prefix)|g' \
10782 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10783 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10784 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10785 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10786 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10787 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10788 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10789
10790
10791
10792 # Check whether --enable-silent-rules was given.
10793 if test "${enable_silent_rules+set}" = set; then :
10794 enableval=$enable_silent_rules;
10795 fi
10796
10797 case $enable_silent_rules in # (((
10798 yes) AM_DEFAULT_VERBOSITY=0;;
10799 no) AM_DEFAULT_VERBOSITY=1;;
10800 *) AM_DEFAULT_VERBOSITY=0;;
10801 esac
10802 am_make=${MAKE-make}
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10804 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10805 if ${am_cv_make_support_nested_variables+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 if $as_echo 'TRUE=$(BAR$(V))
10809 BAR0=false
10810 BAR1=true
10811 V=1
10812 am__doit:
10813 @$(TRUE)
10814 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10815 am_cv_make_support_nested_variables=yes
10816 else
10817 am_cv_make_support_nested_variables=no
10818 fi
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10821 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10822 if test $am_cv_make_support_nested_variables = yes; then
10823 AM_V='$(V)'
10824 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10825 else
10826 AM_V=$AM_DEFAULT_VERBOSITY
10827 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10828 fi
10829 AM_BACKSLASH='\'
10830
10831
10832
10833 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10834
10835
10836
10837 # Checks for programs.
10838 # Check whether --enable-static was given.
10839 if test "${enable_static+set}" = set; then :
10840 enableval=$enable_static; p=${PACKAGE-default}
10841 case $enableval in
10842 yes) enable_static=yes ;;
10843 no) enable_static=no ;;
10844 *)
10845 enable_static=no
10846 # Look at the argument we got. We use all the common list separators.
10847 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10848 for pkg in $enableval; do
10849 IFS=$lt_save_ifs
10850 if test "X$pkg" = "X$p"; then
10851 enable_static=yes
10852 fi
10853 done
10854 IFS=$lt_save_ifs
10855 ;;
10856 esac
10857 else
10858 enable_static=no
10859 fi
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869 case `pwd` in
10870 *\ * | *\ *)
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10872 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10873 esac
10874
10875
10876
10877 macro_version='2.4.6'
10878 macro_revision='2.4.6'
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 ltmain=$ac_aux_dir/ltmain.sh
10893
10894 # Backslashify metacharacters that are still active within
10895 # double-quoted strings.
10896 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10897
10898 # Same as above, but do not quote variable references.
10899 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10900
10901 # Sed substitution to delay expansion of an escaped shell variable in a
10902 # double_quote_subst'ed string.
10903 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10904
10905 # Sed substitution to delay expansion of an escaped single quote.
10906 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10907
10908 # Sed substitution to avoid accidental globbing in evaled expressions
10909 no_glob_subst='s/\*/\\\*/g'
10910
10911 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10913 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10916 $as_echo_n "checking how to print strings... " >&6; }
10917 # Test print first, because it will be a builtin if present.
10918 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10919 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10920 ECHO='print -r --'
10921 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10922 ECHO='printf %s\n'
10923 else
10924 # Use this function as a fallback that always works.
10925 func_fallback_echo ()
10926 {
10927 eval 'cat <<_LTECHO_EOF
10928 $1
10929 _LTECHO_EOF'
10930 }
10931 ECHO='func_fallback_echo'
10932 fi
10933
10934 # func_echo_all arg...
10935 # Invoke $ECHO with all args, space-separated.
10936 func_echo_all ()
10937 {
10938 $ECHO ""
10939 }
10940
10941 case $ECHO in
10942 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10943 $as_echo "printf" >&6; } ;;
10944 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10945 $as_echo "print -r" >&6; } ;;
10946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10947 $as_echo "cat" >&6; } ;;
10948 esac
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10964 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10965 if ${ac_cv_path_SED+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10969 for ac_i in 1 2 3 4 5 6 7; do
10970 ac_script="$ac_script$as_nl$ac_script"
10971 done
10972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10973 { ac_script=; unset ac_script;}
10974 if test -z "$SED"; then
10975 ac_path_SED_found=false
10976 # Loop through the user's path and test for each of PROGNAME-LIST
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10979 do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_prog in sed gsed; do
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10985 as_fn_executable_p "$ac_path_SED" || continue
10986 # Check for GNU ac_path_SED and select it if it is found.
10987 # Check for GNU $ac_path_SED
10988 case `"$ac_path_SED" --version 2>&1` in
10989 *GNU*)
10990 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10991 *)
10992 ac_count=0
10993 $as_echo_n 0123456789 >"conftest.in"
10994 while :
10995 do
10996 cat "conftest.in" "conftest.in" >"conftest.tmp"
10997 mv "conftest.tmp" "conftest.in"
10998 cp "conftest.in" "conftest.nl"
10999 $as_echo '' >> "conftest.nl"
11000 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11002 as_fn_arith $ac_count + 1 && ac_count=$as_val
11003 if test $ac_count -gt ${ac_path_SED_max-0}; then
11004 # Best one so far, save it but keep looking for a better one
11005 ac_cv_path_SED="$ac_path_SED"
11006 ac_path_SED_max=$ac_count
11007 fi
11008 # 10*(2^10) chars as input seems more than enough
11009 test $ac_count -gt 10 && break
11010 done
11011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11012 esac
11013
11014 $ac_path_SED_found && break 3
11015 done
11016 done
11017 done
11018 IFS=$as_save_IFS
11019 if test -z "$ac_cv_path_SED"; then
11020 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11021 fi
11022 else
11023 ac_cv_path_SED=$SED
11024 fi
11025
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11028 $as_echo "$ac_cv_path_SED" >&6; }
11029 SED="$ac_cv_path_SED"
11030 rm -f conftest.sed
11031
11032 test -z "$SED" && SED=sed
11033 Xsed="$SED -e 1s/^X//"
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11046 $as_echo_n "checking for fgrep... " >&6; }
11047 if ${ac_cv_path_FGREP+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11051 then ac_cv_path_FGREP="$GREP -F"
11052 else
11053 if test -z "$FGREP"; then
11054 ac_path_FGREP_found=false
11055 # Loop through the user's path and test for each of PROGNAME-LIST
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11058 do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_prog in fgrep; do
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11064 as_fn_executable_p "$ac_path_FGREP" || continue
11065 # Check for GNU ac_path_FGREP and select it if it is found.
11066 # Check for GNU $ac_path_FGREP
11067 case `"$ac_path_FGREP" --version 2>&1` in
11068 *GNU*)
11069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11070 *)
11071 ac_count=0
11072 $as_echo_n 0123456789 >"conftest.in"
11073 while :
11074 do
11075 cat "conftest.in" "conftest.in" >"conftest.tmp"
11076 mv "conftest.tmp" "conftest.in"
11077 cp "conftest.in" "conftest.nl"
11078 $as_echo 'FGREP' >> "conftest.nl"
11079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11081 as_fn_arith $ac_count + 1 && ac_count=$as_val
11082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11083 # Best one so far, save it but keep looking for a better one
11084 ac_cv_path_FGREP="$ac_path_FGREP"
11085 ac_path_FGREP_max=$ac_count
11086 fi
11087 # 10*(2^10) chars as input seems more than enough
11088 test $ac_count -gt 10 && break
11089 done
11090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11091 esac
11092
11093 $ac_path_FGREP_found && break 3
11094 done
11095 done
11096 done
11097 IFS=$as_save_IFS
11098 if test -z "$ac_cv_path_FGREP"; then
11099 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11100 fi
11101 else
11102 ac_cv_path_FGREP=$FGREP
11103 fi
11104
11105 fi
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11108 $as_echo "$ac_cv_path_FGREP" >&6; }
11109 FGREP="$ac_cv_path_FGREP"
11110
11111
11112 test -z "$GREP" && GREP=grep
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132 # Check whether --with-gnu-ld was given.
11133 if test "${with_gnu_ld+set}" = set; then :
11134 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11135 else
11136 with_gnu_ld=no
11137 fi
11138
11139 ac_prog=ld
11140 if test yes = "$GCC"; then
11141 # Check if gcc -print-prog-name=ld gives a path.
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11143 $as_echo_n "checking for ld used by $CC... " >&6; }
11144 case $host in
11145 *-*-mingw*)
11146 # gcc leaves a trailing carriage return, which upsets mingw
11147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11148 *)
11149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11150 esac
11151 case $ac_prog in
11152 # Accept absolute paths.
11153 [\\/]* | ?:[\\/]*)
11154 re_direlt='/[^/][^/]*/\.\./'
11155 # Canonicalize the pathname of ld
11156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11159 done
11160 test -z "$LD" && LD=$ac_prog
11161 ;;
11162 "")
11163 # If it fails, then pretend we aren't using GCC.
11164 ac_prog=ld
11165 ;;
11166 *)
11167 # If it is relative, then search for the first ld in PATH.
11168 with_gnu_ld=unknown
11169 ;;
11170 esac
11171 elif test yes = "$with_gnu_ld"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11173 $as_echo_n "checking for GNU ld... " >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11176 $as_echo_n "checking for non-GNU ld... " >&6; }
11177 fi
11178 if ${lt_cv_path_LD+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -z "$LD"; then
11182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11183 for ac_dir in $PATH; do
11184 IFS=$lt_save_ifs
11185 test -z "$ac_dir" && ac_dir=.
11186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11187 lt_cv_path_LD=$ac_dir/$ac_prog
11188 # Check to see if the program is GNU ld. I'd rather use --version,
11189 # but apparently some variants of GNU ld only accept -v.
11190 # Break only if it was the GNU/non-GNU ld that we prefer.
11191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11192 *GNU* | *'with BFD'*)
11193 test no != "$with_gnu_ld" && break
11194 ;;
11195 *)
11196 test yes != "$with_gnu_ld" && break
11197 ;;
11198 esac
11199 fi
11200 done
11201 IFS=$lt_save_ifs
11202 else
11203 lt_cv_path_LD=$LD # Let the user override the test with a path.
11204 fi
11205 fi
11206
11207 LD=$lt_cv_path_LD
11208 if test -n "$LD"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11210 $as_echo "$LD" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11214 fi
11215 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11218 if ${lt_cv_prog_gnu_ld+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11222 case `$LD -v 2>&1 </dev/null` in
11223 *GNU* | *'with BFD'*)
11224 lt_cv_prog_gnu_ld=yes
11225 ;;
11226 *)
11227 lt_cv_prog_gnu_ld=no
11228 ;;
11229 esac
11230 fi
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11232 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11233 with_gnu_ld=$lt_cv_prog_gnu_ld
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11244 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11245 if ${lt_cv_path_NM+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test -n "$NM"; then
11249 # Let the user override the test.
11250 lt_cv_path_NM=$NM
11251 else
11252 lt_nm_to_check=${ac_tool_prefix}nm
11253 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11254 lt_nm_to_check="$lt_nm_to_check nm"
11255 fi
11256 for lt_tmp_nm in $lt_nm_to_check; do
11257 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11258 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11259 IFS=$lt_save_ifs
11260 test -z "$ac_dir" && ac_dir=.
11261 tmp_nm=$ac_dir/$lt_tmp_nm
11262 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11263 # Check to see if the nm accepts a BSD-compat flag.
11264 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11265 # nm: unknown option "B" ignored
11266 # Tru64's nm complains that /dev/null is an invalid object file
11267 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11268 case $build_os in
11269 mingw*) lt_bad_file=conftest.nm/nofile ;;
11270 *) lt_bad_file=/dev/null ;;
11271 esac
11272 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11273 *$lt_bad_file* | *'Invalid file or object type'*)
11274 lt_cv_path_NM="$tmp_nm -B"
11275 break 2
11276 ;;
11277 *)
11278 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11279 */dev/null*)
11280 lt_cv_path_NM="$tmp_nm -p"
11281 break 2
11282 ;;
11283 *)
11284 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11285 continue # so that we can try to find one that supports BSD flags
11286 ;;
11287 esac
11288 ;;
11289 esac
11290 fi
11291 done
11292 IFS=$lt_save_ifs
11293 done
11294 : ${lt_cv_path_NM=no}
11295 fi
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11298 $as_echo "$lt_cv_path_NM" >&6; }
11299 if test no != "$lt_cv_path_NM"; then
11300 NM=$lt_cv_path_NM
11301 else
11302 # Didn't find any BSD compatible name lister, look for dumpbin.
11303 if test -n "$DUMPBIN"; then :
11304 # Let the user override the test.
11305 else
11306 if test -n "$ac_tool_prefix"; then
11307 for ac_prog in dumpbin "link -dump"
11308 do
11309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312 $as_echo_n "checking for $ac_word... " >&6; }
11313 if ${ac_cv_prog_DUMPBIN+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 if test -n "$DUMPBIN"; then
11317 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11318 else
11319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11321 do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11329 fi
11330 done
11331 done
11332 IFS=$as_save_IFS
11333
11334 fi
11335 fi
11336 DUMPBIN=$ac_cv_prog_DUMPBIN
11337 if test -n "$DUMPBIN"; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11339 $as_echo "$DUMPBIN" >&6; }
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11343 fi
11344
11345
11346 test -n "$DUMPBIN" && break
11347 done
11348 fi
11349 if test -z "$DUMPBIN"; then
11350 ac_ct_DUMPBIN=$DUMPBIN
11351 for ac_prog in dumpbin "link -dump"
11352 do
11353 # Extract the first word of "$ac_prog", so it can be a program name with args.
11354 set dummy $ac_prog; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 if test -n "$ac_ct_DUMPBIN"; then
11361 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11381 if test -n "$ac_ct_DUMPBIN"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11383 $as_echo "$ac_ct_DUMPBIN" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388
11389
11390 test -n "$ac_ct_DUMPBIN" && break
11391 done
11392
11393 if test "x$ac_ct_DUMPBIN" = x; then
11394 DUMPBIN=":"
11395 else
11396 case $cross_compiling:$ac_tool_warned in
11397 yes:)
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11400 ac_tool_warned=yes ;;
11401 esac
11402 DUMPBIN=$ac_ct_DUMPBIN
11403 fi
11404 fi
11405
11406 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11407 *COFF*)
11408 DUMPBIN="$DUMPBIN -symbols -headers"
11409 ;;
11410 *)
11411 DUMPBIN=:
11412 ;;
11413 esac
11414 fi
11415
11416 if test : != "$DUMPBIN"; then
11417 NM=$DUMPBIN
11418 fi
11419 fi
11420 test -z "$NM" && NM=nm
11421
11422
11423
11424
11425
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11428 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11429 if ${lt_cv_nm_interface+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 lt_cv_nm_interface="BSD nm"
11433 echo "int some_variable = 0;" > conftest.$ac_ext
11434 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11435 (eval "$ac_compile" 2>conftest.err)
11436 cat conftest.err >&5
11437 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11438 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11439 cat conftest.err >&5
11440 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11441 cat conftest.out >&5
11442 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11443 lt_cv_nm_interface="MS dumpbin"
11444 fi
11445 rm -f conftest*
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11448 $as_echo "$lt_cv_nm_interface" >&6; }
11449
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11451 $as_echo_n "checking whether ln -s works... " >&6; }
11452 LN_S=$as_ln_s
11453 if test "$LN_S" = "ln -s"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11458 $as_echo "no, using $LN_S" >&6; }
11459 fi
11460
11461 # find the maximum length of command line arguments
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11464 if ${lt_cv_sys_max_cmd_len+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 i=0
11468 teststring=ABCD
11469
11470 case $build_os in
11471 msdosdjgpp*)
11472 # On DJGPP, this test can blow up pretty badly due to problems in libc
11473 # (any single argument exceeding 2000 bytes causes a buffer overrun
11474 # during glob expansion). Even if it were fixed, the result of this
11475 # check would be larger than it should be.
11476 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11477 ;;
11478
11479 gnu*)
11480 # Under GNU Hurd, this test is not required because there is
11481 # no limit to the length of command line arguments.
11482 # Libtool will interpret -1 as no limit whatsoever
11483 lt_cv_sys_max_cmd_len=-1;
11484 ;;
11485
11486 cygwin* | mingw* | cegcc*)
11487 # On Win9x/ME, this test blows up -- it succeeds, but takes
11488 # about 5 minutes as the teststring grows exponentially.
11489 # Worse, since 9x/ME are not pre-emptively multitasking,
11490 # you end up with a "frozen" computer, even though with patience
11491 # the test eventually succeeds (with a max line length of 256k).
11492 # Instead, let's just punt: use the minimum linelength reported by
11493 # all of the supported platforms: 8192 (on NT/2K/XP).
11494 lt_cv_sys_max_cmd_len=8192;
11495 ;;
11496
11497 mint*)
11498 # On MiNT this can take a long time and run out of memory.
11499 lt_cv_sys_max_cmd_len=8192;
11500 ;;
11501
11502 amigaos*)
11503 # On AmigaOS with pdksh, this test takes hours, literally.
11504 # So we just punt and use a minimum line length of 8192.
11505 lt_cv_sys_max_cmd_len=8192;
11506 ;;
11507
11508 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11509 # This has been around since 386BSD, at least. Likely further.
11510 if test -x /sbin/sysctl; then
11511 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11512 elif test -x /usr/sbin/sysctl; then
11513 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11514 else
11515 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11516 fi
11517 # And add a safety zone
11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11520 ;;
11521
11522 interix*)
11523 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11524 lt_cv_sys_max_cmd_len=196608
11525 ;;
11526
11527 os2*)
11528 # The test takes a long time on OS/2.
11529 lt_cv_sys_max_cmd_len=8192
11530 ;;
11531
11532 osf*)
11533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11535 # nice to cause kernel panics so lets avoid the loop below.
11536 # First set a reasonable default.
11537 lt_cv_sys_max_cmd_len=16384
11538 #
11539 if test -x /sbin/sysconfig; then
11540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11542 esac
11543 fi
11544 ;;
11545 sco3.2v5*)
11546 lt_cv_sys_max_cmd_len=102400
11547 ;;
11548 sysv5* | sco5v6* | sysv4.2uw2*)
11549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11550 if test -n "$kargmax"; then
11551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11552 else
11553 lt_cv_sys_max_cmd_len=32768
11554 fi
11555 ;;
11556 *)
11557 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11558 if test -n "$lt_cv_sys_max_cmd_len" && \
11559 test undefined != "$lt_cv_sys_max_cmd_len"; then
11560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11562 else
11563 # Make teststring a little bigger before we do anything with it.
11564 # a 1K string should be a reasonable start.
11565 for i in 1 2 3 4 5 6 7 8; do
11566 teststring=$teststring$teststring
11567 done
11568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11569 # If test is not a shell built-in, we'll probably end up computing a
11570 # maximum length that is only half of the actual maximum length, but
11571 # we can't tell.
11572 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11573 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11574 test 17 != "$i" # 1/2 MB should be enough
11575 do
11576 i=`expr $i + 1`
11577 teststring=$teststring$teststring
11578 done
11579 # Only check the string length outside the loop.
11580 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11581 teststring=
11582 # Add a significant safety factor because C++ compilers can tack on
11583 # massive amounts of additional arguments before passing them to the
11584 # linker. It appears as though 1/2 is a usable value.
11585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11586 fi
11587 ;;
11588 esac
11589
11590 fi
11591
11592 if test -n "$lt_cv_sys_max_cmd_len"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11594 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11597 $as_echo "none" >&6; }
11598 fi
11599 max_cmd_len=$lt_cv_sys_max_cmd_len
11600
11601
11602
11603
11604
11605
11606 : ${CP="cp -f"}
11607 : ${MV="mv -f"}
11608 : ${RM="rm -f"}
11609
11610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11611 lt_unset=unset
11612 else
11613 lt_unset=false
11614 fi
11615
11616
11617
11618
11619
11620 # test EBCDIC or ASCII
11621 case `echo X|tr X '\101'` in
11622 A) # ASCII based system
11623 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11624 lt_SP2NL='tr \040 \012'
11625 lt_NL2SP='tr \015\012 \040\040'
11626 ;;
11627 *) # EBCDIC based system
11628 lt_SP2NL='tr \100 \n'
11629 lt_NL2SP='tr \r\n \100\100'
11630 ;;
11631 esac
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11642 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11643 if ${lt_cv_to_host_file_cmd+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 case $host in
11647 *-*-mingw* )
11648 case $build in
11649 *-*-mingw* ) # actually msys
11650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11651 ;;
11652 *-*-cygwin* )
11653 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11654 ;;
11655 * ) # otherwise, assume *nix
11656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11657 ;;
11658 esac
11659 ;;
11660 *-*-cygwin* )
11661 case $build in
11662 *-*-mingw* ) # actually msys
11663 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11664 ;;
11665 *-*-cygwin* )
11666 lt_cv_to_host_file_cmd=func_convert_file_noop
11667 ;;
11668 * ) # otherwise, assume *nix
11669 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11670 ;;
11671 esac
11672 ;;
11673 * ) # unhandled hosts (and "normal" native builds)
11674 lt_cv_to_host_file_cmd=func_convert_file_noop
11675 ;;
11676 esac
11677
11678 fi
11679
11680 to_host_file_cmd=$lt_cv_to_host_file_cmd
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11682 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11683
11684
11685
11686
11687
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11689 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11690 if ${lt_cv_to_tool_file_cmd+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 #assume ordinary cross tools, or native build.
11694 lt_cv_to_tool_file_cmd=func_convert_file_noop
11695 case $host in
11696 *-*-mingw* )
11697 case $build in
11698 *-*-mingw* ) # actually msys
11699 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11700 ;;
11701 esac
11702 ;;
11703 esac
11704
11705 fi
11706
11707 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11709 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11710
11711
11712
11713
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11716 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11717 if ${lt_cv_ld_reload_flag+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 lt_cv_ld_reload_flag='-r'
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11723 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11724 reload_flag=$lt_cv_ld_reload_flag
11725 case $reload_flag in
11726 "" | " "*) ;;
11727 *) reload_flag=" $reload_flag" ;;
11728 esac
11729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11730 case $host_os in
11731 cygwin* | mingw* | pw32* | cegcc*)
11732 if test yes != "$GCC"; then
11733 reload_cmds=false
11734 fi
11735 ;;
11736 darwin*)
11737 if test yes = "$GCC"; then
11738 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11739 else
11740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11741 fi
11742 ;;
11743 esac
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 if test -n "$ac_tool_prefix"; then
11754 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11755 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if ${ac_cv_prog_OBJDUMP+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 if test -n "$OBJDUMP"; then
11762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775 done
11776 done
11777 IFS=$as_save_IFS
11778
11779 fi
11780 fi
11781 OBJDUMP=$ac_cv_prog_OBJDUMP
11782 if test -n "$OBJDUMP"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11784 $as_echo "$OBJDUMP" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11788 fi
11789
11790
11791 fi
11792 if test -z "$ac_cv_prog_OBJDUMP"; then
11793 ac_ct_OBJDUMP=$OBJDUMP
11794 # Extract the first word of "objdump", so it can be a program name with args.
11795 set dummy objdump; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$ac_ct_OBJDUMP"; then
11802 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815 done
11816 done
11817 IFS=$as_save_IFS
11818
11819 fi
11820 fi
11821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11822 if test -n "$ac_ct_OBJDUMP"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11824 $as_echo "$ac_ct_OBJDUMP" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830 if test "x$ac_ct_OBJDUMP" = x; then
11831 OBJDUMP="false"
11832 else
11833 case $cross_compiling:$ac_tool_warned in
11834 yes:)
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11837 ac_tool_warned=yes ;;
11838 esac
11839 OBJDUMP=$ac_ct_OBJDUMP
11840 fi
11841 else
11842 OBJDUMP="$ac_cv_prog_OBJDUMP"
11843 fi
11844
11845 test -z "$OBJDUMP" && OBJDUMP=objdump
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11856 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11857 if ${lt_cv_deplibs_check_method+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 lt_cv_file_magic_cmd='$MAGIC_CMD'
11861 lt_cv_file_magic_test_file=
11862 lt_cv_deplibs_check_method='unknown'
11863 # Need to set the preceding variable on all platforms that support
11864 # interlibrary dependencies.
11865 # 'none' -- dependencies not supported.
11866 # 'unknown' -- same as none, but documents that we really don't know.
11867 # 'pass_all' -- all dependencies passed with no checks.
11868 # 'test_compile' -- check by making test program.
11869 # 'file_magic [[regex]]' -- check by looking for files in library path
11870 # that responds to the $file_magic_cmd with a given extended regex.
11871 # If you have 'file' or equivalent on your system and you're not sure
11872 # whether 'pass_all' will *always* work, you probably want this one.
11873
11874 case $host_os in
11875 aix[4-9]*)
11876 lt_cv_deplibs_check_method=pass_all
11877 ;;
11878
11879 beos*)
11880 lt_cv_deplibs_check_method=pass_all
11881 ;;
11882
11883 bsdi[45]*)
11884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11885 lt_cv_file_magic_cmd='/usr/bin/file -L'
11886 lt_cv_file_magic_test_file=/shlib/libc.so
11887 ;;
11888
11889 cygwin*)
11890 # func_win32_libid is a shell function defined in ltmain.sh
11891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11892 lt_cv_file_magic_cmd='func_win32_libid'
11893 ;;
11894
11895 mingw* | pw32*)
11896 # Base MSYS/MinGW do not provide the 'file' command needed by
11897 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11898 # unless we find 'file', for example because we are cross-compiling.
11899 if ( file / ) >/dev/null 2>&1; then
11900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11901 lt_cv_file_magic_cmd='func_win32_libid'
11902 else
11903 # Keep this pattern in sync with the one in func_win32_libid.
11904 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11905 lt_cv_file_magic_cmd='$OBJDUMP -f'
11906 fi
11907 ;;
11908
11909 cegcc*)
11910 # use the weaker test based on 'objdump'. See mingw*.
11911 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11912 lt_cv_file_magic_cmd='$OBJDUMP -f'
11913 ;;
11914
11915 darwin* | rhapsody*)
11916 lt_cv_deplibs_check_method=pass_all
11917 ;;
11918
11919 freebsd* | dragonfly*)
11920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11921 case $host_cpu in
11922 i*86 )
11923 # Not sure whether the presence of OpenBSD here was a mistake.
11924 # Let's accept both of them until this is cleared up.
11925 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11926 lt_cv_file_magic_cmd=/usr/bin/file
11927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11928 ;;
11929 esac
11930 else
11931 lt_cv_deplibs_check_method=pass_all
11932 fi
11933 ;;
11934
11935 haiku*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939 hpux10.20* | hpux11*)
11940 lt_cv_file_magic_cmd=/usr/bin/file
11941 case $host_cpu in
11942 ia64*)
11943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11944 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11945 ;;
11946 hppa*64*)
11947 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]'
11948 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11949 ;;
11950 *)
11951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11952 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11953 ;;
11954 esac
11955 ;;
11956
11957 interix[3-9]*)
11958 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11960 ;;
11961
11962 irix5* | irix6* | nonstopux*)
11963 case $LD in
11964 *-32|*"-32 ") libmagic=32-bit;;
11965 *-n32|*"-n32 ") libmagic=N32;;
11966 *-64|*"-64 ") libmagic=64-bit;;
11967 *) libmagic=never-match;;
11968 esac
11969 lt_cv_deplibs_check_method=pass_all
11970 ;;
11971
11972 # This must be glibc/ELF.
11973 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11974 lt_cv_deplibs_check_method=pass_all
11975 ;;
11976
11977 netbsd*)
11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11980 else
11981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11982 fi
11983 ;;
11984
11985 newos6*)
11986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11987 lt_cv_file_magic_cmd=/usr/bin/file
11988 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11989 ;;
11990
11991 *nto* | *qnx*)
11992 lt_cv_deplibs_check_method=pass_all
11993 ;;
11994
11995 openbsd* | bitrig*)
11996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11998 else
11999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12000 fi
12001 ;;
12002
12003 osf3* | osf4* | osf5*)
12004 lt_cv_deplibs_check_method=pass_all
12005 ;;
12006
12007 rdos*)
12008 lt_cv_deplibs_check_method=pass_all
12009 ;;
12010
12011 solaris*)
12012 lt_cv_deplibs_check_method=pass_all
12013 ;;
12014
12015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12016 lt_cv_deplibs_check_method=pass_all
12017 ;;
12018
12019 sysv4 | sysv4.3*)
12020 case $host_vendor in
12021 motorola)
12022 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]'
12023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12024 ;;
12025 ncr)
12026 lt_cv_deplibs_check_method=pass_all
12027 ;;
12028 sequent)
12029 lt_cv_file_magic_cmd='/bin/file'
12030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12031 ;;
12032 sni)
12033 lt_cv_file_magic_cmd='/bin/file'
12034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12035 lt_cv_file_magic_test_file=/lib/libc.so
12036 ;;
12037 siemens)
12038 lt_cv_deplibs_check_method=pass_all
12039 ;;
12040 pc)
12041 lt_cv_deplibs_check_method=pass_all
12042 ;;
12043 esac
12044 ;;
12045
12046 tpf*)
12047 lt_cv_deplibs_check_method=pass_all
12048 ;;
12049 os2*)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052 esac
12053
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12056 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12057
12058 file_magic_glob=
12059 want_nocaseglob=no
12060 if test "$build" = "$host"; then
12061 case $host_os in
12062 mingw* | pw32*)
12063 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12064 want_nocaseglob=yes
12065 else
12066 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12067 fi
12068 ;;
12069 esac
12070 fi
12071
12072 file_magic_cmd=$lt_cv_file_magic_cmd
12073 deplibs_check_method=$lt_cv_deplibs_check_method
12074 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097 if test -n "$ac_tool_prefix"; then
12098 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12099 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_prog_DLLTOOL+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 if test -n "$DLLTOOL"; then
12106 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12107 else
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12110 do
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12115 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12118 fi
12119 done
12120 done
12121 IFS=$as_save_IFS
12122
12123 fi
12124 fi
12125 DLLTOOL=$ac_cv_prog_DLLTOOL
12126 if test -n "$DLLTOOL"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12128 $as_echo "$DLLTOOL" >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 fi
12133
12134
12135 fi
12136 if test -z "$ac_cv_prog_DLLTOOL"; then
12137 ac_ct_DLLTOOL=$DLLTOOL
12138 # Extract the first word of "dlltool", so it can be a program name with args.
12139 set dummy dlltool; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -n "$ac_ct_DLLTOOL"; then
12146 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159 done
12160 done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12166 if test -n "$ac_ct_DLLTOOL"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12168 $as_echo "$ac_ct_DLLTOOL" >&6; }
12169 else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174 if test "x$ac_ct_DLLTOOL" = x; then
12175 DLLTOOL="false"
12176 else
12177 case $cross_compiling:$ac_tool_warned in
12178 yes:)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181 ac_tool_warned=yes ;;
12182 esac
12183 DLLTOOL=$ac_ct_DLLTOOL
12184 fi
12185 else
12186 DLLTOOL="$ac_cv_prog_DLLTOOL"
12187 fi
12188
12189 test -z "$DLLTOOL" && DLLTOOL=dlltool
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12201 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12202 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 lt_cv_sharedlib_from_linklib_cmd='unknown'
12206
12207 case $host_os in
12208 cygwin* | mingw* | pw32* | cegcc*)
12209 # two different shell functions defined in ltmain.sh;
12210 # decide which one to use based on capabilities of $DLLTOOL
12211 case `$DLLTOOL --help 2>&1` in
12212 *--identify-strict*)
12213 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12214 ;;
12215 *)
12216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12217 ;;
12218 esac
12219 ;;
12220 *)
12221 # fallback: assume linklib IS sharedlib
12222 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12223 ;;
12224 esac
12225
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12228 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12229 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12230 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12231
12232
12233
12234
12235
12236
12237
12238 if test -n "$ac_tool_prefix"; then
12239 for ac_prog in ar
12240 do
12241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_AR+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 if test -n "$AR"; then
12249 ac_cv_prog_AR="$AR" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262 done
12263 done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 AR=$ac_cv_prog_AR
12269 if test -n "$AR"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12271 $as_echo "$AR" >&6; }
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278 test -n "$AR" && break
12279 done
12280 fi
12281 if test -z "$AR"; then
12282 ac_ct_AR=$AR
12283 for ac_prog in ar
12284 do
12285 # Extract the first word of "$ac_prog", so it can be a program name with args.
12286 set dummy $ac_prog; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 if test -n "$ac_ct_AR"; then
12293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_ac_ct_AR="$ac_prog"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306 done
12307 done
12308 IFS=$as_save_IFS
12309
12310 fi
12311 fi
12312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12313 if test -n "$ac_ct_AR"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12315 $as_echo "$ac_ct_AR" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322 test -n "$ac_ct_AR" && break
12323 done
12324
12325 if test "x$ac_ct_AR" = x; then
12326 AR="false"
12327 else
12328 case $cross_compiling:$ac_tool_warned in
12329 yes:)
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12332 ac_tool_warned=yes ;;
12333 esac
12334 AR=$ac_ct_AR
12335 fi
12336 fi
12337
12338 : ${AR=ar}
12339 : ${AR_FLAGS=cru}
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12352 $as_echo_n "checking for archiver @FILE support... " >&6; }
12353 if ${lt_cv_ar_at_file+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 lt_cv_ar_at_file=no
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 int
12361 main ()
12362 {
12363
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 echo conftest.$ac_objext > conftest.lst
12370 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12372 (eval $lt_ar_try) 2>&5
12373 ac_status=$?
12374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12375 test $ac_status = 0; }
12376 if test 0 -eq "$ac_status"; then
12377 # Ensure the archiver fails upon bogus file names.
12378 rm -f conftest.$ac_objext libconftest.a
12379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12380 (eval $lt_ar_try) 2>&5
12381 ac_status=$?
12382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383 test $ac_status = 0; }
12384 if test 0 -ne "$ac_status"; then
12385 lt_cv_ar_at_file=@
12386 fi
12387 fi
12388 rm -f conftest.* libconftest.a
12389
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12395 $as_echo "$lt_cv_ar_at_file" >&6; }
12396
12397 if test no = "$lt_cv_ar_at_file"; then
12398 archiver_list_spec=
12399 else
12400 archiver_list_spec=$lt_cv_ar_at_file
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409 if test -n "$ac_tool_prefix"; then
12410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12411 set dummy ${ac_tool_prefix}strip; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_prog_STRIP+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$STRIP"; then
12418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12430 fi
12431 done
12432 done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 STRIP=$ac_cv_prog_STRIP
12438 if test -n "$STRIP"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12440 $as_echo "$STRIP" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 fi
12448 if test -z "$ac_cv_prog_STRIP"; then
12449 ac_ct_STRIP=$STRIP
12450 # Extract the first word of "strip", so it can be a program name with args.
12451 set dummy strip; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$ac_ct_STRIP"; then
12458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_ac_ct_STRIP="strip"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12478 if test -n "$ac_ct_STRIP"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12480 $as_echo "$ac_ct_STRIP" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486 if test "x$ac_ct_STRIP" = x; then
12487 STRIP=":"
12488 else
12489 case $cross_compiling:$ac_tool_warned in
12490 yes:)
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12493 ac_tool_warned=yes ;;
12494 esac
12495 STRIP=$ac_ct_STRIP
12496 fi
12497 else
12498 STRIP="$ac_cv_prog_STRIP"
12499 fi
12500
12501 test -z "$STRIP" && STRIP=:
12502
12503
12504
12505
12506
12507
12508 if test -n "$ac_tool_prefix"; then
12509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if ${ac_cv_prog_RANLIB+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 if test -n "$RANLIB"; then
12517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12529 fi
12530 done
12531 done
12532 IFS=$as_save_IFS
12533
12534 fi
12535 fi
12536 RANLIB=$ac_cv_prog_RANLIB
12537 if test -n "$RANLIB"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12539 $as_echo "$RANLIB" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544
12545
12546 fi
12547 if test -z "$ac_cv_prog_RANLIB"; then
12548 ac_ct_RANLIB=$RANLIB
12549 # Extract the first word of "ranlib", so it can be a program name with args.
12550 set dummy ranlib; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 if test -n "$ac_ct_RANLIB"; then
12557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12558 else
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12561 do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12566 ac_cv_prog_ac_ct_RANLIB="ranlib"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570 done
12571 done
12572 IFS=$as_save_IFS
12573
12574 fi
12575 fi
12576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12577 if test -n "$ac_ct_RANLIB"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12579 $as_echo "$ac_ct_RANLIB" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585 if test "x$ac_ct_RANLIB" = x; then
12586 RANLIB=":"
12587 else
12588 case $cross_compiling:$ac_tool_warned in
12589 yes:)
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12592 ac_tool_warned=yes ;;
12593 esac
12594 RANLIB=$ac_ct_RANLIB
12595 fi
12596 else
12597 RANLIB="$ac_cv_prog_RANLIB"
12598 fi
12599
12600 test -z "$RANLIB" && RANLIB=:
12601
12602
12603
12604
12605
12606
12607 # Determine commands to create old-style static archives.
12608 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12609 old_postinstall_cmds='chmod 644 $oldlib'
12610 old_postuninstall_cmds=
12611
12612 if test -n "$RANLIB"; then
12613 case $host_os in
12614 bitrig* | openbsd*)
12615 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12616 ;;
12617 *)
12618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12619 ;;
12620 esac
12621 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12622 fi
12623
12624 case $host_os in
12625 darwin*)
12626 lock_old_archive_extraction=yes ;;
12627 *)
12628 lock_old_archive_extraction=no ;;
12629 esac
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669 # If no C compiler was specified, use CC.
12670 LTCC=${LTCC-"$CC"}
12671
12672 # If no C compiler flags were specified, use CFLAGS.
12673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12674
12675 # Allow CC to be a program name with arguments.
12676 compiler=$CC
12677
12678
12679 # Check for command to grab the raw symbol name followed by C symbol from nm.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12681 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12682 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685
12686 # These are sane defaults that work on at least a few old systems.
12687 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12688
12689 # Character class describing NM global symbol codes.
12690 symcode='[BCDEGRST]'
12691
12692 # Regexp to match symbols that can be accessed directly from C.
12693 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12694
12695 # Define system-specific variables.
12696 case $host_os in
12697 aix*)
12698 symcode='[BCDT]'
12699 ;;
12700 cygwin* | mingw* | pw32* | cegcc*)
12701 symcode='[ABCDGISTW]'
12702 ;;
12703 hpux*)
12704 if test ia64 = "$host_cpu"; then
12705 symcode='[ABCDEGRST]'
12706 fi
12707 ;;
12708 irix* | nonstopux*)
12709 symcode='[BCDEGRST]'
12710 ;;
12711 osf*)
12712 symcode='[BCDEGQRST]'
12713 ;;
12714 solaris*)
12715 symcode='[BDRT]'
12716 ;;
12717 sco3.2v5*)
12718 symcode='[DT]'
12719 ;;
12720 sysv4.2uw2*)
12721 symcode='[DT]'
12722 ;;
12723 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12724 symcode='[ABDT]'
12725 ;;
12726 sysv4)
12727 symcode='[DFNSTU]'
12728 ;;
12729 esac
12730
12731 # If we're using GNU nm, then use its standard symbol codes.
12732 case `$NM -V 2>&1` in
12733 *GNU* | *'with BFD'*)
12734 symcode='[ABCDGIRSTW]' ;;
12735 esac
12736
12737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12738 # Gets list of data symbols to import.
12739 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12740 # Adjust the below global symbol transforms to fixup imported variables.
12741 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12742 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12743 lt_c_name_lib_hook="\
12744 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12745 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12746 else
12747 # Disable hooks by default.
12748 lt_cv_sys_global_symbol_to_import=
12749 lt_cdecl_hook=
12750 lt_c_name_hook=
12751 lt_c_name_lib_hook=
12752 fi
12753
12754 # Transform an extracted symbol line into a proper C declaration.
12755 # Some systems (esp. on ia64) link data and code symbols differently,
12756 # so use this general approach.
12757 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12758 $lt_cdecl_hook\
12759 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12760 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12761
12762 # Transform an extracted symbol line into symbol name and symbol address
12763 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12764 $lt_c_name_hook\
12765 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12766 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12767
12768 # Transform an extracted symbol line into symbol name with lib prefix and
12769 # symbol address.
12770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12771 $lt_c_name_lib_hook\
12772 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12773 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12774 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12775
12776 # Handle CRLF in mingw tool chain
12777 opt_cr=
12778 case $build_os in
12779 mingw*)
12780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12781 ;;
12782 esac
12783
12784 # Try without a prefix underscore, then with it.
12785 for ac_symprfx in "" "_"; do
12786
12787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12788 symxfrm="\\1 $ac_symprfx\\2 \\2"
12789
12790 # Write the raw and C identifiers.
12791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12792 # Fake it for dumpbin and say T for any non-static function,
12793 # D for any global variable and I for any imported variable.
12794 # Also find C++ and __fastcall symbols from MSVC++,
12795 # which start with @ or ?.
12796 lt_cv_sys_global_symbol_pipe="$AWK '"\
12797 " {last_section=section; section=\$ 3};"\
12798 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12799 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12800 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12801 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12802 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12803 " \$ 0!~/External *\|/{next};"\
12804 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12805 " {if(hide[section]) next};"\
12806 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12807 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12808 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12809 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12810 " ' prfx=^$ac_symprfx"
12811 else
12812 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12813 fi
12814 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12815
12816 # Check to see that the pipe works correctly.
12817 pipe_works=no
12818
12819 rm -f conftest*
12820 cat > conftest.$ac_ext <<_LT_EOF
12821 #ifdef __cplusplus
12822 extern "C" {
12823 #endif
12824 char nm_test_var;
12825 void nm_test_func(void);
12826 void nm_test_func(void){}
12827 #ifdef __cplusplus
12828 }
12829 #endif
12830 int main(){nm_test_var='a';nm_test_func();return(0);}
12831 _LT_EOF
12832
12833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834 (eval $ac_compile) 2>&5
12835 ac_status=$?
12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837 test $ac_status = 0; }; then
12838 # Now try to grab the symbols.
12839 nlist=conftest.nm
12840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12841 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12842 ac_status=$?
12843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12844 test $ac_status = 0; } && test -s "$nlist"; then
12845 # Try sorting and uniquifying the output.
12846 if sort "$nlist" | uniq > "$nlist"T; then
12847 mv -f "$nlist"T "$nlist"
12848 else
12849 rm -f "$nlist"T
12850 fi
12851
12852 # Make sure that we snagged all the symbols we need.
12853 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12854 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12855 cat <<_LT_EOF > conftest.$ac_ext
12856 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12857 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12858 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12859 relocations are performed -- see ld's documentation on pseudo-relocs. */
12860 # define LT_DLSYM_CONST
12861 #elif defined __osf__
12862 /* This system does not cope well with relocations in const data. */
12863 # define LT_DLSYM_CONST
12864 #else
12865 # define LT_DLSYM_CONST const
12866 #endif
12867
12868 #ifdef __cplusplus
12869 extern "C" {
12870 #endif
12871
12872 _LT_EOF
12873 # Now generate the symbol file.
12874 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12875
12876 cat <<_LT_EOF >> conftest.$ac_ext
12877
12878 /* The mapping between symbol names and symbols. */
12879 LT_DLSYM_CONST struct {
12880 const char *name;
12881 void *address;
12882 }
12883 lt__PROGRAM__LTX_preloaded_symbols[] =
12884 {
12885 { "@PROGRAM@", (void *) 0 },
12886 _LT_EOF
12887 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12888 cat <<\_LT_EOF >> conftest.$ac_ext
12889 {0, (void *) 0}
12890 };
12891
12892 /* This works around a problem in FreeBSD linker */
12893 #ifdef FREEBSD_WORKAROUND
12894 static const void *lt_preloaded_setup() {
12895 return lt__PROGRAM__LTX_preloaded_symbols;
12896 }
12897 #endif
12898
12899 #ifdef __cplusplus
12900 }
12901 #endif
12902 _LT_EOF
12903 # Now try linking the two files.
12904 mv conftest.$ac_objext conftstm.$ac_objext
12905 lt_globsym_save_LIBS=$LIBS
12906 lt_globsym_save_CFLAGS=$CFLAGS
12907 LIBS=conftstm.$ac_objext
12908 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12910 (eval $ac_link) 2>&5
12911 ac_status=$?
12912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12914 pipe_works=yes
12915 fi
12916 LIBS=$lt_globsym_save_LIBS
12917 CFLAGS=$lt_globsym_save_CFLAGS
12918 else
12919 echo "cannot find nm_test_func in $nlist" >&5
12920 fi
12921 else
12922 echo "cannot find nm_test_var in $nlist" >&5
12923 fi
12924 else
12925 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12926 fi
12927 else
12928 echo "$progname: failed program was:" >&5
12929 cat conftest.$ac_ext >&5
12930 fi
12931 rm -rf conftest* conftst*
12932
12933 # Do not use the global_symbol_pipe unless it works.
12934 if test yes = "$pipe_works"; then
12935 break
12936 else
12937 lt_cv_sys_global_symbol_pipe=
12938 fi
12939 done
12940
12941 fi
12942
12943 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12944 lt_cv_sys_global_symbol_to_cdecl=
12945 fi
12946 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12948 $as_echo "failed" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12951 $as_echo "ok" >&6; }
12952 fi
12953
12954 # Response file support.
12955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12956 nm_file_list_spec='@'
12957 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12958 nm_file_list_spec='@'
12959 fi
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12998 $as_echo_n "checking for sysroot... " >&6; }
12999
13000 # Check whether --with-sysroot was given.
13001 if test "${with_sysroot+set}" = set; then :
13002 withval=$with_sysroot;
13003 else
13004 with_sysroot=no
13005 fi
13006
13007
13008 lt_sysroot=
13009 case $with_sysroot in #(
13010 yes)
13011 if test yes = "$GCC"; then
13012 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13013 fi
13014 ;; #(
13015 /*)
13016 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13017 ;; #(
13018 no|'')
13019 ;; #(
13020 *)
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13022 $as_echo "$with_sysroot" >&6; }
13023 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13024 ;;
13025 esac
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13028 $as_echo "${lt_sysroot:-no}" >&6; }
13029
13030
13031
13032
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13035 $as_echo_n "checking for a working dd... " >&6; }
13036 if ${ac_cv_path_lt_DD+:} false; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 printf 0123456789abcdef0123456789abcdef >conftest.i
13040 cat conftest.i conftest.i >conftest2.i
13041 : ${lt_DD:=$DD}
13042 if test -z "$lt_DD"; then
13043 ac_path_lt_DD_found=false
13044 # Loop through the user's path and test for each of PROGNAME-LIST
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_prog in dd; do
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13053 as_fn_executable_p "$ac_path_lt_DD" || continue
13054 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13055 cmp -s conftest.i conftest.out \
13056 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13057 fi
13058 $ac_path_lt_DD_found && break 3
13059 done
13060 done
13061 done
13062 IFS=$as_save_IFS
13063 if test -z "$ac_cv_path_lt_DD"; then
13064 :
13065 fi
13066 else
13067 ac_cv_path_lt_DD=$lt_DD
13068 fi
13069
13070 rm -f conftest.i conftest2.i conftest.out
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13073 $as_echo "$ac_cv_path_lt_DD" >&6; }
13074
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13077 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13078 if ${lt_cv_truncate_bin+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 printf 0123456789abcdef0123456789abcdef >conftest.i
13082 cat conftest.i conftest.i >conftest2.i
13083 lt_cv_truncate_bin=
13084 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13085 cmp -s conftest.i conftest.out \
13086 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13087 fi
13088 rm -f conftest.i conftest2.i conftest.out
13089 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13092 $as_echo "$lt_cv_truncate_bin" >&6; }
13093
13094
13095
13096
13097
13098
13099
13100 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13101 func_cc_basename ()
13102 {
13103 for cc_temp in $*""; do
13104 case $cc_temp in
13105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13107 \-*) ;;
13108 *) break;;
13109 esac
13110 done
13111 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13112 }
13113
13114 # Check whether --enable-libtool-lock was given.
13115 if test "${enable_libtool_lock+set}" = set; then :
13116 enableval=$enable_libtool_lock;
13117 fi
13118
13119 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13120
13121 # Some flags need to be propagated to the compiler or linker for good
13122 # libtool support.
13123 case $host in
13124 ia64-*-hpux*)
13125 # Find out what ABI is being produced by ac_compile, and set mode
13126 # options accordingly.
13127 echo 'int i;' > conftest.$ac_ext
13128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13129 (eval $ac_compile) 2>&5
13130 ac_status=$?
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; }; then
13133 case `/usr/bin/file conftest.$ac_objext` in
13134 *ELF-32*)
13135 HPUX_IA64_MODE=32
13136 ;;
13137 *ELF-64*)
13138 HPUX_IA64_MODE=64
13139 ;;
13140 esac
13141 fi
13142 rm -rf conftest*
13143 ;;
13144 *-*-irix6*)
13145 # Find out what ABI is being produced by ac_compile, and set linker
13146 # options accordingly.
13147 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13149 (eval $ac_compile) 2>&5
13150 ac_status=$?
13151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13152 test $ac_status = 0; }; then
13153 if test yes = "$lt_cv_prog_gnu_ld"; then
13154 case `/usr/bin/file conftest.$ac_objext` in
13155 *32-bit*)
13156 LD="${LD-ld} -melf32bsmip"
13157 ;;
13158 *N32*)
13159 LD="${LD-ld} -melf32bmipn32"
13160 ;;
13161 *64-bit*)
13162 LD="${LD-ld} -melf64bmip"
13163 ;;
13164 esac
13165 else
13166 case `/usr/bin/file conftest.$ac_objext` in
13167 *32-bit*)
13168 LD="${LD-ld} -32"
13169 ;;
13170 *N32*)
13171 LD="${LD-ld} -n32"
13172 ;;
13173 *64-bit*)
13174 LD="${LD-ld} -64"
13175 ;;
13176 esac
13177 fi
13178 fi
13179 rm -rf conftest*
13180 ;;
13181
13182 mips64*-*linux*)
13183 # Find out what ABI is being produced by ac_compile, and set linker
13184 # options accordingly.
13185 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13187 (eval $ac_compile) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; }; then
13191 emul=elf
13192 case `/usr/bin/file conftest.$ac_objext` in
13193 *32-bit*)
13194 emul="${emul}32"
13195 ;;
13196 *64-bit*)
13197 emul="${emul}64"
13198 ;;
13199 esac
13200 case `/usr/bin/file conftest.$ac_objext` in
13201 *MSB*)
13202 emul="${emul}btsmip"
13203 ;;
13204 *LSB*)
13205 emul="${emul}ltsmip"
13206 ;;
13207 esac
13208 case `/usr/bin/file conftest.$ac_objext` in
13209 *N32*)
13210 emul="${emul}n32"
13211 ;;
13212 esac
13213 LD="${LD-ld} -m $emul"
13214 fi
13215 rm -rf conftest*
13216 ;;
13217
13218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13220 # Find out what ABI is being produced by ac_compile, and set linker
13221 # options accordingly. Note that the listed cases only cover the
13222 # situations where additional linker options are needed (such as when
13223 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13224 # vice versa); the common cases where no linker options are needed do
13225 # not appear in the list.
13226 echo 'int i;' > conftest.$ac_ext
13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13228 (eval $ac_compile) 2>&5
13229 ac_status=$?
13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 test $ac_status = 0; }; then
13232 case `/usr/bin/file conftest.o` in
13233 *32-bit*)
13234 case $host in
13235 x86_64-*kfreebsd*-gnu)
13236 LD="${LD-ld} -m elf_i386_fbsd"
13237 ;;
13238 x86_64-*linux*)
13239 case `/usr/bin/file conftest.o` in
13240 *x86-64*)
13241 LD="${LD-ld} -m elf32_x86_64"
13242 ;;
13243 *)
13244 LD="${LD-ld} -m elf_i386"
13245 ;;
13246 esac
13247 ;;
13248 powerpc64le-*linux*)
13249 LD="${LD-ld} -m elf32lppclinux"
13250 ;;
13251 powerpc64-*linux*)
13252 LD="${LD-ld} -m elf32ppclinux"
13253 ;;
13254 s390x-*linux*)
13255 LD="${LD-ld} -m elf_s390"
13256 ;;
13257 sparc64-*linux*)
13258 LD="${LD-ld} -m elf32_sparc"
13259 ;;
13260 esac
13261 ;;
13262 *64-bit*)
13263 case $host in
13264 x86_64-*kfreebsd*-gnu)
13265 LD="${LD-ld} -m elf_x86_64_fbsd"
13266 ;;
13267 x86_64-*linux*)
13268 LD="${LD-ld} -m elf_x86_64"
13269 ;;
13270 powerpcle-*linux*)
13271 LD="${LD-ld} -m elf64lppc"
13272 ;;
13273 powerpc-*linux*)
13274 LD="${LD-ld} -m elf64ppc"
13275 ;;
13276 s390*-*linux*|s390*-*tpf*)
13277 LD="${LD-ld} -m elf64_s390"
13278 ;;
13279 sparc*-*linux*)
13280 LD="${LD-ld} -m elf64_sparc"
13281 ;;
13282 esac
13283 ;;
13284 esac
13285 fi
13286 rm -rf conftest*
13287 ;;
13288
13289 *-*-sco3.2v5*)
13290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13291 SAVE_CFLAGS=$CFLAGS
13292 CFLAGS="$CFLAGS -belf"
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13294 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13295 if ${lt_cv_cc_needs_belf+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 ac_ext=c
13299 ac_cpp='$CPP $CPPFLAGS'
13300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13303
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306
13307 int
13308 main ()
13309 {
13310
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 lt_cv_cc_needs_belf=yes
13317 else
13318 lt_cv_cc_needs_belf=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 ac_ext=c
13323 ac_cpp='$CPP $CPPFLAGS'
13324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13327
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13330 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13331 if test yes != "$lt_cv_cc_needs_belf"; then
13332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13333 CFLAGS=$SAVE_CFLAGS
13334 fi
13335 ;;
13336 *-*solaris*)
13337 # Find out what ABI is being produced by ac_compile, and set linker
13338 # options accordingly.
13339 echo 'int i;' > conftest.$ac_ext
13340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13341 (eval $ac_compile) 2>&5
13342 ac_status=$?
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 case `/usr/bin/file conftest.o` in
13346 *64-bit*)
13347 case $lt_cv_prog_gnu_ld in
13348 yes*)
13349 case $host in
13350 i?86-*-solaris*|x86_64-*-solaris*)
13351 LD="${LD-ld} -m elf_x86_64"
13352 ;;
13353 sparc*-*-solaris*)
13354 LD="${LD-ld} -m elf64_sparc"
13355 ;;
13356 esac
13357 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13358 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13359 LD=${LD-ld}_sol2
13360 fi
13361 ;;
13362 *)
13363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13364 LD="${LD-ld} -64"
13365 fi
13366 ;;
13367 esac
13368 ;;
13369 esac
13370 fi
13371 rm -rf conftest*
13372 ;;
13373 esac
13374
13375 need_locks=$enable_libtool_lock
13376
13377 if test -n "$ac_tool_prefix"; then
13378 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13379 set dummy ${ac_tool_prefix}mt; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 if test -n "$MANIFEST_TOOL"; then
13386 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13387 else
13388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13390 do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13398 fi
13399 done
13400 done
13401 IFS=$as_save_IFS
13402
13403 fi
13404 fi
13405 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13406 if test -n "$MANIFEST_TOOL"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13408 $as_echo "$MANIFEST_TOOL" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412 fi
13413
13414
13415 fi
13416 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13417 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13418 # Extract the first word of "mt", so it can be a program name with args.
13419 set dummy mt; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test -n "$ac_ct_MANIFEST_TOOL"; then
13426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 break 2
13438 fi
13439 done
13440 done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13446 if test -n "$ac_ct_MANIFEST_TOOL"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13448 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13455 MANIFEST_TOOL=":"
13456 else
13457 case $cross_compiling:$ac_tool_warned in
13458 yes:)
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13461 ac_tool_warned=yes ;;
13462 esac
13463 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13464 fi
13465 else
13466 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13467 fi
13468
13469 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13471 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13472 if ${lt_cv_path_mainfest_tool+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 lt_cv_path_mainfest_tool=no
13476 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13477 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13478 cat conftest.err >&5
13479 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13480 lt_cv_path_mainfest_tool=yes
13481 fi
13482 rm -f conftest*
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13485 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13486 if test yes != "$lt_cv_path_mainfest_tool"; then
13487 MANIFEST_TOOL=:
13488 fi
13489
13490
13491
13492
13493
13494
13495 case $host_os in
13496 rhapsody* | darwin*)
13497 if test -n "$ac_tool_prefix"; then
13498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13499 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 if test -n "$DSYMUTIL"; then
13506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13518 fi
13519 done
13520 done
13521 IFS=$as_save_IFS
13522
13523 fi
13524 fi
13525 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13526 if test -n "$DSYMUTIL"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13528 $as_echo "$DSYMUTIL" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533
13534
13535 fi
13536 if test -z "$ac_cv_prog_DSYMUTIL"; then
13537 ac_ct_DSYMUTIL=$DSYMUTIL
13538 # Extract the first word of "dsymutil", so it can be a program name with args.
13539 set dummy dsymutil; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 if test -n "$ac_ct_DSYMUTIL"; then
13546 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559 done
13560 done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13566 if test -n "$ac_ct_DSYMUTIL"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13568 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573
13574 if test "x$ac_ct_DSYMUTIL" = x; then
13575 DSYMUTIL=":"
13576 else
13577 case $cross_compiling:$ac_tool_warned in
13578 yes:)
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13581 ac_tool_warned=yes ;;
13582 esac
13583 DSYMUTIL=$ac_ct_DSYMUTIL
13584 fi
13585 else
13586 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13587 fi
13588
13589 if test -n "$ac_tool_prefix"; then
13590 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13591 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_prog_NMEDIT+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 if test -n "$NMEDIT"; then
13598 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13599 else
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13602 do
13603 IFS=$as_save_IFS
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609 break 2
13610 fi
13611 done
13612 done
13613 IFS=$as_save_IFS
13614
13615 fi
13616 fi
13617 NMEDIT=$ac_cv_prog_NMEDIT
13618 if test -n "$NMEDIT"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13620 $as_echo "$NMEDIT" >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13624 fi
13625
13626
13627 fi
13628 if test -z "$ac_cv_prog_NMEDIT"; then
13629 ac_ct_NMEDIT=$NMEDIT
13630 # Extract the first word of "nmedit", so it can be a program name with args.
13631 set dummy nmedit; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$ac_ct_NMEDIT"; then
13638 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13658 if test -n "$ac_ct_NMEDIT"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13660 $as_echo "$ac_ct_NMEDIT" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664 fi
13665
13666 if test "x$ac_ct_NMEDIT" = x; then
13667 NMEDIT=":"
13668 else
13669 case $cross_compiling:$ac_tool_warned in
13670 yes:)
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13673 ac_tool_warned=yes ;;
13674 esac
13675 NMEDIT=$ac_ct_NMEDIT
13676 fi
13677 else
13678 NMEDIT="$ac_cv_prog_NMEDIT"
13679 fi
13680
13681 if test -n "$ac_tool_prefix"; then
13682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13683 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13685 $as_echo_n "checking for $ac_word... " >&6; }
13686 if ${ac_cv_prog_LIPO+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 if test -n "$LIPO"; then
13690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13691 else
13692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13693 for as_dir in $PATH
13694 do
13695 IFS=$as_save_IFS
13696 test -z "$as_dir" && as_dir=.
13697 for ac_exec_ext in '' $ac_executable_extensions; do
13698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13699 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 break 2
13702 fi
13703 done
13704 done
13705 IFS=$as_save_IFS
13706
13707 fi
13708 fi
13709 LIPO=$ac_cv_prog_LIPO
13710 if test -n "$LIPO"; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13712 $as_echo "$LIPO" >&6; }
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717
13718
13719 fi
13720 if test -z "$ac_cv_prog_LIPO"; then
13721 ac_ct_LIPO=$LIPO
13722 # Extract the first word of "lipo", so it can be a program name with args.
13723 set dummy lipo; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$ac_ct_LIPO"; then
13730 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13739 ac_cv_prog_ac_ct_LIPO="lipo"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13750 if test -n "$ac_ct_LIPO"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13752 $as_echo "$ac_ct_LIPO" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758 if test "x$ac_ct_LIPO" = x; then
13759 LIPO=":"
13760 else
13761 case $cross_compiling:$ac_tool_warned in
13762 yes:)
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13765 ac_tool_warned=yes ;;
13766 esac
13767 LIPO=$ac_ct_LIPO
13768 fi
13769 else
13770 LIPO="$ac_cv_prog_LIPO"
13771 fi
13772
13773 if test -n "$ac_tool_prefix"; then
13774 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13775 set dummy ${ac_tool_prefix}otool; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_prog_OTOOL+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$OTOOL"; then
13782 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13794 fi
13795 done
13796 done
13797 IFS=$as_save_IFS
13798
13799 fi
13800 fi
13801 OTOOL=$ac_cv_prog_OTOOL
13802 if test -n "$OTOOL"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13804 $as_echo "$OTOOL" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809
13810
13811 fi
13812 if test -z "$ac_cv_prog_OTOOL"; then
13813 ac_ct_OTOOL=$OTOOL
13814 # Extract the first word of "otool", so it can be a program name with args.
13815 set dummy otool; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$ac_ct_OTOOL"; then
13822 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_OTOOL="otool"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13842 if test -n "$ac_ct_OTOOL"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13844 $as_echo "$ac_ct_OTOOL" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850 if test "x$ac_ct_OTOOL" = x; then
13851 OTOOL=":"
13852 else
13853 case $cross_compiling:$ac_tool_warned in
13854 yes:)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859 OTOOL=$ac_ct_OTOOL
13860 fi
13861 else
13862 OTOOL="$ac_cv_prog_OTOOL"
13863 fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13867 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869 $as_echo_n "checking for $ac_word... " >&6; }
13870 if ${ac_cv_prog_OTOOL64+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -n "$OTOOL64"; then
13874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13878 do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887 done
13888 done
13889 IFS=$as_save_IFS
13890
13891 fi
13892 fi
13893 OTOOL64=$ac_cv_prog_OTOOL64
13894 if test -n "$OTOOL64"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13896 $as_echo "$OTOOL64" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13900 fi
13901
13902
13903 fi
13904 if test -z "$ac_cv_prog_OTOOL64"; then
13905 ac_ct_OTOOL64=$OTOOL64
13906 # Extract the first word of "otool64", so it can be a program name with args.
13907 set dummy otool64; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$ac_ct_OTOOL64"; then
13914 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13923 ac_cv_prog_ac_ct_OTOOL64="otool64"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13934 if test -n "$ac_ct_OTOOL64"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13936 $as_echo "$ac_ct_OTOOL64" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942 if test "x$ac_ct_OTOOL64" = x; then
13943 OTOOL64=":"
13944 else
13945 case $cross_compiling:$ac_tool_warned in
13946 yes:)
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13949 ac_tool_warned=yes ;;
13950 esac
13951 OTOOL64=$ac_ct_OTOOL64
13952 fi
13953 else
13954 OTOOL64="$ac_cv_prog_OTOOL64"
13955 fi
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13984 $as_echo_n "checking for -single_module linker flag... " >&6; }
13985 if ${lt_cv_apple_cc_single_mod+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 lt_cv_apple_cc_single_mod=no
13989 if test -z "$LT_MULTI_MODULE"; then
13990 # By default we will add the -single_module flag. You can override
13991 # by either setting the environment variable LT_MULTI_MODULE
13992 # non-empty at configure time, or by adding -multi_module to the
13993 # link flags.
13994 rm -rf libconftest.dylib*
13995 echo "int foo(void){return 1;}" > conftest.c
13996 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13997 -dynamiclib -Wl,-single_module conftest.c" >&5
13998 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13999 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14000 _lt_result=$?
14001 # If there is a non-empty error log, and "single_module"
14002 # appears in it, assume the flag caused a linker warning
14003 if test -s conftest.err && $GREP single_module conftest.err; then
14004 cat conftest.err >&5
14005 # Otherwise, if the output was created with a 0 exit code from
14006 # the compiler, it worked.
14007 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14008 lt_cv_apple_cc_single_mod=yes
14009 else
14010 cat conftest.err >&5
14011 fi
14012 rm -rf libconftest.dylib*
14013 rm -f conftest.*
14014 fi
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14017 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14020 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14021 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_ld_exported_symbols_list=no
14025 save_LDFLAGS=$LDFLAGS
14026 echo "_main" > conftest.sym
14027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030
14031 int
14032 main ()
14033 {
14034
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_link "$LINENO"; then :
14040 lt_cv_ld_exported_symbols_list=yes
14041 else
14042 lt_cv_ld_exported_symbols_list=no
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046 LDFLAGS=$save_LDFLAGS
14047
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14050 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14053 $as_echo_n "checking for -force_load linker flag... " >&6; }
14054 if ${lt_cv_ld_force_load+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 lt_cv_ld_force_load=no
14058 cat > conftest.c << _LT_EOF
14059 int forced_loaded() { return 2;}
14060 _LT_EOF
14061 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14062 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14063 echo "$AR cru libconftest.a conftest.o" >&5
14064 $AR cru libconftest.a conftest.o 2>&5
14065 echo "$RANLIB libconftest.a" >&5
14066 $RANLIB libconftest.a 2>&5
14067 cat > conftest.c << _LT_EOF
14068 int main() { return 0;}
14069 _LT_EOF
14070 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14071 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14072 _lt_result=$?
14073 if test -s conftest.err && $GREP force_load conftest.err; then
14074 cat conftest.err >&5
14075 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14076 lt_cv_ld_force_load=yes
14077 else
14078 cat conftest.err >&5
14079 fi
14080 rm -f conftest.err libconftest.a conftest conftest.c
14081 rm -rf conftest.dSYM
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14085 $as_echo "$lt_cv_ld_force_load" >&6; }
14086 case $host_os in
14087 rhapsody* | darwin1.[012])
14088 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14089 darwin1.*)
14090 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14091 darwin*) # darwin 5.x on
14092 # if running on 10.5 or later, the deployment target defaults
14093 # to the OS version, if on x86, and 10.4, the deployment
14094 # target defaults to 10.4. Don't you love it?
14095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14096 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14097 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14098 10.[012][,.]*)
14099 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14100 10.*)
14101 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14102 esac
14103 ;;
14104 esac
14105 if test yes = "$lt_cv_apple_cc_single_mod"; then
14106 _lt_dar_single_mod='$single_module'
14107 fi
14108 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14109 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14110 else
14111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14112 fi
14113 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14114 _lt_dsymutil='~$DSYMUTIL $lib || :'
14115 else
14116 _lt_dsymutil=
14117 fi
14118 ;;
14119 esac
14120
14121 # func_munge_path_list VARIABLE PATH
14122 # -----------------------------------
14123 # VARIABLE is name of variable containing _space_ separated list of
14124 # directories to be munged by the contents of PATH, which is string
14125 # having a format:
14126 # "DIR[:DIR]:"
14127 # string "DIR[ DIR]" will be prepended to VARIABLE
14128 # ":DIR[:DIR]"
14129 # string "DIR[ DIR]" will be appended to VARIABLE
14130 # "DIRP[:DIRP]::[DIRA:]DIRA"
14131 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14132 # "DIRA[ DIRA]" will be appended to VARIABLE
14133 # "DIR[:DIR]"
14134 # VARIABLE will be replaced by "DIR[ DIR]"
14135 func_munge_path_list ()
14136 {
14137 case x$2 in
14138 x)
14139 ;;
14140 *:)
14141 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14142 ;;
14143 x:*)
14144 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14145 ;;
14146 *::*)
14147 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14148 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14149 ;;
14150 *)
14151 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14152 ;;
14153 esac
14154 }
14155
14156 for ac_header in dlfcn.h
14157 do :
14158 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14159 "
14160 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE_DLFCN_H 1
14163 _ACEOF
14164
14165 fi
14166
14167 done
14168
14169
14170
14171
14172
14173 # Set options
14174
14175
14176
14177 enable_dlopen=no
14178
14179
14180 enable_win32_dll=no
14181
14182
14183 # Check whether --enable-shared was given.
14184 if test "${enable_shared+set}" = set; then :
14185 enableval=$enable_shared; p=${PACKAGE-default}
14186 case $enableval in
14187 yes) enable_shared=yes ;;
14188 no) enable_shared=no ;;
14189 *)
14190 enable_shared=no
14191 # Look at the argument we got. We use all the common list separators.
14192 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14193 for pkg in $enableval; do
14194 IFS=$lt_save_ifs
14195 if test "X$pkg" = "X$p"; then
14196 enable_shared=yes
14197 fi
14198 done
14199 IFS=$lt_save_ifs
14200 ;;
14201 esac
14202 else
14203 enable_shared=yes
14204 fi
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216 # Check whether --with-pic was given.
14217 if test "${with_pic+set}" = set; then :
14218 withval=$with_pic; lt_p=${PACKAGE-default}
14219 case $withval in
14220 yes|no) pic_mode=$withval ;;
14221 *)
14222 pic_mode=default
14223 # Look at the argument we got. We use all the common list separators.
14224 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14225 for lt_pkg in $withval; do
14226 IFS=$lt_save_ifs
14227 if test "X$lt_pkg" = "X$lt_p"; then
14228 pic_mode=yes
14229 fi
14230 done
14231 IFS=$lt_save_ifs
14232 ;;
14233 esac
14234 else
14235 pic_mode=default
14236 fi
14237
14238
14239
14240
14241
14242
14243
14244
14245 # Check whether --enable-fast-install was given.
14246 if test "${enable_fast_install+set}" = set; then :
14247 enableval=$enable_fast_install; p=${PACKAGE-default}
14248 case $enableval in
14249 yes) enable_fast_install=yes ;;
14250 no) enable_fast_install=no ;;
14251 *)
14252 enable_fast_install=no
14253 # Look at the argument we got. We use all the common list separators.
14254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14255 for pkg in $enableval; do
14256 IFS=$lt_save_ifs
14257 if test "X$pkg" = "X$p"; then
14258 enable_fast_install=yes
14259 fi
14260 done
14261 IFS=$lt_save_ifs
14262 ;;
14263 esac
14264 else
14265 enable_fast_install=yes
14266 fi
14267
14268
14269
14270
14271
14272
14273
14274
14275 shared_archive_member_spec=
14276 case $host,$enable_shared in
14277 power*-*-aix[5-9]*,yes)
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14279 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14280
14281 # Check whether --with-aix-soname was given.
14282 if test "${with_aix_soname+set}" = set; then :
14283 withval=$with_aix_soname; case $withval in
14284 aix|svr4|both)
14285 ;;
14286 *)
14287 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14288 ;;
14289 esac
14290 lt_cv_with_aix_soname=$with_aix_soname
14291 else
14292 if ${lt_cv_with_aix_soname+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 lt_cv_with_aix_soname=aix
14296 fi
14297
14298 with_aix_soname=$lt_cv_with_aix_soname
14299 fi
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14302 $as_echo "$with_aix_soname" >&6; }
14303 if test aix != "$with_aix_soname"; then
14304 # For the AIX way of multilib, we name the shared archive member
14305 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14306 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14307 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14308 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14309 if test 64 = "${OBJECT_MODE-32}"; then
14310 shared_archive_member_spec=shr_64
14311 else
14312 shared_archive_member_spec=shr
14313 fi
14314 fi
14315 ;;
14316 *)
14317 with_aix_soname=aix
14318 ;;
14319 esac
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 # This can be used to rebuild libtool when needed
14331 LIBTOOL_DEPS=$ltmain
14332
14333 # Always use our own libtool.
14334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365 test -z "$LN_S" && LN_S="ln -s"
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380 if test -n "${ZSH_VERSION+set}"; then
14381 setopt NO_GLOB_SUBST
14382 fi
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14385 $as_echo_n "checking for objdir... " >&6; }
14386 if ${lt_cv_objdir+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 rm -f .libs 2>/dev/null
14390 mkdir .libs 2>/dev/null
14391 if test -d .libs; then
14392 lt_cv_objdir=.libs
14393 else
14394 # MS-DOS does not allow filenames that begin with a dot.
14395 lt_cv_objdir=_libs
14396 fi
14397 rmdir .libs 2>/dev/null
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14400 $as_echo "$lt_cv_objdir" >&6; }
14401 objdir=$lt_cv_objdir
14402
14403
14404
14405
14406
14407 cat >>confdefs.h <<_ACEOF
14408 #define LT_OBJDIR "$lt_cv_objdir/"
14409 _ACEOF
14410
14411
14412
14413
14414 case $host_os in
14415 aix3*)
14416 # AIX sometimes has problems with the GCC collect2 program. For some
14417 # reason, if we set the COLLECT_NAMES environment variable, the problems
14418 # vanish in a puff of smoke.
14419 if test set != "${COLLECT_NAMES+set}"; then
14420 COLLECT_NAMES=
14421 export COLLECT_NAMES
14422 fi
14423 ;;
14424 esac
14425
14426 # Global variables:
14427 ofile=libtool
14428 can_build_shared=yes
14429
14430 # All known linkers require a '.a' archive for static linking (except MSVC,
14431 # which needs '.lib').
14432 libext=a
14433
14434 with_gnu_ld=$lt_cv_prog_gnu_ld
14435
14436 old_CC=$CC
14437 old_CFLAGS=$CFLAGS
14438
14439 # Set sane defaults for various variables
14440 test -z "$CC" && CC=cc
14441 test -z "$LTCC" && LTCC=$CC
14442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14443 test -z "$LD" && LD=ld
14444 test -z "$ac_objext" && ac_objext=o
14445
14446 func_cc_basename $compiler
14447 cc_basename=$func_cc_basename_result
14448
14449
14450 # Only perform the check for file, if the check method requires it
14451 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14452 case $deplibs_check_method in
14453 file_magic*)
14454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14456 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14457 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 case $MAGIC_CMD in
14461 [\\/*] | ?:[\\/]*)
14462 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14463 ;;
14464 *)
14465 lt_save_MAGIC_CMD=$MAGIC_CMD
14466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14468 for ac_dir in $ac_dummy; do
14469 IFS=$lt_save_ifs
14470 test -z "$ac_dir" && ac_dir=.
14471 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14472 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14473 if test -n "$file_magic_test_file"; then
14474 case $deplibs_check_method in
14475 "file_magic "*)
14476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14477 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14479 $EGREP "$file_magic_regex" > /dev/null; then
14480 :
14481 else
14482 cat <<_LT_EOF 1>&2
14483
14484 *** Warning: the command libtool uses to detect shared libraries,
14485 *** $file_magic_cmd, produces output that libtool cannot recognize.
14486 *** The result is that libtool may fail to recognize shared libraries
14487 *** as such. This will affect the creation of libtool libraries that
14488 *** depend on shared libraries, but programs linked with such libtool
14489 *** libraries will work regardless of this problem. Nevertheless, you
14490 *** may want to report the problem to your system manager and/or to
14491 *** bug-libtool (at] gnu.org
14492
14493 _LT_EOF
14494 fi ;;
14495 esac
14496 fi
14497 break
14498 fi
14499 done
14500 IFS=$lt_save_ifs
14501 MAGIC_CMD=$lt_save_MAGIC_CMD
14502 ;;
14503 esac
14504 fi
14505
14506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14507 if test -n "$MAGIC_CMD"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14509 $as_echo "$MAGIC_CMD" >&6; }
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512 $as_echo "no" >&6; }
14513 fi
14514
14515
14516
14517
14518
14519 if test -z "$lt_cv_path_MAGIC_CMD"; then
14520 if test -n "$ac_tool_prefix"; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14522 $as_echo_n "checking for file... " >&6; }
14523 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 case $MAGIC_CMD in
14527 [\\/*] | ?:[\\/]*)
14528 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14529 ;;
14530 *)
14531 lt_save_MAGIC_CMD=$MAGIC_CMD
14532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14534 for ac_dir in $ac_dummy; do
14535 IFS=$lt_save_ifs
14536 test -z "$ac_dir" && ac_dir=.
14537 if test -f "$ac_dir/file"; then
14538 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14539 if test -n "$file_magic_test_file"; then
14540 case $deplibs_check_method in
14541 "file_magic "*)
14542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14543 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14545 $EGREP "$file_magic_regex" > /dev/null; then
14546 :
14547 else
14548 cat <<_LT_EOF 1>&2
14549
14550 *** Warning: the command libtool uses to detect shared libraries,
14551 *** $file_magic_cmd, produces output that libtool cannot recognize.
14552 *** The result is that libtool may fail to recognize shared libraries
14553 *** as such. This will affect the creation of libtool libraries that
14554 *** depend on shared libraries, but programs linked with such libtool
14555 *** libraries will work regardless of this problem. Nevertheless, you
14556 *** may want to report the problem to your system manager and/or to
14557 *** bug-libtool (at] gnu.org
14558
14559 _LT_EOF
14560 fi ;;
14561 esac
14562 fi
14563 break
14564 fi
14565 done
14566 IFS=$lt_save_ifs
14567 MAGIC_CMD=$lt_save_MAGIC_CMD
14568 ;;
14569 esac
14570 fi
14571
14572 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14573 if test -n "$MAGIC_CMD"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14575 $as_echo "$MAGIC_CMD" >&6; }
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14579 fi
14580
14581
14582 else
14583 MAGIC_CMD=:
14584 fi
14585 fi
14586
14587 fi
14588 ;;
14589 esac
14590
14591 # Use C for the default configuration in the libtool script
14592
14593 lt_save_CC=$CC
14594 ac_ext=c
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
14600
14601 # Source file extension for C test sources.
14602 ac_ext=c
14603
14604 # Object file extension for compiled C test sources.
14605 objext=o
14606 objext=$objext
14607
14608 # Code to be used in simple compile tests
14609 lt_simple_compile_test_code="int some_variable = 0;"
14610
14611 # Code to be used in simple link tests
14612 lt_simple_link_test_code='int main(){return(0);}'
14613
14614
14615
14616
14617
14618
14619
14620 # If no C compiler was specified, use CC.
14621 LTCC=${LTCC-"$CC"}
14622
14623 # If no C compiler flags were specified, use CFLAGS.
14624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14625
14626 # Allow CC to be a program name with arguments.
14627 compiler=$CC
14628
14629 # Save the default compiler, since it gets overwritten when the other
14630 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14631 compiler_DEFAULT=$CC
14632
14633 # save warnings/boilerplate of simple test code
14634 ac_outfile=conftest.$ac_objext
14635 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14637 _lt_compiler_boilerplate=`cat conftest.err`
14638 $RM conftest*
14639
14640 ac_outfile=conftest.$ac_objext
14641 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14643 _lt_linker_boilerplate=`cat conftest.err`
14644 $RM -r conftest*
14645
14646
14647 if test -n "$compiler"; then
14648
14649 lt_prog_compiler_no_builtin_flag=
14650
14651 if test yes = "$GCC"; then
14652 case $cc_basename in
14653 nvcc*)
14654 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14655 *)
14656 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14657 esac
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14660 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14661 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 lt_cv_prog_compiler_rtti_exceptions=no
14665 ac_outfile=conftest.$ac_objext
14666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14667 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 # The option is referenced via a variable to avoid confusing sed.
14673 lt_compile=`echo "$ac_compile" | $SED \
14674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676 -e 's:$: $lt_compiler_flag:'`
14677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14678 (eval "$lt_compile" 2>conftest.err)
14679 ac_status=$?
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 if (exit $ac_status) && test -s "$ac_outfile"; then
14683 # The compiler can only warn and ignore the option if not recognized
14684 # So say no if there are warnings other than the usual output.
14685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14688 lt_cv_prog_compiler_rtti_exceptions=yes
14689 fi
14690 fi
14691 $RM conftest*
14692
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14695 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14696
14697 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14699 else
14700 :
14701 fi
14702
14703 fi
14704
14705
14706
14707
14708
14709
14710 lt_prog_compiler_wl=
14711 lt_prog_compiler_pic=
14712 lt_prog_compiler_static=
14713
14714
14715 if test yes = "$GCC"; then
14716 lt_prog_compiler_wl='-Wl,'
14717 lt_prog_compiler_static='-static'
14718
14719 case $host_os in
14720 aix*)
14721 # All AIX code is PIC.
14722 if test ia64 = "$host_cpu"; then
14723 # AIX 5 now supports IA64 processor
14724 lt_prog_compiler_static='-Bstatic'
14725 fi
14726 lt_prog_compiler_pic='-fPIC'
14727 ;;
14728
14729 amigaos*)
14730 case $host_cpu in
14731 powerpc)
14732 # see comment about AmigaOS4 .so support
14733 lt_prog_compiler_pic='-fPIC'
14734 ;;
14735 m68k)
14736 # FIXME: we need at least 68020 code to build shared libraries, but
14737 # adding the '-m68020' flag to GCC prevents building anything better,
14738 # like '-m68040'.
14739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14740 ;;
14741 esac
14742 ;;
14743
14744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14745 # PIC is the default for these OSes.
14746 ;;
14747
14748 mingw* | cygwin* | pw32* | os2* | cegcc*)
14749 # This hack is so that the source file can tell whether it is being
14750 # built for inclusion in a dll (and should export symbols for example).
14751 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14752 # (--disable-auto-import) libraries
14753 lt_prog_compiler_pic='-DDLL_EXPORT'
14754 case $host_os in
14755 os2*)
14756 lt_prog_compiler_static='$wl-static'
14757 ;;
14758 esac
14759 ;;
14760
14761 darwin* | rhapsody*)
14762 # PIC is the default on this platform
14763 # Common symbols not allowed in MH_DYLIB files
14764 lt_prog_compiler_pic='-fno-common'
14765 ;;
14766
14767 haiku*)
14768 # PIC is the default for Haiku.
14769 # The "-static" flag exists, but is broken.
14770 lt_prog_compiler_static=
14771 ;;
14772
14773 hpux*)
14774 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14775 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14776 # sets the default TLS model and affects inlining.
14777 case $host_cpu in
14778 hppa*64*)
14779 # +Z the default
14780 ;;
14781 *)
14782 lt_prog_compiler_pic='-fPIC'
14783 ;;
14784 esac
14785 ;;
14786
14787 interix[3-9]*)
14788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14789 # Instead, we relocate shared libraries at runtime.
14790 ;;
14791
14792 msdosdjgpp*)
14793 # Just because we use GCC doesn't mean we suddenly get shared libraries
14794 # on systems that don't support them.
14795 lt_prog_compiler_can_build_shared=no
14796 enable_shared=no
14797 ;;
14798
14799 *nto* | *qnx*)
14800 # QNX uses GNU C++, but need to define -shared option too, otherwise
14801 # it will coredump.
14802 lt_prog_compiler_pic='-fPIC -shared'
14803 ;;
14804
14805 sysv4*MP*)
14806 if test -d /usr/nec; then
14807 lt_prog_compiler_pic=-Kconform_pic
14808 fi
14809 ;;
14810
14811 *)
14812 lt_prog_compiler_pic='-fPIC'
14813 ;;
14814 esac
14815
14816 case $cc_basename in
14817 nvcc*) # Cuda Compiler Driver 2.2
14818 lt_prog_compiler_wl='-Xlinker '
14819 if test -n "$lt_prog_compiler_pic"; then
14820 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14821 fi
14822 ;;
14823 esac
14824 else
14825 # PORTME Check for flag to pass linker flags through the system compiler.
14826 case $host_os in
14827 aix*)
14828 lt_prog_compiler_wl='-Wl,'
14829 if test ia64 = "$host_cpu"; then
14830 # AIX 5 now supports IA64 processor
14831 lt_prog_compiler_static='-Bstatic'
14832 else
14833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14834 fi
14835 ;;
14836
14837 darwin* | rhapsody*)
14838 # PIC is the default on this platform
14839 # Common symbols not allowed in MH_DYLIB files
14840 lt_prog_compiler_pic='-fno-common'
14841 case $cc_basename in
14842 nagfor*)
14843 # NAG Fortran compiler
14844 lt_prog_compiler_wl='-Wl,-Wl,,'
14845 lt_prog_compiler_pic='-PIC'
14846 lt_prog_compiler_static='-Bstatic'
14847 ;;
14848 esac
14849 ;;
14850
14851 mingw* | cygwin* | pw32* | os2* | cegcc*)
14852 # This hack is so that the source file can tell whether it is being
14853 # built for inclusion in a dll (and should export symbols for example).
14854 lt_prog_compiler_pic='-DDLL_EXPORT'
14855 case $host_os in
14856 os2*)
14857 lt_prog_compiler_static='$wl-static'
14858 ;;
14859 esac
14860 ;;
14861
14862 hpux9* | hpux10* | hpux11*)
14863 lt_prog_compiler_wl='-Wl,'
14864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14865 # not for PA HP-UX.
14866 case $host_cpu in
14867 hppa*64*|ia64*)
14868 # +Z the default
14869 ;;
14870 *)
14871 lt_prog_compiler_pic='+Z'
14872 ;;
14873 esac
14874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14875 lt_prog_compiler_static='$wl-a ${wl}archive'
14876 ;;
14877
14878 irix5* | irix6* | nonstopux*)
14879 lt_prog_compiler_wl='-Wl,'
14880 # PIC (with -KPIC) is the default.
14881 lt_prog_compiler_static='-non_shared'
14882 ;;
14883
14884 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14885 case $cc_basename in
14886 # old Intel for x86_64, which still supported -KPIC.
14887 ecc*)
14888 lt_prog_compiler_wl='-Wl,'
14889 lt_prog_compiler_pic='-KPIC'
14890 lt_prog_compiler_static='-static'
14891 ;;
14892 # icc used to be incompatible with GCC.
14893 # ICC 10 doesn't accept -KPIC any more.
14894 icc* | ifort*)
14895 lt_prog_compiler_wl='-Wl,'
14896 lt_prog_compiler_pic='-fPIC'
14897 lt_prog_compiler_static='-static'
14898 ;;
14899 # Lahey Fortran 8.1.
14900 lf95*)
14901 lt_prog_compiler_wl='-Wl,'
14902 lt_prog_compiler_pic='--shared'
14903 lt_prog_compiler_static='--static'
14904 ;;
14905 nagfor*)
14906 # NAG Fortran compiler
14907 lt_prog_compiler_wl='-Wl,-Wl,,'
14908 lt_prog_compiler_pic='-PIC'
14909 lt_prog_compiler_static='-Bstatic'
14910 ;;
14911 tcc*)
14912 # Fabrice Bellard et al's Tiny C Compiler
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_pic='-fPIC'
14915 lt_prog_compiler_static='-static'
14916 ;;
14917 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14918 # Portland Group compilers (*not* the Pentium gcc compiler,
14919 # which looks to be a dead project)
14920 lt_prog_compiler_wl='-Wl,'
14921 lt_prog_compiler_pic='-fpic'
14922 lt_prog_compiler_static='-Bstatic'
14923 ;;
14924 ccc*)
14925 lt_prog_compiler_wl='-Wl,'
14926 # All Alpha code is PIC.
14927 lt_prog_compiler_static='-non_shared'
14928 ;;
14929 xl* | bgxl* | bgf* | mpixl*)
14930 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14931 lt_prog_compiler_wl='-Wl,'
14932 lt_prog_compiler_pic='-qpic'
14933 lt_prog_compiler_static='-qstaticlink'
14934 ;;
14935 *)
14936 case `$CC -V 2>&1 | sed 5q` in
14937 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14938 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14939 lt_prog_compiler_pic='-KPIC'
14940 lt_prog_compiler_static='-Bstatic'
14941 lt_prog_compiler_wl=''
14942 ;;
14943 *Sun\ F* | *Sun*Fortran*)
14944 lt_prog_compiler_pic='-KPIC'
14945 lt_prog_compiler_static='-Bstatic'
14946 lt_prog_compiler_wl='-Qoption ld '
14947 ;;
14948 *Sun\ C*)
14949 # Sun C 5.9
14950 lt_prog_compiler_pic='-KPIC'
14951 lt_prog_compiler_static='-Bstatic'
14952 lt_prog_compiler_wl='-Wl,'
14953 ;;
14954 *Intel*\ [CF]*Compiler*)
14955 lt_prog_compiler_wl='-Wl,'
14956 lt_prog_compiler_pic='-fPIC'
14957 lt_prog_compiler_static='-static'
14958 ;;
14959 *Portland\ Group*)
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_pic='-fpic'
14962 lt_prog_compiler_static='-Bstatic'
14963 ;;
14964 esac
14965 ;;
14966 esac
14967 ;;
14968
14969 newsos6)
14970 lt_prog_compiler_pic='-KPIC'
14971 lt_prog_compiler_static='-Bstatic'
14972 ;;
14973
14974 *nto* | *qnx*)
14975 # QNX uses GNU C++, but need to define -shared option too, otherwise
14976 # it will coredump.
14977 lt_prog_compiler_pic='-fPIC -shared'
14978 ;;
14979
14980 osf3* | osf4* | osf5*)
14981 lt_prog_compiler_wl='-Wl,'
14982 # All OSF/1 code is PIC.
14983 lt_prog_compiler_static='-non_shared'
14984 ;;
14985
14986 rdos*)
14987 lt_prog_compiler_static='-non_shared'
14988 ;;
14989
14990 solaris*)
14991 lt_prog_compiler_pic='-KPIC'
14992 lt_prog_compiler_static='-Bstatic'
14993 case $cc_basename in
14994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14995 lt_prog_compiler_wl='-Qoption ld ';;
14996 *)
14997 lt_prog_compiler_wl='-Wl,';;
14998 esac
14999 ;;
15000
15001 sunos4*)
15002 lt_prog_compiler_wl='-Qoption ld '
15003 lt_prog_compiler_pic='-PIC'
15004 lt_prog_compiler_static='-Bstatic'
15005 ;;
15006
15007 sysv4 | sysv4.2uw2* | sysv4.3*)
15008 lt_prog_compiler_wl='-Wl,'
15009 lt_prog_compiler_pic='-KPIC'
15010 lt_prog_compiler_static='-Bstatic'
15011 ;;
15012
15013 sysv4*MP*)
15014 if test -d /usr/nec; then
15015 lt_prog_compiler_pic='-Kconform_pic'
15016 lt_prog_compiler_static='-Bstatic'
15017 fi
15018 ;;
15019
15020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-KPIC'
15023 lt_prog_compiler_static='-Bstatic'
15024 ;;
15025
15026 unicos*)
15027 lt_prog_compiler_wl='-Wl,'
15028 lt_prog_compiler_can_build_shared=no
15029 ;;
15030
15031 uts4*)
15032 lt_prog_compiler_pic='-pic'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
15035
15036 *)
15037 lt_prog_compiler_can_build_shared=no
15038 ;;
15039 esac
15040 fi
15041
15042 case $host_os in
15043 # For platforms that do not support PIC, -DPIC is meaningless:
15044 *djgpp*)
15045 lt_prog_compiler_pic=
15046 ;;
15047 *)
15048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15049 ;;
15050 esac
15051
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15054 if ${lt_cv_prog_compiler_pic+:} false; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15060 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15061 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15062
15063 #
15064 # Check to make sure the PIC flag actually works.
15065 #
15066 if test -n "$lt_prog_compiler_pic"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15068 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15069 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 lt_cv_prog_compiler_pic_works=no
15073 ac_outfile=conftest.$ac_objext
15074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15076 # Insert the option either (1) after the last *FLAGS variable, or
15077 # (2) before a word containing "conftest.", or (3) at the end.
15078 # Note that $ac_compile itself does not contain backslashes and begins
15079 # with a dollar sign (not a hyphen), so the echo should work correctly.
15080 # The option is referenced via a variable to avoid confusing sed.
15081 lt_compile=`echo "$ac_compile" | $SED \
15082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15084 -e 's:$: $lt_compiler_flag:'`
15085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15086 (eval "$lt_compile" 2>conftest.err)
15087 ac_status=$?
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 if (exit $ac_status) && test -s "$ac_outfile"; then
15091 # The compiler can only warn and ignore the option if not recognized
15092 # So say no if there are warnings other than the usual output.
15093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15096 lt_cv_prog_compiler_pic_works=yes
15097 fi
15098 fi
15099 $RM conftest*
15100
15101 fi
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15103 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15104
15105 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15106 case $lt_prog_compiler_pic in
15107 "" | " "*) ;;
15108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15109 esac
15110 else
15111 lt_prog_compiler_pic=
15112 lt_prog_compiler_can_build_shared=no
15113 fi
15114
15115 fi
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127 #
15128 # Check to make sure the static flag actually works.
15129 #
15130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15133 if ${lt_cv_prog_compiler_static_works+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 lt_cv_prog_compiler_static_works=no
15137 save_LDFLAGS=$LDFLAGS
15138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15141 # The linker can only warn and ignore the option if not recognized
15142 # So say no if there are warnings
15143 if test -s conftest.err; then
15144 # Append any errors to the config.log.
15145 cat conftest.err 1>&5
15146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15148 if diff conftest.exp conftest.er2 >/dev/null; then
15149 lt_cv_prog_compiler_static_works=yes
15150 fi
15151 else
15152 lt_cv_prog_compiler_static_works=yes
15153 fi
15154 fi
15155 $RM -r conftest*
15156 LDFLAGS=$save_LDFLAGS
15157
15158 fi
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15161
15162 if test yes = "$lt_cv_prog_compiler_static_works"; then
15163 :
15164 else
15165 lt_prog_compiler_static=
15166 fi
15167
15168
15169
15170
15171
15172
15173
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15176 if ${lt_cv_prog_compiler_c_o+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 lt_cv_prog_compiler_c_o=no
15180 $RM -r conftest 2>/dev/null
15181 mkdir conftest
15182 cd conftest
15183 mkdir out
15184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15185
15186 lt_compiler_flag="-o out/conftest2.$ac_objext"
15187 # Insert the option either (1) after the last *FLAGS variable, or
15188 # (2) before a word containing "conftest.", or (3) at the end.
15189 # Note that $ac_compile itself does not contain backslashes and begins
15190 # with a dollar sign (not a hyphen), so the echo should work correctly.
15191 lt_compile=`echo "$ac_compile" | $SED \
15192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15194 -e 's:$: $lt_compiler_flag:'`
15195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15196 (eval "$lt_compile" 2>out/conftest.err)
15197 ac_status=$?
15198 cat out/conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15201 then
15202 # The compiler can only warn and ignore the option if not recognized
15203 # So say no if there are warnings
15204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15207 lt_cv_prog_compiler_c_o=yes
15208 fi
15209 fi
15210 chmod u+w . 2>&5
15211 $RM conftest*
15212 # SGI C++ compiler will create directory out/ii_files/ for
15213 # template instantiation
15214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15215 $RM out/* && rmdir out
15216 cd ..
15217 $RM -r conftest
15218 $RM conftest*
15219
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15223
15224
15225
15226
15227
15228
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15231 if ${lt_cv_prog_compiler_c_o+:} false; then :
15232 $as_echo_n "(cached) " >&6
15233 else
15234 lt_cv_prog_compiler_c_o=no
15235 $RM -r conftest 2>/dev/null
15236 mkdir conftest
15237 cd conftest
15238 mkdir out
15239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15240
15241 lt_compiler_flag="-o out/conftest2.$ac_objext"
15242 # Insert the option either (1) after the last *FLAGS variable, or
15243 # (2) before a word containing "conftest.", or (3) at the end.
15244 # Note that $ac_compile itself does not contain backslashes and begins
15245 # with a dollar sign (not a hyphen), so the echo should work correctly.
15246 lt_compile=`echo "$ac_compile" | $SED \
15247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15249 -e 's:$: $lt_compiler_flag:'`
15250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15251 (eval "$lt_compile" 2>out/conftest.err)
15252 ac_status=$?
15253 cat out/conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15256 then
15257 # The compiler can only warn and ignore the option if not recognized
15258 # So say no if there are warnings
15259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15262 lt_cv_prog_compiler_c_o=yes
15263 fi
15264 fi
15265 chmod u+w . 2>&5
15266 $RM conftest*
15267 # SGI C++ compiler will create directory out/ii_files/ for
15268 # template instantiation
15269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15270 $RM out/* && rmdir out
15271 cd ..
15272 $RM -r conftest
15273 $RM conftest*
15274
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15278
15279
15280
15281
15282 hard_links=nottested
15283 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15284 # do not overwrite the value of need_locks provided by the user
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15286 $as_echo_n "checking if we can lock with hard links... " >&6; }
15287 hard_links=yes
15288 $RM conftest*
15289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15290 touch conftest.a
15291 ln conftest.a conftest.b 2>&5 || hard_links=no
15292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15294 $as_echo "$hard_links" >&6; }
15295 if test no = "$hard_links"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15297 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15298 need_locks=warn
15299 fi
15300 else
15301 need_locks=no
15302 fi
15303
15304
15305
15306
15307
15308
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15311
15312 runpath_var=
15313 allow_undefined_flag=
15314 always_export_symbols=no
15315 archive_cmds=
15316 archive_expsym_cmds=
15317 compiler_needs_object=no
15318 enable_shared_with_static_runtimes=no
15319 export_dynamic_flag_spec=
15320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15321 hardcode_automatic=no
15322 hardcode_direct=no
15323 hardcode_direct_absolute=no
15324 hardcode_libdir_flag_spec=
15325 hardcode_libdir_separator=
15326 hardcode_minus_L=no
15327 hardcode_shlibpath_var=unsupported
15328 inherit_rpath=no
15329 link_all_deplibs=unknown
15330 module_cmds=
15331 module_expsym_cmds=
15332 old_archive_from_new_cmds=
15333 old_archive_from_expsyms_cmds=
15334 thread_safe_flag_spec=
15335 whole_archive_flag_spec=
15336 # include_expsyms should be a list of space-separated symbols to be *always*
15337 # included in the symbol list
15338 include_expsyms=
15339 # exclude_expsyms can be an extended regexp of symbols to exclude
15340 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15341 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15342 # as well as any symbol that contains 'd'.
15343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15345 # platforms (ab)use it in PIC code, but their linkers get confused if
15346 # the symbol is explicitly referenced. Since portable code cannot
15347 # rely on this symbol name, it's probably fine to never include it in
15348 # preloaded symbol tables.
15349 # Exclude shared library initialization/finalization symbols.
15350 extract_expsyms_cmds=
15351
15352 case $host_os in
15353 cygwin* | mingw* | pw32* | cegcc*)
15354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15355 # When not using gcc, we currently assume that we are using
15356 # Microsoft Visual C++.
15357 if test yes != "$GCC"; then
15358 with_gnu_ld=no
15359 fi
15360 ;;
15361 interix*)
15362 # we just hope/assume this is gcc and not c89 (= MSVC++)
15363 with_gnu_ld=yes
15364 ;;
15365 openbsd* | bitrig*)
15366 with_gnu_ld=no
15367 ;;
15368 esac
15369
15370 ld_shlibs=yes
15371
15372 # On some targets, GNU ld is compatible enough with the native linker
15373 # that we're better off using the native interface for both.
15374 lt_use_gnu_ld_interface=no
15375 if test yes = "$with_gnu_ld"; then
15376 case $host_os in
15377 aix*)
15378 # The AIX port of GNU ld has always aspired to compatibility
15379 # with the native linker. However, as the warning in the GNU ld
15380 # block says, versions before 2.19.5* couldn't really create working
15381 # shared libraries, regardless of the interface used.
15382 case `$LD -v 2>&1` in
15383 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15384 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15385 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15386 *)
15387 lt_use_gnu_ld_interface=yes
15388 ;;
15389 esac
15390 ;;
15391 *)
15392 lt_use_gnu_ld_interface=yes
15393 ;;
15394 esac
15395 fi
15396
15397 if test yes = "$lt_use_gnu_ld_interface"; then
15398 # If archive_cmds runs LD, not CC, wlarc should be empty
15399 wlarc='$wl'
15400
15401 # Set some defaults for GNU ld with shared library support. These
15402 # are reset later if shared libraries are not supported. Putting them
15403 # here allows them to be overridden if necessary.
15404 runpath_var=LD_RUN_PATH
15405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15406 export_dynamic_flag_spec='$wl--export-dynamic'
15407 # ancient GNU ld didn't support --whole-archive et. al.
15408 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15409 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15410 else
15411 whole_archive_flag_spec=
15412 fi
15413 supports_anon_versioning=no
15414 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15415 *GNU\ gold*) supports_anon_versioning=yes ;;
15416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15419 *\ 2.11.*) ;; # other 2.11 versions
15420 *) supports_anon_versioning=yes ;;
15421 esac
15422
15423 # See if GNU ld supports shared libraries.
15424 case $host_os in
15425 aix[3-9]*)
15426 # On AIX/PPC, the GNU linker is very broken
15427 if test ia64 != "$host_cpu"; then
15428 ld_shlibs=no
15429 cat <<_LT_EOF 1>&2
15430
15431 *** Warning: the GNU linker, at least up to release 2.19, is reported
15432 *** to be unable to reliably create shared libraries on AIX.
15433 *** Therefore, libtool is disabling shared libraries support. If you
15434 *** really care for shared libraries, you may want to install binutils
15435 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15436 *** You will then need to restart the configuration process.
15437
15438 _LT_EOF
15439 fi
15440 ;;
15441
15442 amigaos*)
15443 case $host_cpu in
15444 powerpc)
15445 # see comment about AmigaOS4 .so support
15446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15447 archive_expsym_cmds=''
15448 ;;
15449 m68k)
15450 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)'
15451 hardcode_libdir_flag_spec='-L$libdir'
15452 hardcode_minus_L=yes
15453 ;;
15454 esac
15455 ;;
15456
15457 beos*)
15458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15459 allow_undefined_flag=unsupported
15460 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15461 # support --undefined. This deserves some investigation. FIXME
15462 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15463 else
15464 ld_shlibs=no
15465 fi
15466 ;;
15467
15468 cygwin* | mingw* | pw32* | cegcc*)
15469 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15470 # as there is no search path for DLLs.
15471 hardcode_libdir_flag_spec='-L$libdir'
15472 export_dynamic_flag_spec='$wl--export-all-symbols'
15473 allow_undefined_flag=unsupported
15474 always_export_symbols=no
15475 enable_shared_with_static_runtimes=yes
15476 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'
15477 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15478
15479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15481 # If the export-symbols file already is a .def file, use it as
15482 # is; otherwise, prepend EXPORTS...
15483 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15484 cp $export_symbols $output_objdir/$soname.def;
15485 else
15486 echo EXPORTS > $output_objdir/$soname.def;
15487 cat $export_symbols >> $output_objdir/$soname.def;
15488 fi~
15489 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15490 else
15491 ld_shlibs=no
15492 fi
15493 ;;
15494
15495 haiku*)
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15497 link_all_deplibs=yes
15498 ;;
15499
15500 os2*)
15501 hardcode_libdir_flag_spec='-L$libdir'
15502 hardcode_minus_L=yes
15503 allow_undefined_flag=unsupported
15504 shrext_cmds=.dll
15505 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15506 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15507 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15508 $ECHO EXPORTS >> $output_objdir/$libname.def~
15509 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15510 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15511 emximp -o $lib $output_objdir/$libname.def'
15512 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15513 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15514 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15515 $ECHO EXPORTS >> $output_objdir/$libname.def~
15516 prefix_cmds="$SED"~
15517 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15518 prefix_cmds="$prefix_cmds -e 1d";
15519 fi~
15520 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15521 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15522 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15523 emximp -o $lib $output_objdir/$libname.def'
15524 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15525 enable_shared_with_static_runtimes=yes
15526 ;;
15527
15528 interix[3-9]*)
15529 hardcode_direct=no
15530 hardcode_shlibpath_var=no
15531 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15532 export_dynamic_flag_spec='$wl-E'
15533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15534 # Instead, shared libraries are loaded at an image base (0x10000000 by
15535 # default) and relocated if they conflict, which is a slow very memory
15536 # consuming and fragmenting process. To avoid this, we pick a random,
15537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15540 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'
15541 ;;
15542
15543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15544 tmp_diet=no
15545 if test linux-dietlibc = "$host_os"; then
15546 case $cc_basename in
15547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15548 esac
15549 fi
15550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15551 && test no = "$tmp_diet"
15552 then
15553 tmp_addflag=' $pic_flag'
15554 tmp_sharedflag='-shared'
15555 case $cc_basename,$host_cpu in
15556 pgcc*) # Portland Group C compiler
15557 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'
15558 tmp_addflag=' $pic_flag'
15559 ;;
15560 pgf77* | pgf90* | pgf95* | pgfortran*)
15561 # Portland Group f77 and f90 compilers
15562 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'
15563 tmp_addflag=' $pic_flag -Mnomain' ;;
15564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15565 tmp_addflag=' -i_dynamic' ;;
15566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15567 tmp_addflag=' -i_dynamic -nofor_main' ;;
15568 ifc* | ifort*) # Intel Fortran compiler
15569 tmp_addflag=' -nofor_main' ;;
15570 lf95*) # Lahey Fortran 8.1
15571 whole_archive_flag_spec=
15572 tmp_sharedflag='--shared' ;;
15573 nagfor*) # NAGFOR 5.3
15574 tmp_sharedflag='-Wl,-shared' ;;
15575 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15576 tmp_sharedflag='-qmkshrobj'
15577 tmp_addflag= ;;
15578 nvcc*) # Cuda Compiler Driver 2.2
15579 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'
15580 compiler_needs_object=yes
15581 ;;
15582 esac
15583 case `$CC -V 2>&1 | sed 5q` in
15584 *Sun\ C*) # Sun C 5.9
15585 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'
15586 compiler_needs_object=yes
15587 tmp_sharedflag='-G' ;;
15588 *Sun\ F*) # Sun Fortran 8.3
15589 tmp_sharedflag='-G' ;;
15590 esac
15591 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15592
15593 if test yes = "$supports_anon_versioning"; then
15594 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15596 echo "local: *; };" >> $output_objdir/$libname.ver~
15597 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15598 fi
15599
15600 case $cc_basename in
15601 tcc*)
15602 export_dynamic_flag_spec='-rdynamic'
15603 ;;
15604 xlf* | bgf* | bgxlf* | mpixlf*)
15605 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15606 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15608 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15609 if test yes = "$supports_anon_versioning"; then
15610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15612 echo "local: *; };" >> $output_objdir/$libname.ver~
15613 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15614 fi
15615 ;;
15616 esac
15617 else
15618 ld_shlibs=no
15619 fi
15620 ;;
15621
15622 netbsd*)
15623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15624 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15625 wlarc=
15626 else
15627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15629 fi
15630 ;;
15631
15632 solaris*)
15633 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15634 ld_shlibs=no
15635 cat <<_LT_EOF 1>&2
15636
15637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15638 *** create shared libraries on Solaris systems. Therefore, libtool
15639 *** is disabling shared libraries support. We urge you to upgrade GNU
15640 *** binutils to release 2.9.1 or newer. Another option is to modify
15641 *** your PATH or compiler configuration so that the native linker is
15642 *** used, and then restart.
15643
15644 _LT_EOF
15645 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15647 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15648 else
15649 ld_shlibs=no
15650 fi
15651 ;;
15652
15653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15654 case `$LD -v 2>&1` in
15655 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15656 ld_shlibs=no
15657 cat <<_LT_EOF 1>&2
15658
15659 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15660 *** reliably create shared libraries on SCO systems. Therefore, libtool
15661 *** is disabling shared libraries support. We urge you to upgrade GNU
15662 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15663 *** your PATH or compiler configuration so that the native linker is
15664 *** used, and then restart.
15665
15666 _LT_EOF
15667 ;;
15668 *)
15669 # For security reasons, it is highly recommended that you always
15670 # use absolute paths for naming shared libraries, and exclude the
15671 # DT_RUNPATH tag from executables and libraries. But doing so
15672 # requires that you compile everything twice, which is a pain.
15673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15674 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15677 else
15678 ld_shlibs=no
15679 fi
15680 ;;
15681 esac
15682 ;;
15683
15684 sunos4*)
15685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15686 wlarc=
15687 hardcode_direct=yes
15688 hardcode_shlibpath_var=no
15689 ;;
15690
15691 *)
15692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15695 else
15696 ld_shlibs=no
15697 fi
15698 ;;
15699 esac
15700
15701 if test no = "$ld_shlibs"; then
15702 runpath_var=
15703 hardcode_libdir_flag_spec=
15704 export_dynamic_flag_spec=
15705 whole_archive_flag_spec=
15706 fi
15707 else
15708 # PORTME fill in a description of your system's linker (not GNU ld)
15709 case $host_os in
15710 aix3*)
15711 allow_undefined_flag=unsupported
15712 always_export_symbols=yes
15713 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'
15714 # Note: this linker hardcodes the directories in LIBPATH if there
15715 # are no directories specified by -L.
15716 hardcode_minus_L=yes
15717 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15718 # Neither direct hardcoding nor static linking is supported with a
15719 # broken collect2.
15720 hardcode_direct=unsupported
15721 fi
15722 ;;
15723
15724 aix[4-9]*)
15725 if test ia64 = "$host_cpu"; then
15726 # On IA64, the linker does run time linking by default, so we don't
15727 # have to do anything special.
15728 aix_use_runtimelinking=no
15729 exp_sym_flag='-Bexport'
15730 no_entry_flag=
15731 else
15732 # If we're using GNU nm, then we don't want the "-C" option.
15733 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15734 # Without the "-l" option, or with the "-B" option, AIX nm treats
15735 # weak defined symbols like other global defined symbols, whereas
15736 # GNU nm marks them as "W".
15737 # While the 'weak' keyword is ignored in the Export File, we need
15738 # it in the Import File for the 'aix-soname' feature, so we have
15739 # to replace the "-B" option with "-P" for AIX nm.
15740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15741 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15742 else
15743 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15744 fi
15745 aix_use_runtimelinking=no
15746
15747 # Test if we are trying to use run time linking or normal
15748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15749 # have runtime linking enabled, and use it for executables.
15750 # For shared libraries, we enable/disable runtime linking
15751 # depending on the kind of the shared library created -
15752 # when "with_aix_soname,aix_use_runtimelinking" is:
15753 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15754 # "aix,yes" lib.so shared, rtl:yes, for executables
15755 # lib.a static archive
15756 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15757 # lib.a(lib.so.V) shared, rtl:no, for executables
15758 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15759 # lib.a(lib.so.V) shared, rtl:no
15760 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15761 # lib.a static archive
15762 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15763 for ld_flag in $LDFLAGS; do
15764 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15765 aix_use_runtimelinking=yes
15766 break
15767 fi
15768 done
15769 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15770 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15771 # so we don't have lib.a shared libs to link our executables.
15772 # We have to force runtime linking in this case.
15773 aix_use_runtimelinking=yes
15774 LDFLAGS="$LDFLAGS -Wl,-brtl"
15775 fi
15776 ;;
15777 esac
15778
15779 exp_sym_flag='-bexport'
15780 no_entry_flag='-bnoentry'
15781 fi
15782
15783 # When large executables or shared objects are built, AIX ld can
15784 # have problems creating the table of contents. If linking a library
15785 # or program results in "error TOC overflow" add -mminimal-toc to
15786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15788
15789 archive_cmds=''
15790 hardcode_direct=yes
15791 hardcode_direct_absolute=yes
15792 hardcode_libdir_separator=':'
15793 link_all_deplibs=yes
15794 file_list_spec='$wl-f,'
15795 case $with_aix_soname,$aix_use_runtimelinking in
15796 aix,*) ;; # traditional, no import file
15797 svr4,* | *,yes) # use import file
15798 # The Import File defines what to hardcode.
15799 hardcode_direct=no
15800 hardcode_direct_absolute=no
15801 ;;
15802 esac
15803
15804 if test yes = "$GCC"; then
15805 case $host_os in aix4.[012]|aix4.[012].*)
15806 # We only want to do this on AIX 4.2 and lower, the check
15807 # below for broken collect2 doesn't work under 4.3+
15808 collect2name=`$CC -print-prog-name=collect2`
15809 if test -f "$collect2name" &&
15810 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15811 then
15812 # We have reworked collect2
15813 :
15814 else
15815 # We have old collect2
15816 hardcode_direct=unsupported
15817 # It fails to find uninstalled libraries when the uninstalled
15818 # path is not listed in the libpath. Setting hardcode_minus_L
15819 # to unsupported forces relinking
15820 hardcode_minus_L=yes
15821 hardcode_libdir_flag_spec='-L$libdir'
15822 hardcode_libdir_separator=
15823 fi
15824 ;;
15825 esac
15826 shared_flag='-shared'
15827 if test yes = "$aix_use_runtimelinking"; then
15828 shared_flag="$shared_flag "'$wl-G'
15829 fi
15830 # Need to ensure runtime linking is disabled for the traditional
15831 # shared library, or the linker may eventually find shared libraries
15832 # /with/ Import File - we do not want to mix them.
15833 shared_flag_aix='-shared'
15834 shared_flag_svr4='-shared $wl-G'
15835 else
15836 # not using gcc
15837 if test ia64 = "$host_cpu"; then
15838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15839 # chokes on -Wl,-G. The following line is correct:
15840 shared_flag='-G'
15841 else
15842 if test yes = "$aix_use_runtimelinking"; then
15843 shared_flag='$wl-G'
15844 else
15845 shared_flag='$wl-bM:SRE'
15846 fi
15847 shared_flag_aix='$wl-bM:SRE'
15848 shared_flag_svr4='$wl-G'
15849 fi
15850 fi
15851
15852 export_dynamic_flag_spec='$wl-bexpall'
15853 # It seems that -bexpall does not export symbols beginning with
15854 # underscore (_), so it is better to generate a list of symbols to export.
15855 always_export_symbols=yes
15856 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15857 # Warning - without using the other runtime loading flags (-brtl),
15858 # -berok will link without error, but may produce a broken library.
15859 allow_undefined_flag='-berok'
15860 # Determine the default libpath from the value encoded in an
15861 # empty executable.
15862 if test set = "${lt_cv_aix_libpath+set}"; then
15863 aix_libpath=$lt_cv_aix_libpath
15864 else
15865 if ${lt_cv_aix_libpath_+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870
15871 int
15872 main ()
15873 {
15874
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 if ac_fn_c_try_link "$LINENO"; then :
15880
15881 lt_aix_libpath_sed='
15882 /Import File Strings/,/^$/ {
15883 /^0/ {
15884 s/^0 *\([^ ]*\) *$/\1/
15885 p
15886 }
15887 }'
15888 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15889 # Check for a 64-bit object if we didn't find anything.
15890 if test -z "$lt_cv_aix_libpath_"; then
15891 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15892 fi
15893 fi
15894 rm -f core conftest.err conftest.$ac_objext \
15895 conftest$ac_exeext conftest.$ac_ext
15896 if test -z "$lt_cv_aix_libpath_"; then
15897 lt_cv_aix_libpath_=/usr/lib:/lib
15898 fi
15899
15900 fi
15901
15902 aix_libpath=$lt_cv_aix_libpath_
15903 fi
15904
15905 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15906 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15907 else
15908 if test ia64 = "$host_cpu"; then
15909 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15910 allow_undefined_flag="-z nodefs"
15911 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"
15912 else
15913 # Determine the default libpath from the value encoded in an
15914 # empty executable.
15915 if test set = "${lt_cv_aix_libpath+set}"; then
15916 aix_libpath=$lt_cv_aix_libpath
15917 else
15918 if ${lt_cv_aix_libpath_+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923
15924 int
15925 main ()
15926 {
15927
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_c_try_link "$LINENO"; then :
15933
15934 lt_aix_libpath_sed='
15935 /Import File Strings/,/^$/ {
15936 /^0/ {
15937 s/^0 *\([^ ]*\) *$/\1/
15938 p
15939 }
15940 }'
15941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15942 # Check for a 64-bit object if we didn't find anything.
15943 if test -z "$lt_cv_aix_libpath_"; then
15944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 fi
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 if test -z "$lt_cv_aix_libpath_"; then
15950 lt_cv_aix_libpath_=/usr/lib:/lib
15951 fi
15952
15953 fi
15954
15955 aix_libpath=$lt_cv_aix_libpath_
15956 fi
15957
15958 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15959 # Warning - without using the other run time loading flags,
15960 # -berok will link without error, but may produce a broken library.
15961 no_undefined_flag=' $wl-bernotok'
15962 allow_undefined_flag=' $wl-berok'
15963 if test yes = "$with_gnu_ld"; then
15964 # We only use this code for GNU lds that support --whole-archive.
15965 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15966 else
15967 # Exported symbols can be pulled into shared objects from archives
15968 whole_archive_flag_spec='$convenience'
15969 fi
15970 archive_cmds_need_lc=yes
15971 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15972 # -brtl affects multiple linker settings, -berok does not and is overridden later
15973 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15974 if test svr4 != "$with_aix_soname"; then
15975 # This is similar to how AIX traditionally builds its shared libraries.
15976 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15977 fi
15978 if test aix != "$with_aix_soname"; then
15979 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15980 else
15981 # used by -dlpreopen to get the symbols
15982 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15983 fi
15984 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15985 fi
15986 fi
15987 ;;
15988
15989 amigaos*)
15990 case $host_cpu in
15991 powerpc)
15992 # see comment about AmigaOS4 .so support
15993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15994 archive_expsym_cmds=''
15995 ;;
15996 m68k)
15997 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)'
15998 hardcode_libdir_flag_spec='-L$libdir'
15999 hardcode_minus_L=yes
16000 ;;
16001 esac
16002 ;;
16003
16004 bsdi[45]*)
16005 export_dynamic_flag_spec=-rdynamic
16006 ;;
16007
16008 cygwin* | mingw* | pw32* | cegcc*)
16009 # When not using gcc, we currently assume that we are using
16010 # Microsoft Visual C++.
16011 # hardcode_libdir_flag_spec is actually meaningless, as there is
16012 # no search path for DLLs.
16013 case $cc_basename in
16014 cl*)
16015 # Native MSVC
16016 hardcode_libdir_flag_spec=' '
16017 allow_undefined_flag=unsupported
16018 always_export_symbols=yes
16019 file_list_spec='@'
16020 # Tell ltmain to make .lib files, not .a files.
16021 libext=lib
16022 # Tell ltmain to make .dll files, not .so files.
16023 shrext_cmds=.dll
16024 # FIXME: Setting linknames here is a bad hack.
16025 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16026 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16027 cp "$export_symbols" "$output_objdir/$soname.def";
16028 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16029 else
16030 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16031 fi~
16032 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16033 linknames='
16034 # The linker will not automatically build a static lib if we build a DLL.
16035 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16036 enable_shared_with_static_runtimes=yes
16037 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16039 # Don't use ranlib
16040 old_postinstall_cmds='chmod 644 $oldlib'
16041 postlink_cmds='lt_outputfile="@OUTPUT@"~
16042 lt_tool_outputfile="@TOOL_OUTPUT@"~
16043 case $lt_outputfile in
16044 *.exe|*.EXE) ;;
16045 *)
16046 lt_outputfile=$lt_outputfile.exe
16047 lt_tool_outputfile=$lt_tool_outputfile.exe
16048 ;;
16049 esac~
16050 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16051 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16052 $RM "$lt_outputfile.manifest";
16053 fi'
16054 ;;
16055 *)
16056 # Assume MSVC wrapper
16057 hardcode_libdir_flag_spec=' '
16058 allow_undefined_flag=unsupported
16059 # Tell ltmain to make .lib files, not .a files.
16060 libext=lib
16061 # Tell ltmain to make .dll files, not .so files.
16062 shrext_cmds=.dll
16063 # FIXME: Setting linknames here is a bad hack.
16064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16065 # The linker will automatically build a .lib file if we build a DLL.
16066 old_archive_from_new_cmds='true'
16067 # FIXME: Should let the user specify the lib program.
16068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16069 enable_shared_with_static_runtimes=yes
16070 ;;
16071 esac
16072 ;;
16073
16074 darwin* | rhapsody*)
16075
16076
16077 archive_cmds_need_lc=no
16078 hardcode_direct=no
16079 hardcode_automatic=yes
16080 hardcode_shlibpath_var=unsupported
16081 if test yes = "$lt_cv_ld_force_load"; then
16082 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\"`'
16083
16084 else
16085 whole_archive_flag_spec=''
16086 fi
16087 link_all_deplibs=yes
16088 allow_undefined_flag=$_lt_dar_allow_undefined
16089 case $cc_basename in
16090 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16091 *) _lt_dar_can_shared=$GCC ;;
16092 esac
16093 if test yes = "$_lt_dar_can_shared"; then
16094 output_verbose_link_cmd=func_echo_all
16095 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16096 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16097 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"
16098 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"
16099
16100 else
16101 ld_shlibs=no
16102 fi
16103
16104 ;;
16105
16106 dgux*)
16107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_libdir_flag_spec='-L$libdir'
16109 hardcode_shlibpath_var=no
16110 ;;
16111
16112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16113 # support. Future versions do this automatically, but an explicit c++rt0.o
16114 # does not break anything, and helps significantly (at the cost of a little
16115 # extra space).
16116 freebsd2.2*)
16117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16118 hardcode_libdir_flag_spec='-R$libdir'
16119 hardcode_direct=yes
16120 hardcode_shlibpath_var=no
16121 ;;
16122
16123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16124 freebsd2.*)
16125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_direct=yes
16127 hardcode_minus_L=yes
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16132 freebsd* | dragonfly*)
16133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16134 hardcode_libdir_flag_spec='-R$libdir'
16135 hardcode_direct=yes
16136 hardcode_shlibpath_var=no
16137 ;;
16138
16139 hpux9*)
16140 if test yes = "$GCC"; then
16141 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16142 else
16143 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16144 fi
16145 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16146 hardcode_libdir_separator=:
16147 hardcode_direct=yes
16148
16149 # hardcode_minus_L: Not really in the search PATH,
16150 # but as the default location of the library.
16151 hardcode_minus_L=yes
16152 export_dynamic_flag_spec='$wl-E'
16153 ;;
16154
16155 hpux10*)
16156 if test yes,no = "$GCC,$with_gnu_ld"; then
16157 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16158 else
16159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16160 fi
16161 if test no = "$with_gnu_ld"; then
16162 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16163 hardcode_libdir_separator=:
16164 hardcode_direct=yes
16165 hardcode_direct_absolute=yes
16166 export_dynamic_flag_spec='$wl-E'
16167 # hardcode_minus_L: Not really in the search PATH,
16168 # but as the default location of the library.
16169 hardcode_minus_L=yes
16170 fi
16171 ;;
16172
16173 hpux11*)
16174 if test yes,no = "$GCC,$with_gnu_ld"; then
16175 case $host_cpu in
16176 hppa*64*)
16177 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 ;;
16179 ia64*)
16180 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16181 ;;
16182 *)
16183 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16184 ;;
16185 esac
16186 else
16187 case $host_cpu in
16188 hppa*64*)
16189 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 ;;
16191 ia64*)
16192 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16193 ;;
16194 *)
16195
16196 # Older versions of the 11.00 compiler do not understand -b yet
16197 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16199 $as_echo_n "checking if $CC understands -b... " >&6; }
16200 if ${lt_cv_prog_compiler__b+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 lt_cv_prog_compiler__b=no
16204 save_LDFLAGS=$LDFLAGS
16205 LDFLAGS="$LDFLAGS -b"
16206 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16208 # The linker can only warn and ignore the option if not recognized
16209 # So say no if there are warnings
16210 if test -s conftest.err; then
16211 # Append any errors to the config.log.
16212 cat conftest.err 1>&5
16213 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16215 if diff conftest.exp conftest.er2 >/dev/null; then
16216 lt_cv_prog_compiler__b=yes
16217 fi
16218 else
16219 lt_cv_prog_compiler__b=yes
16220 fi
16221 fi
16222 $RM -r conftest*
16223 LDFLAGS=$save_LDFLAGS
16224
16225 fi
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16227 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16228
16229 if test yes = "$lt_cv_prog_compiler__b"; then
16230 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16231 else
16232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16233 fi
16234
16235 ;;
16236 esac
16237 fi
16238 if test no = "$with_gnu_ld"; then
16239 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16240 hardcode_libdir_separator=:
16241
16242 case $host_cpu in
16243 hppa*64*|ia64*)
16244 hardcode_direct=no
16245 hardcode_shlibpath_var=no
16246 ;;
16247 *)
16248 hardcode_direct=yes
16249 hardcode_direct_absolute=yes
16250 export_dynamic_flag_spec='$wl-E'
16251
16252 # hardcode_minus_L: Not really in the search PATH,
16253 # but as the default location of the library.
16254 hardcode_minus_L=yes
16255 ;;
16256 esac
16257 fi
16258 ;;
16259
16260 irix5* | irix6* | nonstopux*)
16261 if test yes = "$GCC"; then
16262 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'
16263 # Try to use the -exported_symbol ld option, if it does not
16264 # work, assume that -exports_file does not work either and
16265 # implicitly export all symbols.
16266 # This should be the same for all languages, so no per-tag cache variable.
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16268 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16269 if ${lt_cv_irix_exported_symbol+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 save_LDFLAGS=$LDFLAGS
16273 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 int foo (void) { return 0; }
16277 _ACEOF
16278 if ac_fn_c_try_link "$LINENO"; then :
16279 lt_cv_irix_exported_symbol=yes
16280 else
16281 lt_cv_irix_exported_symbol=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16285 LDFLAGS=$save_LDFLAGS
16286 fi
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16288 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16289 if test yes = "$lt_cv_irix_exported_symbol"; then
16290 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'
16291 fi
16292 else
16293 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'
16294 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'
16295 fi
16296 archive_cmds_need_lc='no'
16297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16298 hardcode_libdir_separator=:
16299 inherit_rpath=yes
16300 link_all_deplibs=yes
16301 ;;
16302
16303 linux*)
16304 case $cc_basename in
16305 tcc*)
16306 # Fabrice Bellard et al's Tiny C Compiler
16307 ld_shlibs=yes
16308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16309 ;;
16310 esac
16311 ;;
16312
16313 netbsd*)
16314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16316 else
16317 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16318 fi
16319 hardcode_libdir_flag_spec='-R$libdir'
16320 hardcode_direct=yes
16321 hardcode_shlibpath_var=no
16322 ;;
16323
16324 newsos6)
16325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326 hardcode_direct=yes
16327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16328 hardcode_libdir_separator=:
16329 hardcode_shlibpath_var=no
16330 ;;
16331
16332 *nto* | *qnx*)
16333 ;;
16334
16335 openbsd* | bitrig*)
16336 if test -f /usr/libexec/ld.so; then
16337 hardcode_direct=yes
16338 hardcode_shlibpath_var=no
16339 hardcode_direct_absolute=yes
16340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16343 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16344 export_dynamic_flag_spec='$wl-E'
16345 else
16346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16347 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16348 fi
16349 else
16350 ld_shlibs=no
16351 fi
16352 ;;
16353
16354 os2*)
16355 hardcode_libdir_flag_spec='-L$libdir'
16356 hardcode_minus_L=yes
16357 allow_undefined_flag=unsupported
16358 shrext_cmds=.dll
16359 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16360 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16361 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16362 $ECHO EXPORTS >> $output_objdir/$libname.def~
16363 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16364 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16365 emximp -o $lib $output_objdir/$libname.def'
16366 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16367 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16368 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16369 $ECHO EXPORTS >> $output_objdir/$libname.def~
16370 prefix_cmds="$SED"~
16371 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16372 prefix_cmds="$prefix_cmds -e 1d";
16373 fi~
16374 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16375 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16376 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16377 emximp -o $lib $output_objdir/$libname.def'
16378 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16379 enable_shared_with_static_runtimes=yes
16380 ;;
16381
16382 osf3*)
16383 if test yes = "$GCC"; then
16384 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16385 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'
16386 else
16387 allow_undefined_flag=' -expect_unresolved \*'
16388 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'
16389 fi
16390 archive_cmds_need_lc='no'
16391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16392 hardcode_libdir_separator=:
16393 ;;
16394
16395 osf4* | osf5*) # as osf3* with the addition of -msym flag
16396 if test yes = "$GCC"; then
16397 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16398 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'
16399 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16400 else
16401 allow_undefined_flag=' -expect_unresolved \*'
16402 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'
16403 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~
16404 $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'
16405
16406 # Both c and cxx compiler support -rpath directly
16407 hardcode_libdir_flag_spec='-rpath $libdir'
16408 fi
16409 archive_cmds_need_lc='no'
16410 hardcode_libdir_separator=:
16411 ;;
16412
16413 solaris*)
16414 no_undefined_flag=' -z defs'
16415 if test yes = "$GCC"; then
16416 wlarc='$wl'
16417 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16419 $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'
16420 else
16421 case `$CC -V 2>&1` in
16422 *"Compilers 5.0"*)
16423 wlarc=''
16424 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16426 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16427 ;;
16428 *)
16429 wlarc='$wl'
16430 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16432 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16433 ;;
16434 esac
16435 fi
16436 hardcode_libdir_flag_spec='-R$libdir'
16437 hardcode_shlibpath_var=no
16438 case $host_os in
16439 solaris2.[0-5] | solaris2.[0-5].*) ;;
16440 *)
16441 # The compiler driver will combine and reorder linker options,
16442 # but understands '-z linker_flag'. GCC discards it without '$wl',
16443 # but is careful enough not to reorder.
16444 # Supported since Solaris 2.6 (maybe 2.5.1?)
16445 if test yes = "$GCC"; then
16446 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16447 else
16448 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16449 fi
16450 ;;
16451 esac
16452 link_all_deplibs=yes
16453 ;;
16454
16455 sunos4*)
16456 if test sequent = "$host_vendor"; then
16457 # Use $CC to link under sequent, because it throws in some extra .o
16458 # files that make .init and .fini sections work.
16459 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16460 else
16461 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16462 fi
16463 hardcode_libdir_flag_spec='-L$libdir'
16464 hardcode_direct=yes
16465 hardcode_minus_L=yes
16466 hardcode_shlibpath_var=no
16467 ;;
16468
16469 sysv4)
16470 case $host_vendor in
16471 sni)
16472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_direct=yes # is this really true???
16474 ;;
16475 siemens)
16476 ## LD is ld it makes a PLAMLIB
16477 ## CC just makes a GrossModule.
16478 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16479 reload_cmds='$CC -r -o $output$reload_objs'
16480 hardcode_direct=no
16481 ;;
16482 motorola)
16483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16484 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16485 ;;
16486 esac
16487 runpath_var='LD_RUN_PATH'
16488 hardcode_shlibpath_var=no
16489 ;;
16490
16491 sysv4.3*)
16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_shlibpath_var=no
16494 export_dynamic_flag_spec='-Bexport'
16495 ;;
16496
16497 sysv4*MP*)
16498 if test -d /usr/nec; then
16499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_shlibpath_var=no
16501 runpath_var=LD_RUN_PATH
16502 hardcode_runpath_var=yes
16503 ld_shlibs=yes
16504 fi
16505 ;;
16506
16507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16508 no_undefined_flag='$wl-z,text'
16509 archive_cmds_need_lc=no
16510 hardcode_shlibpath_var=no
16511 runpath_var='LD_RUN_PATH'
16512
16513 if test yes = "$GCC"; then
16514 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 else
16517 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 fi
16520 ;;
16521
16522 sysv5* | sco3.2v5* | sco5v6*)
16523 # Note: We CANNOT use -z defs as we might desire, because we do not
16524 # link with -lc, and that would cause any symbols used from libc to
16525 # always be unresolved, which means just about no library would
16526 # ever link correctly. If we're not using GNU ld we use -z text
16527 # though, which does catch some bad symbols but isn't as heavy-handed
16528 # as -z defs.
16529 no_undefined_flag='$wl-z,text'
16530 allow_undefined_flag='$wl-z,nodefs'
16531 archive_cmds_need_lc=no
16532 hardcode_shlibpath_var=no
16533 hardcode_libdir_flag_spec='$wl-R,$libdir'
16534 hardcode_libdir_separator=':'
16535 link_all_deplibs=yes
16536 export_dynamic_flag_spec='$wl-Bexport'
16537 runpath_var='LD_RUN_PATH'
16538
16539 if test yes = "$GCC"; then
16540 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 else
16543 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 fi
16546 ;;
16547
16548 uts4*)
16549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550 hardcode_libdir_flag_spec='-L$libdir'
16551 hardcode_shlibpath_var=no
16552 ;;
16553
16554 *)
16555 ld_shlibs=no
16556 ;;
16557 esac
16558
16559 if test sni = "$host_vendor"; then
16560 case $host in
16561 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16562 export_dynamic_flag_spec='$wl-Blargedynsym'
16563 ;;
16564 esac
16565 fi
16566 fi
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16569 $as_echo "$ld_shlibs" >&6; }
16570 test no = "$ld_shlibs" && can_build_shared=no
16571
16572 with_gnu_ld=$with_gnu_ld
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588 #
16589 # Do we need to explicitly link libc?
16590 #
16591 case "x$archive_cmds_need_lc" in
16592 x|xyes)
16593 # Assume -lc should be added
16594 archive_cmds_need_lc=yes
16595
16596 if test yes,yes = "$GCC,$enable_shared"; then
16597 case $archive_cmds in
16598 *'~'*)
16599 # FIXME: we may have to deal with multi-command sequences.
16600 ;;
16601 '$CC '*)
16602 # Test whether the compiler implicitly links with -lc since on some
16603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16604 # to ld, don't add -lc before -lgcc.
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16606 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16607 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 $RM conftest*
16611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16612
16613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16614 (eval $ac_compile) 2>&5
16615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; } 2>conftest.err; then
16618 soname=conftest
16619 lib=conftest
16620 libobjs=conftest.$ac_objext
16621 deplibs=
16622 wl=$lt_prog_compiler_wl
16623 pic_flag=$lt_prog_compiler_pic
16624 compiler_flags=-v
16625 linker_flags=-v
16626 verstring=
16627 output_objdir=.
16628 libname=conftest
16629 lt_save_allow_undefined_flag=$allow_undefined_flag
16630 allow_undefined_flag=
16631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16632 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16633 ac_status=$?
16634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16635 test $ac_status = 0; }
16636 then
16637 lt_cv_archive_cmds_need_lc=no
16638 else
16639 lt_cv_archive_cmds_need_lc=yes
16640 fi
16641 allow_undefined_flag=$lt_save_allow_undefined_flag
16642 else
16643 cat conftest.err 1>&5
16644 fi
16645 $RM conftest*
16646
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16649 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16650 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16651 ;;
16652 esac
16653 fi
16654 ;;
16655 esac
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16810
16811 if test yes = "$GCC"; then
16812 case $host_os in
16813 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16814 *) lt_awk_arg='/^libraries:/' ;;
16815 esac
16816 case $host_os in
16817 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16818 *) lt_sed_strip_eq='s|=/|/|g' ;;
16819 esac
16820 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16821 case $lt_search_path_spec in
16822 *\;*)
16823 # if the path contains ";" then we assume it to be the separator
16824 # otherwise default to the standard path separator (i.e. ":") - it is
16825 # assumed that no part of a normal pathname contains ";" but that should
16826 # okay in the real world where ";" in dirpaths is itself problematic.
16827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16828 ;;
16829 *)
16830 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16831 ;;
16832 esac
16833 # Ok, now we have the path, separated by spaces, we can step through it
16834 # and add multilib dir if necessary...
16835 lt_tmp_lt_search_path_spec=
16836 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16837 # ...but if some path component already ends with the multilib dir we assume
16838 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16839 case "$lt_multi_os_dir; $lt_search_path_spec " in
16840 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16841 lt_multi_os_dir=
16842 ;;
16843 esac
16844 for lt_sys_path in $lt_search_path_spec; do
16845 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16846 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16847 elif test -n "$lt_multi_os_dir"; then
16848 test -d "$lt_sys_path" && \
16849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16850 fi
16851 done
16852 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16853 BEGIN {RS = " "; FS = "/|\n";} {
16854 lt_foo = "";
16855 lt_count = 0;
16856 for (lt_i = NF; lt_i > 0; lt_i--) {
16857 if ($lt_i != "" && $lt_i != ".") {
16858 if ($lt_i == "..") {
16859 lt_count++;
16860 } else {
16861 if (lt_count == 0) {
16862 lt_foo = "/" $lt_i lt_foo;
16863 } else {
16864 lt_count--;
16865 }
16866 }
16867 }
16868 }
16869 if (lt_foo != "") { lt_freq[lt_foo]++; }
16870 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16871 }'`
16872 # AWK program above erroneously prepends '/' to C:/dos/paths
16873 # for these hosts.
16874 case $host_os in
16875 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16876 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16877 esac
16878 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16879 else
16880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16881 fi
16882 library_names_spec=
16883 libname_spec='lib$name'
16884 soname_spec=
16885 shrext_cmds=.so
16886 postinstall_cmds=
16887 postuninstall_cmds=
16888 finish_cmds=
16889 finish_eval=
16890 shlibpath_var=
16891 shlibpath_overrides_runpath=unknown
16892 version_type=none
16893 dynamic_linker="$host_os ld.so"
16894 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16895 need_lib_prefix=unknown
16896 hardcode_into_libs=no
16897
16898 # when you set need_version to no, make sure it does not cause -set_version
16899 # flags to be left without arguments
16900 need_version=unknown
16901
16902
16903
16904 case $host_os in
16905 aix3*)
16906 version_type=linux # correct to gnu/linux during the next big refactor
16907 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16908 shlibpath_var=LIBPATH
16909
16910 # AIX 3 has no versioning support, so we append a major version to the name.
16911 soname_spec='$libname$release$shared_ext$major'
16912 ;;
16913
16914 aix[4-9]*)
16915 version_type=linux # correct to gnu/linux during the next big refactor
16916 need_lib_prefix=no
16917 need_version=no
16918 hardcode_into_libs=yes
16919 if test ia64 = "$host_cpu"; then
16920 # AIX 5 supports IA64
16921 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 else
16924 # With GCC up to 2.95.x, collect2 would create an import file
16925 # for dependence libraries. The import file would start with
16926 # the line '#! .'. This would cause the generated library to
16927 # depend on '.', always an invalid library. This was fixed in
16928 # development snapshots of GCC prior to 3.0.
16929 case $host_os in
16930 aix4 | aix4.[01] | aix4.[01].*)
16931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16932 echo ' yes '
16933 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16934 :
16935 else
16936 can_build_shared=no
16937 fi
16938 ;;
16939 esac
16940 # Using Import Files as archive members, it is possible to support
16941 # filename-based versioning of shared library archives on AIX. While
16942 # this would work for both with and without runtime linking, it will
16943 # prevent static linking of such archives. So we do filename-based
16944 # shared library versioning with .so extension only, which is used
16945 # when both runtime linking and shared linking is enabled.
16946 # Unfortunately, runtime linking may impact performance, so we do
16947 # not want this to be the default eventually. Also, we use the
16948 # versioned .so libs for executables only if there is the -brtl
16949 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16950 # To allow for filename-based versioning support, we need to create
16951 # libNAME.so.V as an archive file, containing:
16952 # *) an Import File, referring to the versioned filename of the
16953 # archive as well as the shared archive member, telling the
16954 # bitwidth (32 or 64) of that shared object, and providing the
16955 # list of exported symbols of that shared object, eventually
16956 # decorated with the 'weak' keyword
16957 # *) the shared object with the F_LOADONLY flag set, to really avoid
16958 # it being seen by the linker.
16959 # At run time we better use the real file rather than another symlink,
16960 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16961
16962 case $with_aix_soname,$aix_use_runtimelinking in
16963 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16964 # soname into executable. Probably we can add versioning support to
16965 # collect2, so additional links can be useful in future.
16966 aix,yes) # traditional libtool
16967 dynamic_linker='AIX unversionable lib.so'
16968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16969 # instead of lib<name>.a to let people know that these are not
16970 # typical AIX shared libraries.
16971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16972 ;;
16973 aix,no) # traditional AIX only
16974 dynamic_linker='AIX lib.a(lib.so.V)'
16975 # We preserve .a as extension for shared libraries through AIX4.2
16976 # and later when we are not doing run time linking.
16977 library_names_spec='$libname$release.a $libname.a'
16978 soname_spec='$libname$release$shared_ext$major'
16979 ;;
16980 svr4,*) # full svr4 only
16981 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16982 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16983 # We do not specify a path in Import Files, so LIBPATH fires.
16984 shlibpath_overrides_runpath=yes
16985 ;;
16986 *,yes) # both, prefer svr4
16987 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16988 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16989 # unpreferred sharedlib libNAME.a needs extra handling
16990 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16991 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16992 # We do not specify a path in Import Files, so LIBPATH fires.
16993 shlibpath_overrides_runpath=yes
16994 ;;
16995 *,no) # both, prefer aix
16996 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16997 library_names_spec='$libname$release.a $libname.a'
16998 soname_spec='$libname$release$shared_ext$major'
16999 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17000 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17001 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17002 ;;
17003 esac
17004 shlibpath_var=LIBPATH
17005 fi
17006 ;;
17007
17008 amigaos*)
17009 case $host_cpu in
17010 powerpc)
17011 # Since July 2007 AmigaOS4 officially supports .so libraries.
17012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17014 ;;
17015 m68k)
17016 library_names_spec='$libname.ixlibrary $libname.a'
17017 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17018 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17019 ;;
17020 esac
17021 ;;
17022
17023 beos*)
17024 library_names_spec='$libname$shared_ext'
17025 dynamic_linker="$host_os ld.so"
17026 shlibpath_var=LIBRARY_PATH
17027 ;;
17028
17029 bsdi[45]*)
17030 version_type=linux # correct to gnu/linux during the next big refactor
17031 need_version=no
17032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17033 soname_spec='$libname$release$shared_ext$major'
17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17038 # the default ld.so.conf also contains /usr/contrib/lib and
17039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17040 # libtool to hard-code these into programs
17041 ;;
17042
17043 cygwin* | mingw* | pw32* | cegcc*)
17044 version_type=windows
17045 shrext_cmds=.dll
17046 need_version=no
17047 need_lib_prefix=no
17048
17049 case $GCC,$cc_basename in
17050 yes,*)
17051 # gcc
17052 library_names_spec='$libname.dll.a'
17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17054 postinstall_cmds='base_file=`basename \$file`~
17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17056 dldir=$destdir/`dirname \$dlpath`~
17057 test -d \$dldir || mkdir -p \$dldir~
17058 $install_prog $dir/$dlname \$dldir/$dlname~
17059 chmod a+x \$dldir/$dlname~
17060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17062 fi'
17063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17064 dlpath=$dir/\$dldll~
17065 $RM \$dlpath'
17066 shlibpath_overrides_runpath=yes
17067
17068 case $host_os in
17069 cygwin*)
17070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17071 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17072
17073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17074 ;;
17075 mingw* | cegcc*)
17076 # MinGW DLLs use traditional 'lib' prefix
17077 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17078 ;;
17079 pw32*)
17080 # pw32 DLLs use 'pw' prefix rather than 'lib'
17081 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17082 ;;
17083 esac
17084 dynamic_linker='Win32 ld.exe'
17085 ;;
17086
17087 *,cl*)
17088 # Native MSVC
17089 libname_spec='$name'
17090 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17091 library_names_spec='$libname.dll.lib'
17092
17093 case $build_os in
17094 mingw*)
17095 sys_lib_search_path_spec=
17096 lt_save_ifs=$IFS
17097 IFS=';'
17098 for lt_path in $LIB
17099 do
17100 IFS=$lt_save_ifs
17101 # Let DOS variable expansion print the short 8.3 style file name.
17102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17104 done
17105 IFS=$lt_save_ifs
17106 # Convert to MSYS style.
17107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17108 ;;
17109 cygwin*)
17110 # Convert to unix form, then to dos form, then back to unix form
17111 # but this time dos style (no spaces!) so that the unix form looks
17112 # like /cygdrive/c/PROGRA~1:/cygdr...
17113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17116 ;;
17117 *)
17118 sys_lib_search_path_spec=$LIB
17119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17120 # It is most probably a Windows format PATH.
17121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17122 else
17123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17124 fi
17125 # FIXME: find the short name or the path components, as spaces are
17126 # common. (e.g. "Program Files" -> "PROGRA~1")
17127 ;;
17128 esac
17129
17130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17131 postinstall_cmds='base_file=`basename \$file`~
17132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17133 dldir=$destdir/`dirname \$dlpath`~
17134 test -d \$dldir || mkdir -p \$dldir~
17135 $install_prog $dir/$dlname \$dldir/$dlname'
17136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17137 dlpath=$dir/\$dldll~
17138 $RM \$dlpath'
17139 shlibpath_overrides_runpath=yes
17140 dynamic_linker='Win32 link.exe'
17141 ;;
17142
17143 *)
17144 # Assume MSVC wrapper
17145 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17146 dynamic_linker='Win32 ld.exe'
17147 ;;
17148 esac
17149 # FIXME: first we should search . and the directory the executable is in
17150 shlibpath_var=PATH
17151 ;;
17152
17153 darwin* | rhapsody*)
17154 dynamic_linker="$host_os dyld"
17155 version_type=darwin
17156 need_lib_prefix=no
17157 need_version=no
17158 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17159 soname_spec='$libname$release$major$shared_ext'
17160 shlibpath_overrides_runpath=yes
17161 shlibpath_var=DYLD_LIBRARY_PATH
17162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17163
17164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17166 ;;
17167
17168 dgux*)
17169 version_type=linux # correct to gnu/linux during the next big refactor
17170 need_lib_prefix=no
17171 need_version=no
17172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17173 soname_spec='$libname$release$shared_ext$major'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 ;;
17176
17177 freebsd* | dragonfly*)
17178 # DragonFly does not have aout. When/if they implement a new
17179 # versioning mechanism, adjust this.
17180 if test -x /usr/bin/objformat; then
17181 objformat=`/usr/bin/objformat`
17182 else
17183 case $host_os in
17184 freebsd[23].*) objformat=aout ;;
17185 *) objformat=elf ;;
17186 esac
17187 fi
17188 version_type=freebsd-$objformat
17189 case $version_type in
17190 freebsd-elf*)
17191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17192 soname_spec='$libname$release$shared_ext$major'
17193 need_version=no
17194 need_lib_prefix=no
17195 ;;
17196 freebsd-*)
17197 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17198 need_version=yes
17199 ;;
17200 esac
17201 shlibpath_var=LD_LIBRARY_PATH
17202 case $host_os in
17203 freebsd2.*)
17204 shlibpath_overrides_runpath=yes
17205 ;;
17206 freebsd3.[01]* | freebsdelf3.[01]*)
17207 shlibpath_overrides_runpath=yes
17208 hardcode_into_libs=yes
17209 ;;
17210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 ;;
17215 *) # from 4.6 on, and DragonFly
17216 shlibpath_overrides_runpath=yes
17217 hardcode_into_libs=yes
17218 ;;
17219 esac
17220 ;;
17221
17222 haiku*)
17223 version_type=linux # correct to gnu/linux during the next big refactor
17224 need_lib_prefix=no
17225 need_version=no
17226 dynamic_linker="$host_os runtime_loader"
17227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17228 soname_spec='$libname$release$shared_ext$major'
17229 shlibpath_var=LIBRARY_PATH
17230 shlibpath_overrides_runpath=no
17231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17232 hardcode_into_libs=yes
17233 ;;
17234
17235 hpux9* | hpux10* | hpux11*)
17236 # Give a soname corresponding to the major version so that dld.sl refuses to
17237 # link against other versions.
17238 version_type=sunos
17239 need_lib_prefix=no
17240 need_version=no
17241 case $host_cpu in
17242 ia64*)
17243 shrext_cmds='.so'
17244 hardcode_into_libs=yes
17245 dynamic_linker="$host_os dld.so"
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17249 soname_spec='$libname$release$shared_ext$major'
17250 if test 32 = "$HPUX_IA64_MODE"; then
17251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17252 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17253 else
17254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17255 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17256 fi
17257 ;;
17258 hppa*64*)
17259 shrext_cmds='.sl'
17260 hardcode_into_libs=yes
17261 dynamic_linker="$host_os dld.sl"
17262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17265 soname_spec='$libname$release$shared_ext$major'
17266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17268 ;;
17269 *)
17270 shrext_cmds='.sl'
17271 dynamic_linker="$host_os dld.sl"
17272 shlibpath_var=SHLIB_PATH
17273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17275 soname_spec='$libname$release$shared_ext$major'
17276 ;;
17277 esac
17278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17279 postinstall_cmds='chmod 555 $lib'
17280 # or fails outright, so override atomically:
17281 install_override_mode=555
17282 ;;
17283
17284 interix[3-9]*)
17285 version_type=linux # correct to gnu/linux during the next big refactor
17286 need_lib_prefix=no
17287 need_version=no
17288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17289 soname_spec='$libname$release$shared_ext$major'
17290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=no
17293 hardcode_into_libs=yes
17294 ;;
17295
17296 irix5* | irix6* | nonstopux*)
17297 case $host_os in
17298 nonstopux*) version_type=nonstopux ;;
17299 *)
17300 if test yes = "$lt_cv_prog_gnu_ld"; then
17301 version_type=linux # correct to gnu/linux during the next big refactor
17302 else
17303 version_type=irix
17304 fi ;;
17305 esac
17306 need_lib_prefix=no
17307 need_version=no
17308 soname_spec='$libname$release$shared_ext$major'
17309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17310 case $host_os in
17311 irix5* | nonstopux*)
17312 libsuff= shlibsuff=
17313 ;;
17314 *)
17315 case $LD in # libtool.m4 will add one of these switches to LD
17316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17317 libsuff= shlibsuff= libmagic=32-bit;;
17318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17319 libsuff=32 shlibsuff=N32 libmagic=N32;;
17320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17322 *) libsuff= shlibsuff= libmagic=never-match;;
17323 esac
17324 ;;
17325 esac
17326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17327 shlibpath_overrides_runpath=no
17328 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17329 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17330 hardcode_into_libs=yes
17331 ;;
17332
17333 # No shared lib support for Linux oldld, aout, or coff.
17334 linux*oldld* | linux*aout* | linux*coff*)
17335 dynamic_linker=no
17336 ;;
17337
17338 linux*android*)
17339 version_type=none # Android doesn't support versioned libraries.
17340 need_lib_prefix=no
17341 need_version=no
17342 library_names_spec='$libname$release$shared_ext'
17343 soname_spec='$libname$release$shared_ext'
17344 finish_cmds=
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes
17347
17348 # This implies no fast_install, which is unacceptable.
17349 # Some rework will be needed to allow for fast_install
17350 # before this can be enabled.
17351 hardcode_into_libs=yes
17352
17353 dynamic_linker='Android linker'
17354 # Don't embed -rpath directories since the linker doesn't support them.
17355 hardcode_libdir_flag_spec='-L$libdir'
17356 ;;
17357
17358 # This must be glibc/ELF.
17359 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17360 version_type=linux # correct to gnu/linux during the next big refactor
17361 need_lib_prefix=no
17362 need_version=no
17363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17364 soname_spec='$libname$release$shared_ext$major'
17365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17368
17369 # Some binutils ld are patched to set DT_RUNPATH
17370 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 lt_cv_shlibpath_overrides_runpath=no
17374 save_LDFLAGS=$LDFLAGS
17375 save_libdir=$libdir
17376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380
17381 int
17382 main ()
17383 {
17384
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17391 lt_cv_shlibpath_overrides_runpath=yes
17392 fi
17393 fi
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LDFLAGS=$save_LDFLAGS
17397 libdir=$save_libdir
17398
17399 fi
17400
17401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17402
17403 # This implies no fast_install, which is unacceptable.
17404 # Some rework will be needed to allow for fast_install
17405 # before this can be enabled.
17406 hardcode_into_libs=yes
17407
17408 # Add ABI-specific directories to the system library path.
17409 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17410
17411 # Ideally, we could use ldconfig to report *all* directores which are
17412 # searched for libraries, however this is still not possible. Aside from not
17413 # being certain /sbin/ldconfig is available, command
17414 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17415 # even though it is searched at run-time. Try to do the best guess by
17416 # appending ld.so.conf contents (and includes) to the search path.
17417 if test -f /etc/ld.so.conf; then
17418 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' ' '`
17419 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17420 fi
17421
17422 # We used to test for /lib/ld.so.1 and disable shared libraries on
17423 # powerpc, because MkLinux only supported shared libraries with the
17424 # GNU dynamic linker. Since this was broken with cross compilers,
17425 # most powerpc-linux boxes support dynamic linking these days and
17426 # people can always --disable-shared, the test was removed, and we
17427 # assume the GNU/Linux dynamic linker is in use.
17428 dynamic_linker='GNU/Linux ld.so'
17429 ;;
17430
17431 netbsd*)
17432 version_type=sunos
17433 need_lib_prefix=no
17434 need_version=no
17435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17436 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17438 dynamic_linker='NetBSD (a.out) ld.so'
17439 else
17440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17441 soname_spec='$libname$release$shared_ext$major'
17442 dynamic_linker='NetBSD ld.elf_so'
17443 fi
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 hardcode_into_libs=yes
17447 ;;
17448
17449 newsos6)
17450 version_type=linux # correct to gnu/linux during the next big refactor
17451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17452 shlibpath_var=LD_LIBRARY_PATH
17453 shlibpath_overrides_runpath=yes
17454 ;;
17455
17456 *nto* | *qnx*)
17457 version_type=qnx
17458 need_lib_prefix=no
17459 need_version=no
17460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17461 soname_spec='$libname$release$shared_ext$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 dynamic_linker='ldqnx.so'
17466 ;;
17467
17468 openbsd* | bitrig*)
17469 version_type=sunos
17470 sys_lib_dlsearch_path_spec=/usr/lib
17471 need_lib_prefix=no
17472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17473 need_version=no
17474 else
17475 need_version=yes
17476 fi
17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 shlibpath_overrides_runpath=yes
17481 ;;
17482
17483 os2*)
17484 libname_spec='$name'
17485 version_type=windows
17486 shrext_cmds=.dll
17487 need_version=no
17488 need_lib_prefix=no
17489 # OS/2 can only load a DLL with a base name of 8 characters or less.
17490 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17491 v=$($ECHO $release$versuffix | tr -d .-);
17492 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17493 $ECHO $n$v`$shared_ext'
17494 library_names_spec='${libname}_dll.$libext'
17495 dynamic_linker='OS/2 ld.exe'
17496 shlibpath_var=BEGINLIBPATH
17497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17499 postinstall_cmds='base_file=`basename \$file`~
17500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17501 dldir=$destdir/`dirname \$dlpath`~
17502 test -d \$dldir || mkdir -p \$dldir~
17503 $install_prog $dir/$dlname \$dldir/$dlname~
17504 chmod a+x \$dldir/$dlname~
17505 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17506 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17507 fi'
17508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17509 dlpath=$dir/\$dldll~
17510 $RM \$dlpath'
17511 ;;
17512
17513 osf3* | osf4* | osf5*)
17514 version_type=osf
17515 need_lib_prefix=no
17516 need_version=no
17517 soname_spec='$libname$release$shared_ext$major'
17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17522 ;;
17523
17524 rdos*)
17525 dynamic_linker=no
17526 ;;
17527
17528 solaris*)
17529 version_type=linux # correct to gnu/linux during the next big refactor
17530 need_lib_prefix=no
17531 need_version=no
17532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17533 soname_spec='$libname$release$shared_ext$major'
17534 shlibpath_var=LD_LIBRARY_PATH
17535 shlibpath_overrides_runpath=yes
17536 hardcode_into_libs=yes
17537 # ldd complains unless libraries are executable
17538 postinstall_cmds='chmod +x $lib'
17539 ;;
17540
17541 sunos4*)
17542 version_type=sunos
17543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17545 shlibpath_var=LD_LIBRARY_PATH
17546 shlibpath_overrides_runpath=yes
17547 if test yes = "$with_gnu_ld"; then
17548 need_lib_prefix=no
17549 fi
17550 need_version=yes
17551 ;;
17552
17553 sysv4 | sysv4.3*)
17554 version_type=linux # correct to gnu/linux during the next big refactor
17555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17556 soname_spec='$libname$release$shared_ext$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 case $host_vendor in
17559 sni)
17560 shlibpath_overrides_runpath=no
17561 need_lib_prefix=no
17562 runpath_var=LD_RUN_PATH
17563 ;;
17564 siemens)
17565 need_lib_prefix=no
17566 ;;
17567 motorola)
17568 need_lib_prefix=no
17569 need_version=no
17570 shlibpath_overrides_runpath=no
17571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17572 ;;
17573 esac
17574 ;;
17575
17576 sysv4*MP*)
17577 if test -d /usr/nec; then
17578 version_type=linux # correct to gnu/linux during the next big refactor
17579 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17580 soname_spec='$libname$shared_ext.$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 fi
17583 ;;
17584
17585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17586 version_type=sco
17587 need_lib_prefix=no
17588 need_version=no
17589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17590 soname_spec='$libname$release$shared_ext$major'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 shlibpath_overrides_runpath=yes
17593 hardcode_into_libs=yes
17594 if test yes = "$with_gnu_ld"; then
17595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17596 else
17597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17598 case $host_os in
17599 sco3.2v5*)
17600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17601 ;;
17602 esac
17603 fi
17604 sys_lib_dlsearch_path_spec='/usr/lib'
17605 ;;
17606
17607 tpf*)
17608 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17609 version_type=linux # correct to gnu/linux during the next big refactor
17610 need_lib_prefix=no
17611 need_version=no
17612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 shlibpath_overrides_runpath=no
17615 hardcode_into_libs=yes
17616 ;;
17617
17618 uts4*)
17619 version_type=linux # correct to gnu/linux during the next big refactor
17620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17621 soname_spec='$libname$release$shared_ext$major'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 ;;
17624
17625 *)
17626 dynamic_linker=no
17627 ;;
17628 esac
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17630 $as_echo "$dynamic_linker" >&6; }
17631 test no = "$dynamic_linker" && can_build_shared=no
17632
17633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17634 if test yes = "$GCC"; then
17635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17636 fi
17637
17638 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17639 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17640 fi
17641
17642 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17643 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17644 fi
17645
17646 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17647 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17648
17649 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17650 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17651
17652 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17653 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17753 hardcode_action=
17754 if test -n "$hardcode_libdir_flag_spec" ||
17755 test -n "$runpath_var" ||
17756 test yes = "$hardcode_automatic"; then
17757
17758 # We can hardcode non-existent directories.
17759 if test no != "$hardcode_direct" &&
17760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17761 # have to relink, otherwise we might link with an installed library
17762 # when we should be linking with a yet-to-be-installed one
17763 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17764 test no != "$hardcode_minus_L"; then
17765 # Linking always hardcodes the temporary library directory.
17766 hardcode_action=relink
17767 else
17768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17769 hardcode_action=immediate
17770 fi
17771 else
17772 # We cannot hardcode anything, or else we can only hardcode existing
17773 # directories.
17774 hardcode_action=unsupported
17775 fi
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17777 $as_echo "$hardcode_action" >&6; }
17778
17779 if test relink = "$hardcode_action" ||
17780 test yes = "$inherit_rpath"; then
17781 # Fast installation is not supported
17782 enable_fast_install=no
17783 elif test yes = "$shlibpath_overrides_runpath" ||
17784 test no = "$enable_shared"; then
17785 # Fast installation is not necessary
17786 enable_fast_install=needless
17787 fi
17788
17789
17790
17791
17792
17793
17794 if test yes != "$enable_dlopen"; then
17795 enable_dlopen=unknown
17796 enable_dlopen_self=unknown
17797 enable_dlopen_self_static=unknown
17798 else
17799 lt_cv_dlopen=no
17800 lt_cv_dlopen_libs=
17801
17802 case $host_os in
17803 beos*)
17804 lt_cv_dlopen=load_add_on
17805 lt_cv_dlopen_libs=
17806 lt_cv_dlopen_self=yes
17807 ;;
17808
17809 mingw* | pw32* | cegcc*)
17810 lt_cv_dlopen=LoadLibrary
17811 lt_cv_dlopen_libs=
17812 ;;
17813
17814 cygwin*)
17815 lt_cv_dlopen=dlopen
17816 lt_cv_dlopen_libs=
17817 ;;
17818
17819 darwin*)
17820 # if libdl is installed we need to link against it
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17823 if ${ac_cv_lib_dl_dlopen+:} false; then :
17824 $as_echo_n "(cached) " >&6
17825 else
17826 ac_check_lib_save_LIBS=$LIBS
17827 LIBS="-ldl $LIBS"
17828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17830
17831 /* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17834 #ifdef __cplusplus
17835 extern "C"
17836 #endif
17837 char dlopen ();
17838 int
17839 main ()
17840 {
17841 return dlopen ();
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 if ac_fn_c_try_link "$LINENO"; then :
17847 ac_cv_lib_dl_dlopen=yes
17848 else
17849 ac_cv_lib_dl_dlopen=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853 LIBS=$ac_check_lib_save_LIBS
17854 fi
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17858 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17859 else
17860
17861 lt_cv_dlopen=dyld
17862 lt_cv_dlopen_libs=
17863 lt_cv_dlopen_self=yes
17864
17865 fi
17866
17867 ;;
17868
17869 tpf*)
17870 # Don't try to run any link tests for TPF. We know it's impossible
17871 # because TPF is a cross-compiler, and we know how we open DSOs.
17872 lt_cv_dlopen=dlopen
17873 lt_cv_dlopen_libs=
17874 lt_cv_dlopen_self=no
17875 ;;
17876
17877 *)
17878 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17879 if test "x$ac_cv_func_shl_load" = xyes; then :
17880 lt_cv_dlopen=shl_load
17881 else
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17883 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17884 if ${ac_cv_lib_dld_shl_load+:} false; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887 ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-ldld $LIBS"
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17895 #ifdef __cplusplus
17896 extern "C"
17897 #endif
17898 char shl_load ();
17899 int
17900 main ()
17901 {
17902 return shl_load ();
17903 ;
17904 return 0;
17905 }
17906 _ACEOF
17907 if ac_fn_c_try_link "$LINENO"; then :
17908 ac_cv_lib_dld_shl_load=yes
17909 else
17910 ac_cv_lib_dld_shl_load=no
17911 fi
17912 rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_lib_save_LIBS
17915 fi
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17917 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17918 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17919 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17920 else
17921 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17922 if test "x$ac_cv_func_dlopen" = xyes; then :
17923 lt_cv_dlopen=dlopen
17924 else
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17926 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17927 if ${ac_cv_lib_dl_dlopen+:} false; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-ldl $LIBS"
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 /* Override any GCC internal prototype to avoid an error.
17936 Use char because int might match the return type of a GCC
17937 builtin and then its argument prototype would still apply. */
17938 #ifdef __cplusplus
17939 extern "C"
17940 #endif
17941 char dlopen ();
17942 int
17943 main ()
17944 {
17945 return dlopen ();
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"; then :
17951 ac_cv_lib_dl_dlopen=yes
17952 else
17953 ac_cv_lib_dl_dlopen=no
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17958 fi
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17960 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17961 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17962 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17963 else
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17965 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17966 if ${ac_cv_lib_svld_dlopen+:} false; then :
17967 $as_echo_n "(cached) " >&6
17968 else
17969 ac_check_lib_save_LIBS=$LIBS
17970 LIBS="-lsvld $LIBS"
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17973
17974 /* Override any GCC internal prototype to avoid an error.
17975 Use char because int might match the return type of a GCC
17976 builtin and then its argument prototype would still apply. */
17977 #ifdef __cplusplus
17978 extern "C"
17979 #endif
17980 char dlopen ();
17981 int
17982 main ()
17983 {
17984 return dlopen ();
17985 ;
17986 return 0;
17987 }
17988 _ACEOF
17989 if ac_fn_c_try_link "$LINENO"; then :
17990 ac_cv_lib_svld_dlopen=yes
17991 else
17992 ac_cv_lib_svld_dlopen=no
17993 fi
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17997 fi
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17999 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18000 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18002 else
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18004 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18005 if ${ac_cv_lib_dld_dld_link+:} false; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008 ac_check_lib_save_LIBS=$LIBS
18009 LIBS="-ldld $LIBS"
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char dld_link ();
18020 int
18021 main ()
18022 {
18023 return dld_link ();
18024 ;
18025 return 0;
18026 }
18027 _ACEOF
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 ac_cv_lib_dld_dld_link=yes
18030 else
18031 ac_cv_lib_dld_dld_link=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18036 fi
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18038 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18039 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18040 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18041 fi
18042
18043
18044 fi
18045
18046
18047 fi
18048
18049
18050 fi
18051
18052
18053 fi
18054
18055
18056 fi
18057
18058 ;;
18059 esac
18060
18061 if test no = "$lt_cv_dlopen"; then
18062 enable_dlopen=no
18063 else
18064 enable_dlopen=yes
18065 fi
18066
18067 case $lt_cv_dlopen in
18068 dlopen)
18069 save_CPPFLAGS=$CPPFLAGS
18070 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18071
18072 save_LDFLAGS=$LDFLAGS
18073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18074
18075 save_LIBS=$LIBS
18076 LIBS="$lt_cv_dlopen_libs $LIBS"
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18079 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18080 if ${lt_cv_dlopen_self+:} false; then :
18081 $as_echo_n "(cached) " >&6
18082 else
18083 if test yes = "$cross_compiling"; then :
18084 lt_cv_dlopen_self=cross
18085 else
18086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18087 lt_status=$lt_dlunknown
18088 cat > conftest.$ac_ext <<_LT_EOF
18089 #line $LINENO "configure"
18090 #include "confdefs.h"
18091
18092 #if HAVE_DLFCN_H
18093 #include <dlfcn.h>
18094 #endif
18095
18096 #include <stdio.h>
18097
18098 #ifdef RTLD_GLOBAL
18099 # define LT_DLGLOBAL RTLD_GLOBAL
18100 #else
18101 # ifdef DL_GLOBAL
18102 # define LT_DLGLOBAL DL_GLOBAL
18103 # else
18104 # define LT_DLGLOBAL 0
18105 # endif
18106 #endif
18107
18108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18109 find out it does not work in some platform. */
18110 #ifndef LT_DLLAZY_OR_NOW
18111 # ifdef RTLD_LAZY
18112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18113 # else
18114 # ifdef DL_LAZY
18115 # define LT_DLLAZY_OR_NOW DL_LAZY
18116 # else
18117 # ifdef RTLD_NOW
18118 # define LT_DLLAZY_OR_NOW RTLD_NOW
18119 # else
18120 # ifdef DL_NOW
18121 # define LT_DLLAZY_OR_NOW DL_NOW
18122 # else
18123 # define LT_DLLAZY_OR_NOW 0
18124 # endif
18125 # endif
18126 # endif
18127 # endif
18128 #endif
18129
18130 /* When -fvisibility=hidden is used, assume the code has been annotated
18131 correspondingly for the symbols needed. */
18132 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18133 int fnord () __attribute__((visibility("default")));
18134 #endif
18135
18136 int fnord () { return 42; }
18137 int main ()
18138 {
18139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18140 int status = $lt_dlunknown;
18141
18142 if (self)
18143 {
18144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18145 else
18146 {
18147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18148 else puts (dlerror ());
18149 }
18150 /* dlclose (self); */
18151 }
18152 else
18153 puts (dlerror ());
18154
18155 return status;
18156 }
18157 _LT_EOF
18158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18159 (eval $ac_link) 2>&5
18160 ac_status=$?
18161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18162 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18163 (./conftest; exit; ) >&5 2>/dev/null
18164 lt_status=$?
18165 case x$lt_status in
18166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18168 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18169 esac
18170 else :
18171 # compilation failed
18172 lt_cv_dlopen_self=no
18173 fi
18174 fi
18175 rm -fr conftest*
18176
18177
18178 fi
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18180 $as_echo "$lt_cv_dlopen_self" >&6; }
18181
18182 if test yes = "$lt_cv_dlopen_self"; then
18183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18185 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18186 if ${lt_cv_dlopen_self_static+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 if test yes = "$cross_compiling"; then :
18190 lt_cv_dlopen_self_static=cross
18191 else
18192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18193 lt_status=$lt_dlunknown
18194 cat > conftest.$ac_ext <<_LT_EOF
18195 #line $LINENO "configure"
18196 #include "confdefs.h"
18197
18198 #if HAVE_DLFCN_H
18199 #include <dlfcn.h>
18200 #endif
18201
18202 #include <stdio.h>
18203
18204 #ifdef RTLD_GLOBAL
18205 # define LT_DLGLOBAL RTLD_GLOBAL
18206 #else
18207 # ifdef DL_GLOBAL
18208 # define LT_DLGLOBAL DL_GLOBAL
18209 # else
18210 # define LT_DLGLOBAL 0
18211 # endif
18212 #endif
18213
18214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18215 find out it does not work in some platform. */
18216 #ifndef LT_DLLAZY_OR_NOW
18217 # ifdef RTLD_LAZY
18218 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18219 # else
18220 # ifdef DL_LAZY
18221 # define LT_DLLAZY_OR_NOW DL_LAZY
18222 # else
18223 # ifdef RTLD_NOW
18224 # define LT_DLLAZY_OR_NOW RTLD_NOW
18225 # else
18226 # ifdef DL_NOW
18227 # define LT_DLLAZY_OR_NOW DL_NOW
18228 # else
18229 # define LT_DLLAZY_OR_NOW 0
18230 # endif
18231 # endif
18232 # endif
18233 # endif
18234 #endif
18235
18236 /* When -fvisibility=hidden is used, assume the code has been annotated
18237 correspondingly for the symbols needed. */
18238 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18239 int fnord () __attribute__((visibility("default")));
18240 #endif
18241
18242 int fnord () { return 42; }
18243 int main ()
18244 {
18245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18246 int status = $lt_dlunknown;
18247
18248 if (self)
18249 {
18250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18251 else
18252 {
18253 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18254 else puts (dlerror ());
18255 }
18256 /* dlclose (self); */
18257 }
18258 else
18259 puts (dlerror ());
18260
18261 return status;
18262 }
18263 _LT_EOF
18264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18265 (eval $ac_link) 2>&5
18266 ac_status=$?
18267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18268 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18269 (./conftest; exit; ) >&5 2>/dev/null
18270 lt_status=$?
18271 case x$lt_status in
18272 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18273 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18274 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18275 esac
18276 else :
18277 # compilation failed
18278 lt_cv_dlopen_self_static=no
18279 fi
18280 fi
18281 rm -fr conftest*
18282
18283
18284 fi
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18286 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18287 fi
18288
18289 CPPFLAGS=$save_CPPFLAGS
18290 LDFLAGS=$save_LDFLAGS
18291 LIBS=$save_LIBS
18292 ;;
18293 esac
18294
18295 case $lt_cv_dlopen_self in
18296 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18297 *) enable_dlopen_self=unknown ;;
18298 esac
18299
18300 case $lt_cv_dlopen_self_static in
18301 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18302 *) enable_dlopen_self_static=unknown ;;
18303 esac
18304 fi
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322 striplib=
18323 old_striplib=
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18325 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18326 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18327 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18328 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330 $as_echo "yes" >&6; }
18331 else
18332 # FIXME - insert some real tests, host_os isn't really good enough
18333 case $host_os in
18334 darwin*)
18335 if test -n "$STRIP"; then
18336 striplib="$STRIP -x"
18337 old_striplib="$STRIP -S"
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339 $as_echo "yes" >&6; }
18340 else
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18342 $as_echo "no" >&6; }
18343 fi
18344 ;;
18345 *)
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18347 $as_echo "no" >&6; }
18348 ;;
18349 esac
18350 fi
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363 # Report what library types will actually be built
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18365 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18367 $as_echo "$can_build_shared" >&6; }
18368
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18370 $as_echo_n "checking whether to build shared libraries... " >&6; }
18371 test no = "$can_build_shared" && enable_shared=no
18372
18373 # On AIX, shared libraries and static libraries use the same namespace, and
18374 # are all built from PIC.
18375 case $host_os in
18376 aix3*)
18377 test yes = "$enable_shared" && enable_static=no
18378 if test -n "$RANLIB"; then
18379 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18380 postinstall_cmds='$RANLIB $lib'
18381 fi
18382 ;;
18383
18384 aix[4-9]*)
18385 if test ia64 != "$host_cpu"; then
18386 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18387 yes,aix,yes) ;; # shared object as lib.so file only
18388 yes,svr4,*) ;; # shared object as lib.so archive member only
18389 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18390 esac
18391 fi
18392 ;;
18393 esac
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18395 $as_echo "$enable_shared" >&6; }
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18398 $as_echo_n "checking whether to build static libraries... " >&6; }
18399 # Make sure either enable_shared or enable_static is yes.
18400 test yes = "$enable_shared" || enable_static=yes
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18402 $as_echo "$enable_static" >&6; }
18403
18404
18405
18406
18407 fi
18408 ac_ext=c
18409 ac_cpp='$CPP $CPPFLAGS'
18410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413
18414 CC=$lt_save_CC
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430 ac_config_commands="$ac_config_commands libtool"
18431
18432
18433
18434
18435 # Only expand once:
18436
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 if test -n "$ac_tool_prefix"; then
18444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18447 $as_echo_n "checking for $ac_word... " >&6; }
18448 if ${ac_cv_prog_CC+:} false; then :
18449 $as_echo_n "(cached) " >&6
18450 else
18451 if test -n "$CC"; then
18452 ac_cv_prog_CC="$CC" # Let the user override the test.
18453 else
18454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455 for as_dir in $PATH
18456 do
18457 IFS=$as_save_IFS
18458 test -z "$as_dir" && as_dir=.
18459 for ac_exec_ext in '' $ac_executable_extensions; do
18460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18463 break 2
18464 fi
18465 done
18466 done
18467 IFS=$as_save_IFS
18468
18469 fi
18470 fi
18471 CC=$ac_cv_prog_CC
18472 if test -n "$CC"; then
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18474 $as_echo "$CC" >&6; }
18475 else
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478 fi
18479
18480
18481 fi
18482 if test -z "$ac_cv_prog_CC"; then
18483 ac_ct_CC=$CC
18484 # Extract the first word of "gcc", so it can be a program name with args.
18485 set dummy gcc; ac_word=$2
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18487 $as_echo_n "checking for $ac_word... " >&6; }
18488 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18489 $as_echo_n "(cached) " >&6
18490 else
18491 if test -n "$ac_ct_CC"; then
18492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18493 else
18494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18495 for as_dir in $PATH
18496 do
18497 IFS=$as_save_IFS
18498 test -z "$as_dir" && as_dir=.
18499 for ac_exec_ext in '' $ac_executable_extensions; do
18500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18501 ac_cv_prog_ac_ct_CC="gcc"
18502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18503 break 2
18504 fi
18505 done
18506 done
18507 IFS=$as_save_IFS
18508
18509 fi
18510 fi
18511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18512 if test -n "$ac_ct_CC"; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18514 $as_echo "$ac_ct_CC" >&6; }
18515 else
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517 $as_echo "no" >&6; }
18518 fi
18519
18520 if test "x$ac_ct_CC" = x; then
18521 CC=""
18522 else
18523 case $cross_compiling:$ac_tool_warned in
18524 yes:)
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18527 ac_tool_warned=yes ;;
18528 esac
18529 CC=$ac_ct_CC
18530 fi
18531 else
18532 CC="$ac_cv_prog_CC"
18533 fi
18534
18535 if test -z "$CC"; then
18536 if test -n "$ac_tool_prefix"; then
18537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18538 set dummy ${ac_tool_prefix}cc; ac_word=$2
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18540 $as_echo_n "checking for $ac_word... " >&6; }
18541 if ${ac_cv_prog_CC+:} false; then :
18542 $as_echo_n "(cached) " >&6
18543 else
18544 if test -n "$CC"; then
18545 ac_cv_prog_CC="$CC" # Let the user override the test.
18546 else
18547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18548 for as_dir in $PATH
18549 do
18550 IFS=$as_save_IFS
18551 test -z "$as_dir" && as_dir=.
18552 for ac_exec_ext in '' $ac_executable_extensions; do
18553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18554 ac_cv_prog_CC="${ac_tool_prefix}cc"
18555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18556 break 2
18557 fi
18558 done
18559 done
18560 IFS=$as_save_IFS
18561
18562 fi
18563 fi
18564 CC=$ac_cv_prog_CC
18565 if test -n "$CC"; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18567 $as_echo "$CC" >&6; }
18568 else
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18571 fi
18572
18573
18574 fi
18575 fi
18576 if test -z "$CC"; then
18577 # Extract the first word of "cc", so it can be a program name with args.
18578 set dummy cc; ac_word=$2
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 $as_echo_n "checking for $ac_word... " >&6; }
18581 if ${ac_cv_prog_CC+:} false; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584 if test -n "$CC"; then
18585 ac_cv_prog_CC="$CC" # Let the user override the test.
18586 else
18587 ac_prog_rejected=no
18588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589 for as_dir in $PATH
18590 do
18591 IFS=$as_save_IFS
18592 test -z "$as_dir" && as_dir=.
18593 for ac_exec_ext in '' $ac_executable_extensions; do
18594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18596 ac_prog_rejected=yes
18597 continue
18598 fi
18599 ac_cv_prog_CC="cc"
18600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18601 break 2
18602 fi
18603 done
18604 done
18605 IFS=$as_save_IFS
18606
18607 if test $ac_prog_rejected = yes; then
18608 # We found a bogon in the path, so make sure we never use it.
18609 set dummy $ac_cv_prog_CC
18610 shift
18611 if test $# != 0; then
18612 # We chose a different compiler from the bogus one.
18613 # However, it has the same basename, so the bogon will be chosen
18614 # first if we set CC to just the basename; use the full file name.
18615 shift
18616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18617 fi
18618 fi
18619 fi
18620 fi
18621 CC=$ac_cv_prog_CC
18622 if test -n "$CC"; then
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18624 $as_echo "$CC" >&6; }
18625 else
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18627 $as_echo "no" >&6; }
18628 fi
18629
18630
18631 fi
18632 if test -z "$CC"; then
18633 if test -n "$ac_tool_prefix"; then
18634 for ac_prog in cl.exe
18635 do
18636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18639 $as_echo_n "checking for $ac_word... " >&6; }
18640 if ${ac_cv_prog_CC+:} false; then :
18641 $as_echo_n "(cached) " >&6
18642 else
18643 if test -n "$CC"; then
18644 ac_cv_prog_CC="$CC" # Let the user override the test.
18645 else
18646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18647 for as_dir in $PATH
18648 do
18649 IFS=$as_save_IFS
18650 test -z "$as_dir" && as_dir=.
18651 for ac_exec_ext in '' $ac_executable_extensions; do
18652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18655 break 2
18656 fi
18657 done
18658 done
18659 IFS=$as_save_IFS
18660
18661 fi
18662 fi
18663 CC=$ac_cv_prog_CC
18664 if test -n "$CC"; then
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18666 $as_echo "$CC" >&6; }
18667 else
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18669 $as_echo "no" >&6; }
18670 fi
18671
18672
18673 test -n "$CC" && break
18674 done
18675 fi
18676 if test -z "$CC"; then
18677 ac_ct_CC=$CC
18678 for ac_prog in cl.exe
18679 do
18680 # Extract the first word of "$ac_prog", so it can be a program name with args.
18681 set dummy $ac_prog; ac_word=$2
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18683 $as_echo_n "checking for $ac_word... " >&6; }
18684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18685 $as_echo_n "(cached) " >&6
18686 else
18687 if test -n "$ac_ct_CC"; then
18688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18689 else
18690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18691 for as_dir in $PATH
18692 do
18693 IFS=$as_save_IFS
18694 test -z "$as_dir" && as_dir=.
18695 for ac_exec_ext in '' $ac_executable_extensions; do
18696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18697 ac_cv_prog_ac_ct_CC="$ac_prog"
18698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18699 break 2
18700 fi
18701 done
18702 done
18703 IFS=$as_save_IFS
18704
18705 fi
18706 fi
18707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18708 if test -n "$ac_ct_CC"; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18710 $as_echo "$ac_ct_CC" >&6; }
18711 else
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18713 $as_echo "no" >&6; }
18714 fi
18715
18716
18717 test -n "$ac_ct_CC" && break
18718 done
18719
18720 if test "x$ac_ct_CC" = x; then
18721 CC=""
18722 else
18723 case $cross_compiling:$ac_tool_warned in
18724 yes:)
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18727 ac_tool_warned=yes ;;
18728 esac
18729 CC=$ac_ct_CC
18730 fi
18731 fi
18732
18733 fi
18734
18735
18736 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18738 as_fn_error $? "no acceptable C compiler found in \$PATH
18739 See \`config.log' for more details" "$LINENO" 5; }
18740
18741 # Provide some information about the compiler.
18742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18743 set X $ac_compile
18744 ac_compiler=$2
18745 for ac_option in --version -v -V -qversion; do
18746 { { ac_try="$ac_compiler $ac_option >&5"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18752 $as_echo "$ac_try_echo"; } >&5
18753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18754 ac_status=$?
18755 if test -s conftest.err; then
18756 sed '10a\
18757 ... rest of stderr output deleted ...
18758 10q' conftest.err >conftest.er1
18759 cat conftest.er1 >&5
18760 fi
18761 rm -f conftest.er1 conftest.err
18762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18763 test $ac_status = 0; }
18764 done
18765
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18768 if ${ac_cv_c_compiler_gnu+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773
18774 int
18775 main ()
18776 {
18777 #ifndef __GNUC__
18778 choke me
18779 #endif
18780
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 if ac_fn_c_try_compile "$LINENO"; then :
18786 ac_compiler_gnu=yes
18787 else
18788 ac_compiler_gnu=no
18789 fi
18790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18792
18793 fi
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18796 if test $ac_compiler_gnu = yes; then
18797 GCC=yes
18798 else
18799 GCC=
18800 fi
18801 ac_test_CFLAGS=${CFLAGS+set}
18802 ac_save_CFLAGS=$CFLAGS
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18805 if ${ac_cv_prog_cc_g+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808 ac_save_c_werror_flag=$ac_c_werror_flag
18809 ac_c_werror_flag=yes
18810 ac_cv_prog_cc_g=no
18811 CFLAGS="-g"
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814
18815 int
18816 main ()
18817 {
18818
18819 ;
18820 return 0;
18821 }
18822 _ACEOF
18823 if ac_fn_c_try_compile "$LINENO"; then :
18824 ac_cv_prog_cc_g=yes
18825 else
18826 CFLAGS=""
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829
18830 int
18831 main ()
18832 {
18833
18834 ;
18835 return 0;
18836 }
18837 _ACEOF
18838 if ac_fn_c_try_compile "$LINENO"; then :
18839
18840 else
18841 ac_c_werror_flag=$ac_save_c_werror_flag
18842 CFLAGS="-g"
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845
18846 int
18847 main ()
18848 {
18849
18850 ;
18851 return 0;
18852 }
18853 _ACEOF
18854 if ac_fn_c_try_compile "$LINENO"; then :
18855 ac_cv_prog_cc_g=yes
18856 fi
18857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18858 fi
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18860 fi
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 ac_c_werror_flag=$ac_save_c_werror_flag
18863 fi
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18865 $as_echo "$ac_cv_prog_cc_g" >&6; }
18866 if test "$ac_test_CFLAGS" = set; then
18867 CFLAGS=$ac_save_CFLAGS
18868 elif test $ac_cv_prog_cc_g = yes; then
18869 if test "$GCC" = yes; then
18870 CFLAGS="-g -O2"
18871 else
18872 CFLAGS="-g"
18873 fi
18874 else
18875 if test "$GCC" = yes; then
18876 CFLAGS="-O2"
18877 else
18878 CFLAGS=
18879 fi
18880 fi
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18883 if ${ac_cv_prog_cc_c89+:} false; then :
18884 $as_echo_n "(cached) " >&6
18885 else
18886 ac_cv_prog_cc_c89=no
18887 ac_save_CC=$CC
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18890 #include <stdarg.h>
18891 #include <stdio.h>
18892 struct stat;
18893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18894 struct buf { int x; };
18895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18896 static char *e (p, i)
18897 char **p;
18898 int i;
18899 {
18900 return p[i];
18901 }
18902 static char *f (char * (*g) (char **, int), char **p, ...)
18903 {
18904 char *s;
18905 va_list v;
18906 va_start (v,p);
18907 s = g (p, va_arg (v,int));
18908 va_end (v);
18909 return s;
18910 }
18911
18912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18913 function prototypes and stuff, but not '\xHH' hex character constants.
18914 These don't provoke an error unfortunately, instead are silently treated
18915 as 'x'. The following induces an error, until -std is added to get
18916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18917 array size at least. It's necessary to write '\x00'==0 to get something
18918 that's true only with -std. */
18919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18920
18921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18922 inside strings and character constants. */
18923 #define FOO(x) 'x'
18924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18925
18926 int test (int i, double x);
18927 struct s1 {int (*f) (int a);};
18928 struct s2 {int (*f) (double a);};
18929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18930 int argc;
18931 char **argv;
18932 int
18933 main ()
18934 {
18935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18936 ;
18937 return 0;
18938 }
18939 _ACEOF
18940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18942 do
18943 CC="$ac_save_CC $ac_arg"
18944 if ac_fn_c_try_compile "$LINENO"; then :
18945 ac_cv_prog_cc_c89=$ac_arg
18946 fi
18947 rm -f core conftest.err conftest.$ac_objext
18948 test "x$ac_cv_prog_cc_c89" != "xno" && break
18949 done
18950 rm -f conftest.$ac_ext
18951 CC=$ac_save_CC
18952
18953 fi
18954 # AC_CACHE_VAL
18955 case "x$ac_cv_prog_cc_c89" in
18956 x)
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18958 $as_echo "none needed" >&6; } ;;
18959 xno)
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18961 $as_echo "unsupported" >&6; } ;;
18962 *)
18963 CC="$CC $ac_cv_prog_cc_c89"
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18966 esac
18967 if test "x$ac_cv_prog_cc_c89" != xno; then :
18968
18969 fi
18970
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976
18977 ac_ext=c
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18983 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18984 if ${am_cv_prog_cc_c_o+:} false; then :
18985 $as_echo_n "(cached) " >&6
18986 else
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989
18990 int
18991 main ()
18992 {
18993
18994 ;
18995 return 0;
18996 }
18997 _ACEOF
18998 # Make sure it works both with $CC and with simple cc.
18999 # Following AC_PROG_CC_C_O, we do the test twice because some
19000 # compilers refuse to overwrite an existing .o file with -o,
19001 # though they will create one.
19002 am_cv_prog_cc_c_o=yes
19003 for am_i in 1 2; do
19004 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19005 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } \
19009 && test -f conftest2.$ac_objext; then
19010 : OK
19011 else
19012 am_cv_prog_cc_c_o=no
19013 break
19014 fi
19015 done
19016 rm -f core conftest*
19017 unset am_i
19018 fi
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19020 $as_echo "$am_cv_prog_cc_c_o" >&6; }
19021 if test "$am_cv_prog_cc_c_o" != yes; then
19022 # Losing compiler, so override with the script.
19023 # FIXME: It is wrong to rewrite CC.
19024 # But if we don't then we get into trouble of one sort or another.
19025 # A longer-term fix would be to have automake use am__CC in this case,
19026 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19027 CC="$am_aux_dir/compile $CC"
19028 fi
19029 ac_ext=c
19030 ac_cpp='$CPP $CPPFLAGS'
19031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035
19036 depcc="$CC" am_compiler_list=
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19039 $as_echo_n "checking dependency style of $depcc... " >&6; }
19040 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19044 # We make a subdir and do the tests there. Otherwise we can end up
19045 # making bogus files that we don't know about and never remove. For
19046 # instance it was reported that on HP-UX the gcc test will end up
19047 # making a dummy file named 'D' -- because '-MD' means "put the output
19048 # in D".
19049 rm -rf conftest.dir
19050 mkdir conftest.dir
19051 # Copy depcomp to subdir because otherwise we won't find it if we're
19052 # using a relative directory.
19053 cp "$am_depcomp" conftest.dir
19054 cd conftest.dir
19055 # We will build objects and dependencies in a subdirectory because
19056 # it helps to detect inapplicable dependency modes. For instance
19057 # both Tru64's cc and ICC support -MD to output dependencies as a
19058 # side effect of compilation, but ICC will put the dependencies in
19059 # the current directory while Tru64 will put them in the object
19060 # directory.
19061 mkdir sub
19062
19063 am_cv_CC_dependencies_compiler_type=none
19064 if test "$am_compiler_list" = ""; then
19065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19066 fi
19067 am__universal=false
19068 case " $depcc " in #(
19069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19070 esac
19071
19072 for depmode in $am_compiler_list; do
19073 # Setup a source with many dependencies, because some compilers
19074 # like to wrap large dependency lists on column 80 (with \), and
19075 # we should not choose a depcomp mode which is confused by this.
19076 #
19077 # We need to recreate these files for each test, as the compiler may
19078 # overwrite some of them when testing with obscure command lines.
19079 # This happens at least with the AIX C compiler.
19080 : > sub/conftest.c
19081 for i in 1 2 3 4 5 6; do
19082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19084 # Solaris 10 /bin/sh.
19085 echo '/* dummy */' > sub/conftst$i.h
19086 done
19087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19088
19089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
19090 # mode. It turns out that the SunPro C++ compiler does not properly
19091 # handle '-M -o', and we need to detect this. Also, some Intel
19092 # versions had trouble with output in subdirs.
19093 am__obj=sub/conftest.${OBJEXT-o}
19094 am__minus_obj="-o $am__obj"
19095 case $depmode in
19096 gcc)
19097 # This depmode causes a compiler race in universal mode.
19098 test "$am__universal" = false || continue
19099 ;;
19100 nosideeffect)
19101 # After this tag, mechanisms are not by side-effect, so they'll
19102 # only be used when explicitly requested.
19103 if test "x$enable_dependency_tracking" = xyes; then
19104 continue
19105 else
19106 break
19107 fi
19108 ;;
19109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19110 # This compiler won't grok '-c -o', but also, the minuso test has
19111 # not run yet. These depmodes are late enough in the game, and
19112 # so weak that their functioning should not be impacted.
19113 am__obj=conftest.${OBJEXT-o}
19114 am__minus_obj=
19115 ;;
19116 none) break ;;
19117 esac
19118 if depmode=$depmode \
19119 source=sub/conftest.c object=$am__obj \
19120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19122 >/dev/null 2>conftest.err &&
19123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19127 # icc doesn't choke on unknown options, it will just issue warnings
19128 # or remarks (even with -Werror). So we grep stderr for any message
19129 # that says an option was ignored or not supported.
19130 # When given -MP, icc 7.0 and 7.1 complain thusly:
19131 # icc: Command line warning: ignoring option '-M'; no argument required
19132 # The diagnosis changed in icc 8.0:
19133 # icc: Command line remark: option '-MP' not supported
19134 if (grep 'ignoring option' conftest.err ||
19135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19136 am_cv_CC_dependencies_compiler_type=$depmode
19137 break
19138 fi
19139 fi
19140 done
19141
19142 cd ..
19143 rm -rf conftest.dir
19144 else
19145 am_cv_CC_dependencies_compiler_type=none
19146 fi
19147
19148 fi
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19152
19153 if
19154 test "x$enable_dependency_tracking" != xno \
19155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19156 am__fastdepCC_TRUE=
19157 am__fastdepCC_FALSE='#'
19158 else
19159 am__fastdepCC_TRUE='#'
19160 am__fastdepCC_FALSE=
19161 fi
19162
19163
19164
19165
19166
19167
19168 # Check whether --with-xorg-module-dir was given.
19169 if test "${with_xorg_module_dir+set}" = set; then :
19170 withval=$with_xorg_module_dir; moduledir="$withval"
19171 else
19172 moduledir="$libdir/xorg/modules"
19173 fi
19174
19175
19176 # Checks for extensions
19177
19178
19179 SAVE_CFLAGS="$CFLAGS"
19180 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183
19184 #include "xorg-server.h"
19185 #if !defined RANDR
19186 #error RANDR not defined
19187 #endif
19188
19189 int
19190 main ()
19191 {
19192
19193 ;
19194 return 0;
19195 }
19196 _ACEOF
19197 if ac_fn_c_try_compile "$LINENO"; then :
19198 _EXT_CHECK=yes
19199 else
19200 _EXT_CHECK=no
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 CFLAGS="$SAVE_CFLAGS"
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19205 $as_echo_n "checking if RANDR is defined... " >&6; }
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19207 $as_echo "$_EXT_CHECK" >&6; }
19208 if test "$_EXT_CHECK" != no; then
19209 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19210 fi
19211
19212
19213
19214 SAVE_CFLAGS="$CFLAGS"
19215 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19218
19219 #include "xorg-server.h"
19220 #if !defined RENDER
19221 #error RENDER not defined
19222 #endif
19223
19224 int
19225 main ()
19226 {
19227
19228 ;
19229 return 0;
19230 }
19231 _ACEOF
19232 if ac_fn_c_try_compile "$LINENO"; then :
19233 _EXT_CHECK=yes
19234 else
19235 _EXT_CHECK=no
19236 fi
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 CFLAGS="$SAVE_CFLAGS"
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19240 $as_echo_n "checking if RENDER is defined... " >&6; }
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19242 $as_echo "$_EXT_CHECK" >&6; }
19243 if test "$_EXT_CHECK" != no; then
19244 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19245 fi
19246
19247
19248
19249 SAVE_CFLAGS="$CFLAGS"
19250 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19253
19254 #include "xorg-server.h"
19255 #if !defined XV
19256 #error XV not defined
19257 #endif
19258
19259 int
19260 main ()
19261 {
19262
19263 ;
19264 return 0;
19265 }
19266 _ACEOF
19267 if ac_fn_c_try_compile "$LINENO"; then :
19268 _EXT_CHECK=yes
19269 else
19270 _EXT_CHECK=no
19271 fi
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 CFLAGS="$SAVE_CFLAGS"
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19275 $as_echo_n "checking if XV is defined... " >&6; }
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19277 $as_echo "$_EXT_CHECK" >&6; }
19278 if test "$_EXT_CHECK" != no; then
19279 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19280 fi
19281
19282
19283
19284 SAVE_CFLAGS="$CFLAGS"
19285 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288
19289 #include "xorg-server.h"
19290 #if !defined DPMSExtension
19291 #error DPMSExtension not defined
19292 #endif
19293
19294 int
19295 main ()
19296 {
19297
19298 ;
19299 return 0;
19300 }
19301 _ACEOF
19302 if ac_fn_c_try_compile "$LINENO"; then :
19303 _EXT_CHECK=yes
19304 else
19305 _EXT_CHECK=no
19306 fi
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 CFLAGS="$SAVE_CFLAGS"
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19310 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19312 $as_echo "$_EXT_CHECK" >&6; }
19313 if test "$_EXT_CHECK" != no; then
19314 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19315 fi
19316
19317
19318
19319 SAVE_CFLAGS="$CFLAGS"
19320 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19323
19324 #include "xorg-server.h"
19325 #if !defined DRI2
19326 #error DRI2 not defined
19327 #endif
19328
19329 int
19330 main ()
19331 {
19332
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_c_try_compile "$LINENO"; then :
19338 _EXT_CHECK=yes
19339 else
19340 _EXT_CHECK=no
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 CFLAGS="$SAVE_CFLAGS"
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5
19345 $as_echo_n "checking if DRI2 is defined... " >&6; }
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19347 $as_echo "$_EXT_CHECK" >&6; }
19348 if test "$_EXT_CHECK" != no; then
19349 REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6"
19350 fi
19351
19352
19353 # Checks for pkg-config packages
19354
19355 pkg_failed=no
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
19357 $as_echo_n "checking for LIBDRM... " >&6; }
19358
19359 if test -n "$LIBDRM_CFLAGS"; then
19360 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
19361 elif test -n "$PKG_CONFIG"; then
19362 if test -n "$PKG_CONFIG" && \
19363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
19364 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
19365 ac_status=$?
19366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19367 test $ac_status = 0; }; then
19368 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null`
19369 test "x$?" != "x0" && pkg_failed=yes
19370 else
19371 pkg_failed=yes
19372 fi
19373 else
19374 pkg_failed=untried
19375 fi
19376 if test -n "$LIBDRM_LIBS"; then
19377 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
19378 elif test -n "$PKG_CONFIG"; then
19379 if test -n "$PKG_CONFIG" && \
19380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
19381 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
19382 ac_status=$?
19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384 test $ac_status = 0; }; then
19385 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null`
19386 test "x$?" != "x0" && pkg_failed=yes
19387 else
19388 pkg_failed=yes
19389 fi
19390 else
19391 pkg_failed=untried
19392 fi
19393
19394
19395
19396 if test $pkg_failed = yes; then
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 $as_echo "no" >&6; }
19399
19400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19401 _pkg_short_errors_supported=yes
19402 else
19403 _pkg_short_errors_supported=no
19404 fi
19405 if test $_pkg_short_errors_supported = yes; then
19406 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
19407 else
19408 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
19409 fi
19410 # Put the nasty error message in config.log where it belongs
19411 echo "$LIBDRM_PKG_ERRORS" >&5
19412
19413 as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met:
19414
19415 $LIBDRM_PKG_ERRORS
19416
19417 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19418 installed software in a non-standard prefix.
19419
19420 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19421 and LIBDRM_LIBS to avoid the need to call pkg-config.
19422 See the pkg-config man page for more details." "$LINENO" 5
19423 elif test $pkg_failed = untried; then
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425 $as_echo "no" >&6; }
19426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19428 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19429 is in your PATH or set the PKG_CONFIG environment variable to the full
19430 path to pkg-config.
19431
19432 Alternatively, you may set the environment variables LIBDRM_CFLAGS
19433 and LIBDRM_LIBS to avoid the need to call pkg-config.
19434 See the pkg-config man page for more details.
19435
19436 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19437 See \`config.log' for more details" "$LINENO" 5; }
19438 else
19439 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19440 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19442 $as_echo "yes" >&6; }
19443
19444 fi
19445
19446 pkg_failed=no
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_NOUVEAU" >&5
19448 $as_echo_n "checking for LIBDRM_NOUVEAU... " >&6; }
19449
19450 if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then
19451 pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS"
19452 elif test -n "$PKG_CONFIG"; then
19453 if test -n "$PKG_CONFIG" && \
19454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
19455 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
19456 ac_status=$?
19457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458 test $ac_status = 0; }; then
19459 pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null`
19460 test "x$?" != "x0" && pkg_failed=yes
19461 else
19462 pkg_failed=yes
19463 fi
19464 else
19465 pkg_failed=untried
19466 fi
19467 if test -n "$LIBDRM_NOUVEAU_LIBS"; then
19468 pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS"
19469 elif test -n "$PKG_CONFIG"; then
19470 if test -n "$PKG_CONFIG" && \
19471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
19472 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
19473 ac_status=$?
19474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475 test $ac_status = 0; }; then
19476 pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null`
19477 test "x$?" != "x0" && pkg_failed=yes
19478 else
19479 pkg_failed=yes
19480 fi
19481 else
19482 pkg_failed=untried
19483 fi
19484
19485
19486
19487 if test $pkg_failed = yes; then
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490
19491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19492 _pkg_short_errors_supported=yes
19493 else
19494 _pkg_short_errors_supported=no
19495 fi
19496 if test $_pkg_short_errors_supported = yes; then
19497 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
19498 else
19499 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
19500 fi
19501 # Put the nasty error message in config.log where it belongs
19502 echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5
19503
19504 as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met:
19505
19506 $LIBDRM_NOUVEAU_PKG_ERRORS
19507
19508 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19509 installed software in a non-standard prefix.
19510
19511 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
19512 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
19513 See the pkg-config man page for more details." "$LINENO" 5
19514 elif test $pkg_failed = untried; then
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19516 $as_echo "no" >&6; }
19517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19519 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19520 is in your PATH or set the PKG_CONFIG environment variable to the full
19521 path to pkg-config.
19522
19523 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
19524 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
19525 See the pkg-config man page for more details.
19526
19527 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19528 See \`config.log' for more details" "$LINENO" 5; }
19529 else
19530 LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS
19531 LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533 $as_echo "yes" >&6; }
19534
19535 fi
19536
19537
19538
19539
19540 pkg_failed=no
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19542 $as_echo_n "checking for XORG... " >&6; }
19543
19544 if test -n "$XORG_CFLAGS"; then
19545 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19546 elif test -n "$PKG_CONFIG"; then
19547 if test -n "$PKG_CONFIG" && \
19548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19549 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19550 ac_status=$?
19551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19552 test $ac_status = 0; }; then
19553 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19554 test "x$?" != "x0" && pkg_failed=yes
19555 else
19556 pkg_failed=yes
19557 fi
19558 else
19559 pkg_failed=untried
19560 fi
19561 if test -n "$XORG_LIBS"; then
19562 pkg_cv_XORG_LIBS="$XORG_LIBS"
19563 elif test -n "$PKG_CONFIG"; then
19564 if test -n "$PKG_CONFIG" && \
19565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19566 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19567 ac_status=$?
19568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19569 test $ac_status = 0; }; then
19570 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19571 test "x$?" != "x0" && pkg_failed=yes
19572 else
19573 pkg_failed=yes
19574 fi
19575 else
19576 pkg_failed=untried
19577 fi
19578
19579
19580
19581 if test $pkg_failed = yes; then
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19584
19585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19586 _pkg_short_errors_supported=yes
19587 else
19588 _pkg_short_errors_supported=no
19589 fi
19590 if test $_pkg_short_errors_supported = yes; then
19591 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19592 else
19593 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19594 fi
19595 # Put the nasty error message in config.log where it belongs
19596 echo "$XORG_PKG_ERRORS" >&5
19597
19598 as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES) were not met:
19599
19600 $XORG_PKG_ERRORS
19601
19602 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19603 installed software in a non-standard prefix.
19604
19605 Alternatively, you may set the environment variables XORG_CFLAGS
19606 and XORG_LIBS to avoid the need to call pkg-config.
19607 See the pkg-config man page for more details." "$LINENO" 5
19608 elif test $pkg_failed = untried; then
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610 $as_echo "no" >&6; }
19611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19613 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19614 is in your PATH or set the PKG_CONFIG environment variable to the full
19615 path to pkg-config.
19616
19617 Alternatively, you may set the environment variables XORG_CFLAGS
19618 and XORG_LIBS to avoid the need to call pkg-config.
19619 See the pkg-config man page for more details.
19620
19621 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19622 See \`config.log' for more details" "$LINENO" 5; }
19623 else
19624 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19625 XORG_LIBS=$pkg_cv_XORG_LIBS
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19627 $as_echo "yes" >&6; }
19628
19629 fi
19630
19631 pkg_failed=no
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19633 $as_echo_n "checking for XEXT... " >&6; }
19634
19635 if test -n "$XEXT_CFLAGS"; then
19636 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19637 elif test -n "$PKG_CONFIG"; then
19638 if test -n "$PKG_CONFIG" && \
19639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19640 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19641 ac_status=$?
19642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19643 test $ac_status = 0; }; then
19644 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19645 test "x$?" != "x0" && pkg_failed=yes
19646 else
19647 pkg_failed=yes
19648 fi
19649 else
19650 pkg_failed=untried
19651 fi
19652 if test -n "$XEXT_LIBS"; then
19653 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19654 elif test -n "$PKG_CONFIG"; then
19655 if test -n "$PKG_CONFIG" && \
19656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19657 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19658 ac_status=$?
19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660 test $ac_status = 0; }; then
19661 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19662 test "x$?" != "x0" && pkg_failed=yes
19663 else
19664 pkg_failed=yes
19665 fi
19666 else
19667 pkg_failed=untried
19668 fi
19669
19670
19671
19672 if test $pkg_failed = yes; then
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674 $as_echo "no" >&6; }
19675
19676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19677 _pkg_short_errors_supported=yes
19678 else
19679 _pkg_short_errors_supported=no
19680 fi
19681 if test $_pkg_short_errors_supported = yes; then
19682 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19683 else
19684 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19685 fi
19686 # Put the nasty error message in config.log where it belongs
19687 echo "$XEXT_PKG_ERRORS" >&5
19688
19689 HAVE_XEXTPROTO_71="no"
19690 elif test $pkg_failed = untried; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692 $as_echo "no" >&6; }
19693 HAVE_XEXTPROTO_71="no"
19694 else
19695 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19696 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698 $as_echo "yes" >&6; }
19699 HAVE_XEXTPROTO_71="yes";
19700 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19701
19702 fi
19703 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19704 HAVE_XEXTPROTO_71_TRUE=
19705 HAVE_XEXTPROTO_71_FALSE='#'
19706 else
19707 HAVE_XEXTPROTO_71_TRUE='#'
19708 HAVE_XEXTPROTO_71_FALSE=
19709 fi
19710
19711 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19712
19713 # Checks for libraries.
19714
19715 pkg_failed=no
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19717 $as_echo_n "checking for PCIACCESS... " >&6; }
19718
19719 if test -n "$PCIACCESS_CFLAGS"; then
19720 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19721 elif test -n "$PKG_CONFIG"; then
19722 if test -n "$PKG_CONFIG" && \
19723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19724 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19725 ac_status=$?
19726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19727 test $ac_status = 0; }; then
19728 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19729 test "x$?" != "x0" && pkg_failed=yes
19730 else
19731 pkg_failed=yes
19732 fi
19733 else
19734 pkg_failed=untried
19735 fi
19736 if test -n "$PCIACCESS_LIBS"; then
19737 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19738 elif test -n "$PKG_CONFIG"; then
19739 if test -n "$PKG_CONFIG" && \
19740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19741 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19742 ac_status=$?
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; then
19745 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19746 test "x$?" != "x0" && pkg_failed=yes
19747 else
19748 pkg_failed=yes
19749 fi
19750 else
19751 pkg_failed=untried
19752 fi
19753
19754
19755
19756 if test $pkg_failed = yes; then
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19758 $as_echo "no" >&6; }
19759
19760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19761 _pkg_short_errors_supported=yes
19762 else
19763 _pkg_short_errors_supported=no
19764 fi
19765 if test $_pkg_short_errors_supported = yes; then
19766 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19767 else
19768 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19769 fi
19770 # Put the nasty error message in config.log where it belongs
19771 echo "$PCIACCESS_PKG_ERRORS" >&5
19772
19773 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19774
19775 $PCIACCESS_PKG_ERRORS
19776
19777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19778 installed software in a non-standard prefix.
19779
19780 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19781 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19782 See the pkg-config man page for more details." "$LINENO" 5
19783 elif test $pkg_failed = untried; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19785 $as_echo "no" >&6; }
19786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19788 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19789 is in your PATH or set the PKG_CONFIG environment variable to the full
19790 path to pkg-config.
19791
19792 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19793 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19794 See the pkg-config man page for more details.
19795
19796 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19797 See \`config.log' for more details" "$LINENO" 5; }
19798 else
19799 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19800 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19802 $as_echo "yes" >&6; }
19803
19804 fi
19805
19806
19807 pkg_failed=no
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19809 $as_echo_n "checking for LIBUDEV... " >&6; }
19810
19811 if test -n "$LIBUDEV_CFLAGS"; then
19812 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19813 elif test -n "$PKG_CONFIG"; then
19814 if test -n "$PKG_CONFIG" && \
19815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19816 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19817 ac_status=$?
19818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19819 test $ac_status = 0; }; then
19820 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19821 test "x$?" != "x0" && pkg_failed=yes
19822 else
19823 pkg_failed=yes
19824 fi
19825 else
19826 pkg_failed=untried
19827 fi
19828 if test -n "$LIBUDEV_LIBS"; then
19829 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19830 elif test -n "$PKG_CONFIG"; then
19831 if test -n "$PKG_CONFIG" && \
19832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19833 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19834 ac_status=$?
19835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19836 test $ac_status = 0; }; then
19837 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19838 test "x$?" != "x0" && pkg_failed=yes
19839 else
19840 pkg_failed=yes
19841 fi
19842 else
19843 pkg_failed=untried
19844 fi
19845
19846
19847
19848 if test $pkg_failed = yes; then
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19850 $as_echo "no" >&6; }
19851
19852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19853 _pkg_short_errors_supported=yes
19854 else
19855 _pkg_short_errors_supported=no
19856 fi
19857 if test $_pkg_short_errors_supported = yes; then
19858 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19859 else
19860 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19861 fi
19862 # Put the nasty error message in config.log where it belongs
19863 echo "$LIBUDEV_PKG_ERRORS" >&5
19864
19865 LIBUDEV=no
19866 elif test $pkg_failed = untried; then
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19868 $as_echo "no" >&6; }
19869 LIBUDEV=no
19870 else
19871 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19872 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19874 $as_echo "yes" >&6; }
19875 LIBUDEV=yes
19876 fi
19877 if test "x$LIBUDEV" = xyes; then
19878
19879 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19880
19881 fi
19882 if test "x$LIBUDEV" = "xyes" ; then
19883 LIBUDEV_TRUE=
19884 LIBUDEV_FALSE='#'
19885 else
19886 LIBUDEV_TRUE='#'
19887 LIBUDEV_FALSE=
19888 fi
19889
19890
19891
19892
19893 # Checks for header files.
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19895 $as_echo_n "checking for ANSI C header files... " >&6; }
19896 if ${ac_cv_header_stdc+:} false; then :
19897 $as_echo_n "(cached) " >&6
19898 else
19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h. */
19901 #include <stdlib.h>
19902 #include <stdarg.h>
19903 #include <string.h>
19904 #include <float.h>
19905
19906 int
19907 main ()
19908 {
19909
19910 ;
19911 return 0;
19912 }
19913 _ACEOF
19914 if ac_fn_c_try_compile "$LINENO"; then :
19915 ac_cv_header_stdc=yes
19916 else
19917 ac_cv_header_stdc=no
19918 fi
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920
19921 if test $ac_cv_header_stdc = yes; then
19922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925 #include <string.h>
19926
19927 _ACEOF
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "memchr" >/dev/null 2>&1; then :
19930
19931 else
19932 ac_cv_header_stdc=no
19933 fi
19934 rm -f conftest*
19935
19936 fi
19937
19938 if test $ac_cv_header_stdc = yes; then
19939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942 #include <stdlib.h>
19943
19944 _ACEOF
19945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19946 $EGREP "free" >/dev/null 2>&1; then :
19947
19948 else
19949 ac_cv_header_stdc=no
19950 fi
19951 rm -f conftest*
19952
19953 fi
19954
19955 if test $ac_cv_header_stdc = yes; then
19956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19957 if test "$cross_compiling" = yes; then :
19958 :
19959 else
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962 #include <ctype.h>
19963 #include <stdlib.h>
19964 #if ((' ' & 0x0FF) == 0x020)
19965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19967 #else
19968 # define ISLOWER(c) \
19969 (('a' <= (c) && (c) <= 'i') \
19970 || ('j' <= (c) && (c) <= 'r') \
19971 || ('s' <= (c) && (c) <= 'z'))
19972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19973 #endif
19974
19975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19976 int
19977 main ()
19978 {
19979 int i;
19980 for (i = 0; i < 256; i++)
19981 if (XOR (islower (i), ISLOWER (i))
19982 || toupper (i) != TOUPPER (i))
19983 return 2;
19984 return 0;
19985 }
19986 _ACEOF
19987 if ac_fn_c_try_run "$LINENO"; then :
19988
19989 else
19990 ac_cv_header_stdc=no
19991 fi
19992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19993 conftest.$ac_objext conftest.beam conftest.$ac_ext
19994 fi
19995
19996 fi
19997 fi
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19999 $as_echo "$ac_cv_header_stdc" >&6; }
20000 if test $ac_cv_header_stdc = yes; then
20001
20002 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20003
20004 fi
20005
20006
20007 # Use -Wall all the time
20008 CFLAGS="$CFLAGS -Wall"
20009
20010 # Check for -minline-all-stringops availabtility
20011 OLD_CFLAGS="$CFLAGS"
20012 CFLAGS="$CFLAGS -minline-all-stringops"
20013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20015 #include <stdio.h>
20016 int
20017 main ()
20018 {
20019
20020 ;
20021 return 0;
20022 }
20023 _ACEOF
20024 if ac_fn_c_try_compile "$LINENO"; then :
20025 CFLAGS="$OLD_CFLAGS -minline-all-stringops"
20026 else
20027 CFLAGS="$OLD_CFLAGS"
20028 fi
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030
20031 # needed for the next test
20032 CFLAGS="$CFLAGS $XORG_CFLAGS"
20033
20034
20035
20036
20037 DRIVER_NAME=nouveau
20038
20039
20040
20041
20042
20043
20044 if test x$APP_MAN_SUFFIX = x ; then
20045 APP_MAN_SUFFIX=1
20046 fi
20047 if test x$APP_MAN_DIR = x ; then
20048 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20049 fi
20050
20051 if test x$LIB_MAN_SUFFIX = x ; then
20052 LIB_MAN_SUFFIX=3
20053 fi
20054 if test x$LIB_MAN_DIR = x ; then
20055 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20056 fi
20057
20058 if test x$FILE_MAN_SUFFIX = x ; then
20059 case $host_os in
20060 solaris*) FILE_MAN_SUFFIX=4 ;;
20061 *) FILE_MAN_SUFFIX=5 ;;
20062 esac
20063 fi
20064 if test x$FILE_MAN_DIR = x ; then
20065 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20066 fi
20067
20068 if test x$MISC_MAN_SUFFIX = x ; then
20069 case $host_os in
20070 solaris*) MISC_MAN_SUFFIX=5 ;;
20071 *) MISC_MAN_SUFFIX=7 ;;
20072 esac
20073 fi
20074 if test x$MISC_MAN_DIR = x ; then
20075 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20076 fi
20077
20078 if test x$DRIVER_MAN_SUFFIX = x ; then
20079 case $host_os in
20080 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20081 *) DRIVER_MAN_SUFFIX=4 ;;
20082 esac
20083 fi
20084 if test x$DRIVER_MAN_DIR = x ; then
20085 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20086 fi
20087
20088 if test x$ADMIN_MAN_SUFFIX = x ; then
20089 case $host_os in
20090 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20091 *) ADMIN_MAN_SUFFIX=8 ;;
20092 esac
20093 fi
20094 if test x$ADMIN_MAN_DIR = x ; then
20095 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20096 fi
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112 XORG_MAN_PAGE="X Version 11"
20113
20114 MAN_SUBSTS="\
20115 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20116 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20117 -e 's|__xservername__|Xorg|g' \
20118 -e 's|__xconfigfile__|xorg.conf|g' \
20119 -e 's|__projectroot__|\$(prefix)|g' \
20120 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20121 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20122 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20123 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20124 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20125 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20126 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20127
20128
20129
20130
20131
20132 cat >>confdefs.h <<_ACEOF
20133 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20134 _ACEOF
20135
20136 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20137 if test "x$PVM" = "x"; then
20138 PVM="0"
20139 fi
20140
20141 cat >>confdefs.h <<_ACEOF
20142 #define PACKAGE_VERSION_MINOR $PVM
20143 _ACEOF
20144
20145 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20146 if test "x$PVP" = "x"; then
20147 PVP="0"
20148 fi
20149
20150 cat >>confdefs.h <<_ACEOF
20151 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20152 _ACEOF
20153
20154
20155
20156 for ac_header in list.h
20157 do :
20158 ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
20159 #include \"xorg-server.h\"
20160 "
20161 if test "x$ac_cv_header_list_h" = xyes; then :
20162 cat >>confdefs.h <<_ACEOF
20163 #define HAVE_LIST_H 1
20164 _ACEOF
20165 have_list_h="yes"
20166 else
20167 have_list_h="no"
20168 fi
20169
20170 done
20171
20172
20173 if test "x$have_list_h" = xyes; then
20174 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
20175 #include \"xorg-server.h\"
20176 #include \"list.h\"
20177 "
20178 if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
20179
20180 $as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
20181
20182 fi
20183
20184 fi
20185
20186 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20187
20188 cat >confcache <<\_ACEOF
20189 # This file is a shell script that caches the results of configure
20190 # tests run on this system so they can be shared between configure
20191 # scripts and configure runs, see configure's option --config-cache.
20192 # It is not useful on other systems. If it contains results you don't
20193 # want to keep, you may remove or edit it.
20194 #
20195 # config.status only pays attention to the cache file if you give it
20196 # the --recheck option to rerun configure.
20197 #
20198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20200 # following values.
20201
20202 _ACEOF
20203
20204 # The following way of writing the cache mishandles newlines in values,
20205 # but we know of no workaround that is simple, portable, and efficient.
20206 # So, we kill variables containing newlines.
20207 # Ultrix sh set writes to stderr and can't be redirected directly,
20208 # and sets the high bit in the cache file unless we assign to the vars.
20209 (
20210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20211 eval ac_val=\$$ac_var
20212 case $ac_val in #(
20213 *${as_nl}*)
20214 case $ac_var in #(
20215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20217 esac
20218 case $ac_var in #(
20219 _ | IFS | as_nl) ;; #(
20220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20221 *) { eval $ac_var=; unset $ac_var;} ;;
20222 esac ;;
20223 esac
20224 done
20225
20226 (set) 2>&1 |
20227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20228 *${as_nl}ac_space=\ *)
20229 # `set' does not quote correctly, so add quotes: double-quote
20230 # substitution turns \\\\ into \\, and sed turns \\ into \.
20231 sed -n \
20232 "s/'/'\\\\''/g;
20233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20234 ;; #(
20235 *)
20236 # `set' quotes correctly as required by POSIX, so do not add quotes.
20237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20238 ;;
20239 esac |
20240 sort
20241 ) |
20242 sed '
20243 /^ac_cv_env_/b end
20244 t clear
20245 :clear
20246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20247 t end
20248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20249 :end' >>confcache
20250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20251 if test -w "$cache_file"; then
20252 if test "x$cache_file" != "x/dev/null"; then
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20254 $as_echo "$as_me: updating cache $cache_file" >&6;}
20255 if test ! -f "$cache_file" || test -h "$cache_file"; then
20256 cat confcache >"$cache_file"
20257 else
20258 case $cache_file in #(
20259 */* | ?:*)
20260 mv -f confcache "$cache_file"$$ &&
20261 mv -f "$cache_file"$$ "$cache_file" ;; #(
20262 *)
20263 mv -f confcache "$cache_file" ;;
20264 esac
20265 fi
20266 fi
20267 else
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20270 fi
20271 fi
20272 rm -f confcache
20273
20274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20275 # Let make expand exec_prefix.
20276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20277
20278 DEFS=-DHAVE_CONFIG_H
20279
20280 ac_libobjs=
20281 ac_ltlibobjs=
20282 U=
20283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20284 # 1. Remove the extension, and $U if already installed.
20285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20286 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20288 # will be set to the directory where LIBOBJS objects are built.
20289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20291 done
20292 LIBOBJS=$ac_libobjs
20293
20294 LTLIBOBJS=$ac_ltlibobjs
20295
20296
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20298 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20299 if test -n "$am_sleep_pid"; then
20300 # Hide warnings about reused PIDs.
20301 wait $am_sleep_pid 2>/dev/null
20302 fi
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20304 $as_echo "done" >&6; }
20305 if test -n "$EXEEXT"; then
20306 am__EXEEXT_TRUE=
20307 am__EXEEXT_FALSE='#'
20308 else
20309 am__EXEEXT_TRUE='#'
20310 am__EXEEXT_FALSE=
20311 fi
20312
20313 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20314 as_fn_error $? "conditional \"AMDEP\" was never defined.
20315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20316 fi
20317 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20318 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20320 fi
20321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20324 fi
20325 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20326 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20328 fi
20329 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20330 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20332 fi
20333
20334 : "${CONFIG_STATUS=./config.status}"
20335 ac_write_fail=0
20336 ac_clean_files_save=$ac_clean_files
20337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20340 as_write_fail=0
20341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20342 #! $SHELL
20343 # Generated by $as_me.
20344 # Run this file to recreate the current configuration.
20345 # Compiler output produced by configure, useful for debugging
20346 # configure, is in config.log if it exists.
20347
20348 debug=false
20349 ac_cs_recheck=false
20350 ac_cs_silent=false
20351
20352 SHELL=\${CONFIG_SHELL-$SHELL}
20353 export SHELL
20354 _ASEOF
20355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20356 ## -------------------- ##
20357 ## M4sh Initialization. ##
20358 ## -------------------- ##
20359
20360 # Be more Bourne compatible
20361 DUALCASE=1; export DUALCASE # for MKS sh
20362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20363 emulate sh
20364 NULLCMD=:
20365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20366 # is contrary to our usage. Disable this feature.
20367 alias -g '${1+"$@"}'='"$@"'
20368 setopt NO_GLOB_SUBST
20369 else
20370 case `(set -o) 2>/dev/null` in #(
20371 *posix*) :
20372 set -o posix ;; #(
20373 *) :
20374 ;;
20375 esac
20376 fi
20377
20378
20379 as_nl='
20380 '
20381 export as_nl
20382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20386 # Prefer a ksh shell builtin over an external printf program on Solaris,
20387 # but without wasting forks for bash or zsh.
20388 if test -z "$BASH_VERSION$ZSH_VERSION" \
20389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20390 as_echo='print -r --'
20391 as_echo_n='print -rn --'
20392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20393 as_echo='printf %s\n'
20394 as_echo_n='printf %s'
20395 else
20396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20398 as_echo_n='/usr/ucb/echo -n'
20399 else
20400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20401 as_echo_n_body='eval
20402 arg=$1;
20403 case $arg in #(
20404 *"$as_nl"*)
20405 expr "X$arg" : "X\\(.*\\)$as_nl";
20406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20407 esac;
20408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20409 '
20410 export as_echo_n_body
20411 as_echo_n='sh -c $as_echo_n_body as_echo'
20412 fi
20413 export as_echo_body
20414 as_echo='sh -c $as_echo_body as_echo'
20415 fi
20416
20417 # The user is always right.
20418 if test "${PATH_SEPARATOR+set}" != set; then
20419 PATH_SEPARATOR=:
20420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20422 PATH_SEPARATOR=';'
20423 }
20424 fi
20425
20426
20427 # IFS
20428 # We need space, tab and new line, in precisely that order. Quoting is
20429 # there to prevent editors from complaining about space-tab.
20430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20431 # splitting by setting IFS to empty value.)
20432 IFS=" "" $as_nl"
20433
20434 # Find who we are. Look in the path if we contain no directory separator.
20435 as_myself=
20436 case $0 in #((
20437 *[\\/]* ) as_myself=$0 ;;
20438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20439 for as_dir in $PATH
20440 do
20441 IFS=$as_save_IFS
20442 test -z "$as_dir" && as_dir=.
20443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20444 done
20445 IFS=$as_save_IFS
20446
20447 ;;
20448 esac
20449 # We did not find ourselves, most probably we were run as `sh COMMAND'
20450 # in which case we are not to be found in the path.
20451 if test "x$as_myself" = x; then
20452 as_myself=$0
20453 fi
20454 if test ! -f "$as_myself"; then
20455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20456 exit 1
20457 fi
20458
20459 # Unset variables that we do not need and which cause bugs (e.g. in
20460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20461 # suppresses any "Segmentation fault" message there. '((' could
20462 # trigger a bug in pdksh 5.2.14.
20463 for as_var in BASH_ENV ENV MAIL MAILPATH
20464 do eval test x\${$as_var+set} = xset \
20465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20466 done
20467 PS1='$ '
20468 PS2='> '
20469 PS4='+ '
20470
20471 # NLS nuisances.
20472 LC_ALL=C
20473 export LC_ALL
20474 LANGUAGE=C
20475 export LANGUAGE
20476
20477 # CDPATH.
20478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20479
20480
20481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20482 # ----------------------------------------
20483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20485 # script with STATUS, using 1 if that was 0.
20486 as_fn_error ()
20487 {
20488 as_status=$1; test $as_status -eq 0 && as_status=1
20489 if test "$4"; then
20490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20492 fi
20493 $as_echo "$as_me: error: $2" >&2
20494 as_fn_exit $as_status
20495 } # as_fn_error
20496
20497
20498 # as_fn_set_status STATUS
20499 # -----------------------
20500 # Set $? to STATUS, without forking.
20501 as_fn_set_status ()
20502 {
20503 return $1
20504 } # as_fn_set_status
20505
20506 # as_fn_exit STATUS
20507 # -----------------
20508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20509 as_fn_exit ()
20510 {
20511 set +e
20512 as_fn_set_status $1
20513 exit $1
20514 } # as_fn_exit
20515
20516 # as_fn_unset VAR
20517 # ---------------
20518 # Portably unset VAR.
20519 as_fn_unset ()
20520 {
20521 { eval $1=; unset $1;}
20522 }
20523 as_unset=as_fn_unset
20524 # as_fn_append VAR VALUE
20525 # ----------------------
20526 # Append the text in VALUE to the end of the definition contained in VAR. Take
20527 # advantage of any shell optimizations that allow amortized linear growth over
20528 # repeated appends, instead of the typical quadratic growth present in naive
20529 # implementations.
20530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20531 eval 'as_fn_append ()
20532 {
20533 eval $1+=\$2
20534 }'
20535 else
20536 as_fn_append ()
20537 {
20538 eval $1=\$$1\$2
20539 }
20540 fi # as_fn_append
20541
20542 # as_fn_arith ARG...
20543 # ------------------
20544 # Perform arithmetic evaluation on the ARGs, and store the result in the
20545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20546 # must be portable across $(()) and expr.
20547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20548 eval 'as_fn_arith ()
20549 {
20550 as_val=$(( $* ))
20551 }'
20552 else
20553 as_fn_arith ()
20554 {
20555 as_val=`expr "$@" || test $? -eq 1`
20556 }
20557 fi # as_fn_arith
20558
20559
20560 if expr a : '\(a\)' >/dev/null 2>&1 &&
20561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20562 as_expr=expr
20563 else
20564 as_expr=false
20565 fi
20566
20567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20568 as_basename=basename
20569 else
20570 as_basename=false
20571 fi
20572
20573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20574 as_dirname=dirname
20575 else
20576 as_dirname=false
20577 fi
20578
20579 as_me=`$as_basename -- "$0" ||
20580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20581 X"$0" : 'X\(//\)$' \| \
20582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20583 $as_echo X/"$0" |
20584 sed '/^.*\/\([^/][^/]*\)\/*$/{
20585 s//\1/
20586 q
20587 }
20588 /^X\/\(\/\/\)$/{
20589 s//\1/
20590 q
20591 }
20592 /^X\/\(\/\).*/{
20593 s//\1/
20594 q
20595 }
20596 s/.*/./; q'`
20597
20598 # Avoid depending upon Character Ranges.
20599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20602 as_cr_digits='0123456789'
20603 as_cr_alnum=$as_cr_Letters$as_cr_digits
20604
20605 ECHO_C= ECHO_N= ECHO_T=
20606 case `echo -n x` in #(((((
20607 -n*)
20608 case `echo 'xy\c'` in
20609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20610 xy) ECHO_C='\c';;
20611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20612 ECHO_T=' ';;
20613 esac;;
20614 *)
20615 ECHO_N='-n';;
20616 esac
20617
20618 rm -f conf$$ conf$$.exe conf$$.file
20619 if test -d conf$$.dir; then
20620 rm -f conf$$.dir/conf$$.file
20621 else
20622 rm -f conf$$.dir
20623 mkdir conf$$.dir 2>/dev/null
20624 fi
20625 if (echo >conf$$.file) 2>/dev/null; then
20626 if ln -s conf$$.file conf$$ 2>/dev/null; then
20627 as_ln_s='ln -s'
20628 # ... but there are two gotchas:
20629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20631 # In both cases, we have to default to `cp -pR'.
20632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20633 as_ln_s='cp -pR'
20634 elif ln conf$$.file conf$$ 2>/dev/null; then
20635 as_ln_s=ln
20636 else
20637 as_ln_s='cp -pR'
20638 fi
20639 else
20640 as_ln_s='cp -pR'
20641 fi
20642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20643 rmdir conf$$.dir 2>/dev/null
20644
20645
20646 # as_fn_mkdir_p
20647 # -------------
20648 # Create "$as_dir" as a directory, including parents if necessary.
20649 as_fn_mkdir_p ()
20650 {
20651
20652 case $as_dir in #(
20653 -*) as_dir=./$as_dir;;
20654 esac
20655 test -d "$as_dir" || eval $as_mkdir_p || {
20656 as_dirs=
20657 while :; do
20658 case $as_dir in #(
20659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20660 *) as_qdir=$as_dir;;
20661 esac
20662 as_dirs="'$as_qdir' $as_dirs"
20663 as_dir=`$as_dirname -- "$as_dir" ||
20664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20665 X"$as_dir" : 'X\(//\)[^/]' \| \
20666 X"$as_dir" : 'X\(//\)$' \| \
20667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20668 $as_echo X"$as_dir" |
20669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20670 s//\1/
20671 q
20672 }
20673 /^X\(\/\/\)[^/].*/{
20674 s//\1/
20675 q
20676 }
20677 /^X\(\/\/\)$/{
20678 s//\1/
20679 q
20680 }
20681 /^X\(\/\).*/{
20682 s//\1/
20683 q
20684 }
20685 s/.*/./; q'`
20686 test -d "$as_dir" && break
20687 done
20688 test -z "$as_dirs" || eval "mkdir $as_dirs"
20689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20690
20691
20692 } # as_fn_mkdir_p
20693 if mkdir -p . 2>/dev/null; then
20694 as_mkdir_p='mkdir -p "$as_dir"'
20695 else
20696 test -d ./-p && rmdir ./-p
20697 as_mkdir_p=false
20698 fi
20699
20700
20701 # as_fn_executable_p FILE
20702 # -----------------------
20703 # Test if FILE is an executable regular file.
20704 as_fn_executable_p ()
20705 {
20706 test -f "$1" && test -x "$1"
20707 } # as_fn_executable_p
20708 as_test_x='test -x'
20709 as_executable_p=as_fn_executable_p
20710
20711 # Sed expression to map a string onto a valid CPP name.
20712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20713
20714 # Sed expression to map a string onto a valid variable name.
20715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20716
20717
20718 exec 6>&1
20719 ## ----------------------------------- ##
20720 ## Main body of $CONFIG_STATUS script. ##
20721 ## ----------------------------------- ##
20722 _ASEOF
20723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20724
20725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20726 # Save the log message, to keep $0 and so on meaningful, and to
20727 # report actual input values of CONFIG_FILES etc. instead of their
20728 # values after options handling.
20729 ac_log="
20730 This file was extended by xf86-video-nouveau $as_me 1.0.15, which was
20731 generated by GNU Autoconf 2.69. Invocation command line was
20732
20733 CONFIG_FILES = $CONFIG_FILES
20734 CONFIG_HEADERS = $CONFIG_HEADERS
20735 CONFIG_LINKS = $CONFIG_LINKS
20736 CONFIG_COMMANDS = $CONFIG_COMMANDS
20737 $ $0 $@
20738
20739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20740 "
20741
20742 _ACEOF
20743
20744 case $ac_config_files in *"
20745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20746 esac
20747
20748 case $ac_config_headers in *"
20749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20750 esac
20751
20752
20753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754 # Files that config.status was made for.
20755 config_files="$ac_config_files"
20756 config_headers="$ac_config_headers"
20757 config_commands="$ac_config_commands"
20758
20759 _ACEOF
20760
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762 ac_cs_usage="\
20763 \`$as_me' instantiates files and other configuration actions
20764 from templates according to the current configuration. Unless the files
20765 and actions are specified as TAGs, all are instantiated by default.
20766
20767 Usage: $0 [OPTION]... [TAG]...
20768
20769 -h, --help print this help, then exit
20770 -V, --version print version number and configuration settings, then exit
20771 --config print configuration, then exit
20772 -q, --quiet, --silent
20773 do not print progress messages
20774 -d, --debug don't remove temporary files
20775 --recheck update $as_me by reconfiguring in the same conditions
20776 --file=FILE[:TEMPLATE]
20777 instantiate the configuration file FILE
20778 --header=FILE[:TEMPLATE]
20779 instantiate the configuration header FILE
20780
20781 Configuration files:
20782 $config_files
20783
20784 Configuration headers:
20785 $config_headers
20786
20787 Configuration commands:
20788 $config_commands
20789
20790 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20791
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20795 ac_cs_version="\\
20796 xf86-video-nouveau config.status 1.0.15
20797 configured by $0, generated by GNU Autoconf 2.69,
20798 with options \\"\$ac_cs_config\\"
20799
20800 Copyright (C) 2012 Free Software Foundation, Inc.
20801 This config.status script is free software; the Free Software Foundation
20802 gives unlimited permission to copy, distribute and modify it."
20803
20804 ac_pwd='$ac_pwd'
20805 srcdir='$srcdir'
20806 INSTALL='$INSTALL'
20807 MKDIR_P='$MKDIR_P'
20808 AWK='$AWK'
20809 test -n "\$AWK" || AWK=awk
20810 _ACEOF
20811
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 # The default lists apply if the user does not specify any file.
20814 ac_need_defaults=:
20815 while test $# != 0
20816 do
20817 case $1 in
20818 --*=?*)
20819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20821 ac_shift=:
20822 ;;
20823 --*=)
20824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20825 ac_optarg=
20826 ac_shift=:
20827 ;;
20828 *)
20829 ac_option=$1
20830 ac_optarg=$2
20831 ac_shift=shift
20832 ;;
20833 esac
20834
20835 case $ac_option in
20836 # Handling of the options.
20837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20838 ac_cs_recheck=: ;;
20839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20840 $as_echo "$ac_cs_version"; exit ;;
20841 --config | --confi | --conf | --con | --co | --c )
20842 $as_echo "$ac_cs_config"; exit ;;
20843 --debug | --debu | --deb | --de | --d | -d )
20844 debug=: ;;
20845 --file | --fil | --fi | --f )
20846 $ac_shift
20847 case $ac_optarg in
20848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20849 '') as_fn_error $? "missing file argument" ;;
20850 esac
20851 as_fn_append CONFIG_FILES " '$ac_optarg'"
20852 ac_need_defaults=false;;
20853 --header | --heade | --head | --hea )
20854 $ac_shift
20855 case $ac_optarg in
20856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20857 esac
20858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20859 ac_need_defaults=false;;
20860 --he | --h)
20861 # Conflict between --help and --header
20862 as_fn_error $? "ambiguous option: \`$1'
20863 Try \`$0 --help' for more information.";;
20864 --help | --hel | -h )
20865 $as_echo "$ac_cs_usage"; exit ;;
20866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20868 ac_cs_silent=: ;;
20869
20870 # This is an error.
20871 -*) as_fn_error $? "unrecognized option: \`$1'
20872 Try \`$0 --help' for more information." ;;
20873
20874 *) as_fn_append ac_config_targets " $1"
20875 ac_need_defaults=false ;;
20876
20877 esac
20878 shift
20879 done
20880
20881 ac_configure_extra_args=
20882
20883 if $ac_cs_silent; then
20884 exec 6>/dev/null
20885 ac_configure_extra_args="$ac_configure_extra_args --silent"
20886 fi
20887
20888 _ACEOF
20889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890 if \$ac_cs_recheck; then
20891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20892 shift
20893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20894 CONFIG_SHELL='$SHELL'
20895 export CONFIG_SHELL
20896 exec "\$@"
20897 fi
20898
20899 _ACEOF
20900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 exec 5>>config.log
20902 {
20903 echo
20904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20905 ## Running $as_me. ##
20906 _ASBOX
20907 $as_echo "$ac_log"
20908 } >&5
20909
20910 _ACEOF
20911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20912 #
20913 # INIT-COMMANDS
20914 #
20915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20916
20917
20918 # The HP-UX ksh and POSIX shell print the target directory to stdout
20919 # if CDPATH is set.
20920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20921
20922 sed_quote_subst='$sed_quote_subst'
20923 double_quote_subst='$double_quote_subst'
20924 delay_variable_subst='$delay_variable_subst'
20925 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20926 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20927 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20928 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20929 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20930 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20931 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20932 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20933 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20934 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20935 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20936 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20937 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20938 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20939 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20940 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20941 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20942 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20943 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20944 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20945 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20946 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20947 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20948 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20949 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20950 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20951 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20952 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20953 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20954 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20955 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20956 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20957 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20958 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20959 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20960 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20961 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20962 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20963 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20964 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20965 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20966 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20967 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20968 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20969 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20970 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20971 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20972 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20973 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20974 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20975 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20976 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20977 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20978 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20979 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20980 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20981 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20982 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20983 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"`'
20984 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20985 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20986 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20987 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20988 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20989 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20990 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20991 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20992 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20993 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20994 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20995 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20996 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20997 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20998 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20999 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21000 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21001 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21002 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21003 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21004 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21005 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21006 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21007 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21008 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21009 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21010 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21011 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21012 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21013 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21014 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21015 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21016 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21017 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21018 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21019 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21028 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21029 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21030 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21031 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21032 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21033 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21052 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21053 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21054 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21055 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21056 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21057 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21058 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21059 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21060
21061 LTCC='$LTCC'
21062 LTCFLAGS='$LTCFLAGS'
21063 compiler='$compiler_DEFAULT'
21064
21065 # A function that is used when there is no print builtin or printf.
21066 func_fallback_echo ()
21067 {
21068 eval 'cat <<_LTECHO_EOF
21069 \$1
21070 _LTECHO_EOF'
21071 }
21072
21073 # Quote evaled strings.
21074 for var in SHELL \
21075 ECHO \
21076 PATH_SEPARATOR \
21077 SED \
21078 GREP \
21079 EGREP \
21080 FGREP \
21081 LD \
21082 NM \
21083 LN_S \
21084 lt_SP2NL \
21085 lt_NL2SP \
21086 reload_flag \
21087 OBJDUMP \
21088 deplibs_check_method \
21089 file_magic_cmd \
21090 file_magic_glob \
21091 want_nocaseglob \
21092 DLLTOOL \
21093 sharedlib_from_linklib_cmd \
21094 AR \
21095 AR_FLAGS \
21096 archiver_list_spec \
21097 STRIP \
21098 RANLIB \
21099 CC \
21100 CFLAGS \
21101 compiler \
21102 lt_cv_sys_global_symbol_pipe \
21103 lt_cv_sys_global_symbol_to_cdecl \
21104 lt_cv_sys_global_symbol_to_import \
21105 lt_cv_sys_global_symbol_to_c_name_address \
21106 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21107 lt_cv_nm_interface \
21108 nm_file_list_spec \
21109 lt_cv_truncate_bin \
21110 lt_prog_compiler_no_builtin_flag \
21111 lt_prog_compiler_pic \
21112 lt_prog_compiler_wl \
21113 lt_prog_compiler_static \
21114 lt_cv_prog_compiler_c_o \
21115 need_locks \
21116 MANIFEST_TOOL \
21117 DSYMUTIL \
21118 NMEDIT \
21119 LIPO \
21120 OTOOL \
21121 OTOOL64 \
21122 shrext_cmds \
21123 export_dynamic_flag_spec \
21124 whole_archive_flag_spec \
21125 compiler_needs_object \
21126 with_gnu_ld \
21127 allow_undefined_flag \
21128 no_undefined_flag \
21129 hardcode_libdir_flag_spec \
21130 hardcode_libdir_separator \
21131 exclude_expsyms \
21132 include_expsyms \
21133 file_list_spec \
21134 variables_saved_for_relink \
21135 libname_spec \
21136 library_names_spec \
21137 soname_spec \
21138 install_override_mode \
21139 finish_eval \
21140 old_striplib \
21141 striplib; do
21142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21143 *[\\\\\\\`\\"\\\$]*)
21144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21145 ;;
21146 *)
21147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21148 ;;
21149 esac
21150 done
21151
21152 # Double-quote double-evaled strings.
21153 for var in reload_cmds \
21154 old_postinstall_cmds \
21155 old_postuninstall_cmds \
21156 old_archive_cmds \
21157 extract_expsyms_cmds \
21158 old_archive_from_new_cmds \
21159 old_archive_from_expsyms_cmds \
21160 archive_cmds \
21161 archive_expsym_cmds \
21162 module_cmds \
21163 module_expsym_cmds \
21164 export_symbols_cmds \
21165 prelink_cmds \
21166 postlink_cmds \
21167 postinstall_cmds \
21168 postuninstall_cmds \
21169 finish_cmds \
21170 sys_lib_search_path_spec \
21171 configure_time_dlsearch_path \
21172 configure_time_lt_sys_library_path; do
21173 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21174 *[\\\\\\\`\\"\\\$]*)
21175 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21176 ;;
21177 *)
21178 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21179 ;;
21180 esac
21181 done
21182
21183 ac_aux_dir='$ac_aux_dir'
21184
21185 # See if we are running on zsh, and set the options that allow our
21186 # commands through without removal of \ escapes INIT.
21187 if test -n "\${ZSH_VERSION+set}"; then
21188 setopt NO_GLOB_SUBST
21189 fi
21190
21191
21192 PACKAGE='$PACKAGE'
21193 VERSION='$VERSION'
21194 RM='$RM'
21195 ofile='$ofile'
21196
21197
21198
21199
21200 _ACEOF
21201
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21203
21204 # Handling of arguments.
21205 for ac_config_target in $ac_config_targets
21206 do
21207 case $ac_config_target in
21208 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21211 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21213 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21214
21215 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21216 esac
21217 done
21218
21219
21220 # If the user did not use the arguments to specify the items to instantiate,
21221 # then the envvar interface is used. Set only those that are not.
21222 # We use the long form for the default assignment because of an extremely
21223 # bizarre bug on SunOS 4.1.3.
21224 if $ac_need_defaults; then
21225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21228 fi
21229
21230 # Have a temporary directory for convenience. Make it in the build tree
21231 # simply because there is no reason against having it here, and in addition,
21232 # creating and moving files from /tmp can sometimes cause problems.
21233 # Hook for its removal unless debugging.
21234 # Note that there is a small window in which the directory will not be cleaned:
21235 # after its creation but before its name has been assigned to `$tmp'.
21236 $debug ||
21237 {
21238 tmp= ac_tmp=
21239 trap 'exit_status=$?
21240 : "${ac_tmp:=$tmp}"
21241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21242 ' 0
21243 trap 'as_fn_exit 1' 1 2 13 15
21244 }
21245 # Create a (secure) tmp directory for tmp files.
21246
21247 {
21248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21249 test -d "$tmp"
21250 } ||
21251 {
21252 tmp=./conf$$-$RANDOM
21253 (umask 077 && mkdir "$tmp")
21254 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21255 ac_tmp=$tmp
21256
21257 # Set up the scripts for CONFIG_FILES section.
21258 # No need to generate them if there are no CONFIG_FILES.
21259 # This happens for instance with `./config.status config.h'.
21260 if test -n "$CONFIG_FILES"; then
21261
21262
21263 ac_cr=`echo X | tr X '\015'`
21264 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21265 # But we know of no other shell where ac_cr would be empty at this
21266 # point, so we can use a bashism as a fallback.
21267 if test "x$ac_cr" = x; then
21268 eval ac_cr=\$\'\\r\'
21269 fi
21270 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21271 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21272 ac_cs_awk_cr='\\r'
21273 else
21274 ac_cs_awk_cr=$ac_cr
21275 fi
21276
21277 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21278 _ACEOF
21279
21280
21281 {
21282 echo "cat >conf$$subs.awk <<_ACEOF" &&
21283 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21284 echo "_ACEOF"
21285 } >conf$$subs.sh ||
21286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21287 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21288 ac_delim='%!_!# '
21289 for ac_last_try in false false false false false :; do
21290 . ./conf$$subs.sh ||
21291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21292
21293 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21294 if test $ac_delim_n = $ac_delim_num; then
21295 break
21296 elif $ac_last_try; then
21297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21298 else
21299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21300 fi
21301 done
21302 rm -f conf$$subs.sh
21303
21304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21305 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21306 _ACEOF
21307 sed -n '
21308 h
21309 s/^/S["/; s/!.*/"]=/
21310 p
21311 g
21312 s/^[^!]*!//
21313 :repl
21314 t repl
21315 s/'"$ac_delim"'$//
21316 t delim
21317 :nl
21318 h
21319 s/\(.\{148\}\)..*/\1/
21320 t more1
21321 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21322 p
21323 n
21324 b repl
21325 :more1
21326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21327 p
21328 g
21329 s/.\{148\}//
21330 t nl
21331 :delim
21332 h
21333 s/\(.\{148\}\)..*/\1/
21334 t more2
21335 s/["\\]/\\&/g; s/^/"/; s/$/"/
21336 p
21337 b
21338 :more2
21339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21340 p
21341 g
21342 s/.\{148\}//
21343 t delim
21344 ' <conf$$subs.awk | sed '
21345 /^[^""]/{
21346 N
21347 s/\n//
21348 }
21349 ' >>$CONFIG_STATUS || ac_write_fail=1
21350 rm -f conf$$subs.awk
21351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21352 _ACAWK
21353 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21354 for (key in S) S_is_set[key] = 1
21355 FS = ""
21356
21357 }
21358 {
21359 line = $ 0
21360 nfields = split(line, field, "@")
21361 substed = 0
21362 len = length(field[1])
21363 for (i = 2; i < nfields; i++) {
21364 key = field[i]
21365 keylen = length(key)
21366 if (S_is_set[key]) {
21367 value = S[key]
21368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21369 len += length(value) + length(field[++i])
21370 substed = 1
21371 } else
21372 len += 1 + keylen
21373 }
21374
21375 print line
21376 }
21377
21378 _ACAWK
21379 _ACEOF
21380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21382 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21383 else
21384 cat
21385 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21386 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21387 _ACEOF
21388
21389 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21390 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21391 # trailing colons and then remove the whole line if VPATH becomes empty
21392 # (actually we leave an empty line to preserve line numbers).
21393 if test "x$srcdir" = x.; then
21394 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21395 h
21396 s///
21397 s/^/:/
21398 s/[ ]*$/:/
21399 s/:\$(srcdir):/:/g
21400 s/:\${srcdir}:/:/g
21401 s/:@srcdir@:/:/g
21402 s/^:*//
21403 s/:*$//
21404 x
21405 s/\(=[ ]*\).*/\1/
21406 G
21407 s/\n//
21408 s/^[^=]*=[ ]*$//
21409 }'
21410 fi
21411
21412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21413 fi # test -n "$CONFIG_FILES"
21414
21415 # Set up the scripts for CONFIG_HEADERS section.
21416 # No need to generate them if there are no CONFIG_HEADERS.
21417 # This happens for instance with `./config.status Makefile'.
21418 if test -n "$CONFIG_HEADERS"; then
21419 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21420 BEGIN {
21421 _ACEOF
21422
21423 # Transform confdefs.h into an awk script `defines.awk', embedded as
21424 # here-document in config.status, that substitutes the proper values into
21425 # config.h.in to produce config.h.
21426
21427 # Create a delimiter string that does not exist in confdefs.h, to ease
21428 # handling of long lines.
21429 ac_delim='%!_!# '
21430 for ac_last_try in false false :; do
21431 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21432 if test -z "$ac_tt"; then
21433 break
21434 elif $ac_last_try; then
21435 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21436 else
21437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21438 fi
21439 done
21440
21441 # For the awk script, D is an array of macro values keyed by name,
21442 # likewise P contains macro parameters if any. Preserve backslash
21443 # newline sequences.
21444
21445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21446 sed -n '
21447 s/.\{148\}/&'"$ac_delim"'/g
21448 t rset
21449 :rset
21450 s/^[ ]*#[ ]*define[ ][ ]*/ /
21451 t def
21452 d
21453 :def
21454 s/\\$//
21455 t bsnl
21456 s/["\\]/\\&/g
21457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21458 D["\1"]=" \3"/p
21459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21460 d
21461 :bsnl
21462 s/["\\]/\\&/g
21463 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21464 D["\1"]=" \3\\\\\\n"\\/p
21465 t cont
21466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21467 t cont
21468 d
21469 :cont
21470 n
21471 s/.\{148\}/&'"$ac_delim"'/g
21472 t clear
21473 :clear
21474 s/\\$//
21475 t bsnlc
21476 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21477 d
21478 :bsnlc
21479 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21480 b cont
21481 ' <confdefs.h | sed '
21482 s/'"$ac_delim"'/"\\\
21483 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21484
21485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486 for (key in D) D_is_set[key] = 1
21487 FS = ""
21488 }
21489 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21490 line = \$ 0
21491 split(line, arg, " ")
21492 if (arg[1] == "#") {
21493 defundef = arg[2]
21494 mac1 = arg[3]
21495 } else {
21496 defundef = substr(arg[1], 2)
21497 mac1 = arg[2]
21498 }
21499 split(mac1, mac2, "(") #)
21500 macro = mac2[1]
21501 prefix = substr(line, 1, index(line, defundef) - 1)
21502 if (D_is_set[macro]) {
21503 # Preserve the white space surrounding the "#".
21504 print prefix "define", macro P[macro] D[macro]
21505 next
21506 } else {
21507 # Replace #undef with comments. This is necessary, for example,
21508 # in the case of _POSIX_SOURCE, which is predefined and required
21509 # on some systems where configure will not decide to define it.
21510 if (defundef == "undef") {
21511 print "/*", prefix defundef, macro, "*/"
21512 next
21513 }
21514 }
21515 }
21516 { print }
21517 _ACAWK
21518 _ACEOF
21519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21520 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21521 fi # test -n "$CONFIG_HEADERS"
21522
21523
21524 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21525 shift
21526 for ac_tag
21527 do
21528 case $ac_tag in
21529 :[FHLC]) ac_mode=$ac_tag; continue;;
21530 esac
21531 case $ac_mode$ac_tag in
21532 :[FHL]*:*);;
21533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21534 :[FH]-) ac_tag=-:-;;
21535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21536 esac
21537 ac_save_IFS=$IFS
21538 IFS=:
21539 set x $ac_tag
21540 IFS=$ac_save_IFS
21541 shift
21542 ac_file=$1
21543 shift
21544
21545 case $ac_mode in
21546 :L) ac_source=$1;;
21547 :[FH])
21548 ac_file_inputs=
21549 for ac_f
21550 do
21551 case $ac_f in
21552 -) ac_f="$ac_tmp/stdin";;
21553 *) # Look for the file first in the build tree, then in the source tree
21554 # (if the path is not absolute). The absolute path cannot be DOS-style,
21555 # because $ac_f cannot contain `:'.
21556 test -f "$ac_f" ||
21557 case $ac_f in
21558 [\\/$]*) false;;
21559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21560 esac ||
21561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21562 esac
21563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21564 as_fn_append ac_file_inputs " '$ac_f'"
21565 done
21566
21567 # Let's still pretend it is `configure' which instantiates (i.e., don't
21568 # use $as_me), people would be surprised to read:
21569 # /* config.h. Generated by config.status. */
21570 configure_input='Generated from '`
21571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21572 `' by configure.'
21573 if test x"$ac_file" != x-; then
21574 configure_input="$ac_file. $configure_input"
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21576 $as_echo "$as_me: creating $ac_file" >&6;}
21577 fi
21578 # Neutralize special characters interpreted by sed in replacement strings.
21579 case $configure_input in #(
21580 *\&* | *\|* | *\\* )
21581 ac_sed_conf_input=`$as_echo "$configure_input" |
21582 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21583 *) ac_sed_conf_input=$configure_input;;
21584 esac
21585
21586 case $ac_tag in
21587 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21589 esac
21590 ;;
21591 esac
21592
21593 ac_dir=`$as_dirname -- "$ac_file" ||
21594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21595 X"$ac_file" : 'X\(//\)[^/]' \| \
21596 X"$ac_file" : 'X\(//\)$' \| \
21597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21598 $as_echo X"$ac_file" |
21599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21600 s//\1/
21601 q
21602 }
21603 /^X\(\/\/\)[^/].*/{
21604 s//\1/
21605 q
21606 }
21607 /^X\(\/\/\)$/{
21608 s//\1/
21609 q
21610 }
21611 /^X\(\/\).*/{
21612 s//\1/
21613 q
21614 }
21615 s/.*/./; q'`
21616 as_dir="$ac_dir"; as_fn_mkdir_p
21617 ac_builddir=.
21618
21619 case "$ac_dir" in
21620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21621 *)
21622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21623 # A ".." for each directory in $ac_dir_suffix.
21624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21625 case $ac_top_builddir_sub in
21626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21628 esac ;;
21629 esac
21630 ac_abs_top_builddir=$ac_pwd
21631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21632 # for backward compatibility:
21633 ac_top_builddir=$ac_top_build_prefix
21634
21635 case $srcdir in
21636 .) # We are building in place.
21637 ac_srcdir=.
21638 ac_top_srcdir=$ac_top_builddir_sub
21639 ac_abs_top_srcdir=$ac_pwd ;;
21640 [\\/]* | ?:[\\/]* ) # Absolute name.
21641 ac_srcdir=$srcdir$ac_dir_suffix;
21642 ac_top_srcdir=$srcdir
21643 ac_abs_top_srcdir=$srcdir ;;
21644 *) # Relative name.
21645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21646 ac_top_srcdir=$ac_top_build_prefix$srcdir
21647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21648 esac
21649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21650
21651
21652 case $ac_mode in
21653 :F)
21654 #
21655 # CONFIG_FILE
21656 #
21657
21658 case $INSTALL in
21659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21661 esac
21662 ac_MKDIR_P=$MKDIR_P
21663 case $MKDIR_P in
21664 [\\/$]* | ?:[\\/]* ) ;;
21665 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21666 esac
21667 _ACEOF
21668
21669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21670 # If the template does not know about datarootdir, expand it.
21671 # FIXME: This hack should be removed a few years after 2.60.
21672 ac_datarootdir_hack=; ac_datarootdir_seen=
21673 ac_sed_dataroot='
21674 /datarootdir/ {
21675 p
21676 q
21677 }
21678 /@datadir@/p
21679 /@docdir@/p
21680 /@infodir@/p
21681 /@localedir@/p
21682 /@mandir@/p'
21683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21684 *datarootdir*) ac_datarootdir_seen=yes;;
21685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21688 _ACEOF
21689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21690 ac_datarootdir_hack='
21691 s&@datadir@&$datadir&g
21692 s&@docdir@&$docdir&g
21693 s&@infodir@&$infodir&g
21694 s&@localedir@&$localedir&g
21695 s&@mandir@&$mandir&g
21696 s&\\\${datarootdir}&$datarootdir&g' ;;
21697 esac
21698 _ACEOF
21699
21700 # Neutralize VPATH when `$srcdir' = `.'.
21701 # Shell code in configure.ac might set extrasub.
21702 # FIXME: do we really want to maintain this feature?
21703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21704 ac_sed_extra="$ac_vpsub
21705 $extrasub
21706 _ACEOF
21707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21708 :t
21709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21710 s|@configure_input@|$ac_sed_conf_input|;t t
21711 s&@top_builddir@&$ac_top_builddir_sub&;t t
21712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21713 s&@srcdir@&$ac_srcdir&;t t
21714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21715 s&@top_srcdir@&$ac_top_srcdir&;t t
21716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21717 s&@builddir@&$ac_builddir&;t t
21718 s&@abs_builddir@&$ac_abs_builddir&;t t
21719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21720 s&@INSTALL@&$ac_INSTALL&;t t
21721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21722 $ac_datarootdir_hack
21723 "
21724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21726
21727 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21732 which seems to be undefined. Please make sure it is defined" >&5
21733 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21734 which seems to be undefined. Please make sure it is defined" >&2;}
21735
21736 rm -f "$ac_tmp/stdin"
21737 case $ac_file in
21738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21740 esac \
21741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21742 ;;
21743 :H)
21744 #
21745 # CONFIG_HEADER
21746 #
21747 if test x"$ac_file" != x-; then
21748 {
21749 $as_echo "/* $configure_input */" \
21750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21751 } >"$ac_tmp/config.h" \
21752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21755 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21756 else
21757 rm -f "$ac_file"
21758 mv "$ac_tmp/config.h" "$ac_file" \
21759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21760 fi
21761 else
21762 $as_echo "/* $configure_input */" \
21763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21764 || as_fn_error $? "could not create -" "$LINENO" 5
21765 fi
21766 # Compute "$ac_file"'s index in $config_headers.
21767 _am_arg="$ac_file"
21768 _am_stamp_count=1
21769 for _am_header in $config_headers :; do
21770 case $_am_header in
21771 $_am_arg | $_am_arg:* )
21772 break ;;
21773 * )
21774 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21775 esac
21776 done
21777 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21778 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21779 X"$_am_arg" : 'X\(//\)[^/]' \| \
21780 X"$_am_arg" : 'X\(//\)$' \| \
21781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21782 $as_echo X"$_am_arg" |
21783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21784 s//\1/
21785 q
21786 }
21787 /^X\(\/\/\)[^/].*/{
21788 s//\1/
21789 q
21790 }
21791 /^X\(\/\/\)$/{
21792 s//\1/
21793 q
21794 }
21795 /^X\(\/\).*/{
21796 s//\1/
21797 q
21798 }
21799 s/.*/./; q'`/stamp-h$_am_stamp_count
21800 ;;
21801
21802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21803 $as_echo "$as_me: executing $ac_file commands" >&6;}
21804 ;;
21805 esac
21806
21807
21808 case $ac_file$ac_mode in
21809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21810 # Older Autoconf quotes --file arguments for eval, but not when files
21811 # are listed without --file. Let's play safe and only enable the eval
21812 # if we detect the quoting.
21813 case $CONFIG_FILES in
21814 *\'*) eval set x "$CONFIG_FILES" ;;
21815 *) set x $CONFIG_FILES ;;
21816 esac
21817 shift
21818 for mf
21819 do
21820 # Strip MF so we end up with the name of the file.
21821 mf=`echo "$mf" | sed -e 's/:.*$//'`
21822 # Check whether this is an Automake generated Makefile or not.
21823 # We used to match only the files named 'Makefile.in', but
21824 # some people rename them; so instead we look at the file content.
21825 # Grep'ing the first line is not enough: some people post-process
21826 # each Makefile.in and add a new line on top of each file to say so.
21827 # Grep'ing the whole file is not good either: AIX grep has a line
21828 # limit of 2048, but all sed's we know have understand at least 4000.
21829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21830 dirpart=`$as_dirname -- "$mf" ||
21831 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21832 X"$mf" : 'X\(//\)[^/]' \| \
21833 X"$mf" : 'X\(//\)$' \| \
21834 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21835 $as_echo X"$mf" |
21836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21837 s//\1/
21838 q
21839 }
21840 /^X\(\/\/\)[^/].*/{
21841 s//\1/
21842 q
21843 }
21844 /^X\(\/\/\)$/{
21845 s//\1/
21846 q
21847 }
21848 /^X\(\/\).*/{
21849 s//\1/
21850 q
21851 }
21852 s/.*/./; q'`
21853 else
21854 continue
21855 fi
21856 # Extract the definition of DEPDIR, am__include, and am__quote
21857 # from the Makefile without running 'make'.
21858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21859 test -z "$DEPDIR" && continue
21860 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21861 test -z "$am__include" && continue
21862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21863 # Find all dependency output files, they are included files with
21864 # $(DEPDIR) in their names. We invoke sed twice because it is the
21865 # simplest approach to changing $(DEPDIR) to its actual value in the
21866 # expansion.
21867 for file in `sed -n "
21868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21870 # Make sure the directory exists.
21871 test -f "$dirpart/$file" && continue
21872 fdir=`$as_dirname -- "$file" ||
21873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$file" : 'X\(//\)[^/]' \| \
21875 X"$file" : 'X\(//\)$' \| \
21876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21877 $as_echo X"$file" |
21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21879 s//\1/
21880 q
21881 }
21882 /^X\(\/\/\)[^/].*/{
21883 s//\1/
21884 q
21885 }
21886 /^X\(\/\/\)$/{
21887 s//\1/
21888 q
21889 }
21890 /^X\(\/\).*/{
21891 s//\1/
21892 q
21893 }
21894 s/.*/./; q'`
21895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21896 # echo "creating $dirpart/$file"
21897 echo '# dummy' > "$dirpart/$file"
21898 done
21899 done
21900 }
21901 ;;
21902 "libtool":C)
21903
21904 # See if we are running on zsh, and set the options that allow our
21905 # commands through without removal of \ escapes.
21906 if test -n "${ZSH_VERSION+set}"; then
21907 setopt NO_GLOB_SUBST
21908 fi
21909
21910 cfgfile=${ofile}T
21911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21912 $RM "$cfgfile"
21913
21914 cat <<_LT_EOF >> "$cfgfile"
21915 #! $SHELL
21916 # Generated automatically by $as_me ($PACKAGE) $VERSION
21917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21918 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21919
21920 # Provide generalized library-building support services.
21921 # Written by Gordon Matzigkeit, 1996
21922
21923 # Copyright (C) 2014 Free Software Foundation, Inc.
21924 # This is free software; see the source for copying conditions. There is NO
21925 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21926
21927 # GNU Libtool is free software; you can redistribute it and/or modify
21928 # it under the terms of the GNU General Public License as published by
21929 # the Free Software Foundation; either version 2 of of the License, or
21930 # (at your option) any later version.
21931 #
21932 # As a special exception to the GNU General Public License, if you
21933 # distribute this file as part of a program or library that is built
21934 # using GNU Libtool, you may include this file under the same
21935 # distribution terms that you use for the rest of that program.
21936 #
21937 # GNU Libtool is distributed in the hope that it will be useful, but
21938 # WITHOUT ANY WARRANTY; without even the implied warranty of
21939 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21940 # GNU General Public License for more details.
21941 #
21942 # You should have received a copy of the GNU General Public License
21943 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21944
21945
21946 # The names of the tagged configurations supported by this script.
21947 available_tags=''
21948
21949 # Configured defaults for sys_lib_dlsearch_path munging.
21950 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21951
21952 # ### BEGIN LIBTOOL CONFIG
21953
21954 # Whether or not to build static libraries.
21955 build_old_libs=$enable_static
21956
21957 # Which release of libtool.m4 was used?
21958 macro_version=$macro_version
21959 macro_revision=$macro_revision
21960
21961 # Whether or not to build shared libraries.
21962 build_libtool_libs=$enable_shared
21963
21964 # What type of objects to build.
21965 pic_mode=$pic_mode
21966
21967 # Whether or not to optimize for fast installation.
21968 fast_install=$enable_fast_install
21969
21970 # Shared archive member basename,for filename based shared library versioning on AIX.
21971 shared_archive_member_spec=$shared_archive_member_spec
21972
21973 # Shell to use when invoking shell scripts.
21974 SHELL=$lt_SHELL
21975
21976 # An echo program that protects backslashes.
21977 ECHO=$lt_ECHO
21978
21979 # The PATH separator for the build system.
21980 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21981
21982 # The host system.
21983 host_alias=$host_alias
21984 host=$host
21985 host_os=$host_os
21986
21987 # The build system.
21988 build_alias=$build_alias
21989 build=$build
21990 build_os=$build_os
21991
21992 # A sed program that does not truncate output.
21993 SED=$lt_SED
21994
21995 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21996 Xsed="\$SED -e 1s/^X//"
21997
21998 # A grep program that handles long lines.
21999 GREP=$lt_GREP
22000
22001 # An ERE matcher.
22002 EGREP=$lt_EGREP
22003
22004 # A literal string matcher.
22005 FGREP=$lt_FGREP
22006
22007 # A BSD- or MS-compatible name lister.
22008 NM=$lt_NM
22009
22010 # Whether we need soft or hard links.
22011 LN_S=$lt_LN_S
22012
22013 # What is the maximum length of a command?
22014 max_cmd_len=$max_cmd_len
22015
22016 # Object file suffix (normally "o").
22017 objext=$ac_objext
22018
22019 # Executable file suffix (normally "").
22020 exeext=$exeext
22021
22022 # whether the shell understands "unset".
22023 lt_unset=$lt_unset
22024
22025 # turn spaces into newlines.
22026 SP2NL=$lt_lt_SP2NL
22027
22028 # turn newlines into spaces.
22029 NL2SP=$lt_lt_NL2SP
22030
22031 # convert \$build file names to \$host format.
22032 to_host_file_cmd=$lt_cv_to_host_file_cmd
22033
22034 # convert \$build files to toolchain format.
22035 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22036
22037 # An object symbol dumper.
22038 OBJDUMP=$lt_OBJDUMP
22039
22040 # Method to check whether dependent libraries are shared objects.
22041 deplibs_check_method=$lt_deplibs_check_method
22042
22043 # Command to use when deplibs_check_method = "file_magic".
22044 file_magic_cmd=$lt_file_magic_cmd
22045
22046 # How to find potential files when deplibs_check_method = "file_magic".
22047 file_magic_glob=$lt_file_magic_glob
22048
22049 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22050 want_nocaseglob=$lt_want_nocaseglob
22051
22052 # DLL creation program.
22053 DLLTOOL=$lt_DLLTOOL
22054
22055 # Command to associate shared and link libraries.
22056 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22057
22058 # The archiver.
22059 AR=$lt_AR
22060
22061 # Flags to create an archive.
22062 AR_FLAGS=$lt_AR_FLAGS
22063
22064 # How to feed a file listing to the archiver.
22065 archiver_list_spec=$lt_archiver_list_spec
22066
22067 # A symbol stripping program.
22068 STRIP=$lt_STRIP
22069
22070 # Commands used to install an old-style archive.
22071 RANLIB=$lt_RANLIB
22072 old_postinstall_cmds=$lt_old_postinstall_cmds
22073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22074
22075 # Whether to use a lock for old archive extraction.
22076 lock_old_archive_extraction=$lock_old_archive_extraction
22077
22078 # A C compiler.
22079 LTCC=$lt_CC
22080
22081 # LTCC compiler flags.
22082 LTCFLAGS=$lt_CFLAGS
22083
22084 # Take the output of nm and produce a listing of raw symbols and C names.
22085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22086
22087 # Transform the output of nm in a proper C declaration.
22088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22089
22090 # Transform the output of nm into a list of symbols to manually relocate.
22091 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22092
22093 # Transform the output of nm in a C name address pair.
22094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22095
22096 # Transform the output of nm in a C name address pair when lib prefix is needed.
22097 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22098
22099 # The name lister interface.
22100 nm_interface=$lt_lt_cv_nm_interface
22101
22102 # Specify filename containing input files for \$NM.
22103 nm_file_list_spec=$lt_nm_file_list_spec
22104
22105 # The root where to search for dependent libraries,and where our libraries should be installed.
22106 lt_sysroot=$lt_sysroot
22107
22108 # Command to truncate a binary pipe.
22109 lt_truncate_bin=$lt_lt_cv_truncate_bin
22110
22111 # The name of the directory that contains temporary libtool files.
22112 objdir=$objdir
22113
22114 # Used to examine libraries when file_magic_cmd begins with "file".
22115 MAGIC_CMD=$MAGIC_CMD
22116
22117 # Must we lock files when doing compilation?
22118 need_locks=$lt_need_locks
22119
22120 # Manifest tool.
22121 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22122
22123 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22124 DSYMUTIL=$lt_DSYMUTIL
22125
22126 # Tool to change global to local symbols on Mac OS X.
22127 NMEDIT=$lt_NMEDIT
22128
22129 # Tool to manipulate fat objects and archives on Mac OS X.
22130 LIPO=$lt_LIPO
22131
22132 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22133 OTOOL=$lt_OTOOL
22134
22135 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22136 OTOOL64=$lt_OTOOL64
22137
22138 # Old archive suffix (normally "a").
22139 libext=$libext
22140
22141 # Shared library suffix (normally ".so").
22142 shrext_cmds=$lt_shrext_cmds
22143
22144 # The commands to extract the exported symbol list from a shared archive.
22145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22146
22147 # Variables whose values should be saved in libtool wrapper scripts and
22148 # restored at link time.
22149 variables_saved_for_relink=$lt_variables_saved_for_relink
22150
22151 # Do we need the "lib" prefix for modules?
22152 need_lib_prefix=$need_lib_prefix
22153
22154 # Do we need a version for libraries?
22155 need_version=$need_version
22156
22157 # Library versioning type.
22158 version_type=$version_type
22159
22160 # Shared library runtime path variable.
22161 runpath_var=$runpath_var
22162
22163 # Shared library path variable.
22164 shlibpath_var=$shlibpath_var
22165
22166 # Is shlibpath searched before the hard-coded library search path?
22167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22168
22169 # Format of library name prefix.
22170 libname_spec=$lt_libname_spec
22171
22172 # List of archive names. First name is the real one, the rest are links.
22173 # The last name is the one that the linker finds with -lNAME
22174 library_names_spec=$lt_library_names_spec
22175
22176 # The coded name of the library, if different from the real name.
22177 soname_spec=$lt_soname_spec
22178
22179 # Permission mode override for installation of shared libraries.
22180 install_override_mode=$lt_install_override_mode
22181
22182 # Command to use after installation of a shared archive.
22183 postinstall_cmds=$lt_postinstall_cmds
22184
22185 # Command to use after uninstallation of a shared archive.
22186 postuninstall_cmds=$lt_postuninstall_cmds
22187
22188 # Commands used to finish a libtool library installation in a directory.
22189 finish_cmds=$lt_finish_cmds
22190
22191 # As "finish_cmds", except a single script fragment to be evaled but
22192 # not shown.
22193 finish_eval=$lt_finish_eval
22194
22195 # Whether we should hardcode library paths into libraries.
22196 hardcode_into_libs=$hardcode_into_libs
22197
22198 # Compile-time system search path for libraries.
22199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22200
22201 # Detected run-time system search path for libraries.
22202 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22203
22204 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22205 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22206
22207 # Whether dlopen is supported.
22208 dlopen_support=$enable_dlopen
22209
22210 # Whether dlopen of programs is supported.
22211 dlopen_self=$enable_dlopen_self
22212
22213 # Whether dlopen of statically linked programs is supported.
22214 dlopen_self_static=$enable_dlopen_self_static
22215
22216 # Commands to strip libraries.
22217 old_striplib=$lt_old_striplib
22218 striplib=$lt_striplib
22219
22220
22221 # The linker used to build libraries.
22222 LD=$lt_LD
22223
22224 # How to create reloadable object files.
22225 reload_flag=$lt_reload_flag
22226 reload_cmds=$lt_reload_cmds
22227
22228 # Commands used to build an old-style archive.
22229 old_archive_cmds=$lt_old_archive_cmds
22230
22231 # A language specific compiler.
22232 CC=$lt_compiler
22233
22234 # Is the compiler the GNU compiler?
22235 with_gcc=$GCC
22236
22237 # Compiler flag to turn off builtin functions.
22238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22239
22240 # Additional compiler flags for building library objects.
22241 pic_flag=$lt_lt_prog_compiler_pic
22242
22243 # How to pass a linker flag through the compiler.
22244 wl=$lt_lt_prog_compiler_wl
22245
22246 # Compiler flag to prevent dynamic linking.
22247 link_static_flag=$lt_lt_prog_compiler_static
22248
22249 # Does compiler simultaneously support -c and -o options?
22250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22251
22252 # Whether or not to add -lc for building shared libraries.
22253 build_libtool_need_lc=$archive_cmds_need_lc
22254
22255 # Whether or not to disallow shared libs when runtime libs are static.
22256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22257
22258 # Compiler flag to allow reflexive dlopens.
22259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22260
22261 # Compiler flag to generate shared objects directly from archives.
22262 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22263
22264 # Whether the compiler copes with passing no objects directly.
22265 compiler_needs_object=$lt_compiler_needs_object
22266
22267 # Create an old-style archive from a shared archive.
22268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22269
22270 # Create a temporary old-style archive to link instead of a shared archive.
22271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22272
22273 # Commands used to build a shared archive.
22274 archive_cmds=$lt_archive_cmds
22275 archive_expsym_cmds=$lt_archive_expsym_cmds
22276
22277 # Commands used to build a loadable module if different from building
22278 # a shared archive.
22279 module_cmds=$lt_module_cmds
22280 module_expsym_cmds=$lt_module_expsym_cmds
22281
22282 # Whether we are building with GNU ld or not.
22283 with_gnu_ld=$lt_with_gnu_ld
22284
22285 # Flag that allows shared libraries with undefined symbols to be built.
22286 allow_undefined_flag=$lt_allow_undefined_flag
22287
22288 # Flag that enforces no undefined symbols.
22289 no_undefined_flag=$lt_no_undefined_flag
22290
22291 # Flag to hardcode \$libdir into a binary during linking.
22292 # This must work even if \$libdir does not exist
22293 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22294
22295 # Whether we need a single "-rpath" flag with a separated argument.
22296 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22297
22298 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22299 # DIR into the resulting binary.
22300 hardcode_direct=$hardcode_direct
22301
22302 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22303 # DIR into the resulting binary and the resulting library dependency is
22304 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22305 # library is relocated.
22306 hardcode_direct_absolute=$hardcode_direct_absolute
22307
22308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22309 # into the resulting binary.
22310 hardcode_minus_L=$hardcode_minus_L
22311
22312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22313 # into the resulting binary.
22314 hardcode_shlibpath_var=$hardcode_shlibpath_var
22315
22316 # Set to "yes" if building a shared library automatically hardcodes DIR
22317 # into the library and all subsequent libraries and executables linked
22318 # against it.
22319 hardcode_automatic=$hardcode_automatic
22320
22321 # Set to yes if linker adds runtime paths of dependent libraries
22322 # to runtime path list.
22323 inherit_rpath=$inherit_rpath
22324
22325 # Whether libtool must link a program against all its dependency libraries.
22326 link_all_deplibs=$link_all_deplibs
22327
22328 # Set to "yes" if exported symbols are required.
22329 always_export_symbols=$always_export_symbols
22330
22331 # The commands to list exported symbols.
22332 export_symbols_cmds=$lt_export_symbols_cmds
22333
22334 # Symbols that should not be listed in the preloaded symbols.
22335 exclude_expsyms=$lt_exclude_expsyms
22336
22337 # Symbols that must always be exported.
22338 include_expsyms=$lt_include_expsyms
22339
22340 # Commands necessary for linking programs (against libraries) with templates.
22341 prelink_cmds=$lt_prelink_cmds
22342
22343 # Commands necessary for finishing linking programs.
22344 postlink_cmds=$lt_postlink_cmds
22345
22346 # Specify filename containing input files.
22347 file_list_spec=$lt_file_list_spec
22348
22349 # How to hardcode a shared library path into an executable.
22350 hardcode_action=$hardcode_action
22351
22352 # ### END LIBTOOL CONFIG
22353
22354 _LT_EOF
22355
22356 cat <<'_LT_EOF' >> "$cfgfile"
22357
22358 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22359
22360 # func_munge_path_list VARIABLE PATH
22361 # -----------------------------------
22362 # VARIABLE is name of variable containing _space_ separated list of
22363 # directories to be munged by the contents of PATH, which is string
22364 # having a format:
22365 # "DIR[:DIR]:"
22366 # string "DIR[ DIR]" will be prepended to VARIABLE
22367 # ":DIR[:DIR]"
22368 # string "DIR[ DIR]" will be appended to VARIABLE
22369 # "DIRP[:DIRP]::[DIRA:]DIRA"
22370 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22371 # "DIRA[ DIRA]" will be appended to VARIABLE
22372 # "DIR[:DIR]"
22373 # VARIABLE will be replaced by "DIR[ DIR]"
22374 func_munge_path_list ()
22375 {
22376 case x$2 in
22377 x)
22378 ;;
22379 *:)
22380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22381 ;;
22382 x:*)
22383 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22384 ;;
22385 *::*)
22386 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22387 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22388 ;;
22389 *)
22390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22391 ;;
22392 esac
22393 }
22394
22395
22396 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22397 func_cc_basename ()
22398 {
22399 for cc_temp in $*""; do
22400 case $cc_temp in
22401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22403 \-*) ;;
22404 *) break;;
22405 esac
22406 done
22407 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22408 }
22409
22410
22411 # ### END FUNCTIONS SHARED WITH CONFIGURE
22412
22413 _LT_EOF
22414
22415 case $host_os in
22416 aix3*)
22417 cat <<\_LT_EOF >> "$cfgfile"
22418 # AIX sometimes has problems with the GCC collect2 program. For some
22419 # reason, if we set the COLLECT_NAMES environment variable, the problems
22420 # vanish in a puff of smoke.
22421 if test set != "${COLLECT_NAMES+set}"; then
22422 COLLECT_NAMES=
22423 export COLLECT_NAMES
22424 fi
22425 _LT_EOF
22426 ;;
22427 esac
22428
22429
22430 ltmain=$ac_aux_dir/ltmain.sh
22431
22432
22433 # We use sed instead of cat because bash on DJGPP gets confused if
22434 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22435 # text mode, it properly converts lines to CR/LF. This bash problem
22436 # is reportedly fixed, but why not run on old versions too?
22437 sed '$q' "$ltmain" >> "$cfgfile" \
22438 || (rm -f "$cfgfile"; exit 1)
22439
22440 mv -f "$cfgfile" "$ofile" ||
22441 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22442 chmod +x "$ofile"
22443
22444 ;;
22445
22446 esac
22447 done # for ac_tag
22448
22449
22450 as_fn_exit 0
22451 _ACEOF
22452 ac_clean_files=$ac_clean_files_save
22453
22454 test $ac_write_fail = 0 ||
22455 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22456
22457
22458 # configure is writing to config.log, and then calls config.status.
22459 # config.status does its own redirection, appending to config.log.
22460 # Unfortunately, on DOS this fails, as config.log is still kept open
22461 # by configure, so config.status won't be able to write to it; its
22462 # output is simply discarded. So we exec the FD to /dev/null,
22463 # effectively closing config.log, so it can be properly (re)opened and
22464 # appended to by config.status. When coming back to configure, we
22465 # need to make the FD available again.
22466 if test "$no_create" != yes; then
22467 ac_cs_success=:
22468 ac_config_status_args=
22469 test "$silent" = yes &&
22470 ac_config_status_args="$ac_config_status_args --quiet"
22471 exec 5>/dev/null
22472 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22473 exec 5>>config.log
22474 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22475 # would make configure fail if this is the last instruction.
22476 $ac_cs_success || as_fn_exit 1
22477 fi
22478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22481 fi
22482
22483
22484 echo ""
22485 echo " prefix: $prefix"
22486 echo " exec_prefix: $exec_prefix"
22487 echo " libdir: $libdir"
22488 echo " includedir: $includedir"
22489
22490 echo ""
22491 echo " CFLAGS: $CFLAGS"
22492 echo " CXXFLAGS: $CXXFLAGS"
22493 echo " Macros: $DEFINES"
22494
22495 echo ""
22496 echo " Run '${MAKE-make}' to build xf86-video-nouveau"
22497 echo ""
22498