configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-i128 1.4.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/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-i128/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-i128'
593 PACKAGE_TARNAME='xf86-video-i128'
594 PACKAGE_VERSION='1.4.0'
595 PACKAGE_STRING='xf86-video-i128 1.4.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/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 XAA_FALSE
643 XAA_TRUE
644 XSERVER_LIBPCIACCESS_FALSE
645 XSERVER_LIBPCIACCESS_TRUE
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 XORG_LIBS
649 XORG_CFLAGS
650 LT_SYS_LIBRARY_PATH
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 LIBTOOL
669 MAN_SUBSTS
670 XORG_MAN_PAGE
671 ADMIN_MAN_DIR
672 DRIVER_MAN_DIR
673 MISC_MAN_DIR
674 FILE_MAN_DIR
675 LIB_MAN_DIR
676 APP_MAN_DIR
677 ADMIN_MAN_SUFFIX
678 DRIVER_MAN_SUFFIX
679 MISC_MAN_SUFFIX
680 FILE_MAN_SUFFIX
681 LIB_MAN_SUFFIX
682 APP_MAN_SUFFIX
683 SED
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 INSTALL_CMD
693 PKG_CONFIG_LIBDIR
694 PKG_CONFIG_PATH
695 PKG_CONFIG
696 CHANGELOG_CMD
697 STRICT_CFLAGS
698 CWARNFLAGS
699 BASE_CFLAGS
700 EGREP
701 GREP
702 CPP
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 runstatedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 enable_dependency_tracking
795 enable_selective_werror
796 enable_strict_compilation
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_aix_soname
802 with_gnu_ld
803 with_sysroot
804 enable_libtool_lock
805 with_xorg_module_dir
806 enable_xaa
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 PKG_CONFIG
818 PKG_CONFIG_PATH
819 PKG_CONFIG_LIBDIR
820 LT_SYS_LIBRARY_PATH
821 XORG_CFLAGS
822 XORG_LIBS
823 PCIACCESS_CFLAGS
824 PCIACCESS_LIBS'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 runstatedir='${localstatedir}/run'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
923
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
956
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
992
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
997
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1027
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1101
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -runstatedir | --runstatedir | --runstatedi | --runstated \
1117 | --runstate | --runstat | --runsta | --runst | --runs \
1118 | --run | --ru | --r)
1119 ac_prev=runstatedir ;;
1120 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1121 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1122 | --run=* | --ru=* | --r=*)
1123 runstatedir=$ac_optarg ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir runstatedir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures xf86-video-i128 1.4.0 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i128]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of xf86-video-i128 1.4.0:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful (and
1458 sometimes confusing) to the casual installer
1459 --enable-dependency-tracking
1460 do not reject slow dependency extractors
1461 --disable-dependency-tracking
1462 speeds up one-time build
1463 --disable-selective-werror
1464 Turn off selective compiler errors. (default:
1465 enabled)
1466 --enable-strict-compilation
1467 Enable all warnings from compiler and make them
1468 errors (default: disabled)
1469 --enable-static[=PKGS] build static libraries [default=no]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1475 [default=auto]
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-aix-soname=aix|svr4|both
1483 shared library versioning (aka "SONAME") variant to
1484 provide on AIX, [default=aix].
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1487 compiler's sysroot if not specified).
1488 --with-xorg-module-dir=DIR
1489 Default xorg module directory
1490 [[default=$libdir/xorg/modules]]
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 PKG_CONFIG path to pkg-config utility
1502 PKG_CONFIG_PATH
1503 directories to add to pkg-config's search path
1504 PKG_CONFIG_LIBDIR
1505 path overriding pkg-config's built-in search path
1506 LT_SYS_LIBRARY_PATH
1507 User-defined run-time library search path.
1508 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1509 XORG_LIBS linker flags for XORG, overriding pkg-config
1510 PCIACCESS_CFLAGS
1511 C compiler flags for PCIACCESS, overriding pkg-config
1512 PCIACCESS_LIBS
1513 linker flags for PCIACCESS, overriding pkg-config
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/issues>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 xf86-video-i128 configure 1.4.0
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1634 # ---------------------------------------------
1635 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_decl ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 as_decl_name=`echo $2|sed 's/ *(.*//'`
1641 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1643 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 else
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 int
1651 main ()
1652 {
1653 #ifndef $as_decl_name
1654 #ifdef __cplusplus
1655 (void) $as_decl_use;
1656 #else
1657 (void) $as_decl_name;
1658 #endif
1659 #endif
1660
1661 ;
1662 return 0;
1663 }
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677 } # ac_fn_c_check_decl
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } > conftest.i && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_cpp
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751 fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 $4
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_func
1901
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1906 # accordingly.
1907 ac_fn_c_check_header_mongrel ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if eval \${$3+:} false; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 fi
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 else
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1930 else
1931 ac_header_compiler=no
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1936
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1946 else
1947 ac_header_preproc=no
1948 fi
1949 rm -f conftest.err conftest.i conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1952
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 yes:no: )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ;;
1961 no:yes:* )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 ( $as_echo "## -------------------------------------------------------------------------------- ##
1973 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/issues ##
1974 ## -------------------------------------------------------------------------------- ##"
1975 ) | sed "s/^/$as_me: WARNING: /" >&2
1976 ;;
1977 esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=\$ac_header_compiler"
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 fi
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991 } # ac_fn_c_check_header_mongrel
1992 cat >config.log <<_ACEOF
1993 This file contains any messages produced by compilers while
1994 running configure, to aid debugging if configure makes a mistake.
1995
1996 It was created by xf86-video-i128 $as_me 1.4.0, which was
1997 generated by GNU Autoconf 2.69. Invocation command line was
1998
1999 $ $0 $@
2000
2001 _ACEOF
2002 exec 5>>config.log
2003 {
2004 cat <<_ASUNAME
2005 ## --------- ##
2006 ## Platform. ##
2007 ## --------- ##
2008
2009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014
2015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017
2018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2021 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2025
2026 _ASUNAME
2027
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 $as_echo "PATH: $as_dir"
2034 done
2035 IFS=$as_save_IFS
2036
2037 } >&5
2038
2039 cat >&5 <<_ACEOF
2040
2041
2042 ## ----------- ##
2043 ## Core tests. ##
2044 ## ----------- ##
2045
2046 _ACEOF
2047
2048
2049 # Keep a trace of the command line.
2050 # Strip out --no-create and --no-recursion so they do not pile up.
2051 # Strip out --silent because we don't want to record it for future runs.
2052 # Also quote any args containing shell meta-characters.
2053 # Make two passes to allow for proper duplicate-argument suppression.
2054 ac_configure_args=
2055 ac_configure_args0=
2056 ac_configure_args1=
2057 ac_must_keep_next=false
2058 for ac_pass in 1 2
2059 do
2060 for ac_arg
2061 do
2062 case $ac_arg in
2063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2065 | -silent | --silent | --silen | --sile | --sil)
2066 continue ;;
2067 *\'*)
2068 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 esac
2070 case $ac_pass in
2071 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2072 2)
2073 as_fn_append ac_configure_args1 " '$ac_arg'"
2074 if test $ac_must_keep_next = true; then
2075 ac_must_keep_next=false # Got value, back to normal.
2076 else
2077 case $ac_arg in
2078 *=* | --config-cache | -C | -disable-* | --disable-* \
2079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2081 | -with-* | --with-* | -without-* | --without-* | --x)
2082 case "$ac_configure_args0 " in
2083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 esac
2085 ;;
2086 -* ) ac_must_keep_next=true ;;
2087 esac
2088 fi
2089 as_fn_append ac_configure_args " '$ac_arg'"
2090 ;;
2091 esac
2092 done
2093 done
2094 { ac_configure_args0=; unset ac_configure_args0;}
2095 { ac_configure_args1=; unset ac_configure_args1;}
2096
2097 # When interrupted or exit'd, cleanup temporary files, and complete
2098 # config.log. We remove comments because anyway the quotes in there
2099 # would cause problems or look ugly.
2100 # WARNING: Use '\'' to represent an apostrophe within the trap.
2101 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2102 trap 'exit_status=$?
2103 # Save into config.log some information that might help in debugging.
2104 {
2105 echo
2106
2107 $as_echo "## ---------------- ##
2108 ## Cache variables. ##
2109 ## ---------------- ##"
2110 echo
2111 # The following way of writing the cache mishandles newlines in values,
2112 (
2113 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2114 eval ac_val=\$$ac_var
2115 case $ac_val in #(
2116 *${as_nl}*)
2117 case $ac_var in #(
2118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120 esac
2121 case $ac_var in #(
2122 _ | IFS | as_nl) ;; #(
2123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2124 *) { eval $ac_var=; unset $ac_var;} ;;
2125 esac ;;
2126 esac
2127 done
2128 (set) 2>&1 |
2129 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2130 *${as_nl}ac_space=\ *)
2131 sed -n \
2132 "s/'\''/'\''\\\\'\'''\''/g;
2133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134 ;; #(
2135 *)
2136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2137 ;;
2138 esac |
2139 sort
2140 )
2141 echo
2142
2143 $as_echo "## ----------------- ##
2144 ## Output variables. ##
2145 ## ----------------- ##"
2146 echo
2147 for ac_var in $ac_subst_vars
2148 do
2149 eval ac_val=\$$ac_var
2150 case $ac_val in
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 esac
2153 $as_echo "$ac_var='\''$ac_val'\''"
2154 done | sort
2155 echo
2156
2157 if test -n "$ac_subst_files"; then
2158 $as_echo "## ------------------- ##
2159 ## File substitutions. ##
2160 ## ------------------- ##"
2161 echo
2162 for ac_var in $ac_subst_files
2163 do
2164 eval ac_val=\$$ac_var
2165 case $ac_val in
2166 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167 esac
2168 $as_echo "$ac_var='\''$ac_val'\''"
2169 done | sort
2170 echo
2171 fi
2172
2173 if test -s confdefs.h; then
2174 $as_echo "## ----------- ##
2175 ## confdefs.h. ##
2176 ## ----------- ##"
2177 echo
2178 cat confdefs.h
2179 echo
2180 fi
2181 test "$ac_signal" != 0 &&
2182 $as_echo "$as_me: caught signal $ac_signal"
2183 $as_echo "$as_me: exit $exit_status"
2184 } >&5
2185 rm -f core *.core core.conftest.* &&
2186 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2187 exit $exit_status
2188 ' 0
2189 for ac_signal in 1 2 13 15; do
2190 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2191 done
2192 ac_signal=0
2193
2194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2195 rm -f -r conftest* confdefs.h
2196
2197 $as_echo "/* confdefs.h */" > confdefs.h
2198
2199 # Predefined preprocessor variables.
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_NAME "$PACKAGE_NAME"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_STRING "$PACKAGE_STRING"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2219 _ACEOF
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_URL "$PACKAGE_URL"
2223 _ACEOF
2224
2225
2226 # Let the site file select an alternate cache file if it wants to.
2227 # Prefer an explicitly selected file to automatically selected ones.
2228 ac_site_file1=NONE
2229 ac_site_file2=NONE
2230 if test -n "$CONFIG_SITE"; then
2231 # We do not want a PATH search for config.site.
2232 case $CONFIG_SITE in #((
2233 -*) ac_site_file1=./$CONFIG_SITE;;
2234 */*) ac_site_file1=$CONFIG_SITE;;
2235 *) ac_site_file1=./$CONFIG_SITE;;
2236 esac
2237 elif test "x$prefix" != xNONE; then
2238 ac_site_file1=$prefix/share/config.site
2239 ac_site_file2=$prefix/etc/config.site
2240 else
2241 ac_site_file1=$ac_default_prefix/share/config.site
2242 ac_site_file2=$ac_default_prefix/etc/config.site
2243 fi
2244 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2245 do
2246 test "x$ac_site_file" = xNONE && continue
2247 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2249 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2250 sed 's/^/| /' "$ac_site_file" >&5
2251 . "$ac_site_file" \
2252 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 as_fn_error $? "failed to load site script $ac_site_file
2255 See \`config.log' for more details" "$LINENO" 5; }
2256 fi
2257 done
2258
2259 if test -r "$cache_file"; then
2260 # Some versions of bash will fail to source /dev/null (special files
2261 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2262 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2264 $as_echo "$as_me: loading cache $cache_file" >&6;}
2265 case $cache_file in
2266 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2267 *) . "./$cache_file";;
2268 esac
2269 fi
2270 else
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2272 $as_echo "$as_me: creating cache $cache_file" >&6;}
2273 >$cache_file
2274 fi
2275
2276 # Check that the precious variables saved in the cache have kept the same
2277 # value.
2278 ac_cache_corrupted=false
2279 for ac_var in $ac_precious_vars; do
2280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281 eval ac_new_set=\$ac_env_${ac_var}_set
2282 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283 eval ac_new_val=\$ac_env_${ac_var}_value
2284 case $ac_old_set,$ac_new_set in
2285 set,)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,set)
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2293 ,);;
2294 *)
2295 if test "x$ac_old_val" != "x$ac_new_val"; then
2296 # differences in whitespace do not lead to failure.
2297 ac_old_val_w=`echo x $ac_old_val`
2298 ac_new_val_w=`echo x $ac_new_val`
2299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302 ac_cache_corrupted=:
2303 else
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306 eval $ac_var=\$ac_old_val
2307 fi
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2309 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2311 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2312 fi;;
2313 esac
2314 # Pass precious variables to config.status.
2315 if test "$ac_new_set" = set; then
2316 case $ac_new_val in
2317 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318 *) ac_arg=$ac_var=$ac_new_val ;;
2319 esac
2320 case " $ac_configure_args " in
2321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2322 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323 esac
2324 fi
2325 done
2326 if $ac_cache_corrupted; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332 fi
2333 ## -------------------- ##
2334 ## Main body of script. ##
2335 ## -------------------- ##
2336
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342
2343
2344
2345 ac_config_headers="$ac_config_headers config.h"
2346
2347 ac_aux_dir=
2348 for ac_dir in . "$srcdir"/.; do
2349 if 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/install.sh"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/install.sh -c"
2356 break
2357 elif test -f "$ac_dir/shtool"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/shtool install -c"
2360 break
2361 fi
2362 done
2363 if test -z "$ac_aux_dir"; then
2364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2365 fi
2366
2367 # These three variables are undocumented and unsupported,
2368 # and are intended to be withdrawn in a future Autoconf release.
2369 # They can cause serious problems if a builder's source tree is in a directory
2370 # whose full name contains unusual characters.
2371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374
2375
2376
2377 # Initialize Automake
2378 am__api_version='1.15'
2379
2380 # Find a good install program. We prefer a C program (faster),
2381 # so one script is as good as another. But avoid the broken or
2382 # incompatible versions:
2383 # SysV /etc/install, /usr/sbin/install
2384 # SunOS /usr/etc/install
2385 # IRIX /sbin/install
2386 # AIX /bin/install
2387 # AmigaOS /C/install, which installs bootblocks on floppy discs
2388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2391 # OS/2's system install, which has a completely different semantic
2392 # ./install, which can be erroneously created by make from ./install.sh.
2393 # Reject install programs that cannot install multiple files.
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2395 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2396 if test -z "$INSTALL"; then
2397 if ${ac_cv_path_install+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 # Account for people who put trailing slashes in PATH elements.
2406 case $as_dir/ in #((
2407 ./ | .// | /[cC]/* | \
2408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2409 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2410 /usr/ucb/* ) ;;
2411 *)
2412 # OSF1 and SCO ODT 3.0 have their own names for install.
2413 # Don't use installbsd from OSF since it installs stuff as root
2414 # by default.
2415 for ac_prog in ginstall scoinst install; do
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2418 if test $ac_prog = install &&
2419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # AIX install. It has an incompatible calling convention.
2421 :
2422 elif test $ac_prog = install &&
2423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # program-specific install script used by HP pwplus--don't use.
2425 :
2426 else
2427 rm -rf conftest.one conftest.two conftest.dir
2428 echo one > conftest.one
2429 echo two > conftest.two
2430 mkdir conftest.dir
2431 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2432 test -s conftest.one && test -s conftest.two &&
2433 test -s conftest.dir/conftest.one &&
2434 test -s conftest.dir/conftest.two
2435 then
2436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2437 break 3
2438 fi
2439 fi
2440 fi
2441 done
2442 done
2443 ;;
2444 esac
2445
2446 done
2447 IFS=$as_save_IFS
2448
2449 rm -rf conftest.one conftest.two conftest.dir
2450
2451 fi
2452 if test "${ac_cv_path_install+set}" = set; then
2453 INSTALL=$ac_cv_path_install
2454 else
2455 # As a last resort, use the slow shell script. Don't cache a
2456 # value for INSTALL within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the value is a relative name.
2459 INSTALL=$ac_install_sh
2460 fi
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2463 $as_echo "$INSTALL" >&6; }
2464
2465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2466 # It thinks the first close brace ends the variable substitution.
2467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2468
2469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2470
2471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2474 $as_echo_n "checking whether build environment is sane... " >&6; }
2475 # Reject unsafe characters in $srcdir or the absolute working directory
2476 # name. Accept space and tab only in the latter.
2477 am_lf='
2478 '
2479 case `pwd` in
2480 *[\\\"\#\$\&\'\`$am_lf]*)
2481 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2482 esac
2483 case $srcdir in
2484 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2485 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2486 esac
2487
2488 # Do 'set' in a subshell so we don't clobber the current shell's
2489 # arguments. Must try -L first in case configure is actually a
2490 # symlink; some systems play weird games with the mod time of symlinks
2491 # (eg FreeBSD returns the mod time of the symlink's containing
2492 # directory).
2493 if (
2494 am_has_slept=no
2495 for am_try in 1 2; do
2496 echo "timestamp, slept: $am_has_slept" > conftest.file
2497 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2498 if test "$*" = "X"; then
2499 # -L didn't work.
2500 set X `ls -t "$srcdir/configure" conftest.file`
2501 fi
2502 if test "$*" != "X $srcdir/configure conftest.file" \
2503 && test "$*" != "X conftest.file $srcdir/configure"; then
2504
2505 # If neither matched, then we have a broken ls. This can happen
2506 # if, for instance, CONFIG_SHELL is bash and it inherits a
2507 # broken ls alias from the environment. This has actually
2508 # happened. Such a system could not be considered "sane".
2509 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2510 alias in your environment" "$LINENO" 5
2511 fi
2512 if test "$2" = conftest.file || test $am_try -eq 2; then
2513 break
2514 fi
2515 # Just in case.
2516 sleep 1
2517 am_has_slept=yes
2518 done
2519 test "$2" = conftest.file
2520 )
2521 then
2522 # Ok.
2523 :
2524 else
2525 as_fn_error $? "newly created file is older than distributed files!
2526 Check your system clock" "$LINENO" 5
2527 fi
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2529 $as_echo "yes" >&6; }
2530 # If we didn't sleep, we still need to ensure time stamps of config.status and
2531 # generated files are strictly newer.
2532 am_sleep_pid=
2533 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2534 ( sleep 1 ) &
2535 am_sleep_pid=$!
2536 fi
2537
2538 rm -f conftest.file
2539
2540 test "$program_prefix" != NONE &&
2541 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542 # Use a double $ so make ignores it.
2543 test "$program_suffix" != NONE &&
2544 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2545 # Double any \ or $.
2546 # By default was `s,x,x', remove it if useless.
2547 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2548 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2549
2550 # Expand $ac_aux_dir to an absolute path.
2551 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2552
2553 if test x"${MISSING+set}" != xset; then
2554 case $am_aux_dir in
2555 *\ * | *\ *)
2556 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2557 *)
2558 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2559 esac
2560 fi
2561 # Use eval to expand $SHELL
2562 if eval "$MISSING --is-lightweight"; then
2563 am_missing_run="$MISSING "
2564 else
2565 am_missing_run=
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2567 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2568 fi
2569
2570 if test x"${install_sh+set}" != xset; then
2571 case $am_aux_dir in
2572 *\ * | *\ *)
2573 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2574 *)
2575 install_sh="\${SHELL} $am_aux_dir/install-sh"
2576 esac
2577 fi
2578
2579 # Installed binaries are usually stripped using 'strip' when the user
2580 # run "make install-strip". However 'strip' might not be the right
2581 # tool to use in cross-compilation environments, therefore Automake
2582 # will honor the 'STRIP' environment variable to overrule this program.
2583 if test "$cross_compiling" != no; then
2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2586 set dummy ${ac_tool_prefix}strip; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_STRIP+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$STRIP"; then
2593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 STRIP=$ac_cv_prog_STRIP
2613 if test -n "$STRIP"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2615 $as_echo "$STRIP" >&6; }
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 fi
2623 if test -z "$ac_cv_prog_STRIP"; then
2624 ac_ct_STRIP=$STRIP
2625 # Extract the first word of "strip", so it can be a program name with args.
2626 set dummy strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$ac_ct_STRIP"; then
2633 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_ac_ct_STRIP="strip"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2653 if test -n "$ac_ct_STRIP"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2655 $as_echo "$ac_ct_STRIP" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661 if test "x$ac_ct_STRIP" = x; then
2662 STRIP=":"
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665 yes:)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668 ac_tool_warned=yes ;;
2669 esac
2670 STRIP=$ac_ct_STRIP
2671 fi
2672 else
2673 STRIP="$ac_cv_prog_STRIP"
2674 fi
2675
2676 fi
2677 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2680 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2681 if test -z "$MKDIR_P"; then
2682 if ${ac_cv_path_mkdir+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_prog in mkdir gmkdir; do
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2693 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2694 'mkdir (GNU coreutils) '* | \
2695 'mkdir (coreutils) '* | \
2696 'mkdir (fileutils) '4.1*)
2697 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2698 break 3;;
2699 esac
2700 done
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706
2707 test -d ./--version && rmdir ./--version
2708 if test "${ac_cv_path_mkdir+set}" = set; then
2709 MKDIR_P="$ac_cv_path_mkdir -p"
2710 else
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for MKDIR_P within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 MKDIR_P="$ac_install_sh -d"
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2719 $as_echo "$MKDIR_P" >&6; }
2720
2721 for ac_prog in gawk mawk nawk awk
2722 do
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_AWK+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_AWK="$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 AWK=$ac_cv_prog_AWK
2751 if test -n "$AWK"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2753 $as_echo "$AWK" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759
2760 test -n "$AWK" && break
2761 done
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2764 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2765 set x ${MAKE-make}
2766 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2767 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat >conftest.make <<\_ACEOF
2771 SHELL = /bin/sh
2772 all:
2773 @echo '@@@%%%=$(MAKE)=@@@%%%'
2774 _ACEOF
2775 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2776 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2777 *@@@%%%=?*=@@@%%%*)
2778 eval ac_cv_prog_make_${ac_make}_set=yes;;
2779 *)
2780 eval ac_cv_prog_make_${ac_make}_set=no;;
2781 esac
2782 rm -f conftest.make
2783 fi
2784 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2786 $as_echo "yes" >&6; }
2787 SET_MAKE=
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 SET_MAKE="MAKE=${MAKE-make}"
2792 fi
2793
2794 rm -rf .tst 2>/dev/null
2795 mkdir .tst 2>/dev/null
2796 if test -d .tst; then
2797 am__leading_dot=.
2798 else
2799 am__leading_dot=_
2800 fi
2801 rmdir .tst 2>/dev/null
2802
2803 # Check whether --enable-silent-rules was given.
2804 if test "${enable_silent_rules+set}" = set; then :
2805 enableval=$enable_silent_rules;
2806 fi
2807
2808 case $enable_silent_rules in # (((
2809 yes) AM_DEFAULT_VERBOSITY=0;;
2810 no) AM_DEFAULT_VERBOSITY=1;;
2811 *) AM_DEFAULT_VERBOSITY=1;;
2812 esac
2813 am_make=${MAKE-make}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2815 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2816 if ${am_cv_make_support_nested_variables+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if $as_echo 'TRUE=$(BAR$(V))
2820 BAR0=false
2821 BAR1=true
2822 V=1
2823 am__doit:
2824 @$(TRUE)
2825 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2826 am_cv_make_support_nested_variables=yes
2827 else
2828 am_cv_make_support_nested_variables=no
2829 fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2832 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2833 if test $am_cv_make_support_nested_variables = yes; then
2834 AM_V='$(V)'
2835 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2836 else
2837 AM_V=$AM_DEFAULT_VERBOSITY
2838 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2839 fi
2840 AM_BACKSLASH='\'
2841
2842 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2843 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2844 # is not polluted with repeated "-I."
2845 am__isrc=' -I$(srcdir)'
2846 # test to see if srcdir already configured
2847 if test -f $srcdir/config.status; then
2848 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2849 fi
2850 fi
2851
2852 # test whether we have cygpath
2853 if test -z "$CYGPATH_W"; then
2854 if (cygpath --version) >/dev/null 2>/dev/null; then
2855 CYGPATH_W='cygpath -w'
2856 else
2857 CYGPATH_W=echo
2858 fi
2859 fi
2860
2861
2862 # Define the identity of the package.
2863 PACKAGE='xf86-video-i128'
2864 VERSION='1.4.0'
2865
2866
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE "$PACKAGE"
2869 _ACEOF
2870
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define VERSION "$VERSION"
2874 _ACEOF
2875
2876 # Some tools Automake needs.
2877
2878 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2879
2880
2881 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2882
2883
2884 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2885
2886
2887 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2888
2889
2890 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2891
2892 # For better backward compatibility. To be removed once Automake 1.9.x
2893 # dies out for good. For more background, see:
2894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2895 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2896 mkdir_p='$(MKDIR_P)'
2897
2898 # We need awk for the "check" target (and possibly the TAP driver). The
2899 # system "awk" is bad on some platforms.
2900 # Always define AMTAR for backward compatibility. Yes, it's still used
2901 # in the wild :-( We should find a proper way to deprecate it ...
2902 AMTAR='$${TAR-tar}'
2903
2904
2905 # We'll loop over all known methods to create a tar archive until one works.
2906 _am_tools='gnutar pax cpio none'
2907
2908 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2909
2910
2911
2912
2913
2914
2915 # POSIX will say in a future version that running "rm -f" with no argument
2916 # is OK; and we want to be able to make that assumption in our Makefile
2917 # recipes. So use an aggressive probe to check that the usage we want is
2918 # actually supported "in the wild" to an acceptable degree.
2919 # See automake bug#10828.
2920 # To make any issue more visible, cause the running configure to be aborted
2921 # by default if the 'rm' program in use doesn't match our expectations; the
2922 # user can still override this though.
2923 if rm -f && rm -fr && rm -rf; then : OK; else
2924 cat >&2 <<'END'
2925 Oops!
2926
2927 Your 'rm' program seems unable to run without file operands specified
2928 on the command line, even when the '-f' option is present. This is contrary
2929 to the behaviour of most rm programs out there, and not conforming with
2930 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2931
2932 Please tell bug-automake@gnu.org about your system, including the value
2933 of your $PATH and any error possibly output before this message. This
2934 can help us improve future automake versions.
2935
2936 END
2937 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2938 echo 'Configuration will proceed anyway, since you have set the' >&2
2939 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2940 echo >&2
2941 else
2942 cat >&2 <<'END'
2943 Aborting the configuration process, to ensure you take notice of the issue.
2944
2945 You can download and install GNU coreutils to get an 'rm' implementation
2946 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2947
2948 If you want to complete the configuration process using your problematic
2949 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2950 to "yes", and re-run configure.
2951
2952 END
2953 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2954 fi
2955 fi
2956
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2959 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2960 # Check whether --enable-maintainer-mode was given.
2961 if test "${enable_maintainer_mode+set}" = set; then :
2962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2963 else
2964 USE_MAINTAINER_MODE=no
2965 fi
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2968 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2969 if test $USE_MAINTAINER_MODE = yes; then
2970 MAINTAINER_MODE_TRUE=
2971 MAINTAINER_MODE_FALSE='#'
2972 else
2973 MAINTAINER_MODE_TRUE='#'
2974 MAINTAINER_MODE_FALSE=
2975 fi
2976
2977 MAINT=$MAINTAINER_MODE_TRUE
2978
2979
2980
2981 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993 DEPDIR="${am__leading_dot}deps"
2994
2995 ac_config_commands="$ac_config_commands depfiles"
2996
2997
2998 am_make=${MAKE-make}
2999 cat > confinc << 'END'
3000 am__doit:
3001 @echo this is the am__doit target
3002 .PHONY: am__doit
3003 END
3004 # If we don't find an include directive, just comment out the code.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3007 am__include="#"
3008 am__quote=
3009 _am_result=none
3010 # First try GNU make style include.
3011 echo "include confinc" > confmf
3012 # Ignore all kinds of additional output from 'make'.
3013 case `$am_make -s -f confmf 2> /dev/null` in #(
3014 *the\ am__doit\ target*)
3015 am__include=include
3016 am__quote=
3017 _am_result=GNU
3018 ;;
3019 esac
3020 # Now try BSD make style include.
3021 if test "$am__include" = "#"; then
3022 echo '.include "confinc"' > confmf
3023 case `$am_make -s -f confmf 2> /dev/null` in #(
3024 *the\ am__doit\ target*)
3025 am__include=.include
3026 am__quote="\""
3027 _am_result=BSD
3028 ;;
3029 esac
3030 fi
3031
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3034 $as_echo "$_am_result" >&6; }
3035 rm -f confinc confmf
3036
3037 # Check whether --enable-dependency-tracking was given.
3038 if test "${enable_dependency_tracking+set}" = set; then :
3039 enableval=$enable_dependency_tracking;
3040 fi
3041
3042 if test "x$enable_dependency_tracking" != xno; then
3043 am_depcomp="$ac_aux_dir/depcomp"
3044 AMDEPBACKSLASH='\'
3045 am__nodep='_no'
3046 fi
3047 if test "x$enable_dependency_tracking" != xno; then
3048 AMDEP_TRUE=
3049 AMDEP_FALSE='#'
3050 else
3051 AMDEP_TRUE='#'
3052 AMDEP_FALSE=
3053 fi
3054
3055
3056 ac_ext=c
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 fi
3100 if test -z "$ac_cv_prog_CC"; then
3101 ac_ct_CC=$CC
3102 # Extract the first word of "gcc", so it can be a program name with args.
3103 set dummy gcc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$ac_ct_CC"; then
3110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_CC="gcc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132 $as_echo "$ac_ct_CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138 if test "x$ac_ct_CC" = x; then
3139 CC=""
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147 CC=$ac_ct_CC
3148 fi
3149 else
3150 CC="$ac_cv_prog_CC"
3151 fi
3152
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}cc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CC="${ac_tool_prefix}cc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 fi
3194 if test -z "$CC"; then
3195 # Extract the first word of "cc", so it can be a program name with args.
3196 set dummy cc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 ac_prog_rejected=no
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3214 ac_prog_rejected=yes
3215 continue
3216 fi
3217 ac_cv_prog_CC="cc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 if test $ac_prog_rejected = yes; then
3226 # We found a bogon in the path, so make sure we never use it.
3227 set dummy $ac_cv_prog_CC
3228 shift
3229 if test $# != 0; then
3230 # We chose a different compiler from the bogus one.
3231 # However, it has the same basename, so the bogon will be chosen
3232 # first if we set CC to just the basename; use the full file name.
3233 shift
3234 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3235 fi
3236 fi
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248
3249 fi
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 for ac_prog in cl.exe
3253 do
3254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$CC" && break
3292 done
3293 fi
3294 if test -z "$CC"; then
3295 ac_ct_CC=$CC
3296 for ac_prog in cl.exe
3297 do
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$ac_ct_CC"; then
3306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CC="$ac_prog"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 test -n "$ac_ct_CC" && break
3336 done
3337
3338 if test "x$ac_ct_CC" = x; then
3339 CC=""
3340 else
3341 case $cross_compiling:$ac_tool_warned in
3342 yes:)
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345 ac_tool_warned=yes ;;
3346 esac
3347 CC=$ac_ct_CC
3348 fi
3349 fi
3350
3351 fi
3352
3353
3354 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "no acceptable C compiler found in \$PATH
3357 See \`config.log' for more details" "$LINENO" 5; }
3358
3359 # Provide some information about the compiler.
3360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361 set X $ac_compile
3362 ac_compiler=$2
3363 for ac_option in --version -v -V -qversion; do
3364 { { ac_try="$ac_compiler $ac_option >&5"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3372 ac_status=$?
3373 if test -s conftest.err; then
3374 sed '10a\
3375 ... rest of stderr output deleted ...
3376 10q' conftest.err >conftest.er1
3377 cat conftest.er1 >&5
3378 fi
3379 rm -f conftest.er1 conftest.err
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 done
3383
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3399 # of exeext.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401 $as_echo_n "checking whether the C compiler works... " >&6; }
3402 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407 ac_rmfiles=
3408 for ac_file in $ac_files
3409 do
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413 esac
3414 done
3415 rm -f $ac_rmfiles
3416
3417 if { { ac_try="$ac_link_default"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link_default") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3431 # so that the user can short-circuit this test for compilers unknown to
3432 # Autoconf.
3433 for ac_file in $ac_files ''
3434 do
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438 ;;
3439 [ab].out )
3440 # We found the default executable, but exeext='' is most
3441 # certainly right.
3442 break;;
3443 *.* )
3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445 then :; else
3446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 fi
3448 # We set ac_cv_exeext here because the later test for it is not
3449 # safe: cross compilers may not add the suffix if given an `-o'
3450 # argument, so we may need to know it at that point already.
3451 # Even if this section looks crufty: it has the advantage of
3452 # actually working.
3453 break;;
3454 * )
3455 break;;
3456 esac
3457 done
3458 test "$ac_cv_exeext" = no && ac_cv_exeext=
3459
3460 else
3461 ac_file=''
3462 fi
3463 if test -z "$ac_file"; then :
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error 77 "C compiler cannot create executables
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475 $as_echo "yes" >&6; }
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3478 $as_echo_n "checking for C compiler default output file name... " >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3480 $as_echo "$ac_file" >&6; }
3481 ac_exeext=$ac_cv_exeext
3482
3483 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3484 ac_clean_files=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3486 $as_echo_n "checking for suffix of executables... " >&6; }
3487 if { { ac_try="$ac_link"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_link") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3499 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3500 # work properly (i.e., refer to `conftest.exe'), while it won't with
3501 # `rm'.
3502 for ac_file in conftest.exe conftest conftest.*; do
3503 test -f "$ac_file" || continue
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507 break;;
3508 * ) break;;
3509 esac
3510 done
3511 else
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3515 See \`config.log' for more details" "$LINENO" 5; }
3516 fi
3517 rm -f conftest conftest$ac_cv_exeext
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3519 $as_echo "$ac_cv_exeext" >&6; }
3520
3521 rm -f conftest.$ac_ext
3522 EXEEXT=$ac_cv_exeext
3523 ac_exeext=$EXEEXT
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <stdio.h>
3527 int
3528 main ()
3529 {
3530 FILE *f = fopen ("conftest.out", "w");
3531 return ferror (f) || fclose (f) != 0;
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 ac_clean_files="$ac_clean_files conftest.out"
3538 # Check that the compiler produces executables we can run. If not, either
3539 # the compiler is broken, or we cross compile.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3541 $as_echo_n "checking whether we are cross compiling... " >&6; }
3542 if test "$cross_compiling" != yes; then
3543 { { ac_try="$ac_link"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_link") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3554 if { ac_try='./conftest$ac_cv_exeext'
3555 { { case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_try") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; }; then
3565 cross_compiling=no
3566 else
3567 if test "$cross_compiling" = maybe; then
3568 cross_compiling=yes
3569 else
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot run C compiled programs.
3573 If you meant to cross compile, use \`--host'.
3574 See \`config.log' for more details" "$LINENO" 5; }
3575 fi
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3579 $as_echo "$cross_compiling" >&6; }
3580
3581 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3584 $as_echo_n "checking for suffix of object files... " >&6; }
3585 if ${ac_cv_objext+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.o conftest.obj
3600 if { { ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compile") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 for ac_file in conftest.o conftest.obj conftest.*; do
3612 test -f "$ac_file" || continue;
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3615 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3616 break;;
3617 esac
3618 done
3619 else
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "cannot compute suffix of object files: cannot compile
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 fi
3628 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631 $as_echo "$ac_cv_objext" >&6; }
3632 OBJEXT=$ac_cv_objext
3633 ac_objext=$OBJEXT
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3635 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3636 if ${ac_cv_c_compiler_gnu+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642 int
3643 main ()
3644 {
3645 #ifndef __GNUC__
3646 choke me
3647 #endif
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_compiler_gnu=yes
3655 else
3656 ac_compiler_gnu=no
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3663 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664 if test $ac_compiler_gnu = yes; then
3665 GCC=yes
3666 else
3667 GCC=
3668 fi
3669 ac_test_CFLAGS=${CFLAGS+set}
3670 ac_save_CFLAGS=$CFLAGS
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3672 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3673 if ${ac_cv_prog_cc_g+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 ac_save_c_werror_flag=$ac_c_werror_flag
3677 ac_c_werror_flag=yes
3678 ac_cv_prog_cc_g=no
3679 CFLAGS="-g"
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_cv_prog_cc_g=yes
3693 else
3694 CFLAGS=""
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707
3708 else
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_c_werror_flag=$ac_save_c_werror_flag
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3733 $as_echo "$ac_cv_prog_cc_g" >&6; }
3734 if test "$ac_test_CFLAGS" = set; then
3735 CFLAGS=$ac_save_CFLAGS
3736 elif test $ac_cv_prog_cc_g = yes; then
3737 if test "$GCC" = yes; then
3738 CFLAGS="-g -O2"
3739 else
3740 CFLAGS="-g"
3741 fi
3742 else
3743 if test "$GCC" = yes; then
3744 CFLAGS="-O2"
3745 else
3746 CFLAGS=
3747 fi
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3750 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3751 if ${ac_cv_prog_cc_c89+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_cv_prog_cc_c89=no
3755 ac_save_CC=$CC
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 struct stat;
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3767 {
3768 return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811 CC="$ac_save_CC $ac_arg"
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_c89=$ac_arg
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext
3816 test "x$ac_cv_prog_cc_c89" != "xno" && break
3817 done
3818 rm -f conftest.$ac_ext
3819 CC=$ac_save_CC
3820
3821 fi
3822 # AC_CACHE_VAL
3823 case "x$ac_cv_prog_cc_c89" in
3824 x)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3826 $as_echo "none needed" >&6; } ;;
3827 xno)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829 $as_echo "unsupported" >&6; } ;;
3830 *)
3831 CC="$CC $ac_cv_prog_cc_c89"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3833 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3834 esac
3835 if test "x$ac_cv_prog_cc_c89" != xno; then :
3836
3837 fi
3838
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845 ac_ext=c
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3851 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3852 if ${am_cv_prog_cc_c_o+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857
3858 int
3859 main ()
3860 {
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 # Make sure it works both with $CC and with simple cc.
3867 # Following AC_PROG_CC_C_O, we do the test twice because some
3868 # compilers refuse to overwrite an existing .o file with -o,
3869 # though they will create one.
3870 am_cv_prog_cc_c_o=yes
3871 for am_i in 1 2; do
3872 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3873 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } \
3877 && test -f conftest2.$ac_objext; then
3878 : OK
3879 else
3880 am_cv_prog_cc_c_o=no
3881 break
3882 fi
3883 done
3884 rm -f core conftest*
3885 unset am_i
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3888 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3889 if test "$am_cv_prog_cc_c_o" != yes; then
3890 # Losing compiler, so override with the script.
3891 # FIXME: It is wrong to rewrite CC.
3892 # But if we don't then we get into trouble of one sort or another.
3893 # A longer-term fix would be to have automake use am__CC in this case,
3894 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3895 CC="$am_aux_dir/compile $CC"
3896 fi
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904 depcc="$CC" am_compiler_list=
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3907 $as_echo_n "checking dependency style of $depcc... " >&6; }
3908 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3912 # We make a subdir and do the tests there. Otherwise we can end up
3913 # making bogus files that we don't know about and never remove. For
3914 # instance it was reported that on HP-UX the gcc test will end up
3915 # making a dummy file named 'D' -- because '-MD' means "put the output
3916 # in D".
3917 rm -rf conftest.dir
3918 mkdir conftest.dir
3919 # Copy depcomp to subdir because otherwise we won't find it if we're
3920 # using a relative directory.
3921 cp "$am_depcomp" conftest.dir
3922 cd conftest.dir
3923 # We will build objects and dependencies in a subdirectory because
3924 # it helps to detect inapplicable dependency modes. For instance
3925 # both Tru64's cc and ICC support -MD to output dependencies as a
3926 # side effect of compilation, but ICC will put the dependencies in
3927 # the current directory while Tru64 will put them in the object
3928 # directory.
3929 mkdir sub
3930
3931 am_cv_CC_dependencies_compiler_type=none
3932 if test "$am_compiler_list" = ""; then
3933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3934 fi
3935 am__universal=false
3936 case " $depcc " in #(
3937 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3938 esac
3939
3940 for depmode in $am_compiler_list; do
3941 # Setup a source with many dependencies, because some compilers
3942 # like to wrap large dependency lists on column 80 (with \), and
3943 # we should not choose a depcomp mode which is confused by this.
3944 #
3945 # We need to recreate these files for each test, as the compiler may
3946 # overwrite some of them when testing with obscure command lines.
3947 # This happens at least with the AIX C compiler.
3948 : > sub/conftest.c
3949 for i in 1 2 3 4 5 6; do
3950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3951 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3952 # Solaris 10 /bin/sh.
3953 echo '/* dummy */' > sub/conftst$i.h
3954 done
3955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3956
3957 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3958 # mode. It turns out that the SunPro C++ compiler does not properly
3959 # handle '-M -o', and we need to detect this. Also, some Intel
3960 # versions had trouble with output in subdirs.
3961 am__obj=sub/conftest.${OBJEXT-o}
3962 am__minus_obj="-o $am__obj"
3963 case $depmode in
3964 gcc)
3965 # This depmode causes a compiler race in universal mode.
3966 test "$am__universal" = false || continue
3967 ;;
3968 nosideeffect)
3969 # After this tag, mechanisms are not by side-effect, so they'll
3970 # only be used when explicitly requested.
3971 if test "x$enable_dependency_tracking" = xyes; then
3972 continue
3973 else
3974 break
3975 fi
3976 ;;
3977 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3978 # This compiler won't grok '-c -o', but also, the minuso test has
3979 # not run yet. These depmodes are late enough in the game, and
3980 # so weak that their functioning should not be impacted.
3981 am__obj=conftest.${OBJEXT-o}
3982 am__minus_obj=
3983 ;;
3984 none) break ;;
3985 esac
3986 if depmode=$depmode \
3987 source=sub/conftest.c object=$am__obj \
3988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3990 >/dev/null 2>conftest.err &&
3991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995 # icc doesn't choke on unknown options, it will just issue warnings
3996 # or remarks (even with -Werror). So we grep stderr for any message
3997 # that says an option was ignored or not supported.
3998 # When given -MP, icc 7.0 and 7.1 complain thusly:
3999 # icc: Command line warning: ignoring option '-M'; no argument required
4000 # The diagnosis changed in icc 8.0:
4001 # icc: Command line remark: option '-MP' not supported
4002 if (grep 'ignoring option' conftest.err ||
4003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004 am_cv_CC_dependencies_compiler_type=$depmode
4005 break
4006 fi
4007 fi
4008 done
4009
4010 cd ..
4011 rm -rf conftest.dir
4012 else
4013 am_cv_CC_dependencies_compiler_type=none
4014 fi
4015
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4018 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4019 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4020
4021 if
4022 test "x$enable_dependency_tracking" != xno \
4023 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4024 am__fastdepCC_TRUE=
4025 am__fastdepCC_FALSE='#'
4026 else
4027 am__fastdepCC_TRUE='#'
4028 am__fastdepCC_FALSE=
4029 fi
4030
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4033 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4034 if ${ac_cv_prog_cc_c99+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 ac_cv_prog_cc_c99=no
4038 ac_save_CC=$CC
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #include <stdarg.h>
4042 #include <stdbool.h>
4043 #include <stdlib.h>
4044 #include <wchar.h>
4045 #include <stdio.h>
4046
4047 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4048 #define debug(...) fprintf (stderr, __VA_ARGS__)
4049 #define showlist(...) puts (#__VA_ARGS__)
4050 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4051 static void
4052 test_varargs_macros (void)
4053 {
4054 int x = 1234;
4055 int y = 5678;
4056 debug ("Flag");
4057 debug ("X = %d\n", x);
4058 showlist (The first, second, and third items.);
4059 report (x>y, "x is %d but y is %d", x, y);
4060 }
4061
4062 // Check long long types.
4063 #define BIG64 18446744073709551615ull
4064 #define BIG32 4294967295ul
4065 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4066 #if !BIG_OK
4067 your preprocessor is broken;
4068 #endif
4069 #if BIG_OK
4070 #else
4071 your preprocessor is broken;
4072 #endif
4073 static long long int bignum = -9223372036854775807LL;
4074 static unsigned long long int ubignum = BIG64;
4075
4076 struct incomplete_array
4077 {
4078 int datasize;
4079 double data[];
4080 };
4081
4082 struct named_init {
4083 int number;
4084 const wchar_t *name;
4085 double average;
4086 };
4087
4088 typedef const char *ccp;
4089
4090 static inline int
4091 test_restrict (ccp restrict text)
4092 {
4093 // See if C++-style comments work.
4094 // Iterate through items via the restricted pointer.
4095 // Also check for declarations in for loops.
4096 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4097 continue;
4098 return 0;
4099 }
4100
4101 // Check varargs and va_copy.
4102 static void
4103 test_varargs (const char *format, ...)
4104 {
4105 va_list args;
4106 va_start (args, format);
4107 va_list args_copy;
4108 va_copy (args_copy, args);
4109
4110 const char *str;
4111 int number;
4112 float fnumber;
4113
4114 while (*format)
4115 {
4116 switch (*format++)
4117 {
4118 case 's': // string
4119 str = va_arg (args_copy, const char *);
4120 break;
4121 case 'd': // int
4122 number = va_arg (args_copy, int);
4123 break;
4124 case 'f': // float
4125 fnumber = va_arg (args_copy, double);
4126 break;
4127 default:
4128 break;
4129 }
4130 }
4131 va_end (args_copy);
4132 va_end (args);
4133 }
4134
4135 int
4136 main ()
4137 {
4138
4139 // Check bool.
4140 _Bool success = false;
4141
4142 // Check restrict.
4143 if (test_restrict ("String literal") == 0)
4144 success = true;
4145 char *restrict newvar = "Another string";
4146
4147 // Check varargs.
4148 test_varargs ("s, d' f .", "string", 65, 34.234);
4149 test_varargs_macros ();
4150
4151 // Check flexible array members.
4152 struct incomplete_array *ia =
4153 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4154 ia->datasize = 10;
4155 for (int i = 0; i < ia->datasize; ++i)
4156 ia->data[i] = i * 1.234;
4157
4158 // Check named initializers.
4159 struct named_init ni = {
4160 .number = 34,
4161 .name = L"Test wide string",
4162 .average = 543.34343,
4163 };
4164
4165 ni.number = 58;
4166
4167 int dynamic_array[ni.number];
4168 dynamic_array[ni.number - 1] = 543;
4169
4170 // work around unused variable warnings
4171 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4172 || dynamic_array[ni.number - 1] != 543);
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4179 do
4180 CC="$ac_save_CC $ac_arg"
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_cv_prog_cc_c99=$ac_arg
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext
4185 test "x$ac_cv_prog_cc_c99" != "xno" && break
4186 done
4187 rm -f conftest.$ac_ext
4188 CC=$ac_save_CC
4189
4190 fi
4191 # AC_CACHE_VAL
4192 case "x$ac_cv_prog_cc_c99" in
4193 x)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4195 $as_echo "none needed" >&6; } ;;
4196 xno)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4198 $as_echo "unsupported" >&6; } ;;
4199 *)
4200 CC="$CC $ac_cv_prog_cc_c99"
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4202 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4203 esac
4204 if test "x$ac_cv_prog_cc_c99" != xno; then :
4205
4206 fi
4207
4208
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4219 CPP=
4220 fi
4221 if test -z "$CPP"; then
4222 if ${ac_cv_prog_CPP+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 # Double quotes because CPP needs to be expanded
4226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227 do
4228 ac_preproc_ok=false
4229 for ac_c_preproc_warn_flag in '' yes
4230 do
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 # <limits.h> exists even on freestanding compilers.
4235 # On the NeXT, cc -E runs the code through the compiler's parser,
4236 # not just through cpp. "Syntax error" is here to catch this case.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4244 Syntax error
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247
4248 else
4249 # Broken: fails on valid input.
4250 continue
4251 fi
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254 # OK, works on sane cases. Now check whether nonexistent headers
4255 # can be detected and how.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261 # Broken: success on invalid input.
4262 continue
4263 else
4264 # Passes both tests.
4265 ac_preproc_ok=:
4266 break
4267 fi
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4269
4270 done
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.i conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then :
4274 break
4275 fi
4276
4277 done
4278 ac_cv_prog_CPP=$CPP
4279
4280 fi
4281 CPP=$ac_cv_prog_CPP
4282 else
4283 ac_cv_prog_CPP=$CPP
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286 $as_echo "$CPP" >&6; }
4287 ac_preproc_ok=false
4288 for ac_c_preproc_warn_flag in '' yes
4289 do
4290 # Use a header file that comes with gcc, so configuring glibc
4291 # with a fresh cross-compiler works.
4292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293 # <limits.h> exists even on freestanding compilers.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303 Syntax error
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307 else
4308 # Broken: fails on valid input.
4309 continue
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313 # OK, works on sane cases. Now check whether nonexistent headers
4314 # can be detected and how.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4318 _ACEOF
4319 if ac_fn_c_try_cpp "$LINENO"; then :
4320 # Broken: success on invalid input.
4321 continue
4322 else
4323 # Passes both tests.
4324 ac_preproc_ok=:
4325 break
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 done
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.i conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then :
4333
4334 else
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4350 if ${ac_cv_path_GREP+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -z "$GREP"; then
4354 ac_path_GREP_found=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in grep ggrep; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4364 as_fn_executable_p "$ac_path_GREP" || continue
4365 # Check for GNU ac_path_GREP and select it if it is found.
4366 # Check for GNU $ac_path_GREP
4367 case `"$ac_path_GREP" --version 2>&1` in
4368 *GNU*)
4369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370 *)
4371 ac_count=0
4372 $as_echo_n 0123456789 >"conftest.in"
4373 while :
4374 do
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo 'GREP' >> "conftest.nl"
4379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_GREP="$ac_path_GREP"
4385 ac_path_GREP_max=$ac_count
4386 fi
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4389 done
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393 $ac_path_GREP_found && break 3
4394 done
4395 done
4396 done
4397 IFS=$as_save_IFS
4398 if test -z "$ac_cv_path_GREP"; then
4399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400 fi
4401 else
4402 ac_cv_path_GREP=$GREP
4403 fi
4404
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4407 $as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4412 $as_echo_n "checking for egrep... " >&6; }
4413 if ${ac_cv_path_EGREP+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417 then ac_cv_path_EGREP="$GREP -E"
4418 else
4419 if test -z "$EGREP"; then
4420 ac_path_EGREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in egrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4430 as_fn_executable_p "$ac_path_EGREP" || continue
4431 # Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433 case `"$ac_path_EGREP" --version 2>&1` in
4434 *GNU*)
4435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436 *)
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
4440 do
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'EGREP' >> "conftest.nl"
4445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447 as_fn_arith $ac_count + 1 && ac_count=$as_val
4448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_EGREP="$ac_path_EGREP"
4451 ac_path_EGREP_max=$ac_count
4452 fi
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 esac
4458
4459 $ac_path_EGREP_found && break 3
4460 done
4461 done
4462 done
4463 IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_EGREP"; then
4465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466 fi
4467 else
4468 ac_cv_path_EGREP=$EGREP
4469 fi
4470
4471 fi
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4474 $as_echo "$ac_cv_path_EGREP" >&6; }
4475 EGREP="$ac_cv_path_EGREP"
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4479 $as_echo_n "checking for ANSI C header files... " >&6; }
4480 if ${ac_cv_header_stdc+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <stdlib.h>
4486 #include <stdarg.h>
4487 #include <string.h>
4488 #include <float.h>
4489
4490 int
4491 main ()
4492 {
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_header_stdc=yes
4500 else
4501 ac_cv_header_stdc=no
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504
4505 if test $ac_cv_header_stdc = yes; then
4506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <string.h>
4510
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "memchr" >/dev/null 2>&1; then :
4514
4515 else
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f conftest*
4519
4520 fi
4521
4522 if test $ac_cv_header_stdc = yes; then
4523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <stdlib.h>
4527
4528 _ACEOF
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "free" >/dev/null 2>&1; then :
4531
4532 else
4533 ac_cv_header_stdc=no
4534 fi
4535 rm -f conftest*
4536
4537 fi
4538
4539 if test $ac_cv_header_stdc = yes; then
4540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4541 if test "$cross_compiling" = yes; then :
4542 :
4543 else
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ctype.h>
4547 #include <stdlib.h>
4548 #if ((' ' & 0x0FF) == 0x020)
4549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4551 #else
4552 # define ISLOWER(c) \
4553 (('a' <= (c) && (c) <= 'i') \
4554 || ('j' <= (c) && (c) <= 'r') \
4555 || ('s' <= (c) && (c) <= 'z'))
4556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4557 #endif
4558
4559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560 int
4561 main ()
4562 {
4563 int i;
4564 for (i = 0; i < 256; i++)
4565 if (XOR (islower (i), ISLOWER (i))
4566 || toupper (i) != TOUPPER (i))
4567 return 2;
4568 return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_run "$LINENO"; then :
4572
4573 else
4574 ac_cv_header_stdc=no
4575 fi
4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4577 conftest.$ac_objext conftest.beam conftest.$ac_ext
4578 fi
4579
4580 fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4583 $as_echo "$ac_cv_header_stdc" >&6; }
4584 if test $ac_cv_header_stdc = yes; then
4585
4586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4587
4588 fi
4589
4590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4592 inttypes.h stdint.h unistd.h
4593 do :
4594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4596 "
4597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4598 cat >>confdefs.h <<_ACEOF
4599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600 _ACEOF
4601
4602 fi
4603
4604 done
4605
4606
4607
4608
4609
4610
4611 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4612 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4613 CLANGCC="yes"
4614 else
4615 CLANGCC="no"
4616 fi
4617
4618 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4619 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4620 INTELCC="yes"
4621 else
4622 INTELCC="no"
4623 fi
4624
4625 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4626 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4627 SUNCC="yes"
4628 else
4629 SUNCC="no"
4630 fi
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 case $PKG_CONFIG in
4650 [\\/]* | ?:[\\/]*)
4651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4652 ;;
4653 *)
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 ;;
4670 esac
4671 fi
4672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4673 if test -n "$PKG_CONFIG"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4675 $as_echo "$PKG_CONFIG" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682 fi
4683 if test -z "$ac_cv_path_PKG_CONFIG"; then
4684 ac_pt_PKG_CONFIG=$PKG_CONFIG
4685 # Extract the first word of "pkg-config", so it can be a program name with args.
4686 set dummy pkg-config; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 case $ac_pt_PKG_CONFIG in
4693 [\\/]* | ?:[\\/]*)
4694 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4695 ;;
4696 *)
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 ;;
4713 esac
4714 fi
4715 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4716 if test -n "$ac_pt_PKG_CONFIG"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4718 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724 if test "x$ac_pt_PKG_CONFIG" = x; then
4725 PKG_CONFIG=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 PKG_CONFIG=$ac_pt_PKG_CONFIG
4734 fi
4735 else
4736 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4737 fi
4738
4739 fi
4740 if test -n "$PKG_CONFIG"; then
4741 _pkg_min_version=0.9.0
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4743 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4744 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746 $as_echo "yes" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 PKG_CONFIG=""
4751 fi
4752 fi
4753 # Make sure we can run config.sub.
4754 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4755 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4758 $as_echo_n "checking build system type... " >&6; }
4759 if ${ac_cv_build+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 ac_build_alias=$build_alias
4763 test "x$ac_build_alias" = x &&
4764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4765 test "x$ac_build_alias" = x &&
4766 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4767 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4769
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4772 $as_echo "$ac_cv_build" >&6; }
4773 case $ac_cv_build in
4774 *-*-*) ;;
4775 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4776 esac
4777 build=$ac_cv_build
4778 ac_save_IFS=$IFS; IFS='-'
4779 set x $ac_cv_build
4780 shift
4781 build_cpu=$1
4782 build_vendor=$2
4783 shift; shift
4784 # Remember, the first character of IFS is used to create $*,
4785 # except with old shells:
4786 build_os=$*
4787 IFS=$ac_save_IFS
4788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4792 $as_echo_n "checking host system type... " >&6; }
4793 if ${ac_cv_host+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test "x$host_alias" = x; then
4797 ac_cv_host=$ac_cv_build
4798 else
4799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4801 fi
4802
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4805 $as_echo "$ac_cv_host" >&6; }
4806 case $ac_cv_host in
4807 *-*-*) ;;
4808 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4809 esac
4810 host=$ac_cv_host
4811 ac_save_IFS=$IFS; IFS='-'
4812 set x $ac_cv_host
4813 shift
4814 host_cpu=$1
4815 host_vendor=$2
4816 shift; shift
4817 # Remember, the first character of IFS is used to create $*,
4818 # except with old shells:
4819 host_os=$*
4820 IFS=$ac_save_IFS
4821 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4825 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4826 if ${ac_cv_path_SED+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4830 for ac_i in 1 2 3 4 5 6 7; do
4831 ac_script="$ac_script$as_nl$ac_script"
4832 done
4833 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4834 { ac_script=; unset ac_script;}
4835 if test -z "$SED"; then
4836 ac_path_SED_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in sed gsed; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4846 as_fn_executable_p "$ac_path_SED" || continue
4847 # Check for GNU ac_path_SED and select it if it is found.
4848 # Check for GNU $ac_path_SED
4849 case `"$ac_path_SED" --version 2>&1` in
4850 *GNU*)
4851 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4852 *)
4853 ac_count=0
4854 $as_echo_n 0123456789 >"conftest.in"
4855 while :
4856 do
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo '' >> "conftest.nl"
4861 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_SED_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_SED="$ac_path_SED"
4867 ac_path_SED_max=$ac_count
4868 fi
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4871 done
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 esac
4874
4875 $ac_path_SED_found && break 3
4876 done
4877 done
4878 done
4879 IFS=$as_save_IFS
4880 if test -z "$ac_cv_path_SED"; then
4881 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4882 fi
4883 else
4884 ac_cv_path_SED=$SED
4885 fi
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4889 $as_echo "$ac_cv_path_SED" >&6; }
4890 SED="$ac_cv_path_SED"
4891 rm -f conftest.sed
4892
4893
4894
4895
4896
4897
4898 # Check whether --enable-selective-werror was given.
4899 if test "${enable_selective_werror+set}" = set; then :
4900 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4901 else
4902 SELECTIVE_WERROR=yes
4903 fi
4904
4905
4906
4907
4908
4909 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4910 if test "x$SUNCC" = "xyes"; then
4911 BASE_CFLAGS="-v"
4912 else
4913 BASE_CFLAGS=""
4914 fi
4915
4916 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 xorg_testset_save_CFLAGS="$CFLAGS"
4931
4932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4936 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
4945 else
4946 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
4951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4953 CFLAGS="$xorg_testset_save_CFLAGS"
4954 fi
4955
4956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959 fi
4960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 int i;
4969 _ACEOF
4970 if ac_fn_c_try_compile "$LINENO"; then :
4971 xorg_cv_cc_flag_unused_command_line_argument=yes
4972 else
4973 xorg_cv_cc_flag_unused_command_line_argument=no
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4980 CFLAGS="$xorg_testset_save_CFLAGS"
4981 fi
4982
4983 found="no"
4984
4985 if test $found = "no" ; then
4986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988 fi
4989
4990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992 fi
4993
4994 CFLAGS="$CFLAGS -Wall"
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4997 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4998 cacheid=xorg_cv_cc_flag__Wall
4999 if eval \${$cacheid+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 int i;
5005 int
5006 main ()
5007 {
5008
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 if ac_fn_c_try_link "$LINENO"; then :
5014 eval $cacheid=yes
5015 else
5016 eval $cacheid=no
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext conftest.$ac_ext
5020 fi
5021
5022
5023 CFLAGS="$xorg_testset_save_CFLAGS"
5024
5025 eval supported=\$$cacheid
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5027 $as_echo "$supported" >&6; }
5028 if test "$supported" = "yes" ; then
5029 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5030 found="yes"
5031 fi
5032 fi
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 xorg_testset_save_CFLAGS="$CFLAGS"
5049
5050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5054 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5063 else
5064 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072 fi
5073
5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077 fi
5078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 int i;
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 xorg_cv_cc_flag_unused_command_line_argument=yes
5090 else
5091 xorg_cv_cc_flag_unused_command_line_argument=no
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5098 CFLAGS="$xorg_testset_save_CFLAGS"
5099 fi
5100
5101 found="no"
5102
5103 if test $found = "no" ; then
5104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106 fi
5107
5108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110 fi
5111
5112 CFLAGS="$CFLAGS -Wpointer-arith"
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5115 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5116 cacheid=xorg_cv_cc_flag__Wpointer_arith
5117 if eval \${$cacheid+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 int i;
5123 int
5124 main ()
5125 {
5126
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 eval $cacheid=yes
5133 else
5134 eval $cacheid=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 fi
5139
5140
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142
5143 eval supported=\$$cacheid
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5145 $as_echo "$supported" >&6; }
5146 if test "$supported" = "yes" ; then
5147 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5148 found="yes"
5149 fi
5150 fi
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 xorg_testset_save_CFLAGS="$CFLAGS"
5167
5168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5172 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5181 else
5182 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190 fi
5191
5192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195 fi
5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 int i;
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 xorg_cv_cc_flag_unused_command_line_argument=yes
5208 else
5209 xorg_cv_cc_flag_unused_command_line_argument=no
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5216 CFLAGS="$xorg_testset_save_CFLAGS"
5217 fi
5218
5219 found="no"
5220
5221 if test $found = "no" ; then
5222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5224 fi
5225
5226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5228 fi
5229
5230 CFLAGS="$CFLAGS -Wmissing-declarations"
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5233 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5234 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5235 if eval \${$cacheid+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 int i;
5241 int
5242 main ()
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_link "$LINENO"; then :
5250 eval $cacheid=yes
5251 else
5252 eval $cacheid=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
5256 fi
5257
5258
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260
5261 eval supported=\$$cacheid
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5263 $as_echo "$supported" >&6; }
5264 if test "$supported" = "yes" ; then
5265 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5266 found="yes"
5267 fi
5268 fi
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 xorg_testset_save_CFLAGS="$CFLAGS"
5285
5286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5290 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5299 else
5300 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 int i;
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325 xorg_cv_cc_flag_unused_command_line_argument=yes
5326 else
5327 xorg_cv_cc_flag_unused_command_line_argument=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335 fi
5336
5337 found="no"
5338
5339 if test $found = "no" ; then
5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342 fi
5343
5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346 fi
5347
5348 CFLAGS="$CFLAGS -Wformat=2"
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5351 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5352 cacheid=xorg_cv_cc_flag__Wformat_2
5353 if eval \${$cacheid+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 int i;
5359 int
5360 main ()
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_link "$LINENO"; then :
5368 eval $cacheid=yes
5369 else
5370 eval $cacheid=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext \
5373 conftest$ac_exeext conftest.$ac_ext
5374 fi
5375
5376
5377 CFLAGS="$xorg_testset_save_CFLAGS"
5378
5379 eval supported=\$$cacheid
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5381 $as_echo "$supported" >&6; }
5382 if test "$supported" = "yes" ; then
5383 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5384 found="yes"
5385 fi
5386 fi
5387
5388 if test $found = "no" ; then
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 fi
5392
5393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5395 fi
5396
5397 CFLAGS="$CFLAGS -Wformat"
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5400 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5401 cacheid=xorg_cv_cc_flag__Wformat
5402 if eval \${$cacheid+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 int
5409 main ()
5410 {
5411
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 if ac_fn_c_try_link "$LINENO"; then :
5417 eval $cacheid=yes
5418 else
5419 eval $cacheid=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext \
5422 conftest$ac_exeext conftest.$ac_ext
5423 fi
5424
5425
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427
5428 eval supported=\$$cacheid
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5430 $as_echo "$supported" >&6; }
5431 if test "$supported" = "yes" ; then
5432 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5433 found="yes"
5434 fi
5435 fi
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 xorg_testset_save_CFLAGS="$CFLAGS"
5454
5455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5458 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5459 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5468 else
5469 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5474 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477 fi
5478
5479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482 fi
5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5485 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5486 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491 int i;
5492 _ACEOF
5493 if ac_fn_c_try_compile "$LINENO"; then :
5494 xorg_cv_cc_flag_unused_command_line_argument=yes
5495 else
5496 xorg_cv_cc_flag_unused_command_line_argument=no
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5501 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5503 CFLAGS="$xorg_testset_save_CFLAGS"
5504 fi
5505
5506 found="no"
5507
5508 if test $found = "no" ; then
5509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5511 fi
5512
5513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515 fi
5516
5517 CFLAGS="$CFLAGS -Wstrict-prototypes"
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5520 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5521 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5522 if eval \${$cacheid+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 int
5529 main ()
5530 {
5531
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_link "$LINENO"; then :
5537 eval $cacheid=yes
5538 else
5539 eval $cacheid=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543 fi
5544
5545
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547
5548 eval supported=\$$cacheid
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5550 $as_echo "$supported" >&6; }
5551 if test "$supported" = "yes" ; then
5552 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5553 found="yes"
5554 fi
5555 fi
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 xorg_testset_save_CFLAGS="$CFLAGS"
5572
5573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5577 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5586 else
5587 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5594 CFLAGS="$xorg_testset_save_CFLAGS"
5595 fi
5596
5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5600 fi
5601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 int i;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"; then :
5612 xorg_cv_cc_flag_unused_command_line_argument=yes
5613 else
5614 xorg_cv_cc_flag_unused_command_line_argument=no
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5621 CFLAGS="$xorg_testset_save_CFLAGS"
5622 fi
5623
5624 found="no"
5625
5626 if test $found = "no" ; then
5627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 fi
5630
5631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633 fi
5634
5635 CFLAGS="$CFLAGS -Wmissing-prototypes"
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5638 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5639 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5640 if eval \${$cacheid+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int i;
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_link "$LINENO"; then :
5655 eval $cacheid=yes
5656 else
5657 eval $cacheid=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661 fi
5662
5663
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665
5666 eval supported=\$$cacheid
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5668 $as_echo "$supported" >&6; }
5669 if test "$supported" = "yes" ; then
5670 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5671 found="yes"
5672 fi
5673 fi
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 xorg_testset_save_CFLAGS="$CFLAGS"
5690
5691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5695 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5704 else
5705 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5712 CFLAGS="$xorg_testset_save_CFLAGS"
5713 fi
5714
5715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5718 fi
5719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 int i;
5728 _ACEOF
5729 if ac_fn_c_try_compile "$LINENO"; then :
5730 xorg_cv_cc_flag_unused_command_line_argument=yes
5731 else
5732 xorg_cv_cc_flag_unused_command_line_argument=no
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5739 CFLAGS="$xorg_testset_save_CFLAGS"
5740 fi
5741
5742 found="no"
5743
5744 if test $found = "no" ; then
5745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747 fi
5748
5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751 fi
5752
5753 CFLAGS="$CFLAGS -Wnested-externs"
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5756 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5757 cacheid=xorg_cv_cc_flag__Wnested_externs
5758 if eval \${$cacheid+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"; then :
5773 eval $cacheid=yes
5774 else
5775 eval $cacheid=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 fi
5780
5781
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783
5784 eval supported=\$$cacheid
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5786 $as_echo "$supported" >&6; }
5787 if test "$supported" = "yes" ; then
5788 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5789 found="yes"
5790 fi
5791 fi
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 xorg_testset_save_CFLAGS="$CFLAGS"
5808
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5813 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5822 else
5823 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831 fi
5832
5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 fi
5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 int i;
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848 xorg_cv_cc_flag_unused_command_line_argument=yes
5849 else
5850 xorg_cv_cc_flag_unused_command_line_argument=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5857 CFLAGS="$xorg_testset_save_CFLAGS"
5858 fi
5859
5860 found="no"
5861
5862 if test $found = "no" ; then
5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865 fi
5866
5867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5869 fi
5870
5871 CFLAGS="$CFLAGS -Wbad-function-cast"
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5874 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5875 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5876 if eval \${$cacheid+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 int
5883 main ()
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"; then :
5891 eval $cacheid=yes
5892 else
5893 eval $cacheid=no
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897 fi
5898
5899
5900 CFLAGS="$xorg_testset_save_CFLAGS"
5901
5902 eval supported=\$$cacheid
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5904 $as_echo "$supported" >&6; }
5905 if test "$supported" = "yes" ; then
5906 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5907 found="yes"
5908 fi
5909 fi
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 xorg_testset_save_CFLAGS="$CFLAGS"
5926
5927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5931 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
5940 else
5941 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
5946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949 fi
5950
5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 fi
5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 int i;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 xorg_cv_cc_flag_unused_command_line_argument=yes
5967 else
5968 xorg_cv_cc_flag_unused_command_line_argument=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976 fi
5977
5978 found="no"
5979
5980 if test $found = "no" ; then
5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 fi
5988
5989 CFLAGS="$CFLAGS -Wold-style-definition"
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5992 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5993 cacheid=xorg_cv_cc_flag__Wold_style_definition
5994 if eval \${$cacheid+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 int
6001 main ()
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 eval $cacheid=yes
6010 else
6011 eval $cacheid=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 fi
6016
6017
6018 CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020 eval supported=\$$cacheid
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022 $as_echo "$supported" >&6; }
6023 if test "$supported" = "yes" ; then
6024 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6025 found="yes"
6026 fi
6027 fi
6028
6029 if test $found = "no" ; then
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 fi
6033
6034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036 fi
6037
6038 CFLAGS="$CFLAGS -fd"
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6041 $as_echo_n "checking if $CC supports -fd... " >&6; }
6042 cacheid=xorg_cv_cc_flag__fd
6043 if eval \${$cacheid+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 int i;
6049 int
6050 main ()
6051 {
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_link "$LINENO"; then :
6058 eval $cacheid=yes
6059 else
6060 eval $cacheid=no
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext \
6063 conftest$ac_exeext conftest.$ac_ext
6064 fi
6065
6066
6067 CFLAGS="$xorg_testset_save_CFLAGS"
6068
6069 eval supported=\$$cacheid
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6071 $as_echo "$supported" >&6; }
6072 if test "$supported" = "yes" ; then
6073 BASE_CFLAGS="$BASE_CFLAGS -fd"
6074 found="yes"
6075 fi
6076 fi
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 xorg_testset_save_CFLAGS="$CFLAGS"
6093
6094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6098 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6107 else
6108 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6115 CFLAGS="$xorg_testset_save_CFLAGS"
6116 fi
6117
6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6121 fi
6122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 int i;
6131 _ACEOF
6132 if ac_fn_c_try_compile "$LINENO"; then :
6133 xorg_cv_cc_flag_unused_command_line_argument=yes
6134 else
6135 xorg_cv_cc_flag_unused_command_line_argument=no
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 fi
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143 fi
6144
6145 found="no"
6146
6147 if test $found = "no" ; then
6148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150 fi
6151
6152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6154 fi
6155
6156 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6159 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6160 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6161 if eval \${$cacheid+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 int i;
6167 int
6168 main ()
6169 {
6170
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_link "$LINENO"; then :
6176 eval $cacheid=yes
6177 else
6178 eval $cacheid=no
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
6182 fi
6183
6184
6185 CFLAGS="$xorg_testset_save_CFLAGS"
6186
6187 eval supported=\$$cacheid
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6189 $as_echo "$supported" >&6; }
6190 if test "$supported" = "yes" ; then
6191 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6192 found="yes"
6193 fi
6194 fi
6195
6196
6197
6198
6199
6200 # This chunk adds additional warnings that could catch undesired effects.
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6229 else
6230 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6237 CFLAGS="$xorg_testset_save_CFLAGS"
6238 fi
6239
6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243 fi
6244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 int i;
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 xorg_cv_cc_flag_unused_command_line_argument=yes
6256 else
6257 xorg_cv_cc_flag_unused_command_line_argument=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6264 CFLAGS="$xorg_testset_save_CFLAGS"
6265 fi
6266
6267 found="no"
6268
6269 if test $found = "no" ; then
6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272 fi
6273
6274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6276 fi
6277
6278 CFLAGS="$CFLAGS -Wunused"
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6281 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6282 cacheid=xorg_cv_cc_flag__Wunused
6283 if eval \${$cacheid+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 int i;
6289 int
6290 main ()
6291 {
6292
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_c_try_link "$LINENO"; then :
6298 eval $cacheid=yes
6299 else
6300 eval $cacheid=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304 fi
6305
6306
6307 CFLAGS="$xorg_testset_save_CFLAGS"
6308
6309 eval supported=\$$cacheid
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6311 $as_echo "$supported" >&6; }
6312 if test "$supported" = "yes" ; then
6313 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6314 found="yes"
6315 fi
6316 fi
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 xorg_testset_save_CFLAGS="$CFLAGS"
6333
6334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6338 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6347 else
6348 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6355 CFLAGS="$xorg_testset_save_CFLAGS"
6356 fi
6357
6358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361 fi
6362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 int i;
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"; then :
6373 xorg_cv_cc_flag_unused_command_line_argument=yes
6374 else
6375 xorg_cv_cc_flag_unused_command_line_argument=no
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6382 CFLAGS="$xorg_testset_save_CFLAGS"
6383 fi
6384
6385 found="no"
6386
6387 if test $found = "no" ; then
6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 fi
6391
6392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394 fi
6395
6396 CFLAGS="$CFLAGS -Wuninitialized"
6397
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6399 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6400 cacheid=xorg_cv_cc_flag__Wuninitialized
6401 if eval \${$cacheid+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 int i;
6407 int
6408 main ()
6409 {
6410
6411 ;
6412 return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_c_try_link "$LINENO"; then :
6416 eval $cacheid=yes
6417 else
6418 eval $cacheid=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext \
6421 conftest$ac_exeext conftest.$ac_ext
6422 fi
6423
6424
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6426
6427 eval supported=\$$cacheid
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6429 $as_echo "$supported" >&6; }
6430 if test "$supported" = "yes" ; then
6431 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6432 found="yes"
6433 fi
6434 fi
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 xorg_testset_save_CFLAGS="$CFLAGS"
6451
6452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6456 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6465 else
6466 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474 fi
6475
6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6479 fi
6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 int i;
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 xorg_cv_cc_flag_unused_command_line_argument=yes
6492 else
6493 xorg_cv_cc_flag_unused_command_line_argument=no
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6500 CFLAGS="$xorg_testset_save_CFLAGS"
6501 fi
6502
6503 found="no"
6504
6505 if test $found = "no" ; then
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 fi
6509
6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 fi
6513
6514 CFLAGS="$CFLAGS -Wshadow"
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6517 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6518 cacheid=xorg_cv_cc_flag__Wshadow
6519 if eval \${$cacheid+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 int i;
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 eval $cacheid=yes
6535 else
6536 eval $cacheid=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 fi
6541
6542
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544
6545 eval supported=\$$cacheid
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6547 $as_echo "$supported" >&6; }
6548 if test "$supported" = "yes" ; then
6549 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6550 found="yes"
6551 fi
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 xorg_testset_save_CFLAGS="$CFLAGS"
6569
6570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6574 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6583 else
6584 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6591 CFLAGS="$xorg_testset_save_CFLAGS"
6592 fi
6593
6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597 fi
6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 int i;
6607 _ACEOF
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 xorg_cv_cc_flag_unused_command_line_argument=yes
6610 else
6611 xorg_cv_cc_flag_unused_command_line_argument=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6618 CFLAGS="$xorg_testset_save_CFLAGS"
6619 fi
6620
6621 found="no"
6622
6623 if test $found = "no" ; then
6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626 fi
6627
6628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6630 fi
6631
6632 CFLAGS="$CFLAGS -Wmissing-noreturn"
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6635 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6636 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6637 if eval \${$cacheid+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 int
6644 main ()
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 eval $cacheid=yes
6653 else
6654 eval $cacheid=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 fi
6659
6660
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662
6663 eval supported=\$$cacheid
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6665 $as_echo "$supported" >&6; }
6666 if test "$supported" = "yes" ; then
6667 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6668 found="yes"
6669 fi
6670 fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 xorg_testset_save_CFLAGS="$CFLAGS"
6687
6688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6692 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6701 else
6702 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6709 CFLAGS="$xorg_testset_save_CFLAGS"
6710 fi
6711
6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715 fi
6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 int i;
6725 _ACEOF
6726 if ac_fn_c_try_compile "$LINENO"; then :
6727 xorg_cv_cc_flag_unused_command_line_argument=yes
6728 else
6729 xorg_cv_cc_flag_unused_command_line_argument=no
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6736 CFLAGS="$xorg_testset_save_CFLAGS"
6737 fi
6738
6739 found="no"
6740
6741 if test $found = "no" ; then
6742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744 fi
6745
6746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748 fi
6749
6750 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6753 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6754 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6755 if eval \${$cacheid+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int i;
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 eval $cacheid=yes
6771 else
6772 eval $cacheid=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 fi
6777
6778
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780
6781 eval supported=\$$cacheid
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6783 $as_echo "$supported" >&6; }
6784 if test "$supported" = "yes" ; then
6785 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6786 found="yes"
6787 fi
6788 fi
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 xorg_testset_save_CFLAGS="$CFLAGS"
6805
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6810 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6819 else
6820 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833 fi
6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 int i;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 xorg_cv_cc_flag_unused_command_line_argument=yes
6846 else
6847 xorg_cv_cc_flag_unused_command_line_argument=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854 CFLAGS="$xorg_testset_save_CFLAGS"
6855 fi
6856
6857 found="no"
6858
6859 if test $found = "no" ; then
6860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862 fi
6863
6864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6866 fi
6867
6868 CFLAGS="$CFLAGS -Wredundant-decls"
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6871 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6872 cacheid=xorg_cv_cc_flag__Wredundant_decls
6873 if eval \${$cacheid+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 int i;
6879 int
6880 main ()
6881 {
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888 eval $cacheid=yes
6889 else
6890 eval $cacheid=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 fi
6895
6896
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6898
6899 eval supported=\$$cacheid
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901 $as_echo "$supported" >&6; }
6902 if test "$supported" = "yes" ; then
6903 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6904 found="yes"
6905 fi
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 xorg_testset_save_CFLAGS="$CFLAGS"
6923
6924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6928 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
6937 else
6938 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
6943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 fi
6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 int i;
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 xorg_cv_cc_flag_unused_command_line_argument=yes
6964 else
6965 xorg_cv_cc_flag_unused_command_line_argument=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973 fi
6974
6975 found="no"
6976
6977 if test $found = "no" ; then
6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980 fi
6981
6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984 fi
6985
6986 CFLAGS="$CFLAGS -Wlogical-op"
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6989 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6990 cacheid=xorg_cv_cc_flag__Wlogical_op
6991 if eval \${$cacheid+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int i;
6997 int
6998 main ()
6999 {
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 eval $cacheid=yes
7007 else
7008 eval $cacheid=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 fi
7013
7014
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7016
7017 eval supported=\$$cacheid
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020 if test "$supported" = "yes" ; then
7021 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7022 found="yes"
7023 fi
7024 fi
7025
7026
7027
7028 # These are currently disabled because they are noisy. They will be enabled
7029 # in the future once the codebase is sufficiently modernized to silence
7030 # them. For now, I don't want them to drown out the other warnings.
7031 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7032 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7033 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7034
7035 # Turn some warnings into errors, so we don't accidently get successful builds
7036 # when there are problems that should be fixed.
7037
7038 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052 xorg_testset_save_CFLAGS="$CFLAGS"
7053
7054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7058 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7067 else
7068 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7075 CFLAGS="$xorg_testset_save_CFLAGS"
7076 fi
7077
7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081 fi
7082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 int i;
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093 xorg_cv_cc_flag_unused_command_line_argument=yes
7094 else
7095 xorg_cv_cc_flag_unused_command_line_argument=no
7096 fi
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7102 CFLAGS="$xorg_testset_save_CFLAGS"
7103 fi
7104
7105 found="no"
7106
7107 if test $found = "no" ; then
7108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 fi
7111
7112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 fi
7115
7116 CFLAGS="$CFLAGS -Werror=implicit"
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7119 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7120 cacheid=xorg_cv_cc_flag__Werror_implicit
7121 if eval \${$cacheid+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 int i;
7127 int
7128 main ()
7129 {
7130
7131 ;
7132 return 0;
7133 }
7134 _ACEOF
7135 if ac_fn_c_try_link "$LINENO"; then :
7136 eval $cacheid=yes
7137 else
7138 eval $cacheid=no
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext \
7141 conftest$ac_exeext conftest.$ac_ext
7142 fi
7143
7144
7145 CFLAGS="$xorg_testset_save_CFLAGS"
7146
7147 eval supported=\$$cacheid
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7149 $as_echo "$supported" >&6; }
7150 if test "$supported" = "yes" ; then
7151 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7152 found="yes"
7153 fi
7154 fi
7155
7156 if test $found = "no" ; then
7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 fi
7160
7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163 fi
7164
7165 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7168 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7169 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7170 if eval \${$cacheid+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 int i;
7176 int
7177 main ()
7178 {
7179
7180 ;
7181 return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_link "$LINENO"; then :
7185 eval $cacheid=yes
7186 else
7187 eval $cacheid=no
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 fi
7192
7193
7194 CFLAGS="$xorg_testset_save_CFLAGS"
7195
7196 eval supported=\$$cacheid
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7198 $as_echo "$supported" >&6; }
7199 if test "$supported" = "yes" ; then
7200 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7201 found="yes"
7202 fi
7203 fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219 xorg_testset_save_CFLAGS="$CFLAGS"
7220
7221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7225 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7234 else
7235 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7242 CFLAGS="$xorg_testset_save_CFLAGS"
7243 fi
7244
7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 fi
7249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 int i;
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"; then :
7260 xorg_cv_cc_flag_unused_command_line_argument=yes
7261 else
7262 xorg_cv_cc_flag_unused_command_line_argument=no
7263 fi
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7269 CFLAGS="$xorg_testset_save_CFLAGS"
7270 fi
7271
7272 found="no"
7273
7274 if test $found = "no" ; then
7275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277 fi
7278
7279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7281 fi
7282
7283 CFLAGS="$CFLAGS -Werror=nonnull"
7284
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7286 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7287 cacheid=xorg_cv_cc_flag__Werror_nonnull
7288 if eval \${$cacheid+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 int i;
7294 int
7295 main ()
7296 {
7297
7298 ;
7299 return 0;
7300 }
7301 _ACEOF
7302 if ac_fn_c_try_link "$LINENO"; then :
7303 eval $cacheid=yes
7304 else
7305 eval $cacheid=no
7306 fi
7307 rm -f core conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7309 fi
7310
7311
7312 CFLAGS="$xorg_testset_save_CFLAGS"
7313
7314 eval supported=\$$cacheid
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7316 $as_echo "$supported" >&6; }
7317 if test "$supported" = "yes" ; then
7318 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7319 found="yes"
7320 fi
7321 fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337 xorg_testset_save_CFLAGS="$CFLAGS"
7338
7339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7343 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7352 else
7353 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7360 CFLAGS="$xorg_testset_save_CFLAGS"
7361 fi
7362
7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366 fi
7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 int i;
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 xorg_cv_cc_flag_unused_command_line_argument=yes
7379 else
7380 xorg_cv_cc_flag_unused_command_line_argument=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 fi
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7387 CFLAGS="$xorg_testset_save_CFLAGS"
7388 fi
7389
7390 found="no"
7391
7392 if test $found = "no" ; then
7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 fi
7396
7397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399 fi
7400
7401 CFLAGS="$CFLAGS -Werror=init-self"
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7404 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7405 cacheid=xorg_cv_cc_flag__Werror_init_self
7406 if eval \${$cacheid+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 int
7413 main ()
7414 {
7415
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"; then :
7421 eval $cacheid=yes
7422 else
7423 eval $cacheid=no
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
7427 fi
7428
7429
7430 CFLAGS="$xorg_testset_save_CFLAGS"
7431
7432 eval supported=\$$cacheid
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7434 $as_echo "$supported" >&6; }
7435 if test "$supported" = "yes" ; then
7436 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7437 found="yes"
7438 fi
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 xorg_testset_save_CFLAGS="$CFLAGS"
7456
7457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7461 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7470 else
7471 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7478 CFLAGS="$xorg_testset_save_CFLAGS"
7479 fi
7480
7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484 fi
7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 int i;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 xorg_cv_cc_flag_unused_command_line_argument=yes
7497 else
7498 xorg_cv_cc_flag_unused_command_line_argument=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7505 CFLAGS="$xorg_testset_save_CFLAGS"
7506 fi
7507
7508 found="no"
7509
7510 if test $found = "no" ; then
7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513 fi
7514
7515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 fi
7518
7519 CFLAGS="$CFLAGS -Werror=main"
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7522 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7523 cacheid=xorg_cv_cc_flag__Werror_main
7524 if eval \${$cacheid+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 int i;
7530 int
7531 main ()
7532 {
7533
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_link "$LINENO"; then :
7539 eval $cacheid=yes
7540 else
7541 eval $cacheid=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545 fi
7546
7547
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549
7550 eval supported=\$$cacheid
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7552 $as_echo "$supported" >&6; }
7553 if test "$supported" = "yes" ; then
7554 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7555 found="yes"
7556 fi
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 xorg_testset_save_CFLAGS="$CFLAGS"
7574
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7579 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7588 else
7589 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7596 CFLAGS="$xorg_testset_save_CFLAGS"
7597 fi
7598
7599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602 fi
7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 int i;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 xorg_cv_cc_flag_unused_command_line_argument=yes
7615 else
7616 xorg_cv_cc_flag_unused_command_line_argument=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7623 CFLAGS="$xorg_testset_save_CFLAGS"
7624 fi
7625
7626 found="no"
7627
7628 if test $found = "no" ; then
7629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7631 fi
7632
7633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635 fi
7636
7637 CFLAGS="$CFLAGS -Werror=missing-braces"
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7640 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7641 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7642 if eval \${$cacheid+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 int i;
7648 int
7649 main ()
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_link "$LINENO"; then :
7657 eval $cacheid=yes
7658 else
7659 eval $cacheid=no
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 fi
7664
7665
7666 CFLAGS="$xorg_testset_save_CFLAGS"
7667
7668 eval supported=\$$cacheid
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7670 $as_echo "$supported" >&6; }
7671 if test "$supported" = "yes" ; then
7672 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7673 found="yes"
7674 fi
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 xorg_testset_save_CFLAGS="$CFLAGS"
7692
7693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7697 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7706 else
7707 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715 fi
7716
7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720 fi
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 int i;
7730 _ACEOF
7731 if ac_fn_c_try_compile "$LINENO"; then :
7732 xorg_cv_cc_flag_unused_command_line_argument=yes
7733 else
7734 xorg_cv_cc_flag_unused_command_line_argument=no
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7741 CFLAGS="$xorg_testset_save_CFLAGS"
7742 fi
7743
7744 found="no"
7745
7746 if test $found = "no" ; then
7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749 fi
7750
7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 fi
7754
7755 CFLAGS="$CFLAGS -Werror=sequence-point"
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7758 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7759 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7760 if eval \${$cacheid+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 int i;
7766 int
7767 main ()
7768 {
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 eval $cacheid=yes
7776 else
7777 eval $cacheid=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 fi
7782
7783
7784 CFLAGS="$xorg_testset_save_CFLAGS"
7785
7786 eval supported=\$$cacheid
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7788 $as_echo "$supported" >&6; }
7789 if test "$supported" = "yes" ; then
7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7791 found="yes"
7792 fi
7793 fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 xorg_testset_save_CFLAGS="$CFLAGS"
7810
7811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7815 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7824 else
7825 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833 fi
7834
7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 fi
7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 int i;
7848 _ACEOF
7849 if ac_fn_c_try_compile "$LINENO"; then :
7850 xorg_cv_cc_flag_unused_command_line_argument=yes
7851 else
7852 xorg_cv_cc_flag_unused_command_line_argument=no
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7859 CFLAGS="$xorg_testset_save_CFLAGS"
7860 fi
7861
7862 found="no"
7863
7864 if test $found = "no" ; then
7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867 fi
7868
7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 fi
7872
7873 CFLAGS="$CFLAGS -Werror=return-type"
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7876 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7877 cacheid=xorg_cv_cc_flag__Werror_return_type
7878 if eval \${$cacheid+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 int
7885 main ()
7886 {
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"; then :
7893 eval $cacheid=yes
7894 else
7895 eval $cacheid=no
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 fi
7900
7901
7902 CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904 eval supported=\$$cacheid
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906 $as_echo "$supported" >&6; }
7907 if test "$supported" = "yes" ; then
7908 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7909 found="yes"
7910 fi
7911 fi
7912
7913 if test $found = "no" ; then
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 fi
7917
7918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920 fi
7921
7922 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7923
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7925 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7926 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7927 if eval \${$cacheid+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 int i;
7933 int
7934 main ()
7935 {
7936
7937 ;
7938 return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_link "$LINENO"; then :
7942 eval $cacheid=yes
7943 else
7944 eval $cacheid=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 fi
7949
7950
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952
7953 eval supported=\$$cacheid
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7955 $as_echo "$supported" >&6; }
7956 if test "$supported" = "yes" ; then
7957 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7958 found="yes"
7959 fi
7960 fi
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 xorg_testset_save_CFLAGS="$CFLAGS"
7977
7978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7981 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7982 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
7991 else
7992 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
7997 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005 fi
8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8008 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8009 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 int i;
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 xorg_cv_cc_flag_unused_command_line_argument=yes
8018 else
8019 xorg_cv_cc_flag_unused_command_line_argument=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8024 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8026 CFLAGS="$xorg_testset_save_CFLAGS"
8027 fi
8028
8029 found="no"
8030
8031 if test $found = "no" ; then
8032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034 fi
8035
8036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038 fi
8039
8040 CFLAGS="$CFLAGS -Werror=trigraphs"
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8043 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8044 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8045 if eval \${$cacheid+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 int i;
8051 int
8052 main ()
8053 {
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 eval $cacheid=yes
8061 else
8062 eval $cacheid=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 fi
8067
8068
8069 CFLAGS="$xorg_testset_save_CFLAGS"
8070
8071 eval supported=\$$cacheid
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8073 $as_echo "$supported" >&6; }
8074 if test "$supported" = "yes" ; then
8075 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8076 found="yes"
8077 fi
8078 fi
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 xorg_testset_save_CFLAGS="$CFLAGS"
8095
8096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8100 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8109 else
8110 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8117 CFLAGS="$xorg_testset_save_CFLAGS"
8118 fi
8119
8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123 fi
8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 xorg_cv_cc_flag_unused_command_line_argument=yes
8136 else
8137 xorg_cv_cc_flag_unused_command_line_argument=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8144 CFLAGS="$xorg_testset_save_CFLAGS"
8145 fi
8146
8147 found="no"
8148
8149 if test $found = "no" ; then
8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152 fi
8153
8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156 fi
8157
8158 CFLAGS="$CFLAGS -Werror=array-bounds"
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8161 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8162 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8163 if eval \${$cacheid+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 int
8170 main ()
8171 {
8172
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 eval $cacheid=yes
8179 else
8180 eval $cacheid=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 fi
8185
8186
8187 CFLAGS="$xorg_testset_save_CFLAGS"
8188
8189 eval supported=\$$cacheid
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8191 $as_echo "$supported" >&6; }
8192 if test "$supported" = "yes" ; then
8193 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8194 found="yes"
8195 fi
8196 fi
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 xorg_testset_save_CFLAGS="$CFLAGS"
8213
8214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8218 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8227 else
8228 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236 fi
8237
8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241 fi
8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 int i;
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 xorg_cv_cc_flag_unused_command_line_argument=yes
8254 else
8255 xorg_cv_cc_flag_unused_command_line_argument=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8262 CFLAGS="$xorg_testset_save_CFLAGS"
8263 fi
8264
8265 found="no"
8266
8267 if test $found = "no" ; then
8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 fi
8275
8276 CFLAGS="$CFLAGS -Werror=write-strings"
8277
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8279 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8280 cacheid=xorg_cv_cc_flag__Werror_write_strings
8281 if eval \${$cacheid+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 int
8288 main ()
8289 {
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8296 eval $cacheid=yes
8297 else
8298 eval $cacheid=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 fi
8303
8304
8305 CFLAGS="$xorg_testset_save_CFLAGS"
8306
8307 eval supported=\$$cacheid
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8309 $as_echo "$supported" >&6; }
8310 if test "$supported" = "yes" ; then
8311 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8312 found="yes"
8313 fi
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 xorg_testset_save_CFLAGS="$CFLAGS"
8331
8332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8336 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8345 else
8346 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8353 CFLAGS="$xorg_testset_save_CFLAGS"
8354 fi
8355
8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359 fi
8360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 xorg_cv_cc_flag_unused_command_line_argument=yes
8372 else
8373 xorg_cv_cc_flag_unused_command_line_argument=no
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8380 CFLAGS="$xorg_testset_save_CFLAGS"
8381 fi
8382
8383 found="no"
8384
8385 if test $found = "no" ; then
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 fi
8389
8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8392 fi
8393
8394 CFLAGS="$CFLAGS -Werror=address"
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8397 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8398 cacheid=xorg_cv_cc_flag__Werror_address
8399 if eval \${$cacheid+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 int i;
8405 int
8406 main ()
8407 {
8408
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"; then :
8414 eval $cacheid=yes
8415 else
8416 eval $cacheid=no
8417 fi
8418 rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 fi
8421
8422
8423 CFLAGS="$xorg_testset_save_CFLAGS"
8424
8425 eval supported=\$$cacheid
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8427 $as_echo "$supported" >&6; }
8428 if test "$supported" = "yes" ; then
8429 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8430 found="yes"
8431 fi
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448 xorg_testset_save_CFLAGS="$CFLAGS"
8449
8450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8454 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8463 else
8464 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8471 CFLAGS="$xorg_testset_save_CFLAGS"
8472 fi
8473
8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 fi
8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 int i;
8487 _ACEOF
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 xorg_cv_cc_flag_unused_command_line_argument=yes
8490 else
8491 xorg_cv_cc_flag_unused_command_line_argument=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 found="no"
8502
8503 if test $found = "no" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 fi
8511
8512 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8513
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8515 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8516 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8517 if eval \${$cacheid+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 int i;
8523 int
8524 main ()
8525 {
8526
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"; then :
8532 eval $cacheid=yes
8533 else
8534 eval $cacheid=no
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 fi
8539
8540
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8542
8543 eval supported=\$$cacheid
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8545 $as_echo "$supported" >&6; }
8546 if test "$supported" = "yes" ; then
8547 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8548 found="yes"
8549 fi
8550 fi
8551
8552 if test $found = "no" ; then
8553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8555 fi
8556
8557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8559 fi
8560
8561 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8564 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8565 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8566 if eval \${$cacheid+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 int
8573 main ()
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"; then :
8581 eval $cacheid=yes
8582 else
8583 eval $cacheid=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 fi
8588
8589
8590 CFLAGS="$xorg_testset_save_CFLAGS"
8591
8592 eval supported=\$$cacheid
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8594 $as_echo "$supported" >&6; }
8595 if test "$supported" = "yes" ; then
8596 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8597 found="yes"
8598 fi
8599 fi
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 xorg_testset_save_CFLAGS="$CFLAGS"
8616
8617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 int i;
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629 xorg_cv_cc_flag_unknown_warning_option=yes
8630 else
8631 xorg_cv_cc_flag_unknown_warning_option=no
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8638 CFLAGS="$xorg_testset_save_CFLAGS"
8639 fi
8640
8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 int i;
8654 _ACEOF
8655 if ac_fn_c_try_compile "$LINENO"; then :
8656 xorg_cv_cc_flag_unused_command_line_argument=yes
8657 else
8658 xorg_cv_cc_flag_unused_command_line_argument=no
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8665 CFLAGS="$xorg_testset_save_CFLAGS"
8666 fi
8667
8668 found="no"
8669
8670 if test $found = "no" ; then
8671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8673 fi
8674
8675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8677 fi
8678
8679 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8682 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8683 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8684 if eval \${$cacheid+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 int
8691 main ()
8692 {
8693
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 eval $cacheid=yes
8700 else
8701 eval $cacheid=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 fi
8706
8707
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8709
8710 eval supported=\$$cacheid
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8712 $as_echo "$supported" >&6; }
8713 if test "$supported" = "yes" ; then
8714 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8715 found="yes"
8716 fi
8717 fi
8718
8719 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8720 else
8721 { $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
8722 $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;}
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 xorg_testset_save_CFLAGS="$CFLAGS"
8737
8738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8741 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8742 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8751 else
8752 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8757 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8759 CFLAGS="$xorg_testset_save_CFLAGS"
8760 fi
8761
8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8765 fi
8766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8768 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8769 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 int i;
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"; then :
8777 xorg_cv_cc_flag_unused_command_line_argument=yes
8778 else
8779 xorg_cv_cc_flag_unused_command_line_argument=no
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8784 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8786 CFLAGS="$xorg_testset_save_CFLAGS"
8787 fi
8788
8789 found="no"
8790
8791 if test $found = "no" ; then
8792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8794 fi
8795
8796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8798 fi
8799
8800 CFLAGS="$CFLAGS -Wimplicit"
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8803 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8804 cacheid=xorg_cv_cc_flag__Wimplicit
8805 if eval \${$cacheid+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 int i;
8811 int
8812 main ()
8813 {
8814
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8820 eval $cacheid=yes
8821 else
8822 eval $cacheid=no
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 fi
8827
8828
8829 CFLAGS="$xorg_testset_save_CFLAGS"
8830
8831 eval supported=\$$cacheid
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8833 $as_echo "$supported" >&6; }
8834 if test "$supported" = "yes" ; then
8835 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8836 found="yes"
8837 fi
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854 xorg_testset_save_CFLAGS="$CFLAGS"
8855
8856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8859 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8860 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8869 else
8870 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8875 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8877 CFLAGS="$xorg_testset_save_CFLAGS"
8878 fi
8879
8880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883 fi
8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8886 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8887 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 int i;
8893 _ACEOF
8894 if ac_fn_c_try_compile "$LINENO"; then :
8895 xorg_cv_cc_flag_unused_command_line_argument=yes
8896 else
8897 xorg_cv_cc_flag_unused_command_line_argument=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8902 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8904 CFLAGS="$xorg_testset_save_CFLAGS"
8905 fi
8906
8907 found="no"
8908
8909 if test $found = "no" ; then
8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912 fi
8913
8914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8916 fi
8917
8918 CFLAGS="$CFLAGS -Wnonnull"
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8921 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8922 cacheid=xorg_cv_cc_flag__Wnonnull
8923 if eval \${$cacheid+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 int i;
8929 int
8930 main ()
8931 {
8932
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 if ac_fn_c_try_link "$LINENO"; then :
8938 eval $cacheid=yes
8939 else
8940 eval $cacheid=no
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 fi
8945
8946
8947 CFLAGS="$xorg_testset_save_CFLAGS"
8948
8949 eval supported=\$$cacheid
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8951 $as_echo "$supported" >&6; }
8952 if test "$supported" = "yes" ; then
8953 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8954 found="yes"
8955 fi
8956 fi
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 xorg_testset_save_CFLAGS="$CFLAGS"
8973
8974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8978 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
8987 else
8988 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
8993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8995 CFLAGS="$xorg_testset_save_CFLAGS"
8996 fi
8997
8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001 fi
9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 int i;
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013 xorg_cv_cc_flag_unused_command_line_argument=yes
9014 else
9015 xorg_cv_cc_flag_unused_command_line_argument=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9022 CFLAGS="$xorg_testset_save_CFLAGS"
9023 fi
9024
9025 found="no"
9026
9027 if test $found = "no" ; then
9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 fi
9031
9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 fi
9035
9036 CFLAGS="$CFLAGS -Winit-self"
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9039 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9040 cacheid=xorg_cv_cc_flag__Winit_self
9041 if eval \${$cacheid+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 int
9048 main ()
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"; then :
9056 eval $cacheid=yes
9057 else
9058 eval $cacheid=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 fi
9063
9064
9065 CFLAGS="$xorg_testset_save_CFLAGS"
9066
9067 eval supported=\$$cacheid
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9069 $as_echo "$supported" >&6; }
9070 if test "$supported" = "yes" ; then
9071 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9072 found="yes"
9073 fi
9074 fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9105 else
9106 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9113 CFLAGS="$xorg_testset_save_CFLAGS"
9114 fi
9115
9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119 fi
9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 int i;
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131 xorg_cv_cc_flag_unused_command_line_argument=yes
9132 else
9133 xorg_cv_cc_flag_unused_command_line_argument=no
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140 CFLAGS="$xorg_testset_save_CFLAGS"
9141 fi
9142
9143 found="no"
9144
9145 if test $found = "no" ; then
9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 fi
9149
9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 fi
9153
9154 CFLAGS="$CFLAGS -Wmain"
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9157 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9158 cacheid=xorg_cv_cc_flag__Wmain
9159 if eval \${$cacheid+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 int i;
9165 int
9166 main ()
9167 {
9168
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 eval $cacheid=yes
9175 else
9176 eval $cacheid=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 fi
9181
9182
9183 CFLAGS="$xorg_testset_save_CFLAGS"
9184
9185 eval supported=\$$cacheid
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9187 $as_echo "$supported" >&6; }
9188 if test "$supported" = "yes" ; then
9189 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9190 found="yes"
9191 fi
9192 fi
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 xorg_testset_save_CFLAGS="$CFLAGS"
9209
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9214 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9223 else
9224 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9231 CFLAGS="$xorg_testset_save_CFLAGS"
9232 fi
9233
9234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9237 fi
9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 int i;
9247 _ACEOF
9248 if ac_fn_c_try_compile "$LINENO"; then :
9249 xorg_cv_cc_flag_unused_command_line_argument=yes
9250 else
9251 xorg_cv_cc_flag_unused_command_line_argument=no
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9258 CFLAGS="$xorg_testset_save_CFLAGS"
9259 fi
9260
9261 found="no"
9262
9263 if test $found = "no" ; then
9264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9266 fi
9267
9268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9270 fi
9271
9272 CFLAGS="$CFLAGS -Wmissing-braces"
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9275 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9276 cacheid=xorg_cv_cc_flag__Wmissing_braces
9277 if eval \${$cacheid+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int i;
9283 int
9284 main ()
9285 {
9286
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 eval $cacheid=yes
9293 else
9294 eval $cacheid=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 fi
9299
9300
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302
9303 eval supported=\$$cacheid
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305 $as_echo "$supported" >&6; }
9306 if test "$supported" = "yes" ; then
9307 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9308 found="yes"
9309 fi
9310 fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326 xorg_testset_save_CFLAGS="$CFLAGS"
9327
9328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9341 else
9342 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9349 CFLAGS="$xorg_testset_save_CFLAGS"
9350 fi
9351
9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 fi
9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 int i;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"; then :
9367 xorg_cv_cc_flag_unused_command_line_argument=yes
9368 else
9369 xorg_cv_cc_flag_unused_command_line_argument=no
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9376 CFLAGS="$xorg_testset_save_CFLAGS"
9377 fi
9378
9379 found="no"
9380
9381 if test $found = "no" ; then
9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384 fi
9385
9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9388 fi
9389
9390 CFLAGS="$CFLAGS -Wsequence-point"
9391
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9393 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9394 cacheid=xorg_cv_cc_flag__Wsequence_point
9395 if eval \${$cacheid+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 int i;
9401 int
9402 main ()
9403 {
9404
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 if ac_fn_c_try_link "$LINENO"; then :
9410 eval $cacheid=yes
9411 else
9412 eval $cacheid=no
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi
9417
9418
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420
9421 eval supported=\$$cacheid
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423 $as_echo "$supported" >&6; }
9424 if test "$supported" = "yes" ; then
9425 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9426 found="yes"
9427 fi
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9459 else
9460 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9467 CFLAGS="$xorg_testset_save_CFLAGS"
9468 fi
9469
9470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473 fi
9474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 int i;
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 xorg_cv_cc_flag_unused_command_line_argument=yes
9486 else
9487 xorg_cv_cc_flag_unused_command_line_argument=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495 fi
9496
9497 found="no"
9498
9499 if test $found = "no" ; then
9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 fi
9503
9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506 fi
9507
9508 CFLAGS="$CFLAGS -Wreturn-type"
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9511 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9512 cacheid=xorg_cv_cc_flag__Wreturn_type
9513 if eval \${$cacheid+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main ()
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 eval $cacheid=yes
9529 else
9530 eval $cacheid=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 fi
9535
9536
9537 CFLAGS="$xorg_testset_save_CFLAGS"
9538
9539 eval supported=\$$cacheid
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9541 $as_echo "$supported" >&6; }
9542 if test "$supported" = "yes" ; then
9543 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9544 found="yes"
9545 fi
9546 fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562 xorg_testset_save_CFLAGS="$CFLAGS"
9563
9564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9568 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9577 else
9578 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586 fi
9587
9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591 fi
9592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int i;
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"; then :
9603 xorg_cv_cc_flag_unused_command_line_argument=yes
9604 else
9605 xorg_cv_cc_flag_unused_command_line_argument=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9612 CFLAGS="$xorg_testset_save_CFLAGS"
9613 fi
9614
9615 found="no"
9616
9617 if test $found = "no" ; then
9618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620 fi
9621
9622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 fi
9625
9626 CFLAGS="$CFLAGS -Wtrigraphs"
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9629 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9630 cacheid=xorg_cv_cc_flag__Wtrigraphs
9631 if eval \${$cacheid+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 int i;
9637 int
9638 main ()
9639 {
9640
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646 eval $cacheid=yes
9647 else
9648 eval $cacheid=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652 fi
9653
9654
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656
9657 eval supported=\$$cacheid
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9659 $as_echo "$supported" >&6; }
9660 if test "$supported" = "yes" ; then
9661 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9662 found="yes"
9663 fi
9664 fi
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680 xorg_testset_save_CFLAGS="$CFLAGS"
9681
9682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9686 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9695 else
9696 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9703 CFLAGS="$xorg_testset_save_CFLAGS"
9704 fi
9705
9706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709 fi
9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 int i;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"; then :
9721 xorg_cv_cc_flag_unused_command_line_argument=yes
9722 else
9723 xorg_cv_cc_flag_unused_command_line_argument=no
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9730 CFLAGS="$xorg_testset_save_CFLAGS"
9731 fi
9732
9733 found="no"
9734
9735 if test $found = "no" ; then
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 fi
9739
9740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9742 fi
9743
9744 CFLAGS="$CFLAGS -Warray-bounds"
9745
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9747 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9748 cacheid=xorg_cv_cc_flag__Warray_bounds
9749 if eval \${$cacheid+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 int i;
9755 int
9756 main ()
9757 {
9758
9759 ;
9760 return 0;
9761 }
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"; then :
9764 eval $cacheid=yes
9765 else
9766 eval $cacheid=no
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771
9772
9773 CFLAGS="$xorg_testset_save_CFLAGS"
9774
9775 eval supported=\$$cacheid
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9777 $as_echo "$supported" >&6; }
9778 if test "$supported" = "yes" ; then
9779 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9780 found="yes"
9781 fi
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798 xorg_testset_save_CFLAGS="$CFLAGS"
9799
9800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9804 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9813 else
9814 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9821 CFLAGS="$xorg_testset_save_CFLAGS"
9822 fi
9823
9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 fi
9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 int i;
9837 _ACEOF
9838 if ac_fn_c_try_compile "$LINENO"; then :
9839 xorg_cv_cc_flag_unused_command_line_argument=yes
9840 else
9841 xorg_cv_cc_flag_unused_command_line_argument=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9848 CFLAGS="$xorg_testset_save_CFLAGS"
9849 fi
9850
9851 found="no"
9852
9853 if test $found = "no" ; then
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 fi
9857
9858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 fi
9861
9862 CFLAGS="$CFLAGS -Wwrite-strings"
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9865 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9866 cacheid=xorg_cv_cc_flag__Wwrite_strings
9867 if eval \${$cacheid+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 int i;
9873 int
9874 main ()
9875 {
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_link "$LINENO"; then :
9882 eval $cacheid=yes
9883 else
9884 eval $cacheid=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 fi
9889
9890
9891 CFLAGS="$xorg_testset_save_CFLAGS"
9892
9893 eval supported=\$$cacheid
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9895 $as_echo "$supported" >&6; }
9896 if test "$supported" = "yes" ; then
9897 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9898 found="yes"
9899 fi
9900 fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 xorg_testset_save_CFLAGS="$CFLAGS"
9917
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9922 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
9931 else
9932 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940 fi
9941
9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945 fi
9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 int i;
9955 _ACEOF
9956 if ac_fn_c_try_compile "$LINENO"; then :
9957 xorg_cv_cc_flag_unused_command_line_argument=yes
9958 else
9959 xorg_cv_cc_flag_unused_command_line_argument=no
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9966 CFLAGS="$xorg_testset_save_CFLAGS"
9967 fi
9968
9969 found="no"
9970
9971 if test $found = "no" ; then
9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9974 fi
9975
9976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 fi
9979
9980 CFLAGS="$CFLAGS -Waddress"
9981
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9983 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9984 cacheid=xorg_cv_cc_flag__Waddress
9985 if eval \${$cacheid+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 int
9992 main ()
9993 {
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_link "$LINENO"; then :
10000 eval $cacheid=yes
10001 else
10002 eval $cacheid=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 fi
10007
10008
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010
10011 eval supported=\$$cacheid
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10013 $as_echo "$supported" >&6; }
10014 if test "$supported" = "yes" ; then
10015 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10016 found="yes"
10017 fi
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 xorg_testset_save_CFLAGS="$CFLAGS"
10035
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10040 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10049 else
10050 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10057 CFLAGS="$xorg_testset_save_CFLAGS"
10058 fi
10059
10060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063 fi
10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 int i;
10073 _ACEOF
10074 if ac_fn_c_try_compile "$LINENO"; then :
10075 xorg_cv_cc_flag_unused_command_line_argument=yes
10076 else
10077 xorg_cv_cc_flag_unused_command_line_argument=no
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085 fi
10086
10087 found="no"
10088
10089 if test $found = "no" ; then
10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10092 fi
10093
10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096 fi
10097
10098 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10101 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10102 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10103 if eval \${$cacheid+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int i;
10109 int
10110 main ()
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118 eval $cacheid=yes
10119 else
10120 eval $cacheid=no
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 fi
10125
10126
10127 CFLAGS="$xorg_testset_save_CFLAGS"
10128
10129 eval supported=\$$cacheid
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10131 $as_echo "$supported" >&6; }
10132 if test "$supported" = "yes" ; then
10133 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10134 found="yes"
10135 fi
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152 xorg_testset_save_CFLAGS="$CFLAGS"
10153
10154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10158 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10167 else
10168 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176 fi
10177
10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181 fi
10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 int i;
10191 _ACEOF
10192 if ac_fn_c_try_compile "$LINENO"; then :
10193 xorg_cv_cc_flag_unused_command_line_argument=yes
10194 else
10195 xorg_cv_cc_flag_unused_command_line_argument=no
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10202 CFLAGS="$xorg_testset_save_CFLAGS"
10203 fi
10204
10205 found="no"
10206
10207 if test $found = "no" ; then
10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10210 fi
10211
10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214 fi
10215
10216 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10219 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10220 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10221 if eval \${$cacheid+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 int i;
10227 int
10228 main ()
10229 {
10230
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 eval $cacheid=yes
10237 else
10238 eval $cacheid=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 fi
10243
10244
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246
10247 eval supported=\$$cacheid
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10249 $as_echo "$supported" >&6; }
10250 if test "$supported" = "yes" ; then
10251 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10252 found="yes"
10253 fi
10254 fi
10255
10256
10257 fi
10258
10259
10260
10261
10262
10263
10264
10265 CWARNFLAGS="$BASE_CFLAGS"
10266 if test "x$GCC" = xyes ; then
10267 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10268 fi
10269
10270
10271
10272
10273
10274
10275
10276
10277 # Check whether --enable-strict-compilation was given.
10278 if test "${enable_strict_compilation+set}" = set; then :
10279 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10280 else
10281 STRICT_COMPILE=no
10282 fi
10283
10284
10285
10286
10287
10288
10289 STRICT_CFLAGS=""
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 xorg_testset_save_CFLAGS="$CFLAGS"
10304
10305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10309 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10318 else
10319 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10326 CFLAGS="$xorg_testset_save_CFLAGS"
10327 fi
10328
10329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332 fi
10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10341 int i;
10342 _ACEOF
10343 if ac_fn_c_try_compile "$LINENO"; then :
10344 xorg_cv_cc_flag_unused_command_line_argument=yes
10345 else
10346 xorg_cv_cc_flag_unused_command_line_argument=no
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10353 CFLAGS="$xorg_testset_save_CFLAGS"
10354 fi
10355
10356 found="no"
10357
10358 if test $found = "no" ; then
10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10361 fi
10362
10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10365 fi
10366
10367 CFLAGS="$CFLAGS -pedantic"
10368
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10370 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10371 cacheid=xorg_cv_cc_flag__pedantic
10372 if eval \${$cacheid+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 int i;
10378 int
10379 main ()
10380 {
10381
10382 ;
10383 return 0;
10384 }
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 eval $cacheid=yes
10388 else
10389 eval $cacheid=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 fi
10394
10395
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397
10398 eval supported=\$$cacheid
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10400 $as_echo "$supported" >&6; }
10401 if test "$supported" = "yes" ; then
10402 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10403 found="yes"
10404 fi
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 xorg_testset_save_CFLAGS="$CFLAGS"
10422
10423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10427 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10436 else
10437 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10444 CFLAGS="$xorg_testset_save_CFLAGS"
10445 fi
10446
10447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10450 fi
10451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10459 int i;
10460 _ACEOF
10461 if ac_fn_c_try_compile "$LINENO"; then :
10462 xorg_cv_cc_flag_unused_command_line_argument=yes
10463 else
10464 xorg_cv_cc_flag_unused_command_line_argument=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10471 CFLAGS="$xorg_testset_save_CFLAGS"
10472 fi
10473
10474 found="no"
10475
10476 if test $found = "no" ; then
10477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479 fi
10480
10481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10483 fi
10484
10485 CFLAGS="$CFLAGS -Werror"
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10488 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10489 cacheid=xorg_cv_cc_flag__Werror
10490 if eval \${$cacheid+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 int i;
10496 int
10497 main ()
10498 {
10499
10500 ;
10501 return 0;
10502 }
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 eval $cacheid=yes
10506 else
10507 eval $cacheid=no
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 fi
10512
10513
10514 CFLAGS="$xorg_testset_save_CFLAGS"
10515
10516 eval supported=\$$cacheid
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10518 $as_echo "$supported" >&6; }
10519 if test "$supported" = "yes" ; then
10520 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10521 found="yes"
10522 fi
10523 fi
10524
10525 if test $found = "no" ; then
10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528 fi
10529
10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10532 fi
10533
10534 CFLAGS="$CFLAGS -errwarn"
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10537 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10538 cacheid=xorg_cv_cc_flag__errwarn
10539 if eval \${$cacheid+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 int i;
10545 int
10546 main ()
10547 {
10548
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 eval $cacheid=yes
10555 else
10556 eval $cacheid=no
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 fi
10561
10562
10563 CFLAGS="$xorg_testset_save_CFLAGS"
10564
10565 eval supported=\$$cacheid
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10567 $as_echo "$supported" >&6; }
10568 if test "$supported" = "yes" ; then
10569 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10570 found="yes"
10571 fi
10572 fi
10573
10574
10575
10576 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10577 # activate it with -Werror, so we add it here explicitly.
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591 xorg_testset_save_CFLAGS="$CFLAGS"
10592
10593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10597 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
10606 else
10607 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
10612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10614 CFLAGS="$xorg_testset_save_CFLAGS"
10615 fi
10616
10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620 fi
10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 int i;
10630 _ACEOF
10631 if ac_fn_c_try_compile "$LINENO"; then :
10632 xorg_cv_cc_flag_unused_command_line_argument=yes
10633 else
10634 xorg_cv_cc_flag_unused_command_line_argument=no
10635 fi
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10641 CFLAGS="$xorg_testset_save_CFLAGS"
10642 fi
10643
10644 found="no"
10645
10646 if test $found = "no" ; then
10647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10649 fi
10650
10651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10653 fi
10654
10655 CFLAGS="$CFLAGS -Werror=attributes"
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10658 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10659 cacheid=xorg_cv_cc_flag__Werror_attributes
10660 if eval \${$cacheid+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 int i;
10666 int
10667 main ()
10668 {
10669
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675 eval $cacheid=yes
10676 else
10677 eval $cacheid=no
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 fi
10682
10683
10684 CFLAGS="$xorg_testset_save_CFLAGS"
10685
10686 eval supported=\$$cacheid
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10688 $as_echo "$supported" >&6; }
10689 if test "$supported" = "yes" ; then
10690 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10691 found="yes"
10692 fi
10693 fi
10694
10695
10696
10697 if test "x$STRICT_COMPILE" = "xyes"; then
10698 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10699 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10700 fi
10701
10702
10703
10704
10705
10706
10707 cat >>confdefs.h <<_ACEOF
10708 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10709 _ACEOF
10710
10711 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10712 if test "x$PVM" = "x"; then
10713 PVM="0"
10714 fi
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define PACKAGE_VERSION_MINOR $PVM
10718 _ACEOF
10719
10720 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10721 if test "x$PVP" = "x"; then
10722 PVP="0"
10723 fi
10724
10725 cat >>confdefs.h <<_ACEOF
10726 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10727 _ACEOF
10728
10729
10730
10731 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10732 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10733 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10734 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10735
10736
10737
10738
10739 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10740 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10741 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10742 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10743 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10744
10745
10746
10747
10748
10749
10750 if test x$APP_MAN_SUFFIX = x ; then
10751 APP_MAN_SUFFIX=1
10752 fi
10753 if test x$APP_MAN_DIR = x ; then
10754 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10755 fi
10756
10757 if test x$LIB_MAN_SUFFIX = x ; then
10758 LIB_MAN_SUFFIX=3
10759 fi
10760 if test x$LIB_MAN_DIR = x ; then
10761 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10762 fi
10763
10764 if test x$FILE_MAN_SUFFIX = x ; then
10765 case $host_os in
10766 solaris*) FILE_MAN_SUFFIX=4 ;;
10767 *) FILE_MAN_SUFFIX=5 ;;
10768 esac
10769 fi
10770 if test x$FILE_MAN_DIR = x ; then
10771 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10772 fi
10773
10774 if test x$MISC_MAN_SUFFIX = x ; then
10775 case $host_os in
10776 solaris*) MISC_MAN_SUFFIX=5 ;;
10777 *) MISC_MAN_SUFFIX=7 ;;
10778 esac
10779 fi
10780 if test x$MISC_MAN_DIR = x ; then
10781 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10782 fi
10783
10784 if test x$DRIVER_MAN_SUFFIX = x ; then
10785 case $host_os in
10786 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10787 *) DRIVER_MAN_SUFFIX=4 ;;
10788 esac
10789 fi
10790 if test x$DRIVER_MAN_DIR = x ; then
10791 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10792 fi
10793
10794 if test x$ADMIN_MAN_SUFFIX = x ; then
10795 case $host_os in
10796 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10797 *) ADMIN_MAN_SUFFIX=8 ;;
10798 esac
10799 fi
10800 if test x$ADMIN_MAN_DIR = x ; then
10801 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10802 fi
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818 XORG_MAN_PAGE="X Version 11"
10819
10820 MAN_SUBSTS="\
10821 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10822 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10823 -e 's|__xservername__|Xorg|g' \
10824 -e 's|__xconfigfile__|xorg.conf|g' \
10825 -e 's|__projectroot__|\$(prefix)|g' \
10826 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10827 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10828 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10829 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10830 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10831 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10832 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10833
10834
10835
10836 # Check whether --enable-silent-rules was given.
10837 if test "${enable_silent_rules+set}" = set; then :
10838 enableval=$enable_silent_rules;
10839 fi
10840
10841 case $enable_silent_rules in # (((
10842 yes) AM_DEFAULT_VERBOSITY=0;;
10843 no) AM_DEFAULT_VERBOSITY=1;;
10844 *) AM_DEFAULT_VERBOSITY=0;;
10845 esac
10846 am_make=${MAKE-make}
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10848 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10849 if ${am_cv_make_support_nested_variables+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 if $as_echo 'TRUE=$(BAR$(V))
10853 BAR0=false
10854 BAR1=true
10855 V=1
10856 am__doit:
10857 @$(TRUE)
10858 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10859 am_cv_make_support_nested_variables=yes
10860 else
10861 am_cv_make_support_nested_variables=no
10862 fi
10863 fi
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10865 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10866 if test $am_cv_make_support_nested_variables = yes; then
10867 AM_V='$(V)'
10868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10869 else
10870 AM_V=$AM_DEFAULT_VERBOSITY
10871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10872 fi
10873 AM_BACKSLASH='\'
10874
10875
10876
10877 # Initialize libtool
10878 # Check whether --enable-static was given.
10879 if test "${enable_static+set}" = set; then :
10880 enableval=$enable_static; p=${PACKAGE-default}
10881 case $enableval in
10882 yes) enable_static=yes ;;
10883 no) enable_static=no ;;
10884 *)
10885 enable_static=no
10886 # Look at the argument we got. We use all the common list separators.
10887 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10888 for pkg in $enableval; do
10889 IFS=$lt_save_ifs
10890 if test "X$pkg" = "X$p"; then
10891 enable_static=yes
10892 fi
10893 done
10894 IFS=$lt_save_ifs
10895 ;;
10896 esac
10897 else
10898 enable_static=no
10899 fi
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909 case `pwd` in
10910 *\ * | *\ *)
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10912 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10913 esac
10914
10915
10916
10917 macro_version='2.4.6'
10918 macro_revision='2.4.6'
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 ltmain=$ac_aux_dir/ltmain.sh
10933
10934 # Backslashify metacharacters that are still active within
10935 # double-quoted strings.
10936 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10937
10938 # Same as above, but do not quote variable references.
10939 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10940
10941 # Sed substitution to delay expansion of an escaped shell variable in a
10942 # double_quote_subst'ed string.
10943 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10944
10945 # Sed substitution to delay expansion of an escaped single quote.
10946 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10947
10948 # Sed substitution to avoid accidental globbing in evaled expressions
10949 no_glob_subst='s/\*/\\\*/g'
10950
10951 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10954
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10956 $as_echo_n "checking how to print strings... " >&6; }
10957 # Test print first, because it will be a builtin if present.
10958 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10959 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10960 ECHO='print -r --'
10961 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10962 ECHO='printf %s\n'
10963 else
10964 # Use this function as a fallback that always works.
10965 func_fallback_echo ()
10966 {
10967 eval 'cat <<_LTECHO_EOF
10968 $1
10969 _LTECHO_EOF'
10970 }
10971 ECHO='func_fallback_echo'
10972 fi
10973
10974 # func_echo_all arg...
10975 # Invoke $ECHO with all args, space-separated.
10976 func_echo_all ()
10977 {
10978 $ECHO ""
10979 }
10980
10981 case $ECHO in
10982 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10983 $as_echo "printf" >&6; } ;;
10984 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10985 $as_echo "print -r" >&6; } ;;
10986 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10987 $as_echo "cat" >&6; } ;;
10988 esac
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11004 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11005 if ${ac_cv_path_SED+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11009 for ac_i in 1 2 3 4 5 6 7; do
11010 ac_script="$ac_script$as_nl$ac_script"
11011 done
11012 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11013 { ac_script=; unset ac_script;}
11014 if test -z "$SED"; then
11015 ac_path_SED_found=false
11016 # Loop through the user's path and test for each of PROGNAME-LIST
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_prog in sed gsed; do
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11025 as_fn_executable_p "$ac_path_SED" || continue
11026 # Check for GNU ac_path_SED and select it if it is found.
11027 # Check for GNU $ac_path_SED
11028 case `"$ac_path_SED" --version 2>&1` in
11029 *GNU*)
11030 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11031 *)
11032 ac_count=0
11033 $as_echo_n 0123456789 >"conftest.in"
11034 while :
11035 do
11036 cat "conftest.in" "conftest.in" >"conftest.tmp"
11037 mv "conftest.tmp" "conftest.in"
11038 cp "conftest.in" "conftest.nl"
11039 $as_echo '' >> "conftest.nl"
11040 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11042 as_fn_arith $ac_count + 1 && ac_count=$as_val
11043 if test $ac_count -gt ${ac_path_SED_max-0}; then
11044 # Best one so far, save it but keep looking for a better one
11045 ac_cv_path_SED="$ac_path_SED"
11046 ac_path_SED_max=$ac_count
11047 fi
11048 # 10*(2^10) chars as input seems more than enough
11049 test $ac_count -gt 10 && break
11050 done
11051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11052 esac
11053
11054 $ac_path_SED_found && break 3
11055 done
11056 done
11057 done
11058 IFS=$as_save_IFS
11059 if test -z "$ac_cv_path_SED"; then
11060 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11061 fi
11062 else
11063 ac_cv_path_SED=$SED
11064 fi
11065
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11068 $as_echo "$ac_cv_path_SED" >&6; }
11069 SED="$ac_cv_path_SED"
11070 rm -f conftest.sed
11071
11072 test -z "$SED" && SED=sed
11073 Xsed="$SED -e 1s/^X//"
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11086 $as_echo_n "checking for fgrep... " >&6; }
11087 if ${ac_cv_path_FGREP+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11091 then ac_cv_path_FGREP="$GREP -F"
11092 else
11093 if test -z "$FGREP"; then
11094 ac_path_FGREP_found=false
11095 # Loop through the user's path and test for each of PROGNAME-LIST
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11098 do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_prog in fgrep; do
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11104 as_fn_executable_p "$ac_path_FGREP" || continue
11105 # Check for GNU ac_path_FGREP and select it if it is found.
11106 # Check for GNU $ac_path_FGREP
11107 case `"$ac_path_FGREP" --version 2>&1` in
11108 *GNU*)
11109 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11110 *)
11111 ac_count=0
11112 $as_echo_n 0123456789 >"conftest.in"
11113 while :
11114 do
11115 cat "conftest.in" "conftest.in" >"conftest.tmp"
11116 mv "conftest.tmp" "conftest.in"
11117 cp "conftest.in" "conftest.nl"
11118 $as_echo 'FGREP' >> "conftest.nl"
11119 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11121 as_fn_arith $ac_count + 1 && ac_count=$as_val
11122 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11123 # Best one so far, save it but keep looking for a better one
11124 ac_cv_path_FGREP="$ac_path_FGREP"
11125 ac_path_FGREP_max=$ac_count
11126 fi
11127 # 10*(2^10) chars as input seems more than enough
11128 test $ac_count -gt 10 && break
11129 done
11130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11131 esac
11132
11133 $ac_path_FGREP_found && break 3
11134 done
11135 done
11136 done
11137 IFS=$as_save_IFS
11138 if test -z "$ac_cv_path_FGREP"; then
11139 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11140 fi
11141 else
11142 ac_cv_path_FGREP=$FGREP
11143 fi
11144
11145 fi
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11148 $as_echo "$ac_cv_path_FGREP" >&6; }
11149 FGREP="$ac_cv_path_FGREP"
11150
11151
11152 test -z "$GREP" && GREP=grep
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172 # Check whether --with-gnu-ld was given.
11173 if test "${with_gnu_ld+set}" = set; then :
11174 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11175 else
11176 with_gnu_ld=no
11177 fi
11178
11179 ac_prog=ld
11180 if test yes = "$GCC"; then
11181 # Check if gcc -print-prog-name=ld gives a path.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11183 $as_echo_n "checking for ld used by $CC... " >&6; }
11184 case $host in
11185 *-*-mingw*)
11186 # gcc leaves a trailing carriage return, which upsets mingw
11187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11188 *)
11189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11190 esac
11191 case $ac_prog in
11192 # Accept absolute paths.
11193 [\\/]* | ?:[\\/]*)
11194 re_direlt='/[^/][^/]*/\.\./'
11195 # Canonicalize the pathname of ld
11196 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11197 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11198 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11199 done
11200 test -z "$LD" && LD=$ac_prog
11201 ;;
11202 "")
11203 # If it fails, then pretend we aren't using GCC.
11204 ac_prog=ld
11205 ;;
11206 *)
11207 # If it is relative, then search for the first ld in PATH.
11208 with_gnu_ld=unknown
11209 ;;
11210 esac
11211 elif test yes = "$with_gnu_ld"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11213 $as_echo_n "checking for GNU ld... " >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11216 $as_echo_n "checking for non-GNU ld... " >&6; }
11217 fi
11218 if ${lt_cv_path_LD+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -z "$LD"; then
11222 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11223 for ac_dir in $PATH; do
11224 IFS=$lt_save_ifs
11225 test -z "$ac_dir" && ac_dir=.
11226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11227 lt_cv_path_LD=$ac_dir/$ac_prog
11228 # Check to see if the program is GNU ld. I'd rather use --version,
11229 # but apparently some variants of GNU ld only accept -v.
11230 # Break only if it was the GNU/non-GNU ld that we prefer.
11231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11232 *GNU* | *'with BFD'*)
11233 test no != "$with_gnu_ld" && break
11234 ;;
11235 *)
11236 test yes != "$with_gnu_ld" && break
11237 ;;
11238 esac
11239 fi
11240 done
11241 IFS=$lt_save_ifs
11242 else
11243 lt_cv_path_LD=$LD # Let the user override the test with a path.
11244 fi
11245 fi
11246
11247 LD=$lt_cv_path_LD
11248 if test -n "$LD"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11250 $as_echo "$LD" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 fi
11255 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11257 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11258 if ${lt_cv_prog_gnu_ld+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11262 case `$LD -v 2>&1 </dev/null` in
11263 *GNU* | *'with BFD'*)
11264 lt_cv_prog_gnu_ld=yes
11265 ;;
11266 *)
11267 lt_cv_prog_gnu_ld=no
11268 ;;
11269 esac
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11272 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11273 with_gnu_ld=$lt_cv_prog_gnu_ld
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11284 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11285 if ${lt_cv_path_NM+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 if test -n "$NM"; then
11289 # Let the user override the test.
11290 lt_cv_path_NM=$NM
11291 else
11292 lt_nm_to_check=${ac_tool_prefix}nm
11293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11294 lt_nm_to_check="$lt_nm_to_check nm"
11295 fi
11296 for lt_tmp_nm in $lt_nm_to_check; do
11297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11299 IFS=$lt_save_ifs
11300 test -z "$ac_dir" && ac_dir=.
11301 tmp_nm=$ac_dir/$lt_tmp_nm
11302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11303 # Check to see if the nm accepts a BSD-compat flag.
11304 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11305 # nm: unknown option "B" ignored
11306 # Tru64's nm complains that /dev/null is an invalid object file
11307 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11308 case $build_os in
11309 mingw*) lt_bad_file=conftest.nm/nofile ;;
11310 *) lt_bad_file=/dev/null ;;
11311 esac
11312 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11313 *$lt_bad_file* | *'Invalid file or object type'*)
11314 lt_cv_path_NM="$tmp_nm -B"
11315 break 2
11316 ;;
11317 *)
11318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11319 */dev/null*)
11320 lt_cv_path_NM="$tmp_nm -p"
11321 break 2
11322 ;;
11323 *)
11324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11325 continue # so that we can try to find one that supports BSD flags
11326 ;;
11327 esac
11328 ;;
11329 esac
11330 fi
11331 done
11332 IFS=$lt_save_ifs
11333 done
11334 : ${lt_cv_path_NM=no}
11335 fi
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11338 $as_echo "$lt_cv_path_NM" >&6; }
11339 if test no != "$lt_cv_path_NM"; then
11340 NM=$lt_cv_path_NM
11341 else
11342 # Didn't find any BSD compatible name lister, look for dumpbin.
11343 if test -n "$DUMPBIN"; then :
11344 # Let the user override the test.
11345 else
11346 if test -n "$ac_tool_prefix"; then
11347 for ac_prog in dumpbin "link -dump"
11348 do
11349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if ${ac_cv_prog_DUMPBIN+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 if test -n "$DUMPBIN"; then
11357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11358 else
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11361 do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370 done
11371 done
11372 IFS=$as_save_IFS
11373
11374 fi
11375 fi
11376 DUMPBIN=$ac_cv_prog_DUMPBIN
11377 if test -n "$DUMPBIN"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11379 $as_echo "$DUMPBIN" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383 fi
11384
11385
11386 test -n "$DUMPBIN" && break
11387 done
11388 fi
11389 if test -z "$DUMPBIN"; then
11390 ac_ct_DUMPBIN=$DUMPBIN
11391 for ac_prog in dumpbin "link -dump"
11392 do
11393 # Extract the first word of "$ac_prog", so it can be a program name with args.
11394 set dummy $ac_prog; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test -n "$ac_ct_DUMPBIN"; then
11401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11402 else
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11405 do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412 break 2
11413 fi
11414 done
11415 done
11416 IFS=$as_save_IFS
11417
11418 fi
11419 fi
11420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11421 if test -n "$ac_ct_DUMPBIN"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11423 $as_echo "$ac_ct_DUMPBIN" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11427 fi
11428
11429
11430 test -n "$ac_ct_DUMPBIN" && break
11431 done
11432
11433 if test "x$ac_ct_DUMPBIN" = x; then
11434 DUMPBIN=":"
11435 else
11436 case $cross_compiling:$ac_tool_warned in
11437 yes:)
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11440 ac_tool_warned=yes ;;
11441 esac
11442 DUMPBIN=$ac_ct_DUMPBIN
11443 fi
11444 fi
11445
11446 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11447 *COFF*)
11448 DUMPBIN="$DUMPBIN -symbols -headers"
11449 ;;
11450 *)
11451 DUMPBIN=:
11452 ;;
11453 esac
11454 fi
11455
11456 if test : != "$DUMPBIN"; then
11457 NM=$DUMPBIN
11458 fi
11459 fi
11460 test -z "$NM" && NM=nm
11461
11462
11463
11464
11465
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11469 if ${lt_cv_nm_interface+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 lt_cv_nm_interface="BSD nm"
11473 echo "int some_variable = 0;" > conftest.$ac_ext
11474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11475 (eval "$ac_compile" 2>conftest.err)
11476 cat conftest.err >&5
11477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11479 cat conftest.err >&5
11480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11481 cat conftest.out >&5
11482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11483 lt_cv_nm_interface="MS dumpbin"
11484 fi
11485 rm -f conftest*
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11488 $as_echo "$lt_cv_nm_interface" >&6; }
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11491 $as_echo_n "checking whether ln -s works... " >&6; }
11492 LN_S=$as_ln_s
11493 if test "$LN_S" = "ln -s"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11495 $as_echo "yes" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11498 $as_echo "no, using $LN_S" >&6; }
11499 fi
11500
11501 # find the maximum length of command line arguments
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11504 if ${lt_cv_sys_max_cmd_len+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 i=0
11508 teststring=ABCD
11509
11510 case $build_os in
11511 msdosdjgpp*)
11512 # On DJGPP, this test can blow up pretty badly due to problems in libc
11513 # (any single argument exceeding 2000 bytes causes a buffer overrun
11514 # during glob expansion). Even if it were fixed, the result of this
11515 # check would be larger than it should be.
11516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11517 ;;
11518
11519 gnu*)
11520 # Under GNU Hurd, this test is not required because there is
11521 # no limit to the length of command line arguments.
11522 # Libtool will interpret -1 as no limit whatsoever
11523 lt_cv_sys_max_cmd_len=-1;
11524 ;;
11525
11526 cygwin* | mingw* | cegcc*)
11527 # On Win9x/ME, this test blows up -- it succeeds, but takes
11528 # about 5 minutes as the teststring grows exponentially.
11529 # Worse, since 9x/ME are not pre-emptively multitasking,
11530 # you end up with a "frozen" computer, even though with patience
11531 # the test eventually succeeds (with a max line length of 256k).
11532 # Instead, let's just punt: use the minimum linelength reported by
11533 # all of the supported platforms: 8192 (on NT/2K/XP).
11534 lt_cv_sys_max_cmd_len=8192;
11535 ;;
11536
11537 mint*)
11538 # On MiNT this can take a long time and run out of memory.
11539 lt_cv_sys_max_cmd_len=8192;
11540 ;;
11541
11542 amigaos*)
11543 # On AmigaOS with pdksh, this test takes hours, literally.
11544 # So we just punt and use a minimum line length of 8192.
11545 lt_cv_sys_max_cmd_len=8192;
11546 ;;
11547
11548 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11549 # This has been around since 386BSD, at least. Likely further.
11550 if test -x /sbin/sysctl; then
11551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11552 elif test -x /usr/sbin/sysctl; then
11553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11554 else
11555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11556 fi
11557 # And add a safety zone
11558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11560 ;;
11561
11562 interix*)
11563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11564 lt_cv_sys_max_cmd_len=196608
11565 ;;
11566
11567 os2*)
11568 # The test takes a long time on OS/2.
11569 lt_cv_sys_max_cmd_len=8192
11570 ;;
11571
11572 osf*)
11573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11575 # nice to cause kernel panics so lets avoid the loop below.
11576 # First set a reasonable default.
11577 lt_cv_sys_max_cmd_len=16384
11578 #
11579 if test -x /sbin/sysconfig; then
11580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11582 esac
11583 fi
11584 ;;
11585 sco3.2v5*)
11586 lt_cv_sys_max_cmd_len=102400
11587 ;;
11588 sysv5* | sco5v6* | sysv4.2uw2*)
11589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11590 if test -n "$kargmax"; then
11591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11592 else
11593 lt_cv_sys_max_cmd_len=32768
11594 fi
11595 ;;
11596 *)
11597 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11598 if test -n "$lt_cv_sys_max_cmd_len" && \
11599 test undefined != "$lt_cv_sys_max_cmd_len"; then
11600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11602 else
11603 # Make teststring a little bigger before we do anything with it.
11604 # a 1K string should be a reasonable start.
11605 for i in 1 2 3 4 5 6 7 8; do
11606 teststring=$teststring$teststring
11607 done
11608 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11609 # If test is not a shell built-in, we'll probably end up computing a
11610 # maximum length that is only half of the actual maximum length, but
11611 # we can't tell.
11612 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11613 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11614 test 17 != "$i" # 1/2 MB should be enough
11615 do
11616 i=`expr $i + 1`
11617 teststring=$teststring$teststring
11618 done
11619 # Only check the string length outside the loop.
11620 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11621 teststring=
11622 # Add a significant safety factor because C++ compilers can tack on
11623 # massive amounts of additional arguments before passing them to the
11624 # linker. It appears as though 1/2 is a usable value.
11625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11626 fi
11627 ;;
11628 esac
11629
11630 fi
11631
11632 if test -n "$lt_cv_sys_max_cmd_len"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11634 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11637 $as_echo "none" >&6; }
11638 fi
11639 max_cmd_len=$lt_cv_sys_max_cmd_len
11640
11641
11642
11643
11644
11645
11646 : ${CP="cp -f"}
11647 : ${MV="mv -f"}
11648 : ${RM="rm -f"}
11649
11650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11651 lt_unset=unset
11652 else
11653 lt_unset=false
11654 fi
11655
11656
11657
11658
11659
11660 # test EBCDIC or ASCII
11661 case `echo X|tr X '\101'` in
11662 A) # ASCII based system
11663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11664 lt_SP2NL='tr \040 \012'
11665 lt_NL2SP='tr \015\012 \040\040'
11666 ;;
11667 *) # EBCDIC based system
11668 lt_SP2NL='tr \100 \n'
11669 lt_NL2SP='tr \r\n \100\100'
11670 ;;
11671 esac
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11682 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11683 if ${lt_cv_to_host_file_cmd+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 case $host in
11687 *-*-mingw* )
11688 case $build in
11689 *-*-mingw* ) # actually msys
11690 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11691 ;;
11692 *-*-cygwin* )
11693 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11694 ;;
11695 * ) # otherwise, assume *nix
11696 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11697 ;;
11698 esac
11699 ;;
11700 *-*-cygwin* )
11701 case $build in
11702 *-*-mingw* ) # actually msys
11703 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11704 ;;
11705 *-*-cygwin* )
11706 lt_cv_to_host_file_cmd=func_convert_file_noop
11707 ;;
11708 * ) # otherwise, assume *nix
11709 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11710 ;;
11711 esac
11712 ;;
11713 * ) # unhandled hosts (and "normal" native builds)
11714 lt_cv_to_host_file_cmd=func_convert_file_noop
11715 ;;
11716 esac
11717
11718 fi
11719
11720 to_host_file_cmd=$lt_cv_to_host_file_cmd
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11722 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11723
11724
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11729 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11730 if ${lt_cv_to_tool_file_cmd+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 #assume ordinary cross tools, or native build.
11734 lt_cv_to_tool_file_cmd=func_convert_file_noop
11735 case $host in
11736 *-*-mingw* )
11737 case $build in
11738 *-*-mingw* ) # actually msys
11739 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11740 ;;
11741 esac
11742 ;;
11743 esac
11744
11745 fi
11746
11747 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11749 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11750
11751
11752
11753
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11756 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11757 if ${lt_cv_ld_reload_flag+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 lt_cv_ld_reload_flag='-r'
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11763 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11764 reload_flag=$lt_cv_ld_reload_flag
11765 case $reload_flag in
11766 "" | " "*) ;;
11767 *) reload_flag=" $reload_flag" ;;
11768 esac
11769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11770 case $host_os in
11771 cygwin* | mingw* | pw32* | cegcc*)
11772 if test yes != "$GCC"; then
11773 reload_cmds=false
11774 fi
11775 ;;
11776 darwin*)
11777 if test yes = "$GCC"; then
11778 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11779 else
11780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11781 fi
11782 ;;
11783 esac
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_prog_OBJDUMP+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$OBJDUMP"; then
11802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815 done
11816 done
11817 IFS=$as_save_IFS
11818
11819 fi
11820 fi
11821 OBJDUMP=$ac_cv_prog_OBJDUMP
11822 if test -n "$OBJDUMP"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11824 $as_echo "$OBJDUMP" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830
11831 fi
11832 if test -z "$ac_cv_prog_OBJDUMP"; then
11833 ac_ct_OBJDUMP=$OBJDUMP
11834 # Extract the first word of "objdump", so it can be a program name with args.
11835 set dummy objdump; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -n "$ac_ct_OBJDUMP"; then
11842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11854 fi
11855 done
11856 done
11857 IFS=$as_save_IFS
11858
11859 fi
11860 fi
11861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11862 if test -n "$ac_ct_OBJDUMP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11864 $as_echo "$ac_ct_OBJDUMP" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870 if test "x$ac_ct_OBJDUMP" = x; then
11871 OBJDUMP="false"
11872 else
11873 case $cross_compiling:$ac_tool_warned in
11874 yes:)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877 ac_tool_warned=yes ;;
11878 esac
11879 OBJDUMP=$ac_ct_OBJDUMP
11880 fi
11881 else
11882 OBJDUMP="$ac_cv_prog_OBJDUMP"
11883 fi
11884
11885 test -z "$OBJDUMP" && OBJDUMP=objdump
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11896 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11897 if ${lt_cv_deplibs_check_method+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 lt_cv_file_magic_cmd='$MAGIC_CMD'
11901 lt_cv_file_magic_test_file=
11902 lt_cv_deplibs_check_method='unknown'
11903 # Need to set the preceding variable on all platforms that support
11904 # interlibrary dependencies.
11905 # 'none' -- dependencies not supported.
11906 # 'unknown' -- same as none, but documents that we really don't know.
11907 # 'pass_all' -- all dependencies passed with no checks.
11908 # 'test_compile' -- check by making test program.
11909 # 'file_magic [[regex]]' -- check by looking for files in library path
11910 # that responds to the $file_magic_cmd with a given extended regex.
11911 # If you have 'file' or equivalent on your system and you're not sure
11912 # whether 'pass_all' will *always* work, you probably want this one.
11913
11914 case $host_os in
11915 aix[4-9]*)
11916 lt_cv_deplibs_check_method=pass_all
11917 ;;
11918
11919 beos*)
11920 lt_cv_deplibs_check_method=pass_all
11921 ;;
11922
11923 bsdi[45]*)
11924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11925 lt_cv_file_magic_cmd='/usr/bin/file -L'
11926 lt_cv_file_magic_test_file=/shlib/libc.so
11927 ;;
11928
11929 cygwin*)
11930 # func_win32_libid is a shell function defined in ltmain.sh
11931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11932 lt_cv_file_magic_cmd='func_win32_libid'
11933 ;;
11934
11935 mingw* | pw32*)
11936 # Base MSYS/MinGW do not provide the 'file' command needed by
11937 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11938 # unless we find 'file', for example because we are cross-compiling.
11939 if ( file / ) >/dev/null 2>&1; then
11940 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11941 lt_cv_file_magic_cmd='func_win32_libid'
11942 else
11943 # Keep this pattern in sync with the one in func_win32_libid.
11944 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11945 lt_cv_file_magic_cmd='$OBJDUMP -f'
11946 fi
11947 ;;
11948
11949 cegcc*)
11950 # use the weaker test based on 'objdump'. See mingw*.
11951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11952 lt_cv_file_magic_cmd='$OBJDUMP -f'
11953 ;;
11954
11955 darwin* | rhapsody*)
11956 lt_cv_deplibs_check_method=pass_all
11957 ;;
11958
11959 freebsd* | dragonfly*)
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11961 case $host_cpu in
11962 i*86 )
11963 # Not sure whether the presence of OpenBSD here was a mistake.
11964 # Let's accept both of them until this is cleared up.
11965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11966 lt_cv_file_magic_cmd=/usr/bin/file
11967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11968 ;;
11969 esac
11970 else
11971 lt_cv_deplibs_check_method=pass_all
11972 fi
11973 ;;
11974
11975 haiku*)
11976 lt_cv_deplibs_check_method=pass_all
11977 ;;
11978
11979 hpux10.20* | hpux11*)
11980 lt_cv_file_magic_cmd=/usr/bin/file
11981 case $host_cpu in
11982 ia64*)
11983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11985 ;;
11986 hppa*64*)
11987 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]'
11988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11989 ;;
11990 *)
11991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11993 ;;
11994 esac
11995 ;;
11996
11997 interix[3-9]*)
11998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12000 ;;
12001
12002 irix5* | irix6* | nonstopux*)
12003 case $LD in
12004 *-32|*"-32 ") libmagic=32-bit;;
12005 *-n32|*"-n32 ") libmagic=N32;;
12006 *-64|*"-64 ") libmagic=64-bit;;
12007 *) libmagic=never-match;;
12008 esac
12009 lt_cv_deplibs_check_method=pass_all
12010 ;;
12011
12012 # This must be glibc/ELF.
12013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12014 lt_cv_deplibs_check_method=pass_all
12015 ;;
12016
12017 netbsd* | netbsdelf*-gnu)
12018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12020 else
12021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12022 fi
12023 ;;
12024
12025 newos6*)
12026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12027 lt_cv_file_magic_cmd=/usr/bin/file
12028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12029 ;;
12030
12031 *nto* | *qnx*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035 openbsd* | bitrig*)
12036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12038 else
12039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12040 fi
12041 ;;
12042
12043 osf3* | osf4* | osf5*)
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
12047 rdos*)
12048 lt_cv_deplibs_check_method=pass_all
12049 ;;
12050
12051 solaris*)
12052 lt_cv_deplibs_check_method=pass_all
12053 ;;
12054
12055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12056 lt_cv_deplibs_check_method=pass_all
12057 ;;
12058
12059 sysv4 | sysv4.3*)
12060 case $host_vendor in
12061 motorola)
12062 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]'
12063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12064 ;;
12065 ncr)
12066 lt_cv_deplibs_check_method=pass_all
12067 ;;
12068 sequent)
12069 lt_cv_file_magic_cmd='/bin/file'
12070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12071 ;;
12072 sni)
12073 lt_cv_file_magic_cmd='/bin/file'
12074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12075 lt_cv_file_magic_test_file=/lib/libc.so
12076 ;;
12077 siemens)
12078 lt_cv_deplibs_check_method=pass_all
12079 ;;
12080 pc)
12081 lt_cv_deplibs_check_method=pass_all
12082 ;;
12083 esac
12084 ;;
12085
12086 tpf*)
12087 lt_cv_deplibs_check_method=pass_all
12088 ;;
12089 os2*)
12090 lt_cv_deplibs_check_method=pass_all
12091 ;;
12092 esac
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12097
12098 file_magic_glob=
12099 want_nocaseglob=no
12100 if test "$build" = "$host"; then
12101 case $host_os in
12102 mingw* | pw32*)
12103 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12104 want_nocaseglob=yes
12105 else
12106 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12107 fi
12108 ;;
12109 esac
12110 fi
12111
12112 file_magic_cmd=$lt_cv_file_magic_cmd
12113 deplibs_check_method=$lt_cv_deplibs_check_method
12114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137 if test -n "$ac_tool_prefix"; then
12138 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12139 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if ${ac_cv_prog_DLLTOOL+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -n "$DLLTOOL"; then
12146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159 done
12160 done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 DLLTOOL=$ac_cv_prog_DLLTOOL
12166 if test -n "$DLLTOOL"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12168 $as_echo "$DLLTOOL" >&6; }
12169 else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174
12175 fi
12176 if test -z "$ac_cv_prog_DLLTOOL"; then
12177 ac_ct_DLLTOOL=$DLLTOOL
12178 # Extract the first word of "dlltool", so it can be a program name with args.
12179 set dummy dlltool; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test -n "$ac_ct_DLLTOOL"; then
12186 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12187 else
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 fi
12204 fi
12205 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12206 if test -n "$ac_ct_DLLTOOL"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12208 $as_echo "$ac_ct_DLLTOOL" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214 if test "x$ac_ct_DLLTOOL" = x; then
12215 DLLTOOL="false"
12216 else
12217 case $cross_compiling:$ac_tool_warned in
12218 yes:)
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12221 ac_tool_warned=yes ;;
12222 esac
12223 DLLTOOL=$ac_ct_DLLTOOL
12224 fi
12225 else
12226 DLLTOOL="$ac_cv_prog_DLLTOOL"
12227 fi
12228
12229 test -z "$DLLTOOL" && DLLTOOL=dlltool
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12241 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12242 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 lt_cv_sharedlib_from_linklib_cmd='unknown'
12246
12247 case $host_os in
12248 cygwin* | mingw* | pw32* | cegcc*)
12249 # two different shell functions defined in ltmain.sh;
12250 # decide which one to use based on capabilities of $DLLTOOL
12251 case `$DLLTOOL --help 2>&1` in
12252 *--identify-strict*)
12253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12254 ;;
12255 *)
12256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12257 ;;
12258 esac
12259 ;;
12260 *)
12261 # fallback: assume linklib IS sharedlib
12262 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12263 ;;
12264 esac
12265
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12268 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12269 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12270 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12271
12272
12273
12274
12275
12276
12277
12278 if test -n "$ac_tool_prefix"; then
12279 for ac_prog in ar
12280 do
12281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if ${ac_cv_prog_AR+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 if test -n "$AR"; then
12289 ac_cv_prog_AR="$AR" # Let the user override the test.
12290 else
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302 done
12303 done
12304 IFS=$as_save_IFS
12305
12306 fi
12307 fi
12308 AR=$ac_cv_prog_AR
12309 if test -n "$AR"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12311 $as_echo "$AR" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317
12318 test -n "$AR" && break
12319 done
12320 fi
12321 if test -z "$AR"; then
12322 ac_ct_AR=$AR
12323 for ac_prog in ar
12324 do
12325 # Extract the first word of "$ac_prog", so it can be a program name with args.
12326 set dummy $ac_prog; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$ac_ct_AR"; then
12333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_ac_ct_AR="$ac_prog"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12345 fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350 fi
12351 fi
12352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12353 if test -n "$ac_ct_AR"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12355 $as_echo "$ac_ct_AR" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360
12361
12362 test -n "$ac_ct_AR" && break
12363 done
12364
12365 if test "x$ac_ct_AR" = x; then
12366 AR="false"
12367 else
12368 case $cross_compiling:$ac_tool_warned in
12369 yes:)
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12372 ac_tool_warned=yes ;;
12373 esac
12374 AR=$ac_ct_AR
12375 fi
12376 fi
12377
12378 : ${AR=ar}
12379 : ${AR_FLAGS=cru}
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12392 $as_echo_n "checking for archiver @FILE support... " >&6; }
12393 if ${lt_cv_ar_at_file+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 lt_cv_ar_at_file=no
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400 int
12401 main ()
12402 {
12403
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409 echo conftest.$ac_objext > conftest.lst
12410 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12412 (eval $lt_ar_try) 2>&5
12413 ac_status=$?
12414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12415 test $ac_status = 0; }
12416 if test 0 -eq "$ac_status"; then
12417 # Ensure the archiver fails upon bogus file names.
12418 rm -f conftest.$ac_objext libconftest.a
12419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12420 (eval $lt_ar_try) 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; }
12424 if test 0 -ne "$ac_status"; then
12425 lt_cv_ar_at_file=@
12426 fi
12427 fi
12428 rm -f conftest.* libconftest.a
12429
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12435 $as_echo "$lt_cv_ar_at_file" >&6; }
12436
12437 if test no = "$lt_cv_ar_at_file"; then
12438 archiver_list_spec=
12439 else
12440 archiver_list_spec=$lt_cv_ar_at_file
12441 fi
12442
12443
12444
12445
12446
12447
12448
12449 if test -n "$ac_tool_prefix"; then
12450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12451 set dummy ${ac_tool_prefix}strip; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_STRIP+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$STRIP"; then
12458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 STRIP=$ac_cv_prog_STRIP
12478 if test -n "$STRIP"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12480 $as_echo "$STRIP" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487 fi
12488 if test -z "$ac_cv_prog_STRIP"; then
12489 ac_ct_STRIP=$STRIP
12490 # Extract the first word of "strip", so it can be a program name with args.
12491 set dummy strip; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 if test -n "$ac_ct_STRIP"; then
12498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12499 else
12500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501 for as_dir in $PATH
12502 do
12503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12507 ac_cv_prog_ac_ct_STRIP="strip"
12508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12510 fi
12511 done
12512 done
12513 IFS=$as_save_IFS
12514
12515 fi
12516 fi
12517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12518 if test -n "$ac_ct_STRIP"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12520 $as_echo "$ac_ct_STRIP" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 fi
12525
12526 if test "x$ac_ct_STRIP" = x; then
12527 STRIP=":"
12528 else
12529 case $cross_compiling:$ac_tool_warned in
12530 yes:)
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12533 ac_tool_warned=yes ;;
12534 esac
12535 STRIP=$ac_ct_STRIP
12536 fi
12537 else
12538 STRIP="$ac_cv_prog_STRIP"
12539 fi
12540
12541 test -z "$STRIP" && STRIP=:
12542
12543
12544
12545
12546
12547
12548 if test -n "$ac_tool_prefix"; then
12549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_prog_RANLIB+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 if test -n "$RANLIB"; then
12557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12558 else
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12561 do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570 done
12571 done
12572 IFS=$as_save_IFS
12573
12574 fi
12575 fi
12576 RANLIB=$ac_cv_prog_RANLIB
12577 if test -n "$RANLIB"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12579 $as_echo "$RANLIB" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585
12586 fi
12587 if test -z "$ac_cv_prog_RANLIB"; then
12588 ac_ct_RANLIB=$RANLIB
12589 # Extract the first word of "ranlib", so it can be a program name with args.
12590 set dummy ranlib; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 if test -n "$ac_ct_RANLIB"; then
12597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12598 else
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12601 do
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
12604 for ac_exec_ext in '' $ac_executable_extensions; do
12605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12606 ac_cv_prog_ac_ct_RANLIB="ranlib"
12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 break 2
12609 fi
12610 done
12611 done
12612 IFS=$as_save_IFS
12613
12614 fi
12615 fi
12616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12617 if test -n "$ac_ct_RANLIB"; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12619 $as_echo "$ac_ct_RANLIB" >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624
12625 if test "x$ac_ct_RANLIB" = x; then
12626 RANLIB=":"
12627 else
12628 case $cross_compiling:$ac_tool_warned in
12629 yes:)
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12632 ac_tool_warned=yes ;;
12633 esac
12634 RANLIB=$ac_ct_RANLIB
12635 fi
12636 else
12637 RANLIB="$ac_cv_prog_RANLIB"
12638 fi
12639
12640 test -z "$RANLIB" && RANLIB=:
12641
12642
12643
12644
12645
12646
12647 # Determine commands to create old-style static archives.
12648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12649 old_postinstall_cmds='chmod 644 $oldlib'
12650 old_postuninstall_cmds=
12651
12652 if test -n "$RANLIB"; then
12653 case $host_os in
12654 bitrig* | openbsd*)
12655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12656 ;;
12657 *)
12658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12659 ;;
12660 esac
12661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12662 fi
12663
12664 case $host_os in
12665 darwin*)
12666 lock_old_archive_extraction=yes ;;
12667 *)
12668 lock_old_archive_extraction=no ;;
12669 esac
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709 # If no C compiler was specified, use CC.
12710 LTCC=${LTCC-"$CC"}
12711
12712 # If no C compiler flags were specified, use CFLAGS.
12713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12714
12715 # Allow CC to be a program name with arguments.
12716 compiler=$CC
12717
12718
12719 # Check for command to grab the raw symbol name followed by C symbol from nm.
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12722 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725
12726 # These are sane defaults that work on at least a few old systems.
12727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12728
12729 # Character class describing NM global symbol codes.
12730 symcode='[BCDEGRST]'
12731
12732 # Regexp to match symbols that can be accessed directly from C.
12733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12734
12735 # Define system-specific variables.
12736 case $host_os in
12737 aix*)
12738 symcode='[BCDT]'
12739 ;;
12740 cygwin* | mingw* | pw32* | cegcc*)
12741 symcode='[ABCDGISTW]'
12742 ;;
12743 hpux*)
12744 if test ia64 = "$host_cpu"; then
12745 symcode='[ABCDEGRST]'
12746 fi
12747 ;;
12748 irix* | nonstopux*)
12749 symcode='[BCDEGRST]'
12750 ;;
12751 osf*)
12752 symcode='[BCDEGQRST]'
12753 ;;
12754 solaris*)
12755 symcode='[BDRT]'
12756 ;;
12757 sco3.2v5*)
12758 symcode='[DT]'
12759 ;;
12760 sysv4.2uw2*)
12761 symcode='[DT]'
12762 ;;
12763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12764 symcode='[ABDT]'
12765 ;;
12766 sysv4)
12767 symcode='[DFNSTU]'
12768 ;;
12769 esac
12770
12771 # If we're using GNU nm, then use its standard symbol codes.
12772 case `$NM -V 2>&1` in
12773 *GNU* | *'with BFD'*)
12774 symcode='[ABCDGIRSTW]' ;;
12775 esac
12776
12777 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12778 # Gets list of data symbols to import.
12779 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12780 # Adjust the below global symbol transforms to fixup imported variables.
12781 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12782 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12783 lt_c_name_lib_hook="\
12784 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12785 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12786 else
12787 # Disable hooks by default.
12788 lt_cv_sys_global_symbol_to_import=
12789 lt_cdecl_hook=
12790 lt_c_name_hook=
12791 lt_c_name_lib_hook=
12792 fi
12793
12794 # Transform an extracted symbol line into a proper C declaration.
12795 # Some systems (esp. on ia64) link data and code symbols differently,
12796 # so use this general approach.
12797 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12798 $lt_cdecl_hook\
12799 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12800 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12801
12802 # Transform an extracted symbol line into symbol name and symbol address
12803 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12804 $lt_c_name_hook\
12805 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12806 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12807
12808 # Transform an extracted symbol line into symbol name with lib prefix and
12809 # symbol address.
12810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12811 $lt_c_name_lib_hook\
12812 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12813 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12814 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12815
12816 # Handle CRLF in mingw tool chain
12817 opt_cr=
12818 case $build_os in
12819 mingw*)
12820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12821 ;;
12822 esac
12823
12824 # Try without a prefix underscore, then with it.
12825 for ac_symprfx in "" "_"; do
12826
12827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12828 symxfrm="\\1 $ac_symprfx\\2 \\2"
12829
12830 # Write the raw and C identifiers.
12831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12832 # Fake it for dumpbin and say T for any non-static function,
12833 # D for any global variable and I for any imported variable.
12834 # Also find C++ and __fastcall symbols from MSVC++,
12835 # which start with @ or ?.
12836 lt_cv_sys_global_symbol_pipe="$AWK '"\
12837 " {last_section=section; section=\$ 3};"\
12838 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12839 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12840 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12841 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12842 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12843 " \$ 0!~/External *\|/{next};"\
12844 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12845 " {if(hide[section]) next};"\
12846 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12847 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12848 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12849 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12850 " ' prfx=^$ac_symprfx"
12851 else
12852 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12853 fi
12854 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12855
12856 # Check to see that the pipe works correctly.
12857 pipe_works=no
12858
12859 rm -f conftest*
12860 cat > conftest.$ac_ext <<_LT_EOF
12861 #ifdef __cplusplus
12862 extern "C" {
12863 #endif
12864 char nm_test_var;
12865 void nm_test_func(void);
12866 void nm_test_func(void){}
12867 #ifdef __cplusplus
12868 }
12869 #endif
12870 int main(){nm_test_var='a';nm_test_func();return(0);}
12871 _LT_EOF
12872
12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12874 (eval $ac_compile) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; then
12878 # Now try to grab the symbols.
12879 nlist=conftest.nm
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; } && test -s "$nlist"; then
12885 # Try sorting and uniquifying the output.
12886 if sort "$nlist" | uniq > "$nlist"T; then
12887 mv -f "$nlist"T "$nlist"
12888 else
12889 rm -f "$nlist"T
12890 fi
12891
12892 # Make sure that we snagged all the symbols we need.
12893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12895 cat <<_LT_EOF > conftest.$ac_ext
12896 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12897 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12898 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12899 relocations are performed -- see ld's documentation on pseudo-relocs. */
12900 # define LT_DLSYM_CONST
12901 #elif defined __osf__
12902 /* This system does not cope well with relocations in const data. */
12903 # define LT_DLSYM_CONST
12904 #else
12905 # define LT_DLSYM_CONST const
12906 #endif
12907
12908 #ifdef __cplusplus
12909 extern "C" {
12910 #endif
12911
12912 _LT_EOF
12913 # Now generate the symbol file.
12914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12915
12916 cat <<_LT_EOF >> conftest.$ac_ext
12917
12918 /* The mapping between symbol names and symbols. */
12919 LT_DLSYM_CONST struct {
12920 const char *name;
12921 void *address;
12922 }
12923 lt__PROGRAM__LTX_preloaded_symbols[] =
12924 {
12925 { "@PROGRAM@", (void *) 0 },
12926 _LT_EOF
12927 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12928 cat <<\_LT_EOF >> conftest.$ac_ext
12929 {0, (void *) 0}
12930 };
12931
12932 /* This works around a problem in FreeBSD linker */
12933 #ifdef FREEBSD_WORKAROUND
12934 static const void *lt_preloaded_setup() {
12935 return lt__PROGRAM__LTX_preloaded_symbols;
12936 }
12937 #endif
12938
12939 #ifdef __cplusplus
12940 }
12941 #endif
12942 _LT_EOF
12943 # Now try linking the two files.
12944 mv conftest.$ac_objext conftstm.$ac_objext
12945 lt_globsym_save_LIBS=$LIBS
12946 lt_globsym_save_CFLAGS=$CFLAGS
12947 LIBS=conftstm.$ac_objext
12948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12950 (eval $ac_link) 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12954 pipe_works=yes
12955 fi
12956 LIBS=$lt_globsym_save_LIBS
12957 CFLAGS=$lt_globsym_save_CFLAGS
12958 else
12959 echo "cannot find nm_test_func in $nlist" >&5
12960 fi
12961 else
12962 echo "cannot find nm_test_var in $nlist" >&5
12963 fi
12964 else
12965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12966 fi
12967 else
12968 echo "$progname: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 fi
12971 rm -rf conftest* conftst*
12972
12973 # Do not use the global_symbol_pipe unless it works.
12974 if test yes = "$pipe_works"; then
12975 break
12976 else
12977 lt_cv_sys_global_symbol_pipe=
12978 fi
12979 done
12980
12981 fi
12982
12983 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12984 lt_cv_sys_global_symbol_to_cdecl=
12985 fi
12986 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12988 $as_echo "failed" >&6; }
12989 else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12991 $as_echo "ok" >&6; }
12992 fi
12993
12994 # Response file support.
12995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12996 nm_file_list_spec='@'
12997 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12998 nm_file_list_spec='@'
12999 fi
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13038 $as_echo_n "checking for sysroot... " >&6; }
13039
13040 # Check whether --with-sysroot was given.
13041 if test "${with_sysroot+set}" = set; then :
13042 withval=$with_sysroot;
13043 else
13044 with_sysroot=no
13045 fi
13046
13047
13048 lt_sysroot=
13049 case $with_sysroot in #(
13050 yes)
13051 if test yes = "$GCC"; then
13052 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13053 fi
13054 ;; #(
13055 /*)
13056 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13057 ;; #(
13058 no|'')
13059 ;; #(
13060 *)
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13062 $as_echo "$with_sysroot" >&6; }
13063 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13064 ;;
13065 esac
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13068 $as_echo "${lt_sysroot:-no}" >&6; }
13069
13070
13071
13072
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13075 $as_echo_n "checking for a working dd... " >&6; }
13076 if ${ac_cv_path_lt_DD+:} false; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 printf 0123456789abcdef0123456789abcdef >conftest.i
13080 cat conftest.i conftest.i >conftest2.i
13081 : ${lt_DD:=$DD}
13082 if test -z "$lt_DD"; then
13083 ac_path_lt_DD_found=false
13084 # Loop through the user's path and test for each of PROGNAME-LIST
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13087 do
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_prog in dd; do
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13093 as_fn_executable_p "$ac_path_lt_DD" || continue
13094 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13095 cmp -s conftest.i conftest.out \
13096 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13097 fi
13098 $ac_path_lt_DD_found && break 3
13099 done
13100 done
13101 done
13102 IFS=$as_save_IFS
13103 if test -z "$ac_cv_path_lt_DD"; then
13104 :
13105 fi
13106 else
13107 ac_cv_path_lt_DD=$lt_DD
13108 fi
13109
13110 rm -f conftest.i conftest2.i conftest.out
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13113 $as_echo "$ac_cv_path_lt_DD" >&6; }
13114
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13117 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13118 if ${lt_cv_truncate_bin+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 printf 0123456789abcdef0123456789abcdef >conftest.i
13122 cat conftest.i conftest.i >conftest2.i
13123 lt_cv_truncate_bin=
13124 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13125 cmp -s conftest.i conftest.out \
13126 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13127 fi
13128 rm -f conftest.i conftest2.i conftest.out
13129 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13132 $as_echo "$lt_cv_truncate_bin" >&6; }
13133
13134
13135
13136
13137
13138
13139
13140 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13141 func_cc_basename ()
13142 {
13143 for cc_temp in $*""; do
13144 case $cc_temp in
13145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13147 \-*) ;;
13148 *) break;;
13149 esac
13150 done
13151 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13152 }
13153
13154 # Check whether --enable-libtool-lock was given.
13155 if test "${enable_libtool_lock+set}" = set; then :
13156 enableval=$enable_libtool_lock;
13157 fi
13158
13159 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13160
13161 # Some flags need to be propagated to the compiler or linker for good
13162 # libtool support.
13163 case $host in
13164 ia64-*-hpux*)
13165 # Find out what ABI is being produced by ac_compile, and set mode
13166 # options accordingly.
13167 echo 'int i;' > conftest.$ac_ext
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; }; then
13173 case `/usr/bin/file conftest.$ac_objext` in
13174 *ELF-32*)
13175 HPUX_IA64_MODE=32
13176 ;;
13177 *ELF-64*)
13178 HPUX_IA64_MODE=64
13179 ;;
13180 esac
13181 fi
13182 rm -rf conftest*
13183 ;;
13184 *-*-irix6*)
13185 # Find out what ABI is being produced by ac_compile, and set linker
13186 # options accordingly.
13187 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13189 (eval $ac_compile) 2>&5
13190 ac_status=$?
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; }; then
13193 if test yes = "$lt_cv_prog_gnu_ld"; then
13194 case `/usr/bin/file conftest.$ac_objext` in
13195 *32-bit*)
13196 LD="${LD-ld} -melf32bsmip"
13197 ;;
13198 *N32*)
13199 LD="${LD-ld} -melf32bmipn32"
13200 ;;
13201 *64-bit*)
13202 LD="${LD-ld} -melf64bmip"
13203 ;;
13204 esac
13205 else
13206 case `/usr/bin/file conftest.$ac_objext` in
13207 *32-bit*)
13208 LD="${LD-ld} -32"
13209 ;;
13210 *N32*)
13211 LD="${LD-ld} -n32"
13212 ;;
13213 *64-bit*)
13214 LD="${LD-ld} -64"
13215 ;;
13216 esac
13217 fi
13218 fi
13219 rm -rf conftest*
13220 ;;
13221
13222 mips64*-*linux*)
13223 # Find out what ABI is being produced by ac_compile, and set linker
13224 # options accordingly.
13225 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13227 (eval $ac_compile) 2>&5
13228 ac_status=$?
13229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230 test $ac_status = 0; }; then
13231 emul=elf
13232 case `/usr/bin/file conftest.$ac_objext` in
13233 *32-bit*)
13234 emul="${emul}32"
13235 ;;
13236 *64-bit*)
13237 emul="${emul}64"
13238 ;;
13239 esac
13240 case `/usr/bin/file conftest.$ac_objext` in
13241 *MSB*)
13242 emul="${emul}btsmip"
13243 ;;
13244 *LSB*)
13245 emul="${emul}ltsmip"
13246 ;;
13247 esac
13248 case `/usr/bin/file conftest.$ac_objext` in
13249 *N32*)
13250 emul="${emul}n32"
13251 ;;
13252 esac
13253 LD="${LD-ld} -m $emul"
13254 fi
13255 rm -rf conftest*
13256 ;;
13257
13258 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13259 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13260 # Find out what ABI is being produced by ac_compile, and set linker
13261 # options accordingly. Note that the listed cases only cover the
13262 # situations where additional linker options are needed (such as when
13263 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13264 # vice versa); the common cases where no linker options are needed do
13265 # not appear in the list.
13266 echo 'int i;' > conftest.$ac_ext
13267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13268 (eval $ac_compile) 2>&5
13269 ac_status=$?
13270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271 test $ac_status = 0; }; then
13272 case `/usr/bin/file conftest.o` in
13273 *32-bit*)
13274 case $host in
13275 x86_64-*kfreebsd*-gnu)
13276 LD="${LD-ld} -m elf_i386_fbsd"
13277 ;;
13278 x86_64-*linux*)
13279 case `/usr/bin/file conftest.o` in
13280 *x86-64*)
13281 LD="${LD-ld} -m elf32_x86_64"
13282 ;;
13283 *)
13284 LD="${LD-ld} -m elf_i386"
13285 ;;
13286 esac
13287 ;;
13288 powerpc64le-*linux*)
13289 LD="${LD-ld} -m elf32lppclinux"
13290 ;;
13291 powerpc64-*linux*)
13292 LD="${LD-ld} -m elf32ppclinux"
13293 ;;
13294 s390x-*linux*)
13295 LD="${LD-ld} -m elf_s390"
13296 ;;
13297 sparc64-*linux*)
13298 LD="${LD-ld} -m elf32_sparc"
13299 ;;
13300 esac
13301 ;;
13302 *64-bit*)
13303 case $host in
13304 x86_64-*kfreebsd*-gnu)
13305 LD="${LD-ld} -m elf_x86_64_fbsd"
13306 ;;
13307 x86_64-*linux*)
13308 LD="${LD-ld} -m elf_x86_64"
13309 ;;
13310 powerpcle-*linux*)
13311 LD="${LD-ld} -m elf64lppc"
13312 ;;
13313 powerpc-*linux*)
13314 LD="${LD-ld} -m elf64ppc"
13315 ;;
13316 s390*-*linux*|s390*-*tpf*)
13317 LD="${LD-ld} -m elf64_s390"
13318 ;;
13319 sparc*-*linux*)
13320 LD="${LD-ld} -m elf64_sparc"
13321 ;;
13322 esac
13323 ;;
13324 esac
13325 fi
13326 rm -rf conftest*
13327 ;;
13328
13329 *-*-sco3.2v5*)
13330 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13331 SAVE_CFLAGS=$CFLAGS
13332 CFLAGS="$CFLAGS -belf"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13334 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13335 if ${lt_cv_cc_needs_belf+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 ac_ext=c
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346
13347 int
13348 main ()
13349 {
13350
13351 ;
13352 return 0;
13353 }
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 lt_cv_cc_needs_belf=yes
13357 else
13358 lt_cv_cc_needs_belf=no
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13362 ac_ext=c
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13367
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13370 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13371 if test yes != "$lt_cv_cc_needs_belf"; then
13372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13373 CFLAGS=$SAVE_CFLAGS
13374 fi
13375 ;;
13376 *-*solaris*)
13377 # Find out what ABI is being produced by ac_compile, and set linker
13378 # options accordingly.
13379 echo 'int i;' > conftest.$ac_ext
13380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13381 (eval $ac_compile) 2>&5
13382 ac_status=$?
13383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384 test $ac_status = 0; }; then
13385 case `/usr/bin/file conftest.o` in
13386 *64-bit*)
13387 case $lt_cv_prog_gnu_ld in
13388 yes*)
13389 case $host in
13390 i?86-*-solaris*|x86_64-*-solaris*)
13391 LD="${LD-ld} -m elf_x86_64"
13392 ;;
13393 sparc*-*-solaris*)
13394 LD="${LD-ld} -m elf64_sparc"
13395 ;;
13396 esac
13397 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13398 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13399 LD=${LD-ld}_sol2
13400 fi
13401 ;;
13402 *)
13403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13404 LD="${LD-ld} -64"
13405 fi
13406 ;;
13407 esac
13408 ;;
13409 esac
13410 fi
13411 rm -rf conftest*
13412 ;;
13413 esac
13414
13415 need_locks=$enable_libtool_lock
13416
13417 if test -n "$ac_tool_prefix"; then
13418 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13419 set dummy ${ac_tool_prefix}mt; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test -n "$MANIFEST_TOOL"; then
13426 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 break 2
13438 fi
13439 done
13440 done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13446 if test -n "$MANIFEST_TOOL"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13448 $as_echo "$MANIFEST_TOOL" >&6; }
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455 fi
13456 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13457 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13458 # Extract the first word of "mt", so it can be a program name with args.
13459 set dummy mt; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -n "$ac_ct_MANIFEST_TOOL"; then
13466 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13486 if test -n "$ac_ct_MANIFEST_TOOL"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13488 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 fi
13493
13494 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13495 MANIFEST_TOOL=":"
13496 else
13497 case $cross_compiling:$ac_tool_warned in
13498 yes:)
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501 ac_tool_warned=yes ;;
13502 esac
13503 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13504 fi
13505 else
13506 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13507 fi
13508
13509 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13511 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13512 if ${lt_cv_path_mainfest_tool+:} false; then :
13513 $as_echo_n "(cached) " >&6
13514 else
13515 lt_cv_path_mainfest_tool=no
13516 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13517 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13518 cat conftest.err >&5
13519 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13520 lt_cv_path_mainfest_tool=yes
13521 fi
13522 rm -f conftest*
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13525 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13526 if test yes != "$lt_cv_path_mainfest_tool"; then
13527 MANIFEST_TOOL=:
13528 fi
13529
13530
13531
13532
13533
13534
13535 case $host_os in
13536 rhapsody* | darwin*)
13537 if test -n "$ac_tool_prefix"; then
13538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 if test -n "$DSYMUTIL"; then
13546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559 done
13560 done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13566 if test -n "$DSYMUTIL"; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13568 $as_echo "$DSYMUTIL" >&6; }
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573
13574
13575 fi
13576 if test -z "$ac_cv_prog_DSYMUTIL"; then
13577 ac_ct_DSYMUTIL=$DSYMUTIL
13578 # Extract the first word of "dsymutil", so it can be a program name with args.
13579 set dummy dsymutil; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$ac_ct_DSYMUTIL"; then
13586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13590 do
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13598 fi
13599 done
13600 done
13601 IFS=$as_save_IFS
13602
13603 fi
13604 fi
13605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13606 if test -n "$ac_ct_DSYMUTIL"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13612 fi
13613
13614 if test "x$ac_ct_DSYMUTIL" = x; then
13615 DSYMUTIL=":"
13616 else
13617 case $cross_compiling:$ac_tool_warned in
13618 yes:)
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13621 ac_tool_warned=yes ;;
13622 esac
13623 DSYMUTIL=$ac_ct_DSYMUTIL
13624 fi
13625 else
13626 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13627 fi
13628
13629 if test -n "$ac_tool_prefix"; then
13630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if ${ac_cv_prog_NMEDIT+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$NMEDIT"; then
13638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 NMEDIT=$ac_cv_prog_NMEDIT
13658 if test -n "$NMEDIT"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13660 $as_echo "$NMEDIT" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664 fi
13665
13666
13667 fi
13668 if test -z "$ac_cv_prog_NMEDIT"; then
13669 ac_ct_NMEDIT=$NMEDIT
13670 # Extract the first word of "nmedit", so it can be a program name with args.
13671 set dummy nmedit; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test -n "$ac_ct_NMEDIT"; then
13678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13679 else
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13682 do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691 done
13692 done
13693 IFS=$as_save_IFS
13694
13695 fi
13696 fi
13697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13698 if test -n "$ac_ct_NMEDIT"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13700 $as_echo "$ac_ct_NMEDIT" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13704 fi
13705
13706 if test "x$ac_ct_NMEDIT" = x; then
13707 NMEDIT=":"
13708 else
13709 case $cross_compiling:$ac_tool_warned in
13710 yes:)
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13713 ac_tool_warned=yes ;;
13714 esac
13715 NMEDIT=$ac_ct_NMEDIT
13716 fi
13717 else
13718 NMEDIT="$ac_cv_prog_NMEDIT"
13719 fi
13720
13721 if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if ${ac_cv_prog_LIPO+:} false; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$LIPO"; then
13730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 LIPO=$ac_cv_prog_LIPO
13750 if test -n "$LIPO"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13752 $as_echo "$LIPO" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758
13759 fi
13760 if test -z "$ac_cv_prog_LIPO"; then
13761 ac_ct_LIPO=$LIPO
13762 # Extract the first word of "lipo", so it can be a program name with args.
13763 set dummy lipo; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$ac_ct_LIPO"; then
13770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779 ac_cv_prog_ac_ct_LIPO="lipo"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13790 if test -n "$ac_ct_LIPO"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13792 $as_echo "$ac_ct_LIPO" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798 if test "x$ac_ct_LIPO" = x; then
13799 LIPO=":"
13800 else
13801 case $cross_compiling:$ac_tool_warned in
13802 yes:)
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13805 ac_tool_warned=yes ;;
13806 esac
13807 LIPO=$ac_ct_LIPO
13808 fi
13809 else
13810 LIPO="$ac_cv_prog_LIPO"
13811 fi
13812
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}otool; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_OTOOL+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$OTOOL"; then
13822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 OTOOL=$ac_cv_prog_OTOOL
13842 if test -n "$OTOOL"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13844 $as_echo "$OTOOL" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$ac_cv_prog_OTOOL"; then
13853 ac_ct_OTOOL=$OTOOL
13854 # Extract the first word of "otool", so it can be a program name with args.
13855 set dummy otool; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 if test -n "$ac_ct_OTOOL"; then
13862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867 IFS=$as_save_IFS
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13871 ac_cv_prog_ac_ct_OTOOL="otool"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 break 2
13874 fi
13875 done
13876 done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13882 if test -n "$ac_ct_OTOOL"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13884 $as_echo "$ac_ct_OTOOL" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890 if test "x$ac_ct_OTOOL" = x; then
13891 OTOOL=":"
13892 else
13893 case $cross_compiling:$ac_tool_warned in
13894 yes:)
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13897 ac_tool_warned=yes ;;
13898 esac
13899 OTOOL=$ac_ct_OTOOL
13900 fi
13901 else
13902 OTOOL="$ac_cv_prog_OTOOL"
13903 fi
13904
13905 if test -n "$ac_tool_prefix"; then
13906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13907 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_prog_OTOOL64+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$OTOOL64"; then
13914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 OTOOL64=$ac_cv_prog_OTOOL64
13934 if test -n "$OTOOL64"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13936 $as_echo "$OTOOL64" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942
13943 fi
13944 if test -z "$ac_cv_prog_OTOOL64"; then
13945 ac_ct_OTOOL64=$OTOOL64
13946 # Extract the first word of "otool64", so it can be a program name with args.
13947 set dummy otool64; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$ac_ct_OTOOL64"; then
13954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13958 do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13963 ac_cv_prog_ac_ct_OTOOL64="otool64"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967 done
13968 done
13969 IFS=$as_save_IFS
13970
13971 fi
13972 fi
13973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13974 if test -n "$ac_ct_OTOOL64"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13976 $as_echo "$ac_ct_OTOOL64" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13980 fi
13981
13982 if test "x$ac_ct_OTOOL64" = x; then
13983 OTOOL64=":"
13984 else
13985 case $cross_compiling:$ac_tool_warned in
13986 yes:)
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13989 ac_tool_warned=yes ;;
13990 esac
13991 OTOOL64=$ac_ct_OTOOL64
13992 fi
13993 else
13994 OTOOL64="$ac_cv_prog_OTOOL64"
13995 fi
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14024 $as_echo_n "checking for -single_module linker flag... " >&6; }
14025 if ${lt_cv_apple_cc_single_mod+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 lt_cv_apple_cc_single_mod=no
14029 if test -z "$LT_MULTI_MODULE"; then
14030 # By default we will add the -single_module flag. You can override
14031 # by either setting the environment variable LT_MULTI_MODULE
14032 # non-empty at configure time, or by adding -multi_module to the
14033 # link flags.
14034 rm -rf libconftest.dylib*
14035 echo "int foo(void){return 1;}" > conftest.c
14036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14037 -dynamiclib -Wl,-single_module conftest.c" >&5
14038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14040 _lt_result=$?
14041 # If there is a non-empty error log, and "single_module"
14042 # appears in it, assume the flag caused a linker warning
14043 if test -s conftest.err && $GREP single_module conftest.err; then
14044 cat conftest.err >&5
14045 # Otherwise, if the output was created with a 0 exit code from
14046 # the compiler, it worked.
14047 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14048 lt_cv_apple_cc_single_mod=yes
14049 else
14050 cat conftest.err >&5
14051 fi
14052 rm -rf libconftest.dylib*
14053 rm -f conftest.*
14054 fi
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14057 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14060 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14061 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 lt_cv_ld_exported_symbols_list=no
14065 save_LDFLAGS=$LDFLAGS
14066 echo "_main" > conftest.sym
14067 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 int
14072 main ()
14073 {
14074
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 lt_cv_ld_exported_symbols_list=yes
14081 else
14082 lt_cv_ld_exported_symbols_list=no
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 LDFLAGS=$save_LDFLAGS
14087
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14090 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14091
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14093 $as_echo_n "checking for -force_load linker flag... " >&6; }
14094 if ${lt_cv_ld_force_load+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 lt_cv_ld_force_load=no
14098 cat > conftest.c << _LT_EOF
14099 int forced_loaded() { return 2;}
14100 _LT_EOF
14101 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14102 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14103 echo "$AR cru libconftest.a conftest.o" >&5
14104 $AR cru libconftest.a conftest.o 2>&5
14105 echo "$RANLIB libconftest.a" >&5
14106 $RANLIB libconftest.a 2>&5
14107 cat > conftest.c << _LT_EOF
14108 int main() { return 0;}
14109 _LT_EOF
14110 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14111 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14112 _lt_result=$?
14113 if test -s conftest.err && $GREP force_load conftest.err; then
14114 cat conftest.err >&5
14115 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14116 lt_cv_ld_force_load=yes
14117 else
14118 cat conftest.err >&5
14119 fi
14120 rm -f conftest.err libconftest.a conftest conftest.c
14121 rm -rf conftest.dSYM
14122
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14125 $as_echo "$lt_cv_ld_force_load" >&6; }
14126 case $host_os in
14127 rhapsody* | darwin1.[012])
14128 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14129 darwin1.*)
14130 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14131 darwin*) # darwin 5.x on
14132 # if running on 10.5 or later, the deployment target defaults
14133 # to the OS version, if on x86, and 10.4, the deployment
14134 # target defaults to 10.4. Don't you love it?
14135 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14136 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14137 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14138 10.[012][,.]*)
14139 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14140 10.*)
14141 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14142 esac
14143 ;;
14144 esac
14145 if test yes = "$lt_cv_apple_cc_single_mod"; then
14146 _lt_dar_single_mod='$single_module'
14147 fi
14148 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14149 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14150 else
14151 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14152 fi
14153 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14154 _lt_dsymutil='~$DSYMUTIL $lib || :'
14155 else
14156 _lt_dsymutil=
14157 fi
14158 ;;
14159 esac
14160
14161 # func_munge_path_list VARIABLE PATH
14162 # -----------------------------------
14163 # VARIABLE is name of variable containing _space_ separated list of
14164 # directories to be munged by the contents of PATH, which is string
14165 # having a format:
14166 # "DIR[:DIR]:"
14167 # string "DIR[ DIR]" will be prepended to VARIABLE
14168 # ":DIR[:DIR]"
14169 # string "DIR[ DIR]" will be appended to VARIABLE
14170 # "DIRP[:DIRP]::[DIRA:]DIRA"
14171 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14172 # "DIRA[ DIRA]" will be appended to VARIABLE
14173 # "DIR[:DIR]"
14174 # VARIABLE will be replaced by "DIR[ DIR]"
14175 func_munge_path_list ()
14176 {
14177 case x$2 in
14178 x)
14179 ;;
14180 *:)
14181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14182 ;;
14183 x:*)
14184 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14185 ;;
14186 *::*)
14187 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14188 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14189 ;;
14190 *)
14191 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14192 ;;
14193 esac
14194 }
14195
14196 for ac_header in dlfcn.h
14197 do :
14198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14199 "
14200 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_DLFCN_H 1
14203 _ACEOF
14204
14205 fi
14206
14207 done
14208
14209
14210
14211
14212
14213 # Set options
14214
14215
14216
14217 enable_dlopen=no
14218
14219
14220 enable_win32_dll=no
14221
14222
14223 # Check whether --enable-shared was given.
14224 if test "${enable_shared+set}" = set; then :
14225 enableval=$enable_shared; p=${PACKAGE-default}
14226 case $enableval in
14227 yes) enable_shared=yes ;;
14228 no) enable_shared=no ;;
14229 *)
14230 enable_shared=no
14231 # Look at the argument we got. We use all the common list separators.
14232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14233 for pkg in $enableval; do
14234 IFS=$lt_save_ifs
14235 if test "X$pkg" = "X$p"; then
14236 enable_shared=yes
14237 fi
14238 done
14239 IFS=$lt_save_ifs
14240 ;;
14241 esac
14242 else
14243 enable_shared=yes
14244 fi
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256 # Check whether --with-pic was given.
14257 if test "${with_pic+set}" = set; then :
14258 withval=$with_pic; lt_p=${PACKAGE-default}
14259 case $withval in
14260 yes|no) pic_mode=$withval ;;
14261 *)
14262 pic_mode=default
14263 # Look at the argument we got. We use all the common list separators.
14264 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14265 for lt_pkg in $withval; do
14266 IFS=$lt_save_ifs
14267 if test "X$lt_pkg" = "X$lt_p"; then
14268 pic_mode=yes
14269 fi
14270 done
14271 IFS=$lt_save_ifs
14272 ;;
14273 esac
14274 else
14275 pic_mode=default
14276 fi
14277
14278
14279
14280
14281
14282
14283
14284
14285 # Check whether --enable-fast-install was given.
14286 if test "${enable_fast_install+set}" = set; then :
14287 enableval=$enable_fast_install; p=${PACKAGE-default}
14288 case $enableval in
14289 yes) enable_fast_install=yes ;;
14290 no) enable_fast_install=no ;;
14291 *)
14292 enable_fast_install=no
14293 # Look at the argument we got. We use all the common list separators.
14294 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14295 for pkg in $enableval; do
14296 IFS=$lt_save_ifs
14297 if test "X$pkg" = "X$p"; then
14298 enable_fast_install=yes
14299 fi
14300 done
14301 IFS=$lt_save_ifs
14302 ;;
14303 esac
14304 else
14305 enable_fast_install=yes
14306 fi
14307
14308
14309
14310
14311
14312
14313
14314
14315 shared_archive_member_spec=
14316 case $host,$enable_shared in
14317 power*-*-aix[5-9]*,yes)
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14319 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14320
14321 # Check whether --with-aix-soname was given.
14322 if test "${with_aix_soname+set}" = set; then :
14323 withval=$with_aix_soname; case $withval in
14324 aix|svr4|both)
14325 ;;
14326 *)
14327 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14328 ;;
14329 esac
14330 lt_cv_with_aix_soname=$with_aix_soname
14331 else
14332 if ${lt_cv_with_aix_soname+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 lt_cv_with_aix_soname=aix
14336 fi
14337
14338 with_aix_soname=$lt_cv_with_aix_soname
14339 fi
14340
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14342 $as_echo "$with_aix_soname" >&6; }
14343 if test aix != "$with_aix_soname"; then
14344 # For the AIX way of multilib, we name the shared archive member
14345 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14346 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14347 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14348 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14349 if test 64 = "${OBJECT_MODE-32}"; then
14350 shared_archive_member_spec=shr_64
14351 else
14352 shared_archive_member_spec=shr
14353 fi
14354 fi
14355 ;;
14356 *)
14357 with_aix_soname=aix
14358 ;;
14359 esac
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370 # This can be used to rebuild libtool when needed
14371 LIBTOOL_DEPS=$ltmain
14372
14373 # Always use our own libtool.
14374 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405 test -z "$LN_S" && LN_S="ln -s"
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420 if test -n "${ZSH_VERSION+set}"; then
14421 setopt NO_GLOB_SUBST
14422 fi
14423
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14425 $as_echo_n "checking for objdir... " >&6; }
14426 if ${lt_cv_objdir+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 rm -f .libs 2>/dev/null
14430 mkdir .libs 2>/dev/null
14431 if test -d .libs; then
14432 lt_cv_objdir=.libs
14433 else
14434 # MS-DOS does not allow filenames that begin with a dot.
14435 lt_cv_objdir=_libs
14436 fi
14437 rmdir .libs 2>/dev/null
14438 fi
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14440 $as_echo "$lt_cv_objdir" >&6; }
14441 objdir=$lt_cv_objdir
14442
14443
14444
14445
14446
14447 cat >>confdefs.h <<_ACEOF
14448 #define LT_OBJDIR "$lt_cv_objdir/"
14449 _ACEOF
14450
14451
14452
14453
14454 case $host_os in
14455 aix3*)
14456 # AIX sometimes has problems with the GCC collect2 program. For some
14457 # reason, if we set the COLLECT_NAMES environment variable, the problems
14458 # vanish in a puff of smoke.
14459 if test set != "${COLLECT_NAMES+set}"; then
14460 COLLECT_NAMES=
14461 export COLLECT_NAMES
14462 fi
14463 ;;
14464 esac
14465
14466 # Global variables:
14467 ofile=libtool
14468 can_build_shared=yes
14469
14470 # All known linkers require a '.a' archive for static linking (except MSVC,
14471 # which needs '.lib').
14472 libext=a
14473
14474 with_gnu_ld=$lt_cv_prog_gnu_ld
14475
14476 old_CC=$CC
14477 old_CFLAGS=$CFLAGS
14478
14479 # Set sane defaults for various variables
14480 test -z "$CC" && CC=cc
14481 test -z "$LTCC" && LTCC=$CC
14482 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14483 test -z "$LD" && LD=ld
14484 test -z "$ac_objext" && ac_objext=o
14485
14486 func_cc_basename $compiler
14487 cc_basename=$func_cc_basename_result
14488
14489
14490 # Only perform the check for file, if the check method requires it
14491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14492 case $deplibs_check_method in
14493 file_magic*)
14494 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14496 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14497 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 case $MAGIC_CMD in
14501 [\\/*] | ?:[\\/]*)
14502 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14503 ;;
14504 *)
14505 lt_save_MAGIC_CMD=$MAGIC_CMD
14506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14507 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14508 for ac_dir in $ac_dummy; do
14509 IFS=$lt_save_ifs
14510 test -z "$ac_dir" && ac_dir=.
14511 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14512 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14513 if test -n "$file_magic_test_file"; then
14514 case $deplibs_check_method in
14515 "file_magic "*)
14516 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14517 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14519 $EGREP "$file_magic_regex" > /dev/null; then
14520 :
14521 else
14522 cat <<_LT_EOF 1>&2
14523
14524 *** Warning: the command libtool uses to detect shared libraries,
14525 *** $file_magic_cmd, produces output that libtool cannot recognize.
14526 *** The result is that libtool may fail to recognize shared libraries
14527 *** as such. This will affect the creation of libtool libraries that
14528 *** depend on shared libraries, but programs linked with such libtool
14529 *** libraries will work regardless of this problem. Nevertheless, you
14530 *** may want to report the problem to your system manager and/or to
14531 *** bug-libtool (at] gnu.org
14532
14533 _LT_EOF
14534 fi ;;
14535 esac
14536 fi
14537 break
14538 fi
14539 done
14540 IFS=$lt_save_ifs
14541 MAGIC_CMD=$lt_save_MAGIC_CMD
14542 ;;
14543 esac
14544 fi
14545
14546 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14547 if test -n "$MAGIC_CMD"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14549 $as_echo "$MAGIC_CMD" >&6; }
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 $as_echo "no" >&6; }
14553 fi
14554
14555
14556
14557
14558
14559 if test -z "$lt_cv_path_MAGIC_CMD"; then
14560 if test -n "$ac_tool_prefix"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14562 $as_echo_n "checking for file... " >&6; }
14563 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 case $MAGIC_CMD in
14567 [\\/*] | ?:[\\/]*)
14568 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14569 ;;
14570 *)
14571 lt_save_MAGIC_CMD=$MAGIC_CMD
14572 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14574 for ac_dir in $ac_dummy; do
14575 IFS=$lt_save_ifs
14576 test -z "$ac_dir" && ac_dir=.
14577 if test -f "$ac_dir/file"; then
14578 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14579 if test -n "$file_magic_test_file"; then
14580 case $deplibs_check_method in
14581 "file_magic "*)
14582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14583 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14585 $EGREP "$file_magic_regex" > /dev/null; then
14586 :
14587 else
14588 cat <<_LT_EOF 1>&2
14589
14590 *** Warning: the command libtool uses to detect shared libraries,
14591 *** $file_magic_cmd, produces output that libtool cannot recognize.
14592 *** The result is that libtool may fail to recognize shared libraries
14593 *** as such. This will affect the creation of libtool libraries that
14594 *** depend on shared libraries, but programs linked with such libtool
14595 *** libraries will work regardless of this problem. Nevertheless, you
14596 *** may want to report the problem to your system manager and/or to
14597 *** bug-libtool (at] gnu.org
14598
14599 _LT_EOF
14600 fi ;;
14601 esac
14602 fi
14603 break
14604 fi
14605 done
14606 IFS=$lt_save_ifs
14607 MAGIC_CMD=$lt_save_MAGIC_CMD
14608 ;;
14609 esac
14610 fi
14611
14612 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14613 if test -n "$MAGIC_CMD"; then
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14615 $as_echo "$MAGIC_CMD" >&6; }
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 $as_echo "no" >&6; }
14619 fi
14620
14621
14622 else
14623 MAGIC_CMD=:
14624 fi
14625 fi
14626
14627 fi
14628 ;;
14629 esac
14630
14631 # Use C for the default configuration in the libtool script
14632
14633 lt_save_CC=$CC
14634 ac_ext=c
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14639
14640
14641 # Source file extension for C test sources.
14642 ac_ext=c
14643
14644 # Object file extension for compiled C test sources.
14645 objext=o
14646 objext=$objext
14647
14648 # Code to be used in simple compile tests
14649 lt_simple_compile_test_code="int some_variable = 0;"
14650
14651 # Code to be used in simple link tests
14652 lt_simple_link_test_code='int main(){return(0);}'
14653
14654
14655
14656
14657
14658
14659
14660 # If no C compiler was specified, use CC.
14661 LTCC=${LTCC-"$CC"}
14662
14663 # If no C compiler flags were specified, use CFLAGS.
14664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14665
14666 # Allow CC to be a program name with arguments.
14667 compiler=$CC
14668
14669 # Save the default compiler, since it gets overwritten when the other
14670 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14671 compiler_DEFAULT=$CC
14672
14673 # save warnings/boilerplate of simple test code
14674 ac_outfile=conftest.$ac_objext
14675 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14676 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14677 _lt_compiler_boilerplate=`cat conftest.err`
14678 $RM conftest*
14679
14680 ac_outfile=conftest.$ac_objext
14681 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14682 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14683 _lt_linker_boilerplate=`cat conftest.err`
14684 $RM -r conftest*
14685
14686
14687 if test -n "$compiler"; then
14688
14689 lt_prog_compiler_no_builtin_flag=
14690
14691 if test yes = "$GCC"; then
14692 case $cc_basename in
14693 nvcc*)
14694 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14695 *)
14696 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14697 esac
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14700 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14701 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 lt_cv_prog_compiler_rtti_exceptions=no
14705 ac_outfile=conftest.$ac_objext
14706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14707 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14708 # Insert the option either (1) after the last *FLAGS variable, or
14709 # (2) before a word containing "conftest.", or (3) at the end.
14710 # Note that $ac_compile itself does not contain backslashes and begins
14711 # with a dollar sign (not a hyphen), so the echo should work correctly.
14712 # The option is referenced via a variable to avoid confusing sed.
14713 lt_compile=`echo "$ac_compile" | $SED \
14714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716 -e 's:$: $lt_compiler_flag:'`
14717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14718 (eval "$lt_compile" 2>conftest.err)
14719 ac_status=$?
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 if (exit $ac_status) && test -s "$ac_outfile"; then
14723 # The compiler can only warn and ignore the option if not recognized
14724 # So say no if there are warnings other than the usual output.
14725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14728 lt_cv_prog_compiler_rtti_exceptions=yes
14729 fi
14730 fi
14731 $RM conftest*
14732
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14735 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14736
14737 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14738 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14739 else
14740 :
14741 fi
14742
14743 fi
14744
14745
14746
14747
14748
14749
14750 lt_prog_compiler_wl=
14751 lt_prog_compiler_pic=
14752 lt_prog_compiler_static=
14753
14754
14755 if test yes = "$GCC"; then
14756 lt_prog_compiler_wl='-Wl,'
14757 lt_prog_compiler_static='-static'
14758
14759 case $host_os in
14760 aix*)
14761 # All AIX code is PIC.
14762 if test ia64 = "$host_cpu"; then
14763 # AIX 5 now supports IA64 processor
14764 lt_prog_compiler_static='-Bstatic'
14765 fi
14766 lt_prog_compiler_pic='-fPIC'
14767 ;;
14768
14769 amigaos*)
14770 case $host_cpu in
14771 powerpc)
14772 # see comment about AmigaOS4 .so support
14773 lt_prog_compiler_pic='-fPIC'
14774 ;;
14775 m68k)
14776 # FIXME: we need at least 68020 code to build shared libraries, but
14777 # adding the '-m68020' flag to GCC prevents building anything better,
14778 # like '-m68040'.
14779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14780 ;;
14781 esac
14782 ;;
14783
14784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14785 # PIC is the default for these OSes.
14786 ;;
14787
14788 mingw* | cygwin* | pw32* | os2* | cegcc*)
14789 # This hack is so that the source file can tell whether it is being
14790 # built for inclusion in a dll (and should export symbols for example).
14791 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14792 # (--disable-auto-import) libraries
14793 lt_prog_compiler_pic='-DDLL_EXPORT'
14794 case $host_os in
14795 os2*)
14796 lt_prog_compiler_static='$wl-static'
14797 ;;
14798 esac
14799 ;;
14800
14801 darwin* | rhapsody*)
14802 # PIC is the default on this platform
14803 # Common symbols not allowed in MH_DYLIB files
14804 lt_prog_compiler_pic='-fno-common'
14805 ;;
14806
14807 haiku*)
14808 # PIC is the default for Haiku.
14809 # The "-static" flag exists, but is broken.
14810 lt_prog_compiler_static=
14811 ;;
14812
14813 hpux*)
14814 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14815 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14816 # sets the default TLS model and affects inlining.
14817 case $host_cpu in
14818 hppa*64*)
14819 # +Z the default
14820 ;;
14821 *)
14822 lt_prog_compiler_pic='-fPIC'
14823 ;;
14824 esac
14825 ;;
14826
14827 interix[3-9]*)
14828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14829 # Instead, we relocate shared libraries at runtime.
14830 ;;
14831
14832 msdosdjgpp*)
14833 # Just because we use GCC doesn't mean we suddenly get shared libraries
14834 # on systems that don't support them.
14835 lt_prog_compiler_can_build_shared=no
14836 enable_shared=no
14837 ;;
14838
14839 *nto* | *qnx*)
14840 # QNX uses GNU C++, but need to define -shared option too, otherwise
14841 # it will coredump.
14842 lt_prog_compiler_pic='-fPIC -shared'
14843 ;;
14844
14845 sysv4*MP*)
14846 if test -d /usr/nec; then
14847 lt_prog_compiler_pic=-Kconform_pic
14848 fi
14849 ;;
14850
14851 *)
14852 lt_prog_compiler_pic='-fPIC'
14853 ;;
14854 esac
14855
14856 case $cc_basename in
14857 nvcc*) # Cuda Compiler Driver 2.2
14858 lt_prog_compiler_wl='-Xlinker '
14859 if test -n "$lt_prog_compiler_pic"; then
14860 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14861 fi
14862 ;;
14863 esac
14864 else
14865 # PORTME Check for flag to pass linker flags through the system compiler.
14866 case $host_os in
14867 aix*)
14868 lt_prog_compiler_wl='-Wl,'
14869 if test ia64 = "$host_cpu"; then
14870 # AIX 5 now supports IA64 processor
14871 lt_prog_compiler_static='-Bstatic'
14872 else
14873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14874 fi
14875 ;;
14876
14877 darwin* | rhapsody*)
14878 # PIC is the default on this platform
14879 # Common symbols not allowed in MH_DYLIB files
14880 lt_prog_compiler_pic='-fno-common'
14881 case $cc_basename in
14882 nagfor*)
14883 # NAG Fortran compiler
14884 lt_prog_compiler_wl='-Wl,-Wl,,'
14885 lt_prog_compiler_pic='-PIC'
14886 lt_prog_compiler_static='-Bstatic'
14887 ;;
14888 esac
14889 ;;
14890
14891 mingw* | cygwin* | pw32* | os2* | cegcc*)
14892 # This hack is so that the source file can tell whether it is being
14893 # built for inclusion in a dll (and should export symbols for example).
14894 lt_prog_compiler_pic='-DDLL_EXPORT'
14895 case $host_os in
14896 os2*)
14897 lt_prog_compiler_static='$wl-static'
14898 ;;
14899 esac
14900 ;;
14901
14902 hpux9* | hpux10* | hpux11*)
14903 lt_prog_compiler_wl='-Wl,'
14904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905 # not for PA HP-UX.
14906 case $host_cpu in
14907 hppa*64*|ia64*)
14908 # +Z the default
14909 ;;
14910 *)
14911 lt_prog_compiler_pic='+Z'
14912 ;;
14913 esac
14914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915 lt_prog_compiler_static='$wl-a ${wl}archive'
14916 ;;
14917
14918 irix5* | irix6* | nonstopux*)
14919 lt_prog_compiler_wl='-Wl,'
14920 # PIC (with -KPIC) is the default.
14921 lt_prog_compiler_static='-non_shared'
14922 ;;
14923
14924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14925 case $cc_basename in
14926 # old Intel for x86_64, which still supported -KPIC.
14927 ecc*)
14928 lt_prog_compiler_wl='-Wl,'
14929 lt_prog_compiler_pic='-KPIC'
14930 lt_prog_compiler_static='-static'
14931 ;;
14932 # icc used to be incompatible with GCC.
14933 # ICC 10 doesn't accept -KPIC any more.
14934 icc* | ifort*)
14935 lt_prog_compiler_wl='-Wl,'
14936 lt_prog_compiler_pic='-fPIC'
14937 lt_prog_compiler_static='-static'
14938 ;;
14939 # Lahey Fortran 8.1.
14940 lf95*)
14941 lt_prog_compiler_wl='-Wl,'
14942 lt_prog_compiler_pic='--shared'
14943 lt_prog_compiler_static='--static'
14944 ;;
14945 nagfor*)
14946 # NAG Fortran compiler
14947 lt_prog_compiler_wl='-Wl,-Wl,,'
14948 lt_prog_compiler_pic='-PIC'
14949 lt_prog_compiler_static='-Bstatic'
14950 ;;
14951 tcc*)
14952 # Fabrice Bellard et al's Tiny C Compiler
14953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_pic='-fPIC'
14955 lt_prog_compiler_static='-static'
14956 ;;
14957 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14958 # Portland Group compilers (*not* the Pentium gcc compiler,
14959 # which looks to be a dead project)
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_pic='-fpic'
14962 lt_prog_compiler_static='-Bstatic'
14963 ;;
14964 ccc*)
14965 lt_prog_compiler_wl='-Wl,'
14966 # All Alpha code is PIC.
14967 lt_prog_compiler_static='-non_shared'
14968 ;;
14969 xl* | bgxl* | bgf* | mpixl*)
14970 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14971 lt_prog_compiler_wl='-Wl,'
14972 lt_prog_compiler_pic='-qpic'
14973 lt_prog_compiler_static='-qstaticlink'
14974 ;;
14975 *)
14976 case `$CC -V 2>&1 | sed 5q` in
14977 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14978 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14979 lt_prog_compiler_pic='-KPIC'
14980 lt_prog_compiler_static='-Bstatic'
14981 lt_prog_compiler_wl=''
14982 ;;
14983 *Sun\ F* | *Sun*Fortran*)
14984 lt_prog_compiler_pic='-KPIC'
14985 lt_prog_compiler_static='-Bstatic'
14986 lt_prog_compiler_wl='-Qoption ld '
14987 ;;
14988 *Sun\ C*)
14989 # Sun C 5.9
14990 lt_prog_compiler_pic='-KPIC'
14991 lt_prog_compiler_static='-Bstatic'
14992 lt_prog_compiler_wl='-Wl,'
14993 ;;
14994 *Intel*\ [CF]*Compiler*)
14995 lt_prog_compiler_wl='-Wl,'
14996 lt_prog_compiler_pic='-fPIC'
14997 lt_prog_compiler_static='-static'
14998 ;;
14999 *Portland\ Group*)
15000 lt_prog_compiler_wl='-Wl,'
15001 lt_prog_compiler_pic='-fpic'
15002 lt_prog_compiler_static='-Bstatic'
15003 ;;
15004 esac
15005 ;;
15006 esac
15007 ;;
15008
15009 newsos6)
15010 lt_prog_compiler_pic='-KPIC'
15011 lt_prog_compiler_static='-Bstatic'
15012 ;;
15013
15014 *nto* | *qnx*)
15015 # QNX uses GNU C++, but need to define -shared option too, otherwise
15016 # it will coredump.
15017 lt_prog_compiler_pic='-fPIC -shared'
15018 ;;
15019
15020 osf3* | osf4* | osf5*)
15021 lt_prog_compiler_wl='-Wl,'
15022 # All OSF/1 code is PIC.
15023 lt_prog_compiler_static='-non_shared'
15024 ;;
15025
15026 rdos*)
15027 lt_prog_compiler_static='-non_shared'
15028 ;;
15029
15030 solaris*)
15031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-Bstatic'
15033 case $cc_basename in
15034 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15035 lt_prog_compiler_wl='-Qoption ld ';;
15036 *)
15037 lt_prog_compiler_wl='-Wl,';;
15038 esac
15039 ;;
15040
15041 sunos4*)
15042 lt_prog_compiler_wl='-Qoption ld '
15043 lt_prog_compiler_pic='-PIC'
15044 lt_prog_compiler_static='-Bstatic'
15045 ;;
15046
15047 sysv4 | sysv4.2uw2* | sysv4.3*)
15048 lt_prog_compiler_wl='-Wl,'
15049 lt_prog_compiler_pic='-KPIC'
15050 lt_prog_compiler_static='-Bstatic'
15051 ;;
15052
15053 sysv4*MP*)
15054 if test -d /usr/nec; then
15055 lt_prog_compiler_pic='-Kconform_pic'
15056 lt_prog_compiler_static='-Bstatic'
15057 fi
15058 ;;
15059
15060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 unicos*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_can_build_shared=no
15069 ;;
15070
15071 uts4*)
15072 lt_prog_compiler_pic='-pic'
15073 lt_prog_compiler_static='-Bstatic'
15074 ;;
15075
15076 *)
15077 lt_prog_compiler_can_build_shared=no
15078 ;;
15079 esac
15080 fi
15081
15082 case $host_os in
15083 # For platforms that do not support PIC, -DPIC is meaningless:
15084 *djgpp*)
15085 lt_prog_compiler_pic=
15086 ;;
15087 *)
15088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15089 ;;
15090 esac
15091
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15093 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15094 if ${lt_cv_prog_compiler_pic+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15098 fi
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15100 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15101 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15102
15103 #
15104 # Check to make sure the PIC flag actually works.
15105 #
15106 if test -n "$lt_prog_compiler_pic"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15108 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15109 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15110 $as_echo_n "(cached) " >&6
15111 else
15112 lt_cv_prog_compiler_pic_works=no
15113 ac_outfile=conftest.$ac_objext
15114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15115 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15116 # Insert the option either (1) after the last *FLAGS variable, or
15117 # (2) before a word containing "conftest.", or (3) at the end.
15118 # Note that $ac_compile itself does not contain backslashes and begins
15119 # with a dollar sign (not a hyphen), so the echo should work correctly.
15120 # The option is referenced via a variable to avoid confusing sed.
15121 lt_compile=`echo "$ac_compile" | $SED \
15122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15124 -e 's:$: $lt_compiler_flag:'`
15125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15126 (eval "$lt_compile" 2>conftest.err)
15127 ac_status=$?
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 if (exit $ac_status) && test -s "$ac_outfile"; then
15131 # The compiler can only warn and ignore the option if not recognized
15132 # So say no if there are warnings other than the usual output.
15133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15136 lt_cv_prog_compiler_pic_works=yes
15137 fi
15138 fi
15139 $RM conftest*
15140
15141 fi
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15143 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15144
15145 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15146 case $lt_prog_compiler_pic in
15147 "" | " "*) ;;
15148 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15149 esac
15150 else
15151 lt_prog_compiler_pic=
15152 lt_prog_compiler_can_build_shared=no
15153 fi
15154
15155 fi
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167 #
15168 # Check to make sure the static flag actually works.
15169 #
15170 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15172 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15173 if ${lt_cv_prog_compiler_static_works+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 lt_cv_prog_compiler_static_works=no
15177 save_LDFLAGS=$LDFLAGS
15178 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15179 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15181 # The linker can only warn and ignore the option if not recognized
15182 # So say no if there are warnings
15183 if test -s conftest.err; then
15184 # Append any errors to the config.log.
15185 cat conftest.err 1>&5
15186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15188 if diff conftest.exp conftest.er2 >/dev/null; then
15189 lt_cv_prog_compiler_static_works=yes
15190 fi
15191 else
15192 lt_cv_prog_compiler_static_works=yes
15193 fi
15194 fi
15195 $RM -r conftest*
15196 LDFLAGS=$save_LDFLAGS
15197
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15200 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15201
15202 if test yes = "$lt_cv_prog_compiler_static_works"; then
15203 :
15204 else
15205 lt_prog_compiler_static=
15206 fi
15207
15208
15209
15210
15211
15212
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15216 if ${lt_cv_prog_compiler_c_o+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 lt_cv_prog_compiler_c_o=no
15220 $RM -r conftest 2>/dev/null
15221 mkdir conftest
15222 cd conftest
15223 mkdir out
15224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225
15226 lt_compiler_flag="-o out/conftest2.$ac_objext"
15227 # Insert the option either (1) after the last *FLAGS variable, or
15228 # (2) before a word containing "conftest.", or (3) at the end.
15229 # Note that $ac_compile itself does not contain backslashes and begins
15230 # with a dollar sign (not a hyphen), so the echo should work correctly.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>out/conftest.err)
15237 ac_status=$?
15238 cat out/conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15241 then
15242 # The compiler can only warn and ignore the option if not recognized
15243 # So say no if there are warnings
15244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15247 lt_cv_prog_compiler_c_o=yes
15248 fi
15249 fi
15250 chmod u+w . 2>&5
15251 $RM conftest*
15252 # SGI C++ compiler will create directory out/ii_files/ for
15253 # template instantiation
15254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15255 $RM out/* && rmdir out
15256 cd ..
15257 $RM -r conftest
15258 $RM conftest*
15259
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15263
15264
15265
15266
15267
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15271 if ${lt_cv_prog_compiler_c_o+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 lt_cv_prog_compiler_c_o=no
15275 $RM -r conftest 2>/dev/null
15276 mkdir conftest
15277 cd conftest
15278 mkdir out
15279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15280
15281 lt_compiler_flag="-o out/conftest2.$ac_objext"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 lt_compile=`echo "$ac_compile" | $SED \
15287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15289 -e 's:$: $lt_compiler_flag:'`
15290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15291 (eval "$lt_compile" 2>out/conftest.err)
15292 ac_status=$?
15293 cat out/conftest.err >&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15296 then
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_c_o=yes
15303 fi
15304 fi
15305 chmod u+w . 2>&5
15306 $RM conftest*
15307 # SGI C++ compiler will create directory out/ii_files/ for
15308 # template instantiation
15309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15310 $RM out/* && rmdir out
15311 cd ..
15312 $RM -r conftest
15313 $RM conftest*
15314
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15317 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15318
15319
15320
15321
15322 hard_links=nottested
15323 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15324 # do not overwrite the value of need_locks provided by the user
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15326 $as_echo_n "checking if we can lock with hard links... " >&6; }
15327 hard_links=yes
15328 $RM conftest*
15329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330 touch conftest.a
15331 ln conftest.a conftest.b 2>&5 || hard_links=no
15332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15334 $as_echo "$hard_links" >&6; }
15335 if test no = "$hard_links"; then
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15337 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15338 need_locks=warn
15339 fi
15340 else
15341 need_locks=no
15342 fi
15343
15344
15345
15346
15347
15348
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15350 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15351
15352 runpath_var=
15353 allow_undefined_flag=
15354 always_export_symbols=no
15355 archive_cmds=
15356 archive_expsym_cmds=
15357 compiler_needs_object=no
15358 enable_shared_with_static_runtimes=no
15359 export_dynamic_flag_spec=
15360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15361 hardcode_automatic=no
15362 hardcode_direct=no
15363 hardcode_direct_absolute=no
15364 hardcode_libdir_flag_spec=
15365 hardcode_libdir_separator=
15366 hardcode_minus_L=no
15367 hardcode_shlibpath_var=unsupported
15368 inherit_rpath=no
15369 link_all_deplibs=unknown
15370 module_cmds=
15371 module_expsym_cmds=
15372 old_archive_from_new_cmds=
15373 old_archive_from_expsyms_cmds=
15374 thread_safe_flag_spec=
15375 whole_archive_flag_spec=
15376 # include_expsyms should be a list of space-separated symbols to be *always*
15377 # included in the symbol list
15378 include_expsyms=
15379 # exclude_expsyms can be an extended regexp of symbols to exclude
15380 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15381 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15382 # as well as any symbol that contains 'd'.
15383 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15384 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15385 # platforms (ab)use it in PIC code, but their linkers get confused if
15386 # the symbol is explicitly referenced. Since portable code cannot
15387 # rely on this symbol name, it's probably fine to never include it in
15388 # preloaded symbol tables.
15389 # Exclude shared library initialization/finalization symbols.
15390 extract_expsyms_cmds=
15391
15392 case $host_os in
15393 cygwin* | mingw* | pw32* | cegcc*)
15394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15395 # When not using gcc, we currently assume that we are using
15396 # Microsoft Visual C++.
15397 if test yes != "$GCC"; then
15398 with_gnu_ld=no
15399 fi
15400 ;;
15401 interix*)
15402 # we just hope/assume this is gcc and not c89 (= MSVC++)
15403 with_gnu_ld=yes
15404 ;;
15405 openbsd* | bitrig*)
15406 with_gnu_ld=no
15407 ;;
15408 linux* | k*bsd*-gnu | gnu*)
15409 link_all_deplibs=no
15410 ;;
15411 esac
15412
15413 ld_shlibs=yes
15414
15415 # On some targets, GNU ld is compatible enough with the native linker
15416 # that we're better off using the native interface for both.
15417 lt_use_gnu_ld_interface=no
15418 if test yes = "$with_gnu_ld"; then
15419 case $host_os in
15420 aix*)
15421 # The AIX port of GNU ld has always aspired to compatibility
15422 # with the native linker. However, as the warning in the GNU ld
15423 # block says, versions before 2.19.5* couldn't really create working
15424 # shared libraries, regardless of the interface used.
15425 case `$LD -v 2>&1` in
15426 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15427 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15428 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15429 *)
15430 lt_use_gnu_ld_interface=yes
15431 ;;
15432 esac
15433 ;;
15434 *)
15435 lt_use_gnu_ld_interface=yes
15436 ;;
15437 esac
15438 fi
15439
15440 if test yes = "$lt_use_gnu_ld_interface"; then
15441 # If archive_cmds runs LD, not CC, wlarc should be empty
15442 wlarc='$wl'
15443
15444 # Set some defaults for GNU ld with shared library support. These
15445 # are reset later if shared libraries are not supported. Putting them
15446 # here allows them to be overridden if necessary.
15447 runpath_var=LD_RUN_PATH
15448 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15449 export_dynamic_flag_spec='$wl--export-dynamic'
15450 # ancient GNU ld didn't support --whole-archive et. al.
15451 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15452 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15453 else
15454 whole_archive_flag_spec=
15455 fi
15456 supports_anon_versioning=no
15457 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15458 *GNU\ gold*) supports_anon_versioning=yes ;;
15459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462 *\ 2.11.*) ;; # other 2.11 versions
15463 *) supports_anon_versioning=yes ;;
15464 esac
15465
15466 # See if GNU ld supports shared libraries.
15467 case $host_os in
15468 aix[3-9]*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test ia64 != "$host_cpu"; then
15471 ld_shlibs=no
15472 cat <<_LT_EOF 1>&2
15473
15474 *** Warning: the GNU linker, at least up to release 2.19, is reported
15475 *** to be unable to reliably create shared libraries on AIX.
15476 *** Therefore, libtool is disabling shared libraries support. If you
15477 *** really care for shared libraries, you may want to install binutils
15478 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15479 *** You will then need to restart the configuration process.
15480
15481 _LT_EOF
15482 fi
15483 ;;
15484
15485 amigaos*)
15486 case $host_cpu in
15487 powerpc)
15488 # see comment about AmigaOS4 .so support
15489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15490 archive_expsym_cmds=''
15491 ;;
15492 m68k)
15493 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)'
15494 hardcode_libdir_flag_spec='-L$libdir'
15495 hardcode_minus_L=yes
15496 ;;
15497 esac
15498 ;;
15499
15500 beos*)
15501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15502 allow_undefined_flag=unsupported
15503 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15504 # support --undefined. This deserves some investigation. FIXME
15505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15506 else
15507 ld_shlibs=no
15508 fi
15509 ;;
15510
15511 cygwin* | mingw* | pw32* | cegcc*)
15512 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15513 # as there is no search path for DLLs.
15514 hardcode_libdir_flag_spec='-L$libdir'
15515 export_dynamic_flag_spec='$wl--export-all-symbols'
15516 allow_undefined_flag=unsupported
15517 always_export_symbols=no
15518 enable_shared_with_static_runtimes=yes
15519 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'
15520 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15521
15522 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15524 # If the export-symbols file already is a .def file, use it as
15525 # is; otherwise, prepend EXPORTS...
15526 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15527 cp $export_symbols $output_objdir/$soname.def;
15528 else
15529 echo EXPORTS > $output_objdir/$soname.def;
15530 cat $export_symbols >> $output_objdir/$soname.def;
15531 fi~
15532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15533 else
15534 ld_shlibs=no
15535 fi
15536 ;;
15537
15538 haiku*)
15539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15540 link_all_deplibs=yes
15541 ;;
15542
15543 os2*)
15544 hardcode_libdir_flag_spec='-L$libdir'
15545 hardcode_minus_L=yes
15546 allow_undefined_flag=unsupported
15547 shrext_cmds=.dll
15548 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15549 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15550 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15551 $ECHO EXPORTS >> $output_objdir/$libname.def~
15552 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15554 emximp -o $lib $output_objdir/$libname.def'
15555 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15558 $ECHO EXPORTS >> $output_objdir/$libname.def~
15559 prefix_cmds="$SED"~
15560 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15561 prefix_cmds="$prefix_cmds -e 1d";
15562 fi~
15563 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15564 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15565 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15566 emximp -o $lib $output_objdir/$libname.def'
15567 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15568 enable_shared_with_static_runtimes=yes
15569 ;;
15570
15571 interix[3-9]*)
15572 hardcode_direct=no
15573 hardcode_shlibpath_var=no
15574 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15575 export_dynamic_flag_spec='$wl-E'
15576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15577 # Instead, shared libraries are loaded at an image base (0x10000000 by
15578 # default) and relocated if they conflict, which is a slow very memory
15579 # consuming and fragmenting process. To avoid this, we pick a random,
15580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583 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'
15584 ;;
15585
15586 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15587 tmp_diet=no
15588 if test linux-dietlibc = "$host_os"; then
15589 case $cc_basename in
15590 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15591 esac
15592 fi
15593 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15594 && test no = "$tmp_diet"
15595 then
15596 tmp_addflag=' $pic_flag'
15597 tmp_sharedflag='-shared'
15598 case $cc_basename,$host_cpu in
15599 pgcc*) # Portland Group C compiler
15600 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'
15601 tmp_addflag=' $pic_flag'
15602 ;;
15603 pgf77* | pgf90* | pgf95* | pgfortran*)
15604 # Portland Group f77 and f90 compilers
15605 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'
15606 tmp_addflag=' $pic_flag -Mnomain' ;;
15607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15608 tmp_addflag=' -i_dynamic' ;;
15609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15610 tmp_addflag=' -i_dynamic -nofor_main' ;;
15611 ifc* | ifort*) # Intel Fortran compiler
15612 tmp_addflag=' -nofor_main' ;;
15613 lf95*) # Lahey Fortran 8.1
15614 whole_archive_flag_spec=
15615 tmp_sharedflag='--shared' ;;
15616 nagfor*) # NAGFOR 5.3
15617 tmp_sharedflag='-Wl,-shared' ;;
15618 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15619 tmp_sharedflag='-qmkshrobj'
15620 tmp_addflag= ;;
15621 nvcc*) # Cuda Compiler Driver 2.2
15622 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'
15623 compiler_needs_object=yes
15624 ;;
15625 esac
15626 case `$CC -V 2>&1 | sed 5q` in
15627 *Sun\ C*) # Sun C 5.9
15628 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'
15629 compiler_needs_object=yes
15630 tmp_sharedflag='-G' ;;
15631 *Sun\ F*) # Sun Fortran 8.3
15632 tmp_sharedflag='-G' ;;
15633 esac
15634 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15635
15636 if test yes = "$supports_anon_versioning"; then
15637 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15639 echo "local: *; };" >> $output_objdir/$libname.ver~
15640 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15641 fi
15642
15643 case $cc_basename in
15644 tcc*)
15645 export_dynamic_flag_spec='-rdynamic'
15646 ;;
15647 xlf* | bgf* | bgxlf* | mpixlf*)
15648 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15649 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15651 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15652 if test yes = "$supports_anon_versioning"; then
15653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15655 echo "local: *; };" >> $output_objdir/$libname.ver~
15656 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15657 fi
15658 ;;
15659 esac
15660 else
15661 ld_shlibs=no
15662 fi
15663 ;;
15664
15665 netbsd* | netbsdelf*-gnu)
15666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15668 wlarc=
15669 else
15670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15672 fi
15673 ;;
15674
15675 solaris*)
15676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15677 ld_shlibs=no
15678 cat <<_LT_EOF 1>&2
15679
15680 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15681 *** create shared libraries on Solaris systems. Therefore, libtool
15682 *** is disabling shared libraries support. We urge you to upgrade GNU
15683 *** binutils to release 2.9.1 or newer. Another option is to modify
15684 *** your PATH or compiler configuration so that the native linker is
15685 *** used, and then restart.
15686
15687 _LT_EOF
15688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15690 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15691 else
15692 ld_shlibs=no
15693 fi
15694 ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15697 case `$LD -v 2>&1` in
15698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15699 ld_shlibs=no
15700 cat <<_LT_EOF 1>&2
15701
15702 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15703 *** reliably create shared libraries on SCO systems. Therefore, libtool
15704 *** is disabling shared libraries support. We urge you to upgrade GNU
15705 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15706 *** your PATH or compiler configuration so that the native linker is
15707 *** used, and then restart.
15708
15709 _LT_EOF
15710 ;;
15711 *)
15712 # For security reasons, it is highly recommended that you always
15713 # use absolute paths for naming shared libraries, and exclude the
15714 # DT_RUNPATH tag from executables and libraries. But doing so
15715 # requires that you compile everything twice, which is a pain.
15716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15720 else
15721 ld_shlibs=no
15722 fi
15723 ;;
15724 esac
15725 ;;
15726
15727 sunos4*)
15728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 wlarc=
15730 hardcode_direct=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 *)
15735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15738 else
15739 ld_shlibs=no
15740 fi
15741 ;;
15742 esac
15743
15744 if test no = "$ld_shlibs"; then
15745 runpath_var=
15746 hardcode_libdir_flag_spec=
15747 export_dynamic_flag_spec=
15748 whole_archive_flag_spec=
15749 fi
15750 else
15751 # PORTME fill in a description of your system's linker (not GNU ld)
15752 case $host_os in
15753 aix3*)
15754 allow_undefined_flag=unsupported
15755 always_export_symbols=yes
15756 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'
15757 # Note: this linker hardcodes the directories in LIBPATH if there
15758 # are no directories specified by -L.
15759 hardcode_minus_L=yes
15760 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15761 # Neither direct hardcoding nor static linking is supported with a
15762 # broken collect2.
15763 hardcode_direct=unsupported
15764 fi
15765 ;;
15766
15767 aix[4-9]*)
15768 if test ia64 = "$host_cpu"; then
15769 # On IA64, the linker does run time linking by default, so we don't
15770 # have to do anything special.
15771 aix_use_runtimelinking=no
15772 exp_sym_flag='-Bexport'
15773 no_entry_flag=
15774 else
15775 # If we're using GNU nm, then we don't want the "-C" option.
15776 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15777 # Without the "-l" option, or with the "-B" option, AIX nm treats
15778 # weak defined symbols like other global defined symbols, whereas
15779 # GNU nm marks them as "W".
15780 # While the 'weak' keyword is ignored in the Export File, we need
15781 # it in the Import File for the 'aix-soname' feature, so we have
15782 # to replace the "-B" option with "-P" for AIX nm.
15783 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15784 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'
15785 else
15786 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'
15787 fi
15788 aix_use_runtimelinking=no
15789
15790 # Test if we are trying to use run time linking or normal
15791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15792 # have runtime linking enabled, and use it for executables.
15793 # For shared libraries, we enable/disable runtime linking
15794 # depending on the kind of the shared library created -
15795 # when "with_aix_soname,aix_use_runtimelinking" is:
15796 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15797 # "aix,yes" lib.so shared, rtl:yes, for executables
15798 # lib.a static archive
15799 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15800 # lib.a(lib.so.V) shared, rtl:no, for executables
15801 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15802 # lib.a(lib.so.V) shared, rtl:no
15803 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15804 # lib.a static archive
15805 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15806 for ld_flag in $LDFLAGS; do
15807 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15808 aix_use_runtimelinking=yes
15809 break
15810 fi
15811 done
15812 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15813 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15814 # so we don't have lib.a shared libs to link our executables.
15815 # We have to force runtime linking in this case.
15816 aix_use_runtimelinking=yes
15817 LDFLAGS="$LDFLAGS -Wl,-brtl"
15818 fi
15819 ;;
15820 esac
15821
15822 exp_sym_flag='-bexport'
15823 no_entry_flag='-bnoentry'
15824 fi
15825
15826 # When large executables or shared objects are built, AIX ld can
15827 # have problems creating the table of contents. If linking a library
15828 # or program results in "error TOC overflow" add -mminimal-toc to
15829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15831
15832 archive_cmds=''
15833 hardcode_direct=yes
15834 hardcode_direct_absolute=yes
15835 hardcode_libdir_separator=':'
15836 link_all_deplibs=yes
15837 file_list_spec='$wl-f,'
15838 case $with_aix_soname,$aix_use_runtimelinking in
15839 aix,*) ;; # traditional, no import file
15840 svr4,* | *,yes) # use import file
15841 # The Import File defines what to hardcode.
15842 hardcode_direct=no
15843 hardcode_direct_absolute=no
15844 ;;
15845 esac
15846
15847 if test yes = "$GCC"; then
15848 case $host_os in aix4.[012]|aix4.[012].*)
15849 # We only want to do this on AIX 4.2 and lower, the check
15850 # below for broken collect2 doesn't work under 4.3+
15851 collect2name=`$CC -print-prog-name=collect2`
15852 if test -f "$collect2name" &&
15853 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15854 then
15855 # We have reworked collect2
15856 :
15857 else
15858 # We have old collect2
15859 hardcode_direct=unsupported
15860 # It fails to find uninstalled libraries when the uninstalled
15861 # path is not listed in the libpath. Setting hardcode_minus_L
15862 # to unsupported forces relinking
15863 hardcode_minus_L=yes
15864 hardcode_libdir_flag_spec='-L$libdir'
15865 hardcode_libdir_separator=
15866 fi
15867 ;;
15868 esac
15869 shared_flag='-shared'
15870 if test yes = "$aix_use_runtimelinking"; then
15871 shared_flag="$shared_flag "'$wl-G'
15872 fi
15873 # Need to ensure runtime linking is disabled for the traditional
15874 # shared library, or the linker may eventually find shared libraries
15875 # /with/ Import File - we do not want to mix them.
15876 shared_flag_aix='-shared'
15877 shared_flag_svr4='-shared $wl-G'
15878 else
15879 # not using gcc
15880 if test ia64 = "$host_cpu"; then
15881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15882 # chokes on -Wl,-G. The following line is correct:
15883 shared_flag='-G'
15884 else
15885 if test yes = "$aix_use_runtimelinking"; then
15886 shared_flag='$wl-G'
15887 else
15888 shared_flag='$wl-bM:SRE'
15889 fi
15890 shared_flag_aix='$wl-bM:SRE'
15891 shared_flag_svr4='$wl-G'
15892 fi
15893 fi
15894
15895 export_dynamic_flag_spec='$wl-bexpall'
15896 # It seems that -bexpall does not export symbols beginning with
15897 # underscore (_), so it is better to generate a list of symbols to export.
15898 always_export_symbols=yes
15899 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15900 # Warning - without using the other runtime loading flags (-brtl),
15901 # -berok will link without error, but may produce a broken library.
15902 allow_undefined_flag='-berok'
15903 # Determine the default libpath from the value encoded in an
15904 # empty executable.
15905 if test set = "${lt_cv_aix_libpath+set}"; then
15906 aix_libpath=$lt_cv_aix_libpath
15907 else
15908 if ${lt_cv_aix_libpath_+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913
15914 int
15915 main ()
15916 {
15917
15918 ;
15919 return 0;
15920 }
15921 _ACEOF
15922 if ac_fn_c_try_link "$LINENO"; then :
15923
15924 lt_aix_libpath_sed='
15925 /Import File Strings/,/^$/ {
15926 /^0/ {
15927 s/^0 *\([^ ]*\) *$/\1/
15928 p
15929 }
15930 }'
15931 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15932 # Check for a 64-bit object if we didn't find anything.
15933 if test -z "$lt_cv_aix_libpath_"; then
15934 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15935 fi
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 if test -z "$lt_cv_aix_libpath_"; then
15940 lt_cv_aix_libpath_=/usr/lib:/lib
15941 fi
15942
15943 fi
15944
15945 aix_libpath=$lt_cv_aix_libpath_
15946 fi
15947
15948 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15949 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
15950 else
15951 if test ia64 = "$host_cpu"; then
15952 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15953 allow_undefined_flag="-z nodefs"
15954 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"
15955 else
15956 # Determine the default libpath from the value encoded in an
15957 # empty executable.
15958 if test set = "${lt_cv_aix_libpath+set}"; then
15959 aix_libpath=$lt_cv_aix_libpath
15960 else
15961 if ${lt_cv_aix_libpath_+:} false; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966
15967 int
15968 main ()
15969 {
15970
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_link "$LINENO"; then :
15976
15977 lt_aix_libpath_sed='
15978 /Import File Strings/,/^$/ {
15979 /^0/ {
15980 s/^0 *\([^ ]*\) *$/\1/
15981 p
15982 }
15983 }'
15984 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15985 # Check for a 64-bit object if we didn't find anything.
15986 if test -z "$lt_cv_aix_libpath_"; then
15987 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15988 fi
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992 if test -z "$lt_cv_aix_libpath_"; then
15993 lt_cv_aix_libpath_=/usr/lib:/lib
15994 fi
15995
15996 fi
15997
15998 aix_libpath=$lt_cv_aix_libpath_
15999 fi
16000
16001 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16002 # Warning - without using the other run time loading flags,
16003 # -berok will link without error, but may produce a broken library.
16004 no_undefined_flag=' $wl-bernotok'
16005 allow_undefined_flag=' $wl-berok'
16006 if test yes = "$with_gnu_ld"; then
16007 # We only use this code for GNU lds that support --whole-archive.
16008 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16009 else
16010 # Exported symbols can be pulled into shared objects from archives
16011 whole_archive_flag_spec='$convenience'
16012 fi
16013 archive_cmds_need_lc=yes
16014 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16015 # -brtl affects multiple linker settings, -berok does not and is overridden later
16016 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16017 if test svr4 != "$with_aix_soname"; then
16018 # This is similar to how AIX traditionally builds its shared libraries.
16019 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'
16020 fi
16021 if test aix != "$with_aix_soname"; then
16022 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'
16023 else
16024 # used by -dlpreopen to get the symbols
16025 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16026 fi
16027 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16028 fi
16029 fi
16030 ;;
16031
16032 amigaos*)
16033 case $host_cpu in
16034 powerpc)
16035 # see comment about AmigaOS4 .so support
16036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16037 archive_expsym_cmds=''
16038 ;;
16039 m68k)
16040 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)'
16041 hardcode_libdir_flag_spec='-L$libdir'
16042 hardcode_minus_L=yes
16043 ;;
16044 esac
16045 ;;
16046
16047 bsdi[45]*)
16048 export_dynamic_flag_spec=-rdynamic
16049 ;;
16050
16051 cygwin* | mingw* | pw32* | cegcc*)
16052 # When not using gcc, we currently assume that we are using
16053 # Microsoft Visual C++.
16054 # hardcode_libdir_flag_spec is actually meaningless, as there is
16055 # no search path for DLLs.
16056 case $cc_basename in
16057 cl*)
16058 # Native MSVC
16059 hardcode_libdir_flag_spec=' '
16060 allow_undefined_flag=unsupported
16061 always_export_symbols=yes
16062 file_list_spec='@'
16063 # Tell ltmain to make .lib files, not .a files.
16064 libext=lib
16065 # Tell ltmain to make .dll files, not .so files.
16066 shrext_cmds=.dll
16067 # FIXME: Setting linknames here is a bad hack.
16068 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16069 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16070 cp "$export_symbols" "$output_objdir/$soname.def";
16071 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16072 else
16073 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16074 fi~
16075 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16076 linknames='
16077 # The linker will not automatically build a static lib if we build a DLL.
16078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16079 enable_shared_with_static_runtimes=yes
16080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16082 # Don't use ranlib
16083 old_postinstall_cmds='chmod 644 $oldlib'
16084 postlink_cmds='lt_outputfile="@OUTPUT@"~
16085 lt_tool_outputfile="@TOOL_OUTPUT@"~
16086 case $lt_outputfile in
16087 *.exe|*.EXE) ;;
16088 *)
16089 lt_outputfile=$lt_outputfile.exe
16090 lt_tool_outputfile=$lt_tool_outputfile.exe
16091 ;;
16092 esac~
16093 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16095 $RM "$lt_outputfile.manifest";
16096 fi'
16097 ;;
16098 *)
16099 # Assume MSVC wrapper
16100 hardcode_libdir_flag_spec=' '
16101 allow_undefined_flag=unsupported
16102 # Tell ltmain to make .lib files, not .a files.
16103 libext=lib
16104 # Tell ltmain to make .dll files, not .so files.
16105 shrext_cmds=.dll
16106 # FIXME: Setting linknames here is a bad hack.
16107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16108 # The linker will automatically build a .lib file if we build a DLL.
16109 old_archive_from_new_cmds='true'
16110 # FIXME: Should let the user specify the lib program.
16111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16112 enable_shared_with_static_runtimes=yes
16113 ;;
16114 esac
16115 ;;
16116
16117 darwin* | rhapsody*)
16118
16119
16120 archive_cmds_need_lc=no
16121 hardcode_direct=no
16122 hardcode_automatic=yes
16123 hardcode_shlibpath_var=unsupported
16124 if test yes = "$lt_cv_ld_force_load"; then
16125 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\"`'
16126
16127 else
16128 whole_archive_flag_spec=''
16129 fi
16130 link_all_deplibs=yes
16131 allow_undefined_flag=$_lt_dar_allow_undefined
16132 case $cc_basename in
16133 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16134 *) _lt_dar_can_shared=$GCC ;;
16135 esac
16136 if test yes = "$_lt_dar_can_shared"; then
16137 output_verbose_link_cmd=func_echo_all
16138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16140 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"
16141 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"
16142
16143 else
16144 ld_shlibs=no
16145 fi
16146
16147 ;;
16148
16149 dgux*)
16150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_libdir_flag_spec='-L$libdir'
16152 hardcode_shlibpath_var=no
16153 ;;
16154
16155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16156 # support. Future versions do this automatically, but an explicit c++rt0.o
16157 # does not break anything, and helps significantly (at the cost of a little
16158 # extra space).
16159 freebsd2.2*)
16160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16161 hardcode_libdir_flag_spec='-R$libdir'
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 ;;
16165
16166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16167 freebsd2.*)
16168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16169 hardcode_direct=yes
16170 hardcode_minus_L=yes
16171 hardcode_shlibpath_var=no
16172 ;;
16173
16174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16175 freebsd* | dragonfly*)
16176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16177 hardcode_libdir_flag_spec='-R$libdir'
16178 hardcode_direct=yes
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 hpux9*)
16183 if test yes = "$GCC"; then
16184 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'
16185 else
16186 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'
16187 fi
16188 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16189 hardcode_libdir_separator=:
16190 hardcode_direct=yes
16191
16192 # hardcode_minus_L: Not really in the search PATH,
16193 # but as the default location of the library.
16194 hardcode_minus_L=yes
16195 export_dynamic_flag_spec='$wl-E'
16196 ;;
16197
16198 hpux10*)
16199 if test yes,no = "$GCC,$with_gnu_ld"; then
16200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16201 else
16202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16203 fi
16204 if test no = "$with_gnu_ld"; then
16205 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16206 hardcode_libdir_separator=:
16207 hardcode_direct=yes
16208 hardcode_direct_absolute=yes
16209 export_dynamic_flag_spec='$wl-E'
16210 # hardcode_minus_L: Not really in the search PATH,
16211 # but as the default location of the library.
16212 hardcode_minus_L=yes
16213 fi
16214 ;;
16215
16216 hpux11*)
16217 if test yes,no = "$GCC,$with_gnu_ld"; then
16218 case $host_cpu in
16219 hppa*64*)
16220 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 ia64*)
16223 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224 ;;
16225 *)
16226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16227 ;;
16228 esac
16229 else
16230 case $host_cpu in
16231 hppa*64*)
16232 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 ;;
16234 ia64*)
16235 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16236 ;;
16237 *)
16238
16239 # Older versions of the 11.00 compiler do not understand -b yet
16240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16242 $as_echo_n "checking if $CC understands -b... " >&6; }
16243 if ${lt_cv_prog_compiler__b+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 lt_cv_prog_compiler__b=no
16247 save_LDFLAGS=$LDFLAGS
16248 LDFLAGS="$LDFLAGS -b"
16249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251 # The linker can only warn and ignore the option if not recognized
16252 # So say no if there are warnings
16253 if test -s conftest.err; then
16254 # Append any errors to the config.log.
16255 cat conftest.err 1>&5
16256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_cv_prog_compiler__b=yes
16260 fi
16261 else
16262 lt_cv_prog_compiler__b=yes
16263 fi
16264 fi
16265 $RM -r conftest*
16266 LDFLAGS=$save_LDFLAGS
16267
16268 fi
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16270 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16271
16272 if test yes = "$lt_cv_prog_compiler__b"; then
16273 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16274 else
16275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16276 fi
16277
16278 ;;
16279 esac
16280 fi
16281 if test no = "$with_gnu_ld"; then
16282 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16283 hardcode_libdir_separator=:
16284
16285 case $host_cpu in
16286 hppa*64*|ia64*)
16287 hardcode_direct=no
16288 hardcode_shlibpath_var=no
16289 ;;
16290 *)
16291 hardcode_direct=yes
16292 hardcode_direct_absolute=yes
16293 export_dynamic_flag_spec='$wl-E'
16294
16295 # hardcode_minus_L: Not really in the search PATH,
16296 # but as the default location of the library.
16297 hardcode_minus_L=yes
16298 ;;
16299 esac
16300 fi
16301 ;;
16302
16303 irix5* | irix6* | nonstopux*)
16304 if test yes = "$GCC"; then
16305 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'
16306 # Try to use the -exported_symbol ld option, if it does not
16307 # work, assume that -exports_file does not work either and
16308 # implicitly export all symbols.
16309 # This should be the same for all languages, so no per-tag cache variable.
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16311 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16312 if ${lt_cv_irix_exported_symbol+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 save_LDFLAGS=$LDFLAGS
16316 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 int foo (void) { return 0; }
16320 _ACEOF
16321 if ac_fn_c_try_link "$LINENO"; then :
16322 lt_cv_irix_exported_symbol=yes
16323 else
16324 lt_cv_irix_exported_symbol=no
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LDFLAGS=$save_LDFLAGS
16329 fi
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16331 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16332 if test yes = "$lt_cv_irix_exported_symbol"; then
16333 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'
16334 fi
16335 link_all_deplibs=no
16336 else
16337 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'
16338 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'
16339 fi
16340 archive_cmds_need_lc='no'
16341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16342 hardcode_libdir_separator=:
16343 inherit_rpath=yes
16344 link_all_deplibs=yes
16345 ;;
16346
16347 linux*)
16348 case $cc_basename in
16349 tcc*)
16350 # Fabrice Bellard et al's Tiny C Compiler
16351 ld_shlibs=yes
16352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16353 ;;
16354 esac
16355 ;;
16356
16357 netbsd* | netbsdelf*-gnu)
16358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16360 else
16361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16362 fi
16363 hardcode_libdir_flag_spec='-R$libdir'
16364 hardcode_direct=yes
16365 hardcode_shlibpath_var=no
16366 ;;
16367
16368 newsos6)
16369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_direct=yes
16371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16372 hardcode_libdir_separator=:
16373 hardcode_shlibpath_var=no
16374 ;;
16375
16376 *nto* | *qnx*)
16377 ;;
16378
16379 openbsd* | bitrig*)
16380 if test -f /usr/libexec/ld.so; then
16381 hardcode_direct=yes
16382 hardcode_shlibpath_var=no
16383 hardcode_direct_absolute=yes
16384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16386 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16387 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16388 export_dynamic_flag_spec='$wl-E'
16389 else
16390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16391 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16392 fi
16393 else
16394 ld_shlibs=no
16395 fi
16396 ;;
16397
16398 os2*)
16399 hardcode_libdir_flag_spec='-L$libdir'
16400 hardcode_minus_L=yes
16401 allow_undefined_flag=unsupported
16402 shrext_cmds=.dll
16403 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16406 $ECHO EXPORTS >> $output_objdir/$libname.def~
16407 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16408 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16409 emximp -o $lib $output_objdir/$libname.def'
16410 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16413 $ECHO EXPORTS >> $output_objdir/$libname.def~
16414 prefix_cmds="$SED"~
16415 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16416 prefix_cmds="$prefix_cmds -e 1d";
16417 fi~
16418 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16419 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16421 emximp -o $lib $output_objdir/$libname.def'
16422 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16423 enable_shared_with_static_runtimes=yes
16424 ;;
16425
16426 osf3*)
16427 if test yes = "$GCC"; then
16428 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16429 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'
16430 else
16431 allow_undefined_flag=' -expect_unresolved \*'
16432 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'
16433 fi
16434 archive_cmds_need_lc='no'
16435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16436 hardcode_libdir_separator=:
16437 ;;
16438
16439 osf4* | osf5*) # as osf3* with the addition of -msym flag
16440 if test yes = "$GCC"; then
16441 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16442 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'
16443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16444 else
16445 allow_undefined_flag=' -expect_unresolved \*'
16446 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'
16447 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~
16448 $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'
16449
16450 # Both c and cxx compiler support -rpath directly
16451 hardcode_libdir_flag_spec='-rpath $libdir'
16452 fi
16453 archive_cmds_need_lc='no'
16454 hardcode_libdir_separator=:
16455 ;;
16456
16457 solaris*)
16458 no_undefined_flag=' -z defs'
16459 if test yes = "$GCC"; then
16460 wlarc='$wl'
16461 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16463 $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'
16464 else
16465 case `$CC -V 2>&1` in
16466 *"Compilers 5.0"*)
16467 wlarc=''
16468 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16471 ;;
16472 *)
16473 wlarc='$wl'
16474 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16476 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16477 ;;
16478 esac
16479 fi
16480 hardcode_libdir_flag_spec='-R$libdir'
16481 hardcode_shlibpath_var=no
16482 case $host_os in
16483 solaris2.[0-5] | solaris2.[0-5].*) ;;
16484 *)
16485 # The compiler driver will combine and reorder linker options,
16486 # but understands '-z linker_flag'. GCC discards it without '$wl',
16487 # but is careful enough not to reorder.
16488 # Supported since Solaris 2.6 (maybe 2.5.1?)
16489 if test yes = "$GCC"; then
16490 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16491 else
16492 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16493 fi
16494 ;;
16495 esac
16496 link_all_deplibs=yes
16497 ;;
16498
16499 sunos4*)
16500 if test sequent = "$host_vendor"; then
16501 # Use $CC to link under sequent, because it throws in some extra .o
16502 # files that make .init and .fini sections work.
16503 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16504 else
16505 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16506 fi
16507 hardcode_libdir_flag_spec='-L$libdir'
16508 hardcode_direct=yes
16509 hardcode_minus_L=yes
16510 hardcode_shlibpath_var=no
16511 ;;
16512
16513 sysv4)
16514 case $host_vendor in
16515 sni)
16516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct=yes # is this really true???
16518 ;;
16519 siemens)
16520 ## LD is ld it makes a PLAMLIB
16521 ## CC just makes a GrossModule.
16522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16523 reload_cmds='$CC -r -o $output$reload_objs'
16524 hardcode_direct=no
16525 ;;
16526 motorola)
16527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16529 ;;
16530 esac
16531 runpath_var='LD_RUN_PATH'
16532 hardcode_shlibpath_var=no
16533 ;;
16534
16535 sysv4.3*)
16536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_shlibpath_var=no
16538 export_dynamic_flag_spec='-Bexport'
16539 ;;
16540
16541 sysv4*MP*)
16542 if test -d /usr/nec; then
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var=no
16545 runpath_var=LD_RUN_PATH
16546 hardcode_runpath_var=yes
16547 ld_shlibs=yes
16548 fi
16549 ;;
16550
16551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16552 no_undefined_flag='$wl-z,text'
16553 archive_cmds_need_lc=no
16554 hardcode_shlibpath_var=no
16555 runpath_var='LD_RUN_PATH'
16556
16557 if test yes = "$GCC"; then
16558 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560 else
16561 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 fi
16564 ;;
16565
16566 sysv5* | sco3.2v5* | sco5v6*)
16567 # Note: We CANNOT use -z defs as we might desire, because we do not
16568 # link with -lc, and that would cause any symbols used from libc to
16569 # always be unresolved, which means just about no library would
16570 # ever link correctly. If we're not using GNU ld we use -z text
16571 # though, which does catch some bad symbols but isn't as heavy-handed
16572 # as -z defs.
16573 no_undefined_flag='$wl-z,text'
16574 allow_undefined_flag='$wl-z,nodefs'
16575 archive_cmds_need_lc=no
16576 hardcode_shlibpath_var=no
16577 hardcode_libdir_flag_spec='$wl-R,$libdir'
16578 hardcode_libdir_separator=':'
16579 link_all_deplibs=yes
16580 export_dynamic_flag_spec='$wl-Bexport'
16581 runpath_var='LD_RUN_PATH'
16582
16583 if test yes = "$GCC"; then
16584 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 else
16587 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16589 fi
16590 ;;
16591
16592 uts4*)
16593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_libdir_flag_spec='-L$libdir'
16595 hardcode_shlibpath_var=no
16596 ;;
16597
16598 *)
16599 ld_shlibs=no
16600 ;;
16601 esac
16602
16603 if test sni = "$host_vendor"; then
16604 case $host in
16605 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16606 export_dynamic_flag_spec='$wl-Blargedynsym'
16607 ;;
16608 esac
16609 fi
16610 fi
16611
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16613 $as_echo "$ld_shlibs" >&6; }
16614 test no = "$ld_shlibs" && can_build_shared=no
16615
16616 with_gnu_ld=$with_gnu_ld
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632 #
16633 # Do we need to explicitly link libc?
16634 #
16635 case "x$archive_cmds_need_lc" in
16636 x|xyes)
16637 # Assume -lc should be added
16638 archive_cmds_need_lc=yes
16639
16640 if test yes,yes = "$GCC,$enable_shared"; then
16641 case $archive_cmds in
16642 *'~'*)
16643 # FIXME: we may have to deal with multi-command sequences.
16644 ;;
16645 '$CC '*)
16646 # Test whether the compiler implicitly links with -lc since on some
16647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16648 # to ld, don't add -lc before -lgcc.
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16650 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16651 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 $RM conftest*
16655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16656
16657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16658 (eval $ac_compile) 2>&5
16659 ac_status=$?
16660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16661 test $ac_status = 0; } 2>conftest.err; then
16662 soname=conftest
16663 lib=conftest
16664 libobjs=conftest.$ac_objext
16665 deplibs=
16666 wl=$lt_prog_compiler_wl
16667 pic_flag=$lt_prog_compiler_pic
16668 compiler_flags=-v
16669 linker_flags=-v
16670 verstring=
16671 output_objdir=.
16672 libname=conftest
16673 lt_save_allow_undefined_flag=$allow_undefined_flag
16674 allow_undefined_flag=
16675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16676 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16679 test $ac_status = 0; }
16680 then
16681 lt_cv_archive_cmds_need_lc=no
16682 else
16683 lt_cv_archive_cmds_need_lc=yes
16684 fi
16685 allow_undefined_flag=$lt_save_allow_undefined_flag
16686 else
16687 cat conftest.err 1>&5
16688 fi
16689 $RM conftest*
16690
16691 fi
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16693 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16694 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16695 ;;
16696 esac
16697 fi
16698 ;;
16699 esac
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
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16853 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16854
16855 if test yes = "$GCC"; then
16856 case $host_os in
16857 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16858 *) lt_awk_arg='/^libraries:/' ;;
16859 esac
16860 case $host_os in
16861 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16862 *) lt_sed_strip_eq='s|=/|/|g' ;;
16863 esac
16864 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16865 case $lt_search_path_spec in
16866 *\;*)
16867 # if the path contains ";" then we assume it to be the separator
16868 # otherwise default to the standard path separator (i.e. ":") - it is
16869 # assumed that no part of a normal pathname contains ";" but that should
16870 # okay in the real world where ";" in dirpaths is itself problematic.
16871 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16872 ;;
16873 *)
16874 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16875 ;;
16876 esac
16877 # Ok, now we have the path, separated by spaces, we can step through it
16878 # and add multilib dir if necessary...
16879 lt_tmp_lt_search_path_spec=
16880 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16881 # ...but if some path component already ends with the multilib dir we assume
16882 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16883 case "$lt_multi_os_dir; $lt_search_path_spec " in
16884 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16885 lt_multi_os_dir=
16886 ;;
16887 esac
16888 for lt_sys_path in $lt_search_path_spec; do
16889 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16891 elif test -n "$lt_multi_os_dir"; then
16892 test -d "$lt_sys_path" && \
16893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16894 fi
16895 done
16896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16897 BEGIN {RS = " "; FS = "/|\n";} {
16898 lt_foo = "";
16899 lt_count = 0;
16900 for (lt_i = NF; lt_i > 0; lt_i--) {
16901 if ($lt_i != "" && $lt_i != ".") {
16902 if ($lt_i == "..") {
16903 lt_count++;
16904 } else {
16905 if (lt_count == 0) {
16906 lt_foo = "/" $lt_i lt_foo;
16907 } else {
16908 lt_count--;
16909 }
16910 }
16911 }
16912 }
16913 if (lt_foo != "") { lt_freq[lt_foo]++; }
16914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16915 }'`
16916 # AWK program above erroneously prepends '/' to C:/dos/paths
16917 # for these hosts.
16918 case $host_os in
16919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16920 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16921 esac
16922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16923 else
16924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16925 fi
16926 library_names_spec=
16927 libname_spec='lib$name'
16928 soname_spec=
16929 shrext_cmds=.so
16930 postinstall_cmds=
16931 postuninstall_cmds=
16932 finish_cmds=
16933 finish_eval=
16934 shlibpath_var=
16935 shlibpath_overrides_runpath=unknown
16936 version_type=none
16937 dynamic_linker="$host_os ld.so"
16938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16939 need_lib_prefix=unknown
16940 hardcode_into_libs=no
16941
16942 # when you set need_version to no, make sure it does not cause -set_version
16943 # flags to be left without arguments
16944 need_version=unknown
16945
16946
16947
16948 case $host_os in
16949 aix3*)
16950 version_type=linux # correct to gnu/linux during the next big refactor
16951 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16952 shlibpath_var=LIBPATH
16953
16954 # AIX 3 has no versioning support, so we append a major version to the name.
16955 soname_spec='$libname$release$shared_ext$major'
16956 ;;
16957
16958 aix[4-9]*)
16959 version_type=linux # correct to gnu/linux during the next big refactor
16960 need_lib_prefix=no
16961 need_version=no
16962 hardcode_into_libs=yes
16963 if test ia64 = "$host_cpu"; then
16964 # AIX 5 supports IA64
16965 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 else
16968 # With GCC up to 2.95.x, collect2 would create an import file
16969 # for dependence libraries. The import file would start with
16970 # the line '#! .'. This would cause the generated library to
16971 # depend on '.', always an invalid library. This was fixed in
16972 # development snapshots of GCC prior to 3.0.
16973 case $host_os in
16974 aix4 | aix4.[01] | aix4.[01].*)
16975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16976 echo ' yes '
16977 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16978 :
16979 else
16980 can_build_shared=no
16981 fi
16982 ;;
16983 esac
16984 # Using Import Files as archive members, it is possible to support
16985 # filename-based versioning of shared library archives on AIX. While
16986 # this would work for both with and without runtime linking, it will
16987 # prevent static linking of such archives. So we do filename-based
16988 # shared library versioning with .so extension only, which is used
16989 # when both runtime linking and shared linking is enabled.
16990 # Unfortunately, runtime linking may impact performance, so we do
16991 # not want this to be the default eventually. Also, we use the
16992 # versioned .so libs for executables only if there is the -brtl
16993 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16994 # To allow for filename-based versioning support, we need to create
16995 # libNAME.so.V as an archive file, containing:
16996 # *) an Import File, referring to the versioned filename of the
16997 # archive as well as the shared archive member, telling the
16998 # bitwidth (32 or 64) of that shared object, and providing the
16999 # list of exported symbols of that shared object, eventually
17000 # decorated with the 'weak' keyword
17001 # *) the shared object with the F_LOADONLY flag set, to really avoid
17002 # it being seen by the linker.
17003 # At run time we better use the real file rather than another symlink,
17004 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17005
17006 case $with_aix_soname,$aix_use_runtimelinking in
17007 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17008 # soname into executable. Probably we can add versioning support to
17009 # collect2, so additional links can be useful in future.
17010 aix,yes) # traditional libtool
17011 dynamic_linker='AIX unversionable lib.so'
17012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17013 # instead of lib<name>.a to let people know that these are not
17014 # typical AIX shared libraries.
17015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17016 ;;
17017 aix,no) # traditional AIX only
17018 dynamic_linker='AIX lib.a(lib.so.V)'
17019 # We preserve .a as extension for shared libraries through AIX4.2
17020 # and later when we are not doing run time linking.
17021 library_names_spec='$libname$release.a $libname.a'
17022 soname_spec='$libname$release$shared_ext$major'
17023 ;;
17024 svr4,*) # full svr4 only
17025 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17026 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17027 # We do not specify a path in Import Files, so LIBPATH fires.
17028 shlibpath_overrides_runpath=yes
17029 ;;
17030 *,yes) # both, prefer svr4
17031 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17032 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17033 # unpreferred sharedlib libNAME.a needs extra handling
17034 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"'
17035 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"'
17036 # We do not specify a path in Import Files, so LIBPATH fires.
17037 shlibpath_overrides_runpath=yes
17038 ;;
17039 *,no) # both, prefer aix
17040 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17041 library_names_spec='$libname$release.a $libname.a'
17042 soname_spec='$libname$release$shared_ext$major'
17043 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17044 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)'
17045 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"'
17046 ;;
17047 esac
17048 shlibpath_var=LIBPATH
17049 fi
17050 ;;
17051
17052 amigaos*)
17053 case $host_cpu in
17054 powerpc)
17055 # Since July 2007 AmigaOS4 officially supports .so libraries.
17056 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17058 ;;
17059 m68k)
17060 library_names_spec='$libname.ixlibrary $libname.a'
17061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17062 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'
17063 ;;
17064 esac
17065 ;;
17066
17067 beos*)
17068 library_names_spec='$libname$shared_ext'
17069 dynamic_linker="$host_os ld.so"
17070 shlibpath_var=LIBRARY_PATH
17071 ;;
17072
17073 bsdi[45]*)
17074 version_type=linux # correct to gnu/linux during the next big refactor
17075 need_version=no
17076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17077 soname_spec='$libname$release$shared_ext$major'
17078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17082 # the default ld.so.conf also contains /usr/contrib/lib and
17083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17084 # libtool to hard-code these into programs
17085 ;;
17086
17087 cygwin* | mingw* | pw32* | cegcc*)
17088 version_type=windows
17089 shrext_cmds=.dll
17090 need_version=no
17091 need_lib_prefix=no
17092
17093 case $GCC,$cc_basename in
17094 yes,*)
17095 # gcc
17096 library_names_spec='$libname.dll.a'
17097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17098 postinstall_cmds='base_file=`basename \$file`~
17099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17100 dldir=$destdir/`dirname \$dlpath`~
17101 test -d \$dldir || mkdir -p \$dldir~
17102 $install_prog $dir/$dlname \$dldir/$dlname~
17103 chmod a+x \$dldir/$dlname~
17104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17106 fi'
17107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17108 dlpath=$dir/\$dldll~
17109 $RM \$dlpath'
17110 shlibpath_overrides_runpath=yes
17111
17112 case $host_os in
17113 cygwin*)
17114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17115 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17116
17117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17118 ;;
17119 mingw* | cegcc*)
17120 # MinGW DLLs use traditional 'lib' prefix
17121 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17122 ;;
17123 pw32*)
17124 # pw32 DLLs use 'pw' prefix rather than 'lib'
17125 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17126 ;;
17127 esac
17128 dynamic_linker='Win32 ld.exe'
17129 ;;
17130
17131 *,cl*)
17132 # Native MSVC
17133 libname_spec='$name'
17134 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17135 library_names_spec='$libname.dll.lib'
17136
17137 case $build_os in
17138 mingw*)
17139 sys_lib_search_path_spec=
17140 lt_save_ifs=$IFS
17141 IFS=';'
17142 for lt_path in $LIB
17143 do
17144 IFS=$lt_save_ifs
17145 # Let DOS variable expansion print the short 8.3 style file name.
17146 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17147 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17148 done
17149 IFS=$lt_save_ifs
17150 # Convert to MSYS style.
17151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17152 ;;
17153 cygwin*)
17154 # Convert to unix form, then to dos form, then back to unix form
17155 # but this time dos style (no spaces!) so that the unix form looks
17156 # like /cygdrive/c/PROGRA~1:/cygdr...
17157 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17158 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17159 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17160 ;;
17161 *)
17162 sys_lib_search_path_spec=$LIB
17163 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17164 # It is most probably a Windows format PATH.
17165 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17166 else
17167 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17168 fi
17169 # FIXME: find the short name or the path components, as spaces are
17170 # common. (e.g. "Program Files" -> "PROGRA~1")
17171 ;;
17172 esac
17173
17174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17175 postinstall_cmds='base_file=`basename \$file`~
17176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17177 dldir=$destdir/`dirname \$dlpath`~
17178 test -d \$dldir || mkdir -p \$dldir~
17179 $install_prog $dir/$dlname \$dldir/$dlname'
17180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17181 dlpath=$dir/\$dldll~
17182 $RM \$dlpath'
17183 shlibpath_overrides_runpath=yes
17184 dynamic_linker='Win32 link.exe'
17185 ;;
17186
17187 *)
17188 # Assume MSVC wrapper
17189 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17190 dynamic_linker='Win32 ld.exe'
17191 ;;
17192 esac
17193 # FIXME: first we should search . and the directory the executable is in
17194 shlibpath_var=PATH
17195 ;;
17196
17197 darwin* | rhapsody*)
17198 dynamic_linker="$host_os dyld"
17199 version_type=darwin
17200 need_lib_prefix=no
17201 need_version=no
17202 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17203 soname_spec='$libname$release$major$shared_ext'
17204 shlibpath_overrides_runpath=yes
17205 shlibpath_var=DYLD_LIBRARY_PATH
17206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17207
17208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17210 ;;
17211
17212 dgux*)
17213 version_type=linux # correct to gnu/linux during the next big refactor
17214 need_lib_prefix=no
17215 need_version=no
17216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17217 soname_spec='$libname$release$shared_ext$major'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 ;;
17220
17221 freebsd* | dragonfly*)
17222 # DragonFly does not have aout. When/if they implement a new
17223 # versioning mechanism, adjust this.
17224 if test -x /usr/bin/objformat; then
17225 objformat=`/usr/bin/objformat`
17226 else
17227 case $host_os in
17228 freebsd[23].*) objformat=aout ;;
17229 *) objformat=elf ;;
17230 esac
17231 fi
17232 version_type=freebsd-$objformat
17233 case $version_type in
17234 freebsd-elf*)
17235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17236 soname_spec='$libname$release$shared_ext$major'
17237 need_version=no
17238 need_lib_prefix=no
17239 ;;
17240 freebsd-*)
17241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17242 need_version=yes
17243 ;;
17244 esac
17245 shlibpath_var=LD_LIBRARY_PATH
17246 case $host_os in
17247 freebsd2.*)
17248 shlibpath_overrides_runpath=yes
17249 ;;
17250 freebsd3.[01]* | freebsdelf3.[01]*)
17251 shlibpath_overrides_runpath=yes
17252 hardcode_into_libs=yes
17253 ;;
17254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17256 shlibpath_overrides_runpath=no
17257 hardcode_into_libs=yes
17258 ;;
17259 *) # from 4.6 on, and DragonFly
17260 shlibpath_overrides_runpath=yes
17261 hardcode_into_libs=yes
17262 ;;
17263 esac
17264 ;;
17265
17266 haiku*)
17267 version_type=linux # correct to gnu/linux during the next big refactor
17268 need_lib_prefix=no
17269 need_version=no
17270 dynamic_linker="$host_os runtime_loader"
17271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17272 soname_spec='$libname$release$shared_ext$major'
17273 shlibpath_var=LIBRARY_PATH
17274 shlibpath_overrides_runpath=no
17275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17276 hardcode_into_libs=yes
17277 ;;
17278
17279 hpux9* | hpux10* | hpux11*)
17280 # Give a soname corresponding to the major version so that dld.sl refuses to
17281 # link against other versions.
17282 version_type=sunos
17283 need_lib_prefix=no
17284 need_version=no
17285 case $host_cpu in
17286 ia64*)
17287 shrext_cmds='.so'
17288 hardcode_into_libs=yes
17289 dynamic_linker="$host_os dld.so"
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17293 soname_spec='$libname$release$shared_ext$major'
17294 if test 32 = "$HPUX_IA64_MODE"; then
17295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17297 else
17298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17299 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17300 fi
17301 ;;
17302 hppa*64*)
17303 shrext_cmds='.sl'
17304 hardcode_into_libs=yes
17305 dynamic_linker="$host_os dld.sl"
17306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17309 soname_spec='$libname$release$shared_ext$major'
17310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17312 ;;
17313 *)
17314 shrext_cmds='.sl'
17315 dynamic_linker="$host_os dld.sl"
17316 shlibpath_var=SHLIB_PATH
17317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17319 soname_spec='$libname$release$shared_ext$major'
17320 ;;
17321 esac
17322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17323 postinstall_cmds='chmod 555 $lib'
17324 # or fails outright, so override atomically:
17325 install_override_mode=555
17326 ;;
17327
17328 interix[3-9]*)
17329 version_type=linux # correct to gnu/linux during the next big refactor
17330 need_lib_prefix=no
17331 need_version=no
17332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17333 soname_spec='$libname$release$shared_ext$major'
17334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=no
17337 hardcode_into_libs=yes
17338 ;;
17339
17340 irix5* | irix6* | nonstopux*)
17341 case $host_os in
17342 nonstopux*) version_type=nonstopux ;;
17343 *)
17344 if test yes = "$lt_cv_prog_gnu_ld"; then
17345 version_type=linux # correct to gnu/linux during the next big refactor
17346 else
17347 version_type=irix
17348 fi ;;
17349 esac
17350 need_lib_prefix=no
17351 need_version=no
17352 soname_spec='$libname$release$shared_ext$major'
17353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17354 case $host_os in
17355 irix5* | nonstopux*)
17356 libsuff= shlibsuff=
17357 ;;
17358 *)
17359 case $LD in # libtool.m4 will add one of these switches to LD
17360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361 libsuff= shlibsuff= libmagic=32-bit;;
17362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363 libsuff=32 shlibsuff=N32 libmagic=N32;;
17364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366 *) libsuff= shlibsuff= libmagic=never-match;;
17367 esac
17368 ;;
17369 esac
17370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371 shlibpath_overrides_runpath=no
17372 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17373 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17374 hardcode_into_libs=yes
17375 ;;
17376
17377 # No shared lib support for Linux oldld, aout, or coff.
17378 linux*oldld* | linux*aout* | linux*coff*)
17379 dynamic_linker=no
17380 ;;
17381
17382 linux*android*)
17383 version_type=none # Android doesn't support versioned libraries.
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='$libname$release$shared_ext'
17387 soname_spec='$libname$release$shared_ext'
17388 finish_cmds=
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=yes
17391
17392 # This implies no fast_install, which is unacceptable.
17393 # Some rework will be needed to allow for fast_install
17394 # before this can be enabled.
17395 hardcode_into_libs=yes
17396
17397 dynamic_linker='Android linker'
17398 # Don't embed -rpath directories since the linker doesn't support them.
17399 hardcode_libdir_flag_spec='-L$libdir'
17400 ;;
17401
17402 # This must be glibc/ELF.
17403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17404 version_type=linux # correct to gnu/linux during the next big refactor
17405 need_lib_prefix=no
17406 need_version=no
17407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17408 soname_spec='$libname$release$shared_ext$major'
17409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 shlibpath_overrides_runpath=no
17412
17413 # Some binutils ld are patched to set DT_RUNPATH
17414 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 lt_cv_shlibpath_overrides_runpath=no
17418 save_LDFLAGS=$LDFLAGS
17419 save_libdir=$libdir
17420 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17421 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424
17425 int
17426 main ()
17427 {
17428
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"; then :
17434 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17435 lt_cv_shlibpath_overrides_runpath=yes
17436 fi
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17440 LDFLAGS=$save_LDFLAGS
17441 libdir=$save_libdir
17442
17443 fi
17444
17445 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17446
17447 # This implies no fast_install, which is unacceptable.
17448 # Some rework will be needed to allow for fast_install
17449 # before this can be enabled.
17450 hardcode_into_libs=yes
17451
17452 # Ideally, we could use ldconfig to report *all* directores which are
17453 # searched for libraries, however this is still not possible. Aside from not
17454 # being certain /sbin/ldconfig is available, command
17455 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17456 # even though it is searched at run-time. Try to do the best guess by
17457 # appending ld.so.conf contents (and includes) to the search path.
17458 if test -f /etc/ld.so.conf; then
17459 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' ' '`
17460 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17461 fi
17462
17463 # We used to test for /lib/ld.so.1 and disable shared libraries on
17464 # powerpc, because MkLinux only supported shared libraries with the
17465 # GNU dynamic linker. Since this was broken with cross compilers,
17466 # most powerpc-linux boxes support dynamic linking these days and
17467 # people can always --disable-shared, the test was removed, and we
17468 # assume the GNU/Linux dynamic linker is in use.
17469 dynamic_linker='GNU/Linux ld.so'
17470 ;;
17471
17472 netbsdelf*-gnu)
17473 version_type=linux
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=no
17480 hardcode_into_libs=yes
17481 dynamic_linker='NetBSD ld.elf_so'
17482 ;;
17483
17484 netbsd*)
17485 version_type=sunos
17486 need_lib_prefix=no
17487 need_version=no
17488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17491 dynamic_linker='NetBSD (a.out) ld.so'
17492 else
17493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17494 soname_spec='$libname$release$shared_ext$major'
17495 dynamic_linker='NetBSD ld.elf_so'
17496 fi
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=yes
17499 hardcode_into_libs=yes
17500 ;;
17501
17502 newsos6)
17503 version_type=linux # correct to gnu/linux during the next big refactor
17504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 shlibpath_overrides_runpath=yes
17507 ;;
17508
17509 *nto* | *qnx*)
17510 version_type=qnx
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514 soname_spec='$libname$release$shared_ext$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=no
17517 hardcode_into_libs=yes
17518 dynamic_linker='ldqnx.so'
17519 ;;
17520
17521 openbsd* | bitrig*)
17522 version_type=sunos
17523 sys_lib_dlsearch_path_spec=/usr/lib
17524 need_lib_prefix=no
17525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17526 need_version=no
17527 else
17528 need_version=yes
17529 fi
17530 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes
17534 ;;
17535
17536 os2*)
17537 libname_spec='$name'
17538 version_type=windows
17539 shrext_cmds=.dll
17540 need_version=no
17541 need_lib_prefix=no
17542 # OS/2 can only load a DLL with a base name of 8 characters or less.
17543 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17544 v=$($ECHO $release$versuffix | tr -d .-);
17545 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17546 $ECHO $n$v`$shared_ext'
17547 library_names_spec='${libname}_dll.$libext'
17548 dynamic_linker='OS/2 ld.exe'
17549 shlibpath_var=BEGINLIBPATH
17550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17552 postinstall_cmds='base_file=`basename \$file`~
17553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17554 dldir=$destdir/`dirname \$dlpath`~
17555 test -d \$dldir || mkdir -p \$dldir~
17556 $install_prog $dir/$dlname \$dldir/$dlname~
17557 chmod a+x \$dldir/$dlname~
17558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17560 fi'
17561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17562 dlpath=$dir/\$dldll~
17563 $RM \$dlpath'
17564 ;;
17565
17566 osf3* | osf4* | osf5*)
17567 version_type=osf
17568 need_lib_prefix=no
17569 need_version=no
17570 soname_spec='$libname$release$shared_ext$major'
17571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17575 ;;
17576
17577 rdos*)
17578 dynamic_linker=no
17579 ;;
17580
17581 solaris*)
17582 version_type=linux # correct to gnu/linux during the next big refactor
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17586 soname_spec='$libname$release$shared_ext$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath=yes
17589 hardcode_into_libs=yes
17590 # ldd complains unless libraries are executable
17591 postinstall_cmds='chmod +x $lib'
17592 ;;
17593
17594 sunos4*)
17595 version_type=sunos
17596 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=yes
17600 if test yes = "$with_gnu_ld"; then
17601 need_lib_prefix=no
17602 fi
17603 need_version=yes
17604 ;;
17605
17606 sysv4 | sysv4.3*)
17607 version_type=linux # correct to gnu/linux during the next big refactor
17608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17609 soname_spec='$libname$release$shared_ext$major'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 case $host_vendor in
17612 sni)
17613 shlibpath_overrides_runpath=no
17614 need_lib_prefix=no
17615 runpath_var=LD_RUN_PATH
17616 ;;
17617 siemens)
17618 need_lib_prefix=no
17619 ;;
17620 motorola)
17621 need_lib_prefix=no
17622 need_version=no
17623 shlibpath_overrides_runpath=no
17624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17625 ;;
17626 esac
17627 ;;
17628
17629 sysv4*MP*)
17630 if test -d /usr/nec; then
17631 version_type=linux # correct to gnu/linux during the next big refactor
17632 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17633 soname_spec='$libname$shared_ext.$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 fi
17636 ;;
17637
17638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17639 version_type=sco
17640 need_lib_prefix=no
17641 need_version=no
17642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17643 soname_spec='$libname$release$shared_ext$major'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes
17646 hardcode_into_libs=yes
17647 if test yes = "$with_gnu_ld"; then
17648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17649 else
17650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17651 case $host_os in
17652 sco3.2v5*)
17653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17654 ;;
17655 esac
17656 fi
17657 sys_lib_dlsearch_path_spec='/usr/lib'
17658 ;;
17659
17660 tpf*)
17661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17662 version_type=linux # correct to gnu/linux during the next big refactor
17663 need_lib_prefix=no
17664 need_version=no
17665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17666 shlibpath_var=LD_LIBRARY_PATH
17667 shlibpath_overrides_runpath=no
17668 hardcode_into_libs=yes
17669 ;;
17670
17671 uts4*)
17672 version_type=linux # correct to gnu/linux during the next big refactor
17673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17674 soname_spec='$libname$release$shared_ext$major'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 ;;
17677
17678 *)
17679 dynamic_linker=no
17680 ;;
17681 esac
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17683 $as_echo "$dynamic_linker" >&6; }
17684 test no = "$dynamic_linker" && can_build_shared=no
17685
17686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17687 if test yes = "$GCC"; then
17688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17689 fi
17690
17691 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17692 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17693 fi
17694
17695 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17696 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17697 fi
17698
17699 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17700 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17701
17702 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17703 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17704
17705 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17706 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17805 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17806 hardcode_action=
17807 if test -n "$hardcode_libdir_flag_spec" ||
17808 test -n "$runpath_var" ||
17809 test yes = "$hardcode_automatic"; then
17810
17811 # We can hardcode non-existent directories.
17812 if test no != "$hardcode_direct" &&
17813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17814 # have to relink, otherwise we might link with an installed library
17815 # when we should be linking with a yet-to-be-installed one
17816 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17817 test no != "$hardcode_minus_L"; then
17818 # Linking always hardcodes the temporary library directory.
17819 hardcode_action=relink
17820 else
17821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17822 hardcode_action=immediate
17823 fi
17824 else
17825 # We cannot hardcode anything, or else we can only hardcode existing
17826 # directories.
17827 hardcode_action=unsupported
17828 fi
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17830 $as_echo "$hardcode_action" >&6; }
17831
17832 if test relink = "$hardcode_action" ||
17833 test yes = "$inherit_rpath"; then
17834 # Fast installation is not supported
17835 enable_fast_install=no
17836 elif test yes = "$shlibpath_overrides_runpath" ||
17837 test no = "$enable_shared"; then
17838 # Fast installation is not necessary
17839 enable_fast_install=needless
17840 fi
17841
17842
17843
17844
17845
17846
17847 if test yes != "$enable_dlopen"; then
17848 enable_dlopen=unknown
17849 enable_dlopen_self=unknown
17850 enable_dlopen_self_static=unknown
17851 else
17852 lt_cv_dlopen=no
17853 lt_cv_dlopen_libs=
17854
17855 case $host_os in
17856 beos*)
17857 lt_cv_dlopen=load_add_on
17858 lt_cv_dlopen_libs=
17859 lt_cv_dlopen_self=yes
17860 ;;
17861
17862 mingw* | pw32* | cegcc*)
17863 lt_cv_dlopen=LoadLibrary
17864 lt_cv_dlopen_libs=
17865 ;;
17866
17867 cygwin*)
17868 lt_cv_dlopen=dlopen
17869 lt_cv_dlopen_libs=
17870 ;;
17871
17872 darwin*)
17873 # if libdl is installed we need to link against it
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17875 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17876 if ${ac_cv_lib_dl_dlopen+:} false; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-ldl $LIBS"
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17883
17884 /* Override any GCC internal prototype to avoid an error.
17885 Use char because int might match the return type of a GCC
17886 builtin and then its argument prototype would still apply. */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 char dlopen ();
17891 int
17892 main ()
17893 {
17894 return dlopen ();
17895 ;
17896 return 0;
17897 }
17898 _ACEOF
17899 if ac_fn_c_try_link "$LINENO"; then :
17900 ac_cv_lib_dl_dlopen=yes
17901 else
17902 ac_cv_lib_dl_dlopen=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17907 fi
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17909 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17910 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17911 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17912 else
17913
17914 lt_cv_dlopen=dyld
17915 lt_cv_dlopen_libs=
17916 lt_cv_dlopen_self=yes
17917
17918 fi
17919
17920 ;;
17921
17922 tpf*)
17923 # Don't try to run any link tests for TPF. We know it's impossible
17924 # because TPF is a cross-compiler, and we know how we open DSOs.
17925 lt_cv_dlopen=dlopen
17926 lt_cv_dlopen_libs=
17927 lt_cv_dlopen_self=no
17928 ;;
17929
17930 *)
17931 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17932 if test "x$ac_cv_func_shl_load" = xyes; then :
17933 lt_cv_dlopen=shl_load
17934 else
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17936 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17937 if ${ac_cv_lib_dld_shl_load+:} false; then :
17938 $as_echo_n "(cached) " >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-ldld $LIBS"
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17944
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 char shl_load ();
17952 int
17953 main ()
17954 {
17955 return shl_load ();
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 ac_cv_lib_dld_shl_load=yes
17962 else
17963 ac_cv_lib_dld_shl_load=no
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17970 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17971 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17972 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17973 else
17974 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17975 if test "x$ac_cv_func_dlopen" = xyes; then :
17976 lt_cv_dlopen=dlopen
17977 else
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17980 if ${ac_cv_lib_dl_dlopen+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-ldl $LIBS"
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 char dlopen ();
17995 int
17996 main ()
17997 {
17998 return dlopen ();
17999 ;
18000 return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_link "$LINENO"; then :
18004 ac_cv_lib_dl_dlopen=yes
18005 else
18006 ac_cv_lib_dl_dlopen=no
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18011 fi
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18014 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18015 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18016 else
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18018 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18019 if ${ac_cv_lib_svld_dlopen+:} false; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 ac_check_lib_save_LIBS=$LIBS
18023 LIBS="-lsvld $LIBS"
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18030 #ifdef __cplusplus
18031 extern "C"
18032 #endif
18033 char dlopen ();
18034 int
18035 main ()
18036 {
18037 return dlopen ();
18038 ;
18039 return 0;
18040 }
18041 _ACEOF
18042 if ac_fn_c_try_link "$LINENO"; then :
18043 ac_cv_lib_svld_dlopen=yes
18044 else
18045 ac_cv_lib_svld_dlopen=no
18046 fi
18047 rm -f core conftest.err conftest.$ac_objext \
18048 conftest$ac_exeext conftest.$ac_ext
18049 LIBS=$ac_check_lib_save_LIBS
18050 fi
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18052 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18053 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18054 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18055 else
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18057 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18058 if ${ac_cv_lib_dld_dld_link+:} false; then :
18059 $as_echo_n "(cached) " >&6
18060 else
18061 ac_check_lib_save_LIBS=$LIBS
18062 LIBS="-ldld $LIBS"
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18069 #ifdef __cplusplus
18070 extern "C"
18071 #endif
18072 char dld_link ();
18073 int
18074 main ()
18075 {
18076 return dld_link ();
18077 ;
18078 return 0;
18079 }
18080 _ACEOF
18081 if ac_fn_c_try_link "$LINENO"; then :
18082 ac_cv_lib_dld_dld_link=yes
18083 else
18084 ac_cv_lib_dld_dld_link=no
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18088 LIBS=$ac_check_lib_save_LIBS
18089 fi
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18091 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18092 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18093 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18094 fi
18095
18096
18097 fi
18098
18099
18100 fi
18101
18102
18103 fi
18104
18105
18106 fi
18107
18108
18109 fi
18110
18111 ;;
18112 esac
18113
18114 if test no = "$lt_cv_dlopen"; then
18115 enable_dlopen=no
18116 else
18117 enable_dlopen=yes
18118 fi
18119
18120 case $lt_cv_dlopen in
18121 dlopen)
18122 save_CPPFLAGS=$CPPFLAGS
18123 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18124
18125 save_LDFLAGS=$LDFLAGS
18126 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18127
18128 save_LIBS=$LIBS
18129 LIBS="$lt_cv_dlopen_libs $LIBS"
18130
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18132 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18133 if ${lt_cv_dlopen_self+:} false; then :
18134 $as_echo_n "(cached) " >&6
18135 else
18136 if test yes = "$cross_compiling"; then :
18137 lt_cv_dlopen_self=cross
18138 else
18139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18140 lt_status=$lt_dlunknown
18141 cat > conftest.$ac_ext <<_LT_EOF
18142 #line $LINENO "configure"
18143 #include "confdefs.h"
18144
18145 #if HAVE_DLFCN_H
18146 #include <dlfcn.h>
18147 #endif
18148
18149 #include <stdio.h>
18150
18151 #ifdef RTLD_GLOBAL
18152 # define LT_DLGLOBAL RTLD_GLOBAL
18153 #else
18154 # ifdef DL_GLOBAL
18155 # define LT_DLGLOBAL DL_GLOBAL
18156 # else
18157 # define LT_DLGLOBAL 0
18158 # endif
18159 #endif
18160
18161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18162 find out it does not work in some platform. */
18163 #ifndef LT_DLLAZY_OR_NOW
18164 # ifdef RTLD_LAZY
18165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18166 # else
18167 # ifdef DL_LAZY
18168 # define LT_DLLAZY_OR_NOW DL_LAZY
18169 # else
18170 # ifdef RTLD_NOW
18171 # define LT_DLLAZY_OR_NOW RTLD_NOW
18172 # else
18173 # ifdef DL_NOW
18174 # define LT_DLLAZY_OR_NOW DL_NOW
18175 # else
18176 # define LT_DLLAZY_OR_NOW 0
18177 # endif
18178 # endif
18179 # endif
18180 # endif
18181 #endif
18182
18183 /* When -fvisibility=hidden is used, assume the code has been annotated
18184 correspondingly for the symbols needed. */
18185 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18186 int fnord () __attribute__((visibility("default")));
18187 #endif
18188
18189 int fnord () { return 42; }
18190 int main ()
18191 {
18192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18193 int status = $lt_dlunknown;
18194
18195 if (self)
18196 {
18197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18198 else
18199 {
18200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18201 else puts (dlerror ());
18202 }
18203 /* dlclose (self); */
18204 }
18205 else
18206 puts (dlerror ());
18207
18208 return status;
18209 }
18210 _LT_EOF
18211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18212 (eval $ac_link) 2>&5
18213 ac_status=$?
18214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18215 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18216 (./conftest; exit; ) >&5 2>/dev/null
18217 lt_status=$?
18218 case x$lt_status in
18219 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18220 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18221 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18222 esac
18223 else :
18224 # compilation failed
18225 lt_cv_dlopen_self=no
18226 fi
18227 fi
18228 rm -fr conftest*
18229
18230
18231 fi
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18233 $as_echo "$lt_cv_dlopen_self" >&6; }
18234
18235 if test yes = "$lt_cv_dlopen_self"; then
18236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18239 if ${lt_cv_dlopen_self_static+:} false; then :
18240 $as_echo_n "(cached) " >&6
18241 else
18242 if test yes = "$cross_compiling"; then :
18243 lt_cv_dlopen_self_static=cross
18244 else
18245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18246 lt_status=$lt_dlunknown
18247 cat > conftest.$ac_ext <<_LT_EOF
18248 #line $LINENO "configure"
18249 #include "confdefs.h"
18250
18251 #if HAVE_DLFCN_H
18252 #include <dlfcn.h>
18253 #endif
18254
18255 #include <stdio.h>
18256
18257 #ifdef RTLD_GLOBAL
18258 # define LT_DLGLOBAL RTLD_GLOBAL
18259 #else
18260 # ifdef DL_GLOBAL
18261 # define LT_DLGLOBAL DL_GLOBAL
18262 # else
18263 # define LT_DLGLOBAL 0
18264 # endif
18265 #endif
18266
18267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18268 find out it does not work in some platform. */
18269 #ifndef LT_DLLAZY_OR_NOW
18270 # ifdef RTLD_LAZY
18271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18272 # else
18273 # ifdef DL_LAZY
18274 # define LT_DLLAZY_OR_NOW DL_LAZY
18275 # else
18276 # ifdef RTLD_NOW
18277 # define LT_DLLAZY_OR_NOW RTLD_NOW
18278 # else
18279 # ifdef DL_NOW
18280 # define LT_DLLAZY_OR_NOW DL_NOW
18281 # else
18282 # define LT_DLLAZY_OR_NOW 0
18283 # endif
18284 # endif
18285 # endif
18286 # endif
18287 #endif
18288
18289 /* When -fvisibility=hidden is used, assume the code has been annotated
18290 correspondingly for the symbols needed. */
18291 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18292 int fnord () __attribute__((visibility("default")));
18293 #endif
18294
18295 int fnord () { return 42; }
18296 int main ()
18297 {
18298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18299 int status = $lt_dlunknown;
18300
18301 if (self)
18302 {
18303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18304 else
18305 {
18306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18307 else puts (dlerror ());
18308 }
18309 /* dlclose (self); */
18310 }
18311 else
18312 puts (dlerror ());
18313
18314 return status;
18315 }
18316 _LT_EOF
18317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18318 (eval $ac_link) 2>&5
18319 ac_status=$?
18320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18321 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18322 (./conftest; exit; ) >&5 2>/dev/null
18323 lt_status=$?
18324 case x$lt_status in
18325 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18326 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18327 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18328 esac
18329 else :
18330 # compilation failed
18331 lt_cv_dlopen_self_static=no
18332 fi
18333 fi
18334 rm -fr conftest*
18335
18336
18337 fi
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18340 fi
18341
18342 CPPFLAGS=$save_CPPFLAGS
18343 LDFLAGS=$save_LDFLAGS
18344 LIBS=$save_LIBS
18345 ;;
18346 esac
18347
18348 case $lt_cv_dlopen_self in
18349 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18350 *) enable_dlopen_self=unknown ;;
18351 esac
18352
18353 case $lt_cv_dlopen_self_static in
18354 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18355 *) enable_dlopen_self_static=unknown ;;
18356 esac
18357 fi
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375 striplib=
18376 old_striplib=
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18378 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18379 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18380 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18381 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18383 $as_echo "yes" >&6; }
18384 else
18385 # FIXME - insert some real tests, host_os isn't really good enough
18386 case $host_os in
18387 darwin*)
18388 if test -n "$STRIP"; then
18389 striplib="$STRIP -x"
18390 old_striplib="$STRIP -S"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18392 $as_echo "yes" >&6; }
18393 else
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 $as_echo "no" >&6; }
18396 fi
18397 ;;
18398 *)
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18401 ;;
18402 esac
18403 fi
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416 # Report what library types will actually be built
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18420 $as_echo "$can_build_shared" >&6; }
18421
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18423 $as_echo_n "checking whether to build shared libraries... " >&6; }
18424 test no = "$can_build_shared" && enable_shared=no
18425
18426 # On AIX, shared libraries and static libraries use the same namespace, and
18427 # are all built from PIC.
18428 case $host_os in
18429 aix3*)
18430 test yes = "$enable_shared" && enable_static=no
18431 if test -n "$RANLIB"; then
18432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18433 postinstall_cmds='$RANLIB $lib'
18434 fi
18435 ;;
18436
18437 aix[4-9]*)
18438 if test ia64 != "$host_cpu"; then
18439 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18440 yes,aix,yes) ;; # shared object as lib.so file only
18441 yes,svr4,*) ;; # shared object as lib.so archive member only
18442 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18443 esac
18444 fi
18445 ;;
18446 esac
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18448 $as_echo "$enable_shared" >&6; }
18449
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18451 $as_echo_n "checking whether to build static libraries... " >&6; }
18452 # Make sure either enable_shared or enable_static is yes.
18453 test yes = "$enable_shared" || enable_static=yes
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18455 $as_echo "$enable_static" >&6; }
18456
18457
18458
18459
18460 fi
18461 ac_ext=c
18462 ac_cpp='$CPP $CPPFLAGS'
18463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466
18467 CC=$lt_save_CC
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483 ac_config_commands="$ac_config_commands libtool"
18484
18485
18486
18487
18488 # Only expand once:
18489
18490
18491
18492
18493
18494 # Define a configure option for an alternate module directory
18495
18496 # Check whether --with-xorg-module-dir was given.
18497 if test "${with_xorg_module_dir+set}" = set; then :
18498 withval=$with_xorg_module_dir; moduledir="$withval"
18499 else
18500 moduledir="$libdir/xorg/modules"
18501 fi
18502
18503
18504 # Store the list of server defined optional extensions in REQUIRED_MODULES
18505
18506
18507 SAVE_CFLAGS="$CFLAGS"
18508 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18511
18512 #include "xorg-server.h"
18513 #if !defined RANDR
18514 #error RANDR not defined
18515 #endif
18516
18517 int
18518 main ()
18519 {
18520
18521 ;
18522 return 0;
18523 }
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"; then :
18526 _EXT_CHECK=yes
18527 else
18528 _EXT_CHECK=no
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 CFLAGS="$SAVE_CFLAGS"
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18533 $as_echo_n "checking if RANDR is defined... " >&6; }
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18535 $as_echo "$_EXT_CHECK" >&6; }
18536 if test "$_EXT_CHECK" != no; then
18537 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18538 fi
18539
18540
18541
18542 SAVE_CFLAGS="$CFLAGS"
18543 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546
18547 #include "xorg-server.h"
18548 #if !defined RENDER
18549 #error RENDER not defined
18550 #endif
18551
18552 int
18553 main ()
18554 {
18555
18556 ;
18557 return 0;
18558 }
18559 _ACEOF
18560 if ac_fn_c_try_compile "$LINENO"; then :
18561 _EXT_CHECK=yes
18562 else
18563 _EXT_CHECK=no
18564 fi
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 CFLAGS="$SAVE_CFLAGS"
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18568 $as_echo_n "checking if RENDER is defined... " >&6; }
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18570 $as_echo "$_EXT_CHECK" >&6; }
18571 if test "$_EXT_CHECK" != no; then
18572 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18573 fi
18574
18575
18576
18577 SAVE_CFLAGS="$CFLAGS"
18578 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581
18582 #include "xorg-server.h"
18583 #if !defined XV
18584 #error XV not defined
18585 #endif
18586
18587 int
18588 main ()
18589 {
18590
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 if ac_fn_c_try_compile "$LINENO"; then :
18596 _EXT_CHECK=yes
18597 else
18598 _EXT_CHECK=no
18599 fi
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 CFLAGS="$SAVE_CFLAGS"
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18603 $as_echo_n "checking if XV is defined... " >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18605 $as_echo "$_EXT_CHECK" >&6; }
18606 if test "$_EXT_CHECK" != no; then
18607 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18608 fi
18609
18610
18611
18612 SAVE_CFLAGS="$CFLAGS"
18613 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616
18617 #include "xorg-server.h"
18618 #if !defined DPMSExtension
18619 #error DPMSExtension not defined
18620 #endif
18621
18622 int
18623 main ()
18624 {
18625
18626 ;
18627 return 0;
18628 }
18629 _ACEOF
18630 if ac_fn_c_try_compile "$LINENO"; then :
18631 _EXT_CHECK=yes
18632 else
18633 _EXT_CHECK=no
18634 fi
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 CFLAGS="$SAVE_CFLAGS"
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18638 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18640 $as_echo "$_EXT_CHECK" >&6; }
18641 if test "$_EXT_CHECK" != no; then
18642 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18643 fi
18644
18645
18646 # Obtain compiler/linker options for the driver dependencies
18647
18648 pkg_failed=no
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18650 $as_echo_n "checking for XORG... " >&6; }
18651
18652 if test -n "$XORG_CFLAGS"; then
18653 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18654 elif test -n "$PKG_CONFIG"; then
18655 if test -n "$PKG_CONFIG" && \
18656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18657 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18658 ac_status=$?
18659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18660 test $ac_status = 0; }; then
18661 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18662 test "x$?" != "x0" && pkg_failed=yes
18663 else
18664 pkg_failed=yes
18665 fi
18666 else
18667 pkg_failed=untried
18668 fi
18669 if test -n "$XORG_LIBS"; then
18670 pkg_cv_XORG_LIBS="$XORG_LIBS"
18671 elif test -n "$PKG_CONFIG"; then
18672 if test -n "$PKG_CONFIG" && \
18673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18674 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18675 ac_status=$?
18676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18677 test $ac_status = 0; }; then
18678 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18679 test "x$?" != "x0" && pkg_failed=yes
18680 else
18681 pkg_failed=yes
18682 fi
18683 else
18684 pkg_failed=untried
18685 fi
18686
18687
18688
18689 if test $pkg_failed = yes; then
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691 $as_echo "no" >&6; }
18692
18693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18694 _pkg_short_errors_supported=yes
18695 else
18696 _pkg_short_errors_supported=no
18697 fi
18698 if test $_pkg_short_errors_supported = yes; then
18699 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18700 else
18701 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18702 fi
18703 # Put the nasty error message in config.log where it belongs
18704 echo "$XORG_PKG_ERRORS" >&5
18705
18706 as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
18707
18708 $XORG_PKG_ERRORS
18709
18710 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18711 installed software in a non-standard prefix.
18712
18713 Alternatively, you may set the environment variables XORG_CFLAGS
18714 and XORG_LIBS to avoid the need to call pkg-config.
18715 See the pkg-config man page for more details." "$LINENO" 5
18716 elif test $pkg_failed = untried; then
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18721 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18722 is in your PATH or set the PKG_CONFIG environment variable to the full
18723 path to pkg-config.
18724
18725 Alternatively, you may set the environment variables XORG_CFLAGS
18726 and XORG_LIBS to avoid the need to call pkg-config.
18727 See the pkg-config man page for more details.
18728
18729 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18730 See \`config.log' for more details" "$LINENO" 5; }
18731 else
18732 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18733 XORG_LIBS=$pkg_cv_XORG_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18735 $as_echo "yes" >&6; }
18736
18737 fi
18738
18739 # Checks for libraries.
18740 SAVE_CPPFLAGS="$CPPFLAGS"
18741 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18742 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18743 "
18744 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18745 XSERVER_LIBPCIACCESS=yes
18746 else
18747 XSERVER_LIBPCIACCESS=no
18748 fi
18749
18750 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18751 if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18752
18753 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18754
18755 fi
18756
18757
18758 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18759 if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18760
18761 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18762
18763 fi
18764
18765
18766 CPPFLAGS="$SAVE_CPPFLAGS"
18767
18768 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18769
18770 pkg_failed=no
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18772 $as_echo_n "checking for PCIACCESS... " >&6; }
18773
18774 if test -n "$PCIACCESS_CFLAGS"; then
18775 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18776 elif test -n "$PKG_CONFIG"; then
18777 if test -n "$PKG_CONFIG" && \
18778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18779 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18780 ac_status=$?
18781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18782 test $ac_status = 0; }; then
18783 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18784 test "x$?" != "x0" && pkg_failed=yes
18785 else
18786 pkg_failed=yes
18787 fi
18788 else
18789 pkg_failed=untried
18790 fi
18791 if test -n "$PCIACCESS_LIBS"; then
18792 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18793 elif test -n "$PKG_CONFIG"; then
18794 if test -n "$PKG_CONFIG" && \
18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18796 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18797 ac_status=$?
18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18799 test $ac_status = 0; }; then
18800 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18801 test "x$?" != "x0" && pkg_failed=yes
18802 else
18803 pkg_failed=yes
18804 fi
18805 else
18806 pkg_failed=untried
18807 fi
18808
18809
18810
18811 if test $pkg_failed = yes; then
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813 $as_echo "no" >&6; }
18814
18815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18816 _pkg_short_errors_supported=yes
18817 else
18818 _pkg_short_errors_supported=no
18819 fi
18820 if test $_pkg_short_errors_supported = yes; then
18821 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18822 else
18823 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18824 fi
18825 # Put the nasty error message in config.log where it belongs
18826 echo "$PCIACCESS_PKG_ERRORS" >&5
18827
18828 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18829
18830 $PCIACCESS_PKG_ERRORS
18831
18832 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18833 installed software in a non-standard prefix.
18834
18835 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18836 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18837 See the pkg-config man page for more details." "$LINENO" 5
18838 elif test $pkg_failed = untried; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840 $as_echo "no" >&6; }
18841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18843 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18844 is in your PATH or set the PKG_CONFIG environment variable to the full
18845 path to pkg-config.
18846
18847 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18848 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18849 See the pkg-config man page for more details.
18850
18851 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18852 See \`config.log' for more details" "$LINENO" 5; }
18853 else
18854 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18855 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18857 $as_echo "yes" >&6; }
18858
18859 fi
18860 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18861 fi
18862 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18863 XSERVER_LIBPCIACCESS_TRUE=
18864 XSERVER_LIBPCIACCESS_FALSE='#'
18865 else
18866 XSERVER_LIBPCIACCESS_TRUE='#'
18867 XSERVER_LIBPCIACCESS_FALSE=
18868 fi
18869
18870
18871
18872 # Check whether --enable-xaa was given.
18873 if test "${enable_xaa+set}" = set; then :
18874 enableval=$enable_xaa; XAA="$enableval"
18875 else
18876 XAA=auto
18877 fi
18878
18879 if test "x$XAA" != xno; then
18880 save_CFLAGS=$CFLAGS
18881 save_CPPFLAGS=$CPPFLAGS
18882 CFLAGS=$XORG_CFLAGS
18883 CPPFLAGS="$XORG_CFLAGS"
18884 for ac_header in xaa.h
18885 do :
18886 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18887 if test "x$ac_cv_header_xaa_h" = xyes; then :
18888 cat >>confdefs.h <<_ACEOF
18889 #define HAVE_XAA_H 1
18890 _ACEOF
18891 XAA=yes
18892 else
18893 XAA=no
18894 fi
18895
18896 done
18897
18898 CFLAGS=$save_CFLAGS
18899 CPPFLAGS=$save_CPPFLAGS
18900 fi
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18902 $as_echo_n "checking whether to include XAA support... " >&6; }
18903 if test "x$XAA" = xyes; then
18904 XAA_TRUE=
18905 XAA_FALSE='#'
18906 else
18907 XAA_TRUE='#'
18908 XAA_FALSE=
18909 fi
18910
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18912 $as_echo "$XAA" >&6; }
18913
18914 # Required by exa.h
18915
18916 $as_echo "#define EXA_DRIVER_KNOWN_MAJOR 3" >>confdefs.h
18917
18918
18919
18920
18921
18922 DRIVER_NAME=i128
18923
18924
18925 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18926
18927 cat >confcache <<\_ACEOF
18928 # This file is a shell script that caches the results of configure
18929 # tests run on this system so they can be shared between configure
18930 # scripts and configure runs, see configure's option --config-cache.
18931 # It is not useful on other systems. If it contains results you don't
18932 # want to keep, you may remove or edit it.
18933 #
18934 # config.status only pays attention to the cache file if you give it
18935 # the --recheck option to rerun configure.
18936 #
18937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18939 # following values.
18940
18941 _ACEOF
18942
18943 # The following way of writing the cache mishandles newlines in values,
18944 # but we know of no workaround that is simple, portable, and efficient.
18945 # So, we kill variables containing newlines.
18946 # Ultrix sh set writes to stderr and can't be redirected directly,
18947 # and sets the high bit in the cache file unless we assign to the vars.
18948 (
18949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18950 eval ac_val=\$$ac_var
18951 case $ac_val in #(
18952 *${as_nl}*)
18953 case $ac_var in #(
18954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18956 esac
18957 case $ac_var in #(
18958 _ | IFS | as_nl) ;; #(
18959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18960 *) { eval $ac_var=; unset $ac_var;} ;;
18961 esac ;;
18962 esac
18963 done
18964
18965 (set) 2>&1 |
18966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18967 *${as_nl}ac_space=\ *)
18968 # `set' does not quote correctly, so add quotes: double-quote
18969 # substitution turns \\\\ into \\, and sed turns \\ into \.
18970 sed -n \
18971 "s/'/'\\\\''/g;
18972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18973 ;; #(
18974 *)
18975 # `set' quotes correctly as required by POSIX, so do not add quotes.
18976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18977 ;;
18978 esac |
18979 sort
18980 ) |
18981 sed '
18982 /^ac_cv_env_/b end
18983 t clear
18984 :clear
18985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18986 t end
18987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18988 :end' >>confcache
18989 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18990 if test -w "$cache_file"; then
18991 if test "x$cache_file" != "x/dev/null"; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18993 $as_echo "$as_me: updating cache $cache_file" >&6;}
18994 if test ! -f "$cache_file" || test -h "$cache_file"; then
18995 cat confcache >"$cache_file"
18996 else
18997 case $cache_file in #(
18998 */* | ?:*)
18999 mv -f confcache "$cache_file"$$ &&
19000 mv -f "$cache_file"$$ "$cache_file" ;; #(
19001 *)
19002 mv -f confcache "$cache_file" ;;
19003 esac
19004 fi
19005 fi
19006 else
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19009 fi
19010 fi
19011 rm -f confcache
19012
19013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19014 # Let make expand exec_prefix.
19015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19016
19017 DEFS=-DHAVE_CONFIG_H
19018
19019 ac_libobjs=
19020 ac_ltlibobjs=
19021 U=
19022 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19023 # 1. Remove the extension, and $U if already installed.
19024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19027 # will be set to the directory where LIBOBJS objects are built.
19028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19030 done
19031 LIBOBJS=$ac_libobjs
19032
19033 LTLIBOBJS=$ac_ltlibobjs
19034
19035
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19037 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19038 if test -n "$am_sleep_pid"; then
19039 # Hide warnings about reused PIDs.
19040 wait $am_sleep_pid 2>/dev/null
19041 fi
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19043 $as_echo "done" >&6; }
19044 if test -n "$EXEEXT"; then
19045 am__EXEEXT_TRUE=
19046 am__EXEEXT_FALSE='#'
19047 else
19048 am__EXEEXT_TRUE='#'
19049 am__EXEEXT_FALSE=
19050 fi
19051
19052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19053 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19055 fi
19056 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19057 as_fn_error $? "conditional \"AMDEP\" was never defined.
19058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059 fi
19060 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19061 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19063 fi
19064 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19065 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19067 fi
19068 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19069 as_fn_error $? "conditional \"XAA\" was never defined.
19070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19071 fi
19072
19073 : "${CONFIG_STATUS=./config.status}"
19074 ac_write_fail=0
19075 ac_clean_files_save=$ac_clean_files
19076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19078 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19079 as_write_fail=0
19080 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19081 #! $SHELL
19082 # Generated by $as_me.
19083 # Run this file to recreate the current configuration.
19084 # Compiler output produced by configure, useful for debugging
19085 # configure, is in config.log if it exists.
19086
19087 debug=false
19088 ac_cs_recheck=false
19089 ac_cs_silent=false
19090
19091 SHELL=\${CONFIG_SHELL-$SHELL}
19092 export SHELL
19093 _ASEOF
19094 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19095 ## -------------------- ##
19096 ## M4sh Initialization. ##
19097 ## -------------------- ##
19098
19099 # Be more Bourne compatible
19100 DUALCASE=1; export DUALCASE # for MKS sh
19101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19102 emulate sh
19103 NULLCMD=:
19104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19105 # is contrary to our usage. Disable this feature.
19106 alias -g '${1+"$@"}'='"$@"'
19107 setopt NO_GLOB_SUBST
19108 else
19109 case `(set -o) 2>/dev/null` in #(
19110 *posix*) :
19111 set -o posix ;; #(
19112 *) :
19113 ;;
19114 esac
19115 fi
19116
19117
19118 as_nl='
19119 '
19120 export as_nl
19121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19125 # Prefer a ksh shell builtin over an external printf program on Solaris,
19126 # but without wasting forks for bash or zsh.
19127 if test -z "$BASH_VERSION$ZSH_VERSION" \
19128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19129 as_echo='print -r --'
19130 as_echo_n='print -rn --'
19131 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19132 as_echo='printf %s\n'
19133 as_echo_n='printf %s'
19134 else
19135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19137 as_echo_n='/usr/ucb/echo -n'
19138 else
19139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19140 as_echo_n_body='eval
19141 arg=$1;
19142 case $arg in #(
19143 *"$as_nl"*)
19144 expr "X$arg" : "X\\(.*\\)$as_nl";
19145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19146 esac;
19147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19148 '
19149 export as_echo_n_body
19150 as_echo_n='sh -c $as_echo_n_body as_echo'
19151 fi
19152 export as_echo_body
19153 as_echo='sh -c $as_echo_body as_echo'
19154 fi
19155
19156 # The user is always right.
19157 if test "${PATH_SEPARATOR+set}" != set; then
19158 PATH_SEPARATOR=:
19159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19161 PATH_SEPARATOR=';'
19162 }
19163 fi
19164
19165
19166 # IFS
19167 # We need space, tab and new line, in precisely that order. Quoting is
19168 # there to prevent editors from complaining about space-tab.
19169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19170 # splitting by setting IFS to empty value.)
19171 IFS=" "" $as_nl"
19172
19173 # Find who we are. Look in the path if we contain no directory separator.
19174 as_myself=
19175 case $0 in #((
19176 *[\\/]* ) as_myself=$0 ;;
19177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19178 for as_dir in $PATH
19179 do
19180 IFS=$as_save_IFS
19181 test -z "$as_dir" && as_dir=.
19182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19183 done
19184 IFS=$as_save_IFS
19185
19186 ;;
19187 esac
19188 # We did not find ourselves, most probably we were run as `sh COMMAND'
19189 # in which case we are not to be found in the path.
19190 if test "x$as_myself" = x; then
19191 as_myself=$0
19192 fi
19193 if test ! -f "$as_myself"; then
19194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19195 exit 1
19196 fi
19197
19198 # Unset variables that we do not need and which cause bugs (e.g. in
19199 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19200 # suppresses any "Segmentation fault" message there. '((' could
19201 # trigger a bug in pdksh 5.2.14.
19202 for as_var in BASH_ENV ENV MAIL MAILPATH
19203 do eval test x\${$as_var+set} = xset \
19204 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19205 done
19206 PS1='$ '
19207 PS2='> '
19208 PS4='+ '
19209
19210 # NLS nuisances.
19211 LC_ALL=C
19212 export LC_ALL
19213 LANGUAGE=C
19214 export LANGUAGE
19215
19216 # CDPATH.
19217 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19218
19219
19220 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19221 # ----------------------------------------
19222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19224 # script with STATUS, using 1 if that was 0.
19225 as_fn_error ()
19226 {
19227 as_status=$1; test $as_status -eq 0 && as_status=1
19228 if test "$4"; then
19229 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19231 fi
19232 $as_echo "$as_me: error: $2" >&2
19233 as_fn_exit $as_status
19234 } # as_fn_error
19235
19236
19237 # as_fn_set_status STATUS
19238 # -----------------------
19239 # Set $? to STATUS, without forking.
19240 as_fn_set_status ()
19241 {
19242 return $1
19243 } # as_fn_set_status
19244
19245 # as_fn_exit STATUS
19246 # -----------------
19247 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19248 as_fn_exit ()
19249 {
19250 set +e
19251 as_fn_set_status $1
19252 exit $1
19253 } # as_fn_exit
19254
19255 # as_fn_unset VAR
19256 # ---------------
19257 # Portably unset VAR.
19258 as_fn_unset ()
19259 {
19260 { eval $1=; unset $1;}
19261 }
19262 as_unset=as_fn_unset
19263 # as_fn_append VAR VALUE
19264 # ----------------------
19265 # Append the text in VALUE to the end of the definition contained in VAR. Take
19266 # advantage of any shell optimizations that allow amortized linear growth over
19267 # repeated appends, instead of the typical quadratic growth present in naive
19268 # implementations.
19269 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19270 eval 'as_fn_append ()
19271 {
19272 eval $1+=\$2
19273 }'
19274 else
19275 as_fn_append ()
19276 {
19277 eval $1=\$$1\$2
19278 }
19279 fi # as_fn_append
19280
19281 # as_fn_arith ARG...
19282 # ------------------
19283 # Perform arithmetic evaluation on the ARGs, and store the result in the
19284 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19285 # must be portable across $(()) and expr.
19286 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19287 eval 'as_fn_arith ()
19288 {
19289 as_val=$(( $* ))
19290 }'
19291 else
19292 as_fn_arith ()
19293 {
19294 as_val=`expr "$@" || test $? -eq 1`
19295 }
19296 fi # as_fn_arith
19297
19298
19299 if expr a : '\(a\)' >/dev/null 2>&1 &&
19300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19301 as_expr=expr
19302 else
19303 as_expr=false
19304 fi
19305
19306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19307 as_basename=basename
19308 else
19309 as_basename=false
19310 fi
19311
19312 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19313 as_dirname=dirname
19314 else
19315 as_dirname=false
19316 fi
19317
19318 as_me=`$as_basename -- "$0" ||
19319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19320 X"$0" : 'X\(//\)$' \| \
19321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19322 $as_echo X/"$0" |
19323 sed '/^.*\/\([^/][^/]*\)\/*$/{
19324 s//\1/
19325 q
19326 }
19327 /^X\/\(\/\/\)$/{
19328 s//\1/
19329 q
19330 }
19331 /^X\/\(\/\).*/{
19332 s//\1/
19333 q
19334 }
19335 s/.*/./; q'`
19336
19337 # Avoid depending upon Character Ranges.
19338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19341 as_cr_digits='0123456789'
19342 as_cr_alnum=$as_cr_Letters$as_cr_digits
19343
19344 ECHO_C= ECHO_N= ECHO_T=
19345 case `echo -n x` in #(((((
19346 -n*)
19347 case `echo 'xy\c'` in
19348 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19349 xy) ECHO_C='\c';;
19350 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19351 ECHO_T=' ';;
19352 esac;;
19353 *)
19354 ECHO_N='-n';;
19355 esac
19356
19357 rm -f conf$$ conf$$.exe conf$$.file
19358 if test -d conf$$.dir; then
19359 rm -f conf$$.dir/conf$$.file
19360 else
19361 rm -f conf$$.dir
19362 mkdir conf$$.dir 2>/dev/null
19363 fi
19364 if (echo >conf$$.file) 2>/dev/null; then
19365 if ln -s conf$$.file conf$$ 2>/dev/null; then
19366 as_ln_s='ln -s'
19367 # ... but there are two gotchas:
19368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19370 # In both cases, we have to default to `cp -pR'.
19371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19372 as_ln_s='cp -pR'
19373 elif ln conf$$.file conf$$ 2>/dev/null; then
19374 as_ln_s=ln
19375 else
19376 as_ln_s='cp -pR'
19377 fi
19378 else
19379 as_ln_s='cp -pR'
19380 fi
19381 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19382 rmdir conf$$.dir 2>/dev/null
19383
19384
19385 # as_fn_mkdir_p
19386 # -------------
19387 # Create "$as_dir" as a directory, including parents if necessary.
19388 as_fn_mkdir_p ()
19389 {
19390
19391 case $as_dir in #(
19392 -*) as_dir=./$as_dir;;
19393 esac
19394 test -d "$as_dir" || eval $as_mkdir_p || {
19395 as_dirs=
19396 while :; do
19397 case $as_dir in #(
19398 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19399 *) as_qdir=$as_dir;;
19400 esac
19401 as_dirs="'$as_qdir' $as_dirs"
19402 as_dir=`$as_dirname -- "$as_dir" ||
19403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19404 X"$as_dir" : 'X\(//\)[^/]' \| \
19405 X"$as_dir" : 'X\(//\)$' \| \
19406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19407 $as_echo X"$as_dir" |
19408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19409 s//\1/
19410 q
19411 }
19412 /^X\(\/\/\)[^/].*/{
19413 s//\1/
19414 q
19415 }
19416 /^X\(\/\/\)$/{
19417 s//\1/
19418 q
19419 }
19420 /^X\(\/\).*/{
19421 s//\1/
19422 q
19423 }
19424 s/.*/./; q'`
19425 test -d "$as_dir" && break
19426 done
19427 test -z "$as_dirs" || eval "mkdir $as_dirs"
19428 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19429
19430
19431 } # as_fn_mkdir_p
19432 if mkdir -p . 2>/dev/null; then
19433 as_mkdir_p='mkdir -p "$as_dir"'
19434 else
19435 test -d ./-p && rmdir ./-p
19436 as_mkdir_p=false
19437 fi
19438
19439
19440 # as_fn_executable_p FILE
19441 # -----------------------
19442 # Test if FILE is an executable regular file.
19443 as_fn_executable_p ()
19444 {
19445 test -f "$1" && test -x "$1"
19446 } # as_fn_executable_p
19447 as_test_x='test -x'
19448 as_executable_p=as_fn_executable_p
19449
19450 # Sed expression to map a string onto a valid CPP name.
19451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19452
19453 # Sed expression to map a string onto a valid variable name.
19454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19455
19456
19457 exec 6>&1
19458 ## ----------------------------------- ##
19459 ## Main body of $CONFIG_STATUS script. ##
19460 ## ----------------------------------- ##
19461 _ASEOF
19462 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19463
19464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19465 # Save the log message, to keep $0 and so on meaningful, and to
19466 # report actual input values of CONFIG_FILES etc. instead of their
19467 # values after options handling.
19468 ac_log="
19469 This file was extended by xf86-video-i128 $as_me 1.4.0, which was
19470 generated by GNU Autoconf 2.69. Invocation command line was
19471
19472 CONFIG_FILES = $CONFIG_FILES
19473 CONFIG_HEADERS = $CONFIG_HEADERS
19474 CONFIG_LINKS = $CONFIG_LINKS
19475 CONFIG_COMMANDS = $CONFIG_COMMANDS
19476 $ $0 $@
19477
19478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19479 "
19480
19481 _ACEOF
19482
19483 case $ac_config_files in *"
19484 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19485 esac
19486
19487 case $ac_config_headers in *"
19488 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19489 esac
19490
19491
19492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19493 # Files that config.status was made for.
19494 config_files="$ac_config_files"
19495 config_headers="$ac_config_headers"
19496 config_commands="$ac_config_commands"
19497
19498 _ACEOF
19499
19500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19501 ac_cs_usage="\
19502 \`$as_me' instantiates files and other configuration actions
19503 from templates according to the current configuration. Unless the files
19504 and actions are specified as TAGs, all are instantiated by default.
19505
19506 Usage: $0 [OPTION]... [TAG]...
19507
19508 -h, --help print this help, then exit
19509 -V, --version print version number and configuration settings, then exit
19510 --config print configuration, then exit
19511 -q, --quiet, --silent
19512 do not print progress messages
19513 -d, --debug don't remove temporary files
19514 --recheck update $as_me by reconfiguring in the same conditions
19515 --file=FILE[:TEMPLATE]
19516 instantiate the configuration file FILE
19517 --header=FILE[:TEMPLATE]
19518 instantiate the configuration header FILE
19519
19520 Configuration files:
19521 $config_files
19522
19523 Configuration headers:
19524 $config_headers
19525
19526 Configuration commands:
19527 $config_commands
19528
19529 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/issues>."
19530
19531 _ACEOF
19532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19533 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19534 ac_cs_version="\\
19535 xf86-video-i128 config.status 1.4.0
19536 configured by $0, generated by GNU Autoconf 2.69,
19537 with options \\"\$ac_cs_config\\"
19538
19539 Copyright (C) 2012 Free Software Foundation, Inc.
19540 This config.status script is free software; the Free Software Foundation
19541 gives unlimited permission to copy, distribute and modify it."
19542
19543 ac_pwd='$ac_pwd'
19544 srcdir='$srcdir'
19545 INSTALL='$INSTALL'
19546 MKDIR_P='$MKDIR_P'
19547 AWK='$AWK'
19548 test -n "\$AWK" || AWK=awk
19549 _ACEOF
19550
19551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552 # The default lists apply if the user does not specify any file.
19553 ac_need_defaults=:
19554 while test $# != 0
19555 do
19556 case $1 in
19557 --*=?*)
19558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19560 ac_shift=:
19561 ;;
19562 --*=)
19563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19564 ac_optarg=
19565 ac_shift=:
19566 ;;
19567 *)
19568 ac_option=$1
19569 ac_optarg=$2
19570 ac_shift=shift
19571 ;;
19572 esac
19573
19574 case $ac_option in
19575 # Handling of the options.
19576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19577 ac_cs_recheck=: ;;
19578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19579 $as_echo "$ac_cs_version"; exit ;;
19580 --config | --confi | --conf | --con | --co | --c )
19581 $as_echo "$ac_cs_config"; exit ;;
19582 --debug | --debu | --deb | --de | --d | -d )
19583 debug=: ;;
19584 --file | --fil | --fi | --f )
19585 $ac_shift
19586 case $ac_optarg in
19587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19588 '') as_fn_error $? "missing file argument" ;;
19589 esac
19590 as_fn_append CONFIG_FILES " '$ac_optarg'"
19591 ac_need_defaults=false;;
19592 --header | --heade | --head | --hea )
19593 $ac_shift
19594 case $ac_optarg in
19595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19596 esac
19597 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19598 ac_need_defaults=false;;
19599 --he | --h)
19600 # Conflict between --help and --header
19601 as_fn_error $? "ambiguous option: \`$1'
19602 Try \`$0 --help' for more information.";;
19603 --help | --hel | -h )
19604 $as_echo "$ac_cs_usage"; exit ;;
19605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19607 ac_cs_silent=: ;;
19608
19609 # This is an error.
19610 -*) as_fn_error $? "unrecognized option: \`$1'
19611 Try \`$0 --help' for more information." ;;
19612
19613 *) as_fn_append ac_config_targets " $1"
19614 ac_need_defaults=false ;;
19615
19616 esac
19617 shift
19618 done
19619
19620 ac_configure_extra_args=
19621
19622 if $ac_cs_silent; then
19623 exec 6>/dev/null
19624 ac_configure_extra_args="$ac_configure_extra_args --silent"
19625 fi
19626
19627 _ACEOF
19628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19629 if \$ac_cs_recheck; then
19630 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19631 shift
19632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19633 CONFIG_SHELL='$SHELL'
19634 export CONFIG_SHELL
19635 exec "\$@"
19636 fi
19637
19638 _ACEOF
19639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19640 exec 5>>config.log
19641 {
19642 echo
19643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19644 ## Running $as_me. ##
19645 _ASBOX
19646 $as_echo "$ac_log"
19647 } >&5
19648
19649 _ACEOF
19650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19651 #
19652 # INIT-COMMANDS
19653 #
19654 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19655
19656
19657 # The HP-UX ksh and POSIX shell print the target directory to stdout
19658 # if CDPATH is set.
19659 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19660
19661 sed_quote_subst='$sed_quote_subst'
19662 double_quote_subst='$double_quote_subst'
19663 delay_variable_subst='$delay_variable_subst'
19664 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19665 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19666 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19667 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19668 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19669 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19670 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19671 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19672 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19673 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19674 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19675 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19676 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19677 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19678 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19679 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19680 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19681 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19682 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19683 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19684 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19685 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19686 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19687 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19688 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19689 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19690 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19691 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19692 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19693 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19694 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19695 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19696 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19697 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19698 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19699 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19700 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19701 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19702 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19703 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19704 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19705 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19706 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19707 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19708 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19709 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19710 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19711 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19712 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19713 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19714 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19715 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19716 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19717 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19718 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19720 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19721 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19722 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"`'
19723 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19724 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19725 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19726 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19727 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19728 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19729 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19730 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19731 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19732 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19733 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19734 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19735 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19736 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19737 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19738 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19739 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19740 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19741 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19742 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19743 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19744 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19745 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19746 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19747 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19748 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19749 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19750 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19751 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19752 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19753 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19754 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19755 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19756 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19757 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19758 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19759 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19760 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19761 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19762 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19763 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19764 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19765 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19766 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19767 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19768 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19769 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19770 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19771 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19772 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19773 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19774 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19775 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19776 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19777 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19778 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19779 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19780 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19781 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19782 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19783 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19784 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19785 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19786 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19787 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19788 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19789 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19790 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19791 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19792 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19793 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19794 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19795 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19796 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19797 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19798 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19799
19800 LTCC='$LTCC'
19801 LTCFLAGS='$LTCFLAGS'
19802 compiler='$compiler_DEFAULT'
19803
19804 # A function that is used when there is no print builtin or printf.
19805 func_fallback_echo ()
19806 {
19807 eval 'cat <<_LTECHO_EOF
19808 \$1
19809 _LTECHO_EOF'
19810 }
19811
19812 # Quote evaled strings.
19813 for var in SHELL \
19814 ECHO \
19815 PATH_SEPARATOR \
19816 SED \
19817 GREP \
19818 EGREP \
19819 FGREP \
19820 LD \
19821 NM \
19822 LN_S \
19823 lt_SP2NL \
19824 lt_NL2SP \
19825 reload_flag \
19826 OBJDUMP \
19827 deplibs_check_method \
19828 file_magic_cmd \
19829 file_magic_glob \
19830 want_nocaseglob \
19831 DLLTOOL \
19832 sharedlib_from_linklib_cmd \
19833 AR \
19834 AR_FLAGS \
19835 archiver_list_spec \
19836 STRIP \
19837 RANLIB \
19838 CC \
19839 CFLAGS \
19840 compiler \
19841 lt_cv_sys_global_symbol_pipe \
19842 lt_cv_sys_global_symbol_to_cdecl \
19843 lt_cv_sys_global_symbol_to_import \
19844 lt_cv_sys_global_symbol_to_c_name_address \
19845 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19846 lt_cv_nm_interface \
19847 nm_file_list_spec \
19848 lt_cv_truncate_bin \
19849 lt_prog_compiler_no_builtin_flag \
19850 lt_prog_compiler_pic \
19851 lt_prog_compiler_wl \
19852 lt_prog_compiler_static \
19853 lt_cv_prog_compiler_c_o \
19854 need_locks \
19855 MANIFEST_TOOL \
19856 DSYMUTIL \
19857 NMEDIT \
19858 LIPO \
19859 OTOOL \
19860 OTOOL64 \
19861 shrext_cmds \
19862 export_dynamic_flag_spec \
19863 whole_archive_flag_spec \
19864 compiler_needs_object \
19865 with_gnu_ld \
19866 allow_undefined_flag \
19867 no_undefined_flag \
19868 hardcode_libdir_flag_spec \
19869 hardcode_libdir_separator \
19870 exclude_expsyms \
19871 include_expsyms \
19872 file_list_spec \
19873 variables_saved_for_relink \
19874 libname_spec \
19875 library_names_spec \
19876 soname_spec \
19877 install_override_mode \
19878 finish_eval \
19879 old_striplib \
19880 striplib; do
19881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19882 *[\\\\\\\`\\"\\\$]*)
19883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19884 ;;
19885 *)
19886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19887 ;;
19888 esac
19889 done
19890
19891 # Double-quote double-evaled strings.
19892 for var in reload_cmds \
19893 old_postinstall_cmds \
19894 old_postuninstall_cmds \
19895 old_archive_cmds \
19896 extract_expsyms_cmds \
19897 old_archive_from_new_cmds \
19898 old_archive_from_expsyms_cmds \
19899 archive_cmds \
19900 archive_expsym_cmds \
19901 module_cmds \
19902 module_expsym_cmds \
19903 export_symbols_cmds \
19904 prelink_cmds \
19905 postlink_cmds \
19906 postinstall_cmds \
19907 postuninstall_cmds \
19908 finish_cmds \
19909 sys_lib_search_path_spec \
19910 configure_time_dlsearch_path \
19911 configure_time_lt_sys_library_path; do
19912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19913 *[\\\\\\\`\\"\\\$]*)
19914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19915 ;;
19916 *)
19917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19918 ;;
19919 esac
19920 done
19921
19922 ac_aux_dir='$ac_aux_dir'
19923
19924 # See if we are running on zsh, and set the options that allow our
19925 # commands through without removal of \ escapes INIT.
19926 if test -n "\${ZSH_VERSION+set}"; then
19927 setopt NO_GLOB_SUBST
19928 fi
19929
19930
19931 PACKAGE='$PACKAGE'
19932 VERSION='$VERSION'
19933 RM='$RM'
19934 ofile='$ofile'
19935
19936
19937
19938
19939 _ACEOF
19940
19941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942
19943 # Handling of arguments.
19944 for ac_config_target in $ac_config_targets
19945 do
19946 case $ac_config_target in
19947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19948 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19949 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19950 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19951 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19952 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19953
19954 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19955 esac
19956 done
19957
19958
19959 # If the user did not use the arguments to specify the items to instantiate,
19960 # then the envvar interface is used. Set only those that are not.
19961 # We use the long form for the default assignment because of an extremely
19962 # bizarre bug on SunOS 4.1.3.
19963 if $ac_need_defaults; then
19964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19967 fi
19968
19969 # Have a temporary directory for convenience. Make it in the build tree
19970 # simply because there is no reason against having it here, and in addition,
19971 # creating and moving files from /tmp can sometimes cause problems.
19972 # Hook for its removal unless debugging.
19973 # Note that there is a small window in which the directory will not be cleaned:
19974 # after its creation but before its name has been assigned to `$tmp'.
19975 $debug ||
19976 {
19977 tmp= ac_tmp=
19978 trap 'exit_status=$?
19979 : "${ac_tmp:=$tmp}"
19980 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19981 ' 0
19982 trap 'as_fn_exit 1' 1 2 13 15
19983 }
19984 # Create a (secure) tmp directory for tmp files.
19985
19986 {
19987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19988 test -d "$tmp"
19989 } ||
19990 {
19991 tmp=./conf$$-$RANDOM
19992 (umask 077 && mkdir "$tmp")
19993 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19994 ac_tmp=$tmp
19995
19996 # Set up the scripts for CONFIG_FILES section.
19997 # No need to generate them if there are no CONFIG_FILES.
19998 # This happens for instance with `./config.status config.h'.
19999 if test -n "$CONFIG_FILES"; then
20000
20001
20002 ac_cr=`echo X | tr X '\015'`
20003 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20004 # But we know of no other shell where ac_cr would be empty at this
20005 # point, so we can use a bashism as a fallback.
20006 if test "x$ac_cr" = x; then
20007 eval ac_cr=\$\'\\r\'
20008 fi
20009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20011 ac_cs_awk_cr='\\r'
20012 else
20013 ac_cs_awk_cr=$ac_cr
20014 fi
20015
20016 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20017 _ACEOF
20018
20019
20020 {
20021 echo "cat >conf$$subs.awk <<_ACEOF" &&
20022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20023 echo "_ACEOF"
20024 } >conf$$subs.sh ||
20025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20026 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20027 ac_delim='%!_!# '
20028 for ac_last_try in false false false false false :; do
20029 . ./conf$$subs.sh ||
20030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20031
20032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20033 if test $ac_delim_n = $ac_delim_num; then
20034 break
20035 elif $ac_last_try; then
20036 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20037 else
20038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20039 fi
20040 done
20041 rm -f conf$$subs.sh
20042
20043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20044 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20045 _ACEOF
20046 sed -n '
20047 h
20048 s/^/S["/; s/!.*/"]=/
20049 p
20050 g
20051 s/^[^!]*!//
20052 :repl
20053 t repl
20054 s/'"$ac_delim"'$//
20055 t delim
20056 :nl
20057 h
20058 s/\(.\{148\}\)..*/\1/
20059 t more1
20060 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20061 p
20062 n
20063 b repl
20064 :more1
20065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20066 p
20067 g
20068 s/.\{148\}//
20069 t nl
20070 :delim
20071 h
20072 s/\(.\{148\}\)..*/\1/
20073 t more2
20074 s/["\\]/\\&/g; s/^/"/; s/$/"/
20075 p
20076 b
20077 :more2
20078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20079 p
20080 g
20081 s/.\{148\}//
20082 t delim
20083 ' <conf$$subs.awk | sed '
20084 /^[^""]/{
20085 N
20086 s/\n//
20087 }
20088 ' >>$CONFIG_STATUS || ac_write_fail=1
20089 rm -f conf$$subs.awk
20090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20091 _ACAWK
20092 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20093 for (key in S) S_is_set[key] = 1
20094 FS = ""
20095
20096 }
20097 {
20098 line = $ 0
20099 nfields = split(line, field, "@")
20100 substed = 0
20101 len = length(field[1])
20102 for (i = 2; i < nfields; i++) {
20103 key = field[i]
20104 keylen = length(key)
20105 if (S_is_set[key]) {
20106 value = S[key]
20107 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20108 len += length(value) + length(field[++i])
20109 substed = 1
20110 } else
20111 len += 1 + keylen
20112 }
20113
20114 print line
20115 }
20116
20117 _ACAWK
20118 _ACEOF
20119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20120 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20121 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20122 else
20123 cat
20124 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20125 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20126 _ACEOF
20127
20128 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20129 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20130 # trailing colons and then remove the whole line if VPATH becomes empty
20131 # (actually we leave an empty line to preserve line numbers).
20132 if test "x$srcdir" = x.; then
20133 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20134 h
20135 s///
20136 s/^/:/
20137 s/[ ]*$/:/
20138 s/:\$(srcdir):/:/g
20139 s/:\${srcdir}:/:/g
20140 s/:@srcdir@:/:/g
20141 s/^:*//
20142 s/:*$//
20143 x
20144 s/\(=[ ]*\).*/\1/
20145 G
20146 s/\n//
20147 s/^[^=]*=[ ]*$//
20148 }'
20149 fi
20150
20151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20152 fi # test -n "$CONFIG_FILES"
20153
20154 # Set up the scripts for CONFIG_HEADERS section.
20155 # No need to generate them if there are no CONFIG_HEADERS.
20156 # This happens for instance with `./config.status Makefile'.
20157 if test -n "$CONFIG_HEADERS"; then
20158 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20159 BEGIN {
20160 _ACEOF
20161
20162 # Transform confdefs.h into an awk script `defines.awk', embedded as
20163 # here-document in config.status, that substitutes the proper values into
20164 # config.h.in to produce config.h.
20165
20166 # Create a delimiter string that does not exist in confdefs.h, to ease
20167 # handling of long lines.
20168 ac_delim='%!_!# '
20169 for ac_last_try in false false :; do
20170 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20171 if test -z "$ac_tt"; then
20172 break
20173 elif $ac_last_try; then
20174 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20175 else
20176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20177 fi
20178 done
20179
20180 # For the awk script, D is an array of macro values keyed by name,
20181 # likewise P contains macro parameters if any. Preserve backslash
20182 # newline sequences.
20183
20184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20185 sed -n '
20186 s/.\{148\}/&'"$ac_delim"'/g
20187 t rset
20188 :rset
20189 s/^[ ]*#[ ]*define[ ][ ]*/ /
20190 t def
20191 d
20192 :def
20193 s/\\$//
20194 t bsnl
20195 s/["\\]/\\&/g
20196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20197 D["\1"]=" \3"/p
20198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20199 d
20200 :bsnl
20201 s/["\\]/\\&/g
20202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20203 D["\1"]=" \3\\\\\\n"\\/p
20204 t cont
20205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20206 t cont
20207 d
20208 :cont
20209 n
20210 s/.\{148\}/&'"$ac_delim"'/g
20211 t clear
20212 :clear
20213 s/\\$//
20214 t bsnlc
20215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20216 d
20217 :bsnlc
20218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20219 b cont
20220 ' <confdefs.h | sed '
20221 s/'"$ac_delim"'/"\\\
20222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20223
20224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20225 for (key in D) D_is_set[key] = 1
20226 FS = ""
20227 }
20228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20229 line = \$ 0
20230 split(line, arg, " ")
20231 if (arg[1] == "#") {
20232 defundef = arg[2]
20233 mac1 = arg[3]
20234 } else {
20235 defundef = substr(arg[1], 2)
20236 mac1 = arg[2]
20237 }
20238 split(mac1, mac2, "(") #)
20239 macro = mac2[1]
20240 prefix = substr(line, 1, index(line, defundef) - 1)
20241 if (D_is_set[macro]) {
20242 # Preserve the white space surrounding the "#".
20243 print prefix "define", macro P[macro] D[macro]
20244 next
20245 } else {
20246 # Replace #undef with comments. This is necessary, for example,
20247 # in the case of _POSIX_SOURCE, which is predefined and required
20248 # on some systems where configure will not decide to define it.
20249 if (defundef == "undef") {
20250 print "/*", prefix defundef, macro, "*/"
20251 next
20252 }
20253 }
20254 }
20255 { print }
20256 _ACAWK
20257 _ACEOF
20258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20259 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20260 fi # test -n "$CONFIG_HEADERS"
20261
20262
20263 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20264 shift
20265 for ac_tag
20266 do
20267 case $ac_tag in
20268 :[FHLC]) ac_mode=$ac_tag; continue;;
20269 esac
20270 case $ac_mode$ac_tag in
20271 :[FHL]*:*);;
20272 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20273 :[FH]-) ac_tag=-:-;;
20274 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20275 esac
20276 ac_save_IFS=$IFS
20277 IFS=:
20278 set x $ac_tag
20279 IFS=$ac_save_IFS
20280 shift
20281 ac_file=$1
20282 shift
20283
20284 case $ac_mode in
20285 :L) ac_source=$1;;
20286 :[FH])
20287 ac_file_inputs=
20288 for ac_f
20289 do
20290 case $ac_f in
20291 -) ac_f="$ac_tmp/stdin";;
20292 *) # Look for the file first in the build tree, then in the source tree
20293 # (if the path is not absolute). The absolute path cannot be DOS-style,
20294 # because $ac_f cannot contain `:'.
20295 test -f "$ac_f" ||
20296 case $ac_f in
20297 [\\/$]*) false;;
20298 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20299 esac ||
20300 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20301 esac
20302 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20303 as_fn_append ac_file_inputs " '$ac_f'"
20304 done
20305
20306 # Let's still pretend it is `configure' which instantiates (i.e., don't
20307 # use $as_me), people would be surprised to read:
20308 # /* config.h. Generated by config.status. */
20309 configure_input='Generated from '`
20310 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20311 `' by configure.'
20312 if test x"$ac_file" != x-; then
20313 configure_input="$ac_file. $configure_input"
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20315 $as_echo "$as_me: creating $ac_file" >&6;}
20316 fi
20317 # Neutralize special characters interpreted by sed in replacement strings.
20318 case $configure_input in #(
20319 *\&* | *\|* | *\\* )
20320 ac_sed_conf_input=`$as_echo "$configure_input" |
20321 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20322 *) ac_sed_conf_input=$configure_input;;
20323 esac
20324
20325 case $ac_tag in
20326 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20328 esac
20329 ;;
20330 esac
20331
20332 ac_dir=`$as_dirname -- "$ac_file" ||
20333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20334 X"$ac_file" : 'X\(//\)[^/]' \| \
20335 X"$ac_file" : 'X\(//\)$' \| \
20336 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20337 $as_echo X"$ac_file" |
20338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20339 s//\1/
20340 q
20341 }
20342 /^X\(\/\/\)[^/].*/{
20343 s//\1/
20344 q
20345 }
20346 /^X\(\/\/\)$/{
20347 s//\1/
20348 q
20349 }
20350 /^X\(\/\).*/{
20351 s//\1/
20352 q
20353 }
20354 s/.*/./; q'`
20355 as_dir="$ac_dir"; as_fn_mkdir_p
20356 ac_builddir=.
20357
20358 case "$ac_dir" in
20359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20360 *)
20361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20362 # A ".." for each directory in $ac_dir_suffix.
20363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20364 case $ac_top_builddir_sub in
20365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20367 esac ;;
20368 esac
20369 ac_abs_top_builddir=$ac_pwd
20370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20371 # for backward compatibility:
20372 ac_top_builddir=$ac_top_build_prefix
20373
20374 case $srcdir in
20375 .) # We are building in place.
20376 ac_srcdir=.
20377 ac_top_srcdir=$ac_top_builddir_sub
20378 ac_abs_top_srcdir=$ac_pwd ;;
20379 [\\/]* | ?:[\\/]* ) # Absolute name.
20380 ac_srcdir=$srcdir$ac_dir_suffix;
20381 ac_top_srcdir=$srcdir
20382 ac_abs_top_srcdir=$srcdir ;;
20383 *) # Relative name.
20384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20385 ac_top_srcdir=$ac_top_build_prefix$srcdir
20386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20387 esac
20388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20389
20390
20391 case $ac_mode in
20392 :F)
20393 #
20394 # CONFIG_FILE
20395 #
20396
20397 case $INSTALL in
20398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20400 esac
20401 ac_MKDIR_P=$MKDIR_P
20402 case $MKDIR_P in
20403 [\\/$]* | ?:[\\/]* ) ;;
20404 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20405 esac
20406 _ACEOF
20407
20408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20409 # If the template does not know about datarootdir, expand it.
20410 # FIXME: This hack should be removed a few years after 2.60.
20411 ac_datarootdir_hack=; ac_datarootdir_seen=
20412 ac_sed_dataroot='
20413 /datarootdir/ {
20414 p
20415 q
20416 }
20417 /@datadir@/p
20418 /@docdir@/p
20419 /@infodir@/p
20420 /@localedir@/p
20421 /@mandir@/p'
20422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20423 *datarootdir*) ac_datarootdir_seen=yes;;
20424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20427 _ACEOF
20428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20429 ac_datarootdir_hack='
20430 s&@datadir@&$datadir&g
20431 s&@docdir@&$docdir&g
20432 s&@infodir@&$infodir&g
20433 s&@localedir@&$localedir&g
20434 s&@mandir@&$mandir&g
20435 s&\\\${datarootdir}&$datarootdir&g' ;;
20436 esac
20437 _ACEOF
20438
20439 # Neutralize VPATH when `$srcdir' = `.'.
20440 # Shell code in configure.ac might set extrasub.
20441 # FIXME: do we really want to maintain this feature?
20442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20443 ac_sed_extra="$ac_vpsub
20444 $extrasub
20445 _ACEOF
20446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447 :t
20448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20449 s|@configure_input@|$ac_sed_conf_input|;t t
20450 s&@top_builddir@&$ac_top_builddir_sub&;t t
20451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20452 s&@srcdir@&$ac_srcdir&;t t
20453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20454 s&@top_srcdir@&$ac_top_srcdir&;t t
20455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20456 s&@builddir@&$ac_builddir&;t t
20457 s&@abs_builddir@&$ac_abs_builddir&;t t
20458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20459 s&@INSTALL@&$ac_INSTALL&;t t
20460 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20461 $ac_datarootdir_hack
20462 "
20463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20464 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20465
20466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20467 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20469 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20471 which seems to be undefined. Please make sure it is defined" >&5
20472 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20473 which seems to be undefined. Please make sure it is defined" >&2;}
20474
20475 rm -f "$ac_tmp/stdin"
20476 case $ac_file in
20477 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20478 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20479 esac \
20480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20481 ;;
20482 :H)
20483 #
20484 # CONFIG_HEADER
20485 #
20486 if test x"$ac_file" != x-; then
20487 {
20488 $as_echo "/* $configure_input */" \
20489 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20490 } >"$ac_tmp/config.h" \
20491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20492 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20494 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20495 else
20496 rm -f "$ac_file"
20497 mv "$ac_tmp/config.h" "$ac_file" \
20498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20499 fi
20500 else
20501 $as_echo "/* $configure_input */" \
20502 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20503 || as_fn_error $? "could not create -" "$LINENO" 5
20504 fi
20505 # Compute "$ac_file"'s index in $config_headers.
20506 _am_arg="$ac_file"
20507 _am_stamp_count=1
20508 for _am_header in $config_headers :; do
20509 case $_am_header in
20510 $_am_arg | $_am_arg:* )
20511 break ;;
20512 * )
20513 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20514 esac
20515 done
20516 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20517 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20518 X"$_am_arg" : 'X\(//\)[^/]' \| \
20519 X"$_am_arg" : 'X\(//\)$' \| \
20520 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20521 $as_echo X"$_am_arg" |
20522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20523 s//\1/
20524 q
20525 }
20526 /^X\(\/\/\)[^/].*/{
20527 s//\1/
20528 q
20529 }
20530 /^X\(\/\/\)$/{
20531 s//\1/
20532 q
20533 }
20534 /^X\(\/\).*/{
20535 s//\1/
20536 q
20537 }
20538 s/.*/./; q'`/stamp-h$_am_stamp_count
20539 ;;
20540
20541 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20542 $as_echo "$as_me: executing $ac_file commands" >&6;}
20543 ;;
20544 esac
20545
20546
20547 case $ac_file$ac_mode in
20548 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20549 # Older Autoconf quotes --file arguments for eval, but not when files
20550 # are listed without --file. Let's play safe and only enable the eval
20551 # if we detect the quoting.
20552 case $CONFIG_FILES in
20553 *\'*) eval set x "$CONFIG_FILES" ;;
20554 *) set x $CONFIG_FILES ;;
20555 esac
20556 shift
20557 for mf
20558 do
20559 # Strip MF so we end up with the name of the file.
20560 mf=`echo "$mf" | sed -e 's/:.*$//'`
20561 # Check whether this is an Automake generated Makefile or not.
20562 # We used to match only the files named 'Makefile.in', but
20563 # some people rename them; so instead we look at the file content.
20564 # Grep'ing the first line is not enough: some people post-process
20565 # each Makefile.in and add a new line on top of each file to say so.
20566 # Grep'ing the whole file is not good either: AIX grep has a line
20567 # limit of 2048, but all sed's we know have understand at least 4000.
20568 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20569 dirpart=`$as_dirname -- "$mf" ||
20570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20571 X"$mf" : 'X\(//\)[^/]' \| \
20572 X"$mf" : 'X\(//\)$' \| \
20573 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20574 $as_echo X"$mf" |
20575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20576 s//\1/
20577 q
20578 }
20579 /^X\(\/\/\)[^/].*/{
20580 s//\1/
20581 q
20582 }
20583 /^X\(\/\/\)$/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\).*/{
20588 s//\1/
20589 q
20590 }
20591 s/.*/./; q'`
20592 else
20593 continue
20594 fi
20595 # Extract the definition of DEPDIR, am__include, and am__quote
20596 # from the Makefile without running 'make'.
20597 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20598 test -z "$DEPDIR" && continue
20599 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20600 test -z "$am__include" && continue
20601 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20602 # Find all dependency output files, they are included files with
20603 # $(DEPDIR) in their names. We invoke sed twice because it is the
20604 # simplest approach to changing $(DEPDIR) to its actual value in the
20605 # expansion.
20606 for file in `sed -n "
20607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20609 # Make sure the directory exists.
20610 test -f "$dirpart/$file" && continue
20611 fdir=`$as_dirname -- "$file" ||
20612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20613 X"$file" : 'X\(//\)[^/]' \| \
20614 X"$file" : 'X\(//\)$' \| \
20615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20616 $as_echo X"$file" |
20617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20618 s//\1/
20619 q
20620 }
20621 /^X\(\/\/\)[^/].*/{
20622 s//\1/
20623 q
20624 }
20625 /^X\(\/\/\)$/{
20626 s//\1/
20627 q
20628 }
20629 /^X\(\/\).*/{
20630 s//\1/
20631 q
20632 }
20633 s/.*/./; q'`
20634 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20635 # echo "creating $dirpart/$file"
20636 echo '# dummy' > "$dirpart/$file"
20637 done
20638 done
20639 }
20640 ;;
20641 "libtool":C)
20642
20643 # See if we are running on zsh, and set the options that allow our
20644 # commands through without removal of \ escapes.
20645 if test -n "${ZSH_VERSION+set}"; then
20646 setopt NO_GLOB_SUBST
20647 fi
20648
20649 cfgfile=${ofile}T
20650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20651 $RM "$cfgfile"
20652
20653 cat <<_LT_EOF >> "$cfgfile"
20654 #! $SHELL
20655 # Generated automatically by $as_me ($PACKAGE) $VERSION
20656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20658
20659 # Provide generalized library-building support services.
20660 # Written by Gordon Matzigkeit, 1996
20661
20662 # Copyright (C) 2014 Free Software Foundation, Inc.
20663 # This is free software; see the source for copying conditions. There is NO
20664 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20665
20666 # GNU Libtool is free software; you can redistribute it and/or modify
20667 # it under the terms of the GNU General Public License as published by
20668 # the Free Software Foundation; either version 2 of of the License, or
20669 # (at your option) any later version.
20670 #
20671 # As a special exception to the GNU General Public License, if you
20672 # distribute this file as part of a program or library that is built
20673 # using GNU Libtool, you may include this file under the same
20674 # distribution terms that you use for the rest of that program.
20675 #
20676 # GNU Libtool is distributed in the hope that it will be useful, but
20677 # WITHOUT ANY WARRANTY; without even the implied warranty of
20678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20679 # GNU General Public License for more details.
20680 #
20681 # You should have received a copy of the GNU General Public License
20682 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20683
20684
20685 # The names of the tagged configurations supported by this script.
20686 available_tags=''
20687
20688 # Configured defaults for sys_lib_dlsearch_path munging.
20689 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20690
20691 # ### BEGIN LIBTOOL CONFIG
20692
20693 # Whether or not to build static libraries.
20694 build_old_libs=$enable_static
20695
20696 # Which release of libtool.m4 was used?
20697 macro_version=$macro_version
20698 macro_revision=$macro_revision
20699
20700 # Whether or not to build shared libraries.
20701 build_libtool_libs=$enable_shared
20702
20703 # What type of objects to build.
20704 pic_mode=$pic_mode
20705
20706 # Whether or not to optimize for fast installation.
20707 fast_install=$enable_fast_install
20708
20709 # Shared archive member basename,for filename based shared library versioning on AIX.
20710 shared_archive_member_spec=$shared_archive_member_spec
20711
20712 # Shell to use when invoking shell scripts.
20713 SHELL=$lt_SHELL
20714
20715 # An echo program that protects backslashes.
20716 ECHO=$lt_ECHO
20717
20718 # The PATH separator for the build system.
20719 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20720
20721 # The host system.
20722 host_alias=$host_alias
20723 host=$host
20724 host_os=$host_os
20725
20726 # The build system.
20727 build_alias=$build_alias
20728 build=$build
20729 build_os=$build_os
20730
20731 # A sed program that does not truncate output.
20732 SED=$lt_SED
20733
20734 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20735 Xsed="\$SED -e 1s/^X//"
20736
20737 # A grep program that handles long lines.
20738 GREP=$lt_GREP
20739
20740 # An ERE matcher.
20741 EGREP=$lt_EGREP
20742
20743 # A literal string matcher.
20744 FGREP=$lt_FGREP
20745
20746 # A BSD- or MS-compatible name lister.
20747 NM=$lt_NM
20748
20749 # Whether we need soft or hard links.
20750 LN_S=$lt_LN_S
20751
20752 # What is the maximum length of a command?
20753 max_cmd_len=$max_cmd_len
20754
20755 # Object file suffix (normally "o").
20756 objext=$ac_objext
20757
20758 # Executable file suffix (normally "").
20759 exeext=$exeext
20760
20761 # whether the shell understands "unset".
20762 lt_unset=$lt_unset
20763
20764 # turn spaces into newlines.
20765 SP2NL=$lt_lt_SP2NL
20766
20767 # turn newlines into spaces.
20768 NL2SP=$lt_lt_NL2SP
20769
20770 # convert \$build file names to \$host format.
20771 to_host_file_cmd=$lt_cv_to_host_file_cmd
20772
20773 # convert \$build files to toolchain format.
20774 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20775
20776 # An object symbol dumper.
20777 OBJDUMP=$lt_OBJDUMP
20778
20779 # Method to check whether dependent libraries are shared objects.
20780 deplibs_check_method=$lt_deplibs_check_method
20781
20782 # Command to use when deplibs_check_method = "file_magic".
20783 file_magic_cmd=$lt_file_magic_cmd
20784
20785 # How to find potential files when deplibs_check_method = "file_magic".
20786 file_magic_glob=$lt_file_magic_glob
20787
20788 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20789 want_nocaseglob=$lt_want_nocaseglob
20790
20791 # DLL creation program.
20792 DLLTOOL=$lt_DLLTOOL
20793
20794 # Command to associate shared and link libraries.
20795 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20796
20797 # The archiver.
20798 AR=$lt_AR
20799
20800 # Flags to create an archive.
20801 AR_FLAGS=$lt_AR_FLAGS
20802
20803 # How to feed a file listing to the archiver.
20804 archiver_list_spec=$lt_archiver_list_spec
20805
20806 # A symbol stripping program.
20807 STRIP=$lt_STRIP
20808
20809 # Commands used to install an old-style archive.
20810 RANLIB=$lt_RANLIB
20811 old_postinstall_cmds=$lt_old_postinstall_cmds
20812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20813
20814 # Whether to use a lock for old archive extraction.
20815 lock_old_archive_extraction=$lock_old_archive_extraction
20816
20817 # A C compiler.
20818 LTCC=$lt_CC
20819
20820 # LTCC compiler flags.
20821 LTCFLAGS=$lt_CFLAGS
20822
20823 # Take the output of nm and produce a listing of raw symbols and C names.
20824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20825
20826 # Transform the output of nm in a proper C declaration.
20827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20828
20829 # Transform the output of nm into a list of symbols to manually relocate.
20830 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20831
20832 # Transform the output of nm in a C name address pair.
20833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20834
20835 # Transform the output of nm in a C name address pair when lib prefix is needed.
20836 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20837
20838 # The name lister interface.
20839 nm_interface=$lt_lt_cv_nm_interface
20840
20841 # Specify filename containing input files for \$NM.
20842 nm_file_list_spec=$lt_nm_file_list_spec
20843
20844 # The root where to search for dependent libraries,and where our libraries should be installed.
20845 lt_sysroot=$lt_sysroot
20846
20847 # Command to truncate a binary pipe.
20848 lt_truncate_bin=$lt_lt_cv_truncate_bin
20849
20850 # The name of the directory that contains temporary libtool files.
20851 objdir=$objdir
20852
20853 # Used to examine libraries when file_magic_cmd begins with "file".
20854 MAGIC_CMD=$MAGIC_CMD
20855
20856 # Must we lock files when doing compilation?
20857 need_locks=$lt_need_locks
20858
20859 # Manifest tool.
20860 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20861
20862 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20863 DSYMUTIL=$lt_DSYMUTIL
20864
20865 # Tool to change global to local symbols on Mac OS X.
20866 NMEDIT=$lt_NMEDIT
20867
20868 # Tool to manipulate fat objects and archives on Mac OS X.
20869 LIPO=$lt_LIPO
20870
20871 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20872 OTOOL=$lt_OTOOL
20873
20874 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20875 OTOOL64=$lt_OTOOL64
20876
20877 # Old archive suffix (normally "a").
20878 libext=$libext
20879
20880 # Shared library suffix (normally ".so").
20881 shrext_cmds=$lt_shrext_cmds
20882
20883 # The commands to extract the exported symbol list from a shared archive.
20884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20885
20886 # Variables whose values should be saved in libtool wrapper scripts and
20887 # restored at link time.
20888 variables_saved_for_relink=$lt_variables_saved_for_relink
20889
20890 # Do we need the "lib" prefix for modules?
20891 need_lib_prefix=$need_lib_prefix
20892
20893 # Do we need a version for libraries?
20894 need_version=$need_version
20895
20896 # Library versioning type.
20897 version_type=$version_type
20898
20899 # Shared library runtime path variable.
20900 runpath_var=$runpath_var
20901
20902 # Shared library path variable.
20903 shlibpath_var=$shlibpath_var
20904
20905 # Is shlibpath searched before the hard-coded library search path?
20906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20907
20908 # Format of library name prefix.
20909 libname_spec=$lt_libname_spec
20910
20911 # List of archive names. First name is the real one, the rest are links.
20912 # The last name is the one that the linker finds with -lNAME
20913 library_names_spec=$lt_library_names_spec
20914
20915 # The coded name of the library, if different from the real name.
20916 soname_spec=$lt_soname_spec
20917
20918 # Permission mode override for installation of shared libraries.
20919 install_override_mode=$lt_install_override_mode
20920
20921 # Command to use after installation of a shared archive.
20922 postinstall_cmds=$lt_postinstall_cmds
20923
20924 # Command to use after uninstallation of a shared archive.
20925 postuninstall_cmds=$lt_postuninstall_cmds
20926
20927 # Commands used to finish a libtool library installation in a directory.
20928 finish_cmds=$lt_finish_cmds
20929
20930 # As "finish_cmds", except a single script fragment to be evaled but
20931 # not shown.
20932 finish_eval=$lt_finish_eval
20933
20934 # Whether we should hardcode library paths into libraries.
20935 hardcode_into_libs=$hardcode_into_libs
20936
20937 # Compile-time system search path for libraries.
20938 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20939
20940 # Detected run-time system search path for libraries.
20941 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20942
20943 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20944 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20945
20946 # Whether dlopen is supported.
20947 dlopen_support=$enable_dlopen
20948
20949 # Whether dlopen of programs is supported.
20950 dlopen_self=$enable_dlopen_self
20951
20952 # Whether dlopen of statically linked programs is supported.
20953 dlopen_self_static=$enable_dlopen_self_static
20954
20955 # Commands to strip libraries.
20956 old_striplib=$lt_old_striplib
20957 striplib=$lt_striplib
20958
20959
20960 # The linker used to build libraries.
20961 LD=$lt_LD
20962
20963 # How to create reloadable object files.
20964 reload_flag=$lt_reload_flag
20965 reload_cmds=$lt_reload_cmds
20966
20967 # Commands used to build an old-style archive.
20968 old_archive_cmds=$lt_old_archive_cmds
20969
20970 # A language specific compiler.
20971 CC=$lt_compiler
20972
20973 # Is the compiler the GNU compiler?
20974 with_gcc=$GCC
20975
20976 # Compiler flag to turn off builtin functions.
20977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20978
20979 # Additional compiler flags for building library objects.
20980 pic_flag=$lt_lt_prog_compiler_pic
20981
20982 # How to pass a linker flag through the compiler.
20983 wl=$lt_lt_prog_compiler_wl
20984
20985 # Compiler flag to prevent dynamic linking.
20986 link_static_flag=$lt_lt_prog_compiler_static
20987
20988 # Does compiler simultaneously support -c and -o options?
20989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20990
20991 # Whether or not to add -lc for building shared libraries.
20992 build_libtool_need_lc=$archive_cmds_need_lc
20993
20994 # Whether or not to disallow shared libs when runtime libs are static.
20995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20996
20997 # Compiler flag to allow reflexive dlopens.
20998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20999
21000 # Compiler flag to generate shared objects directly from archives.
21001 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21002
21003 # Whether the compiler copes with passing no objects directly.
21004 compiler_needs_object=$lt_compiler_needs_object
21005
21006 # Create an old-style archive from a shared archive.
21007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21008
21009 # Create a temporary old-style archive to link instead of a shared archive.
21010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21011
21012 # Commands used to build a shared archive.
21013 archive_cmds=$lt_archive_cmds
21014 archive_expsym_cmds=$lt_archive_expsym_cmds
21015
21016 # Commands used to build a loadable module if different from building
21017 # a shared archive.
21018 module_cmds=$lt_module_cmds
21019 module_expsym_cmds=$lt_module_expsym_cmds
21020
21021 # Whether we are building with GNU ld or not.
21022 with_gnu_ld=$lt_with_gnu_ld
21023
21024 # Flag that allows shared libraries with undefined symbols to be built.
21025 allow_undefined_flag=$lt_allow_undefined_flag
21026
21027 # Flag that enforces no undefined symbols.
21028 no_undefined_flag=$lt_no_undefined_flag
21029
21030 # Flag to hardcode \$libdir into a binary during linking.
21031 # This must work even if \$libdir does not exist
21032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21033
21034 # Whether we need a single "-rpath" flag with a separated argument.
21035 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21036
21037 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21038 # DIR into the resulting binary.
21039 hardcode_direct=$hardcode_direct
21040
21041 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21042 # DIR into the resulting binary and the resulting library dependency is
21043 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21044 # library is relocated.
21045 hardcode_direct_absolute=$hardcode_direct_absolute
21046
21047 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21048 # into the resulting binary.
21049 hardcode_minus_L=$hardcode_minus_L
21050
21051 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21052 # into the resulting binary.
21053 hardcode_shlibpath_var=$hardcode_shlibpath_var
21054
21055 # Set to "yes" if building a shared library automatically hardcodes DIR
21056 # into the library and all subsequent libraries and executables linked
21057 # against it.
21058 hardcode_automatic=$hardcode_automatic
21059
21060 # Set to yes if linker adds runtime paths of dependent libraries
21061 # to runtime path list.
21062 inherit_rpath=$inherit_rpath
21063
21064 # Whether libtool must link a program against all its dependency libraries.
21065 link_all_deplibs=$link_all_deplibs
21066
21067 # Set to "yes" if exported symbols are required.
21068 always_export_symbols=$always_export_symbols
21069
21070 # The commands to list exported symbols.
21071 export_symbols_cmds=$lt_export_symbols_cmds
21072
21073 # Symbols that should not be listed in the preloaded symbols.
21074 exclude_expsyms=$lt_exclude_expsyms
21075
21076 # Symbols that must always be exported.
21077 include_expsyms=$lt_include_expsyms
21078
21079 # Commands necessary for linking programs (against libraries) with templates.
21080 prelink_cmds=$lt_prelink_cmds
21081
21082 # Commands necessary for finishing linking programs.
21083 postlink_cmds=$lt_postlink_cmds
21084
21085 # Specify filename containing input files.
21086 file_list_spec=$lt_file_list_spec
21087
21088 # How to hardcode a shared library path into an executable.
21089 hardcode_action=$hardcode_action
21090
21091 # ### END LIBTOOL CONFIG
21092
21093 _LT_EOF
21094
21095 cat <<'_LT_EOF' >> "$cfgfile"
21096
21097 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21098
21099 # func_munge_path_list VARIABLE PATH
21100 # -----------------------------------
21101 # VARIABLE is name of variable containing _space_ separated list of
21102 # directories to be munged by the contents of PATH, which is string
21103 # having a format:
21104 # "DIR[:DIR]:"
21105 # string "DIR[ DIR]" will be prepended to VARIABLE
21106 # ":DIR[:DIR]"
21107 # string "DIR[ DIR]" will be appended to VARIABLE
21108 # "DIRP[:DIRP]::[DIRA:]DIRA"
21109 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21110 # "DIRA[ DIRA]" will be appended to VARIABLE
21111 # "DIR[:DIR]"
21112 # VARIABLE will be replaced by "DIR[ DIR]"
21113 func_munge_path_list ()
21114 {
21115 case x$2 in
21116 x)
21117 ;;
21118 *:)
21119 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21120 ;;
21121 x:*)
21122 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21123 ;;
21124 *::*)
21125 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21126 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21127 ;;
21128 *)
21129 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21130 ;;
21131 esac
21132 }
21133
21134
21135 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21136 func_cc_basename ()
21137 {
21138 for cc_temp in $*""; do
21139 case $cc_temp in
21140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21142 \-*) ;;
21143 *) break;;
21144 esac
21145 done
21146 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21147 }
21148
21149
21150 # ### END FUNCTIONS SHARED WITH CONFIGURE
21151
21152 _LT_EOF
21153
21154 case $host_os in
21155 aix3*)
21156 cat <<\_LT_EOF >> "$cfgfile"
21157 # AIX sometimes has problems with the GCC collect2 program. For some
21158 # reason, if we set the COLLECT_NAMES environment variable, the problems
21159 # vanish in a puff of smoke.
21160 if test set != "${COLLECT_NAMES+set}"; then
21161 COLLECT_NAMES=
21162 export COLLECT_NAMES
21163 fi
21164 _LT_EOF
21165 ;;
21166 esac
21167
21168
21169 ltmain=$ac_aux_dir/ltmain.sh
21170
21171
21172 # We use sed instead of cat because bash on DJGPP gets confused if
21173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21174 # text mode, it properly converts lines to CR/LF. This bash problem
21175 # is reportedly fixed, but why not run on old versions too?
21176 sed '$q' "$ltmain" >> "$cfgfile" \
21177 || (rm -f "$cfgfile"; exit 1)
21178
21179 mv -f "$cfgfile" "$ofile" ||
21180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21181 chmod +x "$ofile"
21182
21183 ;;
21184
21185 esac
21186 done # for ac_tag
21187
21188
21189 as_fn_exit 0
21190 _ACEOF
21191 ac_clean_files=$ac_clean_files_save
21192
21193 test $ac_write_fail = 0 ||
21194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21195
21196
21197 # configure is writing to config.log, and then calls config.status.
21198 # config.status does its own redirection, appending to config.log.
21199 # Unfortunately, on DOS this fails, as config.log is still kept open
21200 # by configure, so config.status won't be able to write to it; its
21201 # output is simply discarded. So we exec the FD to /dev/null,
21202 # effectively closing config.log, so it can be properly (re)opened and
21203 # appended to by config.status. When coming back to configure, we
21204 # need to make the FD available again.
21205 if test "$no_create" != yes; then
21206 ac_cs_success=:
21207 ac_config_status_args=
21208 test "$silent" = yes &&
21209 ac_config_status_args="$ac_config_status_args --quiet"
21210 exec 5>/dev/null
21211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21212 exec 5>>config.log
21213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21214 # would make configure fail if this is the last instruction.
21215 $ac_cs_success || as_fn_exit 1
21216 fi
21217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21220 fi
21221
21222