configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-chips 1.3.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>.
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://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues
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-chips'
593 PACKAGE_TARNAME='xf86-video-chips'
594 PACKAGE_VERSION='1.3.0'
595 PACKAGE_STRING='xf86-video-chips 1.3.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues'
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 BUILD_UTILS_FALSE
643 BUILD_UTILS_TRUE
644 XAA_FALSE
645 XAA_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 XORG_LIBS
651 XORG_CFLAGS
652 LT_SYS_LIBRARY_PATH
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 ac_ct_AR
661 AR
662 DLLTOOL
663 OBJDUMP
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 LIBTOOL
671 MAN_SUBSTS
672 XORG_MAN_PAGE
673 ADMIN_MAN_DIR
674 DRIVER_MAN_DIR
675 MISC_MAN_DIR
676 FILE_MAN_DIR
677 LIB_MAN_DIR
678 APP_MAN_DIR
679 ADMIN_MAN_SUFFIX
680 DRIVER_MAN_SUFFIX
681 MISC_MAN_SUFFIX
682 FILE_MAN_SUFFIX
683 LIB_MAN_SUFFIX
684 APP_MAN_SUFFIX
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 INSTALL_CMD
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 CHANGELOG_CMD
699 STRICT_CFLAGS
700 CWARNFLAGS
701 BASE_CFLAGS
702 EGREP
703 GREP
704 CPP
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_silent_rules
792 enable_dependency_tracking
793 enable_selective_werror
794 enable_strict_compilation
795 enable_static
796 enable_shared
797 with_pic
798 enable_fast_install
799 with_aix_soname
800 with_gnu_ld
801 with_sysroot
802 enable_libtool_lock
803 with_xorg_module_dir
804 enable_xaa
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 LT_SYS_LIBRARY_PATH
819 XORG_CFLAGS
820 XORG_LIBS
821 PCIACCESS_CFLAGS
822 PCIACCESS_LIBS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -runstatedir | --runstatedir | --runstatedi | --runstated \
1115 | --runstate | --runstat | --runsta | --runst | --runs \
1116 | --run | --ru | --r)
1117 ac_prev=runstatedir ;;
1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120 | --run=* | --ru=* | --r=*)
1121 runstatedir=$ac_optarg ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir runstatedir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures xf86-video-chips 1.3.0 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root
1423 [DATAROOTDIR/doc/xf86-video-chips]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of xf86-video-chips 1.3.0:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --disable-selective-werror
1460 Turn off selective compiler errors. (default:
1461 enabled)
1462 --enable-strict-compilation
1463 Enable all warnings from compiler and make them
1464 errors (default: disabled)
1465 --enable-static[=PKGS] build static libraries [default=no]
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1471 [default=auto]
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-aix-soname=aix|svr4|both
1479 shared library versioning (aka "SONAME") variant to
1480 provide on AIX, [default=aix].
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1483 compiler's sysroot if not specified).
1484 --with-xorg-module-dir=DIR
1485 Default xorg module directory
1486 [[default=$libdir/xorg/modules]]
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497 PKG_CONFIG path to pkg-config utility
1498 PKG_CONFIG_PATH
1499 directories to add to pkg-config's search path
1500 PKG_CONFIG_LIBDIR
1501 path overriding pkg-config's built-in search path
1502 LT_SYS_LIBRARY_PATH
1503 User-defined run-time library search path.
1504 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1505 XORG_LIBS linker flags for XORG, overriding pkg-config
1506 PCIACCESS_CFLAGS
1507 C compiler flags for PCIACCESS, overriding pkg-config
1508 PCIACCESS_LIBS
1509 linker flags for PCIACCESS, overriding pkg-config
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 xf86-video-chips configure 1.3.0
1578 generated by GNU Autoconf 2.69
1579
1580 Copyright (C) 2012 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1630 # ---------------------------------------------
1631 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1632 # accordingly.
1633 ac_fn_c_check_decl ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 as_decl_name=`echo $2|sed 's/ *(.*//'`
1637 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1639 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1642 else
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 int
1647 main ()
1648 {
1649 #ifndef $as_decl_name
1650 #ifdef __cplusplus
1651 (void) $as_decl_use;
1652 #else
1653 (void) $as_decl_name;
1654 #endif
1655 #endif
1656
1657 ;
1658 return 0;
1659 }
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_decl
1674
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_cpp
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747 fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_header_compile
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1902 # accordingly.
1903 ac_fn_c_check_header_mongrel ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 else
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1926 else
1927 ac_header_compiler=no
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1932
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1942 else
1943 ac_header_preproc=no
1944 fi
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1948
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 yes:no: )
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 no:yes:* )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ( $as_echo "## --------------------------------------------------------------------------------- ##
1969 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues ##
1970 ## --------------------------------------------------------------------------------- ##"
1971 ) | sed "s/^/$as_me: WARNING: /" >&2
1972 ;;
1973 esac
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=\$ac_header_compiler"
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 fi
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_header_mongrel
1988 cat >config.log <<_ACEOF
1989 This file contains any messages produced by compilers while
1990 running configure, to aid debugging if configure makes a mistake.
1991
1992 It was created by xf86-video-chips $as_me 1.3.0, which was
1993 generated by GNU Autoconf 2.69. Invocation command line was
1994
1995 $ $0 $@
1996
1997 _ACEOF
1998 exec 5>>config.log
1999 {
2000 cat <<_ASUNAME
2001 ## --------- ##
2002 ## Platform. ##
2003 ## --------- ##
2004
2005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2010
2011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2013
2014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2017 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2021
2022 _ASUNAME
2023
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 $as_echo "PATH: $as_dir"
2030 done
2031 IFS=$as_save_IFS
2032
2033 } >&5
2034
2035 cat >&5 <<_ACEOF
2036
2037
2038 ## ----------- ##
2039 ## Core tests. ##
2040 ## ----------- ##
2041
2042 _ACEOF
2043
2044
2045 # Keep a trace of the command line.
2046 # Strip out --no-create and --no-recursion so they do not pile up.
2047 # Strip out --silent because we don't want to record it for future runs.
2048 # Also quote any args containing shell meta-characters.
2049 # Make two passes to allow for proper duplicate-argument suppression.
2050 ac_configure_args=
2051 ac_configure_args0=
2052 ac_configure_args1=
2053 ac_must_keep_next=false
2054 for ac_pass in 1 2
2055 do
2056 for ac_arg
2057 do
2058 case $ac_arg in
2059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2061 | -silent | --silent | --silen | --sile | --sil)
2062 continue ;;
2063 *\'*)
2064 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 esac
2066 case $ac_pass in
2067 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2068 2)
2069 as_fn_append ac_configure_args1 " '$ac_arg'"
2070 if test $ac_must_keep_next = true; then
2071 ac_must_keep_next=false # Got value, back to normal.
2072 else
2073 case $ac_arg in
2074 *=* | --config-cache | -C | -disable-* | --disable-* \
2075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2077 | -with-* | --with-* | -without-* | --without-* | --x)
2078 case "$ac_configure_args0 " in
2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2080 esac
2081 ;;
2082 -* ) ac_must_keep_next=true ;;
2083 esac
2084 fi
2085 as_fn_append ac_configure_args " '$ac_arg'"
2086 ;;
2087 esac
2088 done
2089 done
2090 { ac_configure_args0=; unset ac_configure_args0;}
2091 { ac_configure_args1=; unset ac_configure_args1;}
2092
2093 # When interrupted or exit'd, cleanup temporary files, and complete
2094 # config.log. We remove comments because anyway the quotes in there
2095 # would cause problems or look ugly.
2096 # WARNING: Use '\'' to represent an apostrophe within the trap.
2097 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2098 trap 'exit_status=$?
2099 # Save into config.log some information that might help in debugging.
2100 {
2101 echo
2102
2103 $as_echo "## ---------------- ##
2104 ## Cache variables. ##
2105 ## ---------------- ##"
2106 echo
2107 # The following way of writing the cache mishandles newlines in values,
2108 (
2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in #(
2112 *${as_nl}*)
2113 case $ac_var in #(
2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2116 esac
2117 case $ac_var in #(
2118 _ | IFS | as_nl) ;; #(
2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2120 *) { eval $ac_var=; unset $ac_var;} ;;
2121 esac ;;
2122 esac
2123 done
2124 (set) 2>&1 |
2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2126 *${as_nl}ac_space=\ *)
2127 sed -n \
2128 "s/'\''/'\''\\\\'\'''\''/g;
2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2130 ;; #(
2131 *)
2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2133 ;;
2134 esac |
2135 sort
2136 )
2137 echo
2138
2139 $as_echo "## ----------------- ##
2140 ## Output variables. ##
2141 ## ----------------- ##"
2142 echo
2143 for ac_var in $ac_subst_vars
2144 do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2152
2153 if test -n "$ac_subst_files"; then
2154 $as_echo "## ------------------- ##
2155 ## File substitutions. ##
2156 ## ------------------- ##"
2157 echo
2158 for ac_var in $ac_subst_files
2159 do
2160 eval ac_val=\$$ac_var
2161 case $ac_val in
2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2163 esac
2164 $as_echo "$ac_var='\''$ac_val'\''"
2165 done | sort
2166 echo
2167 fi
2168
2169 if test -s confdefs.h; then
2170 $as_echo "## ----------- ##
2171 ## confdefs.h. ##
2172 ## ----------- ##"
2173 echo
2174 cat confdefs.h
2175 echo
2176 fi
2177 test "$ac_signal" != 0 &&
2178 $as_echo "$as_me: caught signal $ac_signal"
2179 $as_echo "$as_me: exit $exit_status"
2180 } >&5
2181 rm -f core *.core core.conftest.* &&
2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2183 exit $exit_status
2184 ' 0
2185 for ac_signal in 1 2 13 15; do
2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 done
2188 ac_signal=0
2189
2190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2191 rm -f -r conftest* confdefs.h
2192
2193 $as_echo "/* confdefs.h */" > confdefs.h
2194
2195 # Predefined preprocessor variables.
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_NAME "$PACKAGE_NAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_STRING "$PACKAGE_STRING"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_URL "$PACKAGE_URL"
2219 _ACEOF
2220
2221
2222 # Let the site file select an alternate cache file if it wants to.
2223 # Prefer an explicitly selected file to automatically selected ones.
2224 ac_site_file1=NONE
2225 ac_site_file2=NONE
2226 if test -n "$CONFIG_SITE"; then
2227 # We do not want a PATH search for config.site.
2228 case $CONFIG_SITE in #((
2229 -*) ac_site_file1=./$CONFIG_SITE;;
2230 */*) ac_site_file1=$CONFIG_SITE;;
2231 *) ac_site_file1=./$CONFIG_SITE;;
2232 esac
2233 elif test "x$prefix" != xNONE; then
2234 ac_site_file1=$prefix/share/config.site
2235 ac_site_file2=$prefix/etc/config.site
2236 else
2237 ac_site_file1=$ac_default_prefix/share/config.site
2238 ac_site_file2=$ac_default_prefix/etc/config.site
2239 fi
2240 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2241 do
2242 test "x$ac_site_file" = xNONE && continue
2243 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2245 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2246 sed 's/^/| /' "$ac_site_file" >&5
2247 . "$ac_site_file" \
2248 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2250 as_fn_error $? "failed to load site script $ac_site_file
2251 See \`config.log' for more details" "$LINENO" 5; }
2252 fi
2253 done
2254
2255 if test -r "$cache_file"; then
2256 # Some versions of bash will fail to source /dev/null (special files
2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2258 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2260 $as_echo "$as_me: loading cache $cache_file" >&6;}
2261 case $cache_file in
2262 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2263 *) . "./$cache_file";;
2264 esac
2265 fi
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2268 $as_echo "$as_me: creating cache $cache_file" >&6;}
2269 >$cache_file
2270 fi
2271
2272 # Check that the precious variables saved in the cache have kept the same
2273 # value.
2274 ac_cache_corrupted=false
2275 for ac_var in $ac_precious_vars; do
2276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2277 eval ac_new_set=\$ac_env_${ac_var}_set
2278 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2279 eval ac_new_val=\$ac_env_${ac_var}_value
2280 case $ac_old_set,$ac_new_set in
2281 set,)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,set)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,);;
2290 *)
2291 if test "x$ac_old_val" != "x$ac_new_val"; then
2292 # differences in whitespace do not lead to failure.
2293 ac_old_val_w=`echo x $ac_old_val`
2294 ac_new_val_w=`echo x $ac_new_val`
2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2297 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2298 ac_cache_corrupted=:
2299 else
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2301 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2302 eval $ac_var=\$ac_old_val
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2305 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2307 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2308 fi;;
2309 esac
2310 # Pass precious variables to config.status.
2311 if test "$ac_new_set" = set; then
2312 case $ac_new_val in
2313 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 *) ac_arg=$ac_var=$ac_new_val ;;
2315 esac
2316 case " $ac_configure_args " in
2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2318 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2319 esac
2320 fi
2321 done
2322 if $ac_cache_corrupted; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2326 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2327 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2328 fi
2329 ## -------------------- ##
2330 ## Main body of script. ##
2331 ## -------------------- ##
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338
2339
2340
2341 ac_config_headers="$ac_config_headers config.h"
2342
2343 ac_aux_dir=
2344 for ac_dir in . "$srcdir"/.; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372
2373 # Initialize Automake
2374 am__api_version='1.15'
2375
2376 # Find a good install program. We prefer a C program (faster),
2377 # so one script is as good as another. But avoid the broken or
2378 # incompatible versions:
2379 # SysV /etc/install, /usr/sbin/install
2380 # SunOS /usr/etc/install
2381 # IRIX /sbin/install
2382 # AIX /bin/install
2383 # AmigaOS /C/install, which installs bootblocks on floppy discs
2384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387 # OS/2's system install, which has a completely different semantic
2388 # ./install, which can be erroneously created by make from ./install.sh.
2389 # Reject install programs that cannot install multiple files.
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2392 if test -z "$INSTALL"; then
2393 if ${ac_cv_path_install+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402 case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2406 /usr/ucb/* ) ;;
2407 *)
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2410 # by default.
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2417 :
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2421 :
2422 else
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2426 mkdir conftest.dir
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2431 then
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2433 break 3
2434 fi
2435 fi
2436 fi
2437 done
2438 done
2439 ;;
2440 esac
2441
2442 done
2443 IFS=$as_save_IFS
2444
2445 rm -rf conftest.one conftest.two conftest.dir
2446
2447 fi
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2450 else
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2456 fi
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459 $as_echo "$INSTALL" >&6; }
2460
2461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462 # It thinks the first close brace ends the variable substitution.
2463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464
2465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466
2467 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470 $as_echo_n "checking whether build environment is sane... " >&6; }
2471 # Reject unsafe characters in $srcdir or the absolute working directory
2472 # name. Accept space and tab only in the latter.
2473 am_lf='
2474 '
2475 case `pwd` in
2476 *[\\\"\#\$\&\'\`$am_lf]*)
2477 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2478 esac
2479 case $srcdir in
2480 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2481 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2482 esac
2483
2484 # Do 'set' in a subshell so we don't clobber the current shell's
2485 # arguments. Must try -L first in case configure is actually a
2486 # symlink; some systems play weird games with the mod time of symlinks
2487 # (eg FreeBSD returns the mod time of the symlink's containing
2488 # directory).
2489 if (
2490 am_has_slept=no
2491 for am_try in 1 2; do
2492 echo "timestamp, slept: $am_has_slept" > conftest.file
2493 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2495 # -L didn't work.
2496 set X `ls -t "$srcdir/configure" conftest.file`
2497 fi
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2500
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
2505 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2506 alias in your environment" "$LINENO" 5
2507 fi
2508 if test "$2" = conftest.file || test $am_try -eq 2; then
2509 break
2510 fi
2511 # Just in case.
2512 sleep 1
2513 am_has_slept=yes
2514 done
2515 test "$2" = conftest.file
2516 )
2517 then
2518 # Ok.
2519 :
2520 else
2521 as_fn_error $? "newly created file is older than distributed files!
2522 Check your system clock" "$LINENO" 5
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 # If we didn't sleep, we still need to ensure time stamps of config.status and
2527 # generated files are strictly newer.
2528 am_sleep_pid=
2529 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2530 ( sleep 1 ) &
2531 am_sleep_pid=$!
2532 fi
2533
2534 rm -f conftest.file
2535
2536 test "$program_prefix" != NONE &&
2537 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2538 # Use a double $ so make ignores it.
2539 test "$program_suffix" != NONE &&
2540 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2541 # Double any \ or $.
2542 # By default was `s,x,x', remove it if useless.
2543 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2544 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2545
2546 # Expand $ac_aux_dir to an absolute path.
2547 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2548
2549 if test x"${MISSING+set}" != xset; then
2550 case $am_aux_dir in
2551 *\ * | *\ *)
2552 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2553 *)
2554 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2555 esac
2556 fi
2557 # Use eval to expand $SHELL
2558 if eval "$MISSING --is-lightweight"; then
2559 am_missing_run="$MISSING "
2560 else
2561 am_missing_run=
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2563 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2564 fi
2565
2566 if test x"${install_sh+set}" != xset; then
2567 case $am_aux_dir in
2568 *\ * | *\ *)
2569 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2570 *)
2571 install_sh="\${SHELL} $am_aux_dir/install-sh"
2572 esac
2573 fi
2574
2575 # Installed binaries are usually stripped using 'strip' when the user
2576 # run "make install-strip". However 'strip' might not be the right
2577 # tool to use in cross-compilation environments, therefore Automake
2578 # will honor the 'STRIP' environment variable to overrule this program.
2579 if test "$cross_compiling" != no; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}strip; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if ${ac_cv_prog_STRIP+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$STRIP"; then
2589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 STRIP=$ac_cv_prog_STRIP
2609 if test -n "$STRIP"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2611 $as_echo "$STRIP" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$ac_cv_prog_STRIP"; then
2620 ac_ct_STRIP=$STRIP
2621 # Extract the first word of "strip", so it can be a program name with args.
2622 set dummy strip; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$ac_ct_STRIP"; then
2629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_STRIP="strip"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644 IFS=$as_save_IFS
2645
2646 fi
2647 fi
2648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649 if test -n "$ac_ct_STRIP"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2651 $as_echo "$ac_ct_STRIP" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 fi
2656
2657 if test "x$ac_ct_STRIP" = x; then
2658 STRIP=":"
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666 STRIP=$ac_ct_STRIP
2667 fi
2668 else
2669 STRIP="$ac_cv_prog_STRIP"
2670 fi
2671
2672 fi
2673 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2674
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2676 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2677 if test -z "$MKDIR_P"; then
2678 if ${ac_cv_path_mkdir+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_prog in mkdir gmkdir; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2689 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2690 'mkdir (GNU coreutils) '* | \
2691 'mkdir (coreutils) '* | \
2692 'mkdir (fileutils) '4.1*)
2693 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2694 break 3;;
2695 esac
2696 done
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702
2703 test -d ./--version && rmdir ./--version
2704 if test "${ac_cv_path_mkdir+set}" = set; then
2705 MKDIR_P="$ac_cv_path_mkdir -p"
2706 else
2707 # As a last resort, use the slow shell script. Don't cache a
2708 # value for MKDIR_P within a source directory, because that will
2709 # break other packages using the cache if that directory is
2710 # removed, or if the value is a relative name.
2711 MKDIR_P="$ac_install_sh -d"
2712 fi
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2715 $as_echo "$MKDIR_P" >&6; }
2716
2717 for ac_prog in gawk mawk nawk awk
2718 do
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_AWK+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$AWK"; then
2727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_AWK="$ac_prog"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 AWK=$ac_cv_prog_AWK
2747 if test -n "$AWK"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2749 $as_echo "$AWK" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 test -n "$AWK" && break
2757 done
2758
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2760 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2761 set x ${MAKE-make}
2762 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2763 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 cat >conftest.make <<\_ACEOF
2767 SHELL = /bin/sh
2768 all:
2769 @echo '@@@%%%=$(MAKE)=@@@%%%'
2770 _ACEOF
2771 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2772 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2773 *@@@%%%=?*=@@@%%%*)
2774 eval ac_cv_prog_make_${ac_make}_set=yes;;
2775 *)
2776 eval ac_cv_prog_make_${ac_make}_set=no;;
2777 esac
2778 rm -f conftest.make
2779 fi
2780 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782 $as_echo "yes" >&6; }
2783 SET_MAKE=
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 SET_MAKE="MAKE=${MAKE-make}"
2788 fi
2789
2790 rm -rf .tst 2>/dev/null
2791 mkdir .tst 2>/dev/null
2792 if test -d .tst; then
2793 am__leading_dot=.
2794 else
2795 am__leading_dot=_
2796 fi
2797 rmdir .tst 2>/dev/null
2798
2799 # Check whether --enable-silent-rules was given.
2800 if test "${enable_silent_rules+set}" = set; then :
2801 enableval=$enable_silent_rules;
2802 fi
2803
2804 case $enable_silent_rules in # (((
2805 yes) AM_DEFAULT_VERBOSITY=0;;
2806 no) AM_DEFAULT_VERBOSITY=1;;
2807 *) AM_DEFAULT_VERBOSITY=1;;
2808 esac
2809 am_make=${MAKE-make}
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2811 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2812 if ${am_cv_make_support_nested_variables+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if $as_echo 'TRUE=$(BAR$(V))
2816 BAR0=false
2817 BAR1=true
2818 V=1
2819 am__doit:
2820 @$(TRUE)
2821 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2822 am_cv_make_support_nested_variables=yes
2823 else
2824 am_cv_make_support_nested_variables=no
2825 fi
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2828 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2829 if test $am_cv_make_support_nested_variables = yes; then
2830 AM_V='$(V)'
2831 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2832 else
2833 AM_V=$AM_DEFAULT_VERBOSITY
2834 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2835 fi
2836 AM_BACKSLASH='\'
2837
2838 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840 # is not polluted with repeated "-I."
2841 am__isrc=' -I$(srcdir)'
2842 # test to see if srcdir already configured
2843 if test -f $srcdir/config.status; then
2844 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845 fi
2846 fi
2847
2848 # test whether we have cygpath
2849 if test -z "$CYGPATH_W"; then
2850 if (cygpath --version) >/dev/null 2>/dev/null; then
2851 CYGPATH_W='cygpath -w'
2852 else
2853 CYGPATH_W=echo
2854 fi
2855 fi
2856
2857
2858 # Define the identity of the package.
2859 PACKAGE='xf86-video-chips'
2860 VERSION='1.3.0'
2861
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE "$PACKAGE"
2865 _ACEOF
2866
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define VERSION "$VERSION"
2870 _ACEOF
2871
2872 # Some tools Automake needs.
2873
2874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2875
2876
2877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2878
2879
2880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2881
2882
2883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2884
2885
2886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2887
2888 # For better backward compatibility. To be removed once Automake 1.9.x
2889 # dies out for good. For more background, see:
2890 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2891 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2892 mkdir_p='$(MKDIR_P)'
2893
2894 # We need awk for the "check" target (and possibly the TAP driver). The
2895 # system "awk" is bad on some platforms.
2896 # Always define AMTAR for backward compatibility. Yes, it's still used
2897 # in the wild :-( We should find a proper way to deprecate it ...
2898 AMTAR='$${TAR-tar}'
2899
2900
2901 # We'll loop over all known methods to create a tar archive until one works.
2902 _am_tools='gnutar pax cpio none'
2903
2904 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2905
2906
2907
2908
2909
2910
2911 # POSIX will say in a future version that running "rm -f" with no argument
2912 # is OK; and we want to be able to make that assumption in our Makefile
2913 # recipes. So use an aggressive probe to check that the usage we want is
2914 # actually supported "in the wild" to an acceptable degree.
2915 # See automake bug#10828.
2916 # To make any issue more visible, cause the running configure to be aborted
2917 # by default if the 'rm' program in use doesn't match our expectations; the
2918 # user can still override this though.
2919 if rm -f && rm -fr && rm -rf; then : OK; else
2920 cat >&2 <<'END'
2921 Oops!
2922
2923 Your 'rm' program seems unable to run without file operands specified
2924 on the command line, even when the '-f' option is present. This is contrary
2925 to the behaviour of most rm programs out there, and not conforming with
2926 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2927
2928 Please tell bug-automake@gnu.org about your system, including the value
2929 of your $PATH and any error possibly output before this message. This
2930 can help us improve future automake versions.
2931
2932 END
2933 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2934 echo 'Configuration will proceed anyway, since you have set the' >&2
2935 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2936 echo >&2
2937 else
2938 cat >&2 <<'END'
2939 Aborting the configuration process, to ensure you take notice of the issue.
2940
2941 You can download and install GNU coreutils to get an 'rm' implementation
2942 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2943
2944 If you want to complete the configuration process using your problematic
2945 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2946 to "yes", and re-run configure.
2947
2948 END
2949 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2950 fi
2951 fi
2952
2953
2954 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966 DEPDIR="${am__leading_dot}deps"
2967
2968 ac_config_commands="$ac_config_commands depfiles"
2969
2970
2971 am_make=${MAKE-make}
2972 cat > confinc << 'END'
2973 am__doit:
2974 @echo this is the am__doit target
2975 .PHONY: am__doit
2976 END
2977 # If we don't find an include directive, just comment out the code.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2979 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2980 am__include="#"
2981 am__quote=
2982 _am_result=none
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # Ignore all kinds of additional output from 'make'.
2986 case `$am_make -s -f confmf 2> /dev/null` in #(
2987 *the\ am__doit\ target*)
2988 am__include=include
2989 am__quote=
2990 _am_result=GNU
2991 ;;
2992 esac
2993 # Now try BSD make style include.
2994 if test "$am__include" = "#"; then
2995 echo '.include "confinc"' > confmf
2996 case `$am_make -s -f confmf 2> /dev/null` in #(
2997 *the\ am__doit\ target*)
2998 am__include=.include
2999 am__quote="\""
3000 _am_result=BSD
3001 ;;
3002 esac
3003 fi
3004
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3007 $as_echo "$_am_result" >&6; }
3008 rm -f confinc confmf
3009
3010 # Check whether --enable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then :
3012 enableval=$enable_dependency_tracking;
3013 fi
3014
3015 if test "x$enable_dependency_tracking" != xno; then
3016 am_depcomp="$ac_aux_dir/depcomp"
3017 AMDEPBACKSLASH='\'
3018 am__nodep='_no'
3019 fi
3020 if test "x$enable_dependency_tracking" != xno; then
3021 AMDEP_TRUE=
3022 AMDEP_FALSE='#'
3023 else
3024 AMDEP_TRUE='#'
3025 AMDEP_FALSE=
3026 fi
3027
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$ac_cv_prog_CC"; then
3074 ac_ct_CC=$CC
3075 # Extract the first word of "gcc", so it can be a program name with args.
3076 set dummy gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_CC="gcc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 CC=$ac_ct_CC
3121 fi
3122 else
3123 CC="$ac_cv_prog_CC"
3124 fi
3125
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CC="${ac_tool_prefix}cc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 fi
3166 fi
3167 if test -z "$CC"; then
3168 # Extract the first word of "cc", so it can be a program name with args.
3169 set dummy cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 ac_prog_rejected=no
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3187 ac_prog_rejected=yes
3188 continue
3189 fi
3190 ac_cv_prog_CC="cc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 if test $ac_prog_rejected = yes; then
3199 # We found a bogon in the path, so make sure we never use it.
3200 set dummy $ac_cv_prog_CC
3201 shift
3202 if test $# != 0; then
3203 # We chose a different compiler from the bogus one.
3204 # However, it has the same basename, so the bogon will be chosen
3205 # first if we set CC to just the basename; use the full file name.
3206 shift
3207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3208 fi
3209 fi
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 fi
3223 if test -z "$CC"; then
3224 if test -n "$ac_tool_prefix"; then
3225 for ac_prog in cl.exe
3226 do
3227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264 test -n "$CC" && break
3265 done
3266 fi
3267 if test -z "$CC"; then
3268 ac_ct_CC=$CC
3269 for ac_prog in cl.exe
3270 do
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$ac_ct_CC"; then
3279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_ac_ct_CC="$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299 if test -n "$ac_ct_CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301 $as_echo "$ac_ct_CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 test -n "$ac_ct_CC" && break
3309 done
3310
3311 if test "x$ac_ct_CC" = x; then
3312 CC=""
3313 else
3314 case $cross_compiling:$ac_tool_warned in
3315 yes:)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3319 esac
3320 CC=$ac_ct_CC
3321 fi
3322 fi
3323
3324 fi
3325
3326
3327 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "no acceptable C compiler found in \$PATH
3330 See \`config.log' for more details" "$LINENO" 5; }
3331
3332 # Provide some information about the compiler.
3333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3334 set X $ac_compile
3335 ac_compiler=$2
3336 for ac_option in --version -v -V -qversion; do
3337 { { ac_try="$ac_compiler $ac_option >&5"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345 ac_status=$?
3346 if test -s conftest.err; then
3347 sed '10a\
3348 ... rest of stderr output deleted ...
3349 10q' conftest.err >conftest.er1
3350 cat conftest.er1 >&5
3351 fi
3352 rm -f conftest.er1 conftest.err
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 done
3356
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 ac_clean_files_save=$ac_clean_files
3369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3370 # Try to create an executable without -o first, disregard a.out.
3371 # It will help us diagnose broken compilers, and finding out an intuition
3372 # of exeext.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3374 $as_echo_n "checking whether the C compiler works... " >&6; }
3375 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3376
3377 # The possible output files:
3378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379
3380 ac_rmfiles=
3381 for ac_file in $ac_files
3382 do
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3386 esac
3387 done
3388 rm -f $ac_rmfiles
3389
3390 if { { ac_try="$ac_link_default"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link_default") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3402 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3403 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3404 # so that the user can short-circuit this test for compilers unknown to
3405 # Autoconf.
3406 for ac_file in $ac_files ''
3407 do
3408 test -f "$ac_file" || continue
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3411 ;;
3412 [ab].out )
3413 # We found the default executable, but exeext='' is most
3414 # certainly right.
3415 break;;
3416 *.* )
3417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3418 then :; else
3419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 fi
3421 # We set ac_cv_exeext here because the later test for it is not
3422 # safe: cross compilers may not add the suffix if given an `-o'
3423 # argument, so we may need to know it at that point already.
3424 # Even if this section looks crufty: it has the advantage of
3425 # actually working.
3426 break;;
3427 * )
3428 break;;
3429 esac
3430 done
3431 test "$ac_cv_exeext" = no && ac_cv_exeext=
3432
3433 else
3434 ac_file=''
3435 fi
3436 if test -z "$ac_file"; then :
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error 77 "C compiler cannot create executables
3445 See \`config.log' for more details" "$LINENO" 5; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3451 $as_echo_n "checking for C compiler default output file name... " >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3453 $as_echo "$ac_file" >&6; }
3454 ac_exeext=$ac_cv_exeext
3455
3456 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3459 $as_echo_n "checking for suffix of executables... " >&6; }
3460 if { { ac_try="$ac_link"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_link") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3472 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3473 # work properly (i.e., refer to `conftest.exe'), while it won't with
3474 # `rm'.
3475 for ac_file in conftest.exe conftest conftest.*; do
3476 test -f "$ac_file" || continue
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480 break;;
3481 * ) break;;
3482 esac
3483 done
3484 else
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3488 See \`config.log' for more details" "$LINENO" 5; }
3489 fi
3490 rm -f conftest conftest$ac_cv_exeext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3492 $as_echo "$ac_cv_exeext" >&6; }
3493
3494 rm -f conftest.$ac_ext
3495 EXEEXT=$ac_cv_exeext
3496 ac_exeext=$EXEEXT
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499 #include <stdio.h>
3500 int
3501 main ()
3502 {
3503 FILE *f = fopen ("conftest.out", "w");
3504 return ferror (f) || fclose (f) != 0;
3505
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 ac_clean_files="$ac_clean_files conftest.out"
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 if test "$cross_compiling" != yes; then
3516 { { ac_try="$ac_link"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }
3527 if { ac_try='./conftest$ac_cv_exeext'
3528 { { case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_try") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; }; then
3538 cross_compiling=no
3539 else
3540 if test "$cross_compiling" = maybe; then
3541 cross_compiling=yes
3542 else
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot run C compiled programs.
3546 If you meant to cross compile, use \`--host'.
3547 See \`config.log' for more details" "$LINENO" 5; }
3548 fi
3549 fi
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552 $as_echo "$cross_compiling" >&6; }
3553
3554 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3557 $as_echo_n "checking for suffix of object files... " >&6; }
3558 if ${ac_cv_objext+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.o conftest.obj
3573 if { { ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compile") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; then :
3584 for ac_file in conftest.o conftest.obj conftest.*; do
3585 test -f "$ac_file" || continue;
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3589 break;;
3590 esac
3591 done
3592 else
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details" "$LINENO" 5; }
3600 fi
3601 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3604 $as_echo "$ac_cv_objext" >&6; }
3605 OBJEXT=$ac_cv_objext
3606 ac_objext=$OBJEXT
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3608 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609 if ${ac_cv_c_compiler_gnu+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618 #ifndef __GNUC__
3619 choke me
3620 #endif
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_compiler_gnu=yes
3628 else
3629 ac_compiler_gnu=no
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3633
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3636 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3637 if test $ac_compiler_gnu = yes; then
3638 GCC=yes
3639 else
3640 GCC=
3641 fi
3642 ac_test_CFLAGS=${CFLAGS+set}
3643 ac_save_CFLAGS=$CFLAGS
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3645 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3646 if ${ac_cv_prog_cc_g+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 ac_save_c_werror_flag=$ac_c_werror_flag
3650 ac_c_werror_flag=yes
3651 ac_cv_prog_cc_g=no
3652 CFLAGS="-g"
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665 ac_cv_prog_cc_g=yes
3666 else
3667 CFLAGS=""
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680
3681 else
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3683 CFLAGS="-g"
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_g=yes
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706 $as_echo "$ac_cv_prog_cc_g" >&6; }
3707 if test "$ac_test_CFLAGS" = set; then
3708 CFLAGS=$ac_save_CFLAGS
3709 elif test $ac_cv_prog_cc_g = yes; then
3710 if test "$GCC" = yes; then
3711 CFLAGS="-g -O2"
3712 else
3713 CFLAGS="-g"
3714 fi
3715 else
3716 if test "$GCC" = yes; then
3717 CFLAGS="-O2"
3718 else
3719 CFLAGS=
3720 fi
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3723 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3724 if ${ac_cv_prog_cc_c89+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 ac_cv_prog_cc_c89=no
3728 ac_save_CC=$CC
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <stdarg.h>
3732 #include <stdio.h>
3733 struct stat;
3734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3735 struct buf { int x; };
3736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737 static char *e (p, i)
3738 char **p;
3739 int i;
3740 {
3741 return p[i];
3742 }
3743 static char *f (char * (*g) (char **, int), char **p, ...)
3744 {
3745 char *s;
3746 va_list v;
3747 va_start (v,p);
3748 s = g (p, va_arg (v,int));
3749 va_end (v);
3750 return s;
3751 }
3752
3753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3754 function prototypes and stuff, but not '\xHH' hex character constants.
3755 These don't provoke an error unfortunately, instead are silently treated
3756 as 'x'. The following induces an error, until -std is added to get
3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3758 array size at least. It's necessary to write '\x00'==0 to get something
3759 that's true only with -std. */
3760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761
3762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3763 inside strings and character constants. */
3764 #define FOO(x) 'x'
3765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3766
3767 int test (int i, double x);
3768 struct s1 {int (*f) (int a);};
3769 struct s2 {int (*f) (double a);};
3770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771 int argc;
3772 char **argv;
3773 int
3774 main ()
3775 {
3776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783 do
3784 CC="$ac_save_CC $ac_arg"
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_c89=$ac_arg
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext
3789 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 done
3791 rm -f conftest.$ac_ext
3792 CC=$ac_save_CC
3793
3794 fi
3795 # AC_CACHE_VAL
3796 case "x$ac_cv_prog_cc_c89" in
3797 x)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3799 $as_echo "none needed" >&6; } ;;
3800 xno)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802 $as_echo "unsupported" >&6; } ;;
3803 *)
3804 CC="$CC $ac_cv_prog_cc_c89"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 esac
3808 if test "x$ac_cv_prog_cc_c89" != xno; then :
3809
3810 fi
3811
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817
3818 ac_ext=c
3819 ac_cpp='$CPP $CPPFLAGS'
3820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3824 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3825 if ${am_cv_prog_cc_c_o+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 # Make sure it works both with $CC and with simple cc.
3840 # Following AC_PROG_CC_C_O, we do the test twice because some
3841 # compilers refuse to overwrite an existing .o file with -o,
3842 # though they will create one.
3843 am_cv_prog_cc_c_o=yes
3844 for am_i in 1 2; do
3845 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3846 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } \
3850 && test -f conftest2.$ac_objext; then
3851 : OK
3852 else
3853 am_cv_prog_cc_c_o=no
3854 break
3855 fi
3856 done
3857 rm -f core conftest*
3858 unset am_i
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3861 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3862 if test "$am_cv_prog_cc_c_o" != yes; then
3863 # Losing compiler, so override with the script.
3864 # FIXME: It is wrong to rewrite CC.
3865 # But if we don't then we get into trouble of one sort or another.
3866 # A longer-term fix would be to have automake use am__CC in this case,
3867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3868 CC="$am_aux_dir/compile $CC"
3869 fi
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876
3877 depcc="$CC" am_compiler_list=
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3880 $as_echo_n "checking dependency style of $depcc... " >&6; }
3881 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3885 # We make a subdir and do the tests there. Otherwise we can end up
3886 # making bogus files that we don't know about and never remove. For
3887 # instance it was reported that on HP-UX the gcc test will end up
3888 # making a dummy file named 'D' -- because '-MD' means "put the output
3889 # in D".
3890 rm -rf conftest.dir
3891 mkdir conftest.dir
3892 # Copy depcomp to subdir because otherwise we won't find it if we're
3893 # using a relative directory.
3894 cp "$am_depcomp" conftest.dir
3895 cd conftest.dir
3896 # We will build objects and dependencies in a subdirectory because
3897 # it helps to detect inapplicable dependency modes. For instance
3898 # both Tru64's cc and ICC support -MD to output dependencies as a
3899 # side effect of compilation, but ICC will put the dependencies in
3900 # the current directory while Tru64 will put them in the object
3901 # directory.
3902 mkdir sub
3903
3904 am_cv_CC_dependencies_compiler_type=none
3905 if test "$am_compiler_list" = ""; then
3906 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3907 fi
3908 am__universal=false
3909 case " $depcc " in #(
3910 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3911 esac
3912
3913 for depmode in $am_compiler_list; do
3914 # Setup a source with many dependencies, because some compilers
3915 # like to wrap large dependency lists on column 80 (with \), and
3916 # we should not choose a depcomp mode which is confused by this.
3917 #
3918 # We need to recreate these files for each test, as the compiler may
3919 # overwrite some of them when testing with obscure command lines.
3920 # This happens at least with the AIX C compiler.
3921 : > sub/conftest.c
3922 for i in 1 2 3 4 5 6; do
3923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3924 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3925 # Solaris 10 /bin/sh.
3926 echo '/* dummy */' > sub/conftst$i.h
3927 done
3928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3929
3930 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3931 # mode. It turns out that the SunPro C++ compiler does not properly
3932 # handle '-M -o', and we need to detect this. Also, some Intel
3933 # versions had trouble with output in subdirs.
3934 am__obj=sub/conftest.${OBJEXT-o}
3935 am__minus_obj="-o $am__obj"
3936 case $depmode in
3937 gcc)
3938 # This depmode causes a compiler race in universal mode.
3939 test "$am__universal" = false || continue
3940 ;;
3941 nosideeffect)
3942 # After this tag, mechanisms are not by side-effect, so they'll
3943 # only be used when explicitly requested.
3944 if test "x$enable_dependency_tracking" = xyes; then
3945 continue
3946 else
3947 break
3948 fi
3949 ;;
3950 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3951 # This compiler won't grok '-c -o', but also, the minuso test has
3952 # not run yet. These depmodes are late enough in the game, and
3953 # so weak that their functioning should not be impacted.
3954 am__obj=conftest.${OBJEXT-o}
3955 am__minus_obj=
3956 ;;
3957 none) break ;;
3958 esac
3959 if depmode=$depmode \
3960 source=sub/conftest.c object=$am__obj \
3961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3962 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3963 >/dev/null 2>conftest.err &&
3964 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3966 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3968 # icc doesn't choke on unknown options, it will just issue warnings
3969 # or remarks (even with -Werror). So we grep stderr for any message
3970 # that says an option was ignored or not supported.
3971 # When given -MP, icc 7.0 and 7.1 complain thusly:
3972 # icc: Command line warning: ignoring option '-M'; no argument required
3973 # The diagnosis changed in icc 8.0:
3974 # icc: Command line remark: option '-MP' not supported
3975 if (grep 'ignoring option' conftest.err ||
3976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3977 am_cv_CC_dependencies_compiler_type=$depmode
3978 break
3979 fi
3980 fi
3981 done
3982
3983 cd ..
3984 rm -rf conftest.dir
3985 else
3986 am_cv_CC_dependencies_compiler_type=none
3987 fi
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3991 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3992 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3993
3994 if
3995 test "x$enable_dependency_tracking" != xno \
3996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3997 am__fastdepCC_TRUE=
3998 am__fastdepCC_FALSE='#'
3999 else
4000 am__fastdepCC_TRUE='#'
4001 am__fastdepCC_FALSE=
4002 fi
4003
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4006 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4007 if ${ac_cv_prog_cc_c99+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_cv_prog_cc_c99=no
4011 ac_save_CC=$CC
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4014 #include <stdarg.h>
4015 #include <stdbool.h>
4016 #include <stdlib.h>
4017 #include <wchar.h>
4018 #include <stdio.h>
4019
4020 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4021 #define debug(...) fprintf (stderr, __VA_ARGS__)
4022 #define showlist(...) puts (#__VA_ARGS__)
4023 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4024 static void
4025 test_varargs_macros (void)
4026 {
4027 int x = 1234;
4028 int y = 5678;
4029 debug ("Flag");
4030 debug ("X = %d\n", x);
4031 showlist (The first, second, and third items.);
4032 report (x>y, "x is %d but y is %d", x, y);
4033 }
4034
4035 // Check long long types.
4036 #define BIG64 18446744073709551615ull
4037 #define BIG32 4294967295ul
4038 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4039 #if !BIG_OK
4040 your preprocessor is broken;
4041 #endif
4042 #if BIG_OK
4043 #else
4044 your preprocessor is broken;
4045 #endif
4046 static long long int bignum = -9223372036854775807LL;
4047 static unsigned long long int ubignum = BIG64;
4048
4049 struct incomplete_array
4050 {
4051 int datasize;
4052 double data[];
4053 };
4054
4055 struct named_init {
4056 int number;
4057 const wchar_t *name;
4058 double average;
4059 };
4060
4061 typedef const char *ccp;
4062
4063 static inline int
4064 test_restrict (ccp restrict text)
4065 {
4066 // See if C++-style comments work.
4067 // Iterate through items via the restricted pointer.
4068 // Also check for declarations in for loops.
4069 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4070 continue;
4071 return 0;
4072 }
4073
4074 // Check varargs and va_copy.
4075 static void
4076 test_varargs (const char *format, ...)
4077 {
4078 va_list args;
4079 va_start (args, format);
4080 va_list args_copy;
4081 va_copy (args_copy, args);
4082
4083 const char *str;
4084 int number;
4085 float fnumber;
4086
4087 while (*format)
4088 {
4089 switch (*format++)
4090 {
4091 case 's': // string
4092 str = va_arg (args_copy, const char *);
4093 break;
4094 case 'd': // int
4095 number = va_arg (args_copy, int);
4096 break;
4097 case 'f': // float
4098 fnumber = va_arg (args_copy, double);
4099 break;
4100 default:
4101 break;
4102 }
4103 }
4104 va_end (args_copy);
4105 va_end (args);
4106 }
4107
4108 int
4109 main ()
4110 {
4111
4112 // Check bool.
4113 _Bool success = false;
4114
4115 // Check restrict.
4116 if (test_restrict ("String literal") == 0)
4117 success = true;
4118 char *restrict newvar = "Another string";
4119
4120 // Check varargs.
4121 test_varargs ("s, d' f .", "string", 65, 34.234);
4122 test_varargs_macros ();
4123
4124 // Check flexible array members.
4125 struct incomplete_array *ia =
4126 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4127 ia->datasize = 10;
4128 for (int i = 0; i < ia->datasize; ++i)
4129 ia->data[i] = i * 1.234;
4130
4131 // Check named initializers.
4132 struct named_init ni = {
4133 .number = 34,
4134 .name = L"Test wide string",
4135 .average = 543.34343,
4136 };
4137
4138 ni.number = 58;
4139
4140 int dynamic_array[ni.number];
4141 dynamic_array[ni.number - 1] = 543;
4142
4143 // work around unused variable warnings
4144 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4145 || dynamic_array[ni.number - 1] != 543);
4146
4147 ;
4148 return 0;
4149 }
4150 _ACEOF
4151 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4152 do
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_prog_cc_c99=$ac_arg
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext
4158 test "x$ac_cv_prog_cc_c99" != "xno" && break
4159 done
4160 rm -f conftest.$ac_ext
4161 CC=$ac_save_CC
4162
4163 fi
4164 # AC_CACHE_VAL
4165 case "x$ac_cv_prog_cc_c99" in
4166 x)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4168 $as_echo "none needed" >&6; } ;;
4169 xno)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4171 $as_echo "unsupported" >&6; } ;;
4172 *)
4173 CC="$CC $ac_cv_prog_cc_c99"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4175 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4176 esac
4177 if test "x$ac_cv_prog_cc_c99" != xno; then :
4178
4179 fi
4180
4181
4182
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4190 # On Suns, sometimes $CPP names a directory.
4191 if test -n "$CPP" && test -d "$CPP"; then
4192 CPP=
4193 fi
4194 if test -z "$CPP"; then
4195 if ${ac_cv_prog_CPP+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 # Double quotes because CPP needs to be expanded
4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200 do
4201 ac_preproc_ok=false
4202 for ac_c_preproc_warn_flag in '' yes
4203 do
4204 # Use a header file that comes with gcc, so configuring glibc
4205 # with a fresh cross-compiler works.
4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 # <limits.h> exists even on freestanding compilers.
4208 # On the NeXT, cc -E runs the code through the compiler's parser,
4209 # not just through cpp. "Syntax error" is here to catch this case.
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 #ifdef __STDC__
4213 # include <limits.h>
4214 #else
4215 # include <assert.h>
4216 #endif
4217 Syntax error
4218 _ACEOF
4219 if ac_fn_c_try_cpp "$LINENO"; then :
4220
4221 else
4222 # Broken: fails on valid input.
4223 continue
4224 fi
4225 rm -f conftest.err conftest.i conftest.$ac_ext
4226
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <ac_nonexistent.h>
4232 _ACEOF
4233 if ac_fn_c_try_cpp "$LINENO"; then :
4234 # Broken: success on invalid input.
4235 continue
4236 else
4237 # Passes both tests.
4238 ac_preproc_ok=:
4239 break
4240 fi
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.i conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then :
4247 break
4248 fi
4249
4250 done
4251 ac_cv_prog_CPP=$CPP
4252
4253 fi
4254 CPP=$ac_cv_prog_CPP
4255 else
4256 ac_cv_prog_CPP=$CPP
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4259 $as_echo "$CPP" >&6; }
4260 ac_preproc_ok=false
4261 for ac_c_preproc_warn_flag in '' yes
4262 do
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #ifdef __STDC__
4272 # include <limits.h>
4273 #else
4274 # include <assert.h>
4275 #endif
4276 Syntax error
4277 _ACEOF
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279
4280 else
4281 # Broken: fails on valid input.
4282 continue
4283 fi
4284 rm -f conftest.err conftest.i conftest.$ac_ext
4285
4286 # OK, works on sane cases. Now check whether nonexistent headers
4287 # can be detected and how.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <ac_nonexistent.h>
4291 _ACEOF
4292 if ac_fn_c_try_cpp "$LINENO"; then :
4293 # Broken: success on invalid input.
4294 continue
4295 else
4296 # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4299 fi
4300 rm -f conftest.err conftest.i conftest.$ac_ext
4301
4302 done
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.i conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then :
4306
4307 else
4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4311 See \`config.log' for more details" "$LINENO" 5; }
4312 fi
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323 if ${ac_cv_path_GREP+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -z "$GREP"; then
4327 ac_path_GREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in grep ggrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337 as_fn_executable_p "$ac_path_GREP" || continue
4338 # Check for GNU ac_path_GREP and select it if it is found.
4339 # Check for GNU $ac_path_GREP
4340 case `"$ac_path_GREP" --version 2>&1` in
4341 *GNU*)
4342 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343 *)
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'GREP' >> "conftest.nl"
4352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 as_fn_arith $ac_count + 1 && ac_count=$as_val
4355 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_GREP="$ac_path_GREP"
4358 ac_path_GREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4365
4366 $ac_path_GREP_found && break 3
4367 done
4368 done
4369 done
4370 IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_GREP"; then
4372 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373 fi
4374 else
4375 ac_cv_path_GREP=$GREP
4376 fi
4377
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380 $as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4382
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385 $as_echo_n "checking for egrep... " >&6; }
4386 if ${ac_cv_path_EGREP+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390 then ac_cv_path_EGREP="$GREP -E"
4391 else
4392 if test -z "$EGREP"; then
4393 ac_path_EGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in egrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_EGREP" || continue
4404 # Check for GNU ac_path_EGREP and select it if it is found.
4405 # Check for GNU $ac_path_EGREP
4406 case `"$ac_path_EGREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'EGREP' >> "conftest.nl"
4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP="$ac_path_EGREP"
4424 ac_path_EGREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_EGREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_EGREP"; then
4438 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 fi
4440 else
4441 ac_cv_path_EGREP=$EGREP
4442 fi
4443
4444 fi
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447 $as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4452 $as_echo_n "checking for ANSI C header files... " >&6; }
4453 if ${ac_cv_header_stdc+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <stdlib.h>
4459 #include <stdarg.h>
4460 #include <string.h>
4461 #include <float.h>
4462
4463 int
4464 main ()
4465 {
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_cv_header_stdc=yes
4473 else
4474 ac_cv_header_stdc=no
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477
4478 if test $ac_cv_header_stdc = yes; then
4479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <string.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <stdlib.h>
4500
4501 _ACEOF
4502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503 $EGREP "free" >/dev/null 2>&1; then :
4504
4505 else
4506 ac_cv_header_stdc=no
4507 fi
4508 rm -f conftest*
4509
4510 fi
4511
4512 if test $ac_cv_header_stdc = yes; then
4513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4514 if test "$cross_compiling" = yes; then :
4515 :
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <ctype.h>
4520 #include <stdlib.h>
4521 #if ((' ' & 0x0FF) == 0x020)
4522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4524 #else
4525 # define ISLOWER(c) \
4526 (('a' <= (c) && (c) <= 'i') \
4527 || ('j' <= (c) && (c) <= 'r') \
4528 || ('s' <= (c) && (c) <= 'z'))
4529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530 #endif
4531
4532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533 int
4534 main ()
4535 {
4536 int i;
4537 for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i))
4539 || toupper (i) != TOUPPER (i))
4540 return 2;
4541 return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_run "$LINENO"; then :
4545
4546 else
4547 ac_cv_header_stdc=no
4548 fi
4549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4550 conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 fi
4552
4553 fi
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4556 $as_echo "$ac_cv_header_stdc" >&6; }
4557 if test $ac_cv_header_stdc = yes; then
4558
4559 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4560
4561 fi
4562
4563 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565 inttypes.h stdint.h unistd.h
4566 do :
4567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4569 "
4570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4571 cat >>confdefs.h <<_ACEOF
4572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4574
4575 fi
4576
4577 done
4578
4579
4580
4581
4582
4583
4584 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4585 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4586 CLANGCC="yes"
4587 else
4588 CLANGCC="no"
4589 fi
4590
4591 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4592 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4593 INTELCC="yes"
4594 else
4595 INTELCC="no"
4596 fi
4597
4598 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4599 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4600 SUNCC="yes"
4601 else
4602 SUNCC="no"
4603 fi
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 case $PKG_CONFIG in
4623 [\\/]* | ?:[\\/]*)
4624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4625 ;;
4626 *)
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 ;;
4643 esac
4644 fi
4645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4646 if test -n "$PKG_CONFIG"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4648 $as_echo "$PKG_CONFIG" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_path_PKG_CONFIG"; then
4657 ac_pt_PKG_CONFIG=$PKG_CONFIG
4658 # Extract the first word of "pkg-config", so it can be a program name with args.
4659 set dummy pkg-config; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 case $ac_pt_PKG_CONFIG in
4666 [\\/]* | ?:[\\/]*)
4667 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4668 ;;
4669 *)
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 ;;
4686 esac
4687 fi
4688 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4689 if test -n "$ac_pt_PKG_CONFIG"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4691 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697 if test "x$ac_pt_PKG_CONFIG" = x; then
4698 PKG_CONFIG=""
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned=yes ;;
4705 esac
4706 PKG_CONFIG=$ac_pt_PKG_CONFIG
4707 fi
4708 else
4709 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4710 fi
4711
4712 fi
4713 if test -n "$PKG_CONFIG"; then
4714 _pkg_min_version=0.9.0
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4716 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4717 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719 $as_echo "yes" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 PKG_CONFIG=""
4724 fi
4725 fi
4726 # Make sure we can run config.sub.
4727 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4728 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4731 $as_echo_n "checking build system type... " >&6; }
4732 if ${ac_cv_build+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_build_alias=$build_alias
4736 test "x$ac_build_alias" = x &&
4737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4738 test "x$ac_build_alias" = x &&
4739 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4745 $as_echo "$ac_cv_build" >&6; }
4746 case $ac_cv_build in
4747 *-*-*) ;;
4748 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4749 esac
4750 build=$ac_cv_build
4751 ac_save_IFS=$IFS; IFS='-'
4752 set x $ac_cv_build
4753 shift
4754 build_cpu=$1
4755 build_vendor=$2
4756 shift; shift
4757 # Remember, the first character of IFS is used to create $*,
4758 # except with old shells:
4759 build_os=$*
4760 IFS=$ac_save_IFS
4761 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4762
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4765 $as_echo_n "checking host system type... " >&6; }
4766 if ${ac_cv_host+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test "x$host_alias" = x; then
4770 ac_cv_host=$ac_cv_build
4771 else
4772 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4774 fi
4775
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4778 $as_echo "$ac_cv_host" >&6; }
4779 case $ac_cv_host in
4780 *-*-*) ;;
4781 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4782 esac
4783 host=$ac_cv_host
4784 ac_save_IFS=$IFS; IFS='-'
4785 set x $ac_cv_host
4786 shift
4787 host_cpu=$1
4788 host_vendor=$2
4789 shift; shift
4790 # Remember, the first character of IFS is used to create $*,
4791 # except with old shells:
4792 host_os=$*
4793 IFS=$ac_save_IFS
4794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4798 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4799 if ${ac_cv_path_SED+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4803 for ac_i in 1 2 3 4 5 6 7; do
4804 ac_script="$ac_script$as_nl$ac_script"
4805 done
4806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4807 { ac_script=; unset ac_script;}
4808 if test -z "$SED"; then
4809 ac_path_SED_found=false
4810 # Loop through the user's path and test for each of PROGNAME-LIST
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_prog in sed gsed; do
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4819 as_fn_executable_p "$ac_path_SED" || continue
4820 # Check for GNU ac_path_SED and select it if it is found.
4821 # Check for GNU $ac_path_SED
4822 case `"$ac_path_SED" --version 2>&1` in
4823 *GNU*)
4824 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4825 *)
4826 ac_count=0
4827 $as_echo_n 0123456789 >"conftest.in"
4828 while :
4829 do
4830 cat "conftest.in" "conftest.in" >"conftest.tmp"
4831 mv "conftest.tmp" "conftest.in"
4832 cp "conftest.in" "conftest.nl"
4833 $as_echo '' >> "conftest.nl"
4834 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836 as_fn_arith $ac_count + 1 && ac_count=$as_val
4837 if test $ac_count -gt ${ac_path_SED_max-0}; then
4838 # Best one so far, save it but keep looking for a better one
4839 ac_cv_path_SED="$ac_path_SED"
4840 ac_path_SED_max=$ac_count
4841 fi
4842 # 10*(2^10) chars as input seems more than enough
4843 test $ac_count -gt 10 && break
4844 done
4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847
4848 $ac_path_SED_found && break 3
4849 done
4850 done
4851 done
4852 IFS=$as_save_IFS
4853 if test -z "$ac_cv_path_SED"; then
4854 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4855 fi
4856 else
4857 ac_cv_path_SED=$SED
4858 fi
4859
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4862 $as_echo "$ac_cv_path_SED" >&6; }
4863 SED="$ac_cv_path_SED"
4864 rm -f conftest.sed
4865
4866
4867
4868
4869
4870
4871 # Check whether --enable-selective-werror was given.
4872 if test "${enable_selective_werror+set}" = set; then :
4873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874 else
4875 SELECTIVE_WERROR=yes
4876 fi
4877
4878
4879
4880
4881
4882 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4883 if test "x$SUNCC" = "xyes"; then
4884 BASE_CFLAGS="-v"
4885 else
4886 BASE_CFLAGS=""
4887 fi
4888
4889 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 int i;
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 xorg_cv_cc_flag_unknown_warning_option=yes
4918 else
4919 xorg_cv_cc_flag_unknown_warning_option=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4924 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4926 CFLAGS="$xorg_testset_save_CFLAGS"
4927 fi
4928
4929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932 fi
4933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4935 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4936 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941 int i;
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 xorg_cv_cc_flag_unused_command_line_argument=yes
4945 else
4946 xorg_cv_cc_flag_unused_command_line_argument=no
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4951 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4953 CFLAGS="$xorg_testset_save_CFLAGS"
4954 fi
4955
4956 found="no"
4957
4958 if test $found = "no" ; then
4959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4961 fi
4962
4963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4965 fi
4966
4967 CFLAGS="$CFLAGS -Wall"
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4970 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4971 cacheid=xorg_cv_cc_flag__Wall
4972 if eval \${$cacheid+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 int i;
4978 int
4979 main ()
4980 {
4981
4982 ;
4983 return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_c_try_link "$LINENO"; then :
4987 eval $cacheid=yes
4988 else
4989 eval $cacheid=no
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext \
4992 conftest$ac_exeext conftest.$ac_ext
4993 fi
4994
4995
4996 CFLAGS="$xorg_testset_save_CFLAGS"
4997
4998 eval supported=\$$cacheid
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5000 $as_echo "$supported" >&6; }
5001 if test "$supported" = "yes" ; then
5002 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5003 found="yes"
5004 fi
5005 fi
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 xorg_testset_save_CFLAGS="$CFLAGS"
5022
5023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 int i;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 xorg_cv_cc_flag_unknown_warning_option=yes
5036 else
5037 xorg_cv_cc_flag_unknown_warning_option=no
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5044 CFLAGS="$xorg_testset_save_CFLAGS"
5045 fi
5046
5047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 fi
5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 int i;
5060 _ACEOF
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 xorg_cv_cc_flag_unused_command_line_argument=yes
5063 else
5064 xorg_cv_cc_flag_unused_command_line_argument=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072 fi
5073
5074 found="no"
5075
5076 if test $found = "no" ; then
5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079 fi
5080
5081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083 fi
5084
5085 CFLAGS="$CFLAGS -Wpointer-arith"
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5088 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5089 cacheid=xorg_cv_cc_flag__Wpointer_arith
5090 if eval \${$cacheid+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 int i;
5096 int
5097 main ()
5098 {
5099
5100 ;
5101 return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_link "$LINENO"; then :
5105 eval $cacheid=yes
5106 else
5107 eval $cacheid=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext \
5110 conftest$ac_exeext conftest.$ac_ext
5111 fi
5112
5113
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115
5116 eval supported=\$$cacheid
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5118 $as_echo "$supported" >&6; }
5119 if test "$supported" = "yes" ; then
5120 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5121 found="yes"
5122 fi
5123 fi
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 xorg_testset_save_CFLAGS="$CFLAGS"
5140
5141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 int i;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 xorg_cv_cc_flag_unknown_warning_option=yes
5154 else
5155 xorg_cv_cc_flag_unknown_warning_option=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5162 CFLAGS="$xorg_testset_save_CFLAGS"
5163 fi
5164
5165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 fi
5169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 int i;
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 xorg_cv_cc_flag_unused_command_line_argument=yes
5181 else
5182 xorg_cv_cc_flag_unused_command_line_argument=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190 fi
5191
5192 found="no"
5193
5194 if test $found = "no" ; then
5195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5197 fi
5198
5199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201 fi
5202
5203 CFLAGS="$CFLAGS -Wmissing-declarations"
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5206 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5207 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5208 if eval \${$cacheid+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 int i;
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_link "$LINENO"; then :
5223 eval $cacheid=yes
5224 else
5225 eval $cacheid=no
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5229 fi
5230
5231
5232 CFLAGS="$xorg_testset_save_CFLAGS"
5233
5234 eval supported=\$$cacheid
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5236 $as_echo "$supported" >&6; }
5237 if test "$supported" = "yes" ; then
5238 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5239 found="yes"
5240 fi
5241 fi
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 xorg_testset_save_CFLAGS="$CFLAGS"
5258
5259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 int i;
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 xorg_cv_cc_flag_unknown_warning_option=yes
5272 else
5273 xorg_cv_cc_flag_unknown_warning_option=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5280 CFLAGS="$xorg_testset_save_CFLAGS"
5281 fi
5282
5283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 fi
5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 int i;
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 xorg_cv_cc_flag_unused_command_line_argument=yes
5299 else
5300 xorg_cv_cc_flag_unused_command_line_argument=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 found="no"
5311
5312 if test $found = "no" ; then
5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315 fi
5316
5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319 fi
5320
5321 CFLAGS="$CFLAGS -Wformat=2"
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5324 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5325 cacheid=xorg_cv_cc_flag__Wformat_2
5326 if eval \${$cacheid+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 int i;
5332 int
5333 main ()
5334 {
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_link "$LINENO"; then :
5341 eval $cacheid=yes
5342 else
5343 eval $cacheid=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext \
5346 conftest$ac_exeext conftest.$ac_ext
5347 fi
5348
5349
5350 CFLAGS="$xorg_testset_save_CFLAGS"
5351
5352 eval supported=\$$cacheid
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5354 $as_echo "$supported" >&6; }
5355 if test "$supported" = "yes" ; then
5356 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5357 found="yes"
5358 fi
5359 fi
5360
5361 if test $found = "no" ; then
5362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5364 fi
5365
5366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5368 fi
5369
5370 CFLAGS="$CFLAGS -Wformat"
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5373 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5374 cacheid=xorg_cv_cc_flag__Wformat
5375 if eval \${$cacheid+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 int i;
5381 int
5382 main ()
5383 {
5384
5385 ;
5386 return 0;
5387 }
5388 _ACEOF
5389 if ac_fn_c_try_link "$LINENO"; then :
5390 eval $cacheid=yes
5391 else
5392 eval $cacheid=no
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396 fi
5397
5398
5399 CFLAGS="$xorg_testset_save_CFLAGS"
5400
5401 eval supported=\$$cacheid
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5403 $as_echo "$supported" >&6; }
5404 if test "$supported" = "yes" ; then
5405 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5406 found="yes"
5407 fi
5408 fi
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 int i;
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 xorg_cv_cc_flag_unknown_warning_option=yes
5441 else
5442 xorg_cv_cc_flag_unknown_warning_option=no
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449 CFLAGS="$xorg_testset_save_CFLAGS"
5450 fi
5451
5452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 fi
5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 int i;
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"; then :
5467 xorg_cv_cc_flag_unused_command_line_argument=yes
5468 else
5469 xorg_cv_cc_flag_unused_command_line_argument=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477 fi
5478
5479 found="no"
5480
5481 if test $found = "no" ; then
5482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5484 fi
5485
5486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5488 fi
5489
5490 CFLAGS="$CFLAGS -Wstrict-prototypes"
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5493 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5494 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5495 if eval \${$cacheid+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 int
5502 main ()
5503 {
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 eval $cacheid=yes
5511 else
5512 eval $cacheid=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 fi
5517
5518
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521 eval supported=\$$cacheid
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523 $as_echo "$supported" >&6; }
5524 if test "$supported" = "yes" ; then
5525 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5526 found="yes"
5527 fi
5528 fi
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 xorg_testset_save_CFLAGS="$CFLAGS"
5545
5546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 int i;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 xorg_cv_cc_flag_unknown_warning_option=yes
5559 else
5560 xorg_cv_cc_flag_unknown_warning_option=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5567 CFLAGS="$xorg_testset_save_CFLAGS"
5568 fi
5569
5570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 fi
5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 int i;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 xorg_cv_cc_flag_unused_command_line_argument=yes
5586 else
5587 xorg_cv_cc_flag_unused_command_line_argument=no
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5594 CFLAGS="$xorg_testset_save_CFLAGS"
5595 fi
5596
5597 found="no"
5598
5599 if test $found = "no" ; then
5600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5602 fi
5603
5604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5606 fi
5607
5608 CFLAGS="$CFLAGS -Wmissing-prototypes"
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5611 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5612 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5613 if eval \${$cacheid+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 int i;
5619 int
5620 main ()
5621 {
5622
5623 ;
5624 return 0;
5625 }
5626 _ACEOF
5627 if ac_fn_c_try_link "$LINENO"; then :
5628 eval $cacheid=yes
5629 else
5630 eval $cacheid=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext \
5633 conftest$ac_exeext conftest.$ac_ext
5634 fi
5635
5636
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638
5639 eval supported=\$$cacheid
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5641 $as_echo "$supported" >&6; }
5642 if test "$supported" = "yes" ; then
5643 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5644 found="yes"
5645 fi
5646 fi
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 xorg_testset_save_CFLAGS="$CFLAGS"
5663
5664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 int i;
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676 xorg_cv_cc_flag_unknown_warning_option=yes
5677 else
5678 xorg_cv_cc_flag_unknown_warning_option=no
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5685 CFLAGS="$xorg_testset_save_CFLAGS"
5686 fi
5687
5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691 fi
5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 int i;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 xorg_cv_cc_flag_unused_command_line_argument=yes
5704 else
5705 xorg_cv_cc_flag_unused_command_line_argument=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5712 CFLAGS="$xorg_testset_save_CFLAGS"
5713 fi
5714
5715 found="no"
5716
5717 if test $found = "no" ; then
5718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5720 fi
5721
5722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5724 fi
5725
5726 CFLAGS="$CFLAGS -Wnested-externs"
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5729 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5730 cacheid=xorg_cv_cc_flag__Wnested_externs
5731 if eval \${$cacheid+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 int i;
5737 int
5738 main ()
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_link "$LINENO"; then :
5746 eval $cacheid=yes
5747 else
5748 eval $cacheid=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 fi
5753
5754
5755 CFLAGS="$xorg_testset_save_CFLAGS"
5756
5757 eval supported=\$$cacheid
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5759 $as_echo "$supported" >&6; }
5760 if test "$supported" = "yes" ; then
5761 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5762 found="yes"
5763 fi
5764 fi
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780 xorg_testset_save_CFLAGS="$CFLAGS"
5781
5782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 int i;
5792 _ACEOF
5793 if ac_fn_c_try_compile "$LINENO"; then :
5794 xorg_cv_cc_flag_unknown_warning_option=yes
5795 else
5796 xorg_cv_cc_flag_unknown_warning_option=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5803 CFLAGS="$xorg_testset_save_CFLAGS"
5804 fi
5805
5806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809 fi
5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 int i;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821 xorg_cv_cc_flag_unused_command_line_argument=yes
5822 else
5823 xorg_cv_cc_flag_unused_command_line_argument=no
5824 fi
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831 fi
5832
5833 found="no"
5834
5835 if test $found = "no" ; then
5836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5838 fi
5839
5840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5842 fi
5843
5844 CFLAGS="$CFLAGS -Wbad-function-cast"
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5847 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5848 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5849 if eval \${$cacheid+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 int i;
5855 int
5856 main ()
5857 {
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 if ac_fn_c_try_link "$LINENO"; then :
5864 eval $cacheid=yes
5865 else
5866 eval $cacheid=no
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
5870 fi
5871
5872
5873 CFLAGS="$xorg_testset_save_CFLAGS"
5874
5875 eval supported=\$$cacheid
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5877 $as_echo "$supported" >&6; }
5878 if test "$supported" = "yes" ; then
5879 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5880 found="yes"
5881 fi
5882 fi
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 xorg_testset_save_CFLAGS="$CFLAGS"
5899
5900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int i;
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"; then :
5912 xorg_cv_cc_flag_unknown_warning_option=yes
5913 else
5914 xorg_cv_cc_flag_unknown_warning_option=no
5915 fi
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5921 CFLAGS="$xorg_testset_save_CFLAGS"
5922 fi
5923
5924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5927 fi
5928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 int i;
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939 xorg_cv_cc_flag_unused_command_line_argument=yes
5940 else
5941 xorg_cv_cc_flag_unused_command_line_argument=no
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949 fi
5950
5951 found="no"
5952
5953 if test $found = "no" ; then
5954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5956 fi
5957
5958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5960 fi
5961
5962 CFLAGS="$CFLAGS -Wold-style-definition"
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5965 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5966 cacheid=xorg_cv_cc_flag__Wold_style_definition
5967 if eval \${$cacheid+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 int i;
5973 int
5974 main ()
5975 {
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"; then :
5982 eval $cacheid=yes
5983 else
5984 eval $cacheid=no
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext \
5987 conftest$ac_exeext conftest.$ac_ext
5988 fi
5989
5990
5991 CFLAGS="$xorg_testset_save_CFLAGS"
5992
5993 eval supported=\$$cacheid
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5995 $as_echo "$supported" >&6; }
5996 if test "$supported" = "yes" ; then
5997 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5998 found="yes"
5999 fi
6000 fi
6001
6002 if test $found = "no" ; then
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 fi
6010
6011 CFLAGS="$CFLAGS -fd"
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6014 $as_echo_n "checking if $CC supports -fd... " >&6; }
6015 cacheid=xorg_cv_cc_flag__fd
6016 if eval \${$cacheid+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 int
6023 main ()
6024 {
6025
6026 ;
6027 return 0;
6028 }
6029 _ACEOF
6030 if ac_fn_c_try_link "$LINENO"; then :
6031 eval $cacheid=yes
6032 else
6033 eval $cacheid=no
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 fi
6038
6039
6040 CFLAGS="$xorg_testset_save_CFLAGS"
6041
6042 eval supported=\$$cacheid
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044 $as_echo "$supported" >&6; }
6045 if test "$supported" = "yes" ; then
6046 BASE_CFLAGS="$BASE_CFLAGS -fd"
6047 found="yes"
6048 fi
6049 fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 xorg_testset_save_CFLAGS="$CFLAGS"
6066
6067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 int i;
6077 _ACEOF
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 xorg_cv_cc_flag_unknown_warning_option=yes
6080 else
6081 xorg_cv_cc_flag_unknown_warning_option=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6088 CFLAGS="$xorg_testset_save_CFLAGS"
6089 fi
6090
6091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 fi
6095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 int i;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106 xorg_cv_cc_flag_unused_command_line_argument=yes
6107 else
6108 xorg_cv_cc_flag_unused_command_line_argument=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6115 CFLAGS="$xorg_testset_save_CFLAGS"
6116 fi
6117
6118 found="no"
6119
6120 if test $found = "no" ; then
6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123 fi
6124
6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6127 fi
6128
6129 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6132 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6133 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6134 if eval \${$cacheid+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 int i;
6140 int
6141 main ()
6142 {
6143
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 eval $cacheid=yes
6150 else
6151 eval $cacheid=no
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6155 fi
6156
6157
6158 CFLAGS="$xorg_testset_save_CFLAGS"
6159
6160 eval supported=\$$cacheid
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6162 $as_echo "$supported" >&6; }
6163 if test "$supported" = "yes" ; then
6164 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6165 found="yes"
6166 fi
6167 fi
6168
6169
6170
6171
6172
6173 # This chunk adds additional warnings that could catch undesired effects.
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 xorg_testset_save_CFLAGS="$CFLAGS"
6188
6189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 int i;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 xorg_cv_cc_flag_unknown_warning_option=yes
6202 else
6203 xorg_cv_cc_flag_unknown_warning_option=no
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6210 CFLAGS="$xorg_testset_save_CFLAGS"
6211 fi
6212
6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 fi
6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 int i;
6226 _ACEOF
6227 if ac_fn_c_try_compile "$LINENO"; then :
6228 xorg_cv_cc_flag_unused_command_line_argument=yes
6229 else
6230 xorg_cv_cc_flag_unused_command_line_argument=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237 CFLAGS="$xorg_testset_save_CFLAGS"
6238 fi
6239
6240 found="no"
6241
6242 if test $found = "no" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246
6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249 fi
6250
6251 CFLAGS="$CFLAGS -Wunused"
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6254 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6255 cacheid=xorg_cv_cc_flag__Wunused
6256 if eval \${$cacheid+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 int i;
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_link "$LINENO"; then :
6271 eval $cacheid=yes
6272 else
6273 eval $cacheid=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277 fi
6278
6279
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6281
6282 eval supported=\$$cacheid
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6284 $as_echo "$supported" >&6; }
6285 if test "$supported" = "yes" ; then
6286 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6287 found="yes"
6288 fi
6289 fi
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 xorg_testset_save_CFLAGS="$CFLAGS"
6306
6307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 int i;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 xorg_cv_cc_flag_unknown_warning_option=yes
6320 else
6321 xorg_cv_cc_flag_unknown_warning_option=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6329 fi
6330
6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 int i;
6344 _ACEOF
6345 if ac_fn_c_try_compile "$LINENO"; then :
6346 xorg_cv_cc_flag_unused_command_line_argument=yes
6347 else
6348 xorg_cv_cc_flag_unused_command_line_argument=no
6349 fi
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6355 CFLAGS="$xorg_testset_save_CFLAGS"
6356 fi
6357
6358 found="no"
6359
6360 if test $found = "no" ; then
6361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363 fi
6364
6365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367 fi
6368
6369 CFLAGS="$CFLAGS -Wuninitialized"
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6372 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6373 cacheid=xorg_cv_cc_flag__Wuninitialized
6374 if eval \${$cacheid+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 int i;
6380 int
6381 main ()
6382 {
6383
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_link "$LINENO"; then :
6389 eval $cacheid=yes
6390 else
6391 eval $cacheid=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext conftest.$ac_ext
6395 fi
6396
6397
6398 CFLAGS="$xorg_testset_save_CFLAGS"
6399
6400 eval supported=\$$cacheid
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6402 $as_echo "$supported" >&6; }
6403 if test "$supported" = "yes" ; then
6404 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6405 found="yes"
6406 fi
6407 fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 xorg_testset_save_CFLAGS="$CFLAGS"
6424
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 int i;
6435 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437 xorg_cv_cc_flag_unknown_warning_option=yes
6438 else
6439 xorg_cv_cc_flag_unknown_warning_option=no
6440 fi
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6446 CFLAGS="$xorg_testset_save_CFLAGS"
6447 fi
6448
6449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 fi
6453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 int i;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 xorg_cv_cc_flag_unused_command_line_argument=yes
6465 else
6466 xorg_cv_cc_flag_unused_command_line_argument=no
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474 fi
6475
6476 found="no"
6477
6478 if test $found = "no" ; then
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 fi
6482
6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6485 fi
6486
6487 CFLAGS="$CFLAGS -Wshadow"
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6490 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6491 cacheid=xorg_cv_cc_flag__Wshadow
6492 if eval \${$cacheid+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 int
6499 main ()
6500 {
6501
6502 ;
6503 return 0;
6504 }
6505 _ACEOF
6506 if ac_fn_c_try_link "$LINENO"; then :
6507 eval $cacheid=yes
6508 else
6509 eval $cacheid=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext \
6512 conftest$ac_exeext conftest.$ac_ext
6513 fi
6514
6515
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517
6518 eval supported=\$$cacheid
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6520 $as_echo "$supported" >&6; }
6521 if test "$supported" = "yes" ; then
6522 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6523 found="yes"
6524 fi
6525 fi
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 xorg_testset_save_CFLAGS="$CFLAGS"
6542
6543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 int i;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 xorg_cv_cc_flag_unknown_warning_option=yes
6556 else
6557 xorg_cv_cc_flag_unknown_warning_option=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6564 CFLAGS="$xorg_testset_save_CFLAGS"
6565 fi
6566
6567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570 fi
6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int i;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 xorg_cv_cc_flag_unused_command_line_argument=yes
6583 else
6584 xorg_cv_cc_flag_unused_command_line_argument=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6591 CFLAGS="$xorg_testset_save_CFLAGS"
6592 fi
6593
6594 found="no"
6595
6596 if test $found = "no" ; then
6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599 fi
6600
6601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603 fi
6604
6605 CFLAGS="$CFLAGS -Wmissing-noreturn"
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6608 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6609 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6610 if eval \${$cacheid+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int i;
6616 int
6617 main ()
6618 {
6619
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_link "$LINENO"; then :
6625 eval $cacheid=yes
6626 else
6627 eval $cacheid=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
6631 fi
6632
6633
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635
6636 eval supported=\$$cacheid
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6638 $as_echo "$supported" >&6; }
6639 if test "$supported" = "yes" ; then
6640 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6641 found="yes"
6642 fi
6643 fi
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659 xorg_testset_save_CFLAGS="$CFLAGS"
6660
6661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6664 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6665 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670 int i;
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673 xorg_cv_cc_flag_unknown_warning_option=yes
6674 else
6675 xorg_cv_cc_flag_unknown_warning_option=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 fi
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6680 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6683 fi
6684
6685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 fi
6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6691 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6692 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int i;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 xorg_cv_cc_flag_unused_command_line_argument=yes
6701 else
6702 xorg_cv_cc_flag_unused_command_line_argument=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6707 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6709 CFLAGS="$xorg_testset_save_CFLAGS"
6710 fi
6711
6712 found="no"
6713
6714 if test $found = "no" ; then
6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717 fi
6718
6719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6721 fi
6722
6723 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6726 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6727 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6728 if eval \${$cacheid+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 int i;
6734 int
6735 main ()
6736 {
6737
6738 ;
6739 return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_link "$LINENO"; then :
6743 eval $cacheid=yes
6744 else
6745 eval $cacheid=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext \
6748 conftest$ac_exeext conftest.$ac_ext
6749 fi
6750
6751
6752 CFLAGS="$xorg_testset_save_CFLAGS"
6753
6754 eval supported=\$$cacheid
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6756 $as_echo "$supported" >&6; }
6757 if test "$supported" = "yes" ; then
6758 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6759 found="yes"
6760 fi
6761 fi
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 xorg_testset_save_CFLAGS="$CFLAGS"
6778
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 xorg_cv_cc_flag_unknown_warning_option=yes
6792 else
6793 xorg_cv_cc_flag_unknown_warning_option=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6801 fi
6802
6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 int i;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 xorg_cv_cc_flag_unused_command_line_argument=yes
6819 else
6820 xorg_cv_cc_flag_unused_command_line_argument=no
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 found="no"
6831
6832 if test $found = "no" ; then
6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6835 fi
6836
6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839 fi
6840
6841 CFLAGS="$CFLAGS -Wredundant-decls"
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6844 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6845 cacheid=xorg_cv_cc_flag__Wredundant_decls
6846 if eval \${$cacheid+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 int i;
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_link "$LINENO"; then :
6861 eval $cacheid=yes
6862 else
6863 eval $cacheid=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 fi
6868
6869
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6871
6872 eval supported=\$$cacheid
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6874 $as_echo "$supported" >&6; }
6875 if test "$supported" = "yes" ; then
6876 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6877 found="yes"
6878 fi
6879 fi
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 xorg_testset_save_CFLAGS="$CFLAGS"
6896
6897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 int i;
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 xorg_cv_cc_flag_unknown_warning_option=yes
6910 else
6911 xorg_cv_cc_flag_unknown_warning_option=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6918 CFLAGS="$xorg_testset_save_CFLAGS"
6919 fi
6920
6921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 xorg_cv_cc_flag_unused_command_line_argument=yes
6937 else
6938 xorg_cv_cc_flag_unused_command_line_argument=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 found="no"
6949
6950 if test $found = "no" ; then
6951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6953 fi
6954
6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957 fi
6958
6959 CFLAGS="$CFLAGS -Wlogical-op"
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6962 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6963 cacheid=xorg_cv_cc_flag__Wlogical_op
6964 if eval \${$cacheid+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 int
6971 main ()
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"; then :
6979 eval $cacheid=yes
6980 else
6981 eval $cacheid=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 fi
6986
6987
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6989
6990 eval supported=\$$cacheid
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6992 $as_echo "$supported" >&6; }
6993 if test "$supported" = "yes" ; then
6994 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6995 found="yes"
6996 fi
6997 fi
6998
6999
7000
7001 # These are currently disabled because they are noisy. They will be enabled
7002 # in the future once the codebase is sufficiently modernized to silence
7003 # them. For now, I don't want them to drown out the other warnings.
7004 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7005 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7006 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7007
7008 # Turn some warnings into errors, so we don't accidently get successful builds
7009 # when there are problems that should be fixed.
7010
7011 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025 xorg_testset_save_CFLAGS="$CFLAGS"
7026
7027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int i;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 xorg_cv_cc_flag_unknown_warning_option=yes
7040 else
7041 xorg_cv_cc_flag_unknown_warning_option=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7048 CFLAGS="$xorg_testset_save_CFLAGS"
7049 fi
7050
7051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054 fi
7055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int i;
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"; then :
7066 xorg_cv_cc_flag_unused_command_line_argument=yes
7067 else
7068 xorg_cv_cc_flag_unused_command_line_argument=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7075 CFLAGS="$xorg_testset_save_CFLAGS"
7076 fi
7077
7078 found="no"
7079
7080 if test $found = "no" ; then
7081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7083 fi
7084
7085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7087 fi
7088
7089 CFLAGS="$CFLAGS -Werror=implicit"
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7092 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7093 cacheid=xorg_cv_cc_flag__Werror_implicit
7094 if eval \${$cacheid+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 int i;
7100 int
7101 main ()
7102 {
7103
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 eval $cacheid=yes
7110 else
7111 eval $cacheid=no
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 fi
7116
7117
7118 CFLAGS="$xorg_testset_save_CFLAGS"
7119
7120 eval supported=\$$cacheid
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7122 $as_echo "$supported" >&6; }
7123 if test "$supported" = "yes" ; then
7124 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7125 found="yes"
7126 fi
7127 fi
7128
7129 if test $found = "no" ; then
7130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132 fi
7133
7134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7136 fi
7137
7138 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7139
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7141 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7142 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7143 if eval \${$cacheid+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 int i;
7149 int
7150 main ()
7151 {
7152
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 if ac_fn_c_try_link "$LINENO"; then :
7158 eval $cacheid=yes
7159 else
7160 eval $cacheid=no
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext \
7163 conftest$ac_exeext conftest.$ac_ext
7164 fi
7165
7166
7167 CFLAGS="$xorg_testset_save_CFLAGS"
7168
7169 eval supported=\$$cacheid
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7171 $as_echo "$supported" >&6; }
7172 if test "$supported" = "yes" ; then
7173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7174 found="yes"
7175 fi
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192 xorg_testset_save_CFLAGS="$CFLAGS"
7193
7194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 int i;
7204 _ACEOF
7205 if ac_fn_c_try_compile "$LINENO"; then :
7206 xorg_cv_cc_flag_unknown_warning_option=yes
7207 else
7208 xorg_cv_cc_flag_unknown_warning_option=no
7209 fi
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7215 CFLAGS="$xorg_testset_save_CFLAGS"
7216 fi
7217
7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 fi
7222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 int i;
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 xorg_cv_cc_flag_unused_command_line_argument=yes
7234 else
7235 xorg_cv_cc_flag_unused_command_line_argument=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7242 CFLAGS="$xorg_testset_save_CFLAGS"
7243 fi
7244
7245 found="no"
7246
7247 if test $found = "no" ; then
7248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250 fi
7251
7252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7254 fi
7255
7256 CFLAGS="$CFLAGS -Werror=nonnull"
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7259 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7260 cacheid=xorg_cv_cc_flag__Werror_nonnull
7261 if eval \${$cacheid+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 int i;
7267 int
7268 main ()
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 eval $cacheid=yes
7277 else
7278 eval $cacheid=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 fi
7283
7284
7285 CFLAGS="$xorg_testset_save_CFLAGS"
7286
7287 eval supported=\$$cacheid
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7289 $as_echo "$supported" >&6; }
7290 if test "$supported" = "yes" ; then
7291 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7292 found="yes"
7293 fi
7294 fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 xorg_testset_save_CFLAGS="$CFLAGS"
7311
7312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 int i;
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324 xorg_cv_cc_flag_unknown_warning_option=yes
7325 else
7326 xorg_cv_cc_flag_unknown_warning_option=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7333 CFLAGS="$xorg_testset_save_CFLAGS"
7334 fi
7335
7336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 fi
7340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 int i;
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351 xorg_cv_cc_flag_unused_command_line_argument=yes
7352 else
7353 xorg_cv_cc_flag_unused_command_line_argument=no
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 fi
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360 CFLAGS="$xorg_testset_save_CFLAGS"
7361 fi
7362
7363 found="no"
7364
7365 if test $found = "no" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369
7370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372 fi
7373
7374 CFLAGS="$CFLAGS -Werror=init-self"
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7377 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7378 cacheid=xorg_cv_cc_flag__Werror_init_self
7379 if eval \${$cacheid+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 int i;
7385 int
7386 main ()
7387 {
7388
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 if ac_fn_c_try_link "$LINENO"; then :
7394 eval $cacheid=yes
7395 else
7396 eval $cacheid=no
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext \
7399 conftest$ac_exeext conftest.$ac_ext
7400 fi
7401
7402
7403 CFLAGS="$xorg_testset_save_CFLAGS"
7404
7405 eval supported=\$$cacheid
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7407 $as_echo "$supported" >&6; }
7408 if test "$supported" = "yes" ; then
7409 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7410 found="yes"
7411 fi
7412 fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428 xorg_testset_save_CFLAGS="$CFLAGS"
7429
7430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 int i;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 xorg_cv_cc_flag_unknown_warning_option=yes
7443 else
7444 xorg_cv_cc_flag_unknown_warning_option=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7451 CFLAGS="$xorg_testset_save_CFLAGS"
7452 fi
7453
7454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457 fi
7458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 int i;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 xorg_cv_cc_flag_unused_command_line_argument=yes
7470 else
7471 xorg_cv_cc_flag_unused_command_line_argument=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7478 CFLAGS="$xorg_testset_save_CFLAGS"
7479 fi
7480
7481 found="no"
7482
7483 if test $found = "no" ; then
7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486 fi
7487
7488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7490 fi
7491
7492 CFLAGS="$CFLAGS -Werror=main"
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7495 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7496 cacheid=xorg_cv_cc_flag__Werror_main
7497 if eval \${$cacheid+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 int i;
7503 int
7504 main ()
7505 {
7506
7507 ;
7508 return 0;
7509 }
7510 _ACEOF
7511 if ac_fn_c_try_link "$LINENO"; then :
7512 eval $cacheid=yes
7513 else
7514 eval $cacheid=no
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext \
7517 conftest$ac_exeext conftest.$ac_ext
7518 fi
7519
7520
7521 CFLAGS="$xorg_testset_save_CFLAGS"
7522
7523 eval supported=\$$cacheid
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7525 $as_echo "$supported" >&6; }
7526 if test "$supported" = "yes" ; then
7527 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7528 found="yes"
7529 fi
7530 fi
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 xorg_testset_save_CFLAGS="$CFLAGS"
7547
7548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 int i;
7558 _ACEOF
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 xorg_cv_cc_flag_unknown_warning_option=yes
7561 else
7562 xorg_cv_cc_flag_unknown_warning_option=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7569 CFLAGS="$xorg_testset_save_CFLAGS"
7570 fi
7571
7572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 fi
7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 int i;
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 xorg_cv_cc_flag_unused_command_line_argument=yes
7588 else
7589 xorg_cv_cc_flag_unused_command_line_argument=no
7590 fi
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7596 CFLAGS="$xorg_testset_save_CFLAGS"
7597 fi
7598
7599 found="no"
7600
7601 if test $found = "no" ; then
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 fi
7605
7606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7608 fi
7609
7610 CFLAGS="$CFLAGS -Werror=missing-braces"
7611
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7613 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7614 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7615 if eval \${$cacheid+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 int i;
7621 int
7622 main ()
7623 {
7624
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"; then :
7630 eval $cacheid=yes
7631 else
7632 eval $cacheid=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7636 fi
7637
7638
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640
7641 eval supported=\$$cacheid
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7643 $as_echo "$supported" >&6; }
7644 if test "$supported" = "yes" ; then
7645 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7646 found="yes"
7647 fi
7648 fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 xorg_testset_save_CFLAGS="$CFLAGS"
7665
7666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675 int i;
7676 _ACEOF
7677 if ac_fn_c_try_compile "$LINENO"; then :
7678 xorg_cv_cc_flag_unknown_warning_option=yes
7679 else
7680 xorg_cv_cc_flag_unknown_warning_option=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7687 CFLAGS="$xorg_testset_save_CFLAGS"
7688 fi
7689
7690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 fi
7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 int i;
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"; then :
7705 xorg_cv_cc_flag_unused_command_line_argument=yes
7706 else
7707 xorg_cv_cc_flag_unused_command_line_argument=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715 fi
7716
7717 found="no"
7718
7719 if test $found = "no" ; then
7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722 fi
7723
7724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726 fi
7727
7728 CFLAGS="$CFLAGS -Werror=sequence-point"
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7731 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7732 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7733 if eval \${$cacheid+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 int
7740 main ()
7741 {
7742
7743 ;
7744 return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748 eval $cacheid=yes
7749 else
7750 eval $cacheid=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 fi
7755
7756
7757 CFLAGS="$xorg_testset_save_CFLAGS"
7758
7759 eval supported=\$$cacheid
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7761 $as_echo "$supported" >&6; }
7762 if test "$supported" = "yes" ; then
7763 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7764 found="yes"
7765 fi
7766 fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782 xorg_testset_save_CFLAGS="$CFLAGS"
7783
7784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 int i;
7794 _ACEOF
7795 if ac_fn_c_try_compile "$LINENO"; then :
7796 xorg_cv_cc_flag_unknown_warning_option=yes
7797 else
7798 xorg_cv_cc_flag_unknown_warning_option=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7805 CFLAGS="$xorg_testset_save_CFLAGS"
7806 fi
7807
7808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811 fi
7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 int i;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 xorg_cv_cc_flag_unused_command_line_argument=yes
7824 else
7825 xorg_cv_cc_flag_unused_command_line_argument=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833 fi
7834
7835 found="no"
7836
7837 if test $found = "no" ; then
7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7840 fi
7841
7842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7844 fi
7845
7846 CFLAGS="$CFLAGS -Werror=return-type"
7847
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7849 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7850 cacheid=xorg_cv_cc_flag__Werror_return_type
7851 if eval \${$cacheid+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 int i;
7857 int
7858 main ()
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 eval $cacheid=yes
7867 else
7868 eval $cacheid=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 fi
7873
7874
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876
7877 eval supported=\$$cacheid
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7879 $as_echo "$supported" >&6; }
7880 if test "$supported" = "yes" ; then
7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7882 found="yes"
7883 fi
7884 fi
7885
7886 if test $found = "no" ; then
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 fi
7890
7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893 fi
7894
7895 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7896
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7898 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7899 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7900 if eval \${$cacheid+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int i;
7906 int
7907 main ()
7908 {
7909
7910 ;
7911 return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_link "$LINENO"; then :
7915 eval $cacheid=yes
7916 else
7917 eval $cacheid=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 fi
7922
7923
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925
7926 eval supported=\$$cacheid
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7928 $as_echo "$supported" >&6; }
7929 if test "$supported" = "yes" ; then
7930 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7931 found="yes"
7932 fi
7933 fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 xorg_testset_save_CFLAGS="$CFLAGS"
7950
7951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7960 int i;
7961 _ACEOF
7962 if ac_fn_c_try_compile "$LINENO"; then :
7963 xorg_cv_cc_flag_unknown_warning_option=yes
7964 else
7965 xorg_cv_cc_flag_unknown_warning_option=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7972 CFLAGS="$xorg_testset_save_CFLAGS"
7973 fi
7974
7975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int i;
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990 xorg_cv_cc_flag_unused_command_line_argument=yes
7991 else
7992 xorg_cv_cc_flag_unused_command_line_argument=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 found="no"
8003
8004 if test $found = "no" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008
8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011 fi
8012
8013 CFLAGS="$CFLAGS -Werror=trigraphs"
8014
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8016 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8017 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8018 if eval \${$cacheid+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 int i;
8024 int
8025 main ()
8026 {
8027
8028 ;
8029 return 0;
8030 }
8031 _ACEOF
8032 if ac_fn_c_try_link "$LINENO"; then :
8033 eval $cacheid=yes
8034 else
8035 eval $cacheid=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8039 fi
8040
8041
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043
8044 eval supported=\$$cacheid
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8046 $as_echo "$supported" >&6; }
8047 if test "$supported" = "yes" ; then
8048 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8049 found="yes"
8050 fi
8051 fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 xorg_testset_save_CFLAGS="$CFLAGS"
8068
8069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8072 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8073 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 int i;
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081 xorg_cv_cc_flag_unknown_warning_option=yes
8082 else
8083 xorg_cv_cc_flag_unknown_warning_option=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8088 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8090 CFLAGS="$xorg_testset_save_CFLAGS"
8091 fi
8092
8093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 fi
8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8099 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8100 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 int i;
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 xorg_cv_cc_flag_unused_command_line_argument=yes
8109 else
8110 xorg_cv_cc_flag_unused_command_line_argument=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8115 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8117 CFLAGS="$xorg_testset_save_CFLAGS"
8118 fi
8119
8120 found="no"
8121
8122 if test $found = "no" ; then
8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125 fi
8126
8127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8129 fi
8130
8131 CFLAGS="$CFLAGS -Werror=array-bounds"
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8134 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8135 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8136 if eval \${$cacheid+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 int i;
8142 int
8143 main ()
8144 {
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 eval $cacheid=yes
8152 else
8153 eval $cacheid=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 fi
8158
8159
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161
8162 eval supported=\$$cacheid
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8164 $as_echo "$supported" >&6; }
8165 if test "$supported" = "yes" ; then
8166 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8167 found="yes"
8168 fi
8169 fi
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 xorg_testset_save_CFLAGS="$CFLAGS"
8186
8187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 int i;
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 xorg_cv_cc_flag_unknown_warning_option=yes
8200 else
8201 xorg_cv_cc_flag_unknown_warning_option=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8208 CFLAGS="$xorg_testset_save_CFLAGS"
8209 fi
8210
8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214 fi
8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"; then :
8226 xorg_cv_cc_flag_unused_command_line_argument=yes
8227 else
8228 xorg_cv_cc_flag_unused_command_line_argument=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236 fi
8237
8238 found="no"
8239
8240 if test $found = "no" ; then
8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243 fi
8244
8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8247 fi
8248
8249 CFLAGS="$CFLAGS -Werror=write-strings"
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8252 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8253 cacheid=xorg_cv_cc_flag__Werror_write_strings
8254 if eval \${$cacheid+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 int i;
8260 int
8261 main ()
8262 {
8263
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_link "$LINENO"; then :
8269 eval $cacheid=yes
8270 else
8271 eval $cacheid=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 fi
8276
8277
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8279
8280 eval supported=\$$cacheid
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8282 $as_echo "$supported" >&6; }
8283 if test "$supported" = "yes" ; then
8284 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8285 found="yes"
8286 fi
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 xorg_testset_save_CFLAGS="$CFLAGS"
8304
8305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 int i;
8315 _ACEOF
8316 if ac_fn_c_try_compile "$LINENO"; then :
8317 xorg_cv_cc_flag_unknown_warning_option=yes
8318 else
8319 xorg_cv_cc_flag_unknown_warning_option=no
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8326 CFLAGS="$xorg_testset_save_CFLAGS"
8327 fi
8328
8329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 fi
8333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 int i;
8342 _ACEOF
8343 if ac_fn_c_try_compile "$LINENO"; then :
8344 xorg_cv_cc_flag_unused_command_line_argument=yes
8345 else
8346 xorg_cv_cc_flag_unused_command_line_argument=no
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8353 CFLAGS="$xorg_testset_save_CFLAGS"
8354 fi
8355
8356 found="no"
8357
8358 if test $found = "no" ; then
8359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361 fi
8362
8363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8365 fi
8366
8367 CFLAGS="$CFLAGS -Werror=address"
8368
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8370 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8371 cacheid=xorg_cv_cc_flag__Werror_address
8372 if eval \${$cacheid+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 int i;
8378 int
8379 main ()
8380 {
8381
8382 ;
8383 return 0;
8384 }
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387 eval $cacheid=yes
8388 else
8389 eval $cacheid=no
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 fi
8394
8395
8396 CFLAGS="$xorg_testset_save_CFLAGS"
8397
8398 eval supported=\$$cacheid
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8400 $as_echo "$supported" >&6; }
8401 if test "$supported" = "yes" ; then
8402 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8403 found="yes"
8404 fi
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421 xorg_testset_save_CFLAGS="$CFLAGS"
8422
8423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 int i;
8433 _ACEOF
8434 if ac_fn_c_try_compile "$LINENO"; then :
8435 xorg_cv_cc_flag_unknown_warning_option=yes
8436 else
8437 xorg_cv_cc_flag_unknown_warning_option=no
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 fi
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8444 CFLAGS="$xorg_testset_save_CFLAGS"
8445 fi
8446
8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 int i;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 xorg_cv_cc_flag_unused_command_line_argument=yes
8463 else
8464 xorg_cv_cc_flag_unused_command_line_argument=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8471 CFLAGS="$xorg_testset_save_CFLAGS"
8472 fi
8473
8474 found="no"
8475
8476 if test $found = "no" ; then
8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 fi
8480
8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8483 fi
8484
8485 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8488 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8489 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8490 if eval \${$cacheid+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 int i;
8496 int
8497 main ()
8498 {
8499
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 eval $cacheid=yes
8506 else
8507 eval $cacheid=no
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 fi
8512
8513
8514 CFLAGS="$xorg_testset_save_CFLAGS"
8515
8516 eval supported=\$$cacheid
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8518 $as_echo "$supported" >&6; }
8519 if test "$supported" = "yes" ; then
8520 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8521 found="yes"
8522 fi
8523 fi
8524
8525 if test $found = "no" ; then
8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528 fi
8529
8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8532 fi
8533
8534 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8535
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8537 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8538 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8539 if eval \${$cacheid+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 int i;
8545 int
8546 main ()
8547 {
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554 eval $cacheid=yes
8555 else
8556 eval $cacheid=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 fi
8561
8562
8563 CFLAGS="$xorg_testset_save_CFLAGS"
8564
8565 eval supported=\$$cacheid
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8567 $as_echo "$supported" >&6; }
8568 if test "$supported" = "yes" ; then
8569 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8570 found="yes"
8571 fi
8572 fi
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588 xorg_testset_save_CFLAGS="$CFLAGS"
8589
8590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 int i;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 xorg_cv_cc_flag_unknown_warning_option=yes
8603 else
8604 xorg_cv_cc_flag_unknown_warning_option=no
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8611 CFLAGS="$xorg_testset_save_CFLAGS"
8612 fi
8613
8614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 fi
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 int i;
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629 xorg_cv_cc_flag_unused_command_line_argument=yes
8630 else
8631 xorg_cv_cc_flag_unused_command_line_argument=no
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8638 CFLAGS="$xorg_testset_save_CFLAGS"
8639 fi
8640
8641 found="no"
8642
8643 if test $found = "no" ; then
8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 fi
8647
8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8650 fi
8651
8652 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8655 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8656 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8657 if eval \${$cacheid+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 int i;
8663 int
8664 main ()
8665 {
8666
8667 ;
8668 return 0;
8669 }
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8672 eval $cacheid=yes
8673 else
8674 eval $cacheid=no
8675 fi
8676 rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 fi
8679
8680
8681 CFLAGS="$xorg_testset_save_CFLAGS"
8682
8683 eval supported=\$$cacheid
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8685 $as_echo "$supported" >&6; }
8686 if test "$supported" = "yes" ; then
8687 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8688 found="yes"
8689 fi
8690 fi
8691
8692 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8693 else
8694 { $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
8695 $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;}
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709 xorg_testset_save_CFLAGS="$CFLAGS"
8710
8711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 int i;
8721 _ACEOF
8722 if ac_fn_c_try_compile "$LINENO"; then :
8723 xorg_cv_cc_flag_unknown_warning_option=yes
8724 else
8725 xorg_cv_cc_flag_unknown_warning_option=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8732 CFLAGS="$xorg_testset_save_CFLAGS"
8733 fi
8734
8735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 fi
8739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 int i;
8748 _ACEOF
8749 if ac_fn_c_try_compile "$LINENO"; then :
8750 xorg_cv_cc_flag_unused_command_line_argument=yes
8751 else
8752 xorg_cv_cc_flag_unused_command_line_argument=no
8753 fi
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8759 CFLAGS="$xorg_testset_save_CFLAGS"
8760 fi
8761
8762 found="no"
8763
8764 if test $found = "no" ; then
8765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767 fi
8768
8769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8771 fi
8772
8773 CFLAGS="$CFLAGS -Wimplicit"
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8776 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8777 cacheid=xorg_cv_cc_flag__Wimplicit
8778 if eval \${$cacheid+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 int
8785 main ()
8786 {
8787
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8793 eval $cacheid=yes
8794 else
8795 eval $cacheid=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 fi
8800
8801
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803
8804 eval supported=\$$cacheid
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8806 $as_echo "$supported" >&6; }
8807 if test "$supported" = "yes" ; then
8808 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8809 found="yes"
8810 fi
8811 fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 xorg_testset_save_CFLAGS="$CFLAGS"
8828
8829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 int i;
8839 _ACEOF
8840 if ac_fn_c_try_compile "$LINENO"; then :
8841 xorg_cv_cc_flag_unknown_warning_option=yes
8842 else
8843 xorg_cv_cc_flag_unknown_warning_option=no
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8850 CFLAGS="$xorg_testset_save_CFLAGS"
8851 fi
8852
8853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 fi
8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int i;
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868 xorg_cv_cc_flag_unused_command_line_argument=yes
8869 else
8870 xorg_cv_cc_flag_unused_command_line_argument=no
8871 fi
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8877 CFLAGS="$xorg_testset_save_CFLAGS"
8878 fi
8879
8880 found="no"
8881
8882 if test $found = "no" ; then
8883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885 fi
8886
8887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889 fi
8890
8891 CFLAGS="$CFLAGS -Wnonnull"
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8894 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8895 cacheid=xorg_cv_cc_flag__Wnonnull
8896 if eval \${$cacheid+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 int i;
8902 int
8903 main ()
8904 {
8905
8906 ;
8907 return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"; then :
8911 eval $cacheid=yes
8912 else
8913 eval $cacheid=no
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 fi
8918
8919
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921
8922 eval supported=\$$cacheid
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8924 $as_echo "$supported" >&6; }
8925 if test "$supported" = "yes" ; then
8926 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8927 found="yes"
8928 fi
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945 xorg_testset_save_CFLAGS="$CFLAGS"
8946
8947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 int i;
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959 xorg_cv_cc_flag_unknown_warning_option=yes
8960 else
8961 xorg_cv_cc_flag_unknown_warning_option=no
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8968 CFLAGS="$xorg_testset_save_CFLAGS"
8969 fi
8970
8971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 fi
8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 int i;
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986 xorg_cv_cc_flag_unused_command_line_argument=yes
8987 else
8988 xorg_cv_cc_flag_unused_command_line_argument=no
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8995 CFLAGS="$xorg_testset_save_CFLAGS"
8996 fi
8997
8998 found="no"
8999
9000 if test $found = "no" ; then
9001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003 fi
9004
9005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9007 fi
9008
9009 CFLAGS="$CFLAGS -Winit-self"
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9012 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9013 cacheid=xorg_cv_cc_flag__Winit_self
9014 if eval \${$cacheid+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 int i;
9020 int
9021 main ()
9022 {
9023
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_link "$LINENO"; then :
9029 eval $cacheid=yes
9030 else
9031 eval $cacheid=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 fi
9036
9037
9038 CFLAGS="$xorg_testset_save_CFLAGS"
9039
9040 eval supported=\$$cacheid
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9042 $as_echo "$supported" >&6; }
9043 if test "$supported" = "yes" ; then
9044 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9045 found="yes"
9046 fi
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063 xorg_testset_save_CFLAGS="$CFLAGS"
9064
9065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 int i;
9075 _ACEOF
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077 xorg_cv_cc_flag_unknown_warning_option=yes
9078 else
9079 xorg_cv_cc_flag_unknown_warning_option=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9086 CFLAGS="$xorg_testset_save_CFLAGS"
9087 fi
9088
9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 fi
9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 int i;
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"; then :
9104 xorg_cv_cc_flag_unused_command_line_argument=yes
9105 else
9106 xorg_cv_cc_flag_unused_command_line_argument=no
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9113 CFLAGS="$xorg_testset_save_CFLAGS"
9114 fi
9115
9116 found="no"
9117
9118 if test $found = "no" ; then
9119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121 fi
9122
9123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125 fi
9126
9127 CFLAGS="$CFLAGS -Wmain"
9128
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9130 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9131 cacheid=xorg_cv_cc_flag__Wmain
9132 if eval \${$cacheid+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 int i;
9138 int
9139 main ()
9140 {
9141
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 eval $cacheid=yes
9148 else
9149 eval $cacheid=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153 fi
9154
9155
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157
9158 eval supported=\$$cacheid
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9160 $as_echo "$supported" >&6; }
9161 if test "$supported" = "yes" ; then
9162 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9163 found="yes"
9164 fi
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 xorg_testset_save_CFLAGS="$CFLAGS"
9182
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 int i;
9193 _ACEOF
9194 if ac_fn_c_try_compile "$LINENO"; then :
9195 xorg_cv_cc_flag_unknown_warning_option=yes
9196 else
9197 xorg_cv_cc_flag_unknown_warning_option=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9204 CFLAGS="$xorg_testset_save_CFLAGS"
9205 fi
9206
9207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 fi
9211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 int i;
9220 _ACEOF
9221 if ac_fn_c_try_compile "$LINENO"; then :
9222 xorg_cv_cc_flag_unused_command_line_argument=yes
9223 else
9224 xorg_cv_cc_flag_unused_command_line_argument=no
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9231 CFLAGS="$xorg_testset_save_CFLAGS"
9232 fi
9233
9234 found="no"
9235
9236 if test $found = "no" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240
9241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243 fi
9244
9245 CFLAGS="$CFLAGS -Wmissing-braces"
9246
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9248 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9249 cacheid=xorg_cv_cc_flag__Wmissing_braces
9250 if eval \${$cacheid+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 int i;
9256 int
9257 main ()
9258 {
9259
9260 ;
9261 return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 eval $cacheid=yes
9266 else
9267 eval $cacheid=no
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 fi
9272
9273
9274 CFLAGS="$xorg_testset_save_CFLAGS"
9275
9276 eval supported=\$$cacheid
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9278 $as_echo "$supported" >&6; }
9279 if test "$supported" = "yes" ; then
9280 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9281 found="yes"
9282 fi
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299 xorg_testset_save_CFLAGS="$CFLAGS"
9300
9301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 int i;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 xorg_cv_cc_flag_unknown_warning_option=yes
9314 else
9315 xorg_cv_cc_flag_unknown_warning_option=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9322 CFLAGS="$xorg_testset_save_CFLAGS"
9323 fi
9324
9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 fi
9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 int i;
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340 xorg_cv_cc_flag_unused_command_line_argument=yes
9341 else
9342 xorg_cv_cc_flag_unused_command_line_argument=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9349 CFLAGS="$xorg_testset_save_CFLAGS"
9350 fi
9351
9352 found="no"
9353
9354 if test $found = "no" ; then
9355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 fi
9358
9359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 fi
9362
9363 CFLAGS="$CFLAGS -Wsequence-point"
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9366 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9367 cacheid=xorg_cv_cc_flag__Wsequence_point
9368 if eval \${$cacheid+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 int i;
9374 int
9375 main ()
9376 {
9377
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 eval $cacheid=yes
9384 else
9385 eval $cacheid=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 fi
9390
9391
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394 eval supported=\$$cacheid
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396 $as_echo "$supported" >&6; }
9397 if test "$supported" = "yes" ; then
9398 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9399 found="yes"
9400 fi
9401 fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417 xorg_testset_save_CFLAGS="$CFLAGS"
9418
9419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 int i;
9429 _ACEOF
9430 if ac_fn_c_try_compile "$LINENO"; then :
9431 xorg_cv_cc_flag_unknown_warning_option=yes
9432 else
9433 xorg_cv_cc_flag_unknown_warning_option=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9440 CFLAGS="$xorg_testset_save_CFLAGS"
9441 fi
9442
9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 fi
9447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"; then :
9458 xorg_cv_cc_flag_unused_command_line_argument=yes
9459 else
9460 xorg_cv_cc_flag_unused_command_line_argument=no
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9467 CFLAGS="$xorg_testset_save_CFLAGS"
9468 fi
9469
9470 found="no"
9471
9472 if test $found = "no" ; then
9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475 fi
9476
9477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479 fi
9480
9481 CFLAGS="$CFLAGS -Wreturn-type"
9482
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9484 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9485 cacheid=xorg_cv_cc_flag__Wreturn_type
9486 if eval \${$cacheid+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 int i;
9492 int
9493 main ()
9494 {
9495
9496 ;
9497 return 0;
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501 eval $cacheid=yes
9502 else
9503 eval $cacheid=no
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 fi
9508
9509
9510 CFLAGS="$xorg_testset_save_CFLAGS"
9511
9512 eval supported=\$$cacheid
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9514 $as_echo "$supported" >&6; }
9515 if test "$supported" = "yes" ; then
9516 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9517 found="yes"
9518 fi
9519 fi
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535 xorg_testset_save_CFLAGS="$CFLAGS"
9536
9537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546 int i;
9547 _ACEOF
9548 if ac_fn_c_try_compile "$LINENO"; then :
9549 xorg_cv_cc_flag_unknown_warning_option=yes
9550 else
9551 xorg_cv_cc_flag_unknown_warning_option=no
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9558 CFLAGS="$xorg_testset_save_CFLAGS"
9559 fi
9560
9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 fi
9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 int i;
9574 _ACEOF
9575 if ac_fn_c_try_compile "$LINENO"; then :
9576 xorg_cv_cc_flag_unused_command_line_argument=yes
9577 else
9578 xorg_cv_cc_flag_unused_command_line_argument=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586 fi
9587
9588 found="no"
9589
9590 if test $found = "no" ; then
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 fi
9594
9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9597 fi
9598
9599 CFLAGS="$CFLAGS -Wtrigraphs"
9600
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9602 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9603 cacheid=xorg_cv_cc_flag__Wtrigraphs
9604 if eval \${$cacheid+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 int i;
9610 int
9611 main ()
9612 {
9613
9614 ;
9615 return 0;
9616 }
9617 _ACEOF
9618 if ac_fn_c_try_link "$LINENO"; then :
9619 eval $cacheid=yes
9620 else
9621 eval $cacheid=no
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 fi
9626
9627
9628 CFLAGS="$xorg_testset_save_CFLAGS"
9629
9630 eval supported=\$$cacheid
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9632 $as_echo "$supported" >&6; }
9633 if test "$supported" = "yes" ; then
9634 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9635 found="yes"
9636 fi
9637 fi
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653 xorg_testset_save_CFLAGS="$CFLAGS"
9654
9655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 int i;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667 xorg_cv_cc_flag_unknown_warning_option=yes
9668 else
9669 xorg_cv_cc_flag_unknown_warning_option=no
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9676 CFLAGS="$xorg_testset_save_CFLAGS"
9677 fi
9678
9679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 fi
9683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 int i;
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9694 xorg_cv_cc_flag_unused_command_line_argument=yes
9695 else
9696 xorg_cv_cc_flag_unused_command_line_argument=no
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9703 CFLAGS="$xorg_testset_save_CFLAGS"
9704 fi
9705
9706 found="no"
9707
9708 if test $found = "no" ; then
9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711 fi
9712
9713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9715 fi
9716
9717 CFLAGS="$CFLAGS -Warray-bounds"
9718
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9720 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9721 cacheid=xorg_cv_cc_flag__Warray_bounds
9722 if eval \${$cacheid+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 int i;
9728 int
9729 main ()
9730 {
9731
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_link "$LINENO"; then :
9737 eval $cacheid=yes
9738 else
9739 eval $cacheid=no
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 fi
9744
9745
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747
9748 eval supported=\$$cacheid
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9750 $as_echo "$supported" >&6; }
9751 if test "$supported" = "yes" ; then
9752 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9753 found="yes"
9754 fi
9755 fi
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771 xorg_testset_save_CFLAGS="$CFLAGS"
9772
9773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782 int i;
9783 _ACEOF
9784 if ac_fn_c_try_compile "$LINENO"; then :
9785 xorg_cv_cc_flag_unknown_warning_option=yes
9786 else
9787 xorg_cv_cc_flag_unknown_warning_option=no
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9794 CFLAGS="$xorg_testset_save_CFLAGS"
9795 fi
9796
9797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 fi
9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 int i;
9810 _ACEOF
9811 if ac_fn_c_try_compile "$LINENO"; then :
9812 xorg_cv_cc_flag_unused_command_line_argument=yes
9813 else
9814 xorg_cv_cc_flag_unused_command_line_argument=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821 CFLAGS="$xorg_testset_save_CFLAGS"
9822 fi
9823
9824 found="no"
9825
9826 if test $found = "no" ; then
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 fi
9830
9831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833 fi
9834
9835 CFLAGS="$CFLAGS -Wwrite-strings"
9836
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9838 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9839 cacheid=xorg_cv_cc_flag__Wwrite_strings
9840 if eval \${$cacheid+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 int i;
9846 int
9847 main ()
9848 {
9849
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_c_try_link "$LINENO"; then :
9855 eval $cacheid=yes
9856 else
9857 eval $cacheid=no
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 fi
9862
9863
9864 CFLAGS="$xorg_testset_save_CFLAGS"
9865
9866 eval supported=\$$cacheid
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9868 $as_echo "$supported" >&6; }
9869 if test "$supported" = "yes" ; then
9870 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9871 found="yes"
9872 fi
9873 fi
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 xorg_testset_save_CFLAGS="$CFLAGS"
9890
9891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 int i;
9901 _ACEOF
9902 if ac_fn_c_try_compile "$LINENO"; then :
9903 xorg_cv_cc_flag_unknown_warning_option=yes
9904 else
9905 xorg_cv_cc_flag_unknown_warning_option=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913 fi
9914
9915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 fi
9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int i;
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 xorg_cv_cc_flag_unused_command_line_argument=yes
9931 else
9932 xorg_cv_cc_flag_unused_command_line_argument=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940 fi
9941
9942 found="no"
9943
9944 if test $found = "no" ; then
9945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947 fi
9948
9949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9951 fi
9952
9953 CFLAGS="$CFLAGS -Waddress"
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9956 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9957 cacheid=xorg_cv_cc_flag__Waddress
9958 if eval \${$cacheid+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 int i;
9964 int
9965 main ()
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 eval $cacheid=yes
9974 else
9975 eval $cacheid=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980
9981
9982 CFLAGS="$xorg_testset_save_CFLAGS"
9983
9984 eval supported=\$$cacheid
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9986 $as_echo "$supported" >&6; }
9987 if test "$supported" = "yes" ; then
9988 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9989 found="yes"
9990 fi
9991 fi
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007 xorg_testset_save_CFLAGS="$CFLAGS"
10008
10009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int i;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021 xorg_cv_cc_flag_unknown_warning_option=yes
10022 else
10023 xorg_cv_cc_flag_unknown_warning_option=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10030 CFLAGS="$xorg_testset_save_CFLAGS"
10031 fi
10032
10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 _ACEOF
10047 if ac_fn_c_try_compile "$LINENO"; then :
10048 xorg_cv_cc_flag_unused_command_line_argument=yes
10049 else
10050 xorg_cv_cc_flag_unused_command_line_argument=no
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10057 CFLAGS="$xorg_testset_save_CFLAGS"
10058 fi
10059
10060 found="no"
10061
10062 if test $found = "no" ; then
10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 fi
10066
10067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10069 fi
10070
10071 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10074 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10075 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10076 if eval \${$cacheid+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 int
10083 main ()
10084 {
10085
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 eval $cacheid=yes
10092 else
10093 eval $cacheid=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 fi
10098
10099
10100 CFLAGS="$xorg_testset_save_CFLAGS"
10101
10102 eval supported=\$$cacheid
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10104 $as_echo "$supported" >&6; }
10105 if test "$supported" = "yes" ; then
10106 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10107 found="yes"
10108 fi
10109 fi
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 xorg_testset_save_CFLAGS="$CFLAGS"
10126
10127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 int i;
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"; then :
10139 xorg_cv_cc_flag_unknown_warning_option=yes
10140 else
10141 xorg_cv_cc_flag_unknown_warning_option=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10149 fi
10150
10151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 _ACEOF
10165 if ac_fn_c_try_compile "$LINENO"; then :
10166 xorg_cv_cc_flag_unused_command_line_argument=yes
10167 else
10168 xorg_cv_cc_flag_unused_command_line_argument=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176 fi
10177
10178 found="no"
10179
10180 if test $found = "no" ; then
10181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183 fi
10184
10185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187 fi
10188
10189 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10190
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10192 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10193 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10194 if eval \${$cacheid+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 int
10201 main ()
10202 {
10203
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 eval $cacheid=yes
10210 else
10211 eval $cacheid=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi
10216
10217
10218 CFLAGS="$xorg_testset_save_CFLAGS"
10219
10220 eval supported=\$$cacheid
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10222 $as_echo "$supported" >&6; }
10223 if test "$supported" = "yes" ; then
10224 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10225 found="yes"
10226 fi
10227 fi
10228
10229
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238 CWARNFLAGS="$BASE_CFLAGS"
10239 if test "x$GCC" = xyes ; then
10240 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10241 fi
10242
10243
10244
10245
10246
10247
10248
10249
10250 # Check whether --enable-strict-compilation was given.
10251 if test "${enable_strict_compilation+set}" = set; then :
10252 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10253 else
10254 STRICT_COMPILE=no
10255 fi
10256
10257
10258
10259
10260
10261
10262 STRICT_CFLAGS=""
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276 xorg_testset_save_CFLAGS="$CFLAGS"
10277
10278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10287 int i;
10288 _ACEOF
10289 if ac_fn_c_try_compile "$LINENO"; then :
10290 xorg_cv_cc_flag_unknown_warning_option=yes
10291 else
10292 xorg_cv_cc_flag_unknown_warning_option=no
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10299 CFLAGS="$xorg_testset_save_CFLAGS"
10300 fi
10301
10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 fi
10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314 int i;
10315 _ACEOF
10316 if ac_fn_c_try_compile "$LINENO"; then :
10317 xorg_cv_cc_flag_unused_command_line_argument=yes
10318 else
10319 xorg_cv_cc_flag_unused_command_line_argument=no
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10326 CFLAGS="$xorg_testset_save_CFLAGS"
10327 fi
10328
10329 found="no"
10330
10331 if test $found = "no" ; then
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 fi
10335
10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10338 fi
10339
10340 CFLAGS="$CFLAGS -pedantic"
10341
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10343 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10344 cacheid=xorg_cv_cc_flag__pedantic
10345 if eval \${$cacheid+:} false; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 int i;
10351 int
10352 main ()
10353 {
10354
10355 ;
10356 return 0;
10357 }
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360 eval $cacheid=yes
10361 else
10362 eval $cacheid=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 fi
10367
10368
10369 CFLAGS="$xorg_testset_save_CFLAGS"
10370
10371 eval supported=\$$cacheid
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10373 $as_echo "$supported" >&6; }
10374 if test "$supported" = "yes" ; then
10375 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10376 found="yes"
10377 fi
10378 fi
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394 xorg_testset_save_CFLAGS="$CFLAGS"
10395
10396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int i;
10406 _ACEOF
10407 if ac_fn_c_try_compile "$LINENO"; then :
10408 xorg_cv_cc_flag_unknown_warning_option=yes
10409 else
10410 xorg_cv_cc_flag_unknown_warning_option=no
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10417 CFLAGS="$xorg_testset_save_CFLAGS"
10418 fi
10419
10420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423 fi
10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 int i;
10433 _ACEOF
10434 if ac_fn_c_try_compile "$LINENO"; then :
10435 xorg_cv_cc_flag_unused_command_line_argument=yes
10436 else
10437 xorg_cv_cc_flag_unused_command_line_argument=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10444 CFLAGS="$xorg_testset_save_CFLAGS"
10445 fi
10446
10447 found="no"
10448
10449 if test $found = "no" ; then
10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10452 fi
10453
10454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10456 fi
10457
10458 CFLAGS="$CFLAGS -Werror"
10459
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10461 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10462 cacheid=xorg_cv_cc_flag__Werror
10463 if eval \${$cacheid+:} false; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 int i;
10469 int
10470 main ()
10471 {
10472
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 eval $cacheid=yes
10479 else
10480 eval $cacheid=no
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 fi
10485
10486
10487 CFLAGS="$xorg_testset_save_CFLAGS"
10488
10489 eval supported=\$$cacheid
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10491 $as_echo "$supported" >&6; }
10492 if test "$supported" = "yes" ; then
10493 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10494 found="yes"
10495 fi
10496 fi
10497
10498 if test $found = "no" ; then
10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501 fi
10502
10503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10505 fi
10506
10507 CFLAGS="$CFLAGS -errwarn"
10508
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10510 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10511 cacheid=xorg_cv_cc_flag__errwarn
10512 if eval \${$cacheid+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 int i;
10518 int
10519 main ()
10520 {
10521
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 eval $cacheid=yes
10528 else
10529 eval $cacheid=no
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 fi
10534
10535
10536 CFLAGS="$xorg_testset_save_CFLAGS"
10537
10538 eval supported=\$$cacheid
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10540 $as_echo "$supported" >&6; }
10541 if test "$supported" = "yes" ; then
10542 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10543 found="yes"
10544 fi
10545 fi
10546
10547
10548
10549 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10550 # activate it with -Werror, so we add it here explicitly.
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 xorg_testset_save_CFLAGS="$CFLAGS"
10565
10566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575 int i;
10576 _ACEOF
10577 if ac_fn_c_try_compile "$LINENO"; then :
10578 xorg_cv_cc_flag_unknown_warning_option=yes
10579 else
10580 xorg_cv_cc_flag_unknown_warning_option=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10587 CFLAGS="$xorg_testset_save_CFLAGS"
10588 fi
10589
10590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593 fi
10594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 int i;
10603 _ACEOF
10604 if ac_fn_c_try_compile "$LINENO"; then :
10605 xorg_cv_cc_flag_unused_command_line_argument=yes
10606 else
10607 xorg_cv_cc_flag_unused_command_line_argument=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10614 CFLAGS="$xorg_testset_save_CFLAGS"
10615 fi
10616
10617 found="no"
10618
10619 if test $found = "no" ; then
10620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10622 fi
10623
10624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626 fi
10627
10628 CFLAGS="$CFLAGS -Werror=attributes"
10629
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10631 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10632 cacheid=xorg_cv_cc_flag__Werror_attributes
10633 if eval \${$cacheid+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 int i;
10639 int
10640 main ()
10641 {
10642
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 eval $cacheid=yes
10649 else
10650 eval $cacheid=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 fi
10655
10656
10657 CFLAGS="$xorg_testset_save_CFLAGS"
10658
10659 eval supported=\$$cacheid
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10661 $as_echo "$supported" >&6; }
10662 if test "$supported" = "yes" ; then
10663 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10664 found="yes"
10665 fi
10666 fi
10667
10668
10669
10670 if test "x$STRICT_COMPILE" = "xyes"; then
10671 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10672 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10673 fi
10674
10675
10676
10677
10678
10679
10680 cat >>confdefs.h <<_ACEOF
10681 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10682 _ACEOF
10683
10684 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10685 if test "x$PVM" = "x"; then
10686 PVM="0"
10687 fi
10688
10689 cat >>confdefs.h <<_ACEOF
10690 #define PACKAGE_VERSION_MINOR $PVM
10691 _ACEOF
10692
10693 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10694 if test "x$PVP" = "x"; then
10695 PVP="0"
10696 fi
10697
10698 cat >>confdefs.h <<_ACEOF
10699 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10700 _ACEOF
10701
10702
10703
10704 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10705 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10706 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10707 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10708
10709
10710
10711
10712 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10713 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10714 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10715 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10716 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10717
10718
10719
10720
10721
10722
10723 if test x$APP_MAN_SUFFIX = x ; then
10724 APP_MAN_SUFFIX=1
10725 fi
10726 if test x$APP_MAN_DIR = x ; then
10727 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10728 fi
10729
10730 if test x$LIB_MAN_SUFFIX = x ; then
10731 LIB_MAN_SUFFIX=3
10732 fi
10733 if test x$LIB_MAN_DIR = x ; then
10734 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10735 fi
10736
10737 if test x$FILE_MAN_SUFFIX = x ; then
10738 case $host_os in
10739 solaris*) FILE_MAN_SUFFIX=4 ;;
10740 *) FILE_MAN_SUFFIX=5 ;;
10741 esac
10742 fi
10743 if test x$FILE_MAN_DIR = x ; then
10744 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10745 fi
10746
10747 if test x$MISC_MAN_SUFFIX = x ; then
10748 case $host_os in
10749 solaris*) MISC_MAN_SUFFIX=5 ;;
10750 *) MISC_MAN_SUFFIX=7 ;;
10751 esac
10752 fi
10753 if test x$MISC_MAN_DIR = x ; then
10754 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10755 fi
10756
10757 if test x$DRIVER_MAN_SUFFIX = x ; then
10758 case $host_os in
10759 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10760 *) DRIVER_MAN_SUFFIX=4 ;;
10761 esac
10762 fi
10763 if test x$DRIVER_MAN_DIR = x ; then
10764 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10765 fi
10766
10767 if test x$ADMIN_MAN_SUFFIX = x ; then
10768 case $host_os in
10769 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10770 *) ADMIN_MAN_SUFFIX=8 ;;
10771 esac
10772 fi
10773 if test x$ADMIN_MAN_DIR = x ; then
10774 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10775 fi
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 XORG_MAN_PAGE="X Version 11"
10792
10793 MAN_SUBSTS="\
10794 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10795 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10796 -e 's|__xservername__|Xorg|g' \
10797 -e 's|__xconfigfile__|xorg.conf|g' \
10798 -e 's|__projectroot__|\$(prefix)|g' \
10799 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10800 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10801 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10802 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10803 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10804 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10805 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10806
10807
10808
10809 # Check whether --enable-silent-rules was given.
10810 if test "${enable_silent_rules+set}" = set; then :
10811 enableval=$enable_silent_rules;
10812 fi
10813
10814 case $enable_silent_rules in # (((
10815 yes) AM_DEFAULT_VERBOSITY=0;;
10816 no) AM_DEFAULT_VERBOSITY=1;;
10817 *) AM_DEFAULT_VERBOSITY=0;;
10818 esac
10819 am_make=${MAKE-make}
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10821 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10822 if ${am_cv_make_support_nested_variables+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 if $as_echo 'TRUE=$(BAR$(V))
10826 BAR0=false
10827 BAR1=true
10828 V=1
10829 am__doit:
10830 @$(TRUE)
10831 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10832 am_cv_make_support_nested_variables=yes
10833 else
10834 am_cv_make_support_nested_variables=no
10835 fi
10836 fi
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10838 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10839 if test $am_cv_make_support_nested_variables = yes; then
10840 AM_V='$(V)'
10841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10842 else
10843 AM_V=$AM_DEFAULT_VERBOSITY
10844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10845 fi
10846 AM_BACKSLASH='\'
10847
10848
10849
10850 # Initialize libtool
10851 # Check whether --enable-static was given.
10852 if test "${enable_static+set}" = set; then :
10853 enableval=$enable_static; p=${PACKAGE-default}
10854 case $enableval in
10855 yes) enable_static=yes ;;
10856 no) enable_static=no ;;
10857 *)
10858 enable_static=no
10859 # Look at the argument we got. We use all the common list separators.
10860 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10861 for pkg in $enableval; do
10862 IFS=$lt_save_ifs
10863 if test "X$pkg" = "X$p"; then
10864 enable_static=yes
10865 fi
10866 done
10867 IFS=$lt_save_ifs
10868 ;;
10869 esac
10870 else
10871 enable_static=no
10872 fi
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 case `pwd` in
10883 *\ * | *\ *)
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10885 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10886 esac
10887
10888
10889
10890 macro_version='2.4.6'
10891 macro_revision='2.4.6'
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905 ltmain=$ac_aux_dir/ltmain.sh
10906
10907 # Backslashify metacharacters that are still active within
10908 # double-quoted strings.
10909 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10910
10911 # Same as above, but do not quote variable references.
10912 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10913
10914 # Sed substitution to delay expansion of an escaped shell variable in a
10915 # double_quote_subst'ed string.
10916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10917
10918 # Sed substitution to delay expansion of an escaped single quote.
10919 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10920
10921 # Sed substitution to avoid accidental globbing in evaled expressions
10922 no_glob_subst='s/\*/\\\*/g'
10923
10924 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10929 $as_echo_n "checking how to print strings... " >&6; }
10930 # Test print first, because it will be a builtin if present.
10931 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10933 ECHO='print -r --'
10934 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10935 ECHO='printf %s\n'
10936 else
10937 # Use this function as a fallback that always works.
10938 func_fallback_echo ()
10939 {
10940 eval 'cat <<_LTECHO_EOF
10941 $1
10942 _LTECHO_EOF'
10943 }
10944 ECHO='func_fallback_echo'
10945 fi
10946
10947 # func_echo_all arg...
10948 # Invoke $ECHO with all args, space-separated.
10949 func_echo_all ()
10950 {
10951 $ECHO ""
10952 }
10953
10954 case $ECHO in
10955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10956 $as_echo "printf" >&6; } ;;
10957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10958 $as_echo "print -r" >&6; } ;;
10959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10960 $as_echo "cat" >&6; } ;;
10961 esac
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10977 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10978 if ${ac_cv_path_SED+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10982 for ac_i in 1 2 3 4 5 6 7; do
10983 ac_script="$ac_script$as_nl$ac_script"
10984 done
10985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10986 { ac_script=; unset ac_script;}
10987 if test -z "$SED"; then
10988 ac_path_SED_found=false
10989 # Loop through the user's path and test for each of PROGNAME-LIST
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10992 do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_prog in sed gsed; do
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10998 as_fn_executable_p "$ac_path_SED" || continue
10999 # Check for GNU ac_path_SED and select it if it is found.
11000 # Check for GNU $ac_path_SED
11001 case `"$ac_path_SED" --version 2>&1` in
11002 *GNU*)
11003 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11004 *)
11005 ac_count=0
11006 $as_echo_n 0123456789 >"conftest.in"
11007 while :
11008 do
11009 cat "conftest.in" "conftest.in" >"conftest.tmp"
11010 mv "conftest.tmp" "conftest.in"
11011 cp "conftest.in" "conftest.nl"
11012 $as_echo '' >> "conftest.nl"
11013 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11015 as_fn_arith $ac_count + 1 && ac_count=$as_val
11016 if test $ac_count -gt ${ac_path_SED_max-0}; then
11017 # Best one so far, save it but keep looking for a better one
11018 ac_cv_path_SED="$ac_path_SED"
11019 ac_path_SED_max=$ac_count
11020 fi
11021 # 10*(2^10) chars as input seems more than enough
11022 test $ac_count -gt 10 && break
11023 done
11024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11025 esac
11026
11027 $ac_path_SED_found && break 3
11028 done
11029 done
11030 done
11031 IFS=$as_save_IFS
11032 if test -z "$ac_cv_path_SED"; then
11033 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11034 fi
11035 else
11036 ac_cv_path_SED=$SED
11037 fi
11038
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11041 $as_echo "$ac_cv_path_SED" >&6; }
11042 SED="$ac_cv_path_SED"
11043 rm -f conftest.sed
11044
11045 test -z "$SED" && SED=sed
11046 Xsed="$SED -e 1s/^X//"
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11059 $as_echo_n "checking for fgrep... " >&6; }
11060 if ${ac_cv_path_FGREP+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11064 then ac_cv_path_FGREP="$GREP -F"
11065 else
11066 if test -z "$FGREP"; then
11067 ac_path_FGREP_found=false
11068 # Loop through the user's path and test for each of PROGNAME-LIST
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11071 do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_prog in fgrep; do
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11077 as_fn_executable_p "$ac_path_FGREP" || continue
11078 # Check for GNU ac_path_FGREP and select it if it is found.
11079 # Check for GNU $ac_path_FGREP
11080 case `"$ac_path_FGREP" --version 2>&1` in
11081 *GNU*)
11082 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11083 *)
11084 ac_count=0
11085 $as_echo_n 0123456789 >"conftest.in"
11086 while :
11087 do
11088 cat "conftest.in" "conftest.in" >"conftest.tmp"
11089 mv "conftest.tmp" "conftest.in"
11090 cp "conftest.in" "conftest.nl"
11091 $as_echo 'FGREP' >> "conftest.nl"
11092 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11094 as_fn_arith $ac_count + 1 && ac_count=$as_val
11095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11096 # Best one so far, save it but keep looking for a better one
11097 ac_cv_path_FGREP="$ac_path_FGREP"
11098 ac_path_FGREP_max=$ac_count
11099 fi
11100 # 10*(2^10) chars as input seems more than enough
11101 test $ac_count -gt 10 && break
11102 done
11103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11104 esac
11105
11106 $ac_path_FGREP_found && break 3
11107 done
11108 done
11109 done
11110 IFS=$as_save_IFS
11111 if test -z "$ac_cv_path_FGREP"; then
11112 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11113 fi
11114 else
11115 ac_cv_path_FGREP=$FGREP
11116 fi
11117
11118 fi
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11121 $as_echo "$ac_cv_path_FGREP" >&6; }
11122 FGREP="$ac_cv_path_FGREP"
11123
11124
11125 test -z "$GREP" && GREP=grep
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145 # Check whether --with-gnu-ld was given.
11146 if test "${with_gnu_ld+set}" = set; then :
11147 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11148 else
11149 with_gnu_ld=no
11150 fi
11151
11152 ac_prog=ld
11153 if test yes = "$GCC"; then
11154 # Check if gcc -print-prog-name=ld gives a path.
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11156 $as_echo_n "checking for ld used by $CC... " >&6; }
11157 case $host in
11158 *-*-mingw*)
11159 # gcc leaves a trailing carriage return, which upsets mingw
11160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11161 *)
11162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11163 esac
11164 case $ac_prog in
11165 # Accept absolute paths.
11166 [\\/]* | ?:[\\/]*)
11167 re_direlt='/[^/][^/]*/\.\./'
11168 # Canonicalize the pathname of ld
11169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11172 done
11173 test -z "$LD" && LD=$ac_prog
11174 ;;
11175 "")
11176 # If it fails, then pretend we aren't using GCC.
11177 ac_prog=ld
11178 ;;
11179 *)
11180 # If it is relative, then search for the first ld in PATH.
11181 with_gnu_ld=unknown
11182 ;;
11183 esac
11184 elif test yes = "$with_gnu_ld"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11186 $as_echo_n "checking for GNU ld... " >&6; }
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11189 $as_echo_n "checking for non-GNU ld... " >&6; }
11190 fi
11191 if ${lt_cv_path_LD+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 if test -z "$LD"; then
11195 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11196 for ac_dir in $PATH; do
11197 IFS=$lt_save_ifs
11198 test -z "$ac_dir" && ac_dir=.
11199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11200 lt_cv_path_LD=$ac_dir/$ac_prog
11201 # Check to see if the program is GNU ld. I'd rather use --version,
11202 # but apparently some variants of GNU ld only accept -v.
11203 # Break only if it was the GNU/non-GNU ld that we prefer.
11204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11205 *GNU* | *'with BFD'*)
11206 test no != "$with_gnu_ld" && break
11207 ;;
11208 *)
11209 test yes != "$with_gnu_ld" && break
11210 ;;
11211 esac
11212 fi
11213 done
11214 IFS=$lt_save_ifs
11215 else
11216 lt_cv_path_LD=$LD # Let the user override the test with a path.
11217 fi
11218 fi
11219
11220 LD=$lt_cv_path_LD
11221 if test -n "$LD"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11223 $as_echo "$LD" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 fi
11228 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11231 if ${lt_cv_prog_gnu_ld+:} false; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11235 case `$LD -v 2>&1 </dev/null` in
11236 *GNU* | *'with BFD'*)
11237 lt_cv_prog_gnu_ld=yes
11238 ;;
11239 *)
11240 lt_cv_prog_gnu_ld=no
11241 ;;
11242 esac
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11246 with_gnu_ld=$lt_cv_prog_gnu_ld
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11258 if ${lt_cv_path_NM+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 if test -n "$NM"; then
11262 # Let the user override the test.
11263 lt_cv_path_NM=$NM
11264 else
11265 lt_nm_to_check=${ac_tool_prefix}nm
11266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11267 lt_nm_to_check="$lt_nm_to_check nm"
11268 fi
11269 for lt_tmp_nm in $lt_nm_to_check; do
11270 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11272 IFS=$lt_save_ifs
11273 test -z "$ac_dir" && ac_dir=.
11274 tmp_nm=$ac_dir/$lt_tmp_nm
11275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11276 # Check to see if the nm accepts a BSD-compat flag.
11277 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11278 # nm: unknown option "B" ignored
11279 # Tru64's nm complains that /dev/null is an invalid object file
11280 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11281 case $build_os in
11282 mingw*) lt_bad_file=conftest.nm/nofile ;;
11283 *) lt_bad_file=/dev/null ;;
11284 esac
11285 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11286 *$lt_bad_file* | *'Invalid file or object type'*)
11287 lt_cv_path_NM="$tmp_nm -B"
11288 break 2
11289 ;;
11290 *)
11291 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11292 */dev/null*)
11293 lt_cv_path_NM="$tmp_nm -p"
11294 break 2
11295 ;;
11296 *)
11297 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11298 continue # so that we can try to find one that supports BSD flags
11299 ;;
11300 esac
11301 ;;
11302 esac
11303 fi
11304 done
11305 IFS=$lt_save_ifs
11306 done
11307 : ${lt_cv_path_NM=no}
11308 fi
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11311 $as_echo "$lt_cv_path_NM" >&6; }
11312 if test no != "$lt_cv_path_NM"; then
11313 NM=$lt_cv_path_NM
11314 else
11315 # Didn't find any BSD compatible name lister, look for dumpbin.
11316 if test -n "$DUMPBIN"; then :
11317 # Let the user override the test.
11318 else
11319 if test -n "$ac_tool_prefix"; then
11320 for ac_prog in dumpbin "link -dump"
11321 do
11322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_prog_DUMPBIN+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$DUMPBIN"; then
11330 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11331 else
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11334 do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11342 fi
11343 done
11344 done
11345 IFS=$as_save_IFS
11346
11347 fi
11348 fi
11349 DUMPBIN=$ac_cv_prog_DUMPBIN
11350 if test -n "$DUMPBIN"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11352 $as_echo "$DUMPBIN" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 fi
11357
11358
11359 test -n "$DUMPBIN" && break
11360 done
11361 fi
11362 if test -z "$DUMPBIN"; then
11363 ac_ct_DUMPBIN=$DUMPBIN
11364 for ac_prog in dumpbin "link -dump"
11365 do
11366 # Extract the first word of "$ac_prog", so it can be a program name with args.
11367 set dummy $ac_prog; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 if test -n "$ac_ct_DUMPBIN"; then
11374 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387 done
11388 done
11389 IFS=$as_save_IFS
11390
11391 fi
11392 fi
11393 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11394 if test -n "$ac_ct_DUMPBIN"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11396 $as_echo "$ac_ct_DUMPBIN" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401
11402
11403 test -n "$ac_ct_DUMPBIN" && break
11404 done
11405
11406 if test "x$ac_ct_DUMPBIN" = x; then
11407 DUMPBIN=":"
11408 else
11409 case $cross_compiling:$ac_tool_warned in
11410 yes:)
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11413 ac_tool_warned=yes ;;
11414 esac
11415 DUMPBIN=$ac_ct_DUMPBIN
11416 fi
11417 fi
11418
11419 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11420 *COFF*)
11421 DUMPBIN="$DUMPBIN -symbols -headers"
11422 ;;
11423 *)
11424 DUMPBIN=:
11425 ;;
11426 esac
11427 fi
11428
11429 if test : != "$DUMPBIN"; then
11430 NM=$DUMPBIN
11431 fi
11432 fi
11433 test -z "$NM" && NM=nm
11434
11435
11436
11437
11438
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11441 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11442 if ${lt_cv_nm_interface+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 lt_cv_nm_interface="BSD nm"
11446 echo "int some_variable = 0;" > conftest.$ac_ext
11447 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11448 (eval "$ac_compile" 2>conftest.err)
11449 cat conftest.err >&5
11450 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11451 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11452 cat conftest.err >&5
11453 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11454 cat conftest.out >&5
11455 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11456 lt_cv_nm_interface="MS dumpbin"
11457 fi
11458 rm -f conftest*
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11461 $as_echo "$lt_cv_nm_interface" >&6; }
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11464 $as_echo_n "checking whether ln -s works... " >&6; }
11465 LN_S=$as_ln_s
11466 if test "$LN_S" = "ln -s"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468 $as_echo "yes" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11471 $as_echo "no, using $LN_S" >&6; }
11472 fi
11473
11474 # find the maximum length of command line arguments
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11476 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11477 if ${lt_cv_sys_max_cmd_len+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 i=0
11481 teststring=ABCD
11482
11483 case $build_os in
11484 msdosdjgpp*)
11485 # On DJGPP, this test can blow up pretty badly due to problems in libc
11486 # (any single argument exceeding 2000 bytes causes a buffer overrun
11487 # during glob expansion). Even if it were fixed, the result of this
11488 # check would be larger than it should be.
11489 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11490 ;;
11491
11492 gnu*)
11493 # Under GNU Hurd, this test is not required because there is
11494 # no limit to the length of command line arguments.
11495 # Libtool will interpret -1 as no limit whatsoever
11496 lt_cv_sys_max_cmd_len=-1;
11497 ;;
11498
11499 cygwin* | mingw* | cegcc*)
11500 # On Win9x/ME, this test blows up -- it succeeds, but takes
11501 # about 5 minutes as the teststring grows exponentially.
11502 # Worse, since 9x/ME are not pre-emptively multitasking,
11503 # you end up with a "frozen" computer, even though with patience
11504 # the test eventually succeeds (with a max line length of 256k).
11505 # Instead, let's just punt: use the minimum linelength reported by
11506 # all of the supported platforms: 8192 (on NT/2K/XP).
11507 lt_cv_sys_max_cmd_len=8192;
11508 ;;
11509
11510 mint*)
11511 # On MiNT this can take a long time and run out of memory.
11512 lt_cv_sys_max_cmd_len=8192;
11513 ;;
11514
11515 amigaos*)
11516 # On AmigaOS with pdksh, this test takes hours, literally.
11517 # So we just punt and use a minimum line length of 8192.
11518 lt_cv_sys_max_cmd_len=8192;
11519 ;;
11520
11521 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11522 # This has been around since 386BSD, at least. Likely further.
11523 if test -x /sbin/sysctl; then
11524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11525 elif test -x /usr/sbin/sysctl; then
11526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11527 else
11528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11529 fi
11530 # And add a safety zone
11531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11533 ;;
11534
11535 interix*)
11536 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11537 lt_cv_sys_max_cmd_len=196608
11538 ;;
11539
11540 os2*)
11541 # The test takes a long time on OS/2.
11542 lt_cv_sys_max_cmd_len=8192
11543 ;;
11544
11545 osf*)
11546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11548 # nice to cause kernel panics so lets avoid the loop below.
11549 # First set a reasonable default.
11550 lt_cv_sys_max_cmd_len=16384
11551 #
11552 if test -x /sbin/sysconfig; then
11553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11554 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11555 esac
11556 fi
11557 ;;
11558 sco3.2v5*)
11559 lt_cv_sys_max_cmd_len=102400
11560 ;;
11561 sysv5* | sco5v6* | sysv4.2uw2*)
11562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11563 if test -n "$kargmax"; then
11564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11565 else
11566 lt_cv_sys_max_cmd_len=32768
11567 fi
11568 ;;
11569 *)
11570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11571 if test -n "$lt_cv_sys_max_cmd_len" && \
11572 test undefined != "$lt_cv_sys_max_cmd_len"; then
11573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11575 else
11576 # Make teststring a little bigger before we do anything with it.
11577 # a 1K string should be a reasonable start.
11578 for i in 1 2 3 4 5 6 7 8; do
11579 teststring=$teststring$teststring
11580 done
11581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11582 # If test is not a shell built-in, we'll probably end up computing a
11583 # maximum length that is only half of the actual maximum length, but
11584 # we can't tell.
11585 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11586 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11587 test 17 != "$i" # 1/2 MB should be enough
11588 do
11589 i=`expr $i + 1`
11590 teststring=$teststring$teststring
11591 done
11592 # Only check the string length outside the loop.
11593 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11594 teststring=
11595 # Add a significant safety factor because C++ compilers can tack on
11596 # massive amounts of additional arguments before passing them to the
11597 # linker. It appears as though 1/2 is a usable value.
11598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11599 fi
11600 ;;
11601 esac
11602
11603 fi
11604
11605 if test -n "$lt_cv_sys_max_cmd_len"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11607 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11610 $as_echo "none" >&6; }
11611 fi
11612 max_cmd_len=$lt_cv_sys_max_cmd_len
11613
11614
11615
11616
11617
11618
11619 : ${CP="cp -f"}
11620 : ${MV="mv -f"}
11621 : ${RM="rm -f"}
11622
11623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11624 lt_unset=unset
11625 else
11626 lt_unset=false
11627 fi
11628
11629
11630
11631
11632
11633 # test EBCDIC or ASCII
11634 case `echo X|tr X '\101'` in
11635 A) # ASCII based system
11636 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11637 lt_SP2NL='tr \040 \012'
11638 lt_NL2SP='tr \015\012 \040\040'
11639 ;;
11640 *) # EBCDIC based system
11641 lt_SP2NL='tr \100 \n'
11642 lt_NL2SP='tr \r\n \100\100'
11643 ;;
11644 esac
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11655 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11656 if ${lt_cv_to_host_file_cmd+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $host in
11660 *-*-mingw* )
11661 case $build in
11662 *-*-mingw* ) # actually msys
11663 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11664 ;;
11665 *-*-cygwin* )
11666 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11667 ;;
11668 * ) # otherwise, assume *nix
11669 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11670 ;;
11671 esac
11672 ;;
11673 *-*-cygwin* )
11674 case $build in
11675 *-*-mingw* ) # actually msys
11676 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11677 ;;
11678 *-*-cygwin* )
11679 lt_cv_to_host_file_cmd=func_convert_file_noop
11680 ;;
11681 * ) # otherwise, assume *nix
11682 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11683 ;;
11684 esac
11685 ;;
11686 * ) # unhandled hosts (and "normal" native builds)
11687 lt_cv_to_host_file_cmd=func_convert_file_noop
11688 ;;
11689 esac
11690
11691 fi
11692
11693 to_host_file_cmd=$lt_cv_to_host_file_cmd
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11695 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11696
11697
11698
11699
11700
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11702 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11703 if ${lt_cv_to_tool_file_cmd+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 #assume ordinary cross tools, or native build.
11707 lt_cv_to_tool_file_cmd=func_convert_file_noop
11708 case $host in
11709 *-*-mingw* )
11710 case $build in
11711 *-*-mingw* ) # actually msys
11712 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11713 ;;
11714 esac
11715 ;;
11716 esac
11717
11718 fi
11719
11720 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11722 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11723
11724
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11729 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11730 if ${lt_cv_ld_reload_flag+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 lt_cv_ld_reload_flag='-r'
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11736 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11737 reload_flag=$lt_cv_ld_reload_flag
11738 case $reload_flag in
11739 "" | " "*) ;;
11740 *) reload_flag=" $reload_flag" ;;
11741 esac
11742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11743 case $host_os in
11744 cygwin* | mingw* | pw32* | cegcc*)
11745 if test yes != "$GCC"; then
11746 reload_cmds=false
11747 fi
11748 ;;
11749 darwin*)
11750 if test yes = "$GCC"; then
11751 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11752 else
11753 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11754 fi
11755 ;;
11756 esac
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766 if test -n "$ac_tool_prefix"; then
11767 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11768 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_prog_OBJDUMP+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 if test -n "$OBJDUMP"; then
11775 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788 done
11789 done
11790 IFS=$as_save_IFS
11791
11792 fi
11793 fi
11794 OBJDUMP=$ac_cv_prog_OBJDUMP
11795 if test -n "$OBJDUMP"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11797 $as_echo "$OBJDUMP" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 fi
11802
11803
11804 fi
11805 if test -z "$ac_cv_prog_OBJDUMP"; then
11806 ac_ct_OBJDUMP=$OBJDUMP
11807 # Extract the first word of "objdump", so it can be a program name with args.
11808 set dummy objdump; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 if test -n "$ac_ct_OBJDUMP"; then
11815 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828 done
11829 done
11830 IFS=$as_save_IFS
11831
11832 fi
11833 fi
11834 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11835 if test -n "$ac_ct_OBJDUMP"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11837 $as_echo "$ac_ct_OBJDUMP" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842
11843 if test "x$ac_ct_OBJDUMP" = x; then
11844 OBJDUMP="false"
11845 else
11846 case $cross_compiling:$ac_tool_warned in
11847 yes:)
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850 ac_tool_warned=yes ;;
11851 esac
11852 OBJDUMP=$ac_ct_OBJDUMP
11853 fi
11854 else
11855 OBJDUMP="$ac_cv_prog_OBJDUMP"
11856 fi
11857
11858 test -z "$OBJDUMP" && OBJDUMP=objdump
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11869 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11870 if ${lt_cv_deplibs_check_method+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 lt_cv_file_magic_cmd='$MAGIC_CMD'
11874 lt_cv_file_magic_test_file=
11875 lt_cv_deplibs_check_method='unknown'
11876 # Need to set the preceding variable on all platforms that support
11877 # interlibrary dependencies.
11878 # 'none' -- dependencies not supported.
11879 # 'unknown' -- same as none, but documents that we really don't know.
11880 # 'pass_all' -- all dependencies passed with no checks.
11881 # 'test_compile' -- check by making test program.
11882 # 'file_magic [[regex]]' -- check by looking for files in library path
11883 # that responds to the $file_magic_cmd with a given extended regex.
11884 # If you have 'file' or equivalent on your system and you're not sure
11885 # whether 'pass_all' will *always* work, you probably want this one.
11886
11887 case $host_os in
11888 aix[4-9]*)
11889 lt_cv_deplibs_check_method=pass_all
11890 ;;
11891
11892 beos*)
11893 lt_cv_deplibs_check_method=pass_all
11894 ;;
11895
11896 bsdi[45]*)
11897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11898 lt_cv_file_magic_cmd='/usr/bin/file -L'
11899 lt_cv_file_magic_test_file=/shlib/libc.so
11900 ;;
11901
11902 cygwin*)
11903 # func_win32_libid is a shell function defined in ltmain.sh
11904 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11905 lt_cv_file_magic_cmd='func_win32_libid'
11906 ;;
11907
11908 mingw* | pw32*)
11909 # Base MSYS/MinGW do not provide the 'file' command needed by
11910 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11911 # unless we find 'file', for example because we are cross-compiling.
11912 if ( file / ) >/dev/null 2>&1; then
11913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11914 lt_cv_file_magic_cmd='func_win32_libid'
11915 else
11916 # Keep this pattern in sync with the one in func_win32_libid.
11917 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11918 lt_cv_file_magic_cmd='$OBJDUMP -f'
11919 fi
11920 ;;
11921
11922 cegcc*)
11923 # use the weaker test based on 'objdump'. See mingw*.
11924 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11925 lt_cv_file_magic_cmd='$OBJDUMP -f'
11926 ;;
11927
11928 darwin* | rhapsody*)
11929 lt_cv_deplibs_check_method=pass_all
11930 ;;
11931
11932 freebsd* | dragonfly*)
11933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11934 case $host_cpu in
11935 i*86 )
11936 # Not sure whether the presence of OpenBSD here was a mistake.
11937 # Let's accept both of them until this is cleared up.
11938 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11939 lt_cv_file_magic_cmd=/usr/bin/file
11940 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11941 ;;
11942 esac
11943 else
11944 lt_cv_deplibs_check_method=pass_all
11945 fi
11946 ;;
11947
11948 haiku*)
11949 lt_cv_deplibs_check_method=pass_all
11950 ;;
11951
11952 hpux10.20* | hpux11*)
11953 lt_cv_file_magic_cmd=/usr/bin/file
11954 case $host_cpu in
11955 ia64*)
11956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11957 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11958 ;;
11959 hppa*64*)
11960 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]'
11961 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11962 ;;
11963 *)
11964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11965 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11966 ;;
11967 esac
11968 ;;
11969
11970 interix[3-9]*)
11971 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11973 ;;
11974
11975 irix5* | irix6* | nonstopux*)
11976 case $LD in
11977 *-32|*"-32 ") libmagic=32-bit;;
11978 *-n32|*"-n32 ") libmagic=N32;;
11979 *-64|*"-64 ") libmagic=64-bit;;
11980 *) libmagic=never-match;;
11981 esac
11982 lt_cv_deplibs_check_method=pass_all
11983 ;;
11984
11985 # This must be glibc/ELF.
11986 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11987 lt_cv_deplibs_check_method=pass_all
11988 ;;
11989
11990 netbsd* | netbsdelf*-gnu)
11991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11993 else
11994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11995 fi
11996 ;;
11997
11998 newos6*)
11999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12000 lt_cv_file_magic_cmd=/usr/bin/file
12001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12002 ;;
12003
12004 *nto* | *qnx*)
12005 lt_cv_deplibs_check_method=pass_all
12006 ;;
12007
12008 openbsd* | bitrig*)
12009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12011 else
12012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12013 fi
12014 ;;
12015
12016 osf3* | osf4* | osf5*)
12017 lt_cv_deplibs_check_method=pass_all
12018 ;;
12019
12020 rdos*)
12021 lt_cv_deplibs_check_method=pass_all
12022 ;;
12023
12024 solaris*)
12025 lt_cv_deplibs_check_method=pass_all
12026 ;;
12027
12028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12029 lt_cv_deplibs_check_method=pass_all
12030 ;;
12031
12032 sysv4 | sysv4.3*)
12033 case $host_vendor in
12034 motorola)
12035 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]'
12036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12037 ;;
12038 ncr)
12039 lt_cv_deplibs_check_method=pass_all
12040 ;;
12041 sequent)
12042 lt_cv_file_magic_cmd='/bin/file'
12043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12044 ;;
12045 sni)
12046 lt_cv_file_magic_cmd='/bin/file'
12047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12048 lt_cv_file_magic_test_file=/lib/libc.so
12049 ;;
12050 siemens)
12051 lt_cv_deplibs_check_method=pass_all
12052 ;;
12053 pc)
12054 lt_cv_deplibs_check_method=pass_all
12055 ;;
12056 esac
12057 ;;
12058
12059 tpf*)
12060 lt_cv_deplibs_check_method=pass_all
12061 ;;
12062 os2*)
12063 lt_cv_deplibs_check_method=pass_all
12064 ;;
12065 esac
12066
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12069 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12070
12071 file_magic_glob=
12072 want_nocaseglob=no
12073 if test "$build" = "$host"; then
12074 case $host_os in
12075 mingw* | pw32*)
12076 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12077 want_nocaseglob=yes
12078 else
12079 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12080 fi
12081 ;;
12082 esac
12083 fi
12084
12085 file_magic_cmd=$lt_cv_file_magic_cmd
12086 deplibs_check_method=$lt_cv_deplibs_check_method
12087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 if test -n "$ac_tool_prefix"; then
12111 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12112 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if ${ac_cv_prog_DLLTOOL+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test -n "$DLLTOOL"; then
12119 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12120 else
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 fi
12137 fi
12138 DLLTOOL=$ac_cv_prog_DLLTOOL
12139 if test -n "$DLLTOOL"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12141 $as_echo "$DLLTOOL" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146
12147
12148 fi
12149 if test -z "$ac_cv_prog_DLLTOOL"; then
12150 ac_ct_DLLTOOL=$DLLTOOL
12151 # Extract the first word of "dlltool", so it can be a program name with args.
12152 set dummy dlltool; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$ac_ct_DLLTOOL"; then
12159 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12171 fi
12172 done
12173 done
12174 IFS=$as_save_IFS
12175
12176 fi
12177 fi
12178 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12179 if test -n "$ac_ct_DLLTOOL"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12181 $as_echo "$ac_ct_DLLTOOL" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186
12187 if test "x$ac_ct_DLLTOOL" = x; then
12188 DLLTOOL="false"
12189 else
12190 case $cross_compiling:$ac_tool_warned in
12191 yes:)
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12194 ac_tool_warned=yes ;;
12195 esac
12196 DLLTOOL=$ac_ct_DLLTOOL
12197 fi
12198 else
12199 DLLTOOL="$ac_cv_prog_DLLTOOL"
12200 fi
12201
12202 test -z "$DLLTOOL" && DLLTOOL=dlltool
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12214 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12215 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 lt_cv_sharedlib_from_linklib_cmd='unknown'
12219
12220 case $host_os in
12221 cygwin* | mingw* | pw32* | cegcc*)
12222 # two different shell functions defined in ltmain.sh;
12223 # decide which one to use based on capabilities of $DLLTOOL
12224 case `$DLLTOOL --help 2>&1` in
12225 *--identify-strict*)
12226 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12227 ;;
12228 *)
12229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12230 ;;
12231 esac
12232 ;;
12233 *)
12234 # fallback: assume linklib IS sharedlib
12235 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12236 ;;
12237 esac
12238
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12241 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12242 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12243 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12244
12245
12246
12247
12248
12249
12250
12251 if test -n "$ac_tool_prefix"; then
12252 for ac_prog in ar
12253 do
12254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_AR+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 if test -n "$AR"; then
12262 ac_cv_prog_AR="$AR" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12274 fi
12275 done
12276 done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 AR=$ac_cv_prog_AR
12282 if test -n "$AR"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12284 $as_echo "$AR" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290
12291 test -n "$AR" && break
12292 done
12293 fi
12294 if test -z "$AR"; then
12295 ac_ct_AR=$AR
12296 for ac_prog in ar
12297 do
12298 # Extract the first word of "$ac_prog", so it can be a program name with args.
12299 set dummy $ac_prog; ac_word=$2
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301 $as_echo_n "checking for $ac_word... " >&6; }
12302 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 if test -n "$ac_ct_AR"; then
12306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12307 else
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315 ac_cv_prog_ac_ct_AR="$ac_prog"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12318 fi
12319 done
12320 done
12321 IFS=$as_save_IFS
12322
12323 fi
12324 fi
12325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12326 if test -n "$ac_ct_AR"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12328 $as_echo "$ac_ct_AR" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332 fi
12333
12334
12335 test -n "$ac_ct_AR" && break
12336 done
12337
12338 if test "x$ac_ct_AR" = x; then
12339 AR="false"
12340 else
12341 case $cross_compiling:$ac_tool_warned in
12342 yes:)
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12345 ac_tool_warned=yes ;;
12346 esac
12347 AR=$ac_ct_AR
12348 fi
12349 fi
12350
12351 : ${AR=ar}
12352 : ${AR_FLAGS=cru}
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12365 $as_echo_n "checking for archiver @FILE support... " >&6; }
12366 if ${lt_cv_ar_at_file+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 lt_cv_ar_at_file=no
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372
12373 int
12374 main ()
12375 {
12376
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_compile "$LINENO"; then :
12382 echo conftest.$ac_objext > conftest.lst
12383 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12385 (eval $lt_ar_try) 2>&5
12386 ac_status=$?
12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12388 test $ac_status = 0; }
12389 if test 0 -eq "$ac_status"; then
12390 # Ensure the archiver fails upon bogus file names.
12391 rm -f conftest.$ac_objext libconftest.a
12392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12393 (eval $lt_ar_try) 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12396 test $ac_status = 0; }
12397 if test 0 -ne "$ac_status"; then
12398 lt_cv_ar_at_file=@
12399 fi
12400 fi
12401 rm -f conftest.* libconftest.a
12402
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12408 $as_echo "$lt_cv_ar_at_file" >&6; }
12409
12410 if test no = "$lt_cv_ar_at_file"; then
12411 archiver_list_spec=
12412 else
12413 archiver_list_spec=$lt_cv_ar_at_file
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422 if test -n "$ac_tool_prefix"; then
12423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12424 set dummy ${ac_tool_prefix}strip; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_STRIP+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$STRIP"; then
12431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444 done
12445 done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 STRIP=$ac_cv_prog_STRIP
12451 if test -n "$STRIP"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12453 $as_echo "$STRIP" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457 fi
12458
12459
12460 fi
12461 if test -z "$ac_cv_prog_STRIP"; then
12462 ac_ct_STRIP=$STRIP
12463 # Extract the first word of "strip", so it can be a program name with args.
12464 set dummy strip; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 if test -n "$ac_ct_STRIP"; then
12471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12472 else
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480 ac_cv_prog_ac_ct_STRIP="strip"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484 done
12485 done
12486 IFS=$as_save_IFS
12487
12488 fi
12489 fi
12490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12491 if test -n "$ac_ct_STRIP"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12493 $as_echo "$ac_ct_STRIP" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499 if test "x$ac_ct_STRIP" = x; then
12500 STRIP=":"
12501 else
12502 case $cross_compiling:$ac_tool_warned in
12503 yes:)
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12506 ac_tool_warned=yes ;;
12507 esac
12508 STRIP=$ac_ct_STRIP
12509 fi
12510 else
12511 STRIP="$ac_cv_prog_STRIP"
12512 fi
12513
12514 test -z "$STRIP" && STRIP=:
12515
12516
12517
12518
12519
12520
12521 if test -n "$ac_tool_prefix"; then
12522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_prog_RANLIB+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 if test -n "$RANLIB"; then
12530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12531 else
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12534 do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12542 fi
12543 done
12544 done
12545 IFS=$as_save_IFS
12546
12547 fi
12548 fi
12549 RANLIB=$ac_cv_prog_RANLIB
12550 if test -n "$RANLIB"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12552 $as_echo "$RANLIB" >&6; }
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 fi
12557
12558
12559 fi
12560 if test -z "$ac_cv_prog_RANLIB"; then
12561 ac_ct_RANLIB=$RANLIB
12562 # Extract the first word of "ranlib", so it can be a program name with args.
12563 set dummy ranlib; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 if test -n "$ac_ct_RANLIB"; then
12570 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579 ac_cv_prog_ac_ct_RANLIB="ranlib"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583 done
12584 done
12585 IFS=$as_save_IFS
12586
12587 fi
12588 fi
12589 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12590 if test -n "$ac_ct_RANLIB"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12592 $as_echo "$ac_ct_RANLIB" >&6; }
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597
12598 if test "x$ac_ct_RANLIB" = x; then
12599 RANLIB=":"
12600 else
12601 case $cross_compiling:$ac_tool_warned in
12602 yes:)
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12605 ac_tool_warned=yes ;;
12606 esac
12607 RANLIB=$ac_ct_RANLIB
12608 fi
12609 else
12610 RANLIB="$ac_cv_prog_RANLIB"
12611 fi
12612
12613 test -z "$RANLIB" && RANLIB=:
12614
12615
12616
12617
12618
12619
12620 # Determine commands to create old-style static archives.
12621 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12622 old_postinstall_cmds='chmod 644 $oldlib'
12623 old_postuninstall_cmds=
12624
12625 if test -n "$RANLIB"; then
12626 case $host_os in
12627 bitrig* | openbsd*)
12628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12629 ;;
12630 *)
12631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12632 ;;
12633 esac
12634 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12635 fi
12636
12637 case $host_os in
12638 darwin*)
12639 lock_old_archive_extraction=yes ;;
12640 *)
12641 lock_old_archive_extraction=no ;;
12642 esac
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
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682 # If no C compiler was specified, use CC.
12683 LTCC=${LTCC-"$CC"}
12684
12685 # If no C compiler flags were specified, use CFLAGS.
12686 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12687
12688 # Allow CC to be a program name with arguments.
12689 compiler=$CC
12690
12691
12692 # Check for command to grab the raw symbol name followed by C symbol from nm.
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12694 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12695 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698
12699 # These are sane defaults that work on at least a few old systems.
12700 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12701
12702 # Character class describing NM global symbol codes.
12703 symcode='[BCDEGRST]'
12704
12705 # Regexp to match symbols that can be accessed directly from C.
12706 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12707
12708 # Define system-specific variables.
12709 case $host_os in
12710 aix*)
12711 symcode='[BCDT]'
12712 ;;
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 symcode='[ABCDGISTW]'
12715 ;;
12716 hpux*)
12717 if test ia64 = "$host_cpu"; then
12718 symcode='[ABCDEGRST]'
12719 fi
12720 ;;
12721 irix* | nonstopux*)
12722 symcode='[BCDEGRST]'
12723 ;;
12724 osf*)
12725 symcode='[BCDEGQRST]'
12726 ;;
12727 solaris*)
12728 symcode='[BDRT]'
12729 ;;
12730 sco3.2v5*)
12731 symcode='[DT]'
12732 ;;
12733 sysv4.2uw2*)
12734 symcode='[DT]'
12735 ;;
12736 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12737 symcode='[ABDT]'
12738 ;;
12739 sysv4)
12740 symcode='[DFNSTU]'
12741 ;;
12742 esac
12743
12744 # If we're using GNU nm, then use its standard symbol codes.
12745 case `$NM -V 2>&1` in
12746 *GNU* | *'with BFD'*)
12747 symcode='[ABCDGIRSTW]' ;;
12748 esac
12749
12750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12751 # Gets list of data symbols to import.
12752 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12753 # Adjust the below global symbol transforms to fixup imported variables.
12754 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12755 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12756 lt_c_name_lib_hook="\
12757 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12758 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12759 else
12760 # Disable hooks by default.
12761 lt_cv_sys_global_symbol_to_import=
12762 lt_cdecl_hook=
12763 lt_c_name_hook=
12764 lt_c_name_lib_hook=
12765 fi
12766
12767 # Transform an extracted symbol line into a proper C declaration.
12768 # Some systems (esp. on ia64) link data and code symbols differently,
12769 # so use this general approach.
12770 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12771 $lt_cdecl_hook\
12772 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12773 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12774
12775 # Transform an extracted symbol line into symbol name and symbol address
12776 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12777 $lt_c_name_hook\
12778 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12779 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12780
12781 # Transform an extracted symbol line into symbol name with lib prefix and
12782 # symbol address.
12783 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12784 $lt_c_name_lib_hook\
12785 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12786 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12787 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12788
12789 # Handle CRLF in mingw tool chain
12790 opt_cr=
12791 case $build_os in
12792 mingw*)
12793 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12794 ;;
12795 esac
12796
12797 # Try without a prefix underscore, then with it.
12798 for ac_symprfx in "" "_"; do
12799
12800 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12801 symxfrm="\\1 $ac_symprfx\\2 \\2"
12802
12803 # Write the raw and C identifiers.
12804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12805 # Fake it for dumpbin and say T for any non-static function,
12806 # D for any global variable and I for any imported variable.
12807 # Also find C++ and __fastcall symbols from MSVC++,
12808 # which start with @ or ?.
12809 lt_cv_sys_global_symbol_pipe="$AWK '"\
12810 " {last_section=section; section=\$ 3};"\
12811 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12812 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12813 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12814 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12815 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12816 " \$ 0!~/External *\|/{next};"\
12817 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12818 " {if(hide[section]) next};"\
12819 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12820 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12821 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12822 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12823 " ' prfx=^$ac_symprfx"
12824 else
12825 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12826 fi
12827 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12828
12829 # Check to see that the pipe works correctly.
12830 pipe_works=no
12831
12832 rm -f conftest*
12833 cat > conftest.$ac_ext <<_LT_EOF
12834 #ifdef __cplusplus
12835 extern "C" {
12836 #endif
12837 char nm_test_var;
12838 void nm_test_func(void);
12839 void nm_test_func(void){}
12840 #ifdef __cplusplus
12841 }
12842 #endif
12843 int main(){nm_test_var='a';nm_test_func();return(0);}
12844 _LT_EOF
12845
12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12847 (eval $ac_compile) 2>&5
12848 ac_status=$?
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; }; then
12851 # Now try to grab the symbols.
12852 nlist=conftest.nm
12853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12854 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12855 ac_status=$?
12856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857 test $ac_status = 0; } && test -s "$nlist"; then
12858 # Try sorting and uniquifying the output.
12859 if sort "$nlist" | uniq > "$nlist"T; then
12860 mv -f "$nlist"T "$nlist"
12861 else
12862 rm -f "$nlist"T
12863 fi
12864
12865 # Make sure that we snagged all the symbols we need.
12866 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12867 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12868 cat <<_LT_EOF > conftest.$ac_ext
12869 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12870 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12871 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12872 relocations are performed -- see ld's documentation on pseudo-relocs. */
12873 # define LT_DLSYM_CONST
12874 #elif defined __osf__
12875 /* This system does not cope well with relocations in const data. */
12876 # define LT_DLSYM_CONST
12877 #else
12878 # define LT_DLSYM_CONST const
12879 #endif
12880
12881 #ifdef __cplusplus
12882 extern "C" {
12883 #endif
12884
12885 _LT_EOF
12886 # Now generate the symbol file.
12887 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12888
12889 cat <<_LT_EOF >> conftest.$ac_ext
12890
12891 /* The mapping between symbol names and symbols. */
12892 LT_DLSYM_CONST struct {
12893 const char *name;
12894 void *address;
12895 }
12896 lt__PROGRAM__LTX_preloaded_symbols[] =
12897 {
12898 { "@PROGRAM@", (void *) 0 },
12899 _LT_EOF
12900 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12901 cat <<\_LT_EOF >> conftest.$ac_ext
12902 {0, (void *) 0}
12903 };
12904
12905 /* This works around a problem in FreeBSD linker */
12906 #ifdef FREEBSD_WORKAROUND
12907 static const void *lt_preloaded_setup() {
12908 return lt__PROGRAM__LTX_preloaded_symbols;
12909 }
12910 #endif
12911
12912 #ifdef __cplusplus
12913 }
12914 #endif
12915 _LT_EOF
12916 # Now try linking the two files.
12917 mv conftest.$ac_objext conftstm.$ac_objext
12918 lt_globsym_save_LIBS=$LIBS
12919 lt_globsym_save_CFLAGS=$CFLAGS
12920 LIBS=conftstm.$ac_objext
12921 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12923 (eval $ac_link) 2>&5
12924 ac_status=$?
12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12927 pipe_works=yes
12928 fi
12929 LIBS=$lt_globsym_save_LIBS
12930 CFLAGS=$lt_globsym_save_CFLAGS
12931 else
12932 echo "cannot find nm_test_func in $nlist" >&5
12933 fi
12934 else
12935 echo "cannot find nm_test_var in $nlist" >&5
12936 fi
12937 else
12938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12939 fi
12940 else
12941 echo "$progname: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12943 fi
12944 rm -rf conftest* conftst*
12945
12946 # Do not use the global_symbol_pipe unless it works.
12947 if test yes = "$pipe_works"; then
12948 break
12949 else
12950 lt_cv_sys_global_symbol_pipe=
12951 fi
12952 done
12953
12954 fi
12955
12956 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12957 lt_cv_sys_global_symbol_to_cdecl=
12958 fi
12959 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12961 $as_echo "failed" >&6; }
12962 else
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12964 $as_echo "ok" >&6; }
12965 fi
12966
12967 # Response file support.
12968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12969 nm_file_list_spec='@'
12970 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12971 nm_file_list_spec='@'
12972 fi
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
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13011 $as_echo_n "checking for sysroot... " >&6; }
13012
13013 # Check whether --with-sysroot was given.
13014 if test "${with_sysroot+set}" = set; then :
13015 withval=$with_sysroot;
13016 else
13017 with_sysroot=no
13018 fi
13019
13020
13021 lt_sysroot=
13022 case $with_sysroot in #(
13023 yes)
13024 if test yes = "$GCC"; then
13025 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13026 fi
13027 ;; #(
13028 /*)
13029 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13030 ;; #(
13031 no|'')
13032 ;; #(
13033 *)
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13035 $as_echo "$with_sysroot" >&6; }
13036 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13037 ;;
13038 esac
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13041 $as_echo "${lt_sysroot:-no}" >&6; }
13042
13043
13044
13045
13046
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13048 $as_echo_n "checking for a working dd... " >&6; }
13049 if ${ac_cv_path_lt_DD+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 printf 0123456789abcdef0123456789abcdef >conftest.i
13053 cat conftest.i conftest.i >conftest2.i
13054 : ${lt_DD:=$DD}
13055 if test -z "$lt_DD"; then
13056 ac_path_lt_DD_found=false
13057 # Loop through the user's path and test for each of PROGNAME-LIST
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13060 do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_prog in dd; do
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13066 as_fn_executable_p "$ac_path_lt_DD" || continue
13067 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13068 cmp -s conftest.i conftest.out \
13069 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13070 fi
13071 $ac_path_lt_DD_found && break 3
13072 done
13073 done
13074 done
13075 IFS=$as_save_IFS
13076 if test -z "$ac_cv_path_lt_DD"; then
13077 :
13078 fi
13079 else
13080 ac_cv_path_lt_DD=$lt_DD
13081 fi
13082
13083 rm -f conftest.i conftest2.i conftest.out
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13086 $as_echo "$ac_cv_path_lt_DD" >&6; }
13087
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13090 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13091 if ${lt_cv_truncate_bin+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 printf 0123456789abcdef0123456789abcdef >conftest.i
13095 cat conftest.i conftest.i >conftest2.i
13096 lt_cv_truncate_bin=
13097 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13098 cmp -s conftest.i conftest.out \
13099 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13100 fi
13101 rm -f conftest.i conftest2.i conftest.out
13102 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13105 $as_echo "$lt_cv_truncate_bin" >&6; }
13106
13107
13108
13109
13110
13111
13112
13113 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13114 func_cc_basename ()
13115 {
13116 for cc_temp in $*""; do
13117 case $cc_temp in
13118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13120 \-*) ;;
13121 *) break;;
13122 esac
13123 done
13124 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13125 }
13126
13127 # Check whether --enable-libtool-lock was given.
13128 if test "${enable_libtool_lock+set}" = set; then :
13129 enableval=$enable_libtool_lock;
13130 fi
13131
13132 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13133
13134 # Some flags need to be propagated to the compiler or linker for good
13135 # libtool support.
13136 case $host in
13137 ia64-*-hpux*)
13138 # Find out what ABI is being produced by ac_compile, and set mode
13139 # options accordingly.
13140 echo 'int i;' > conftest.$ac_ext
13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13142 (eval $ac_compile) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 case `/usr/bin/file conftest.$ac_objext` in
13147 *ELF-32*)
13148 HPUX_IA64_MODE=32
13149 ;;
13150 *ELF-64*)
13151 HPUX_IA64_MODE=64
13152 ;;
13153 esac
13154 fi
13155 rm -rf conftest*
13156 ;;
13157 *-*-irix6*)
13158 # Find out what ABI is being produced by ac_compile, and set linker
13159 # options accordingly.
13160 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13162 (eval $ac_compile) 2>&5
13163 ac_status=$?
13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165 test $ac_status = 0; }; then
13166 if test yes = "$lt_cv_prog_gnu_ld"; then
13167 case `/usr/bin/file conftest.$ac_objext` in
13168 *32-bit*)
13169 LD="${LD-ld} -melf32bsmip"
13170 ;;
13171 *N32*)
13172 LD="${LD-ld} -melf32bmipn32"
13173 ;;
13174 *64-bit*)
13175 LD="${LD-ld} -melf64bmip"
13176 ;;
13177 esac
13178 else
13179 case `/usr/bin/file conftest.$ac_objext` in
13180 *32-bit*)
13181 LD="${LD-ld} -32"
13182 ;;
13183 *N32*)
13184 LD="${LD-ld} -n32"
13185 ;;
13186 *64-bit*)
13187 LD="${LD-ld} -64"
13188 ;;
13189 esac
13190 fi
13191 fi
13192 rm -rf conftest*
13193 ;;
13194
13195 mips64*-*linux*)
13196 # Find out what ABI is being produced by ac_compile, and set linker
13197 # options accordingly.
13198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13200 (eval $ac_compile) 2>&5
13201 ac_status=$?
13202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13203 test $ac_status = 0; }; then
13204 emul=elf
13205 case `/usr/bin/file conftest.$ac_objext` in
13206 *32-bit*)
13207 emul="${emul}32"
13208 ;;
13209 *64-bit*)
13210 emul="${emul}64"
13211 ;;
13212 esac
13213 case `/usr/bin/file conftest.$ac_objext` in
13214 *MSB*)
13215 emul="${emul}btsmip"
13216 ;;
13217 *LSB*)
13218 emul="${emul}ltsmip"
13219 ;;
13220 esac
13221 case `/usr/bin/file conftest.$ac_objext` in
13222 *N32*)
13223 emul="${emul}n32"
13224 ;;
13225 esac
13226 LD="${LD-ld} -m $emul"
13227 fi
13228 rm -rf conftest*
13229 ;;
13230
13231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13233 # Find out what ABI is being produced by ac_compile, and set linker
13234 # options accordingly. Note that the listed cases only cover the
13235 # situations where additional linker options are needed (such as when
13236 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13237 # vice versa); the common cases where no linker options are needed do
13238 # not appear in the list.
13239 echo 'int i;' > conftest.$ac_ext
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241 (eval $ac_compile) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 case `/usr/bin/file conftest.o` in
13246 *32-bit*)
13247 case $host in
13248 x86_64-*kfreebsd*-gnu)
13249 LD="${LD-ld} -m elf_i386_fbsd"
13250 ;;
13251 x86_64-*linux*)
13252 case `/usr/bin/file conftest.o` in
13253 *x86-64*)
13254 LD="${LD-ld} -m elf32_x86_64"
13255 ;;
13256 *)
13257 LD="${LD-ld} -m elf_i386"
13258 ;;
13259 esac
13260 ;;
13261 powerpc64le-*linux*)
13262 LD="${LD-ld} -m elf32lppclinux"
13263 ;;
13264 powerpc64-*linux*)
13265 LD="${LD-ld} -m elf32ppclinux"
13266 ;;
13267 s390x-*linux*)
13268 LD="${LD-ld} -m elf_s390"
13269 ;;
13270 sparc64-*linux*)
13271 LD="${LD-ld} -m elf32_sparc"
13272 ;;
13273 esac
13274 ;;
13275 *64-bit*)
13276 case $host in
13277 x86_64-*kfreebsd*-gnu)
13278 LD="${LD-ld} -m elf_x86_64_fbsd"
13279 ;;
13280 x86_64-*linux*)
13281 LD="${LD-ld} -m elf_x86_64"
13282 ;;
13283 powerpcle-*linux*)
13284 LD="${LD-ld} -m elf64lppc"
13285 ;;
13286 powerpc-*linux*)
13287 LD="${LD-ld} -m elf64ppc"
13288 ;;
13289 s390*-*linux*|s390*-*tpf*)
13290 LD="${LD-ld} -m elf64_s390"
13291 ;;
13292 sparc*-*linux*)
13293 LD="${LD-ld} -m elf64_sparc"
13294 ;;
13295 esac
13296 ;;
13297 esac
13298 fi
13299 rm -rf conftest*
13300 ;;
13301
13302 *-*-sco3.2v5*)
13303 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13304 SAVE_CFLAGS=$CFLAGS
13305 CFLAGS="$CFLAGS -belf"
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13307 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13308 if ${lt_cv_cc_needs_belf+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_ext=c
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13316
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319
13320 int
13321 main ()
13322 {
13323
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 lt_cv_cc_needs_belf=yes
13330 else
13331 lt_cv_cc_needs_belf=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13343 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13344 if test yes != "$lt_cv_cc_needs_belf"; then
13345 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13346 CFLAGS=$SAVE_CFLAGS
13347 fi
13348 ;;
13349 *-*solaris*)
13350 # Find out what ABI is being produced by ac_compile, and set linker
13351 # options accordingly.
13352 echo 'int i;' > conftest.$ac_ext
13353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13354 (eval $ac_compile) 2>&5
13355 ac_status=$?
13356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13357 test $ac_status = 0; }; then
13358 case `/usr/bin/file conftest.o` in
13359 *64-bit*)
13360 case $lt_cv_prog_gnu_ld in
13361 yes*)
13362 case $host in
13363 i?86-*-solaris*|x86_64-*-solaris*)
13364 LD="${LD-ld} -m elf_x86_64"
13365 ;;
13366 sparc*-*-solaris*)
13367 LD="${LD-ld} -m elf64_sparc"
13368 ;;
13369 esac
13370 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13371 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13372 LD=${LD-ld}_sol2
13373 fi
13374 ;;
13375 *)
13376 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13377 LD="${LD-ld} -64"
13378 fi
13379 ;;
13380 esac
13381 ;;
13382 esac
13383 fi
13384 rm -rf conftest*
13385 ;;
13386 esac
13387
13388 need_locks=$enable_libtool_lock
13389
13390 if test -n "$ac_tool_prefix"; then
13391 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13392 set dummy ${ac_tool_prefix}mt; ac_word=$2
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394 $as_echo_n "checking for $ac_word... " >&6; }
13395 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 if test -n "$MANIFEST_TOOL"; then
13399 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13400 else
13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in $PATH
13403 do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412 done
13413 done
13414 IFS=$as_save_IFS
13415
13416 fi
13417 fi
13418 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13419 if test -n "$MANIFEST_TOOL"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13421 $as_echo "$MANIFEST_TOOL" >&6; }
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426
13427
13428 fi
13429 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13430 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13431 # Extract the first word of "mt", so it can be a program name with args.
13432 set dummy mt; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 if test -n "$ac_ct_MANIFEST_TOOL"; then
13439 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452 done
13453 done
13454 IFS=$as_save_IFS
13455
13456 fi
13457 fi
13458 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13459 if test -n "$ac_ct_MANIFEST_TOOL"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13461 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466
13467 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13468 MANIFEST_TOOL=":"
13469 else
13470 case $cross_compiling:$ac_tool_warned in
13471 yes:)
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13474 ac_tool_warned=yes ;;
13475 esac
13476 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13477 fi
13478 else
13479 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13480 fi
13481
13482 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13484 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13485 if ${lt_cv_path_mainfest_tool+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 lt_cv_path_mainfest_tool=no
13489 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13490 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13491 cat conftest.err >&5
13492 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13493 lt_cv_path_mainfest_tool=yes
13494 fi
13495 rm -f conftest*
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13498 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13499 if test yes != "$lt_cv_path_mainfest_tool"; then
13500 MANIFEST_TOOL=:
13501 fi
13502
13503
13504
13505
13506
13507
13508 case $host_os in
13509 rhapsody* | darwin*)
13510 if test -n "$ac_tool_prefix"; then
13511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test -n "$DSYMUTIL"; then
13519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13520 else
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13523 do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13531 fi
13532 done
13533 done
13534 IFS=$as_save_IFS
13535
13536 fi
13537 fi
13538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13539 if test -n "$DSYMUTIL"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13541 $as_echo "$DSYMUTIL" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545 fi
13546
13547
13548 fi
13549 if test -z "$ac_cv_prog_DSYMUTIL"; then
13550 ac_ct_DSYMUTIL=$DSYMUTIL
13551 # Extract the first word of "dsymutil", so it can be a program name with args.
13552 set dummy dsymutil; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$ac_ct_DSYMUTIL"; then
13559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13563 do
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13571 fi
13572 done
13573 done
13574 IFS=$as_save_IFS
13575
13576 fi
13577 fi
13578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13579 if test -n "$ac_ct_DSYMUTIL"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13581 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 fi
13586
13587 if test "x$ac_ct_DSYMUTIL" = x; then
13588 DSYMUTIL=":"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 DSYMUTIL=$ac_ct_DSYMUTIL
13597 fi
13598 else
13599 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13600 fi
13601
13602 if test -n "$ac_tool_prefix"; then
13603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_NMEDIT+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$NMEDIT"; then
13611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624 done
13625 done
13626 IFS=$as_save_IFS
13627
13628 fi
13629 fi
13630 NMEDIT=$ac_cv_prog_NMEDIT
13631 if test -n "$NMEDIT"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13633 $as_echo "$NMEDIT" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639
13640 fi
13641 if test -z "$ac_cv_prog_NMEDIT"; then
13642 ac_ct_NMEDIT=$NMEDIT
13643 # Extract the first word of "nmedit", so it can be a program name with args.
13644 set dummy nmedit; ac_word=$2
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646 $as_echo_n "checking for $ac_word... " >&6; }
13647 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 if test -n "$ac_ct_NMEDIT"; then
13651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13652 else
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13655 do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13660 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13663 fi
13664 done
13665 done
13666 IFS=$as_save_IFS
13667
13668 fi
13669 fi
13670 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13671 if test -n "$ac_ct_NMEDIT"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13673 $as_echo "$ac_ct_NMEDIT" >&6; }
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677 fi
13678
13679 if test "x$ac_ct_NMEDIT" = x; then
13680 NMEDIT=":"
13681 else
13682 case $cross_compiling:$ac_tool_warned in
13683 yes:)
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13686 ac_tool_warned=yes ;;
13687 esac
13688 NMEDIT=$ac_ct_NMEDIT
13689 fi
13690 else
13691 NMEDIT="$ac_cv_prog_NMEDIT"
13692 fi
13693
13694 if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_LIPO+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$LIPO"; then
13703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 fi
13721 fi
13722 LIPO=$ac_cv_prog_LIPO
13723 if test -n "$LIPO"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13725 $as_echo "$LIPO" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730
13731
13732 fi
13733 if test -z "$ac_cv_prog_LIPO"; then
13734 ac_ct_LIPO=$LIPO
13735 # Extract the first word of "lipo", so it can be a program name with args.
13736 set dummy lipo; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 if test -n "$ac_ct_LIPO"; then
13743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13752 ac_cv_prog_ac_ct_LIPO="lipo"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13755 fi
13756 done
13757 done
13758 IFS=$as_save_IFS
13759
13760 fi
13761 fi
13762 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13763 if test -n "$ac_ct_LIPO"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13765 $as_echo "$ac_ct_LIPO" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13769 fi
13770
13771 if test "x$ac_ct_LIPO" = x; then
13772 LIPO=":"
13773 else
13774 case $cross_compiling:$ac_tool_warned in
13775 yes:)
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13778 ac_tool_warned=yes ;;
13779 esac
13780 LIPO=$ac_ct_LIPO
13781 fi
13782 else
13783 LIPO="$ac_cv_prog_LIPO"
13784 fi
13785
13786 if test -n "$ac_tool_prefix"; then
13787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13788 set dummy ${ac_tool_prefix}otool; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_OTOOL+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$OTOOL"; then
13795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 fi
13813 fi
13814 OTOOL=$ac_cv_prog_OTOOL
13815 if test -n "$OTOOL"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13817 $as_echo "$OTOOL" >&6; }
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 $as_echo "no" >&6; }
13821 fi
13822
13823
13824 fi
13825 if test -z "$ac_cv_prog_OTOOL"; then
13826 ac_ct_OTOOL=$OTOOL
13827 # Extract the first word of "otool", so it can be a program name with args.
13828 set dummy otool; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 if test -n "$ac_ct_OTOOL"; then
13835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13836 else
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_prog_ac_ct_OTOOL="otool"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi
13853 fi
13854 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13855 if test -n "$ac_ct_OTOOL"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13857 $as_echo "$ac_ct_OTOOL" >&6; }
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860 $as_echo "no" >&6; }
13861 fi
13862
13863 if test "x$ac_ct_OTOOL" = x; then
13864 OTOOL=":"
13865 else
13866 case $cross_compiling:$ac_tool_warned in
13867 yes:)
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13870 ac_tool_warned=yes ;;
13871 esac
13872 OTOOL=$ac_ct_OTOOL
13873 fi
13874 else
13875 OTOOL="$ac_cv_prog_OTOOL"
13876 fi
13877
13878 if test -n "$ac_tool_prefix"; then
13879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13880 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_prog_OTOOL64+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 if test -n "$OTOOL64"; then
13887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13888 else
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13891 do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900 done
13901 done
13902 IFS=$as_save_IFS
13903
13904 fi
13905 fi
13906 OTOOL64=$ac_cv_prog_OTOOL64
13907 if test -n "$OTOOL64"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13909 $as_echo "$OTOOL64" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13913 fi
13914
13915
13916 fi
13917 if test -z "$ac_cv_prog_OTOOL64"; then
13918 ac_ct_OTOOL64=$OTOOL64
13919 # Extract the first word of "otool64", so it can be a program name with args.
13920 set dummy otool64; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 if test -n "$ac_ct_OTOOL64"; then
13927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_ac_ct_OTOOL64="otool64"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13939 fi
13940 done
13941 done
13942 IFS=$as_save_IFS
13943
13944 fi
13945 fi
13946 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13947 if test -n "$ac_ct_OTOOL64"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13949 $as_echo "$ac_ct_OTOOL64" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955 if test "x$ac_ct_OTOOL64" = x; then
13956 OTOOL64=":"
13957 else
13958 case $cross_compiling:$ac_tool_warned in
13959 yes:)
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13962 ac_tool_warned=yes ;;
13963 esac
13964 OTOOL64=$ac_ct_OTOOL64
13965 fi
13966 else
13967 OTOOL64="$ac_cv_prog_OTOOL64"
13968 fi
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13997 $as_echo_n "checking for -single_module linker flag... " >&6; }
13998 if ${lt_cv_apple_cc_single_mod+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 lt_cv_apple_cc_single_mod=no
14002 if test -z "$LT_MULTI_MODULE"; then
14003 # By default we will add the -single_module flag. You can override
14004 # by either setting the environment variable LT_MULTI_MODULE
14005 # non-empty at configure time, or by adding -multi_module to the
14006 # link flags.
14007 rm -rf libconftest.dylib*
14008 echo "int foo(void){return 1;}" > conftest.c
14009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14010 -dynamiclib -Wl,-single_module conftest.c" >&5
14011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14013 _lt_result=$?
14014 # If there is a non-empty error log, and "single_module"
14015 # appears in it, assume the flag caused a linker warning
14016 if test -s conftest.err && $GREP single_module conftest.err; then
14017 cat conftest.err >&5
14018 # Otherwise, if the output was created with a 0 exit code from
14019 # the compiler, it worked.
14020 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14021 lt_cv_apple_cc_single_mod=yes
14022 else
14023 cat conftest.err >&5
14024 fi
14025 rm -rf libconftest.dylib*
14026 rm -f conftest.*
14027 fi
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14030 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14033 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14034 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 lt_cv_ld_exported_symbols_list=no
14038 save_LDFLAGS=$LDFLAGS
14039 echo "_main" > conftest.sym
14040 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 int
14045 main ()
14046 {
14047
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 lt_cv_ld_exported_symbols_list=yes
14054 else
14055 lt_cv_ld_exported_symbols_list=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LDFLAGS=$save_LDFLAGS
14060
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14063 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14064
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14066 $as_echo_n "checking for -force_load linker flag... " >&6; }
14067 if ${lt_cv_ld_force_load+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 lt_cv_ld_force_load=no
14071 cat > conftest.c << _LT_EOF
14072 int forced_loaded() { return 2;}
14073 _LT_EOF
14074 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14075 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14076 echo "$AR cru libconftest.a conftest.o" >&5
14077 $AR cru libconftest.a conftest.o 2>&5
14078 echo "$RANLIB libconftest.a" >&5
14079 $RANLIB libconftest.a 2>&5
14080 cat > conftest.c << _LT_EOF
14081 int main() { return 0;}
14082 _LT_EOF
14083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14085 _lt_result=$?
14086 if test -s conftest.err && $GREP force_load conftest.err; then
14087 cat conftest.err >&5
14088 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14089 lt_cv_ld_force_load=yes
14090 else
14091 cat conftest.err >&5
14092 fi
14093 rm -f conftest.err libconftest.a conftest conftest.c
14094 rm -rf conftest.dSYM
14095
14096 fi
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14098 $as_echo "$lt_cv_ld_force_load" >&6; }
14099 case $host_os in
14100 rhapsody* | darwin1.[012])
14101 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14102 darwin1.*)
14103 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14104 darwin*) # darwin 5.x on
14105 # if running on 10.5 or later, the deployment target defaults
14106 # to the OS version, if on x86, and 10.4, the deployment
14107 # target defaults to 10.4. Don't you love it?
14108 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14109 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14110 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14111 10.[012][,.]*)
14112 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14113 10.*)
14114 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14115 esac
14116 ;;
14117 esac
14118 if test yes = "$lt_cv_apple_cc_single_mod"; then
14119 _lt_dar_single_mod='$single_module'
14120 fi
14121 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14122 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14123 else
14124 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14125 fi
14126 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14127 _lt_dsymutil='~$DSYMUTIL $lib || :'
14128 else
14129 _lt_dsymutil=
14130 fi
14131 ;;
14132 esac
14133
14134 # func_munge_path_list VARIABLE PATH
14135 # -----------------------------------
14136 # VARIABLE is name of variable containing _space_ separated list of
14137 # directories to be munged by the contents of PATH, which is string
14138 # having a format:
14139 # "DIR[:DIR]:"
14140 # string "DIR[ DIR]" will be prepended to VARIABLE
14141 # ":DIR[:DIR]"
14142 # string "DIR[ DIR]" will be appended to VARIABLE
14143 # "DIRP[:DIRP]::[DIRA:]DIRA"
14144 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14145 # "DIRA[ DIRA]" will be appended to VARIABLE
14146 # "DIR[:DIR]"
14147 # VARIABLE will be replaced by "DIR[ DIR]"
14148 func_munge_path_list ()
14149 {
14150 case x$2 in
14151 x)
14152 ;;
14153 *:)
14154 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14155 ;;
14156 x:*)
14157 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14158 ;;
14159 *::*)
14160 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14161 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14162 ;;
14163 *)
14164 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14165 ;;
14166 esac
14167 }
14168
14169 for ac_header in dlfcn.h
14170 do :
14171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14172 "
14173 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14174 cat >>confdefs.h <<_ACEOF
14175 #define HAVE_DLFCN_H 1
14176 _ACEOF
14177
14178 fi
14179
14180 done
14181
14182
14183
14184
14185
14186 # Set options
14187
14188
14189
14190 enable_dlopen=no
14191
14192
14193 enable_win32_dll=no
14194
14195
14196 # Check whether --enable-shared was given.
14197 if test "${enable_shared+set}" = set; then :
14198 enableval=$enable_shared; p=${PACKAGE-default}
14199 case $enableval in
14200 yes) enable_shared=yes ;;
14201 no) enable_shared=no ;;
14202 *)
14203 enable_shared=no
14204 # Look at the argument we got. We use all the common list separators.
14205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14206 for pkg in $enableval; do
14207 IFS=$lt_save_ifs
14208 if test "X$pkg" = "X$p"; then
14209 enable_shared=yes
14210 fi
14211 done
14212 IFS=$lt_save_ifs
14213 ;;
14214 esac
14215 else
14216 enable_shared=yes
14217 fi
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229 # Check whether --with-pic was given.
14230 if test "${with_pic+set}" = set; then :
14231 withval=$with_pic; lt_p=${PACKAGE-default}
14232 case $withval in
14233 yes|no) pic_mode=$withval ;;
14234 *)
14235 pic_mode=default
14236 # Look at the argument we got. We use all the common list separators.
14237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14238 for lt_pkg in $withval; do
14239 IFS=$lt_save_ifs
14240 if test "X$lt_pkg" = "X$lt_p"; then
14241 pic_mode=yes
14242 fi
14243 done
14244 IFS=$lt_save_ifs
14245 ;;
14246 esac
14247 else
14248 pic_mode=default
14249 fi
14250
14251
14252
14253
14254
14255
14256
14257
14258 # Check whether --enable-fast-install was given.
14259 if test "${enable_fast_install+set}" = set; then :
14260 enableval=$enable_fast_install; p=${PACKAGE-default}
14261 case $enableval in
14262 yes) enable_fast_install=yes ;;
14263 no) enable_fast_install=no ;;
14264 *)
14265 enable_fast_install=no
14266 # Look at the argument we got. We use all the common list separators.
14267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14268 for pkg in $enableval; do
14269 IFS=$lt_save_ifs
14270 if test "X$pkg" = "X$p"; then
14271 enable_fast_install=yes
14272 fi
14273 done
14274 IFS=$lt_save_ifs
14275 ;;
14276 esac
14277 else
14278 enable_fast_install=yes
14279 fi
14280
14281
14282
14283
14284
14285
14286
14287
14288 shared_archive_member_spec=
14289 case $host,$enable_shared in
14290 power*-*-aix[5-9]*,yes)
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14292 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14293
14294 # Check whether --with-aix-soname was given.
14295 if test "${with_aix_soname+set}" = set; then :
14296 withval=$with_aix_soname; case $withval in
14297 aix|svr4|both)
14298 ;;
14299 *)
14300 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14301 ;;
14302 esac
14303 lt_cv_with_aix_soname=$with_aix_soname
14304 else
14305 if ${lt_cv_with_aix_soname+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 lt_cv_with_aix_soname=aix
14309 fi
14310
14311 with_aix_soname=$lt_cv_with_aix_soname
14312 fi
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14315 $as_echo "$with_aix_soname" >&6; }
14316 if test aix != "$with_aix_soname"; then
14317 # For the AIX way of multilib, we name the shared archive member
14318 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14319 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14320 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14321 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14322 if test 64 = "${OBJECT_MODE-32}"; then
14323 shared_archive_member_spec=shr_64
14324 else
14325 shared_archive_member_spec=shr
14326 fi
14327 fi
14328 ;;
14329 *)
14330 with_aix_soname=aix
14331 ;;
14332 esac
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343 # This can be used to rebuild libtool when needed
14344 LIBTOOL_DEPS=$ltmain
14345
14346 # Always use our own libtool.
14347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378 test -z "$LN_S" && LN_S="ln -s"
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 if test -n "${ZSH_VERSION+set}"; then
14394 setopt NO_GLOB_SUBST
14395 fi
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14398 $as_echo_n "checking for objdir... " >&6; }
14399 if ${lt_cv_objdir+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 rm -f .libs 2>/dev/null
14403 mkdir .libs 2>/dev/null
14404 if test -d .libs; then
14405 lt_cv_objdir=.libs
14406 else
14407 # MS-DOS does not allow filenames that begin with a dot.
14408 lt_cv_objdir=_libs
14409 fi
14410 rmdir .libs 2>/dev/null
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14413 $as_echo "$lt_cv_objdir" >&6; }
14414 objdir=$lt_cv_objdir
14415
14416
14417
14418
14419
14420 cat >>confdefs.h <<_ACEOF
14421 #define LT_OBJDIR "$lt_cv_objdir/"
14422 _ACEOF
14423
14424
14425
14426
14427 case $host_os in
14428 aix3*)
14429 # AIX sometimes has problems with the GCC collect2 program. For some
14430 # reason, if we set the COLLECT_NAMES environment variable, the problems
14431 # vanish in a puff of smoke.
14432 if test set != "${COLLECT_NAMES+set}"; then
14433 COLLECT_NAMES=
14434 export COLLECT_NAMES
14435 fi
14436 ;;
14437 esac
14438
14439 # Global variables:
14440 ofile=libtool
14441 can_build_shared=yes
14442
14443 # All known linkers require a '.a' archive for static linking (except MSVC,
14444 # which needs '.lib').
14445 libext=a
14446
14447 with_gnu_ld=$lt_cv_prog_gnu_ld
14448
14449 old_CC=$CC
14450 old_CFLAGS=$CFLAGS
14451
14452 # Set sane defaults for various variables
14453 test -z "$CC" && CC=cc
14454 test -z "$LTCC" && LTCC=$CC
14455 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14456 test -z "$LD" && LD=ld
14457 test -z "$ac_objext" && ac_objext=o
14458
14459 func_cc_basename $compiler
14460 cc_basename=$func_cc_basename_result
14461
14462
14463 # Only perform the check for file, if the check method requires it
14464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14465 case $deplibs_check_method in
14466 file_magic*)
14467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14469 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 case $MAGIC_CMD in
14474 [\\/*] | ?:[\\/]*)
14475 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14476 ;;
14477 *)
14478 lt_save_MAGIC_CMD=$MAGIC_CMD
14479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14481 for ac_dir in $ac_dummy; do
14482 IFS=$lt_save_ifs
14483 test -z "$ac_dir" && ac_dir=.
14484 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14485 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14486 if test -n "$file_magic_test_file"; then
14487 case $deplibs_check_method in
14488 "file_magic "*)
14489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14490 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14492 $EGREP "$file_magic_regex" > /dev/null; then
14493 :
14494 else
14495 cat <<_LT_EOF 1>&2
14496
14497 *** Warning: the command libtool uses to detect shared libraries,
14498 *** $file_magic_cmd, produces output that libtool cannot recognize.
14499 *** The result is that libtool may fail to recognize shared libraries
14500 *** as such. This will affect the creation of libtool libraries that
14501 *** depend on shared libraries, but programs linked with such libtool
14502 *** libraries will work regardless of this problem. Nevertheless, you
14503 *** may want to report the problem to your system manager and/or to
14504 *** bug-libtool (at] gnu.org
14505
14506 _LT_EOF
14507 fi ;;
14508 esac
14509 fi
14510 break
14511 fi
14512 done
14513 IFS=$lt_save_ifs
14514 MAGIC_CMD=$lt_save_MAGIC_CMD
14515 ;;
14516 esac
14517 fi
14518
14519 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14520 if test -n "$MAGIC_CMD"; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14522 $as_echo "$MAGIC_CMD" >&6; }
14523 else
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14526 fi
14527
14528
14529
14530
14531
14532 if test -z "$lt_cv_path_MAGIC_CMD"; then
14533 if test -n "$ac_tool_prefix"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14535 $as_echo_n "checking for file... " >&6; }
14536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 case $MAGIC_CMD in
14540 [\\/*] | ?:[\\/]*)
14541 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14542 ;;
14543 *)
14544 lt_save_MAGIC_CMD=$MAGIC_CMD
14545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14547 for ac_dir in $ac_dummy; do
14548 IFS=$lt_save_ifs
14549 test -z "$ac_dir" && ac_dir=.
14550 if test -f "$ac_dir/file"; then
14551 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14552 if test -n "$file_magic_test_file"; then
14553 case $deplibs_check_method in
14554 "file_magic "*)
14555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14556 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14558 $EGREP "$file_magic_regex" > /dev/null; then
14559 :
14560 else
14561 cat <<_LT_EOF 1>&2
14562
14563 *** Warning: the command libtool uses to detect shared libraries,
14564 *** $file_magic_cmd, produces output that libtool cannot recognize.
14565 *** The result is that libtool may fail to recognize shared libraries
14566 *** as such. This will affect the creation of libtool libraries that
14567 *** depend on shared libraries, but programs linked with such libtool
14568 *** libraries will work regardless of this problem. Nevertheless, you
14569 *** may want to report the problem to your system manager and/or to
14570 *** bug-libtool (at] gnu.org
14571
14572 _LT_EOF
14573 fi ;;
14574 esac
14575 fi
14576 break
14577 fi
14578 done
14579 IFS=$lt_save_ifs
14580 MAGIC_CMD=$lt_save_MAGIC_CMD
14581 ;;
14582 esac
14583 fi
14584
14585 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14586 if test -n "$MAGIC_CMD"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14588 $as_echo "$MAGIC_CMD" >&6; }
14589 else
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14592 fi
14593
14594
14595 else
14596 MAGIC_CMD=:
14597 fi
14598 fi
14599
14600 fi
14601 ;;
14602 esac
14603
14604 # Use C for the default configuration in the libtool script
14605
14606 lt_save_CC=$CC
14607 ac_ext=c
14608 ac_cpp='$CPP $CPPFLAGS'
14609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14612
14613
14614 # Source file extension for C test sources.
14615 ac_ext=c
14616
14617 # Object file extension for compiled C test sources.
14618 objext=o
14619 objext=$objext
14620
14621 # Code to be used in simple compile tests
14622 lt_simple_compile_test_code="int some_variable = 0;"
14623
14624 # Code to be used in simple link tests
14625 lt_simple_link_test_code='int main(){return(0);}'
14626
14627
14628
14629
14630
14631
14632
14633 # If no C compiler was specified, use CC.
14634 LTCC=${LTCC-"$CC"}
14635
14636 # If no C compiler flags were specified, use CFLAGS.
14637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14638
14639 # Allow CC to be a program name with arguments.
14640 compiler=$CC
14641
14642 # Save the default compiler, since it gets overwritten when the other
14643 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14644 compiler_DEFAULT=$CC
14645
14646 # save warnings/boilerplate of simple test code
14647 ac_outfile=conftest.$ac_objext
14648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14650 _lt_compiler_boilerplate=`cat conftest.err`
14651 $RM conftest*
14652
14653 ac_outfile=conftest.$ac_objext
14654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14656 _lt_linker_boilerplate=`cat conftest.err`
14657 $RM -r conftest*
14658
14659
14660 if test -n "$compiler"; then
14661
14662 lt_prog_compiler_no_builtin_flag=
14663
14664 if test yes = "$GCC"; then
14665 case $cc_basename in
14666 nvcc*)
14667 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14668 *)
14669 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14670 esac
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14673 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14674 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 lt_cv_prog_compiler_rtti_exceptions=no
14678 ac_outfile=conftest.$ac_objext
14679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14680 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14681 # Insert the option either (1) after the last *FLAGS variable, or
14682 # (2) before a word containing "conftest.", or (3) at the end.
14683 # Note that $ac_compile itself does not contain backslashes and begins
14684 # with a dollar sign (not a hyphen), so the echo should work correctly.
14685 # The option is referenced via a variable to avoid confusing sed.
14686 lt_compile=`echo "$ac_compile" | $SED \
14687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14689 -e 's:$: $lt_compiler_flag:'`
14690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14691 (eval "$lt_compile" 2>conftest.err)
14692 ac_status=$?
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 if (exit $ac_status) && test -s "$ac_outfile"; then
14696 # The compiler can only warn and ignore the option if not recognized
14697 # So say no if there are warnings other than the usual output.
14698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14701 lt_cv_prog_compiler_rtti_exceptions=yes
14702 fi
14703 fi
14704 $RM conftest*
14705
14706 fi
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14708 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14709
14710 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14711 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14712 else
14713 :
14714 fi
14715
14716 fi
14717
14718
14719
14720
14721
14722
14723 lt_prog_compiler_wl=
14724 lt_prog_compiler_pic=
14725 lt_prog_compiler_static=
14726
14727
14728 if test yes = "$GCC"; then
14729 lt_prog_compiler_wl='-Wl,'
14730 lt_prog_compiler_static='-static'
14731
14732 case $host_os in
14733 aix*)
14734 # All AIX code is PIC.
14735 if test ia64 = "$host_cpu"; then
14736 # AIX 5 now supports IA64 processor
14737 lt_prog_compiler_static='-Bstatic'
14738 fi
14739 lt_prog_compiler_pic='-fPIC'
14740 ;;
14741
14742 amigaos*)
14743 case $host_cpu in
14744 powerpc)
14745 # see comment about AmigaOS4 .so support
14746 lt_prog_compiler_pic='-fPIC'
14747 ;;
14748 m68k)
14749 # FIXME: we need at least 68020 code to build shared libraries, but
14750 # adding the '-m68020' flag to GCC prevents building anything better,
14751 # like '-m68040'.
14752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14753 ;;
14754 esac
14755 ;;
14756
14757 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14758 # PIC is the default for these OSes.
14759 ;;
14760
14761 mingw* | cygwin* | pw32* | os2* | cegcc*)
14762 # This hack is so that the source file can tell whether it is being
14763 # built for inclusion in a dll (and should export symbols for example).
14764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14765 # (--disable-auto-import) libraries
14766 lt_prog_compiler_pic='-DDLL_EXPORT'
14767 case $host_os in
14768 os2*)
14769 lt_prog_compiler_static='$wl-static'
14770 ;;
14771 esac
14772 ;;
14773
14774 darwin* | rhapsody*)
14775 # PIC is the default on this platform
14776 # Common symbols not allowed in MH_DYLIB files
14777 lt_prog_compiler_pic='-fno-common'
14778 ;;
14779
14780 haiku*)
14781 # PIC is the default for Haiku.
14782 # The "-static" flag exists, but is broken.
14783 lt_prog_compiler_static=
14784 ;;
14785
14786 hpux*)
14787 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14788 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14789 # sets the default TLS model and affects inlining.
14790 case $host_cpu in
14791 hppa*64*)
14792 # +Z the default
14793 ;;
14794 *)
14795 lt_prog_compiler_pic='-fPIC'
14796 ;;
14797 esac
14798 ;;
14799
14800 interix[3-9]*)
14801 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14802 # Instead, we relocate shared libraries at runtime.
14803 ;;
14804
14805 msdosdjgpp*)
14806 # Just because we use GCC doesn't mean we suddenly get shared libraries
14807 # on systems that don't support them.
14808 lt_prog_compiler_can_build_shared=no
14809 enable_shared=no
14810 ;;
14811
14812 *nto* | *qnx*)
14813 # QNX uses GNU C++, but need to define -shared option too, otherwise
14814 # it will coredump.
14815 lt_prog_compiler_pic='-fPIC -shared'
14816 ;;
14817
14818 sysv4*MP*)
14819 if test -d /usr/nec; then
14820 lt_prog_compiler_pic=-Kconform_pic
14821 fi
14822 ;;
14823
14824 *)
14825 lt_prog_compiler_pic='-fPIC'
14826 ;;
14827 esac
14828
14829 case $cc_basename in
14830 nvcc*) # Cuda Compiler Driver 2.2
14831 lt_prog_compiler_wl='-Xlinker '
14832 if test -n "$lt_prog_compiler_pic"; then
14833 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14834 fi
14835 ;;
14836 esac
14837 else
14838 # PORTME Check for flag to pass linker flags through the system compiler.
14839 case $host_os in
14840 aix*)
14841 lt_prog_compiler_wl='-Wl,'
14842 if test ia64 = "$host_cpu"; then
14843 # AIX 5 now supports IA64 processor
14844 lt_prog_compiler_static='-Bstatic'
14845 else
14846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14847 fi
14848 ;;
14849
14850 darwin* | rhapsody*)
14851 # PIC is the default on this platform
14852 # Common symbols not allowed in MH_DYLIB files
14853 lt_prog_compiler_pic='-fno-common'
14854 case $cc_basename in
14855 nagfor*)
14856 # NAG Fortran compiler
14857 lt_prog_compiler_wl='-Wl,-Wl,,'
14858 lt_prog_compiler_pic='-PIC'
14859 lt_prog_compiler_static='-Bstatic'
14860 ;;
14861 esac
14862 ;;
14863
14864 mingw* | cygwin* | pw32* | os2* | cegcc*)
14865 # This hack is so that the source file can tell whether it is being
14866 # built for inclusion in a dll (and should export symbols for example).
14867 lt_prog_compiler_pic='-DDLL_EXPORT'
14868 case $host_os in
14869 os2*)
14870 lt_prog_compiler_static='$wl-static'
14871 ;;
14872 esac
14873 ;;
14874
14875 hpux9* | hpux10* | hpux11*)
14876 lt_prog_compiler_wl='-Wl,'
14877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14878 # not for PA HP-UX.
14879 case $host_cpu in
14880 hppa*64*|ia64*)
14881 # +Z the default
14882 ;;
14883 *)
14884 lt_prog_compiler_pic='+Z'
14885 ;;
14886 esac
14887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14888 lt_prog_compiler_static='$wl-a ${wl}archive'
14889 ;;
14890
14891 irix5* | irix6* | nonstopux*)
14892 lt_prog_compiler_wl='-Wl,'
14893 # PIC (with -KPIC) is the default.
14894 lt_prog_compiler_static='-non_shared'
14895 ;;
14896
14897 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14898 case $cc_basename in
14899 # old Intel for x86_64, which still supported -KPIC.
14900 ecc*)
14901 lt_prog_compiler_wl='-Wl,'
14902 lt_prog_compiler_pic='-KPIC'
14903 lt_prog_compiler_static='-static'
14904 ;;
14905 # icc used to be incompatible with GCC.
14906 # ICC 10 doesn't accept -KPIC any more.
14907 icc* | ifort*)
14908 lt_prog_compiler_wl='-Wl,'
14909 lt_prog_compiler_pic='-fPIC'
14910 lt_prog_compiler_static='-static'
14911 ;;
14912 # Lahey Fortran 8.1.
14913 lf95*)
14914 lt_prog_compiler_wl='-Wl,'
14915 lt_prog_compiler_pic='--shared'
14916 lt_prog_compiler_static='--static'
14917 ;;
14918 nagfor*)
14919 # NAG Fortran compiler
14920 lt_prog_compiler_wl='-Wl,-Wl,,'
14921 lt_prog_compiler_pic='-PIC'
14922 lt_prog_compiler_static='-Bstatic'
14923 ;;
14924 tcc*)
14925 # Fabrice Bellard et al's Tiny C Compiler
14926 lt_prog_compiler_wl='-Wl,'
14927 lt_prog_compiler_pic='-fPIC'
14928 lt_prog_compiler_static='-static'
14929 ;;
14930 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14931 # Portland Group compilers (*not* the Pentium gcc compiler,
14932 # which looks to be a dead project)
14933 lt_prog_compiler_wl='-Wl,'
14934 lt_prog_compiler_pic='-fpic'
14935 lt_prog_compiler_static='-Bstatic'
14936 ;;
14937 ccc*)
14938 lt_prog_compiler_wl='-Wl,'
14939 # All Alpha code is PIC.
14940 lt_prog_compiler_static='-non_shared'
14941 ;;
14942 xl* | bgxl* | bgf* | mpixl*)
14943 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14944 lt_prog_compiler_wl='-Wl,'
14945 lt_prog_compiler_pic='-qpic'
14946 lt_prog_compiler_static='-qstaticlink'
14947 ;;
14948 *)
14949 case `$CC -V 2>&1 | sed 5q` in
14950 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14952 lt_prog_compiler_pic='-KPIC'
14953 lt_prog_compiler_static='-Bstatic'
14954 lt_prog_compiler_wl=''
14955 ;;
14956 *Sun\ F* | *Sun*Fortran*)
14957 lt_prog_compiler_pic='-KPIC'
14958 lt_prog_compiler_static='-Bstatic'
14959 lt_prog_compiler_wl='-Qoption ld '
14960 ;;
14961 *Sun\ C*)
14962 # Sun C 5.9
14963 lt_prog_compiler_pic='-KPIC'
14964 lt_prog_compiler_static='-Bstatic'
14965 lt_prog_compiler_wl='-Wl,'
14966 ;;
14967 *Intel*\ [CF]*Compiler*)
14968 lt_prog_compiler_wl='-Wl,'
14969 lt_prog_compiler_pic='-fPIC'
14970 lt_prog_compiler_static='-static'
14971 ;;
14972 *Portland\ Group*)
14973 lt_prog_compiler_wl='-Wl,'
14974 lt_prog_compiler_pic='-fpic'
14975 lt_prog_compiler_static='-Bstatic'
14976 ;;
14977 esac
14978 ;;
14979 esac
14980 ;;
14981
14982 newsos6)
14983 lt_prog_compiler_pic='-KPIC'
14984 lt_prog_compiler_static='-Bstatic'
14985 ;;
14986
14987 *nto* | *qnx*)
14988 # QNX uses GNU C++, but need to define -shared option too, otherwise
14989 # it will coredump.
14990 lt_prog_compiler_pic='-fPIC -shared'
14991 ;;
14992
14993 osf3* | osf4* | osf5*)
14994 lt_prog_compiler_wl='-Wl,'
14995 # All OSF/1 code is PIC.
14996 lt_prog_compiler_static='-non_shared'
14997 ;;
14998
14999 rdos*)
15000 lt_prog_compiler_static='-non_shared'
15001 ;;
15002
15003 solaris*)
15004 lt_prog_compiler_pic='-KPIC'
15005 lt_prog_compiler_static='-Bstatic'
15006 case $cc_basename in
15007 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15008 lt_prog_compiler_wl='-Qoption ld ';;
15009 *)
15010 lt_prog_compiler_wl='-Wl,';;
15011 esac
15012 ;;
15013
15014 sunos4*)
15015 lt_prog_compiler_wl='-Qoption ld '
15016 lt_prog_compiler_pic='-PIC'
15017 lt_prog_compiler_static='-Bstatic'
15018 ;;
15019
15020 sysv4 | sysv4.2uw2* | sysv4.3*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-KPIC'
15023 lt_prog_compiler_static='-Bstatic'
15024 ;;
15025
15026 sysv4*MP*)
15027 if test -d /usr/nec; then
15028 lt_prog_compiler_pic='-Kconform_pic'
15029 lt_prog_compiler_static='-Bstatic'
15030 fi
15031 ;;
15032
15033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_pic='-KPIC'
15036 lt_prog_compiler_static='-Bstatic'
15037 ;;
15038
15039 unicos*)
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_can_build_shared=no
15042 ;;
15043
15044 uts4*)
15045 lt_prog_compiler_pic='-pic'
15046 lt_prog_compiler_static='-Bstatic'
15047 ;;
15048
15049 *)
15050 lt_prog_compiler_can_build_shared=no
15051 ;;
15052 esac
15053 fi
15054
15055 case $host_os in
15056 # For platforms that do not support PIC, -DPIC is meaningless:
15057 *djgpp*)
15058 lt_prog_compiler_pic=
15059 ;;
15060 *)
15061 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15062 ;;
15063 esac
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15067 if ${lt_cv_prog_compiler_pic+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15073 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15074 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15075
15076 #
15077 # Check to make sure the PIC flag actually works.
15078 #
15079 if test -n "$lt_prog_compiler_pic"; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15081 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15082 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_pic_works=no
15086 ac_outfile=conftest.$ac_objext
15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15088 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15089 # Insert the option either (1) after the last *FLAGS variable, or
15090 # (2) before a word containing "conftest.", or (3) at the end.
15091 # Note that $ac_compile itself does not contain backslashes and begins
15092 # with a dollar sign (not a hyphen), so the echo should work correctly.
15093 # The option is referenced via a variable to avoid confusing sed.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>conftest.err)
15100 ac_status=$?
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 if (exit $ac_status) && test -s "$ac_outfile"; then
15104 # The compiler can only warn and ignore the option if not recognized
15105 # So say no if there are warnings other than the usual output.
15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_cv_prog_compiler_pic_works=yes
15110 fi
15111 fi
15112 $RM conftest*
15113
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15116 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15117
15118 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15119 case $lt_prog_compiler_pic in
15120 "" | " "*) ;;
15121 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15122 esac
15123 else
15124 lt_prog_compiler_pic=
15125 lt_prog_compiler_can_build_shared=no
15126 fi
15127
15128 fi
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140 #
15141 # Check to make sure the static flag actually works.
15142 #
15143 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15145 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15146 if ${lt_cv_prog_compiler_static_works+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 lt_cv_prog_compiler_static_works=no
15150 save_LDFLAGS=$LDFLAGS
15151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15152 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15154 # The linker can only warn and ignore the option if not recognized
15155 # So say no if there are warnings
15156 if test -s conftest.err; then
15157 # Append any errors to the config.log.
15158 cat conftest.err 1>&5
15159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15161 if diff conftest.exp conftest.er2 >/dev/null; then
15162 lt_cv_prog_compiler_static_works=yes
15163 fi
15164 else
15165 lt_cv_prog_compiler_static_works=yes
15166 fi
15167 fi
15168 $RM -r conftest*
15169 LDFLAGS=$save_LDFLAGS
15170
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15173 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15174
15175 if test yes = "$lt_cv_prog_compiler_static_works"; then
15176 :
15177 else
15178 lt_prog_compiler_static=
15179 fi
15180
15181
15182
15183
15184
15185
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15189 if ${lt_cv_prog_compiler_c_o+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 lt_cv_prog_compiler_c_o=no
15193 $RM -r conftest 2>/dev/null
15194 mkdir conftest
15195 cd conftest
15196 mkdir out
15197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15198
15199 lt_compiler_flag="-o out/conftest2.$ac_objext"
15200 # Insert the option either (1) after the last *FLAGS variable, or
15201 # (2) before a word containing "conftest.", or (3) at the end.
15202 # Note that $ac_compile itself does not contain backslashes and begins
15203 # with a dollar sign (not a hyphen), so the echo should work correctly.
15204 lt_compile=`echo "$ac_compile" | $SED \
15205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15207 -e 's:$: $lt_compiler_flag:'`
15208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15209 (eval "$lt_compile" 2>out/conftest.err)
15210 ac_status=$?
15211 cat out/conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15214 then
15215 # The compiler can only warn and ignore the option if not recognized
15216 # So say no if there are warnings
15217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15220 lt_cv_prog_compiler_c_o=yes
15221 fi
15222 fi
15223 chmod u+w . 2>&5
15224 $RM conftest*
15225 # SGI C++ compiler will create directory out/ii_files/ for
15226 # template instantiation
15227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15228 $RM out/* && rmdir out
15229 cd ..
15230 $RM -r conftest
15231 $RM conftest*
15232
15233 fi
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15236
15237
15238
15239
15240
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15244 if ${lt_cv_prog_compiler_c_o+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 lt_cv_prog_compiler_c_o=no
15248 $RM -r conftest 2>/dev/null
15249 mkdir conftest
15250 cd conftest
15251 mkdir out
15252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15253
15254 lt_compiler_flag="-o out/conftest2.$ac_objext"
15255 # Insert the option either (1) after the last *FLAGS variable, or
15256 # (2) before a word containing "conftest.", or (3) at the end.
15257 # Note that $ac_compile itself does not contain backslashes and begins
15258 # with a dollar sign (not a hyphen), so the echo should work correctly.
15259 lt_compile=`echo "$ac_compile" | $SED \
15260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15262 -e 's:$: $lt_compiler_flag:'`
15263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15264 (eval "$lt_compile" 2>out/conftest.err)
15265 ac_status=$?
15266 cat out/conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15269 then
15270 # The compiler can only warn and ignore the option if not recognized
15271 # So say no if there are warnings
15272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15275 lt_cv_prog_compiler_c_o=yes
15276 fi
15277 fi
15278 chmod u+w . 2>&5
15279 $RM conftest*
15280 # SGI C++ compiler will create directory out/ii_files/ for
15281 # template instantiation
15282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15283 $RM out/* && rmdir out
15284 cd ..
15285 $RM -r conftest
15286 $RM conftest*
15287
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15291
15292
15293
15294
15295 hard_links=nottested
15296 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15297 # do not overwrite the value of need_locks provided by the user
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15299 $as_echo_n "checking if we can lock with hard links... " >&6; }
15300 hard_links=yes
15301 $RM conftest*
15302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15303 touch conftest.a
15304 ln conftest.a conftest.b 2>&5 || hard_links=no
15305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15307 $as_echo "$hard_links" >&6; }
15308 if test no = "$hard_links"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15310 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15311 need_locks=warn
15312 fi
15313 else
15314 need_locks=no
15315 fi
15316
15317
15318
15319
15320
15321
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15323 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15324
15325 runpath_var=
15326 allow_undefined_flag=
15327 always_export_symbols=no
15328 archive_cmds=
15329 archive_expsym_cmds=
15330 compiler_needs_object=no
15331 enable_shared_with_static_runtimes=no
15332 export_dynamic_flag_spec=
15333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15334 hardcode_automatic=no
15335 hardcode_direct=no
15336 hardcode_direct_absolute=no
15337 hardcode_libdir_flag_spec=
15338 hardcode_libdir_separator=
15339 hardcode_minus_L=no
15340 hardcode_shlibpath_var=unsupported
15341 inherit_rpath=no
15342 link_all_deplibs=unknown
15343 module_cmds=
15344 module_expsym_cmds=
15345 old_archive_from_new_cmds=
15346 old_archive_from_expsyms_cmds=
15347 thread_safe_flag_spec=
15348 whole_archive_flag_spec=
15349 # include_expsyms should be a list of space-separated symbols to be *always*
15350 # included in the symbol list
15351 include_expsyms=
15352 # exclude_expsyms can be an extended regexp of symbols to exclude
15353 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15354 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15355 # as well as any symbol that contains 'd'.
15356 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15357 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15358 # platforms (ab)use it in PIC code, but their linkers get confused if
15359 # the symbol is explicitly referenced. Since portable code cannot
15360 # rely on this symbol name, it's probably fine to never include it in
15361 # preloaded symbol tables.
15362 # Exclude shared library initialization/finalization symbols.
15363 extract_expsyms_cmds=
15364
15365 case $host_os in
15366 cygwin* | mingw* | pw32* | cegcc*)
15367 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15368 # When not using gcc, we currently assume that we are using
15369 # Microsoft Visual C++.
15370 if test yes != "$GCC"; then
15371 with_gnu_ld=no
15372 fi
15373 ;;
15374 interix*)
15375 # we just hope/assume this is gcc and not c89 (= MSVC++)
15376 with_gnu_ld=yes
15377 ;;
15378 openbsd* | bitrig*)
15379 with_gnu_ld=no
15380 ;;
15381 linux* | k*bsd*-gnu | gnu*)
15382 link_all_deplibs=no
15383 ;;
15384 esac
15385
15386 ld_shlibs=yes
15387
15388 # On some targets, GNU ld is compatible enough with the native linker
15389 # that we're better off using the native interface for both.
15390 lt_use_gnu_ld_interface=no
15391 if test yes = "$with_gnu_ld"; then
15392 case $host_os in
15393 aix*)
15394 # The AIX port of GNU ld has always aspired to compatibility
15395 # with the native linker. However, as the warning in the GNU ld
15396 # block says, versions before 2.19.5* couldn't really create working
15397 # shared libraries, regardless of the interface used.
15398 case `$LD -v 2>&1` in
15399 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15400 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15401 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15402 *)
15403 lt_use_gnu_ld_interface=yes
15404 ;;
15405 esac
15406 ;;
15407 *)
15408 lt_use_gnu_ld_interface=yes
15409 ;;
15410 esac
15411 fi
15412
15413 if test yes = "$lt_use_gnu_ld_interface"; then
15414 # If archive_cmds runs LD, not CC, wlarc should be empty
15415 wlarc='$wl'
15416
15417 # Set some defaults for GNU ld with shared library support. These
15418 # are reset later if shared libraries are not supported. Putting them
15419 # here allows them to be overridden if necessary.
15420 runpath_var=LD_RUN_PATH
15421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15422 export_dynamic_flag_spec='$wl--export-dynamic'
15423 # ancient GNU ld didn't support --whole-archive et. al.
15424 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15425 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15426 else
15427 whole_archive_flag_spec=
15428 fi
15429 supports_anon_versioning=no
15430 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15431 *GNU\ gold*) supports_anon_versioning=yes ;;
15432 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15433 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15434 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15435 *\ 2.11.*) ;; # other 2.11 versions
15436 *) supports_anon_versioning=yes ;;
15437 esac
15438
15439 # See if GNU ld supports shared libraries.
15440 case $host_os in
15441 aix[3-9]*)
15442 # On AIX/PPC, the GNU linker is very broken
15443 if test ia64 != "$host_cpu"; then
15444 ld_shlibs=no
15445 cat <<_LT_EOF 1>&2
15446
15447 *** Warning: the GNU linker, at least up to release 2.19, is reported
15448 *** to be unable to reliably create shared libraries on AIX.
15449 *** Therefore, libtool is disabling shared libraries support. If you
15450 *** really care for shared libraries, you may want to install binutils
15451 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15452 *** You will then need to restart the configuration process.
15453
15454 _LT_EOF
15455 fi
15456 ;;
15457
15458 amigaos*)
15459 case $host_cpu in
15460 powerpc)
15461 # see comment about AmigaOS4 .so support
15462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15463 archive_expsym_cmds=''
15464 ;;
15465 m68k)
15466 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)'
15467 hardcode_libdir_flag_spec='-L$libdir'
15468 hardcode_minus_L=yes
15469 ;;
15470 esac
15471 ;;
15472
15473 beos*)
15474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15475 allow_undefined_flag=unsupported
15476 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15477 # support --undefined. This deserves some investigation. FIXME
15478 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15479 else
15480 ld_shlibs=no
15481 fi
15482 ;;
15483
15484 cygwin* | mingw* | pw32* | cegcc*)
15485 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15486 # as there is no search path for DLLs.
15487 hardcode_libdir_flag_spec='-L$libdir'
15488 export_dynamic_flag_spec='$wl--export-all-symbols'
15489 allow_undefined_flag=unsupported
15490 always_export_symbols=no
15491 enable_shared_with_static_runtimes=yes
15492 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'
15493 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15494
15495 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15497 # If the export-symbols file already is a .def file, use it as
15498 # is; otherwise, prepend EXPORTS...
15499 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15500 cp $export_symbols $output_objdir/$soname.def;
15501 else
15502 echo EXPORTS > $output_objdir/$soname.def;
15503 cat $export_symbols >> $output_objdir/$soname.def;
15504 fi~
15505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15506 else
15507 ld_shlibs=no
15508 fi
15509 ;;
15510
15511 haiku*)
15512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15513 link_all_deplibs=yes
15514 ;;
15515
15516 os2*)
15517 hardcode_libdir_flag_spec='-L$libdir'
15518 hardcode_minus_L=yes
15519 allow_undefined_flag=unsupported
15520 shrext_cmds=.dll
15521 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15524 $ECHO EXPORTS >> $output_objdir/$libname.def~
15525 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15527 emximp -o $lib $output_objdir/$libname.def'
15528 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15531 $ECHO EXPORTS >> $output_objdir/$libname.def~
15532 prefix_cmds="$SED"~
15533 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15534 prefix_cmds="$prefix_cmds -e 1d";
15535 fi~
15536 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15537 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15539 emximp -o $lib $output_objdir/$libname.def'
15540 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15541 enable_shared_with_static_runtimes=yes
15542 ;;
15543
15544 interix[3-9]*)
15545 hardcode_direct=no
15546 hardcode_shlibpath_var=no
15547 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15548 export_dynamic_flag_spec='$wl-E'
15549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15550 # Instead, shared libraries are loaded at an image base (0x10000000 by
15551 # default) and relocated if they conflict, which is a slow very memory
15552 # consuming and fragmenting process. To avoid this, we pick a random,
15553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15556 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'
15557 ;;
15558
15559 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15560 tmp_diet=no
15561 if test linux-dietlibc = "$host_os"; then
15562 case $cc_basename in
15563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15564 esac
15565 fi
15566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15567 && test no = "$tmp_diet"
15568 then
15569 tmp_addflag=' $pic_flag'
15570 tmp_sharedflag='-shared'
15571 case $cc_basename,$host_cpu in
15572 pgcc*) # Portland Group C compiler
15573 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'
15574 tmp_addflag=' $pic_flag'
15575 ;;
15576 pgf77* | pgf90* | pgf95* | pgfortran*)
15577 # Portland Group f77 and f90 compilers
15578 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'
15579 tmp_addflag=' $pic_flag -Mnomain' ;;
15580 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15581 tmp_addflag=' -i_dynamic' ;;
15582 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15583 tmp_addflag=' -i_dynamic -nofor_main' ;;
15584 ifc* | ifort*) # Intel Fortran compiler
15585 tmp_addflag=' -nofor_main' ;;
15586 lf95*) # Lahey Fortran 8.1
15587 whole_archive_flag_spec=
15588 tmp_sharedflag='--shared' ;;
15589 nagfor*) # NAGFOR 5.3
15590 tmp_sharedflag='-Wl,-shared' ;;
15591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15592 tmp_sharedflag='-qmkshrobj'
15593 tmp_addflag= ;;
15594 nvcc*) # Cuda Compiler Driver 2.2
15595 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'
15596 compiler_needs_object=yes
15597 ;;
15598 esac
15599 case `$CC -V 2>&1 | sed 5q` in
15600 *Sun\ C*) # Sun C 5.9
15601 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'
15602 compiler_needs_object=yes
15603 tmp_sharedflag='-G' ;;
15604 *Sun\ F*) # Sun Fortran 8.3
15605 tmp_sharedflag='-G' ;;
15606 esac
15607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15608
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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15614 fi
15615
15616 case $cc_basename in
15617 tcc*)
15618 export_dynamic_flag_spec='-rdynamic'
15619 ;;
15620 xlf* | bgf* | bgxlf* | mpixlf*)
15621 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15622 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15624 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15625 if test yes = "$supports_anon_versioning"; then
15626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15628 echo "local: *; };" >> $output_objdir/$libname.ver~
15629 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15630 fi
15631 ;;
15632 esac
15633 else
15634 ld_shlibs=no
15635 fi
15636 ;;
15637
15638 netbsd* | netbsdelf*-gnu)
15639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15641 wlarc=
15642 else
15643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15645 fi
15646 ;;
15647
15648 solaris*)
15649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15650 ld_shlibs=no
15651 cat <<_LT_EOF 1>&2
15652
15653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15654 *** create shared libraries on Solaris systems. Therefore, libtool
15655 *** is disabling shared libraries support. We urge you to upgrade GNU
15656 *** binutils to release 2.9.1 or newer. Another option is to modify
15657 *** your PATH or compiler configuration so that the native linker is
15658 *** used, and then restart.
15659
15660 _LT_EOF
15661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15664 else
15665 ld_shlibs=no
15666 fi
15667 ;;
15668
15669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15670 case `$LD -v 2>&1` in
15671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15672 ld_shlibs=no
15673 cat <<_LT_EOF 1>&2
15674
15675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15676 *** reliably create shared libraries on SCO systems. Therefore, libtool
15677 *** is disabling shared libraries support. We urge you to upgrade GNU
15678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15679 *** your PATH or compiler configuration so that the native linker is
15680 *** used, and then restart.
15681
15682 _LT_EOF
15683 ;;
15684 *)
15685 # For security reasons, it is highly recommended that you always
15686 # use absolute paths for naming shared libraries, and exclude the
15687 # DT_RUNPATH tag from executables and libraries. But doing so
15688 # requires that you compile everything twice, which is a pain.
15689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15693 else
15694 ld_shlibs=no
15695 fi
15696 ;;
15697 esac
15698 ;;
15699
15700 sunos4*)
15701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15702 wlarc=
15703 hardcode_direct=yes
15704 hardcode_shlibpath_var=no
15705 ;;
15706
15707 *)
15708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15710 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15711 else
15712 ld_shlibs=no
15713 fi
15714 ;;
15715 esac
15716
15717 if test no = "$ld_shlibs"; then
15718 runpath_var=
15719 hardcode_libdir_flag_spec=
15720 export_dynamic_flag_spec=
15721 whole_archive_flag_spec=
15722 fi
15723 else
15724 # PORTME fill in a description of your system's linker (not GNU ld)
15725 case $host_os in
15726 aix3*)
15727 allow_undefined_flag=unsupported
15728 always_export_symbols=yes
15729 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'
15730 # Note: this linker hardcodes the directories in LIBPATH if there
15731 # are no directories specified by -L.
15732 hardcode_minus_L=yes
15733 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15734 # Neither direct hardcoding nor static linking is supported with a
15735 # broken collect2.
15736 hardcode_direct=unsupported
15737 fi
15738 ;;
15739
15740 aix[4-9]*)
15741 if test ia64 = "$host_cpu"; then
15742 # On IA64, the linker does run time linking by default, so we don't
15743 # have to do anything special.
15744 aix_use_runtimelinking=no
15745 exp_sym_flag='-Bexport'
15746 no_entry_flag=
15747 else
15748 # If we're using GNU nm, then we don't want the "-C" option.
15749 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15750 # Without the "-l" option, or with the "-B" option, AIX nm treats
15751 # weak defined symbols like other global defined symbols, whereas
15752 # GNU nm marks them as "W".
15753 # While the 'weak' keyword is ignored in the Export File, we need
15754 # it in the Import File for the 'aix-soname' feature, so we have
15755 # to replace the "-B" option with "-P" for AIX nm.
15756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15757 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'
15758 else
15759 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'
15760 fi
15761 aix_use_runtimelinking=no
15762
15763 # Test if we are trying to use run time linking or normal
15764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15765 # have runtime linking enabled, and use it for executables.
15766 # For shared libraries, we enable/disable runtime linking
15767 # depending on the kind of the shared library created -
15768 # when "with_aix_soname,aix_use_runtimelinking" is:
15769 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15770 # "aix,yes" lib.so shared, rtl:yes, for executables
15771 # lib.a static archive
15772 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15773 # lib.a(lib.so.V) shared, rtl:no, for executables
15774 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15775 # lib.a(lib.so.V) shared, rtl:no
15776 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15777 # lib.a static archive
15778 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15779 for ld_flag in $LDFLAGS; do
15780 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15781 aix_use_runtimelinking=yes
15782 break
15783 fi
15784 done
15785 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15786 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15787 # so we don't have lib.a shared libs to link our executables.
15788 # We have to force runtime linking in this case.
15789 aix_use_runtimelinking=yes
15790 LDFLAGS="$LDFLAGS -Wl,-brtl"
15791 fi
15792 ;;
15793 esac
15794
15795 exp_sym_flag='-bexport'
15796 no_entry_flag='-bnoentry'
15797 fi
15798
15799 # When large executables or shared objects are built, AIX ld can
15800 # have problems creating the table of contents. If linking a library
15801 # or program results in "error TOC overflow" add -mminimal-toc to
15802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15804
15805 archive_cmds=''
15806 hardcode_direct=yes
15807 hardcode_direct_absolute=yes
15808 hardcode_libdir_separator=':'
15809 link_all_deplibs=yes
15810 file_list_spec='$wl-f,'
15811 case $with_aix_soname,$aix_use_runtimelinking in
15812 aix,*) ;; # traditional, no import file
15813 svr4,* | *,yes) # use import file
15814 # The Import File defines what to hardcode.
15815 hardcode_direct=no
15816 hardcode_direct_absolute=no
15817 ;;
15818 esac
15819
15820 if test yes = "$GCC"; then
15821 case $host_os in aix4.[012]|aix4.[012].*)
15822 # We only want to do this on AIX 4.2 and lower, the check
15823 # below for broken collect2 doesn't work under 4.3+
15824 collect2name=`$CC -print-prog-name=collect2`
15825 if test -f "$collect2name" &&
15826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15827 then
15828 # We have reworked collect2
15829 :
15830 else
15831 # We have old collect2
15832 hardcode_direct=unsupported
15833 # It fails to find uninstalled libraries when the uninstalled
15834 # path is not listed in the libpath. Setting hardcode_minus_L
15835 # to unsupported forces relinking
15836 hardcode_minus_L=yes
15837 hardcode_libdir_flag_spec='-L$libdir'
15838 hardcode_libdir_separator=
15839 fi
15840 ;;
15841 esac
15842 shared_flag='-shared'
15843 if test yes = "$aix_use_runtimelinking"; then
15844 shared_flag="$shared_flag "'$wl-G'
15845 fi
15846 # Need to ensure runtime linking is disabled for the traditional
15847 # shared library, or the linker may eventually find shared libraries
15848 # /with/ Import File - we do not want to mix them.
15849 shared_flag_aix='-shared'
15850 shared_flag_svr4='-shared $wl-G'
15851 else
15852 # not using gcc
15853 if test ia64 = "$host_cpu"; then
15854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15855 # chokes on -Wl,-G. The following line is correct:
15856 shared_flag='-G'
15857 else
15858 if test yes = "$aix_use_runtimelinking"; then
15859 shared_flag='$wl-G'
15860 else
15861 shared_flag='$wl-bM:SRE'
15862 fi
15863 shared_flag_aix='$wl-bM:SRE'
15864 shared_flag_svr4='$wl-G'
15865 fi
15866 fi
15867
15868 export_dynamic_flag_spec='$wl-bexpall'
15869 # It seems that -bexpall does not export symbols beginning with
15870 # underscore (_), so it is better to generate a list of symbols to export.
15871 always_export_symbols=yes
15872 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15873 # Warning - without using the other runtime loading flags (-brtl),
15874 # -berok will link without error, but may produce a broken library.
15875 allow_undefined_flag='-berok'
15876 # Determine the default libpath from the value encoded in an
15877 # empty executable.
15878 if test set = "${lt_cv_aix_libpath+set}"; then
15879 aix_libpath=$lt_cv_aix_libpath
15880 else
15881 if ${lt_cv_aix_libpath_+:} false; then :
15882 $as_echo_n "(cached) " >&6
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886
15887 int
15888 main ()
15889 {
15890
15891 ;
15892 return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_link "$LINENO"; then :
15896
15897 lt_aix_libpath_sed='
15898 /Import File Strings/,/^$/ {
15899 /^0/ {
15900 s/^0 *\([^ ]*\) *$/\1/
15901 p
15902 }
15903 }'
15904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15905 # Check for a 64-bit object if we didn't find anything.
15906 if test -z "$lt_cv_aix_libpath_"; then
15907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15908 fi
15909 fi
15910 rm -f core conftest.err conftest.$ac_objext \
15911 conftest$ac_exeext conftest.$ac_ext
15912 if test -z "$lt_cv_aix_libpath_"; then
15913 lt_cv_aix_libpath_=/usr/lib:/lib
15914 fi
15915
15916 fi
15917
15918 aix_libpath=$lt_cv_aix_libpath_
15919 fi
15920
15921 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15922 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
15923 else
15924 if test ia64 = "$host_cpu"; then
15925 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15926 allow_undefined_flag="-z nodefs"
15927 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"
15928 else
15929 # Determine the default libpath from the value encoded in an
15930 # empty executable.
15931 if test set = "${lt_cv_aix_libpath+set}"; then
15932 aix_libpath=$lt_cv_aix_libpath
15933 else
15934 if ${lt_cv_aix_libpath_+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936 else
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939
15940 int
15941 main ()
15942 {
15943
15944 ;
15945 return 0;
15946 }
15947 _ACEOF
15948 if ac_fn_c_try_link "$LINENO"; then :
15949
15950 lt_aix_libpath_sed='
15951 /Import File Strings/,/^$/ {
15952 /^0/ {
15953 s/^0 *\([^ ]*\) *$/\1/
15954 p
15955 }
15956 }'
15957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15958 # Check for a 64-bit object if we didn't find anything.
15959 if test -z "$lt_cv_aix_libpath_"; then
15960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15961 fi
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15965 if test -z "$lt_cv_aix_libpath_"; then
15966 lt_cv_aix_libpath_=/usr/lib:/lib
15967 fi
15968
15969 fi
15970
15971 aix_libpath=$lt_cv_aix_libpath_
15972 fi
15973
15974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15975 # Warning - without using the other run time loading flags,
15976 # -berok will link without error, but may produce a broken library.
15977 no_undefined_flag=' $wl-bernotok'
15978 allow_undefined_flag=' $wl-berok'
15979 if test yes = "$with_gnu_ld"; then
15980 # We only use this code for GNU lds that support --whole-archive.
15981 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15982 else
15983 # Exported symbols can be pulled into shared objects from archives
15984 whole_archive_flag_spec='$convenience'
15985 fi
15986 archive_cmds_need_lc=yes
15987 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15988 # -brtl affects multiple linker settings, -berok does not and is overridden later
15989 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15990 if test svr4 != "$with_aix_soname"; then
15991 # This is similar to how AIX traditionally builds its shared libraries.
15992 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'
15993 fi
15994 if test aix != "$with_aix_soname"; then
15995 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'
15996 else
15997 # used by -dlpreopen to get the symbols
15998 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15999 fi
16000 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16001 fi
16002 fi
16003 ;;
16004
16005 amigaos*)
16006 case $host_cpu in
16007 powerpc)
16008 # see comment about AmigaOS4 .so support
16009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16010 archive_expsym_cmds=''
16011 ;;
16012 m68k)
16013 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)'
16014 hardcode_libdir_flag_spec='-L$libdir'
16015 hardcode_minus_L=yes
16016 ;;
16017 esac
16018 ;;
16019
16020 bsdi[45]*)
16021 export_dynamic_flag_spec=-rdynamic
16022 ;;
16023
16024 cygwin* | mingw* | pw32* | cegcc*)
16025 # When not using gcc, we currently assume that we are using
16026 # Microsoft Visual C++.
16027 # hardcode_libdir_flag_spec is actually meaningless, as there is
16028 # no search path for DLLs.
16029 case $cc_basename in
16030 cl*)
16031 # Native MSVC
16032 hardcode_libdir_flag_spec=' '
16033 allow_undefined_flag=unsupported
16034 always_export_symbols=yes
16035 file_list_spec='@'
16036 # Tell ltmain to make .lib files, not .a files.
16037 libext=lib
16038 # Tell ltmain to make .dll files, not .so files.
16039 shrext_cmds=.dll
16040 # FIXME: Setting linknames here is a bad hack.
16041 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16042 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16043 cp "$export_symbols" "$output_objdir/$soname.def";
16044 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16045 else
16046 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16047 fi~
16048 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16049 linknames='
16050 # The linker will not automatically build a static lib if we build a DLL.
16051 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16052 enable_shared_with_static_runtimes=yes
16053 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16055 # Don't use ranlib
16056 old_postinstall_cmds='chmod 644 $oldlib'
16057 postlink_cmds='lt_outputfile="@OUTPUT@"~
16058 lt_tool_outputfile="@TOOL_OUTPUT@"~
16059 case $lt_outputfile in
16060 *.exe|*.EXE) ;;
16061 *)
16062 lt_outputfile=$lt_outputfile.exe
16063 lt_tool_outputfile=$lt_tool_outputfile.exe
16064 ;;
16065 esac~
16066 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16067 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16068 $RM "$lt_outputfile.manifest";
16069 fi'
16070 ;;
16071 *)
16072 # Assume MSVC wrapper
16073 hardcode_libdir_flag_spec=' '
16074 allow_undefined_flag=unsupported
16075 # Tell ltmain to make .lib files, not .a files.
16076 libext=lib
16077 # Tell ltmain to make .dll files, not .so files.
16078 shrext_cmds=.dll
16079 # FIXME: Setting linknames here is a bad hack.
16080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16081 # The linker will automatically build a .lib file if we build a DLL.
16082 old_archive_from_new_cmds='true'
16083 # FIXME: Should let the user specify the lib program.
16084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16085 enable_shared_with_static_runtimes=yes
16086 ;;
16087 esac
16088 ;;
16089
16090 darwin* | rhapsody*)
16091
16092
16093 archive_cmds_need_lc=no
16094 hardcode_direct=no
16095 hardcode_automatic=yes
16096 hardcode_shlibpath_var=unsupported
16097 if test yes = "$lt_cv_ld_force_load"; then
16098 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\"`'
16099
16100 else
16101 whole_archive_flag_spec=''
16102 fi
16103 link_all_deplibs=yes
16104 allow_undefined_flag=$_lt_dar_allow_undefined
16105 case $cc_basename in
16106 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16107 *) _lt_dar_can_shared=$GCC ;;
16108 esac
16109 if test yes = "$_lt_dar_can_shared"; then
16110 output_verbose_link_cmd=func_echo_all
16111 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16112 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16113 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"
16114 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"
16115
16116 else
16117 ld_shlibs=no
16118 fi
16119
16120 ;;
16121
16122 dgux*)
16123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_libdir_flag_spec='-L$libdir'
16125 hardcode_shlibpath_var=no
16126 ;;
16127
16128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16129 # support. Future versions do this automatically, but an explicit c++rt0.o
16130 # does not break anything, and helps significantly (at the cost of a little
16131 # extra space).
16132 freebsd2.2*)
16133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16134 hardcode_libdir_flag_spec='-R$libdir'
16135 hardcode_direct=yes
16136 hardcode_shlibpath_var=no
16137 ;;
16138
16139 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16140 freebsd2.*)
16141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_direct=yes
16143 hardcode_minus_L=yes
16144 hardcode_shlibpath_var=no
16145 ;;
16146
16147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16148 freebsd* | dragonfly*)
16149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16150 hardcode_libdir_flag_spec='-R$libdir'
16151 hardcode_direct=yes
16152 hardcode_shlibpath_var=no
16153 ;;
16154
16155 hpux9*)
16156 if test yes = "$GCC"; then
16157 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'
16158 else
16159 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'
16160 fi
16161 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16162 hardcode_libdir_separator=:
16163 hardcode_direct=yes
16164
16165 # hardcode_minus_L: Not really in the search PATH,
16166 # but as the default location of the library.
16167 hardcode_minus_L=yes
16168 export_dynamic_flag_spec='$wl-E'
16169 ;;
16170
16171 hpux10*)
16172 if test yes,no = "$GCC,$with_gnu_ld"; then
16173 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16174 else
16175 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16176 fi
16177 if test no = "$with_gnu_ld"; then
16178 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16179 hardcode_libdir_separator=:
16180 hardcode_direct=yes
16181 hardcode_direct_absolute=yes
16182 export_dynamic_flag_spec='$wl-E'
16183 # hardcode_minus_L: Not really in the search PATH,
16184 # but as the default location of the library.
16185 hardcode_minus_L=yes
16186 fi
16187 ;;
16188
16189 hpux11*)
16190 if test yes,no = "$GCC,$with_gnu_ld"; then
16191 case $host_cpu in
16192 hppa*64*)
16193 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 ;;
16195 ia64*)
16196 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16197 ;;
16198 *)
16199 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16200 ;;
16201 esac
16202 else
16203 case $host_cpu in
16204 hppa*64*)
16205 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 ;;
16207 ia64*)
16208 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16209 ;;
16210 *)
16211
16212 # Older versions of the 11.00 compiler do not understand -b yet
16213 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16215 $as_echo_n "checking if $CC understands -b... " >&6; }
16216 if ${lt_cv_prog_compiler__b+:} false; then :
16217 $as_echo_n "(cached) " >&6
16218 else
16219 lt_cv_prog_compiler__b=no
16220 save_LDFLAGS=$LDFLAGS
16221 LDFLAGS="$LDFLAGS -b"
16222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16224 # The linker can only warn and ignore the option if not recognized
16225 # So say no if there are warnings
16226 if test -s conftest.err; then
16227 # Append any errors to the config.log.
16228 cat conftest.err 1>&5
16229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16231 if diff conftest.exp conftest.er2 >/dev/null; then
16232 lt_cv_prog_compiler__b=yes
16233 fi
16234 else
16235 lt_cv_prog_compiler__b=yes
16236 fi
16237 fi
16238 $RM -r conftest*
16239 LDFLAGS=$save_LDFLAGS
16240
16241 fi
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16243 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16244
16245 if test yes = "$lt_cv_prog_compiler__b"; then
16246 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16247 else
16248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16249 fi
16250
16251 ;;
16252 esac
16253 fi
16254 if test no = "$with_gnu_ld"; then
16255 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16256 hardcode_libdir_separator=:
16257
16258 case $host_cpu in
16259 hppa*64*|ia64*)
16260 hardcode_direct=no
16261 hardcode_shlibpath_var=no
16262 ;;
16263 *)
16264 hardcode_direct=yes
16265 hardcode_direct_absolute=yes
16266 export_dynamic_flag_spec='$wl-E'
16267
16268 # hardcode_minus_L: Not really in the search PATH,
16269 # but as the default location of the library.
16270 hardcode_minus_L=yes
16271 ;;
16272 esac
16273 fi
16274 ;;
16275
16276 irix5* | irix6* | nonstopux*)
16277 if test yes = "$GCC"; then
16278 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'
16279 # Try to use the -exported_symbol ld option, if it does not
16280 # work, assume that -exports_file does not work either and
16281 # implicitly export all symbols.
16282 # This should be the same for all languages, so no per-tag cache variable.
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16284 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16285 if ${lt_cv_irix_exported_symbol+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287 else
16288 save_LDFLAGS=$LDFLAGS
16289 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 int foo (void) { return 0; }
16293 _ACEOF
16294 if ac_fn_c_try_link "$LINENO"; then :
16295 lt_cv_irix_exported_symbol=yes
16296 else
16297 lt_cv_irix_exported_symbol=no
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext \
16300 conftest$ac_exeext conftest.$ac_ext
16301 LDFLAGS=$save_LDFLAGS
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16304 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16305 if test yes = "$lt_cv_irix_exported_symbol"; then
16306 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'
16307 fi
16308 link_all_deplibs=no
16309 else
16310 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'
16311 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'
16312 fi
16313 archive_cmds_need_lc='no'
16314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16315 hardcode_libdir_separator=:
16316 inherit_rpath=yes
16317 link_all_deplibs=yes
16318 ;;
16319
16320 linux*)
16321 case $cc_basename in
16322 tcc*)
16323 # Fabrice Bellard et al's Tiny C Compiler
16324 ld_shlibs=yes
16325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16326 ;;
16327 esac
16328 ;;
16329
16330 netbsd* | netbsdelf*-gnu)
16331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16333 else
16334 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16335 fi
16336 hardcode_libdir_flag_spec='-R$libdir'
16337 hardcode_direct=yes
16338 hardcode_shlibpath_var=no
16339 ;;
16340
16341 newsos6)
16342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16343 hardcode_direct=yes
16344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16345 hardcode_libdir_separator=:
16346 hardcode_shlibpath_var=no
16347 ;;
16348
16349 *nto* | *qnx*)
16350 ;;
16351
16352 openbsd* | bitrig*)
16353 if test -f /usr/libexec/ld.so; then
16354 hardcode_direct=yes
16355 hardcode_shlibpath_var=no
16356 hardcode_direct_absolute=yes
16357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16359 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16360 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16361 export_dynamic_flag_spec='$wl-E'
16362 else
16363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16364 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16365 fi
16366 else
16367 ld_shlibs=no
16368 fi
16369 ;;
16370
16371 os2*)
16372 hardcode_libdir_flag_spec='-L$libdir'
16373 hardcode_minus_L=yes
16374 allow_undefined_flag=unsupported
16375 shrext_cmds=.dll
16376 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16377 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16378 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16379 $ECHO EXPORTS >> $output_objdir/$libname.def~
16380 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16381 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16382 emximp -o $lib $output_objdir/$libname.def'
16383 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16384 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16385 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16386 $ECHO EXPORTS >> $output_objdir/$libname.def~
16387 prefix_cmds="$SED"~
16388 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16389 prefix_cmds="$prefix_cmds -e 1d";
16390 fi~
16391 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16392 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16393 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16394 emximp -o $lib $output_objdir/$libname.def'
16395 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16396 enable_shared_with_static_runtimes=yes
16397 ;;
16398
16399 osf3*)
16400 if test yes = "$GCC"; then
16401 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16402 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'
16403 else
16404 allow_undefined_flag=' -expect_unresolved \*'
16405 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'
16406 fi
16407 archive_cmds_need_lc='no'
16408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16409 hardcode_libdir_separator=:
16410 ;;
16411
16412 osf4* | osf5*) # as osf3* with the addition of -msym flag
16413 if test yes = "$GCC"; then
16414 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16415 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'
16416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16417 else
16418 allow_undefined_flag=' -expect_unresolved \*'
16419 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'
16420 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~
16421 $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'
16422
16423 # Both c and cxx compiler support -rpath directly
16424 hardcode_libdir_flag_spec='-rpath $libdir'
16425 fi
16426 archive_cmds_need_lc='no'
16427 hardcode_libdir_separator=:
16428 ;;
16429
16430 solaris*)
16431 no_undefined_flag=' -z defs'
16432 if test yes = "$GCC"; then
16433 wlarc='$wl'
16434 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16436 $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'
16437 else
16438 case `$CC -V 2>&1` in
16439 *"Compilers 5.0"*)
16440 wlarc=''
16441 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16443 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16444 ;;
16445 *)
16446 wlarc='$wl'
16447 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16449 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16450 ;;
16451 esac
16452 fi
16453 hardcode_libdir_flag_spec='-R$libdir'
16454 hardcode_shlibpath_var=no
16455 case $host_os in
16456 solaris2.[0-5] | solaris2.[0-5].*) ;;
16457 *)
16458 # The compiler driver will combine and reorder linker options,
16459 # but understands '-z linker_flag'. GCC discards it without '$wl',
16460 # but is careful enough not to reorder.
16461 # Supported since Solaris 2.6 (maybe 2.5.1?)
16462 if test yes = "$GCC"; then
16463 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16464 else
16465 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16466 fi
16467 ;;
16468 esac
16469 link_all_deplibs=yes
16470 ;;
16471
16472 sunos4*)
16473 if test sequent = "$host_vendor"; then
16474 # Use $CC to link under sequent, because it throws in some extra .o
16475 # files that make .init and .fini sections work.
16476 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16477 else
16478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16479 fi
16480 hardcode_libdir_flag_spec='-L$libdir'
16481 hardcode_direct=yes
16482 hardcode_minus_L=yes
16483 hardcode_shlibpath_var=no
16484 ;;
16485
16486 sysv4)
16487 case $host_vendor in
16488 sni)
16489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_direct=yes # is this really true???
16491 ;;
16492 siemens)
16493 ## LD is ld it makes a PLAMLIB
16494 ## CC just makes a GrossModule.
16495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16496 reload_cmds='$CC -r -o $output$reload_objs'
16497 hardcode_direct=no
16498 ;;
16499 motorola)
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16502 ;;
16503 esac
16504 runpath_var='LD_RUN_PATH'
16505 hardcode_shlibpath_var=no
16506 ;;
16507
16508 sysv4.3*)
16509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_shlibpath_var=no
16511 export_dynamic_flag_spec='-Bexport'
16512 ;;
16513
16514 sysv4*MP*)
16515 if test -d /usr/nec; then
16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_shlibpath_var=no
16518 runpath_var=LD_RUN_PATH
16519 hardcode_runpath_var=yes
16520 ld_shlibs=yes
16521 fi
16522 ;;
16523
16524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16525 no_undefined_flag='$wl-z,text'
16526 archive_cmds_need_lc=no
16527 hardcode_shlibpath_var=no
16528 runpath_var='LD_RUN_PATH'
16529
16530 if test yes = "$GCC"; then
16531 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16532 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 else
16534 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 fi
16537 ;;
16538
16539 sysv5* | sco3.2v5* | sco5v6*)
16540 # Note: We CANNOT use -z defs as we might desire, because we do not
16541 # link with -lc, and that would cause any symbols used from libc to
16542 # always be unresolved, which means just about no library would
16543 # ever link correctly. If we're not using GNU ld we use -z text
16544 # though, which does catch some bad symbols but isn't as heavy-handed
16545 # as -z defs.
16546 no_undefined_flag='$wl-z,text'
16547 allow_undefined_flag='$wl-z,nodefs'
16548 archive_cmds_need_lc=no
16549 hardcode_shlibpath_var=no
16550 hardcode_libdir_flag_spec='$wl-R,$libdir'
16551 hardcode_libdir_separator=':'
16552 link_all_deplibs=yes
16553 export_dynamic_flag_spec='$wl-Bexport'
16554 runpath_var='LD_RUN_PATH'
16555
16556 if test yes = "$GCC"; then
16557 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 else
16560 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 fi
16563 ;;
16564
16565 uts4*)
16566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_libdir_flag_spec='-L$libdir'
16568 hardcode_shlibpath_var=no
16569 ;;
16570
16571 *)
16572 ld_shlibs=no
16573 ;;
16574 esac
16575
16576 if test sni = "$host_vendor"; then
16577 case $host in
16578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16579 export_dynamic_flag_spec='$wl-Blargedynsym'
16580 ;;
16581 esac
16582 fi
16583 fi
16584
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16586 $as_echo "$ld_shlibs" >&6; }
16587 test no = "$ld_shlibs" && can_build_shared=no
16588
16589 with_gnu_ld=$with_gnu_ld
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605 #
16606 # Do we need to explicitly link libc?
16607 #
16608 case "x$archive_cmds_need_lc" in
16609 x|xyes)
16610 # Assume -lc should be added
16611 archive_cmds_need_lc=yes
16612
16613 if test yes,yes = "$GCC,$enable_shared"; then
16614 case $archive_cmds in
16615 *'~'*)
16616 # FIXME: we may have to deal with multi-command sequences.
16617 ;;
16618 '$CC '*)
16619 # Test whether the compiler implicitly links with -lc since on some
16620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16621 # to ld, don't add -lc before -lgcc.
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16623 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16624 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 $RM conftest*
16628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16629
16630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16631 (eval $ac_compile) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; } 2>conftest.err; then
16635 soname=conftest
16636 lib=conftest
16637 libobjs=conftest.$ac_objext
16638 deplibs=
16639 wl=$lt_prog_compiler_wl
16640 pic_flag=$lt_prog_compiler_pic
16641 compiler_flags=-v
16642 linker_flags=-v
16643 verstring=
16644 output_objdir=.
16645 libname=conftest
16646 lt_save_allow_undefined_flag=$allow_undefined_flag
16647 allow_undefined_flag=
16648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16649 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16650 ac_status=$?
16651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16652 test $ac_status = 0; }
16653 then
16654 lt_cv_archive_cmds_need_lc=no
16655 else
16656 lt_cv_archive_cmds_need_lc=yes
16657 fi
16658 allow_undefined_flag=$lt_save_allow_undefined_flag
16659 else
16660 cat conftest.err 1>&5
16661 fi
16662 $RM conftest*
16663
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16666 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16667 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16668 ;;
16669 esac
16670 fi
16671 ;;
16672 esac
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
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16826 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16827
16828 if test yes = "$GCC"; then
16829 case $host_os in
16830 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16831 *) lt_awk_arg='/^libraries:/' ;;
16832 esac
16833 case $host_os in
16834 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16835 *) lt_sed_strip_eq='s|=/|/|g' ;;
16836 esac
16837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16838 case $lt_search_path_spec in
16839 *\;*)
16840 # if the path contains ";" then we assume it to be the separator
16841 # otherwise default to the standard path separator (i.e. ":") - it is
16842 # assumed that no part of a normal pathname contains ";" but that should
16843 # okay in the real world where ";" in dirpaths is itself problematic.
16844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16845 ;;
16846 *)
16847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16848 ;;
16849 esac
16850 # Ok, now we have the path, separated by spaces, we can step through it
16851 # and add multilib dir if necessary...
16852 lt_tmp_lt_search_path_spec=
16853 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16854 # ...but if some path component already ends with the multilib dir we assume
16855 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16856 case "$lt_multi_os_dir; $lt_search_path_spec " in
16857 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16858 lt_multi_os_dir=
16859 ;;
16860 esac
16861 for lt_sys_path in $lt_search_path_spec; do
16862 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16864 elif test -n "$lt_multi_os_dir"; then
16865 test -d "$lt_sys_path" && \
16866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16867 fi
16868 done
16869 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16870 BEGIN {RS = " "; FS = "/|\n";} {
16871 lt_foo = "";
16872 lt_count = 0;
16873 for (lt_i = NF; lt_i > 0; lt_i--) {
16874 if ($lt_i != "" && $lt_i != ".") {
16875 if ($lt_i == "..") {
16876 lt_count++;
16877 } else {
16878 if (lt_count == 0) {
16879 lt_foo = "/" $lt_i lt_foo;
16880 } else {
16881 lt_count--;
16882 }
16883 }
16884 }
16885 }
16886 if (lt_foo != "") { lt_freq[lt_foo]++; }
16887 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16888 }'`
16889 # AWK program above erroneously prepends '/' to C:/dos/paths
16890 # for these hosts.
16891 case $host_os in
16892 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16893 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16894 esac
16895 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16896 else
16897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16898 fi
16899 library_names_spec=
16900 libname_spec='lib$name'
16901 soname_spec=
16902 shrext_cmds=.so
16903 postinstall_cmds=
16904 postuninstall_cmds=
16905 finish_cmds=
16906 finish_eval=
16907 shlibpath_var=
16908 shlibpath_overrides_runpath=unknown
16909 version_type=none
16910 dynamic_linker="$host_os ld.so"
16911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16912 need_lib_prefix=unknown
16913 hardcode_into_libs=no
16914
16915 # when you set need_version to no, make sure it does not cause -set_version
16916 # flags to be left without arguments
16917 need_version=unknown
16918
16919
16920
16921 case $host_os in
16922 aix3*)
16923 version_type=linux # correct to gnu/linux during the next big refactor
16924 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16925 shlibpath_var=LIBPATH
16926
16927 # AIX 3 has no versioning support, so we append a major version to the name.
16928 soname_spec='$libname$release$shared_ext$major'
16929 ;;
16930
16931 aix[4-9]*)
16932 version_type=linux # correct to gnu/linux during the next big refactor
16933 need_lib_prefix=no
16934 need_version=no
16935 hardcode_into_libs=yes
16936 if test ia64 = "$host_cpu"; then
16937 # AIX 5 supports IA64
16938 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 else
16941 # With GCC up to 2.95.x, collect2 would create an import file
16942 # for dependence libraries. The import file would start with
16943 # the line '#! .'. This would cause the generated library to
16944 # depend on '.', always an invalid library. This was fixed in
16945 # development snapshots of GCC prior to 3.0.
16946 case $host_os in
16947 aix4 | aix4.[01] | aix4.[01].*)
16948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16949 echo ' yes '
16950 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16951 :
16952 else
16953 can_build_shared=no
16954 fi
16955 ;;
16956 esac
16957 # Using Import Files as archive members, it is possible to support
16958 # filename-based versioning of shared library archives on AIX. While
16959 # this would work for both with and without runtime linking, it will
16960 # prevent static linking of such archives. So we do filename-based
16961 # shared library versioning with .so extension only, which is used
16962 # when both runtime linking and shared linking is enabled.
16963 # Unfortunately, runtime linking may impact performance, so we do
16964 # not want this to be the default eventually. Also, we use the
16965 # versioned .so libs for executables only if there is the -brtl
16966 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16967 # To allow for filename-based versioning support, we need to create
16968 # libNAME.so.V as an archive file, containing:
16969 # *) an Import File, referring to the versioned filename of the
16970 # archive as well as the shared archive member, telling the
16971 # bitwidth (32 or 64) of that shared object, and providing the
16972 # list of exported symbols of that shared object, eventually
16973 # decorated with the 'weak' keyword
16974 # *) the shared object with the F_LOADONLY flag set, to really avoid
16975 # it being seen by the linker.
16976 # At run time we better use the real file rather than another symlink,
16977 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16978
16979 case $with_aix_soname,$aix_use_runtimelinking in
16980 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16981 # soname into executable. Probably we can add versioning support to
16982 # collect2, so additional links can be useful in future.
16983 aix,yes) # traditional libtool
16984 dynamic_linker='AIX unversionable lib.so'
16985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16986 # instead of lib<name>.a to let people know that these are not
16987 # typical AIX shared libraries.
16988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16989 ;;
16990 aix,no) # traditional AIX only
16991 dynamic_linker='AIX lib.a(lib.so.V)'
16992 # We preserve .a as extension for shared libraries through AIX4.2
16993 # and later when we are not doing run time linking.
16994 library_names_spec='$libname$release.a $libname.a'
16995 soname_spec='$libname$release$shared_ext$major'
16996 ;;
16997 svr4,*) # full svr4 only
16998 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16999 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17000 # We do not specify a path in Import Files, so LIBPATH fires.
17001 shlibpath_overrides_runpath=yes
17002 ;;
17003 *,yes) # both, prefer svr4
17004 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17005 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17006 # unpreferred sharedlib libNAME.a needs extra handling
17007 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"'
17008 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"'
17009 # We do not specify a path in Import Files, so LIBPATH fires.
17010 shlibpath_overrides_runpath=yes
17011 ;;
17012 *,no) # both, prefer aix
17013 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17014 library_names_spec='$libname$release.a $libname.a'
17015 soname_spec='$libname$release$shared_ext$major'
17016 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17017 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)'
17018 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"'
17019 ;;
17020 esac
17021 shlibpath_var=LIBPATH
17022 fi
17023 ;;
17024
17025 amigaos*)
17026 case $host_cpu in
17027 powerpc)
17028 # Since July 2007 AmigaOS4 officially supports .so libraries.
17029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17031 ;;
17032 m68k)
17033 library_names_spec='$libname.ixlibrary $libname.a'
17034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17035 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'
17036 ;;
17037 esac
17038 ;;
17039
17040 beos*)
17041 library_names_spec='$libname$shared_ext'
17042 dynamic_linker="$host_os ld.so"
17043 shlibpath_var=LIBRARY_PATH
17044 ;;
17045
17046 bsdi[45]*)
17047 version_type=linux # correct to gnu/linux during the next big refactor
17048 need_version=no
17049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17050 soname_spec='$libname$release$shared_ext$major'
17051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17055 # the default ld.so.conf also contains /usr/contrib/lib and
17056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17057 # libtool to hard-code these into programs
17058 ;;
17059
17060 cygwin* | mingw* | pw32* | cegcc*)
17061 version_type=windows
17062 shrext_cmds=.dll
17063 need_version=no
17064 need_lib_prefix=no
17065
17066 case $GCC,$cc_basename in
17067 yes,*)
17068 # gcc
17069 library_names_spec='$libname.dll.a'
17070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17071 postinstall_cmds='base_file=`basename \$file`~
17072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17073 dldir=$destdir/`dirname \$dlpath`~
17074 test -d \$dldir || mkdir -p \$dldir~
17075 $install_prog $dir/$dlname \$dldir/$dlname~
17076 chmod a+x \$dldir/$dlname~
17077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17079 fi'
17080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17081 dlpath=$dir/\$dldll~
17082 $RM \$dlpath'
17083 shlibpath_overrides_runpath=yes
17084
17085 case $host_os in
17086 cygwin*)
17087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17088 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17089
17090 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17091 ;;
17092 mingw* | cegcc*)
17093 # MinGW DLLs use traditional 'lib' prefix
17094 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17095 ;;
17096 pw32*)
17097 # pw32 DLLs use 'pw' prefix rather than 'lib'
17098 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17099 ;;
17100 esac
17101 dynamic_linker='Win32 ld.exe'
17102 ;;
17103
17104 *,cl*)
17105 # Native MSVC
17106 libname_spec='$name'
17107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17108 library_names_spec='$libname.dll.lib'
17109
17110 case $build_os in
17111 mingw*)
17112 sys_lib_search_path_spec=
17113 lt_save_ifs=$IFS
17114 IFS=';'
17115 for lt_path in $LIB
17116 do
17117 IFS=$lt_save_ifs
17118 # Let DOS variable expansion print the short 8.3 style file name.
17119 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17120 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17121 done
17122 IFS=$lt_save_ifs
17123 # Convert to MSYS style.
17124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17125 ;;
17126 cygwin*)
17127 # Convert to unix form, then to dos form, then back to unix form
17128 # but this time dos style (no spaces!) so that the unix form looks
17129 # like /cygdrive/c/PROGRA~1:/cygdr...
17130 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17131 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17132 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17133 ;;
17134 *)
17135 sys_lib_search_path_spec=$LIB
17136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17137 # It is most probably a Windows format PATH.
17138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17139 else
17140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17141 fi
17142 # FIXME: find the short name or the path components, as spaces are
17143 # common. (e.g. "Program Files" -> "PROGRA~1")
17144 ;;
17145 esac
17146
17147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148 postinstall_cmds='base_file=`basename \$file`~
17149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17150 dldir=$destdir/`dirname \$dlpath`~
17151 test -d \$dldir || mkdir -p \$dldir~
17152 $install_prog $dir/$dlname \$dldir/$dlname'
17153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17154 dlpath=$dir/\$dldll~
17155 $RM \$dlpath'
17156 shlibpath_overrides_runpath=yes
17157 dynamic_linker='Win32 link.exe'
17158 ;;
17159
17160 *)
17161 # Assume MSVC wrapper
17162 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17163 dynamic_linker='Win32 ld.exe'
17164 ;;
17165 esac
17166 # FIXME: first we should search . and the directory the executable is in
17167 shlibpath_var=PATH
17168 ;;
17169
17170 darwin* | rhapsody*)
17171 dynamic_linker="$host_os dyld"
17172 version_type=darwin
17173 need_lib_prefix=no
17174 need_version=no
17175 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17176 soname_spec='$libname$release$major$shared_ext'
17177 shlibpath_overrides_runpath=yes
17178 shlibpath_var=DYLD_LIBRARY_PATH
17179 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17180
17181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17183 ;;
17184
17185 dgux*)
17186 version_type=linux # correct to gnu/linux during the next big refactor
17187 need_lib_prefix=no
17188 need_version=no
17189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17190 soname_spec='$libname$release$shared_ext$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 ;;
17193
17194 freebsd* | dragonfly*)
17195 # DragonFly does not have aout. When/if they implement a new
17196 # versioning mechanism, adjust this.
17197 if test -x /usr/bin/objformat; then
17198 objformat=`/usr/bin/objformat`
17199 else
17200 case $host_os in
17201 freebsd[23].*) objformat=aout ;;
17202 *) objformat=elf ;;
17203 esac
17204 fi
17205 version_type=freebsd-$objformat
17206 case $version_type in
17207 freebsd-elf*)
17208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17209 soname_spec='$libname$release$shared_ext$major'
17210 need_version=no
17211 need_lib_prefix=no
17212 ;;
17213 freebsd-*)
17214 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17215 need_version=yes
17216 ;;
17217 esac
17218 shlibpath_var=LD_LIBRARY_PATH
17219 case $host_os in
17220 freebsd2.*)
17221 shlibpath_overrides_runpath=yes
17222 ;;
17223 freebsd3.[01]* | freebsdelf3.[01]*)
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 ;;
17227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17229 shlibpath_overrides_runpath=no
17230 hardcode_into_libs=yes
17231 ;;
17232 *) # from 4.6 on, and DragonFly
17233 shlibpath_overrides_runpath=yes
17234 hardcode_into_libs=yes
17235 ;;
17236 esac
17237 ;;
17238
17239 haiku*)
17240 version_type=linux # correct to gnu/linux during the next big refactor
17241 need_lib_prefix=no
17242 need_version=no
17243 dynamic_linker="$host_os runtime_loader"
17244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17245 soname_spec='$libname$release$shared_ext$major'
17246 shlibpath_var=LIBRARY_PATH
17247 shlibpath_overrides_runpath=no
17248 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17249 hardcode_into_libs=yes
17250 ;;
17251
17252 hpux9* | hpux10* | hpux11*)
17253 # Give a soname corresponding to the major version so that dld.sl refuses to
17254 # link against other versions.
17255 version_type=sunos
17256 need_lib_prefix=no
17257 need_version=no
17258 case $host_cpu in
17259 ia64*)
17260 shrext_cmds='.so'
17261 hardcode_into_libs=yes
17262 dynamic_linker="$host_os dld.so"
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17266 soname_spec='$libname$release$shared_ext$major'
17267 if test 32 = "$HPUX_IA64_MODE"; then
17268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17269 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17270 else
17271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17272 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17273 fi
17274 ;;
17275 hppa*64*)
17276 shrext_cmds='.sl'
17277 hardcode_into_libs=yes
17278 dynamic_linker="$host_os dld.sl"
17279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17282 soname_spec='$libname$release$shared_ext$major'
17283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17285 ;;
17286 *)
17287 shrext_cmds='.sl'
17288 dynamic_linker="$host_os dld.sl"
17289 shlibpath_var=SHLIB_PATH
17290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17292 soname_spec='$libname$release$shared_ext$major'
17293 ;;
17294 esac
17295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17296 postinstall_cmds='chmod 555 $lib'
17297 # or fails outright, so override atomically:
17298 install_override_mode=555
17299 ;;
17300
17301 interix[3-9]*)
17302 version_type=linux # correct to gnu/linux during the next big refactor
17303 need_lib_prefix=no
17304 need_version=no
17305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17306 soname_spec='$libname$release$shared_ext$major'
17307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17308 shlibpath_var=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath=no
17310 hardcode_into_libs=yes
17311 ;;
17312
17313 irix5* | irix6* | nonstopux*)
17314 case $host_os in
17315 nonstopux*) version_type=nonstopux ;;
17316 *)
17317 if test yes = "$lt_cv_prog_gnu_ld"; then
17318 version_type=linux # correct to gnu/linux during the next big refactor
17319 else
17320 version_type=irix
17321 fi ;;
17322 esac
17323 need_lib_prefix=no
17324 need_version=no
17325 soname_spec='$libname$release$shared_ext$major'
17326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17327 case $host_os in
17328 irix5* | nonstopux*)
17329 libsuff= shlibsuff=
17330 ;;
17331 *)
17332 case $LD in # libtool.m4 will add one of these switches to LD
17333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17334 libsuff= shlibsuff= libmagic=32-bit;;
17335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17336 libsuff=32 shlibsuff=N32 libmagic=N32;;
17337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17339 *) libsuff= shlibsuff= libmagic=never-match;;
17340 esac
17341 ;;
17342 esac
17343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17344 shlibpath_overrides_runpath=no
17345 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17346 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17347 hardcode_into_libs=yes
17348 ;;
17349
17350 # No shared lib support for Linux oldld, aout, or coff.
17351 linux*oldld* | linux*aout* | linux*coff*)
17352 dynamic_linker=no
17353 ;;
17354
17355 linux*android*)
17356 version_type=none # Android doesn't support versioned libraries.
17357 need_lib_prefix=no
17358 need_version=no
17359 library_names_spec='$libname$release$shared_ext'
17360 soname_spec='$libname$release$shared_ext'
17361 finish_cmds=
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364
17365 # This implies no fast_install, which is unacceptable.
17366 # Some rework will be needed to allow for fast_install
17367 # before this can be enabled.
17368 hardcode_into_libs=yes
17369
17370 dynamic_linker='Android linker'
17371 # Don't embed -rpath directories since the linker doesn't support them.
17372 hardcode_libdir_flag_spec='-L$libdir'
17373 ;;
17374
17375 # This must be glibc/ELF.
17376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17377 version_type=linux # correct to gnu/linux during the next big refactor
17378 need_lib_prefix=no
17379 need_version=no
17380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17381 soname_spec='$libname$release$shared_ext$major'
17382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=no
17385
17386 # Some binutils ld are patched to set DT_RUNPATH
17387 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17388 $as_echo_n "(cached) " >&6
17389 else
17390 lt_cv_shlibpath_overrides_runpath=no
17391 save_LDFLAGS=$LDFLAGS
17392 save_libdir=$libdir
17393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397
17398 int
17399 main ()
17400 {
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17408 lt_cv_shlibpath_overrides_runpath=yes
17409 fi
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LDFLAGS=$save_LDFLAGS
17414 libdir=$save_libdir
17415
17416 fi
17417
17418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17419
17420 # This implies no fast_install, which is unacceptable.
17421 # Some rework will be needed to allow for fast_install
17422 # before this can be enabled.
17423 hardcode_into_libs=yes
17424
17425 # Ideally, we could use ldconfig to report *all* directores which are
17426 # searched for libraries, however this is still not possible. Aside from not
17427 # being certain /sbin/ldconfig is available, command
17428 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17429 # even though it is searched at run-time. Try to do the best guess by
17430 # appending ld.so.conf contents (and includes) to the search path.
17431 if test -f /etc/ld.so.conf; then
17432 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' ' '`
17433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17434 fi
17435
17436 # We used to test for /lib/ld.so.1 and disable shared libraries on
17437 # powerpc, because MkLinux only supported shared libraries with the
17438 # GNU dynamic linker. Since this was broken with cross compilers,
17439 # most powerpc-linux boxes support dynamic linking these days and
17440 # people can always --disable-shared, the test was removed, and we
17441 # assume the GNU/Linux dynamic linker is in use.
17442 dynamic_linker='GNU/Linux ld.so'
17443 ;;
17444
17445 netbsdelf*-gnu)
17446 version_type=linux
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=no
17453 hardcode_into_libs=yes
17454 dynamic_linker='NetBSD ld.elf_so'
17455 ;;
17456
17457 netbsd*)
17458 version_type=sunos
17459 need_lib_prefix=no
17460 need_version=no
17461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17464 dynamic_linker='NetBSD (a.out) ld.so'
17465 else
17466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17467 soname_spec='$libname$release$shared_ext$major'
17468 dynamic_linker='NetBSD ld.elf_so'
17469 fi
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=yes
17472 hardcode_into_libs=yes
17473 ;;
17474
17475 newsos6)
17476 version_type=linux # correct to gnu/linux during the next big refactor
17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=yes
17480 ;;
17481
17482 *nto* | *qnx*)
17483 version_type=qnx
17484 need_lib_prefix=no
17485 need_version=no
17486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17487 soname_spec='$libname$release$shared_ext$major'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 shlibpath_overrides_runpath=no
17490 hardcode_into_libs=yes
17491 dynamic_linker='ldqnx.so'
17492 ;;
17493
17494 openbsd* | bitrig*)
17495 version_type=sunos
17496 sys_lib_dlsearch_path_spec=/usr/lib
17497 need_lib_prefix=no
17498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17499 need_version=no
17500 else
17501 need_version=yes
17502 fi
17503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 shlibpath_overrides_runpath=yes
17507 ;;
17508
17509 os2*)
17510 libname_spec='$name'
17511 version_type=windows
17512 shrext_cmds=.dll
17513 need_version=no
17514 need_lib_prefix=no
17515 # OS/2 can only load a DLL with a base name of 8 characters or less.
17516 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17517 v=$($ECHO $release$versuffix | tr -d .-);
17518 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17519 $ECHO $n$v`$shared_ext'
17520 library_names_spec='${libname}_dll.$libext'
17521 dynamic_linker='OS/2 ld.exe'
17522 shlibpath_var=BEGINLIBPATH
17523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17525 postinstall_cmds='base_file=`basename \$file`~
17526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17527 dldir=$destdir/`dirname \$dlpath`~
17528 test -d \$dldir || mkdir -p \$dldir~
17529 $install_prog $dir/$dlname \$dldir/$dlname~
17530 chmod a+x \$dldir/$dlname~
17531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17533 fi'
17534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17535 dlpath=$dir/\$dldll~
17536 $RM \$dlpath'
17537 ;;
17538
17539 osf3* | osf4* | osf5*)
17540 version_type=osf
17541 need_lib_prefix=no
17542 need_version=no
17543 soname_spec='$libname$release$shared_ext$major'
17544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17545 shlibpath_var=LD_LIBRARY_PATH
17546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17548 ;;
17549
17550 rdos*)
17551 dynamic_linker=no
17552 ;;
17553
17554 solaris*)
17555 version_type=linux # correct to gnu/linux during the next big refactor
17556 need_lib_prefix=no
17557 need_version=no
17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17559 soname_spec='$libname$release$shared_ext$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 shlibpath_overrides_runpath=yes
17562 hardcode_into_libs=yes
17563 # ldd complains unless libraries are executable
17564 postinstall_cmds='chmod +x $lib'
17565 ;;
17566
17567 sunos4*)
17568 version_type=sunos
17569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath=yes
17573 if test yes = "$with_gnu_ld"; then
17574 need_lib_prefix=no
17575 fi
17576 need_version=yes
17577 ;;
17578
17579 sysv4 | sysv4.3*)
17580 version_type=linux # correct to gnu/linux during the next big refactor
17581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17582 soname_spec='$libname$release$shared_ext$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 case $host_vendor in
17585 sni)
17586 shlibpath_overrides_runpath=no
17587 need_lib_prefix=no
17588 runpath_var=LD_RUN_PATH
17589 ;;
17590 siemens)
17591 need_lib_prefix=no
17592 ;;
17593 motorola)
17594 need_lib_prefix=no
17595 need_version=no
17596 shlibpath_overrides_runpath=no
17597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17598 ;;
17599 esac
17600 ;;
17601
17602 sysv4*MP*)
17603 if test -d /usr/nec; then
17604 version_type=linux # correct to gnu/linux during the next big refactor
17605 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17606 soname_spec='$libname$shared_ext.$major'
17607 shlibpath_var=LD_LIBRARY_PATH
17608 fi
17609 ;;
17610
17611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17612 version_type=sco
17613 need_lib_prefix=no
17614 need_version=no
17615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17616 soname_spec='$libname$release$shared_ext$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 shlibpath_overrides_runpath=yes
17619 hardcode_into_libs=yes
17620 if test yes = "$with_gnu_ld"; then
17621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17622 else
17623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17624 case $host_os in
17625 sco3.2v5*)
17626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17627 ;;
17628 esac
17629 fi
17630 sys_lib_dlsearch_path_spec='/usr/lib'
17631 ;;
17632
17633 tpf*)
17634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17635 version_type=linux # correct to gnu/linux during the next big refactor
17636 need_lib_prefix=no
17637 need_version=no
17638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 shlibpath_overrides_runpath=no
17641 hardcode_into_libs=yes
17642 ;;
17643
17644 uts4*)
17645 version_type=linux # correct to gnu/linux during the next big refactor
17646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17647 soname_spec='$libname$release$shared_ext$major'
17648 shlibpath_var=LD_LIBRARY_PATH
17649 ;;
17650
17651 *)
17652 dynamic_linker=no
17653 ;;
17654 esac
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17656 $as_echo "$dynamic_linker" >&6; }
17657 test no = "$dynamic_linker" && can_build_shared=no
17658
17659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17660 if test yes = "$GCC"; then
17661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17662 fi
17663
17664 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17665 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17666 fi
17667
17668 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17669 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17670 fi
17671
17672 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17673 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17674
17675 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17676 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17677
17678 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17679 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17779 hardcode_action=
17780 if test -n "$hardcode_libdir_flag_spec" ||
17781 test -n "$runpath_var" ||
17782 test yes = "$hardcode_automatic"; then
17783
17784 # We can hardcode non-existent directories.
17785 if test no != "$hardcode_direct" &&
17786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17787 # have to relink, otherwise we might link with an installed library
17788 # when we should be linking with a yet-to-be-installed one
17789 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17790 test no != "$hardcode_minus_L"; then
17791 # Linking always hardcodes the temporary library directory.
17792 hardcode_action=relink
17793 else
17794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17795 hardcode_action=immediate
17796 fi
17797 else
17798 # We cannot hardcode anything, or else we can only hardcode existing
17799 # directories.
17800 hardcode_action=unsupported
17801 fi
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17803 $as_echo "$hardcode_action" >&6; }
17804
17805 if test relink = "$hardcode_action" ||
17806 test yes = "$inherit_rpath"; then
17807 # Fast installation is not supported
17808 enable_fast_install=no
17809 elif test yes = "$shlibpath_overrides_runpath" ||
17810 test no = "$enable_shared"; then
17811 # Fast installation is not necessary
17812 enable_fast_install=needless
17813 fi
17814
17815
17816
17817
17818
17819
17820 if test yes != "$enable_dlopen"; then
17821 enable_dlopen=unknown
17822 enable_dlopen_self=unknown
17823 enable_dlopen_self_static=unknown
17824 else
17825 lt_cv_dlopen=no
17826 lt_cv_dlopen_libs=
17827
17828 case $host_os in
17829 beos*)
17830 lt_cv_dlopen=load_add_on
17831 lt_cv_dlopen_libs=
17832 lt_cv_dlopen_self=yes
17833 ;;
17834
17835 mingw* | pw32* | cegcc*)
17836 lt_cv_dlopen=LoadLibrary
17837 lt_cv_dlopen_libs=
17838 ;;
17839
17840 cygwin*)
17841 lt_cv_dlopen=dlopen
17842 lt_cv_dlopen_libs=
17843 ;;
17844
17845 darwin*)
17846 # if libdl is installed we need to link against it
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17849 if ${ac_cv_lib_dl_dlopen+:} false; then :
17850 $as_echo_n "(cached) " >&6
17851 else
17852 ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-ldl $LIBS"
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860 #ifdef __cplusplus
17861 extern "C"
17862 #endif
17863 char dlopen ();
17864 int
17865 main ()
17866 {
17867 return dlopen ();
17868 ;
17869 return 0;
17870 }
17871 _ACEOF
17872 if ac_fn_c_try_link "$LINENO"; then :
17873 ac_cv_lib_dl_dlopen=yes
17874 else
17875 ac_cv_lib_dl_dlopen=no
17876 fi
17877 rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17880 fi
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17884 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17885 else
17886
17887 lt_cv_dlopen=dyld
17888 lt_cv_dlopen_libs=
17889 lt_cv_dlopen_self=yes
17890
17891 fi
17892
17893 ;;
17894
17895 tpf*)
17896 # Don't try to run any link tests for TPF. We know it's impossible
17897 # because TPF is a cross-compiler, and we know how we open DSOs.
17898 lt_cv_dlopen=dlopen
17899 lt_cv_dlopen_libs=
17900 lt_cv_dlopen_self=no
17901 ;;
17902
17903 *)
17904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17905 if test "x$ac_cv_func_shl_load" = xyes; then :
17906 lt_cv_dlopen=shl_load
17907 else
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17910 if ${ac_cv_lib_dld_shl_load+:} false; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 ac_check_lib_save_LIBS=$LIBS
17914 LIBS="-ldld $LIBS"
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char shl_load ();
17925 int
17926 main ()
17927 {
17928 return shl_load ();
17929 ;
17930 return 0;
17931 }
17932 _ACEOF
17933 if ac_fn_c_try_link "$LINENO"; then :
17934 ac_cv_lib_dld_shl_load=yes
17935 else
17936 ac_cv_lib_dld_shl_load=no
17937 fi
17938 rm -f core conftest.err conftest.$ac_objext \
17939 conftest$ac_exeext conftest.$ac_ext
17940 LIBS=$ac_check_lib_save_LIBS
17941 fi
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17945 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17946 else
17947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17948 if test "x$ac_cv_func_dlopen" = xyes; then :
17949 lt_cv_dlopen=dlopen
17950 else
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17953 if ${ac_cv_lib_dl_dlopen+:} false; then :
17954 $as_echo_n "(cached) " >&6
17955 else
17956 ac_check_lib_save_LIBS=$LIBS
17957 LIBS="-ldl $LIBS"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17964 #ifdef __cplusplus
17965 extern "C"
17966 #endif
17967 char dlopen ();
17968 int
17969 main ()
17970 {
17971 return dlopen ();
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 if ac_fn_c_try_link "$LINENO"; then :
17977 ac_cv_lib_dl_dlopen=yes
17978 else
17979 ac_cv_lib_dl_dlopen=no
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17983 LIBS=$ac_check_lib_save_LIBS
17984 fi
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17989 else
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17992 if ${ac_cv_lib_svld_dlopen+:} false; then :
17993 $as_echo_n "(cached) " >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lsvld $LIBS"
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char dlopen ();
18007 int
18008 main ()
18009 {
18010 return dlopen ();
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 ac_cv_lib_svld_dlopen=yes
18017 else
18018 ac_cv_lib_svld_dlopen=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18028 else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18031 if ${ac_cv_lib_dld_dld_link+:} false; then :
18032 $as_echo_n "(cached) " >&6
18033 else
18034 ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-ldld $LIBS"
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18038
18039 /* Override any GCC internal prototype to avoid an error.
18040 Use char because int might match the return type of a GCC
18041 builtin and then its argument prototype would still apply. */
18042 #ifdef __cplusplus
18043 extern "C"
18044 #endif
18045 char dld_link ();
18046 int
18047 main ()
18048 {
18049 return dld_link ();
18050 ;
18051 return 0;
18052 }
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"; then :
18055 ac_cv_lib_dld_dld_link=yes
18056 else
18057 ac_cv_lib_dld_dld_link=no
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061 LIBS=$ac_check_lib_save_LIBS
18062 fi
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18066 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18067 fi
18068
18069
18070 fi
18071
18072
18073 fi
18074
18075
18076 fi
18077
18078
18079 fi
18080
18081
18082 fi
18083
18084 ;;
18085 esac
18086
18087 if test no = "$lt_cv_dlopen"; then
18088 enable_dlopen=no
18089 else
18090 enable_dlopen=yes
18091 fi
18092
18093 case $lt_cv_dlopen in
18094 dlopen)
18095 save_CPPFLAGS=$CPPFLAGS
18096 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18097
18098 save_LDFLAGS=$LDFLAGS
18099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18100
18101 save_LIBS=$LIBS
18102 LIBS="$lt_cv_dlopen_libs $LIBS"
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18106 if ${lt_cv_dlopen_self+:} false; then :
18107 $as_echo_n "(cached) " >&6
18108 else
18109 if test yes = "$cross_compiling"; then :
18110 lt_cv_dlopen_self=cross
18111 else
18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113 lt_status=$lt_dlunknown
18114 cat > conftest.$ac_ext <<_LT_EOF
18115 #line $LINENO "configure"
18116 #include "confdefs.h"
18117
18118 #if HAVE_DLFCN_H
18119 #include <dlfcn.h>
18120 #endif
18121
18122 #include <stdio.h>
18123
18124 #ifdef RTLD_GLOBAL
18125 # define LT_DLGLOBAL RTLD_GLOBAL
18126 #else
18127 # ifdef DL_GLOBAL
18128 # define LT_DLGLOBAL DL_GLOBAL
18129 # else
18130 # define LT_DLGLOBAL 0
18131 # endif
18132 #endif
18133
18134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135 find out it does not work in some platform. */
18136 #ifndef LT_DLLAZY_OR_NOW
18137 # ifdef RTLD_LAZY
18138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18139 # else
18140 # ifdef DL_LAZY
18141 # define LT_DLLAZY_OR_NOW DL_LAZY
18142 # else
18143 # ifdef RTLD_NOW
18144 # define LT_DLLAZY_OR_NOW RTLD_NOW
18145 # else
18146 # ifdef DL_NOW
18147 # define LT_DLLAZY_OR_NOW DL_NOW
18148 # else
18149 # define LT_DLLAZY_OR_NOW 0
18150 # endif
18151 # endif
18152 # endif
18153 # endif
18154 #endif
18155
18156 /* When -fvisibility=hidden is used, assume the code has been annotated
18157 correspondingly for the symbols needed. */
18158 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18159 int fnord () __attribute__((visibility("default")));
18160 #endif
18161
18162 int fnord () { return 42; }
18163 int main ()
18164 {
18165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18166 int status = $lt_dlunknown;
18167
18168 if (self)
18169 {
18170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18171 else
18172 {
18173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18174 else puts (dlerror ());
18175 }
18176 /* dlclose (self); */
18177 }
18178 else
18179 puts (dlerror ());
18180
18181 return status;
18182 }
18183 _LT_EOF
18184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18185 (eval $ac_link) 2>&5
18186 ac_status=$?
18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18189 (./conftest; exit; ) >&5 2>/dev/null
18190 lt_status=$?
18191 case x$lt_status in
18192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18195 esac
18196 else :
18197 # compilation failed
18198 lt_cv_dlopen_self=no
18199 fi
18200 fi
18201 rm -fr conftest*
18202
18203
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18206 $as_echo "$lt_cv_dlopen_self" >&6; }
18207
18208 if test yes = "$lt_cv_dlopen_self"; then
18209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18212 if ${lt_cv_dlopen_self_static+:} false; then :
18213 $as_echo_n "(cached) " >&6
18214 else
18215 if test yes = "$cross_compiling"; then :
18216 lt_cv_dlopen_self_static=cross
18217 else
18218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18219 lt_status=$lt_dlunknown
18220 cat > conftest.$ac_ext <<_LT_EOF
18221 #line $LINENO "configure"
18222 #include "confdefs.h"
18223
18224 #if HAVE_DLFCN_H
18225 #include <dlfcn.h>
18226 #endif
18227
18228 #include <stdio.h>
18229
18230 #ifdef RTLD_GLOBAL
18231 # define LT_DLGLOBAL RTLD_GLOBAL
18232 #else
18233 # ifdef DL_GLOBAL
18234 # define LT_DLGLOBAL DL_GLOBAL
18235 # else
18236 # define LT_DLGLOBAL 0
18237 # endif
18238 #endif
18239
18240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18241 find out it does not work in some platform. */
18242 #ifndef LT_DLLAZY_OR_NOW
18243 # ifdef RTLD_LAZY
18244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18245 # else
18246 # ifdef DL_LAZY
18247 # define LT_DLLAZY_OR_NOW DL_LAZY
18248 # else
18249 # ifdef RTLD_NOW
18250 # define LT_DLLAZY_OR_NOW RTLD_NOW
18251 # else
18252 # ifdef DL_NOW
18253 # define LT_DLLAZY_OR_NOW DL_NOW
18254 # else
18255 # define LT_DLLAZY_OR_NOW 0
18256 # endif
18257 # endif
18258 # endif
18259 # endif
18260 #endif
18261
18262 /* When -fvisibility=hidden is used, assume the code has been annotated
18263 correspondingly for the symbols needed. */
18264 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18265 int fnord () __attribute__((visibility("default")));
18266 #endif
18267
18268 int fnord () { return 42; }
18269 int main ()
18270 {
18271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18272 int status = $lt_dlunknown;
18273
18274 if (self)
18275 {
18276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18277 else
18278 {
18279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18280 else puts (dlerror ());
18281 }
18282 /* dlclose (self); */
18283 }
18284 else
18285 puts (dlerror ());
18286
18287 return status;
18288 }
18289 _LT_EOF
18290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18291 (eval $ac_link) 2>&5
18292 ac_status=$?
18293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18294 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18295 (./conftest; exit; ) >&5 2>/dev/null
18296 lt_status=$?
18297 case x$lt_status in
18298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18301 esac
18302 else :
18303 # compilation failed
18304 lt_cv_dlopen_self_static=no
18305 fi
18306 fi
18307 rm -fr conftest*
18308
18309
18310 fi
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18313 fi
18314
18315 CPPFLAGS=$save_CPPFLAGS
18316 LDFLAGS=$save_LDFLAGS
18317 LIBS=$save_LIBS
18318 ;;
18319 esac
18320
18321 case $lt_cv_dlopen_self in
18322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18323 *) enable_dlopen_self=unknown ;;
18324 esac
18325
18326 case $lt_cv_dlopen_self_static in
18327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18328 *) enable_dlopen_self_static=unknown ;;
18329 esac
18330 fi
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348 striplib=
18349 old_striplib=
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356 $as_echo "yes" >&6; }
18357 else
18358 # FIXME - insert some real tests, host_os isn't really good enough
18359 case $host_os in
18360 darwin*)
18361 if test -n "$STRIP"; then
18362 striplib="$STRIP -x"
18363 old_striplib="$STRIP -S"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18365 $as_echo "yes" >&6; }
18366 else
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18368 $as_echo "no" >&6; }
18369 fi
18370 ;;
18371 *)
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18374 ;;
18375 esac
18376 fi
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389 # Report what library types will actually be built
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18393 $as_echo "$can_build_shared" >&6; }
18394
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18396 $as_echo_n "checking whether to build shared libraries... " >&6; }
18397 test no = "$can_build_shared" && enable_shared=no
18398
18399 # On AIX, shared libraries and static libraries use the same namespace, and
18400 # are all built from PIC.
18401 case $host_os in
18402 aix3*)
18403 test yes = "$enable_shared" && enable_static=no
18404 if test -n "$RANLIB"; then
18405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18406 postinstall_cmds='$RANLIB $lib'
18407 fi
18408 ;;
18409
18410 aix[4-9]*)
18411 if test ia64 != "$host_cpu"; then
18412 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18413 yes,aix,yes) ;; # shared object as lib.so file only
18414 yes,svr4,*) ;; # shared object as lib.so archive member only
18415 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18416 esac
18417 fi
18418 ;;
18419 esac
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18421 $as_echo "$enable_shared" >&6; }
18422
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18424 $as_echo_n "checking whether to build static libraries... " >&6; }
18425 # Make sure either enable_shared or enable_static is yes.
18426 test yes = "$enable_shared" || enable_static=yes
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18428 $as_echo "$enable_static" >&6; }
18429
18430
18431
18432
18433 fi
18434 ac_ext=c
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439
18440 CC=$lt_save_CC
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456 ac_config_commands="$ac_config_commands libtool"
18457
18458
18459
18460
18461 # Only expand once:
18462
18463
18464
18465
18466
18467 # Define a configure option for an alternate module directory
18468
18469 # Check whether --with-xorg-module-dir was given.
18470 if test "${with_xorg_module_dir+set}" = set; then :
18471 withval=$with_xorg_module_dir; moduledir="$withval"
18472 else
18473 moduledir="$libdir/xorg/modules"
18474 fi
18475
18476
18477 # Store the list of server defined optional extensions in REQUIRED_MODULES
18478
18479
18480 SAVE_CFLAGS="$CFLAGS"
18481 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484
18485 #include "xorg-server.h"
18486 #if !defined RANDR
18487 #error RANDR not defined
18488 #endif
18489
18490 int
18491 main ()
18492 {
18493
18494 ;
18495 return 0;
18496 }
18497 _ACEOF
18498 if ac_fn_c_try_compile "$LINENO"; then :
18499 _EXT_CHECK=yes
18500 else
18501 _EXT_CHECK=no
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 CFLAGS="$SAVE_CFLAGS"
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18506 $as_echo_n "checking if RANDR is defined... " >&6; }
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18508 $as_echo "$_EXT_CHECK" >&6; }
18509 if test "$_EXT_CHECK" != no; then
18510 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18511 fi
18512
18513
18514
18515 SAVE_CFLAGS="$CFLAGS"
18516 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519
18520 #include "xorg-server.h"
18521 #if !defined RENDER
18522 #error RENDER not defined
18523 #endif
18524
18525 int
18526 main ()
18527 {
18528
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 if ac_fn_c_try_compile "$LINENO"; then :
18534 _EXT_CHECK=yes
18535 else
18536 _EXT_CHECK=no
18537 fi
18538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18539 CFLAGS="$SAVE_CFLAGS"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18541 $as_echo_n "checking if RENDER is defined... " >&6; }
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18543 $as_echo "$_EXT_CHECK" >&6; }
18544 if test "$_EXT_CHECK" != no; then
18545 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18546 fi
18547
18548
18549
18550 SAVE_CFLAGS="$CFLAGS"
18551 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h. */
18554
18555 #include "xorg-server.h"
18556 #if !defined XV
18557 #error XV not defined
18558 #endif
18559
18560 int
18561 main ()
18562 {
18563
18564 ;
18565 return 0;
18566 }
18567 _ACEOF
18568 if ac_fn_c_try_compile "$LINENO"; then :
18569 _EXT_CHECK=yes
18570 else
18571 _EXT_CHECK=no
18572 fi
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 CFLAGS="$SAVE_CFLAGS"
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18576 $as_echo_n "checking if XV is defined... " >&6; }
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18578 $as_echo "$_EXT_CHECK" >&6; }
18579 if test "$_EXT_CHECK" != no; then
18580 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18581 fi
18582
18583
18584
18585 SAVE_CFLAGS="$CFLAGS"
18586 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589
18590 #include "xorg-server.h"
18591 #if !defined DPMSExtension
18592 #error DPMSExtension not defined
18593 #endif
18594
18595 int
18596 main ()
18597 {
18598
18599 ;
18600 return 0;
18601 }
18602 _ACEOF
18603 if ac_fn_c_try_compile "$LINENO"; then :
18604 _EXT_CHECK=yes
18605 else
18606 _EXT_CHECK=no
18607 fi
18608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18609 CFLAGS="$SAVE_CFLAGS"
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18611 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18613 $as_echo "$_EXT_CHECK" >&6; }
18614 if test "$_EXT_CHECK" != no; then
18615 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18616 fi
18617
18618
18619 # Obtain compiler/linker options for the driver dependencies
18620
18621 pkg_failed=no
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18623 $as_echo_n "checking for XORG... " >&6; }
18624
18625 if test -n "$XORG_CFLAGS"; then
18626 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18627 elif test -n "$PKG_CONFIG"; then
18628 if test -n "$PKG_CONFIG" && \
18629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18630 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18631 ac_status=$?
18632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18633 test $ac_status = 0; }; then
18634 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18635 test "x$?" != "x0" && pkg_failed=yes
18636 else
18637 pkg_failed=yes
18638 fi
18639 else
18640 pkg_failed=untried
18641 fi
18642 if test -n "$XORG_LIBS"; then
18643 pkg_cv_XORG_LIBS="$XORG_LIBS"
18644 elif test -n "$PKG_CONFIG"; then
18645 if test -n "$PKG_CONFIG" && \
18646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18647 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18648 ac_status=$?
18649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18650 test $ac_status = 0; }; then
18651 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18652 test "x$?" != "x0" && pkg_failed=yes
18653 else
18654 pkg_failed=yes
18655 fi
18656 else
18657 pkg_failed=untried
18658 fi
18659
18660
18661
18662 if test $pkg_failed = yes; then
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18664 $as_echo "no" >&6; }
18665
18666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18667 _pkg_short_errors_supported=yes
18668 else
18669 _pkg_short_errors_supported=no
18670 fi
18671 if test $_pkg_short_errors_supported = yes; then
18672 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18673 else
18674 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18675 fi
18676 # Put the nasty error message in config.log where it belongs
18677 echo "$XORG_PKG_ERRORS" >&5
18678
18679 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18680
18681 $XORG_PKG_ERRORS
18682
18683 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18684 installed software in a non-standard prefix.
18685
18686 Alternatively, you may set the environment variables XORG_CFLAGS
18687 and XORG_LIBS to avoid the need to call pkg-config.
18688 See the pkg-config man page for more details." "$LINENO" 5
18689 elif test $pkg_failed = untried; then
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691 $as_echo "no" >&6; }
18692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18694 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18695 is in your PATH or set the PKG_CONFIG environment variable to the full
18696 path to pkg-config.
18697
18698 Alternatively, you may set the environment variables XORG_CFLAGS
18699 and XORG_LIBS to avoid the need to call pkg-config.
18700 See the pkg-config man page for more details.
18701
18702 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18703 See \`config.log' for more details" "$LINENO" 5; }
18704 else
18705 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18706 XORG_LIBS=$pkg_cv_XORG_LIBS
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18708 $as_echo "yes" >&6; }
18709
18710 fi
18711
18712 # Checks for libraries.
18713 SAVE_CPPFLAGS="$CPPFLAGS"
18714 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18715 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18716 "
18717 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18718 XSERVER_LIBPCIACCESS=yes
18719 else
18720 XSERVER_LIBPCIACCESS=no
18721 fi
18722
18723 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18724 if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18725
18726 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18727
18728 fi
18729
18730
18731 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18732 if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18733
18734 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18735
18736 fi
18737
18738
18739 CPPFLAGS="$SAVE_CPPFLAGS"
18740
18741 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18742
18743 pkg_failed=no
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18745 $as_echo_n "checking for PCIACCESS... " >&6; }
18746
18747 if test -n "$PCIACCESS_CFLAGS"; then
18748 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18749 elif test -n "$PKG_CONFIG"; then
18750 if test -n "$PKG_CONFIG" && \
18751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18752 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18753 ac_status=$?
18754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18755 test $ac_status = 0; }; then
18756 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18757 test "x$?" != "x0" && pkg_failed=yes
18758 else
18759 pkg_failed=yes
18760 fi
18761 else
18762 pkg_failed=untried
18763 fi
18764 if test -n "$PCIACCESS_LIBS"; then
18765 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18766 elif test -n "$PKG_CONFIG"; then
18767 if test -n "$PKG_CONFIG" && \
18768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18769 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18770 ac_status=$?
18771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18772 test $ac_status = 0; }; then
18773 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18774 test "x$?" != "x0" && pkg_failed=yes
18775 else
18776 pkg_failed=yes
18777 fi
18778 else
18779 pkg_failed=untried
18780 fi
18781
18782
18783
18784 if test $pkg_failed = yes; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18786 $as_echo "no" >&6; }
18787
18788 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18789 _pkg_short_errors_supported=yes
18790 else
18791 _pkg_short_errors_supported=no
18792 fi
18793 if test $_pkg_short_errors_supported = yes; then
18794 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18795 else
18796 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18797 fi
18798 # Put the nasty error message in config.log where it belongs
18799 echo "$PCIACCESS_PKG_ERRORS" >&5
18800
18801 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18802
18803 $PCIACCESS_PKG_ERRORS
18804
18805 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18806 installed software in a non-standard prefix.
18807
18808 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18809 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18810 See the pkg-config man page for more details." "$LINENO" 5
18811 elif test $pkg_failed = untried; then
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813 $as_echo "no" >&6; }
18814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18816 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18817 is in your PATH or set the PKG_CONFIG environment variable to the full
18818 path to pkg-config.
18819
18820 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18821 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18822 See the pkg-config man page for more details.
18823
18824 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18825 See \`config.log' for more details" "$LINENO" 5; }
18826 else
18827 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18828 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830 $as_echo "yes" >&6; }
18831
18832 fi
18833 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18834 fi
18835 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18836 XSERVER_LIBPCIACCESS_TRUE=
18837 XSERVER_LIBPCIACCESS_FALSE='#'
18838 else
18839 XSERVER_LIBPCIACCESS_TRUE='#'
18840 XSERVER_LIBPCIACCESS_FALSE=
18841 fi
18842
18843 # Check whether --enable-xaa was given.
18844 if test "${enable_xaa+set}" = set; then :
18845 enableval=$enable_xaa; XAA="$enableval"
18846 else
18847 XAA=auto
18848 fi
18849
18850 if test "x$XAA" != xno; then
18851 save_CFLAGS=$CFLAGS
18852 save_CPPFLAGS=$CPPFLAGS
18853 CFLAGS=$XORG_CFLAGS
18854 CPPFLAGS="$XORG_CFLAGS"
18855 for ac_header in xaa.h
18856 do :
18857 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18858 if test "x$ac_cv_header_xaa_h" = xyes; then :
18859 cat >>confdefs.h <<_ACEOF
18860 #define HAVE_XAA_H 1
18861 _ACEOF
18862 XAA=yes
18863 else
18864 XAA=no
18865 fi
18866
18867 done
18868
18869 CFLAGS=$save_CFLAGS
18870 CPPFLAGS=$save_CPPFLAGS
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18873 $as_echo_n "checking whether to include XAA support... " >&6; }
18874 if test "x$XAA" = xyes; then
18875 XAA_TRUE=
18876 XAA_FALSE='#'
18877 else
18878 XAA_TRUE='#'
18879 XAA_FALSE=
18880 fi
18881
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18883 $as_echo "$XAA" >&6; }
18884
18885 save_CFLAGS="$CFLAGS"
18886 CFLAGS="$XORG_CFLAGS"
18887 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18888 "
18889 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18890
18891 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18892
18893 fi
18894
18895 CFLAGS="$save_CFLAGS"
18896
18897
18898 # Checks for functions (often defined as inlines in compiler.h)
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb" >&5
18900 $as_echo_n "checking for inb... " >&6; }
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903
18904 #include "util/AsmMacros.h"
18905
18906 int main() {
18907 int x = inb(0);
18908 return x;
18909 }
18910
18911 _ACEOF
18912 if ac_fn_c_try_link "$LINENO"; then :
18913 HAVE_INB=yes
18914 else
18915 HAVE_INB=no
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5
18920 $as_echo "$HAVE_INB" >&6; }
18921 if test x$HAVE_INB = xyes; then
18922 BUILD_UTILS_TRUE=
18923 BUILD_UTILS_FALSE='#'
18924 else
18925 BUILD_UTILS_TRUE='#'
18926 BUILD_UTILS_FALSE=
18927 fi
18928
18929
18930
18931
18932 DRIVER_NAME=chips
18933
18934
18935 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18936
18937 cat >confcache <<\_ACEOF
18938 # This file is a shell script that caches the results of configure
18939 # tests run on this system so they can be shared between configure
18940 # scripts and configure runs, see configure's option --config-cache.
18941 # It is not useful on other systems. If it contains results you don't
18942 # want to keep, you may remove or edit it.
18943 #
18944 # config.status only pays attention to the cache file if you give it
18945 # the --recheck option to rerun configure.
18946 #
18947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18949 # following values.
18950
18951 _ACEOF
18952
18953 # The following way of writing the cache mishandles newlines in values,
18954 # but we know of no workaround that is simple, portable, and efficient.
18955 # So, we kill variables containing newlines.
18956 # Ultrix sh set writes to stderr and can't be redirected directly,
18957 # and sets the high bit in the cache file unless we assign to the vars.
18958 (
18959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18960 eval ac_val=\$$ac_var
18961 case $ac_val in #(
18962 *${as_nl}*)
18963 case $ac_var in #(
18964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18966 esac
18967 case $ac_var in #(
18968 _ | IFS | as_nl) ;; #(
18969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18970 *) { eval $ac_var=; unset $ac_var;} ;;
18971 esac ;;
18972 esac
18973 done
18974
18975 (set) 2>&1 |
18976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18977 *${as_nl}ac_space=\ *)
18978 # `set' does not quote correctly, so add quotes: double-quote
18979 # substitution turns \\\\ into \\, and sed turns \\ into \.
18980 sed -n \
18981 "s/'/'\\\\''/g;
18982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18983 ;; #(
18984 *)
18985 # `set' quotes correctly as required by POSIX, so do not add quotes.
18986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18987 ;;
18988 esac |
18989 sort
18990 ) |
18991 sed '
18992 /^ac_cv_env_/b end
18993 t clear
18994 :clear
18995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18996 t end
18997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18998 :end' >>confcache
18999 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19000 if test -w "$cache_file"; then
19001 if test "x$cache_file" != "x/dev/null"; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19003 $as_echo "$as_me: updating cache $cache_file" >&6;}
19004 if test ! -f "$cache_file" || test -h "$cache_file"; then
19005 cat confcache >"$cache_file"
19006 else
19007 case $cache_file in #(
19008 */* | ?:*)
19009 mv -f confcache "$cache_file"$$ &&
19010 mv -f "$cache_file"$$ "$cache_file" ;; #(
19011 *)
19012 mv -f confcache "$cache_file" ;;
19013 esac
19014 fi
19015 fi
19016 else
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19019 fi
19020 fi
19021 rm -f confcache
19022
19023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19024 # Let make expand exec_prefix.
19025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19026
19027 DEFS=-DHAVE_CONFIG_H
19028
19029 ac_libobjs=
19030 ac_ltlibobjs=
19031 U=
19032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19033 # 1. Remove the extension, and $U if already installed.
19034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19037 # will be set to the directory where LIBOBJS objects are built.
19038 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19039 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19040 done
19041 LIBOBJS=$ac_libobjs
19042
19043 LTLIBOBJS=$ac_ltlibobjs
19044
19045
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19047 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19048 if test -n "$am_sleep_pid"; then
19049 # Hide warnings about reused PIDs.
19050 wait $am_sleep_pid 2>/dev/null
19051 fi
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19053 $as_echo "done" >&6; }
19054 if test -n "$EXEEXT"; then
19055 am__EXEEXT_TRUE=
19056 am__EXEEXT_FALSE='#'
19057 else
19058 am__EXEEXT_TRUE='#'
19059 am__EXEEXT_FALSE=
19060 fi
19061
19062 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19063 as_fn_error $? "conditional \"AMDEP\" was never defined.
19064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19065 fi
19066 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19067 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19069 fi
19070 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19071 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19073 fi
19074 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19075 as_fn_error $? "conditional \"XAA\" was never defined.
19076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19077 fi
19078 if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
19079 as_fn_error $? "conditional \"BUILD_UTILS\" was never defined.
19080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19081 fi
19082
19083 : "${CONFIG_STATUS=./config.status}"
19084 ac_write_fail=0
19085 ac_clean_files_save=$ac_clean_files
19086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19089 as_write_fail=0
19090 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19091 #! $SHELL
19092 # Generated by $as_me.
19093 # Run this file to recreate the current configuration.
19094 # Compiler output produced by configure, useful for debugging
19095 # configure, is in config.log if it exists.
19096
19097 debug=false
19098 ac_cs_recheck=false
19099 ac_cs_silent=false
19100
19101 SHELL=\${CONFIG_SHELL-$SHELL}
19102 export SHELL
19103 _ASEOF
19104 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19105 ## -------------------- ##
19106 ## M4sh Initialization. ##
19107 ## -------------------- ##
19108
19109 # Be more Bourne compatible
19110 DUALCASE=1; export DUALCASE # for MKS sh
19111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19112 emulate sh
19113 NULLCMD=:
19114 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19115 # is contrary to our usage. Disable this feature.
19116 alias -g '${1+"$@"}'='"$@"'
19117 setopt NO_GLOB_SUBST
19118 else
19119 case `(set -o) 2>/dev/null` in #(
19120 *posix*) :
19121 set -o posix ;; #(
19122 *) :
19123 ;;
19124 esac
19125 fi
19126
19127
19128 as_nl='
19129 '
19130 export as_nl
19131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19135 # Prefer a ksh shell builtin over an external printf program on Solaris,
19136 # but without wasting forks for bash or zsh.
19137 if test -z "$BASH_VERSION$ZSH_VERSION" \
19138 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19139 as_echo='print -r --'
19140 as_echo_n='print -rn --'
19141 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19142 as_echo='printf %s\n'
19143 as_echo_n='printf %s'
19144 else
19145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19147 as_echo_n='/usr/ucb/echo -n'
19148 else
19149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19150 as_echo_n_body='eval
19151 arg=$1;
19152 case $arg in #(
19153 *"$as_nl"*)
19154 expr "X$arg" : "X\\(.*\\)$as_nl";
19155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19156 esac;
19157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19158 '
19159 export as_echo_n_body
19160 as_echo_n='sh -c $as_echo_n_body as_echo'
19161 fi
19162 export as_echo_body
19163 as_echo='sh -c $as_echo_body as_echo'
19164 fi
19165
19166 # The user is always right.
19167 if test "${PATH_SEPARATOR+set}" != set; then
19168 PATH_SEPARATOR=:
19169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19171 PATH_SEPARATOR=';'
19172 }
19173 fi
19174
19175
19176 # IFS
19177 # We need space, tab and new line, in precisely that order. Quoting is
19178 # there to prevent editors from complaining about space-tab.
19179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19180 # splitting by setting IFS to empty value.)
19181 IFS=" "" $as_nl"
19182
19183 # Find who we are. Look in the path if we contain no directory separator.
19184 as_myself=
19185 case $0 in #((
19186 *[\\/]* ) as_myself=$0 ;;
19187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19189 do
19190 IFS=$as_save_IFS
19191 test -z "$as_dir" && as_dir=.
19192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19193 done
19194 IFS=$as_save_IFS
19195
19196 ;;
19197 esac
19198 # We did not find ourselves, most probably we were run as `sh COMMAND'
19199 # in which case we are not to be found in the path.
19200 if test "x$as_myself" = x; then
19201 as_myself=$0
19202 fi
19203 if test ! -f "$as_myself"; then
19204 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19205 exit 1
19206 fi
19207
19208 # Unset variables that we do not need and which cause bugs (e.g. in
19209 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19210 # suppresses any "Segmentation fault" message there. '((' could
19211 # trigger a bug in pdksh 5.2.14.
19212 for as_var in BASH_ENV ENV MAIL MAILPATH
19213 do eval test x\${$as_var+set} = xset \
19214 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19215 done
19216 PS1='$ '
19217 PS2='> '
19218 PS4='+ '
19219
19220 # NLS nuisances.
19221 LC_ALL=C
19222 export LC_ALL
19223 LANGUAGE=C
19224 export LANGUAGE
19225
19226 # CDPATH.
19227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19228
19229
19230 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19231 # ----------------------------------------
19232 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19233 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19234 # script with STATUS, using 1 if that was 0.
19235 as_fn_error ()
19236 {
19237 as_status=$1; test $as_status -eq 0 && as_status=1
19238 if test "$4"; then
19239 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19240 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19241 fi
19242 $as_echo "$as_me: error: $2" >&2
19243 as_fn_exit $as_status
19244 } # as_fn_error
19245
19246
19247 # as_fn_set_status STATUS
19248 # -----------------------
19249 # Set $? to STATUS, without forking.
19250 as_fn_set_status ()
19251 {
19252 return $1
19253 } # as_fn_set_status
19254
19255 # as_fn_exit STATUS
19256 # -----------------
19257 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19258 as_fn_exit ()
19259 {
19260 set +e
19261 as_fn_set_status $1
19262 exit $1
19263 } # as_fn_exit
19264
19265 # as_fn_unset VAR
19266 # ---------------
19267 # Portably unset VAR.
19268 as_fn_unset ()
19269 {
19270 { eval $1=; unset $1;}
19271 }
19272 as_unset=as_fn_unset
19273 # as_fn_append VAR VALUE
19274 # ----------------------
19275 # Append the text in VALUE to the end of the definition contained in VAR. Take
19276 # advantage of any shell optimizations that allow amortized linear growth over
19277 # repeated appends, instead of the typical quadratic growth present in naive
19278 # implementations.
19279 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19280 eval 'as_fn_append ()
19281 {
19282 eval $1+=\$2
19283 }'
19284 else
19285 as_fn_append ()
19286 {
19287 eval $1=\$$1\$2
19288 }
19289 fi # as_fn_append
19290
19291 # as_fn_arith ARG...
19292 # ------------------
19293 # Perform arithmetic evaluation on the ARGs, and store the result in the
19294 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19295 # must be portable across $(()) and expr.
19296 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19297 eval 'as_fn_arith ()
19298 {
19299 as_val=$(( $* ))
19300 }'
19301 else
19302 as_fn_arith ()
19303 {
19304 as_val=`expr "$@" || test $? -eq 1`
19305 }
19306 fi # as_fn_arith
19307
19308
19309 if expr a : '\(a\)' >/dev/null 2>&1 &&
19310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19311 as_expr=expr
19312 else
19313 as_expr=false
19314 fi
19315
19316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19317 as_basename=basename
19318 else
19319 as_basename=false
19320 fi
19321
19322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19323 as_dirname=dirname
19324 else
19325 as_dirname=false
19326 fi
19327
19328 as_me=`$as_basename -- "$0" ||
19329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19330 X"$0" : 'X\(//\)$' \| \
19331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19332 $as_echo X/"$0" |
19333 sed '/^.*\/\([^/][^/]*\)\/*$/{
19334 s//\1/
19335 q
19336 }
19337 /^X\/\(\/\/\)$/{
19338 s//\1/
19339 q
19340 }
19341 /^X\/\(\/\).*/{
19342 s//\1/
19343 q
19344 }
19345 s/.*/./; q'`
19346
19347 # Avoid depending upon Character Ranges.
19348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19351 as_cr_digits='0123456789'
19352 as_cr_alnum=$as_cr_Letters$as_cr_digits
19353
19354 ECHO_C= ECHO_N= ECHO_T=
19355 case `echo -n x` in #(((((
19356 -n*)
19357 case `echo 'xy\c'` in
19358 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19359 xy) ECHO_C='\c';;
19360 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19361 ECHO_T=' ';;
19362 esac;;
19363 *)
19364 ECHO_N='-n';;
19365 esac
19366
19367 rm -f conf$$ conf$$.exe conf$$.file
19368 if test -d conf$$.dir; then
19369 rm -f conf$$.dir/conf$$.file
19370 else
19371 rm -f conf$$.dir
19372 mkdir conf$$.dir 2>/dev/null
19373 fi
19374 if (echo >conf$$.file) 2>/dev/null; then
19375 if ln -s conf$$.file conf$$ 2>/dev/null; then
19376 as_ln_s='ln -s'
19377 # ... but there are two gotchas:
19378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19380 # In both cases, we have to default to `cp -pR'.
19381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19382 as_ln_s='cp -pR'
19383 elif ln conf$$.file conf$$ 2>/dev/null; then
19384 as_ln_s=ln
19385 else
19386 as_ln_s='cp -pR'
19387 fi
19388 else
19389 as_ln_s='cp -pR'
19390 fi
19391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19392 rmdir conf$$.dir 2>/dev/null
19393
19394
19395 # as_fn_mkdir_p
19396 # -------------
19397 # Create "$as_dir" as a directory, including parents if necessary.
19398 as_fn_mkdir_p ()
19399 {
19400
19401 case $as_dir in #(
19402 -*) as_dir=./$as_dir;;
19403 esac
19404 test -d "$as_dir" || eval $as_mkdir_p || {
19405 as_dirs=
19406 while :; do
19407 case $as_dir in #(
19408 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19409 *) as_qdir=$as_dir;;
19410 esac
19411 as_dirs="'$as_qdir' $as_dirs"
19412 as_dir=`$as_dirname -- "$as_dir" ||
19413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19414 X"$as_dir" : 'X\(//\)[^/]' \| \
19415 X"$as_dir" : 'X\(//\)$' \| \
19416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19417 $as_echo X"$as_dir" |
19418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19419 s//\1/
19420 q
19421 }
19422 /^X\(\/\/\)[^/].*/{
19423 s//\1/
19424 q
19425 }
19426 /^X\(\/\/\)$/{
19427 s//\1/
19428 q
19429 }
19430 /^X\(\/\).*/{
19431 s//\1/
19432 q
19433 }
19434 s/.*/./; q'`
19435 test -d "$as_dir" && break
19436 done
19437 test -z "$as_dirs" || eval "mkdir $as_dirs"
19438 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19439
19440
19441 } # as_fn_mkdir_p
19442 if mkdir -p . 2>/dev/null; then
19443 as_mkdir_p='mkdir -p "$as_dir"'
19444 else
19445 test -d ./-p && rmdir ./-p
19446 as_mkdir_p=false
19447 fi
19448
19449
19450 # as_fn_executable_p FILE
19451 # -----------------------
19452 # Test if FILE is an executable regular file.
19453 as_fn_executable_p ()
19454 {
19455 test -f "$1" && test -x "$1"
19456 } # as_fn_executable_p
19457 as_test_x='test -x'
19458 as_executable_p=as_fn_executable_p
19459
19460 # Sed expression to map a string onto a valid CPP name.
19461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19462
19463 # Sed expression to map a string onto a valid variable name.
19464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19465
19466
19467 exec 6>&1
19468 ## ----------------------------------- ##
19469 ## Main body of $CONFIG_STATUS script. ##
19470 ## ----------------------------------- ##
19471 _ASEOF
19472 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19473
19474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19475 # Save the log message, to keep $0 and so on meaningful, and to
19476 # report actual input values of CONFIG_FILES etc. instead of their
19477 # values after options handling.
19478 ac_log="
19479 This file was extended by xf86-video-chips $as_me 1.3.0, which was
19480 generated by GNU Autoconf 2.69. Invocation command line was
19481
19482 CONFIG_FILES = $CONFIG_FILES
19483 CONFIG_HEADERS = $CONFIG_HEADERS
19484 CONFIG_LINKS = $CONFIG_LINKS
19485 CONFIG_COMMANDS = $CONFIG_COMMANDS
19486 $ $0 $@
19487
19488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19489 "
19490
19491 _ACEOF
19492
19493 case $ac_config_files in *"
19494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19495 esac
19496
19497 case $ac_config_headers in *"
19498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19499 esac
19500
19501
19502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19503 # Files that config.status was made for.
19504 config_files="$ac_config_files"
19505 config_headers="$ac_config_headers"
19506 config_commands="$ac_config_commands"
19507
19508 _ACEOF
19509
19510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19511 ac_cs_usage="\
19512 \`$as_me' instantiates files and other configuration actions
19513 from templates according to the current configuration. Unless the files
19514 and actions are specified as TAGs, all are instantiated by default.
19515
19516 Usage: $0 [OPTION]... [TAG]...
19517
19518 -h, --help print this help, then exit
19519 -V, --version print version number and configuration settings, then exit
19520 --config print configuration, then exit
19521 -q, --quiet, --silent
19522 do not print progress messages
19523 -d, --debug don't remove temporary files
19524 --recheck update $as_me by reconfiguring in the same conditions
19525 --file=FILE[:TEMPLATE]
19526 instantiate the configuration file FILE
19527 --header=FILE[:TEMPLATE]
19528 instantiate the configuration header FILE
19529
19530 Configuration files:
19531 $config_files
19532
19533 Configuration headers:
19534 $config_headers
19535
19536 Configuration commands:
19537 $config_commands
19538
19539 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/issues>."
19540
19541 _ACEOF
19542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19543 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19544 ac_cs_version="\\
19545 xf86-video-chips config.status 1.3.0
19546 configured by $0, generated by GNU Autoconf 2.69,
19547 with options \\"\$ac_cs_config\\"
19548
19549 Copyright (C) 2012 Free Software Foundation, Inc.
19550 This config.status script is free software; the Free Software Foundation
19551 gives unlimited permission to copy, distribute and modify it."
19552
19553 ac_pwd='$ac_pwd'
19554 srcdir='$srcdir'
19555 INSTALL='$INSTALL'
19556 MKDIR_P='$MKDIR_P'
19557 AWK='$AWK'
19558 test -n "\$AWK" || AWK=awk
19559 _ACEOF
19560
19561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562 # The default lists apply if the user does not specify any file.
19563 ac_need_defaults=:
19564 while test $# != 0
19565 do
19566 case $1 in
19567 --*=?*)
19568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19570 ac_shift=:
19571 ;;
19572 --*=)
19573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19574 ac_optarg=
19575 ac_shift=:
19576 ;;
19577 *)
19578 ac_option=$1
19579 ac_optarg=$2
19580 ac_shift=shift
19581 ;;
19582 esac
19583
19584 case $ac_option in
19585 # Handling of the options.
19586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19587 ac_cs_recheck=: ;;
19588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19589 $as_echo "$ac_cs_version"; exit ;;
19590 --config | --confi | --conf | --con | --co | --c )
19591 $as_echo "$ac_cs_config"; exit ;;
19592 --debug | --debu | --deb | --de | --d | -d )
19593 debug=: ;;
19594 --file | --fil | --fi | --f )
19595 $ac_shift
19596 case $ac_optarg in
19597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19598 '') as_fn_error $? "missing file argument" ;;
19599 esac
19600 as_fn_append CONFIG_FILES " '$ac_optarg'"
19601 ac_need_defaults=false;;
19602 --header | --heade | --head | --hea )
19603 $ac_shift
19604 case $ac_optarg in
19605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19606 esac
19607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19608 ac_need_defaults=false;;
19609 --he | --h)
19610 # Conflict between --help and --header
19611 as_fn_error $? "ambiguous option: \`$1'
19612 Try \`$0 --help' for more information.";;
19613 --help | --hel | -h )
19614 $as_echo "$ac_cs_usage"; exit ;;
19615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19617 ac_cs_silent=: ;;
19618
19619 # This is an error.
19620 -*) as_fn_error $? "unrecognized option: \`$1'
19621 Try \`$0 --help' for more information." ;;
19622
19623 *) as_fn_append ac_config_targets " $1"
19624 ac_need_defaults=false ;;
19625
19626 esac
19627 shift
19628 done
19629
19630 ac_configure_extra_args=
19631
19632 if $ac_cs_silent; then
19633 exec 6>/dev/null
19634 ac_configure_extra_args="$ac_configure_extra_args --silent"
19635 fi
19636
19637 _ACEOF
19638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19639 if \$ac_cs_recheck; then
19640 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19641 shift
19642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19643 CONFIG_SHELL='$SHELL'
19644 export CONFIG_SHELL
19645 exec "\$@"
19646 fi
19647
19648 _ACEOF
19649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19650 exec 5>>config.log
19651 {
19652 echo
19653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19654 ## Running $as_me. ##
19655 _ASBOX
19656 $as_echo "$ac_log"
19657 } >&5
19658
19659 _ACEOF
19660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19661 #
19662 # INIT-COMMANDS
19663 #
19664 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19665
19666
19667 # The HP-UX ksh and POSIX shell print the target directory to stdout
19668 # if CDPATH is set.
19669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19670
19671 sed_quote_subst='$sed_quote_subst'
19672 double_quote_subst='$double_quote_subst'
19673 delay_variable_subst='$delay_variable_subst'
19674 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19675 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19676 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19677 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19678 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19679 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19680 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19681 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19682 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19683 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19684 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19685 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19686 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19687 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19688 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19689 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19690 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19691 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19692 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19693 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19694 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19695 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19696 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19697 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19698 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19699 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19700 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19701 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19702 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19703 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19704 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19705 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19706 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19707 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19708 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19709 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19710 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19711 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19712 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19713 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19714 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19715 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19716 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19717 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19718 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19719 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19720 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19721 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19722 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19723 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19724 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19725 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19726 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19727 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19728 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19729 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19730 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19731 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19732 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"`'
19733 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19734 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19735 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19736 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19737 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19738 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19739 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19740 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19741 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19742 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19743 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19744 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19745 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19746 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19747 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19748 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19749 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19750 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19751 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19752 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19753 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19754 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19755 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19756 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19757 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19758 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19759 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19760 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19761 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19762 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19763 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19764 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19765 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19766 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19767 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19768 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19769 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19770 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19771 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19772 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19773 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19774 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19775 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19776 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19777 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19778 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19779 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19780 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19781 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19782 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19783 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19784 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19785 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19786 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19787 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19788 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19789 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19790 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19791 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19792 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19793 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19794 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19795 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19796 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19797 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19798 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19799 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19800 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19801 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19802 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19803 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19804 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19805 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19806 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19807 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19808 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19809
19810 LTCC='$LTCC'
19811 LTCFLAGS='$LTCFLAGS'
19812 compiler='$compiler_DEFAULT'
19813
19814 # A function that is used when there is no print builtin or printf.
19815 func_fallback_echo ()
19816 {
19817 eval 'cat <<_LTECHO_EOF
19818 \$1
19819 _LTECHO_EOF'
19820 }
19821
19822 # Quote evaled strings.
19823 for var in SHELL \
19824 ECHO \
19825 PATH_SEPARATOR \
19826 SED \
19827 GREP \
19828 EGREP \
19829 FGREP \
19830 LD \
19831 NM \
19832 LN_S \
19833 lt_SP2NL \
19834 lt_NL2SP \
19835 reload_flag \
19836 OBJDUMP \
19837 deplibs_check_method \
19838 file_magic_cmd \
19839 file_magic_glob \
19840 want_nocaseglob \
19841 DLLTOOL \
19842 sharedlib_from_linklib_cmd \
19843 AR \
19844 AR_FLAGS \
19845 archiver_list_spec \
19846 STRIP \
19847 RANLIB \
19848 CC \
19849 CFLAGS \
19850 compiler \
19851 lt_cv_sys_global_symbol_pipe \
19852 lt_cv_sys_global_symbol_to_cdecl \
19853 lt_cv_sys_global_symbol_to_import \
19854 lt_cv_sys_global_symbol_to_c_name_address \
19855 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19856 lt_cv_nm_interface \
19857 nm_file_list_spec \
19858 lt_cv_truncate_bin \
19859 lt_prog_compiler_no_builtin_flag \
19860 lt_prog_compiler_pic \
19861 lt_prog_compiler_wl \
19862 lt_prog_compiler_static \
19863 lt_cv_prog_compiler_c_o \
19864 need_locks \
19865 MANIFEST_TOOL \
19866 DSYMUTIL \
19867 NMEDIT \
19868 LIPO \
19869 OTOOL \
19870 OTOOL64 \
19871 shrext_cmds \
19872 export_dynamic_flag_spec \
19873 whole_archive_flag_spec \
19874 compiler_needs_object \
19875 with_gnu_ld \
19876 allow_undefined_flag \
19877 no_undefined_flag \
19878 hardcode_libdir_flag_spec \
19879 hardcode_libdir_separator \
19880 exclude_expsyms \
19881 include_expsyms \
19882 file_list_spec \
19883 variables_saved_for_relink \
19884 libname_spec \
19885 library_names_spec \
19886 soname_spec \
19887 install_override_mode \
19888 finish_eval \
19889 old_striplib \
19890 striplib; do
19891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19892 *[\\\\\\\`\\"\\\$]*)
19893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19894 ;;
19895 *)
19896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19897 ;;
19898 esac
19899 done
19900
19901 # Double-quote double-evaled strings.
19902 for var in reload_cmds \
19903 old_postinstall_cmds \
19904 old_postuninstall_cmds \
19905 old_archive_cmds \
19906 extract_expsyms_cmds \
19907 old_archive_from_new_cmds \
19908 old_archive_from_expsyms_cmds \
19909 archive_cmds \
19910 archive_expsym_cmds \
19911 module_cmds \
19912 module_expsym_cmds \
19913 export_symbols_cmds \
19914 prelink_cmds \
19915 postlink_cmds \
19916 postinstall_cmds \
19917 postuninstall_cmds \
19918 finish_cmds \
19919 sys_lib_search_path_spec \
19920 configure_time_dlsearch_path \
19921 configure_time_lt_sys_library_path; do
19922 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19923 *[\\\\\\\`\\"\\\$]*)
19924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19925 ;;
19926 *)
19927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19928 ;;
19929 esac
19930 done
19931
19932 ac_aux_dir='$ac_aux_dir'
19933
19934 # See if we are running on zsh, and set the options that allow our
19935 # commands through without removal of \ escapes INIT.
19936 if test -n "\${ZSH_VERSION+set}"; then
19937 setopt NO_GLOB_SUBST
19938 fi
19939
19940
19941 PACKAGE='$PACKAGE'
19942 VERSION='$VERSION'
19943 RM='$RM'
19944 ofile='$ofile'
19945
19946
19947
19948
19949 _ACEOF
19950
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952
19953 # Handling of arguments.
19954 for ac_config_target in $ac_config_targets
19955 do
19956 case $ac_config_target in
19957 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19958 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19959 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19960 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19961 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19962 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19963 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19964
19965 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19966 esac
19967 done
19968
19969
19970 # If the user did not use the arguments to specify the items to instantiate,
19971 # then the envvar interface is used. Set only those that are not.
19972 # We use the long form for the default assignment because of an extremely
19973 # bizarre bug on SunOS 4.1.3.
19974 if $ac_need_defaults; then
19975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19978 fi
19979
19980 # Have a temporary directory for convenience. Make it in the build tree
19981 # simply because there is no reason against having it here, and in addition,
19982 # creating and moving files from /tmp can sometimes cause problems.
19983 # Hook for its removal unless debugging.
19984 # Note that there is a small window in which the directory will not be cleaned:
19985 # after its creation but before its name has been assigned to `$tmp'.
19986 $debug ||
19987 {
19988 tmp= ac_tmp=
19989 trap 'exit_status=$?
19990 : "${ac_tmp:=$tmp}"
19991 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19992 ' 0
19993 trap 'as_fn_exit 1' 1 2 13 15
19994 }
19995 # Create a (secure) tmp directory for tmp files.
19996
19997 {
19998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19999 test -d "$tmp"
20000 } ||
20001 {
20002 tmp=./conf$$-$RANDOM
20003 (umask 077 && mkdir "$tmp")
20004 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20005 ac_tmp=$tmp
20006
20007 # Set up the scripts for CONFIG_FILES section.
20008 # No need to generate them if there are no CONFIG_FILES.
20009 # This happens for instance with `./config.status config.h'.
20010 if test -n "$CONFIG_FILES"; then
20011
20012
20013 ac_cr=`echo X | tr X '\015'`
20014 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20015 # But we know of no other shell where ac_cr would be empty at this
20016 # point, so we can use a bashism as a fallback.
20017 if test "x$ac_cr" = x; then
20018 eval ac_cr=\$\'\\r\'
20019 fi
20020 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20021 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20022 ac_cs_awk_cr='\\r'
20023 else
20024 ac_cs_awk_cr=$ac_cr
20025 fi
20026
20027 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20028 _ACEOF
20029
20030
20031 {
20032 echo "cat >conf$$subs.awk <<_ACEOF" &&
20033 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20034 echo "_ACEOF"
20035 } >conf$$subs.sh ||
20036 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20037 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20038 ac_delim='%!_!# '
20039 for ac_last_try in false false false false false :; do
20040 . ./conf$$subs.sh ||
20041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20042
20043 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20044 if test $ac_delim_n = $ac_delim_num; then
20045 break
20046 elif $ac_last_try; then
20047 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20048 else
20049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20050 fi
20051 done
20052 rm -f conf$$subs.sh
20053
20054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20055 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20056 _ACEOF
20057 sed -n '
20058 h
20059 s/^/S["/; s/!.*/"]=/
20060 p
20061 g
20062 s/^[^!]*!//
20063 :repl
20064 t repl
20065 s/'"$ac_delim"'$//
20066 t delim
20067 :nl
20068 h
20069 s/\(.\{148\}\)..*/\1/
20070 t more1
20071 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20072 p
20073 n
20074 b repl
20075 :more1
20076 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20077 p
20078 g
20079 s/.\{148\}//
20080 t nl
20081 :delim
20082 h
20083 s/\(.\{148\}\)..*/\1/
20084 t more2
20085 s/["\\]/\\&/g; s/^/"/; s/$/"/
20086 p
20087 b
20088 :more2
20089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20090 p
20091 g
20092 s/.\{148\}//
20093 t delim
20094 ' <conf$$subs.awk | sed '
20095 /^[^""]/{
20096 N
20097 s/\n//
20098 }
20099 ' >>$CONFIG_STATUS || ac_write_fail=1
20100 rm -f conf$$subs.awk
20101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20102 _ACAWK
20103 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20104 for (key in S) S_is_set[key] = 1
20105 FS = ""
20106
20107 }
20108 {
20109 line = $ 0
20110 nfields = split(line, field, "@")
20111 substed = 0
20112 len = length(field[1])
20113 for (i = 2; i < nfields; i++) {
20114 key = field[i]
20115 keylen = length(key)
20116 if (S_is_set[key]) {
20117 value = S[key]
20118 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20119 len += length(value) + length(field[++i])
20120 substed = 1
20121 } else
20122 len += 1 + keylen
20123 }
20124
20125 print line
20126 }
20127
20128 _ACAWK
20129 _ACEOF
20130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20131 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20132 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20133 else
20134 cat
20135 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20136 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20137 _ACEOF
20138
20139 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20140 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20141 # trailing colons and then remove the whole line if VPATH becomes empty
20142 # (actually we leave an empty line to preserve line numbers).
20143 if test "x$srcdir" = x.; then
20144 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20145 h
20146 s///
20147 s/^/:/
20148 s/[ ]*$/:/
20149 s/:\$(srcdir):/:/g
20150 s/:\${srcdir}:/:/g
20151 s/:@srcdir@:/:/g
20152 s/^:*//
20153 s/:*$//
20154 x
20155 s/\(=[ ]*\).*/\1/
20156 G
20157 s/\n//
20158 s/^[^=]*=[ ]*$//
20159 }'
20160 fi
20161
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20163 fi # test -n "$CONFIG_FILES"
20164
20165 # Set up the scripts for CONFIG_HEADERS section.
20166 # No need to generate them if there are no CONFIG_HEADERS.
20167 # This happens for instance with `./config.status Makefile'.
20168 if test -n "$CONFIG_HEADERS"; then
20169 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20170 BEGIN {
20171 _ACEOF
20172
20173 # Transform confdefs.h into an awk script `defines.awk', embedded as
20174 # here-document in config.status, that substitutes the proper values into
20175 # config.h.in to produce config.h.
20176
20177 # Create a delimiter string that does not exist in confdefs.h, to ease
20178 # handling of long lines.
20179 ac_delim='%!_!# '
20180 for ac_last_try in false false :; do
20181 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20182 if test -z "$ac_tt"; then
20183 break
20184 elif $ac_last_try; then
20185 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20186 else
20187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20188 fi
20189 done
20190
20191 # For the awk script, D is an array of macro values keyed by name,
20192 # likewise P contains macro parameters if any. Preserve backslash
20193 # newline sequences.
20194
20195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20196 sed -n '
20197 s/.\{148\}/&'"$ac_delim"'/g
20198 t rset
20199 :rset
20200 s/^[ ]*#[ ]*define[ ][ ]*/ /
20201 t def
20202 d
20203 :def
20204 s/\\$//
20205 t bsnl
20206 s/["\\]/\\&/g
20207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20208 D["\1"]=" \3"/p
20209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20210 d
20211 :bsnl
20212 s/["\\]/\\&/g
20213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20214 D["\1"]=" \3\\\\\\n"\\/p
20215 t cont
20216 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20217 t cont
20218 d
20219 :cont
20220 n
20221 s/.\{148\}/&'"$ac_delim"'/g
20222 t clear
20223 :clear
20224 s/\\$//
20225 t bsnlc
20226 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20227 d
20228 :bsnlc
20229 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20230 b cont
20231 ' <confdefs.h | sed '
20232 s/'"$ac_delim"'/"\\\
20233 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20234
20235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20236 for (key in D) D_is_set[key] = 1
20237 FS = ""
20238 }
20239 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20240 line = \$ 0
20241 split(line, arg, " ")
20242 if (arg[1] == "#") {
20243 defundef = arg[2]
20244 mac1 = arg[3]
20245 } else {
20246 defundef = substr(arg[1], 2)
20247 mac1 = arg[2]
20248 }
20249 split(mac1, mac2, "(") #)
20250 macro = mac2[1]
20251 prefix = substr(line, 1, index(line, defundef) - 1)
20252 if (D_is_set[macro]) {
20253 # Preserve the white space surrounding the "#".
20254 print prefix "define", macro P[macro] D[macro]
20255 next
20256 } else {
20257 # Replace #undef with comments. This is necessary, for example,
20258 # in the case of _POSIX_SOURCE, which is predefined and required
20259 # on some systems where configure will not decide to define it.
20260 if (defundef == "undef") {
20261 print "/*", prefix defundef, macro, "*/"
20262 next
20263 }
20264 }
20265 }
20266 { print }
20267 _ACAWK
20268 _ACEOF
20269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20270 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20271 fi # test -n "$CONFIG_HEADERS"
20272
20273
20274 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20275 shift
20276 for ac_tag
20277 do
20278 case $ac_tag in
20279 :[FHLC]) ac_mode=$ac_tag; continue;;
20280 esac
20281 case $ac_mode$ac_tag in
20282 :[FHL]*:*);;
20283 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20284 :[FH]-) ac_tag=-:-;;
20285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20286 esac
20287 ac_save_IFS=$IFS
20288 IFS=:
20289 set x $ac_tag
20290 IFS=$ac_save_IFS
20291 shift
20292 ac_file=$1
20293 shift
20294
20295 case $ac_mode in
20296 :L) ac_source=$1;;
20297 :[FH])
20298 ac_file_inputs=
20299 for ac_f
20300 do
20301 case $ac_f in
20302 -) ac_f="$ac_tmp/stdin";;
20303 *) # Look for the file first in the build tree, then in the source tree
20304 # (if the path is not absolute). The absolute path cannot be DOS-style,
20305 # because $ac_f cannot contain `:'.
20306 test -f "$ac_f" ||
20307 case $ac_f in
20308 [\\/$]*) false;;
20309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20310 esac ||
20311 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20312 esac
20313 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20314 as_fn_append ac_file_inputs " '$ac_f'"
20315 done
20316
20317 # Let's still pretend it is `configure' which instantiates (i.e., don't
20318 # use $as_me), people would be surprised to read:
20319 # /* config.h. Generated by config.status. */
20320 configure_input='Generated from '`
20321 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20322 `' by configure.'
20323 if test x"$ac_file" != x-; then
20324 configure_input="$ac_file. $configure_input"
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20326 $as_echo "$as_me: creating $ac_file" >&6;}
20327 fi
20328 # Neutralize special characters interpreted by sed in replacement strings.
20329 case $configure_input in #(
20330 *\&* | *\|* | *\\* )
20331 ac_sed_conf_input=`$as_echo "$configure_input" |
20332 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20333 *) ac_sed_conf_input=$configure_input;;
20334 esac
20335
20336 case $ac_tag in
20337 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20339 esac
20340 ;;
20341 esac
20342
20343 ac_dir=`$as_dirname -- "$ac_file" ||
20344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20345 X"$ac_file" : 'X\(//\)[^/]' \| \
20346 X"$ac_file" : 'X\(//\)$' \| \
20347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20348 $as_echo X"$ac_file" |
20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20350 s//\1/
20351 q
20352 }
20353 /^X\(\/\/\)[^/].*/{
20354 s//\1/
20355 q
20356 }
20357 /^X\(\/\/\)$/{
20358 s//\1/
20359 q
20360 }
20361 /^X\(\/\).*/{
20362 s//\1/
20363 q
20364 }
20365 s/.*/./; q'`
20366 as_dir="$ac_dir"; as_fn_mkdir_p
20367 ac_builddir=.
20368
20369 case "$ac_dir" in
20370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20371 *)
20372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20373 # A ".." for each directory in $ac_dir_suffix.
20374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20375 case $ac_top_builddir_sub in
20376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20378 esac ;;
20379 esac
20380 ac_abs_top_builddir=$ac_pwd
20381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20382 # for backward compatibility:
20383 ac_top_builddir=$ac_top_build_prefix
20384
20385 case $srcdir in
20386 .) # We are building in place.
20387 ac_srcdir=.
20388 ac_top_srcdir=$ac_top_builddir_sub
20389 ac_abs_top_srcdir=$ac_pwd ;;
20390 [\\/]* | ?:[\\/]* ) # Absolute name.
20391 ac_srcdir=$srcdir$ac_dir_suffix;
20392 ac_top_srcdir=$srcdir
20393 ac_abs_top_srcdir=$srcdir ;;
20394 *) # Relative name.
20395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20396 ac_top_srcdir=$ac_top_build_prefix$srcdir
20397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20398 esac
20399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20400
20401
20402 case $ac_mode in
20403 :F)
20404 #
20405 # CONFIG_FILE
20406 #
20407
20408 case $INSTALL in
20409 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20410 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20411 esac
20412 ac_MKDIR_P=$MKDIR_P
20413 case $MKDIR_P in
20414 [\\/$]* | ?:[\\/]* ) ;;
20415 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20416 esac
20417 _ACEOF
20418
20419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20420 # If the template does not know about datarootdir, expand it.
20421 # FIXME: This hack should be removed a few years after 2.60.
20422 ac_datarootdir_hack=; ac_datarootdir_seen=
20423 ac_sed_dataroot='
20424 /datarootdir/ {
20425 p
20426 q
20427 }
20428 /@datadir@/p
20429 /@docdir@/p
20430 /@infodir@/p
20431 /@localedir@/p
20432 /@mandir@/p'
20433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20434 *datarootdir*) ac_datarootdir_seen=yes;;
20435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20440 ac_datarootdir_hack='
20441 s&@datadir@&$datadir&g
20442 s&@docdir@&$docdir&g
20443 s&@infodir@&$infodir&g
20444 s&@localedir@&$localedir&g
20445 s&@mandir@&$mandir&g
20446 s&\\\${datarootdir}&$datarootdir&g' ;;
20447 esac
20448 _ACEOF
20449
20450 # Neutralize VPATH when `$srcdir' = `.'.
20451 # Shell code in configure.ac might set extrasub.
20452 # FIXME: do we really want to maintain this feature?
20453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20454 ac_sed_extra="$ac_vpsub
20455 $extrasub
20456 _ACEOF
20457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458 :t
20459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20460 s|@configure_input@|$ac_sed_conf_input|;t t
20461 s&@top_builddir@&$ac_top_builddir_sub&;t t
20462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20463 s&@srcdir@&$ac_srcdir&;t t
20464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20465 s&@top_srcdir@&$ac_top_srcdir&;t t
20466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20467 s&@builddir@&$ac_builddir&;t t
20468 s&@abs_builddir@&$ac_abs_builddir&;t t
20469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20470 s&@INSTALL@&$ac_INSTALL&;t t
20471 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20472 $ac_datarootdir_hack
20473 "
20474 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20475 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20476
20477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20478 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20480 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20482 which seems to be undefined. Please make sure it is defined" >&5
20483 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20484 which seems to be undefined. Please make sure it is defined" >&2;}
20485
20486 rm -f "$ac_tmp/stdin"
20487 case $ac_file in
20488 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20489 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20490 esac \
20491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20492 ;;
20493 :H)
20494 #
20495 # CONFIG_HEADER
20496 #
20497 if test x"$ac_file" != x-; then
20498 {
20499 $as_echo "/* $configure_input */" \
20500 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20501 } >"$ac_tmp/config.h" \
20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20503 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20505 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20506 else
20507 rm -f "$ac_file"
20508 mv "$ac_tmp/config.h" "$ac_file" \
20509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20510 fi
20511 else
20512 $as_echo "/* $configure_input */" \
20513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20514 || as_fn_error $? "could not create -" "$LINENO" 5
20515 fi
20516 # Compute "$ac_file"'s index in $config_headers.
20517 _am_arg="$ac_file"
20518 _am_stamp_count=1
20519 for _am_header in $config_headers :; do
20520 case $_am_header in
20521 $_am_arg | $_am_arg:* )
20522 break ;;
20523 * )
20524 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20525 esac
20526 done
20527 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20528 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20529 X"$_am_arg" : 'X\(//\)[^/]' \| \
20530 X"$_am_arg" : 'X\(//\)$' \| \
20531 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20532 $as_echo X"$_am_arg" |
20533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20534 s//\1/
20535 q
20536 }
20537 /^X\(\/\/\)[^/].*/{
20538 s//\1/
20539 q
20540 }
20541 /^X\(\/\/\)$/{
20542 s//\1/
20543 q
20544 }
20545 /^X\(\/\).*/{
20546 s//\1/
20547 q
20548 }
20549 s/.*/./; q'`/stamp-h$_am_stamp_count
20550 ;;
20551
20552 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20553 $as_echo "$as_me: executing $ac_file commands" >&6;}
20554 ;;
20555 esac
20556
20557
20558 case $ac_file$ac_mode in
20559 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20560 # Older Autoconf quotes --file arguments for eval, but not when files
20561 # are listed without --file. Let's play safe and only enable the eval
20562 # if we detect the quoting.
20563 case $CONFIG_FILES in
20564 *\'*) eval set x "$CONFIG_FILES" ;;
20565 *) set x $CONFIG_FILES ;;
20566 esac
20567 shift
20568 for mf
20569 do
20570 # Strip MF so we end up with the name of the file.
20571 mf=`echo "$mf" | sed -e 's/:.*$//'`
20572 # Check whether this is an Automake generated Makefile or not.
20573 # We used to match only the files named 'Makefile.in', but
20574 # some people rename them; so instead we look at the file content.
20575 # Grep'ing the first line is not enough: some people post-process
20576 # each Makefile.in and add a new line on top of each file to say so.
20577 # Grep'ing the whole file is not good either: AIX grep has a line
20578 # limit of 2048, but all sed's we know have understand at least 4000.
20579 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20580 dirpart=`$as_dirname -- "$mf" ||
20581 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20582 X"$mf" : 'X\(//\)[^/]' \| \
20583 X"$mf" : 'X\(//\)$' \| \
20584 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20585 $as_echo X"$mf" |
20586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20587 s//\1/
20588 q
20589 }
20590 /^X\(\/\/\)[^/].*/{
20591 s//\1/
20592 q
20593 }
20594 /^X\(\/\/\)$/{
20595 s//\1/
20596 q
20597 }
20598 /^X\(\/\).*/{
20599 s//\1/
20600 q
20601 }
20602 s/.*/./; q'`
20603 else
20604 continue
20605 fi
20606 # Extract the definition of DEPDIR, am__include, and am__quote
20607 # from the Makefile without running 'make'.
20608 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20609 test -z "$DEPDIR" && continue
20610 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20611 test -z "$am__include" && continue
20612 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20613 # Find all dependency output files, they are included files with
20614 # $(DEPDIR) in their names. We invoke sed twice because it is the
20615 # simplest approach to changing $(DEPDIR) to its actual value in the
20616 # expansion.
20617 for file in `sed -n "
20618 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20619 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20620 # Make sure the directory exists.
20621 test -f "$dirpart/$file" && continue
20622 fdir=`$as_dirname -- "$file" ||
20623 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20624 X"$file" : 'X\(//\)[^/]' \| \
20625 X"$file" : 'X\(//\)$' \| \
20626 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20627 $as_echo X"$file" |
20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20629 s//\1/
20630 q
20631 }
20632 /^X\(\/\/\)[^/].*/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)$/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\).*/{
20641 s//\1/
20642 q
20643 }
20644 s/.*/./; q'`
20645 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20646 # echo "creating $dirpart/$file"
20647 echo '# dummy' > "$dirpart/$file"
20648 done
20649 done
20650 }
20651 ;;
20652 "libtool":C)
20653
20654 # See if we are running on zsh, and set the options that allow our
20655 # commands through without removal of \ escapes.
20656 if test -n "${ZSH_VERSION+set}"; then
20657 setopt NO_GLOB_SUBST
20658 fi
20659
20660 cfgfile=${ofile}T
20661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20662 $RM "$cfgfile"
20663
20664 cat <<_LT_EOF >> "$cfgfile"
20665 #! $SHELL
20666 # Generated automatically by $as_me ($PACKAGE) $VERSION
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20669
20670 # Provide generalized library-building support services.
20671 # Written by Gordon Matzigkeit, 1996
20672
20673 # Copyright (C) 2014 Free Software Foundation, Inc.
20674 # This is free software; see the source for copying conditions. There is NO
20675 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20676
20677 # GNU Libtool is free software; you can redistribute it and/or modify
20678 # it under the terms of the GNU General Public License as published by
20679 # the Free Software Foundation; either version 2 of of the License, or
20680 # (at your option) any later version.
20681 #
20682 # As a special exception to the GNU General Public License, if you
20683 # distribute this file as part of a program or library that is built
20684 # using GNU Libtool, you may include this file under the same
20685 # distribution terms that you use for the rest of that program.
20686 #
20687 # GNU Libtool is distributed in the hope that it will be useful, but
20688 # WITHOUT ANY WARRANTY; without even the implied warranty of
20689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20690 # GNU General Public License for more details.
20691 #
20692 # You should have received a copy of the GNU General Public License
20693 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20694
20695
20696 # The names of the tagged configurations supported by this script.
20697 available_tags=''
20698
20699 # Configured defaults for sys_lib_dlsearch_path munging.
20700 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20701
20702 # ### BEGIN LIBTOOL CONFIG
20703
20704 # Whether or not to build static libraries.
20705 build_old_libs=$enable_static
20706
20707 # Which release of libtool.m4 was used?
20708 macro_version=$macro_version
20709 macro_revision=$macro_revision
20710
20711 # Whether or not to build shared libraries.
20712 build_libtool_libs=$enable_shared
20713
20714 # What type of objects to build.
20715 pic_mode=$pic_mode
20716
20717 # Whether or not to optimize for fast installation.
20718 fast_install=$enable_fast_install
20719
20720 # Shared archive member basename,for filename based shared library versioning on AIX.
20721 shared_archive_member_spec=$shared_archive_member_spec
20722
20723 # Shell to use when invoking shell scripts.
20724 SHELL=$lt_SHELL
20725
20726 # An echo program that protects backslashes.
20727 ECHO=$lt_ECHO
20728
20729 # The PATH separator for the build system.
20730 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20731
20732 # The host system.
20733 host_alias=$host_alias
20734 host=$host
20735 host_os=$host_os
20736
20737 # The build system.
20738 build_alias=$build_alias
20739 build=$build
20740 build_os=$build_os
20741
20742 # A sed program that does not truncate output.
20743 SED=$lt_SED
20744
20745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20746 Xsed="\$SED -e 1s/^X//"
20747
20748 # A grep program that handles long lines.
20749 GREP=$lt_GREP
20750
20751 # An ERE matcher.
20752 EGREP=$lt_EGREP
20753
20754 # A literal string matcher.
20755 FGREP=$lt_FGREP
20756
20757 # A BSD- or MS-compatible name lister.
20758 NM=$lt_NM
20759
20760 # Whether we need soft or hard links.
20761 LN_S=$lt_LN_S
20762
20763 # What is the maximum length of a command?
20764 max_cmd_len=$max_cmd_len
20765
20766 # Object file suffix (normally "o").
20767 objext=$ac_objext
20768
20769 # Executable file suffix (normally "").
20770 exeext=$exeext
20771
20772 # whether the shell understands "unset".
20773 lt_unset=$lt_unset
20774
20775 # turn spaces into newlines.
20776 SP2NL=$lt_lt_SP2NL
20777
20778 # turn newlines into spaces.
20779 NL2SP=$lt_lt_NL2SP
20780
20781 # convert \$build file names to \$host format.
20782 to_host_file_cmd=$lt_cv_to_host_file_cmd
20783
20784 # convert \$build files to toolchain format.
20785 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20786
20787 # An object symbol dumper.
20788 OBJDUMP=$lt_OBJDUMP
20789
20790 # Method to check whether dependent libraries are shared objects.
20791 deplibs_check_method=$lt_deplibs_check_method
20792
20793 # Command to use when deplibs_check_method = "file_magic".
20794 file_magic_cmd=$lt_file_magic_cmd
20795
20796 # How to find potential files when deplibs_check_method = "file_magic".
20797 file_magic_glob=$lt_file_magic_glob
20798
20799 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20800 want_nocaseglob=$lt_want_nocaseglob
20801
20802 # DLL creation program.
20803 DLLTOOL=$lt_DLLTOOL
20804
20805 # Command to associate shared and link libraries.
20806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20807
20808 # The archiver.
20809 AR=$lt_AR
20810
20811 # Flags to create an archive.
20812 AR_FLAGS=$lt_AR_FLAGS
20813
20814 # How to feed a file listing to the archiver.
20815 archiver_list_spec=$lt_archiver_list_spec
20816
20817 # A symbol stripping program.
20818 STRIP=$lt_STRIP
20819
20820 # Commands used to install an old-style archive.
20821 RANLIB=$lt_RANLIB
20822 old_postinstall_cmds=$lt_old_postinstall_cmds
20823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20824
20825 # Whether to use a lock for old archive extraction.
20826 lock_old_archive_extraction=$lock_old_archive_extraction
20827
20828 # A C compiler.
20829 LTCC=$lt_CC
20830
20831 # LTCC compiler flags.
20832 LTCFLAGS=$lt_CFLAGS
20833
20834 # Take the output of nm and produce a listing of raw symbols and C names.
20835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20836
20837 # Transform the output of nm in a proper C declaration.
20838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20839
20840 # Transform the output of nm into a list of symbols to manually relocate.
20841 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20842
20843 # Transform the output of nm in a C name address pair.
20844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20845
20846 # Transform the output of nm in a C name address pair when lib prefix is needed.
20847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20848
20849 # The name lister interface.
20850 nm_interface=$lt_lt_cv_nm_interface
20851
20852 # Specify filename containing input files for \$NM.
20853 nm_file_list_spec=$lt_nm_file_list_spec
20854
20855 # The root where to search for dependent libraries,and where our libraries should be installed.
20856 lt_sysroot=$lt_sysroot
20857
20858 # Command to truncate a binary pipe.
20859 lt_truncate_bin=$lt_lt_cv_truncate_bin
20860
20861 # The name of the directory that contains temporary libtool files.
20862 objdir=$objdir
20863
20864 # Used to examine libraries when file_magic_cmd begins with "file".
20865 MAGIC_CMD=$MAGIC_CMD
20866
20867 # Must we lock files when doing compilation?
20868 need_locks=$lt_need_locks
20869
20870 # Manifest tool.
20871 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20872
20873 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20874 DSYMUTIL=$lt_DSYMUTIL
20875
20876 # Tool to change global to local symbols on Mac OS X.
20877 NMEDIT=$lt_NMEDIT
20878
20879 # Tool to manipulate fat objects and archives on Mac OS X.
20880 LIPO=$lt_LIPO
20881
20882 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20883 OTOOL=$lt_OTOOL
20884
20885 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20886 OTOOL64=$lt_OTOOL64
20887
20888 # Old archive suffix (normally "a").
20889 libext=$libext
20890
20891 # Shared library suffix (normally ".so").
20892 shrext_cmds=$lt_shrext_cmds
20893
20894 # The commands to extract the exported symbol list from a shared archive.
20895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20896
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at link time.
20899 variables_saved_for_relink=$lt_variables_saved_for_relink
20900
20901 # Do we need the "lib" prefix for modules?
20902 need_lib_prefix=$need_lib_prefix
20903
20904 # Do we need a version for libraries?
20905 need_version=$need_version
20906
20907 # Library versioning type.
20908 version_type=$version_type
20909
20910 # Shared library runtime path variable.
20911 runpath_var=$runpath_var
20912
20913 # Shared library path variable.
20914 shlibpath_var=$shlibpath_var
20915
20916 # Is shlibpath searched before the hard-coded library search path?
20917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20918
20919 # Format of library name prefix.
20920 libname_spec=$lt_libname_spec
20921
20922 # List of archive names. First name is the real one, the rest are links.
20923 # The last name is the one that the linker finds with -lNAME
20924 library_names_spec=$lt_library_names_spec
20925
20926 # The coded name of the library, if different from the real name.
20927 soname_spec=$lt_soname_spec
20928
20929 # Permission mode override for installation of shared libraries.
20930 install_override_mode=$lt_install_override_mode
20931
20932 # Command to use after installation of a shared archive.
20933 postinstall_cmds=$lt_postinstall_cmds
20934
20935 # Command to use after uninstallation of a shared archive.
20936 postuninstall_cmds=$lt_postuninstall_cmds
20937
20938 # Commands used to finish a libtool library installation in a directory.
20939 finish_cmds=$lt_finish_cmds
20940
20941 # As "finish_cmds", except a single script fragment to be evaled but
20942 # not shown.
20943 finish_eval=$lt_finish_eval
20944
20945 # Whether we should hardcode library paths into libraries.
20946 hardcode_into_libs=$hardcode_into_libs
20947
20948 # Compile-time system search path for libraries.
20949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20950
20951 # Detected run-time system search path for libraries.
20952 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20953
20954 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20955 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20956
20957 # Whether dlopen is supported.
20958 dlopen_support=$enable_dlopen
20959
20960 # Whether dlopen of programs is supported.
20961 dlopen_self=$enable_dlopen_self
20962
20963 # Whether dlopen of statically linked programs is supported.
20964 dlopen_self_static=$enable_dlopen_self_static
20965
20966 # Commands to strip libraries.
20967 old_striplib=$lt_old_striplib
20968 striplib=$lt_striplib
20969
20970
20971 # The linker used to build libraries.
20972 LD=$lt_LD
20973
20974 # How to create reloadable object files.
20975 reload_flag=$lt_reload_flag
20976 reload_cmds=$lt_reload_cmds
20977
20978 # Commands used to build an old-style archive.
20979 old_archive_cmds=$lt_old_archive_cmds
20980
20981 # A language specific compiler.
20982 CC=$lt_compiler
20983
20984 # Is the compiler the GNU compiler?
20985 with_gcc=$GCC
20986
20987 # Compiler flag to turn off builtin functions.
20988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20989
20990 # Additional compiler flags for building library objects.
20991 pic_flag=$lt_lt_prog_compiler_pic
20992
20993 # How to pass a linker flag through the compiler.
20994 wl=$lt_lt_prog_compiler_wl
20995
20996 # Compiler flag to prevent dynamic linking.
20997 link_static_flag=$lt_lt_prog_compiler_static
20998
20999 # Does compiler simultaneously support -c and -o options?
21000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21001
21002 # Whether or not to add -lc for building shared libraries.
21003 build_libtool_need_lc=$archive_cmds_need_lc
21004
21005 # Whether or not to disallow shared libs when runtime libs are static.
21006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21007
21008 # Compiler flag to allow reflexive dlopens.
21009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21010
21011 # Compiler flag to generate shared objects directly from archives.
21012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21013
21014 # Whether the compiler copes with passing no objects directly.
21015 compiler_needs_object=$lt_compiler_needs_object
21016
21017 # Create an old-style archive from a shared archive.
21018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21019
21020 # Create a temporary old-style archive to link instead of a shared archive.
21021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21022
21023 # Commands used to build a shared archive.
21024 archive_cmds=$lt_archive_cmds
21025 archive_expsym_cmds=$lt_archive_expsym_cmds
21026
21027 # Commands used to build a loadable module if different from building
21028 # a shared archive.
21029 module_cmds=$lt_module_cmds
21030 module_expsym_cmds=$lt_module_expsym_cmds
21031
21032 # Whether we are building with GNU ld or not.
21033 with_gnu_ld=$lt_with_gnu_ld
21034
21035 # Flag that allows shared libraries with undefined symbols to be built.
21036 allow_undefined_flag=$lt_allow_undefined_flag
21037
21038 # Flag that enforces no undefined symbols.
21039 no_undefined_flag=$lt_no_undefined_flag
21040
21041 # Flag to hardcode \$libdir into a binary during linking.
21042 # This must work even if \$libdir does not exist
21043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21044
21045 # Whether we need a single "-rpath" flag with a separated argument.
21046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21047
21048 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21049 # DIR into the resulting binary.
21050 hardcode_direct=$hardcode_direct
21051
21052 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21053 # DIR into the resulting binary and the resulting library dependency is
21054 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21055 # library is relocated.
21056 hardcode_direct_absolute=$hardcode_direct_absolute
21057
21058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21059 # into the resulting binary.
21060 hardcode_minus_L=$hardcode_minus_L
21061
21062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21063 # into the resulting binary.
21064 hardcode_shlibpath_var=$hardcode_shlibpath_var
21065
21066 # Set to "yes" if building a shared library automatically hardcodes DIR
21067 # into the library and all subsequent libraries and executables linked
21068 # against it.
21069 hardcode_automatic=$hardcode_automatic
21070
21071 # Set to yes if linker adds runtime paths of dependent libraries
21072 # to runtime path list.
21073 inherit_rpath=$inherit_rpath
21074
21075 # Whether libtool must link a program against all its dependency libraries.
21076 link_all_deplibs=$link_all_deplibs
21077
21078 # Set to "yes" if exported symbols are required.
21079 always_export_symbols=$always_export_symbols
21080
21081 # The commands to list exported symbols.
21082 export_symbols_cmds=$lt_export_symbols_cmds
21083
21084 # Symbols that should not be listed in the preloaded symbols.
21085 exclude_expsyms=$lt_exclude_expsyms
21086
21087 # Symbols that must always be exported.
21088 include_expsyms=$lt_include_expsyms
21089
21090 # Commands necessary for linking programs (against libraries) with templates.
21091 prelink_cmds=$lt_prelink_cmds
21092
21093 # Commands necessary for finishing linking programs.
21094 postlink_cmds=$lt_postlink_cmds
21095
21096 # Specify filename containing input files.
21097 file_list_spec=$lt_file_list_spec
21098
21099 # How to hardcode a shared library path into an executable.
21100 hardcode_action=$hardcode_action
21101
21102 # ### END LIBTOOL CONFIG
21103
21104 _LT_EOF
21105
21106 cat <<'_LT_EOF' >> "$cfgfile"
21107
21108 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21109
21110 # func_munge_path_list VARIABLE PATH
21111 # -----------------------------------
21112 # VARIABLE is name of variable containing _space_ separated list of
21113 # directories to be munged by the contents of PATH, which is string
21114 # having a format:
21115 # "DIR[:DIR]:"
21116 # string "DIR[ DIR]" will be prepended to VARIABLE
21117 # ":DIR[:DIR]"
21118 # string "DIR[ DIR]" will be appended to VARIABLE
21119 # "DIRP[:DIRP]::[DIRA:]DIRA"
21120 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21121 # "DIRA[ DIRA]" will be appended to VARIABLE
21122 # "DIR[:DIR]"
21123 # VARIABLE will be replaced by "DIR[ DIR]"
21124 func_munge_path_list ()
21125 {
21126 case x$2 in
21127 x)
21128 ;;
21129 *:)
21130 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21131 ;;
21132 x:*)
21133 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21134 ;;
21135 *::*)
21136 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21137 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21138 ;;
21139 *)
21140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21141 ;;
21142 esac
21143 }
21144
21145
21146 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21147 func_cc_basename ()
21148 {
21149 for cc_temp in $*""; do
21150 case $cc_temp in
21151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21153 \-*) ;;
21154 *) break;;
21155 esac
21156 done
21157 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21158 }
21159
21160
21161 # ### END FUNCTIONS SHARED WITH CONFIGURE
21162
21163 _LT_EOF
21164
21165 case $host_os in
21166 aix3*)
21167 cat <<\_LT_EOF >> "$cfgfile"
21168 # AIX sometimes has problems with the GCC collect2 program. For some
21169 # reason, if we set the COLLECT_NAMES environment variable, the problems
21170 # vanish in a puff of smoke.
21171 if test set != "${COLLECT_NAMES+set}"; then
21172 COLLECT_NAMES=
21173 export COLLECT_NAMES
21174 fi
21175 _LT_EOF
21176 ;;
21177 esac
21178
21179
21180 ltmain=$ac_aux_dir/ltmain.sh
21181
21182
21183 # We use sed instead of cat because bash on DJGPP gets confused if
21184 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21185 # text mode, it properly converts lines to CR/LF. This bash problem
21186 # is reportedly fixed, but why not run on old versions too?
21187 sed '$q' "$ltmain" >> "$cfgfile" \
21188 || (rm -f "$cfgfile"; exit 1)
21189
21190 mv -f "$cfgfile" "$ofile" ||
21191 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21192 chmod +x "$ofile"
21193
21194 ;;
21195
21196 esac
21197 done # for ac_tag
21198
21199
21200 as_fn_exit 0
21201 _ACEOF
21202 ac_clean_files=$ac_clean_files_save
21203
21204 test $ac_write_fail = 0 ||
21205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21206
21207
21208 # configure is writing to config.log, and then calls config.status.
21209 # config.status does its own redirection, appending to config.log.
21210 # Unfortunately, on DOS this fails, as config.log is still kept open
21211 # by configure, so config.status won't be able to write to it; its
21212 # output is simply discarded. So we exec the FD to /dev/null,
21213 # effectively closing config.log, so it can be properly (re)opened and
21214 # appended to by config.status. When coming back to configure, we
21215 # need to make the FD available again.
21216 if test "$no_create" != yes; then
21217 ac_cs_success=:
21218 ac_config_status_args=
21219 test "$silent" = yes &&
21220 ac_config_status_args="$ac_config_status_args --quiet"
21221 exec 5>/dev/null
21222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21223 exec 5>>config.log
21224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21225 # would make configure fail if this is the last instruction.
21226 $ac_cs_success || as_fn_exit 1
21227 fi
21228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21230 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21231 fi
21232
21233