configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-siliconmotion 1.7.8.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion
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-siliconmotion'
593 PACKAGE_TARNAME='xf86-video-siliconmotion'
594 PACKAGE_VERSION='1.7.8'
595 PACKAGE_STRING='xf86-video-siliconmotion 1.7.8'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_unique_file="Makefile.am"
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 XMODES_FALSE
645 XMODES_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 HAVE_XEXTPROTO_71_FALSE
651 HAVE_XEXTPROTO_71_TRUE
652 XEXT_LIBS
653 XEXT_CFLAGS
654 XORG_LIBS
655 XORG_CFLAGS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 LIBTOOL
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 MAN_SUBSTS
712 XORG_MAN_PAGE
713 ADMIN_MAN_DIR
714 DRIVER_MAN_DIR
715 MISC_MAN_DIR
716 FILE_MAN_DIR
717 LIB_MAN_DIR
718 APP_MAN_DIR
719 ADMIN_MAN_SUFFIX
720 DRIVER_MAN_SUFFIX
721 MISC_MAN_SUFFIX
722 FILE_MAN_SUFFIX
723 LIB_MAN_SUFFIX
724 APP_MAN_SUFFIX
725 SED
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 INSTALL_CMD
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 CHANGELOG_CMD
739 STRICT_CFLAGS
740 CWARNFLAGS
741 BASE_CFLAGS
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_selective_werror
797 enable_strict_compilation
798 enable_silent_rules
799 enable_dependency_tracking
800 enable_maintainer_mode
801 enable_static
802 enable_shared
803 with_pic
804 enable_fast_install
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 with_xorg_module_dir
809 enable_xaa
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP
820 PKG_CONFIG
821 PKG_CONFIG_PATH
822 PKG_CONFIG_LIBDIR
823 XORG_CFLAGS
824 XORG_LIBS
825 XEXT_CFLAGS
826 XEXT_LIBS
827 PCIACCESS_CFLAGS
828 PCIACCESS_LIBS'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures xf86-video-siliconmotion 1.7.8 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root
1418 [DATAROOTDIR/doc/xf86-video-siliconmotion]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1424
1425 cat <<\_ACEOF
1426
1427 Program names:
1428 --program-prefix=C prepend C to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432 System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.8:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --disable-selective-werror
1449 Turn off selective compiler errors. (default:
1450 enabled)
1451 --enable-strict-compilation
1452 Enable all warnings from compiler and make them
1453 errors (default: disabled)
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-static[=PKGS] build static libraries [default=no]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1469 [default=auto]
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot=DIR Search for dependent libraries within DIR
1478 (or the compiler's sysroot if not specified).
1479 --with-xorg-module-dir=DIR
1480 Default xorg module directory
1481 [[default=$libdir/xorg/modules]]
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 PKG_CONFIG path to pkg-config utility
1493 PKG_CONFIG_PATH
1494 directories to add to pkg-config's search path
1495 PKG_CONFIG_LIBDIR
1496 path overriding pkg-config's built-in search path
1497 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1498 XORG_LIBS linker flags for XORG, overriding pkg-config
1499 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1500 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1501 PCIACCESS_CFLAGS
1502 C compiler flags for PCIACCESS, overriding pkg-config
1503 PCIACCESS_LIBS
1504 linker flags for PCIACCESS, overriding pkg-config
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 continue
1520 ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539 .) # We are building in place.
1540 ac_srcdir=.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571 cat <<\_ACEOF
1572 xf86-video-siliconmotion configure 1.7.8
1573 generated by GNU Autoconf 2.69
1574
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1625 # ---------------------------------------------
1626 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_decl ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 as_decl_name=`echo $2|sed 's/ *(.*//'`
1632 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 int
1642 main ()
1643 {
1644 #ifndef $as_decl_name
1645 #ifdef __cplusplus
1646 (void) $as_decl_use;
1647 #else
1648 (void) $as_decl_name;
1649 #endif
1650 #endif
1651
1652 ;
1653 return 0;
1654 }
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_decl
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896 # the include files in INCLUDES and setting the cache variable VAR
1897 # accordingly.
1898 ac_fn_c_check_header_mongrel ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if eval \${$3+:} false; then :
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 fi
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 else
1911 # Is the header compilable?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913 $as_echo_n "checking $2 usability... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_header_compiler=yes
1921 else
1922 ac_header_compiler=no
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926 $as_echo "$ac_header_compiler" >&6; }
1927
1928 # Is the header present?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930 $as_echo_n "checking $2 presence... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_cpp "$LINENO"; then :
1936 ac_header_preproc=yes
1937 else
1938 ac_header_preproc=no
1939 fi
1940 rm -f conftest.err conftest.i conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942 $as_echo "$ac_header_preproc" >&6; }
1943
1944 # So? What about this header?
1945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946 yes:no: )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 ;;
1952 no:yes:* )
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1956 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1960 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ( $as_echo "## ----------------------------------------------------------------------------------------------------- ##
1964 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion ##
1965 ## ----------------------------------------------------------------------------------------------------- ##"
1966 ) | sed "s/^/$as_me: WARNING: /" >&2
1967 ;;
1968 esac
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=\$ac_header_compiler"
1975 fi
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 fi
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_header_mongrel
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by xf86-video-siliconmotion $as_me 1.7.8, which was
1988 generated by GNU Autoconf 2.69. Invocation command line was
1989
1990 $ $0 $@
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2025 done
2026 IFS=$as_save_IFS
2027
2028 } >&5
2029
2030 cat >&5 <<_ACEOF
2031
2032
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2036
2037 _ACEOF
2038
2039
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2050 do
2051 for ac_arg
2052 do
2053 case $ac_arg in
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2057 continue ;;
2058 *\'*)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 esac
2061 case $ac_pass in
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 2)
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2067 else
2068 case $ac_arg in
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 esac
2076 ;;
2077 -* ) ac_must_keep_next=true ;;
2078 esac
2079 fi
2080 as_fn_append ac_configure_args " '$ac_arg'"
2081 ;;
2082 esac
2083 done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2087
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2095 {
2096 echo
2097
2098 $as_echo "## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##"
2101 echo
2102 # The following way of writing the cache mishandles newlines in values,
2103 (
2104 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in #(
2107 *${as_nl}*)
2108 case $ac_var in #(
2109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 esac
2112 case $ac_var in #(
2113 _ | IFS | as_nl) ;; #(
2114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115 *) { eval $ac_var=; unset $ac_var;} ;;
2116 esac ;;
2117 esac
2118 done
2119 (set) 2>&1 |
2120 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121 *${as_nl}ac_space=\ *)
2122 sed -n \
2123 "s/'\''/'\''\\\\'\'''\''/g;
2124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 ;; #(
2126 *)
2127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 ;;
2129 esac |
2130 sort
2131 )
2132 echo
2133
2134 $as_echo "## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##"
2137 echo
2138 for ac_var in $ac_subst_vars
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147
2148 if test -n "$ac_subst_files"; then
2149 $as_echo "## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##"
2152 echo
2153 for ac_var in $ac_subst_files
2154 do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 esac
2159 $as_echo "$ac_var='\''$ac_val'\''"
2160 done | sort
2161 echo
2162 fi
2163
2164 if test -s confdefs.h; then
2165 $as_echo "## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##"
2168 echo
2169 cat confdefs.h
2170 echo
2171 fi
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2175 } >&5
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 $as_echo "/* confdefs.h */" > confdefs.h
2189
2190 # Predefined preprocessor variables.
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222 # We do not want a PATH search for config.site.
2223 case $CONFIG_SITE in #((
2224 -*) ac_site_file1=./$CONFIG_SITE;;
2225 */*) ac_site_file1=$CONFIG_SITE;;
2226 *) ac_site_file1=./$CONFIG_SITE;;
2227 esac
2228 elif test "x$prefix" != xNONE; then
2229 ac_site_file1=$prefix/share/config.site
2230 ac_site_file2=$prefix/etc/config.site
2231 else
2232 ac_site_file1=$ac_default_prefix/share/config.site
2233 ac_site_file2=$ac_default_prefix/etc/config.site
2234 fi
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 do
2237 test "x$ac_site_file" = xNONE && continue
2238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2242 . "$ac_site_file" \
2243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5; }
2247 fi
2248 done
2249
2250 if test -r "$cache_file"; then
2251 # Some versions of bash will fail to source /dev/null (special files
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 $as_echo "$as_me: loading cache $cache_file" >&6;}
2256 case $cache_file in
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258 *) . "./$cache_file";;
2259 esac
2260 fi
2261 else
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264 >$cache_file
2265 fi
2266
2267 # Check that the precious variables saved in the cache have kept the same
2268 # value.
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272 eval ac_new_set=\$ac_env_${ac_var}_set
2273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274 eval ac_new_val=\$ac_env_${ac_var}_value
2275 case $ac_old_set,$ac_new_set in
2276 set,)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2280 ,set)
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283 ac_cache_corrupted=: ;;
2284 ,);;
2285 *)
2286 if test "x$ac_old_val" != "x$ac_new_val"; then
2287 # differences in whitespace do not lead to failure.
2288 ac_old_val_w=`echo x $ac_old_val`
2289 ac_new_val_w=`echo x $ac_new_val`
2290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293 ac_cache_corrupted=:
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297 eval $ac_var=\$ac_old_val
2298 fi
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2300 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2303 fi;;
2304 esac
2305 # Pass precious variables to config.status.
2306 if test "$ac_new_set" = set; then
2307 case $ac_new_val in
2308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309 *) ac_arg=$ac_var=$ac_new_val ;;
2310 esac
2311 case " $ac_configure_args " in
2312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314 esac
2315 fi
2316 done
2317 if $ac_cache_corrupted; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 fi
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2362 fi
2363 done
2364 if test -z "$ac_aux_dir"; then
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366 fi
2367
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375
2376
2377 # Find a good install program. We prefer a C program (faster),
2378 # so one script is as good as another. But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if ${ac_cv_path_install+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2418 :
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
2423 else
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2435 fi
2436 fi
2437 fi
2438 done
2439 done
2440 ;;
2441 esac
2442
2443 done
2444 IFS=$as_save_IFS
2445
2446 rm -rf conftest.one conftest.two conftest.dir
2447
2448 fi
2449 if test "${ac_cv_path_install+set}" = set; then
2450 INSTALL=$ac_cv_path_install
2451 else
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
2454 # break other packages using the cache if that directory is
2455 # removed, or if the value is a relative name.
2456 INSTALL=$ac_install_sh
2457 fi
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2461
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470 # Expand $ac_aux_dir to an absolute path.
2471 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2472
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_CC+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2509 $as_echo "$CC" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_CC"; then
2518 ac_ct_CC=$CC
2519 # Extract the first word of "gcc", so it can be a program name with args.
2520 set dummy gcc; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_CC="gcc"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2549 $as_echo "$ac_ct_CC" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 CC=$ac_ct_CC
2565 fi
2566 else
2567 CC="$ac_cv_prog_CC"
2568 fi
2569
2570 if test -z "$CC"; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}cc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CC="${ac_tool_prefix}cc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 fi
2611 if test -z "$CC"; then
2612 # Extract the first word of "cc", so it can be a program name with args.
2613 set dummy cc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 ac_prog_rejected=no
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2631 ac_prog_rejected=yes
2632 continue
2633 fi
2634 ac_cv_prog_CC="cc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 if test $ac_prog_rejected = yes; then
2643 # We found a bogon in the path, so make sure we never use it.
2644 set dummy $ac_cv_prog_CC
2645 shift
2646 if test $# != 0; then
2647 # We chose a different compiler from the bogus one.
2648 # However, it has the same basename, so the bogon will be chosen
2649 # first if we set CC to just the basename; use the full file name.
2650 shift
2651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2652 fi
2653 fi
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 for ac_prog in cl.exe
2670 do
2671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 test -n "$CC" && break
2709 done
2710 fi
2711 if test -z "$CC"; then
2712 ac_ct_CC=$CC
2713 for ac_prog in cl.exe
2714 do
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_CC="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 $as_echo "$ac_ct_CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 test -n "$ac_ct_CC" && break
2753 done
2754
2755 if test "x$ac_ct_CC" = x; then
2756 CC=""
2757 else
2758 case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764 CC=$ac_ct_CC
2765 fi
2766 fi
2767
2768 fi
2769
2770
2771 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 as_fn_error $? "no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details" "$LINENO" 5; }
2775
2776 # Provide some information about the compiler.
2777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2778 set X $ac_compile
2779 ac_compiler=$2
2780 for ac_option in --version -v -V -qversion; do
2781 { { ac_try="$ac_compiler $ac_option >&5"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2789 ac_status=$?
2790 if test -s conftest.err; then
2791 sed '10a\
2792 ... rest of stderr output deleted ...
2793 10q' conftest.err >conftest.er1
2794 cat conftest.er1 >&5
2795 fi
2796 rm -f conftest.er1 conftest.err
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; }
2799 done
2800
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803
2804 int
2805 main ()
2806 {
2807
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2816 # of exeext.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2818 $as_echo_n "checking whether the C compiler works... " >&6; }
2819 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2820
2821 # The possible output files:
2822 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2823
2824 ac_rmfiles=
2825 for ac_file in $ac_files
2826 do
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2829 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2830 esac
2831 done
2832 rm -f $ac_rmfiles
2833
2834 if { { ac_try="$ac_link_default"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_link_default") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; then :
2845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2846 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2847 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2848 # so that the user can short-circuit this test for compilers unknown to
2849 # Autoconf.
2850 for ac_file in $ac_files ''
2851 do
2852 test -f "$ac_file" || continue
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2855 ;;
2856 [ab].out )
2857 # We found the default executable, but exeext='' is most
2858 # certainly right.
2859 break;;
2860 *.* )
2861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2862 then :; else
2863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 fi
2865 # We set ac_cv_exeext here because the later test for it is not
2866 # safe: cross compilers may not add the suffix if given an `-o'
2867 # argument, so we may need to know it at that point already.
2868 # Even if this section looks crufty: it has the advantage of
2869 # actually working.
2870 break;;
2871 * )
2872 break;;
2873 esac
2874 done
2875 test "$ac_cv_exeext" = no && ac_cv_exeext=
2876
2877 else
2878 ac_file=''
2879 fi
2880 if test -z "$ac_file"; then :
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 $as_echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error 77 "C compiler cannot create executables
2889 See \`config.log' for more details" "$LINENO" 5; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2897 $as_echo "$ac_file" >&6; }
2898 ac_exeext=$ac_cv_exeext
2899
2900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2903 $as_echo_n "checking for suffix of executables... " >&6; }
2904 if { { ac_try="$ac_link"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; then :
2915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2917 # work properly (i.e., refer to `conftest.exe'), while it won't with
2918 # `rm'.
2919 for ac_file in conftest.exe conftest conftest.*; do
2920 test -f "$ac_file" || continue
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 break;;
2925 * ) break;;
2926 esac
2927 done
2928 else
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details" "$LINENO" 5; }
2933 fi
2934 rm -f conftest conftest$ac_cv_exeext
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2936 $as_echo "$ac_cv_exeext" >&6; }
2937
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2940 ac_exeext=$EXEEXT
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2943 #include <stdio.h>
2944 int
2945 main ()
2946 {
2947 FILE *f = fopen ("conftest.out", "w");
2948 return ferror (f) || fclose (f) != 0;
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 ac_clean_files="$ac_clean_files conftest.out"
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2958 $as_echo_n "checking whether we are cross compiling... " >&6; }
2959 if test "$cross_compiling" != yes; then
2960 { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_link") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 if { ac_try='./conftest$ac_cv_exeext'
2972 { { case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; }; then
2982 cross_compiling=no
2983 else
2984 if test "$cross_compiling" = maybe; then
2985 cross_compiling=yes
2986 else
2987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $? "cannot run C compiled programs.
2990 If you meant to cross compile, use \`--host'.
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 fi
2993 fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2996 $as_echo "$cross_compiling" >&6; }
2997
2998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if ${ac_cv_objext+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035 done
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "cannot compute suffix of object files: cannot compile
3043 See \`config.log' for more details" "$LINENO" 5; }
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if ${ac_cv_c_compiler_gnu+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 if ac_fn_c_try_compile "$LINENO"; then :
3071 ac_compiler_gnu=yes
3072 else
3073 ac_compiler_gnu=no
3074 fi
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3082 GCC=yes
3083 else
3084 GCC=
3085 fi
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if ${ac_cv_prog_cc_g+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110 else
3111 CFLAGS=""
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124
3125 else
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 CFLAGS="-g"
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_g=yes
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3155 CFLAGS="-g -O2"
3156 else
3157 CFLAGS="-g"
3158 fi
3159 else
3160 if test "$GCC" = yes; then
3161 CFLAGS="-O2"
3162 else
3163 CFLAGS=
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if ${ac_cv_prog_cc_c89+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_cv_prog_cc_c89=no
3172 ac_save_CC=$CC
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 struct stat;
3178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179 struct buf { int x; };
3180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181 static char *e (p, i)
3182 char **p;
3183 int i;
3184 {
3185 return p[i];
3186 }
3187 static char *f (char * (*g) (char **, int), char **p, ...)
3188 {
3189 char *s;
3190 va_list v;
3191 va_start (v,p);
3192 s = g (p, va_arg (v,int));
3193 va_end (v);
3194 return s;
3195 }
3196
3197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205
3206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3208 #define FOO(x) 'x'
3209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210
3211 int test (int i, double x);
3212 struct s1 {int (*f) (int a);};
3213 struct s2 {int (*f) (double a);};
3214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3215 int argc;
3216 char **argv;
3217 int
3218 main ()
3219 {
3220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 do
3228 CC="$ac_save_CC $ac_arg"
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_c89=$ac_arg
3231 fi
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3234 done
3235 rm -f conftest.$ac_ext
3236 CC=$ac_save_CC
3237
3238 fi
3239 # AC_CACHE_VAL
3240 case "x$ac_cv_prog_cc_c89" in
3241 x)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243 $as_echo "none needed" >&6; } ;;
3244 xno)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3246 $as_echo "unsupported" >&6; } ;;
3247 *)
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3251 esac
3252 if test "x$ac_cv_prog_cc_c89" != xno; then :
3253
3254 fi
3255
3256 ac_ext=c
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3268 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3269 if ${am_cv_prog_cc_c_o+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274
3275 int
3276 main ()
3277 {
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 # Make sure it works both with $CC and with simple cc.
3284 # Following AC_PROG_CC_C_O, we do the test twice because some
3285 # compilers refuse to overwrite an existing .o file with -o,
3286 # though they will create one.
3287 am_cv_prog_cc_c_o=yes
3288 for am_i in 1 2; do
3289 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3290 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } \
3294 && test -f conftest2.$ac_objext; then
3295 : OK
3296 else
3297 am_cv_prog_cc_c_o=no
3298 break
3299 fi
3300 done
3301 rm -f core conftest*
3302 unset am_i
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3305 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3306 if test "$am_cv_prog_cc_c_o" != yes; then
3307 # Losing compiler, so override with the script.
3308 # FIXME: It is wrong to rewrite CC.
3309 # But if we don't then we get into trouble of one sort or another.
3310 # A longer-term fix would be to have automake use am__CC in this case,
3311 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3312 CC="$am_aux_dir/compile $CC"
3313 fi
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3322 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3323 if ${ac_cv_prog_cc_c99+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 ac_cv_prog_cc_c99=no
3327 ac_save_CC=$CC
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330 #include <stdarg.h>
3331 #include <stdbool.h>
3332 #include <stdlib.h>
3333 #include <wchar.h>
3334 #include <stdio.h>
3335
3336 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3337 #define debug(...) fprintf (stderr, __VA_ARGS__)
3338 #define showlist(...) puts (#__VA_ARGS__)
3339 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3340 static void
3341 test_varargs_macros (void)
3342 {
3343 int x = 1234;
3344 int y = 5678;
3345 debug ("Flag");
3346 debug ("X = %d\n", x);
3347 showlist (The first, second, and third items.);
3348 report (x>y, "x is %d but y is %d", x, y);
3349 }
3350
3351 // Check long long types.
3352 #define BIG64 18446744073709551615ull
3353 #define BIG32 4294967295ul
3354 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3355 #if !BIG_OK
3356 your preprocessor is broken;
3357 #endif
3358 #if BIG_OK
3359 #else
3360 your preprocessor is broken;
3361 #endif
3362 static long long int bignum = -9223372036854775807LL;
3363 static unsigned long long int ubignum = BIG64;
3364
3365 struct incomplete_array
3366 {
3367 int datasize;
3368 double data[];
3369 };
3370
3371 struct named_init {
3372 int number;
3373 const wchar_t *name;
3374 double average;
3375 };
3376
3377 typedef const char *ccp;
3378
3379 static inline int
3380 test_restrict (ccp restrict text)
3381 {
3382 // See if C++-style comments work.
3383 // Iterate through items via the restricted pointer.
3384 // Also check for declarations in for loops.
3385 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3386 continue;
3387 return 0;
3388 }
3389
3390 // Check varargs and va_copy.
3391 static void
3392 test_varargs (const char *format, ...)
3393 {
3394 va_list args;
3395 va_start (args, format);
3396 va_list args_copy;
3397 va_copy (args_copy, args);
3398
3399 const char *str;
3400 int number;
3401 float fnumber;
3402
3403 while (*format)
3404 {
3405 switch (*format++)
3406 {
3407 case 's': // string
3408 str = va_arg (args_copy, const char *);
3409 break;
3410 case 'd': // int
3411 number = va_arg (args_copy, int);
3412 break;
3413 case 'f': // float
3414 fnumber = va_arg (args_copy, double);
3415 break;
3416 default:
3417 break;
3418 }
3419 }
3420 va_end (args_copy);
3421 va_end (args);
3422 }
3423
3424 int
3425 main ()
3426 {
3427
3428 // Check bool.
3429 _Bool success = false;
3430
3431 // Check restrict.
3432 if (test_restrict ("String literal") == 0)
3433 success = true;
3434 char *restrict newvar = "Another string";
3435
3436 // Check varargs.
3437 test_varargs ("s, d' f .", "string", 65, 34.234);
3438 test_varargs_macros ();
3439
3440 // Check flexible array members.
3441 struct incomplete_array *ia =
3442 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3443 ia->datasize = 10;
3444 for (int i = 0; i < ia->datasize; ++i)
3445 ia->data[i] = i * 1.234;
3446
3447 // Check named initializers.
3448 struct named_init ni = {
3449 .number = 34,
3450 .name = L"Test wide string",
3451 .average = 543.34343,
3452 };
3453
3454 ni.number = 58;
3455
3456 int dynamic_array[ni.number];
3457 dynamic_array[ni.number - 1] = 543;
3458
3459 // work around unused variable warnings
3460 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3461 || dynamic_array[ni.number - 1] != 543);
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3468 do
3469 CC="$ac_save_CC $ac_arg"
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_c99=$ac_arg
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext
3474 test "x$ac_cv_prog_cc_c99" != "xno" && break
3475 done
3476 rm -f conftest.$ac_ext
3477 CC=$ac_save_CC
3478
3479 fi
3480 # AC_CACHE_VAL
3481 case "x$ac_cv_prog_cc_c99" in
3482 x)
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3484 $as_echo "none needed" >&6; } ;;
3485 xno)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3487 $as_echo "unsupported" >&6; } ;;
3488 *)
3489 CC="$CC $ac_cv_prog_cc_c99"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3491 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3492 esac
3493 if test "x$ac_cv_prog_cc_c99" != xno; then :
3494
3495 fi
3496
3497
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3505 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3506 # On Suns, sometimes $CPP names a directory.
3507 if test -n "$CPP" && test -d "$CPP"; then
3508 CPP=
3509 fi
3510 if test -z "$CPP"; then
3511 if ${ac_cv_prog_CPP+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 # Double quotes because CPP needs to be expanded
3515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3516 do
3517 ac_preproc_ok=false
3518 for ac_c_preproc_warn_flag in '' yes
3519 do
3520 # Use a header file that comes with gcc, so configuring glibc
3521 # with a fresh cross-compiler works.
3522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523 # <limits.h> exists even on freestanding compilers.
3524 # On the NeXT, cc -E runs the code through the compiler's parser,
3525 # not just through cpp. "Syntax error" is here to catch this case.
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #ifdef __STDC__
3529 # include <limits.h>
3530 #else
3531 # include <assert.h>
3532 #endif
3533 Syntax error
3534 _ACEOF
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536
3537 else
3538 # Broken: fails on valid input.
3539 continue
3540 fi
3541 rm -f conftest.err conftest.i conftest.$ac_ext
3542
3543 # OK, works on sane cases. Now check whether nonexistent headers
3544 # can be detected and how.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if ac_fn_c_try_cpp "$LINENO"; then :
3550 # Broken: success on invalid input.
3551 continue
3552 else
3553 # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3556 fi
3557 rm -f conftest.err conftest.i conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.i conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then :
3563 break
3564 fi
3565
3566 done
3567 ac_cv_prog_CPP=$CPP
3568
3569 fi
3570 CPP=$ac_cv_prog_CPP
3571 else
3572 ac_cv_prog_CPP=$CPP
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3575 $as_echo "$CPP" >&6; }
3576 ac_preproc_ok=false
3577 for ac_c_preproc_warn_flag in '' yes
3578 do
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595
3596 else
3597 # Broken: fails on valid input.
3598 continue
3599 fi
3600 rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602 # OK, works on sane cases. Now check whether nonexistent headers
3603 # can be detected and how.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if ac_fn_c_try_cpp "$LINENO"; then :
3609 # Broken: success on invalid input.
3610 continue
3611 else
3612 # Passes both tests.
3613 ac_preproc_ok=:
3614 break
3615 fi
3616 rm -f conftest.err conftest.i conftest.$ac_ext
3617
3618 done
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.i conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then :
3622
3623 else
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details" "$LINENO" 5; }
3628 fi
3629
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3638 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3639 if ${ac_cv_path_GREP+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -z "$GREP"; then
3643 ac_path_GREP_found=false
3644 # Loop through the user's path and test for each of PROGNAME-LIST
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_prog in grep ggrep; do
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3653 as_fn_executable_p "$ac_path_GREP" || continue
3654 # Check for GNU ac_path_GREP and select it if it is found.
3655 # Check for GNU $ac_path_GREP
3656 case `"$ac_path_GREP" --version 2>&1` in
3657 *GNU*)
3658 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3659 *)
3660 ac_count=0
3661 $as_echo_n 0123456789 >"conftest.in"
3662 while :
3663 do
3664 cat "conftest.in" "conftest.in" >"conftest.tmp"
3665 mv "conftest.tmp" "conftest.in"
3666 cp "conftest.in" "conftest.nl"
3667 $as_echo 'GREP' >> "conftest.nl"
3668 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3670 as_fn_arith $ac_count + 1 && ac_count=$as_val
3671 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3672 # Best one so far, save it but keep looking for a better one
3673 ac_cv_path_GREP="$ac_path_GREP"
3674 ac_path_GREP_max=$ac_count
3675 fi
3676 # 10*(2^10) chars as input seems more than enough
3677 test $ac_count -gt 10 && break
3678 done
3679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3680 esac
3681
3682 $ac_path_GREP_found && break 3
3683 done
3684 done
3685 done
3686 IFS=$as_save_IFS
3687 if test -z "$ac_cv_path_GREP"; then
3688 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3689 fi
3690 else
3691 ac_cv_path_GREP=$GREP
3692 fi
3693
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3696 $as_echo "$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3698
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3701 $as_echo_n "checking for egrep... " >&6; }
3702 if ${ac_cv_path_EGREP+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3707 else
3708 if test -z "$EGREP"; then
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 as_fn_executable_p "$ac_path_EGREP" || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 *)
3726 ac_count=0
3727 $as_echo_n 0123456789 >"conftest.in"
3728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 $as_echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 as_fn_arith $ac_count + 1 && ac_count=$as_val
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3741 fi
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748 $ac_path_EGREP_found && break 3
3749 done
3750 done
3751 done
3752 IFS=$as_save_IFS
3753 if test -z "$ac_cv_path_EGREP"; then
3754 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3755 fi
3756 else
3757 ac_cv_path_EGREP=$EGREP
3758 fi
3759
3760 fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3763 $as_echo "$ac_cv_path_EGREP" >&6; }
3764 EGREP="$ac_cv_path_EGREP"
3765
3766
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3768 $as_echo_n "checking for ANSI C header files... " >&6; }
3769 if ${ac_cv_header_stdc+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <stdlib.h>
3775 #include <stdarg.h>
3776 #include <string.h>
3777 #include <float.h>
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_header_stdc=yes
3789 else
3790 ac_cv_header_stdc=no
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
3794 if test $ac_cv_header_stdc = yes; then
3795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <string.h>
3799
3800 _ACEOF
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "memchr" >/dev/null 2>&1; then :
3803
3804 else
3805 ac_cv_header_stdc=no
3806 fi
3807 rm -f conftest*
3808
3809 fi
3810
3811 if test $ac_cv_header_stdc = yes; then
3812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #include <stdlib.h>
3816
3817 _ACEOF
3818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819 $EGREP "free" >/dev/null 2>&1; then :
3820
3821 else
3822 ac_cv_header_stdc=no
3823 fi
3824 rm -f conftest*
3825
3826 fi
3827
3828 if test $ac_cv_header_stdc = yes; then
3829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3830 if test "$cross_compiling" = yes; then :
3831 :
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <ctype.h>
3836 #include <stdlib.h>
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 #else
3841 # define ISLOWER(c) \
3842 (('a' <= (c) && (c) <= 'i') \
3843 || ('j' <= (c) && (c) <= 'r') \
3844 || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3846 #endif
3847
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3849 int
3850 main ()
3851 {
3852 int i;
3853 for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i))
3855 || toupper (i) != TOUPPER (i))
3856 return 2;
3857 return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_run "$LINENO"; then :
3861
3862 else
3863 ac_cv_header_stdc=no
3864 fi
3865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3866 conftest.$ac_objext conftest.beam conftest.$ac_ext
3867 fi
3868
3869 fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3872 $as_echo "$ac_cv_header_stdc" >&6; }
3873 if test $ac_cv_header_stdc = yes; then
3874
3875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3876
3877 fi
3878
3879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3881 inttypes.h stdint.h unistd.h
3882 do :
3883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3885 "
3886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3887 cat >>confdefs.h <<_ACEOF
3888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3889 _ACEOF
3890
3891 fi
3892
3893 done
3894
3895
3896
3897
3898
3899
3900 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3901 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3902 CLANGCC="yes"
3903 else
3904 CLANGCC="no"
3905 fi
3906
3907 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3908 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3909 INTELCC="yes"
3910 else
3911 INTELCC="no"
3912 fi
3913
3914 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3915 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3916 SUNCC="yes"
3917 else
3918 SUNCC="no"
3919 fi
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3930 if test -n "$ac_tool_prefix"; then
3931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 case $PKG_CONFIG in
3939 [\\/]* | ?:[\\/]*)
3940 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3941 ;;
3942 *)
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954 done
3955 done
3956 IFS=$as_save_IFS
3957
3958 ;;
3959 esac
3960 fi
3961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3962 if test -n "$PKG_CONFIG"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3964 $as_echo "$PKG_CONFIG" >&6; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_path_PKG_CONFIG"; then
3973 ac_pt_PKG_CONFIG=$PKG_CONFIG
3974 # Extract the first word of "pkg-config", so it can be a program name with args.
3975 set dummy pkg-config; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 case $ac_pt_PKG_CONFIG in
3982 [\\/]* | ?:[\\/]*)
3983 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3984 ;;
3985 *)
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999 IFS=$as_save_IFS
4000
4001 ;;
4002 esac
4003 fi
4004 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4005 if test -n "$ac_pt_PKG_CONFIG"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4007 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 fi
4012
4013 if test "x$ac_pt_PKG_CONFIG" = x; then
4014 PKG_CONFIG=""
4015 else
4016 case $cross_compiling:$ac_tool_warned in
4017 yes:)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020 ac_tool_warned=yes ;;
4021 esac
4022 PKG_CONFIG=$ac_pt_PKG_CONFIG
4023 fi
4024 else
4025 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4026 fi
4027
4028 fi
4029 if test -n "$PKG_CONFIG"; then
4030 _pkg_min_version=0.9.0
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4032 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4033 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035 $as_echo "yes" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 PKG_CONFIG=""
4040 fi
4041 fi
4042 # Make sure we can run config.sub.
4043 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4044 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4047 $as_echo_n "checking build system type... " >&6; }
4048 if ${ac_cv_build+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 ac_build_alias=$build_alias
4052 test "x$ac_build_alias" = x &&
4053 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4054 test "x$ac_build_alias" = x &&
4055 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4057 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4058
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4061 $as_echo "$ac_cv_build" >&6; }
4062 case $ac_cv_build in
4063 *-*-*) ;;
4064 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4065 esac
4066 build=$ac_cv_build
4067 ac_save_IFS=$IFS; IFS='-'
4068 set x $ac_cv_build
4069 shift
4070 build_cpu=$1
4071 build_vendor=$2
4072 shift; shift
4073 # Remember, the first character of IFS is used to create $*,
4074 # except with old shells:
4075 build_os=$*
4076 IFS=$ac_save_IFS
4077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4081 $as_echo_n "checking host system type... " >&6; }
4082 if ${ac_cv_host+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test "x$host_alias" = x; then
4086 ac_cv_host=$ac_cv_build
4087 else
4088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4089 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4090 fi
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4094 $as_echo "$ac_cv_host" >&6; }
4095 case $ac_cv_host in
4096 *-*-*) ;;
4097 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4098 esac
4099 host=$ac_cv_host
4100 ac_save_IFS=$IFS; IFS='-'
4101 set x $ac_cv_host
4102 shift
4103 host_cpu=$1
4104 host_vendor=$2
4105 shift; shift
4106 # Remember, the first character of IFS is used to create $*,
4107 # except with old shells:
4108 host_os=$*
4109 IFS=$ac_save_IFS
4110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4114 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4115 if ${ac_cv_path_SED+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4119 for ac_i in 1 2 3 4 5 6 7; do
4120 ac_script="$ac_script$as_nl$ac_script"
4121 done
4122 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4123 { ac_script=; unset ac_script;}
4124 if test -z "$SED"; then
4125 ac_path_SED_found=false
4126 # Loop through the user's path and test for each of PROGNAME-LIST
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_prog in sed gsed; do
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4135 as_fn_executable_p "$ac_path_SED" || continue
4136 # Check for GNU ac_path_SED and select it if it is found.
4137 # Check for GNU $ac_path_SED
4138 case `"$ac_path_SED" --version 2>&1` in
4139 *GNU*)
4140 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4141 *)
4142 ac_count=0
4143 $as_echo_n 0123456789 >"conftest.in"
4144 while :
4145 do
4146 cat "conftest.in" "conftest.in" >"conftest.tmp"
4147 mv "conftest.tmp" "conftest.in"
4148 cp "conftest.in" "conftest.nl"
4149 $as_echo '' >> "conftest.nl"
4150 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152 as_fn_arith $ac_count + 1 && ac_count=$as_val
4153 if test $ac_count -gt ${ac_path_SED_max-0}; then
4154 # Best one so far, save it but keep looking for a better one
4155 ac_cv_path_SED="$ac_path_SED"
4156 ac_path_SED_max=$ac_count
4157 fi
4158 # 10*(2^10) chars as input seems more than enough
4159 test $ac_count -gt 10 && break
4160 done
4161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162 esac
4163
4164 $ac_path_SED_found && break 3
4165 done
4166 done
4167 done
4168 IFS=$as_save_IFS
4169 if test -z "$ac_cv_path_SED"; then
4170 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4171 fi
4172 else
4173 ac_cv_path_SED=$SED
4174 fi
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4178 $as_echo "$ac_cv_path_SED" >&6; }
4179 SED="$ac_cv_path_SED"
4180 rm -f conftest.sed
4181
4182
4183
4184
4185
4186
4187 # Check whether --enable-selective-werror was given.
4188 if test "${enable_selective_werror+set}" = set; then :
4189 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4190 else
4191 SELECTIVE_WERROR=yes
4192 fi
4193
4194
4195
4196
4197
4198 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4199 if test "x$SUNCC" = "xyes"; then
4200 BASE_CFLAGS="-v"
4201 else
4202 BASE_CFLAGS=""
4203 fi
4204
4205 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219 xorg_testset_save_CFLAGS="$CFLAGS"
4220
4221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 int i;
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 xorg_cv_cc_flag_unknown_warning_option=yes
4234 else
4235 xorg_cv_cc_flag_unknown_warning_option=no
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4242 CFLAGS="$xorg_testset_save_CFLAGS"
4243 fi
4244
4245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4248 fi
4249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 int i;
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 xorg_cv_cc_flag_unused_command_line_argument=yes
4261 else
4262 xorg_cv_cc_flag_unused_command_line_argument=no
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4269 CFLAGS="$xorg_testset_save_CFLAGS"
4270 fi
4271
4272 found="no"
4273
4274 if test $found = "no" ; then
4275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4277 fi
4278
4279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4281 fi
4282
4283 CFLAGS="$CFLAGS -Wall"
4284
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4286 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4287 cacheid=xorg_cv_cc_flag__Wall
4288 if eval \${$cacheid+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 int i;
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_link "$LINENO"; then :
4303 eval $cacheid=yes
4304 else
4305 eval $cacheid=no
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext \
4308 conftest$ac_exeext conftest.$ac_ext
4309 fi
4310
4311
4312 CFLAGS="$xorg_testset_save_CFLAGS"
4313
4314 eval supported=\$$cacheid
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4316 $as_echo "$supported" >&6; }
4317 if test "$supported" = "yes" ; then
4318 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4319 found="yes"
4320 fi
4321 fi
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 xorg_testset_save_CFLAGS="$CFLAGS"
4338
4339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 int i;
4349 _ACEOF
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351 xorg_cv_cc_flag_unknown_warning_option=yes
4352 else
4353 xorg_cv_cc_flag_unknown_warning_option=no
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4360 CFLAGS="$xorg_testset_save_CFLAGS"
4361 fi
4362
4363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4366 fi
4367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 int i;
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378 xorg_cv_cc_flag_unused_command_line_argument=yes
4379 else
4380 xorg_cv_cc_flag_unused_command_line_argument=no
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4387 CFLAGS="$xorg_testset_save_CFLAGS"
4388 fi
4389
4390 found="no"
4391
4392 if test $found = "no" ; then
4393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4395 fi
4396
4397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4399 fi
4400
4401 CFLAGS="$CFLAGS -Wpointer-arith"
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4404 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4405 cacheid=xorg_cv_cc_flag__Wpointer_arith
4406 if eval \${$cacheid+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 int i;
4412 int
4413 main ()
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_link "$LINENO"; then :
4421 eval $cacheid=yes
4422 else
4423 eval $cacheid=no
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4427 fi
4428
4429
4430 CFLAGS="$xorg_testset_save_CFLAGS"
4431
4432 eval supported=\$$cacheid
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4434 $as_echo "$supported" >&6; }
4435 if test "$supported" = "yes" ; then
4436 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4437 found="yes"
4438 fi
4439 fi
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 xorg_testset_save_CFLAGS="$CFLAGS"
4456
4457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 int i;
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 xorg_cv_cc_flag_unknown_warning_option=yes
4470 else
4471 xorg_cv_cc_flag_unknown_warning_option=no
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4478 CFLAGS="$xorg_testset_save_CFLAGS"
4479 fi
4480
4481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4484 fi
4485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 int i;
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 xorg_cv_cc_flag_unused_command_line_argument=yes
4497 else
4498 xorg_cv_cc_flag_unused_command_line_argument=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4505 CFLAGS="$xorg_testset_save_CFLAGS"
4506 fi
4507
4508 found="no"
4509
4510 if test $found = "no" ; then
4511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4513 fi
4514
4515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4517 fi
4518
4519 CFLAGS="$CFLAGS -Wmissing-declarations"
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4522 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4523 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4524 if eval \${$cacheid+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 int i;
4530 int
4531 main ()
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_c_try_link "$LINENO"; then :
4539 eval $cacheid=yes
4540 else
4541 eval $cacheid=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext \
4544 conftest$ac_exeext conftest.$ac_ext
4545 fi
4546
4547
4548 CFLAGS="$xorg_testset_save_CFLAGS"
4549
4550 eval supported=\$$cacheid
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4552 $as_echo "$supported" >&6; }
4553 if test "$supported" = "yes" ; then
4554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4555 found="yes"
4556 fi
4557 fi
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 xorg_testset_save_CFLAGS="$CFLAGS"
4574
4575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 int i;
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587 xorg_cv_cc_flag_unknown_warning_option=yes
4588 else
4589 xorg_cv_cc_flag_unknown_warning_option=no
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4596 CFLAGS="$xorg_testset_save_CFLAGS"
4597 fi
4598
4599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4602 fi
4603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611 int i;
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 xorg_cv_cc_flag_unused_command_line_argument=yes
4615 else
4616 xorg_cv_cc_flag_unused_command_line_argument=no
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4623 CFLAGS="$xorg_testset_save_CFLAGS"
4624 fi
4625
4626 found="no"
4627
4628 if test $found = "no" ; then
4629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4631 fi
4632
4633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4635 fi
4636
4637 CFLAGS="$CFLAGS -Wformat=2"
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4640 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4641 cacheid=xorg_cv_cc_flag__Wformat_2
4642 if eval \${$cacheid+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 int i;
4648 int
4649 main ()
4650 {
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657 eval $cacheid=yes
4658 else
4659 eval $cacheid=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext \
4662 conftest$ac_exeext conftest.$ac_ext
4663 fi
4664
4665
4666 CFLAGS="$xorg_testset_save_CFLAGS"
4667
4668 eval supported=\$$cacheid
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4670 $as_echo "$supported" >&6; }
4671 if test "$supported" = "yes" ; then
4672 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4673 found="yes"
4674 fi
4675 fi
4676
4677 if test $found = "no" ; then
4678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4680 fi
4681
4682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4684 fi
4685
4686 CFLAGS="$CFLAGS -Wformat"
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4689 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4690 cacheid=xorg_cv_cc_flag__Wformat
4691 if eval \${$cacheid+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 int i;
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_link "$LINENO"; then :
4706 eval $cacheid=yes
4707 else
4708 eval $cacheid=no
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 fi
4713
4714
4715 CFLAGS="$xorg_testset_save_CFLAGS"
4716
4717 eval supported=\$$cacheid
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4719 $as_echo "$supported" >&6; }
4720 if test "$supported" = "yes" ; then
4721 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4722 found="yes"
4723 fi
4724 fi
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 xorg_testset_save_CFLAGS="$CFLAGS"
4743
4744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 int i;
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 xorg_cv_cc_flag_unknown_warning_option=yes
4757 else
4758 xorg_cv_cc_flag_unknown_warning_option=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4765 CFLAGS="$xorg_testset_save_CFLAGS"
4766 fi
4767
4768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4771 fi
4772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 int i;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 xorg_cv_cc_flag_unused_command_line_argument=yes
4784 else
4785 xorg_cv_cc_flag_unused_command_line_argument=no
4786 fi
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4792 CFLAGS="$xorg_testset_save_CFLAGS"
4793 fi
4794
4795 found="no"
4796
4797 if test $found = "no" ; then
4798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 fi
4801
4802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804 fi
4805
4806 CFLAGS="$CFLAGS -Wstrict-prototypes"
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4809 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4810 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4811 if eval \${$cacheid+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 int i;
4817 int
4818 main ()
4819 {
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_link "$LINENO"; then :
4826 eval $cacheid=yes
4827 else
4828 eval $cacheid=no
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext \
4831 conftest$ac_exeext conftest.$ac_ext
4832 fi
4833
4834
4835 CFLAGS="$xorg_testset_save_CFLAGS"
4836
4837 eval supported=\$$cacheid
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4839 $as_echo "$supported" >&6; }
4840 if test "$supported" = "yes" ; then
4841 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4842 found="yes"
4843 fi
4844 fi
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860 xorg_testset_save_CFLAGS="$CFLAGS"
4861
4862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871 int i;
4872 _ACEOF
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 xorg_cv_cc_flag_unknown_warning_option=yes
4875 else
4876 xorg_cv_cc_flag_unknown_warning_option=no
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4883 CFLAGS="$xorg_testset_save_CFLAGS"
4884 fi
4885
4886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 fi
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 int i;
4899 _ACEOF
4900 if ac_fn_c_try_compile "$LINENO"; then :
4901 xorg_cv_cc_flag_unused_command_line_argument=yes
4902 else
4903 xorg_cv_cc_flag_unused_command_line_argument=no
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4910 CFLAGS="$xorg_testset_save_CFLAGS"
4911 fi
4912
4913 found="no"
4914
4915 if test $found = "no" ; then
4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 fi
4919
4920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922 fi
4923
4924 CFLAGS="$CFLAGS -Wmissing-prototypes"
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4927 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4928 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4929 if eval \${$cacheid+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 int i;
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_link "$LINENO"; then :
4944 eval $cacheid=yes
4945 else
4946 eval $cacheid=no
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 fi
4951
4952
4953 CFLAGS="$xorg_testset_save_CFLAGS"
4954
4955 eval supported=\$$cacheid
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4957 $as_echo "$supported" >&6; }
4958 if test "$supported" = "yes" ; then
4959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4960 found="yes"
4961 fi
4962 fi
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 xorg_testset_save_CFLAGS="$CFLAGS"
4979
4980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 int i;
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992 xorg_cv_cc_flag_unknown_warning_option=yes
4993 else
4994 xorg_cv_cc_flag_unknown_warning_option=no
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5001 CFLAGS="$xorg_testset_save_CFLAGS"
5002 fi
5003
5004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5007 fi
5008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 int i;
5017 _ACEOF
5018 if ac_fn_c_try_compile "$LINENO"; then :
5019 xorg_cv_cc_flag_unused_command_line_argument=yes
5020 else
5021 xorg_cv_cc_flag_unused_command_line_argument=no
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5028 CFLAGS="$xorg_testset_save_CFLAGS"
5029 fi
5030
5031 found="no"
5032
5033 if test $found = "no" ; then
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 fi
5037
5038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040 fi
5041
5042 CFLAGS="$CFLAGS -Wnested-externs"
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5045 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5046 cacheid=xorg_cv_cc_flag__Wnested_externs
5047 if eval \${$cacheid+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 int i;
5053 int
5054 main ()
5055 {
5056
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 if ac_fn_c_try_link "$LINENO"; then :
5062 eval $cacheid=yes
5063 else
5064 eval $cacheid=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext \
5067 conftest$ac_exeext conftest.$ac_ext
5068 fi
5069
5070
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072
5073 eval supported=\$$cacheid
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5075 $as_echo "$supported" >&6; }
5076 if test "$supported" = "yes" ; then
5077 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5078 found="yes"
5079 fi
5080 fi
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 xorg_testset_save_CFLAGS="$CFLAGS"
5097
5098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 int i;
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 xorg_cv_cc_flag_unknown_warning_option=yes
5111 else
5112 xorg_cv_cc_flag_unknown_warning_option=no
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5119 CFLAGS="$xorg_testset_save_CFLAGS"
5120 fi
5121
5122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125 fi
5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 int i;
5135 _ACEOF
5136 if ac_fn_c_try_compile "$LINENO"; then :
5137 xorg_cv_cc_flag_unused_command_line_argument=yes
5138 else
5139 xorg_cv_cc_flag_unused_command_line_argument=no
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5146 CFLAGS="$xorg_testset_save_CFLAGS"
5147 fi
5148
5149 found="no"
5150
5151 if test $found = "no" ; then
5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 fi
5155
5156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5158 fi
5159
5160 CFLAGS="$CFLAGS -Wbad-function-cast"
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5163 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5164 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5165 if eval \${$cacheid+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 int i;
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_link "$LINENO"; then :
5180 eval $cacheid=yes
5181 else
5182 eval $cacheid=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext \
5185 conftest$ac_exeext conftest.$ac_ext
5186 fi
5187
5188
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190
5191 eval supported=\$$cacheid
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5193 $as_echo "$supported" >&6; }
5194 if test "$supported" = "yes" ; then
5195 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5196 found="yes"
5197 fi
5198 fi
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 xorg_testset_save_CFLAGS="$CFLAGS"
5215
5216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 int i;
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"; then :
5228 xorg_cv_cc_flag_unknown_warning_option=yes
5229 else
5230 xorg_cv_cc_flag_unknown_warning_option=no
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5237 CFLAGS="$xorg_testset_save_CFLAGS"
5238 fi
5239
5240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243 fi
5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 int i;
5253 _ACEOF
5254 if ac_fn_c_try_compile "$LINENO"; then :
5255 xorg_cv_cc_flag_unused_command_line_argument=yes
5256 else
5257 xorg_cv_cc_flag_unused_command_line_argument=no
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5264 CFLAGS="$xorg_testset_save_CFLAGS"
5265 fi
5266
5267 found="no"
5268
5269 if test $found = "no" ; then
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5276 fi
5277
5278 CFLAGS="$CFLAGS -Wold-style-definition"
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5281 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5282 cacheid=xorg_cv_cc_flag__Wold_style_definition
5283 if eval \${$cacheid+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 int i;
5289 int
5290 main ()
5291 {
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 eval $cacheid=yes
5299 else
5300 eval $cacheid=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 fi
5305
5306
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308
5309 eval supported=\$$cacheid
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5311 $as_echo "$supported" >&6; }
5312 if test "$supported" = "yes" ; then
5313 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5314 found="yes"
5315 fi
5316 fi
5317
5318 if test $found = "no" ; then
5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 fi
5322
5323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5325 fi
5326
5327 CFLAGS="$CFLAGS -fd"
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5330 $as_echo_n "checking if $CC supports -fd... " >&6; }
5331 cacheid=xorg_cv_cc_flag__fd
5332 if eval \${$cacheid+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 int
5339 main ()
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 eval $cacheid=yes
5348 else
5349 eval $cacheid=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 fi
5354
5355
5356 CFLAGS="$xorg_testset_save_CFLAGS"
5357
5358 eval supported=\$$cacheid
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5360 $as_echo "$supported" >&6; }
5361 if test "$supported" = "yes" ; then
5362 BASE_CFLAGS="$BASE_CFLAGS -fd"
5363 found="yes"
5364 fi
5365 fi
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 xorg_testset_save_CFLAGS="$CFLAGS"
5382
5383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 int i;
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 xorg_cv_cc_flag_unknown_warning_option=yes
5396 else
5397 xorg_cv_cc_flag_unknown_warning_option=no
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5404 CFLAGS="$xorg_testset_save_CFLAGS"
5405 fi
5406
5407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410 fi
5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 int i;
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 xorg_cv_cc_flag_unused_command_line_argument=yes
5423 else
5424 xorg_cv_cc_flag_unused_command_line_argument=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5431 CFLAGS="$xorg_testset_save_CFLAGS"
5432 fi
5433
5434 found="no"
5435
5436 if test $found = "no" ; then
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 fi
5440
5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5443 fi
5444
5445 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5446
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5448 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5449 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5450 if eval \${$cacheid+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 int i;
5456 int
5457 main ()
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 eval $cacheid=yes
5466 else
5467 eval $cacheid=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5471 fi
5472
5473
5474 CFLAGS="$xorg_testset_save_CFLAGS"
5475
5476 eval supported=\$$cacheid
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5478 $as_echo "$supported" >&6; }
5479 if test "$supported" = "yes" ; then
5480 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5481 found="yes"
5482 fi
5483 fi
5484
5485
5486
5487
5488
5489 # This chunk adds additional warnings that could catch undesired effects.
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 xorg_testset_save_CFLAGS="$CFLAGS"
5504
5505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 int i;
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 xorg_cv_cc_flag_unknown_warning_option=yes
5518 else
5519 xorg_cv_cc_flag_unknown_warning_option=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527 fi
5528
5529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 fi
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 int i;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 xorg_cv_cc_flag_unused_command_line_argument=yes
5545 else
5546 xorg_cv_cc_flag_unused_command_line_argument=no
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554 fi
5555
5556 found="no"
5557
5558 if test $found = "no" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565 fi
5566
5567 CFLAGS="$CFLAGS -Wunused"
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5570 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5571 cacheid=xorg_cv_cc_flag__Wunused
5572 if eval \${$cacheid+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int i;
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_link "$LINENO"; then :
5587 eval $cacheid=yes
5588 else
5589 eval $cacheid=no
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5593 fi
5594
5595
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598 eval supported=\$$cacheid
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600 $as_echo "$supported" >&6; }
5601 if test "$supported" = "yes" ; then
5602 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5603 found="yes"
5604 fi
5605 fi
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 xorg_testset_save_CFLAGS="$CFLAGS"
5622
5623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 int i;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 xorg_cv_cc_flag_unknown_warning_option=yes
5636 else
5637 xorg_cv_cc_flag_unknown_warning_option=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644 CFLAGS="$xorg_testset_save_CFLAGS"
5645 fi
5646
5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650 fi
5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 int i;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 xorg_cv_cc_flag_unused_command_line_argument=yes
5663 else
5664 xorg_cv_cc_flag_unused_command_line_argument=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672 fi
5673
5674 found="no"
5675
5676 if test $found = "no" ; then
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 fi
5680
5681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683 fi
5684
5685 CFLAGS="$CFLAGS -Wuninitialized"
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5688 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5689 cacheid=xorg_cv_cc_flag__Wuninitialized
5690 if eval \${$cacheid+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 int i;
5696 int
5697 main ()
5698 {
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_c_try_link "$LINENO"; then :
5705 eval $cacheid=yes
5706 else
5707 eval $cacheid=no
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 fi
5712
5713
5714 CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716 eval supported=\$$cacheid
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718 $as_echo "$supported" >&6; }
5719 if test "$supported" = "yes" ; then
5720 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5721 found="yes"
5722 fi
5723 fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 int i;
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 xorg_cv_cc_flag_unknown_warning_option=yes
5754 else
5755 xorg_cv_cc_flag_unknown_warning_option=no
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5762 CFLAGS="$xorg_testset_save_CFLAGS"
5763 fi
5764
5765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768 fi
5769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 int i;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 xorg_cv_cc_flag_unused_command_line_argument=yes
5781 else
5782 xorg_cv_cc_flag_unused_command_line_argument=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790 fi
5791
5792 found="no"
5793
5794 if test $found = "no" ; then
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801 fi
5802
5803 CFLAGS="$CFLAGS -Wshadow"
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5806 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5807 cacheid=xorg_cv_cc_flag__Wshadow
5808 if eval \${$cacheid+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int i;
5814 int
5815 main ()
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 eval $cacheid=yes
5824 else
5825 eval $cacheid=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 fi
5830
5831
5832 CFLAGS="$xorg_testset_save_CFLAGS"
5833
5834 eval supported=\$$cacheid
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5836 $as_echo "$supported" >&6; }
5837 if test "$supported" = "yes" ; then
5838 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5839 found="yes"
5840 fi
5841 fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 xorg_testset_save_CFLAGS="$CFLAGS"
5858
5859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 int i;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 xorg_cv_cc_flag_unknown_warning_option=yes
5872 else
5873 xorg_cv_cc_flag_unknown_warning_option=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5880 CFLAGS="$xorg_testset_save_CFLAGS"
5881 fi
5882
5883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 fi
5887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 int i;
5896 _ACEOF
5897 if ac_fn_c_try_compile "$LINENO"; then :
5898 xorg_cv_cc_flag_unused_command_line_argument=yes
5899 else
5900 xorg_cv_cc_flag_unused_command_line_argument=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 fi
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5907 CFLAGS="$xorg_testset_save_CFLAGS"
5908 fi
5909
5910 found="no"
5911
5912 if test $found = "no" ; then
5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915 fi
5916
5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919 fi
5920
5921 CFLAGS="$CFLAGS -Wmissing-noreturn"
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5924 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5925 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5926 if eval \${$cacheid+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 int i;
5932 int
5933 main ()
5934 {
5935
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_link "$LINENO"; then :
5941 eval $cacheid=yes
5942 else
5943 eval $cacheid=no
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext conftest.$ac_ext
5947 fi
5948
5949
5950 CFLAGS="$xorg_testset_save_CFLAGS"
5951
5952 eval supported=\$$cacheid
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5954 $as_echo "$supported" >&6; }
5955 if test "$supported" = "yes" ; then
5956 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5957 found="yes"
5958 fi
5959 fi
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 xorg_testset_save_CFLAGS="$CFLAGS"
5976
5977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 int i;
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 xorg_cv_cc_flag_unknown_warning_option=yes
5990 else
5991 xorg_cv_cc_flag_unknown_warning_option=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5998 CFLAGS="$xorg_testset_save_CFLAGS"
5999 fi
6000
6001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 fi
6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 int i;
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016 xorg_cv_cc_flag_unused_command_line_argument=yes
6017 else
6018 xorg_cv_cc_flag_unused_command_line_argument=no
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6025 CFLAGS="$xorg_testset_save_CFLAGS"
6026 fi
6027
6028 found="no"
6029
6030 if test $found = "no" ; then
6031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6033 fi
6034
6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6037 fi
6038
6039 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6042 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6043 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6044 if eval \${$cacheid+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 int i;
6050 int
6051 main ()
6052 {
6053
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 if ac_fn_c_try_link "$LINENO"; then :
6059 eval $cacheid=yes
6060 else
6061 eval $cacheid=no
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext \
6064 conftest$ac_exeext conftest.$ac_ext
6065 fi
6066
6067
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069
6070 eval supported=\$$cacheid
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072 $as_echo "$supported" >&6; }
6073 if test "$supported" = "yes" ; then
6074 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6075 found="yes"
6076 fi
6077 fi
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 int i;
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 xorg_cv_cc_flag_unknown_warning_option=yes
6108 else
6109 xorg_cv_cc_flag_unknown_warning_option=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116 CFLAGS="$xorg_testset_save_CFLAGS"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 int i;
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"; then :
6134 xorg_cv_cc_flag_unused_command_line_argument=yes
6135 else
6136 xorg_cv_cc_flag_unused_command_line_argument=no
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 fi
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144 fi
6145
6146 found="no"
6147
6148 if test $found = "no" ; then
6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151 fi
6152
6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155 fi
6156
6157 CFLAGS="$CFLAGS -Wredundant-decls"
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6160 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6161 cacheid=xorg_cv_cc_flag__Wredundant_decls
6162 if eval \${$cacheid+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 int i;
6168 int
6169 main ()
6170 {
6171
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"; then :
6177 eval $cacheid=yes
6178 else
6179 eval $cacheid=no
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext \
6182 conftest$ac_exeext conftest.$ac_ext
6183 fi
6184
6185
6186 CFLAGS="$xorg_testset_save_CFLAGS"
6187
6188 eval supported=\$$cacheid
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6190 $as_echo "$supported" >&6; }
6191 if test "$supported" = "yes" ; then
6192 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6193 found="yes"
6194 fi
6195 fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"; then :
6225 xorg_cv_cc_flag_unknown_warning_option=yes
6226 else
6227 xorg_cv_cc_flag_unknown_warning_option=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234 CFLAGS="$xorg_testset_save_CFLAGS"
6235 fi
6236
6237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 fi
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 _ACEOF
6251 if ac_fn_c_try_compile "$LINENO"; then :
6252 xorg_cv_cc_flag_unused_command_line_argument=yes
6253 else
6254 xorg_cv_cc_flag_unused_command_line_argument=no
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261 CFLAGS="$xorg_testset_save_CFLAGS"
6262 fi
6263
6264 found="no"
6265
6266 if test $found = "no" ; then
6267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269 fi
6270
6271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273 fi
6274
6275 CFLAGS="$CFLAGS -Wlogical-op"
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6278 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6279 cacheid=xorg_cv_cc_flag__Wlogical_op
6280 if eval \${$cacheid+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 int i;
6286 int
6287 main ()
6288 {
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 if ac_fn_c_try_link "$LINENO"; then :
6295 eval $cacheid=yes
6296 else
6297 eval $cacheid=no
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 fi
6302
6303
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306 eval supported=\$$cacheid
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308 $as_echo "$supported" >&6; }
6309 if test "$supported" = "yes" ; then
6310 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6311 found="yes"
6312 fi
6313 fi
6314
6315
6316
6317 # These are currently disabled because they are noisy. They will be enabled
6318 # in the future once the codebase is sufficiently modernized to silence
6319 # them. For now, I don't want them to drown out the other warnings.
6320 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6321 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6322 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6323
6324 # Turn some warnings into errors, so we don't accidently get successful builds
6325 # when there are problems that should be fixed.
6326
6327 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341 xorg_testset_save_CFLAGS="$CFLAGS"
6342
6343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 int i;
6353 _ACEOF
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unknown_warning_option=yes
6356 else
6357 xorg_cv_cc_flag_unknown_warning_option=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6365 fi
6366
6367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6370 fi
6371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 int i;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 xorg_cv_cc_flag_unused_command_line_argument=yes
6383 else
6384 xorg_cv_cc_flag_unused_command_line_argument=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6391 CFLAGS="$xorg_testset_save_CFLAGS"
6392 fi
6393
6394 found="no"
6395
6396 if test $found = "no" ; then
6397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399 fi
6400
6401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403 fi
6404
6405 CFLAGS="$CFLAGS -Werror=implicit"
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6408 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6409 cacheid=xorg_cv_cc_flag__Werror_implicit
6410 if eval \${$cacheid+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 int i;
6416 int
6417 main ()
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_link "$LINENO"; then :
6425 eval $cacheid=yes
6426 else
6427 eval $cacheid=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6431 fi
6432
6433
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435
6436 eval supported=\$$cacheid
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6438 $as_echo "$supported" >&6; }
6439 if test "$supported" = "yes" ; then
6440 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6441 found="yes"
6442 fi
6443 fi
6444
6445 if test $found = "no" ; then
6446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 fi
6449
6450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 fi
6453
6454 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6457 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6458 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6459 if eval \${$cacheid+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 int
6466 main ()
6467 {
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 eval $cacheid=yes
6475 else
6476 eval $cacheid=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 fi
6481
6482
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485 eval supported=\$$cacheid
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487 $as_echo "$supported" >&6; }
6488 if test "$supported" = "yes" ; then
6489 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6490 found="yes"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 int i;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 xorg_cv_cc_flag_unknown_warning_option=yes
6523 else
6524 xorg_cv_cc_flag_unknown_warning_option=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 else
6551 xorg_cv_cc_flag_unused_command_line_argument=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 found="no"
6562
6563 if test $found = "no" ; then
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 fi
6567
6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570 fi
6571
6572 CFLAGS="$CFLAGS -Werror=nonnull"
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6575 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6576 cacheid=xorg_cv_cc_flag__Werror_nonnull
6577 if eval \${$cacheid+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 int
6584 main ()
6585 {
6586
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 eval $cacheid=yes
6593 else
6594 eval $cacheid=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 fi
6599
6600
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603 eval supported=\$$cacheid
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605 $as_echo "$supported" >&6; }
6606 if test "$supported" = "yes" ; then
6607 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6608 found="yes"
6609 fi
6610 fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 int i;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 xorg_cv_cc_flag_unknown_warning_option=yes
6641 else
6642 xorg_cv_cc_flag_unknown_warning_option=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650 fi
6651
6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 fi
6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 xorg_cv_cc_flag_unused_command_line_argument=yes
6668 else
6669 xorg_cv_cc_flag_unused_command_line_argument=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677 fi
6678
6679 found="no"
6680
6681 if test $found = "no" ; then
6682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684 fi
6685
6686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688 fi
6689
6690 CFLAGS="$CFLAGS -Werror=init-self"
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6693 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6694 cacheid=xorg_cv_cc_flag__Werror_init_self
6695 if eval \${$cacheid+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 int
6702 main ()
6703 {
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 eval $cacheid=yes
6711 else
6712 eval $cacheid=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 fi
6717
6718
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721 eval supported=\$$cacheid
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723 $as_echo "$supported" >&6; }
6724 if test "$supported" = "yes" ; then
6725 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6726 found="yes"
6727 fi
6728 fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744 xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 xorg_cv_cc_flag_unknown_warning_option=yes
6759 else
6760 xorg_cv_cc_flag_unknown_warning_option=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768 fi
6769
6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773 fi
6774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int i;
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 xorg_cv_cc_flag_unused_command_line_argument=yes
6786 else
6787 xorg_cv_cc_flag_unused_command_line_argument=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794 CFLAGS="$xorg_testset_save_CFLAGS"
6795 fi
6796
6797 found="no"
6798
6799 if test $found = "no" ; then
6800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802 fi
6803
6804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806 fi
6807
6808 CFLAGS="$CFLAGS -Werror=main"
6809
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6811 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6812 cacheid=xorg_cv_cc_flag__Werror_main
6813 if eval \${$cacheid+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 int i;
6819 int
6820 main ()
6821 {
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 eval $cacheid=yes
6829 else
6830 eval $cacheid=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 fi
6835
6836
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839 eval supported=\$$cacheid
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841 $as_echo "$supported" >&6; }
6842 if test "$supported" = "yes" ; then
6843 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6844 found="yes"
6845 fi
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 xorg_testset_save_CFLAGS="$CFLAGS"
6863
6864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 int i;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 xorg_cv_cc_flag_unknown_warning_option=yes
6877 else
6878 xorg_cv_cc_flag_unknown_warning_option=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6883 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6885 CFLAGS="$xorg_testset_save_CFLAGS"
6886 fi
6887
6888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 fi
6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6894 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 int i;
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 xorg_cv_cc_flag_unused_command_line_argument=yes
6904 else
6905 xorg_cv_cc_flag_unused_command_line_argument=no
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6910 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6912 CFLAGS="$xorg_testset_save_CFLAGS"
6913 fi
6914
6915 found="no"
6916
6917 if test $found = "no" ; then
6918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920 fi
6921
6922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924 fi
6925
6926 CFLAGS="$CFLAGS -Werror=missing-braces"
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6929 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6930 cacheid=xorg_cv_cc_flag__Werror_missing_braces
6931 if eval \${$cacheid+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 int
6938 main ()
6939 {
6940
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946 eval $cacheid=yes
6947 else
6948 eval $cacheid=no
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6952 fi
6953
6954
6955 CFLAGS="$xorg_testset_save_CFLAGS"
6956
6957 eval supported=\$$cacheid
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6959 $as_echo "$supported" >&6; }
6960 if test "$supported" = "yes" ; then
6961 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6962 found="yes"
6963 fi
6964 fi
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980 xorg_testset_save_CFLAGS="$CFLAGS"
6981
6982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 int i;
6992 _ACEOF
6993 if ac_fn_c_try_compile "$LINENO"; then :
6994 xorg_cv_cc_flag_unknown_warning_option=yes
6995 else
6996 xorg_cv_cc_flag_unknown_warning_option=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7003 CFLAGS="$xorg_testset_save_CFLAGS"
7004 fi
7005
7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"; then :
7021 xorg_cv_cc_flag_unused_command_line_argument=yes
7022 else
7023 xorg_cv_cc_flag_unused_command_line_argument=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7030 CFLAGS="$xorg_testset_save_CFLAGS"
7031 fi
7032
7033 found="no"
7034
7035 if test $found = "no" ; then
7036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038 fi
7039
7040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042 fi
7043
7044 CFLAGS="$CFLAGS -Werror=sequence-point"
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7047 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7048 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7049 if eval \${$cacheid+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 int i;
7055 int
7056 main ()
7057 {
7058
7059 ;
7060 return 0;
7061 }
7062 _ACEOF
7063 if ac_fn_c_try_link "$LINENO"; then :
7064 eval $cacheid=yes
7065 else
7066 eval $cacheid=no
7067 fi
7068 rm -f core conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 fi
7071
7072
7073 CFLAGS="$xorg_testset_save_CFLAGS"
7074
7075 eval supported=\$$cacheid
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7077 $as_echo "$supported" >&6; }
7078 if test "$supported" = "yes" ; then
7079 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7080 found="yes"
7081 fi
7082 fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 xorg_testset_save_CFLAGS="$CFLAGS"
7099
7100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 int i;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 xorg_cv_cc_flag_unknown_warning_option=yes
7113 else
7114 xorg_cv_cc_flag_unknown_warning_option=no
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 fi
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7121 CFLAGS="$xorg_testset_save_CFLAGS"
7122 fi
7123
7124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 xorg_cv_cc_flag_unused_command_line_argument=yes
7140 else
7141 xorg_cv_cc_flag_unused_command_line_argument=no
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7148 CFLAGS="$xorg_testset_save_CFLAGS"
7149 fi
7150
7151 found="no"
7152
7153 if test $found = "no" ; then
7154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156 fi
7157
7158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160 fi
7161
7162 CFLAGS="$CFLAGS -Werror=return-type"
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7165 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7166 cacheid=xorg_cv_cc_flag__Werror_return_type
7167 if eval \${$cacheid+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 eval $cacheid=yes
7183 else
7184 eval $cacheid=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 fi
7189
7190
7191 CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193 eval supported=\$$cacheid
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195 $as_echo "$supported" >&6; }
7196 if test "$supported" = "yes" ; then
7197 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7198 found="yes"
7199 fi
7200 fi
7201
7202 if test $found = "no" ; then
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 fi
7206
7207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7209 fi
7210
7211 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7214 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7215 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7216 if eval \${$cacheid+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 int i;
7222 int
7223 main ()
7224 {
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"; then :
7231 eval $cacheid=yes
7232 else
7233 eval $cacheid=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 fi
7238
7239
7240 CFLAGS="$xorg_testset_save_CFLAGS"
7241
7242 eval supported=\$$cacheid
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7244 $as_echo "$supported" >&6; }
7245 if test "$supported" = "yes" ; then
7246 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7247 found="yes"
7248 fi
7249 fi
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 xorg_testset_save_CFLAGS="$CFLAGS"
7266
7267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 xorg_cv_cc_flag_unknown_warning_option=yes
7280 else
7281 xorg_cv_cc_flag_unknown_warning_option=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7289 fi
7290
7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 fi
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 int i;
7304 _ACEOF
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unused_command_line_argument=yes
7307 else
7308 xorg_cv_cc_flag_unused_command_line_argument=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 found="no"
7319
7320 if test $found = "no" ; then
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 fi
7324
7325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7327 fi
7328
7329 CFLAGS="$CFLAGS -Werror=trigraphs"
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7332 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7333 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7334 if eval \${$cacheid+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 int i;
7340 int
7341 main ()
7342 {
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 eval $cacheid=yes
7350 else
7351 eval $cacheid=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 fi
7356
7357
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7359
7360 eval supported=\$$cacheid
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7362 $as_echo "$supported" >&6; }
7363 if test "$supported" = "yes" ; then
7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7365 found="yes"
7366 fi
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 xorg_testset_save_CFLAGS="$CFLAGS"
7384
7385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 int i;
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"; then :
7397 xorg_cv_cc_flag_unknown_warning_option=yes
7398 else
7399 xorg_cv_cc_flag_unknown_warning_option=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7406 CFLAGS="$xorg_testset_save_CFLAGS"
7407 fi
7408
7409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 fi
7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 xorg_cv_cc_flag_unused_command_line_argument=yes
7425 else
7426 xorg_cv_cc_flag_unused_command_line_argument=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 found="no"
7437
7438 if test $found = "no" ; then
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 fi
7442
7443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445 fi
7446
7447 CFLAGS="$CFLAGS -Werror=array-bounds"
7448
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7450 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7451 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7452 if eval \${$cacheid+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 int i;
7458 int
7459 main ()
7460 {
7461
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467 eval $cacheid=yes
7468 else
7469 eval $cacheid=no
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 fi
7474
7475
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478 eval supported=\$$cacheid
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480 $as_echo "$supported" >&6; }
7481 if test "$supported" = "yes" ; then
7482 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7483 found="yes"
7484 fi
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 xorg_testset_save_CFLAGS="$CFLAGS"
7502
7503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 int i;
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 xorg_cv_cc_flag_unknown_warning_option=yes
7516 else
7517 xorg_cv_cc_flag_unknown_warning_option=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7524 CFLAGS="$xorg_testset_save_CFLAGS"
7525 fi
7526
7527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530 fi
7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 int i;
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 xorg_cv_cc_flag_unused_command_line_argument=yes
7543 else
7544 xorg_cv_cc_flag_unused_command_line_argument=no
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7551 CFLAGS="$xorg_testset_save_CFLAGS"
7552 fi
7553
7554 found="no"
7555
7556 if test $found = "no" ; then
7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559 fi
7560
7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563 fi
7564
7565 CFLAGS="$CFLAGS -Werror=write-strings"
7566
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7568 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7569 cacheid=xorg_cv_cc_flag__Werror_write_strings
7570 if eval \${$cacheid+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 int i;
7576 int
7577 main ()
7578 {
7579
7580 ;
7581 return 0;
7582 }
7583 _ACEOF
7584 if ac_fn_c_try_link "$LINENO"; then :
7585 eval $cacheid=yes
7586 else
7587 eval $cacheid=no
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7591 fi
7592
7593
7594 CFLAGS="$xorg_testset_save_CFLAGS"
7595
7596 eval supported=\$$cacheid
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7598 $as_echo "$supported" >&6; }
7599 if test "$supported" = "yes" ; then
7600 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7601 found="yes"
7602 fi
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 xorg_testset_save_CFLAGS="$CFLAGS"
7620
7621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 int i;
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"; then :
7633 xorg_cv_cc_flag_unknown_warning_option=yes
7634 else
7635 xorg_cv_cc_flag_unknown_warning_option=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7643 fi
7644
7645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648 fi
7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 xorg_cv_cc_flag_unused_command_line_argument=yes
7661 else
7662 xorg_cv_cc_flag_unused_command_line_argument=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7669 CFLAGS="$xorg_testset_save_CFLAGS"
7670 fi
7671
7672 found="no"
7673
7674 if test $found = "no" ; then
7675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7677 fi
7678
7679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7681 fi
7682
7683 CFLAGS="$CFLAGS -Werror=address"
7684
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7686 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7687 cacheid=xorg_cv_cc_flag__Werror_address
7688 if eval \${$cacheid+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 int i;
7694 int
7695 main ()
7696 {
7697
7698 ;
7699 return 0;
7700 }
7701 _ACEOF
7702 if ac_fn_c_try_link "$LINENO"; then :
7703 eval $cacheid=yes
7704 else
7705 eval $cacheid=no
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 fi
7710
7711
7712 CFLAGS="$xorg_testset_save_CFLAGS"
7713
7714 eval supported=\$$cacheid
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7716 $as_echo "$supported" >&6; }
7717 if test "$supported" = "yes" ; then
7718 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7719 found="yes"
7720 fi
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737 xorg_testset_save_CFLAGS="$CFLAGS"
7738
7739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 int i;
7749 _ACEOF
7750 if ac_fn_c_try_compile "$LINENO"; then :
7751 xorg_cv_cc_flag_unknown_warning_option=yes
7752 else
7753 xorg_cv_cc_flag_unknown_warning_option=no
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7760 CFLAGS="$xorg_testset_save_CFLAGS"
7761 fi
7762
7763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 fi
7767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 xorg_cv_cc_flag_unused_command_line_argument=yes
7779 else
7780 xorg_cv_cc_flag_unused_command_line_argument=no
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7787 CFLAGS="$xorg_testset_save_CFLAGS"
7788 fi
7789
7790 found="no"
7791
7792 if test $found = "no" ; then
7793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799 fi
7800
7801 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7804 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7805 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
7806 if eval \${$cacheid+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 int i;
7812 int
7813 main ()
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"; then :
7821 eval $cacheid=yes
7822 else
7823 eval $cacheid=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 fi
7828
7829
7830 CFLAGS="$xorg_testset_save_CFLAGS"
7831
7832 eval supported=\$$cacheid
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7834 $as_echo "$supported" >&6; }
7835 if test "$supported" = "yes" ; then
7836 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7837 found="yes"
7838 fi
7839 fi
7840
7841 if test $found = "no" ; then
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 fi
7845
7846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 fi
7849
7850 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7853 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7854 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
7855 if eval \${$cacheid+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 int i;
7861 int
7862 main ()
7863 {
7864
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 eval $cacheid=yes
7871 else
7872 eval $cacheid=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 fi
7877
7878
7879 CFLAGS="$xorg_testset_save_CFLAGS"
7880
7881 eval supported=\$$cacheid
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7883 $as_echo "$supported" >&6; }
7884 if test "$supported" = "yes" ; then
7885 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7886 found="yes"
7887 fi
7888 fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904 xorg_testset_save_CFLAGS="$CFLAGS"
7905
7906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 _ACEOF
7917 if ac_fn_c_try_compile "$LINENO"; then :
7918 xorg_cv_cc_flag_unknown_warning_option=yes
7919 else
7920 xorg_cv_cc_flag_unknown_warning_option=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7927 CFLAGS="$xorg_testset_save_CFLAGS"
7928 fi
7929
7930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933 fi
7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 int i;
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 xorg_cv_cc_flag_unused_command_line_argument=yes
7946 else
7947 xorg_cv_cc_flag_unused_command_line_argument=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 found="no"
7958
7959 if test $found = "no" ; then
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963
7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 fi
7967
7968 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7971 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7972 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
7973 if eval \${$cacheid+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 int i;
7979 int
7980 main ()
7981 {
7982
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 eval $cacheid=yes
7989 else
7990 eval $cacheid=no
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 fi
7995
7996
7997 CFLAGS="$xorg_testset_save_CFLAGS"
7998
7999 eval supported=\$$cacheid
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001 $as_echo "$supported" >&6; }
8002 if test "$supported" = "yes" ; then
8003 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8004 found="yes"
8005 fi
8006 fi
8007
8008 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8009 else
8010 { $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
8011 $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;}
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 xorg_testset_save_CFLAGS="$CFLAGS"
8026
8027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 xorg_cv_cc_flag_unknown_warning_option=yes
8040 else
8041 xorg_cv_cc_flag_unknown_warning_option=no
8042 fi
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8048 CFLAGS="$xorg_testset_save_CFLAGS"
8049 fi
8050
8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054 fi
8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 int i;
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 xorg_cv_cc_flag_unused_command_line_argument=yes
8067 else
8068 xorg_cv_cc_flag_unused_command_line_argument=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8075 CFLAGS="$xorg_testset_save_CFLAGS"
8076 fi
8077
8078 found="no"
8079
8080 if test $found = "no" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084
8085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087 fi
8088
8089 CFLAGS="$CFLAGS -Wimplicit"
8090
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8092 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8093 cacheid=xorg_cv_cc_flag__Wimplicit
8094 if eval \${$cacheid+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 int i;
8100 int
8101 main ()
8102 {
8103
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 eval $cacheid=yes
8110 else
8111 eval $cacheid=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 fi
8116
8117
8118 CFLAGS="$xorg_testset_save_CFLAGS"
8119
8120 eval supported=\$$cacheid
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8122 $as_echo "$supported" >&6; }
8123 if test "$supported" = "yes" ; then
8124 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8125 found="yes"
8126 fi
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143 xorg_testset_save_CFLAGS="$CFLAGS"
8144
8145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 _ACEOF
8156 if ac_fn_c_try_compile "$LINENO"; then :
8157 xorg_cv_cc_flag_unknown_warning_option=yes
8158 else
8159 xorg_cv_cc_flag_unknown_warning_option=no
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8166 CFLAGS="$xorg_testset_save_CFLAGS"
8167 fi
8168
8169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172 fi
8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 int i;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184 xorg_cv_cc_flag_unused_command_line_argument=yes
8185 else
8186 xorg_cv_cc_flag_unused_command_line_argument=no
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8193 CFLAGS="$xorg_testset_save_CFLAGS"
8194 fi
8195
8196 found="no"
8197
8198 if test $found = "no" ; then
8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 fi
8202
8203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205 fi
8206
8207 CFLAGS="$CFLAGS -Wnonnull"
8208
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8210 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8211 cacheid=xorg_cv_cc_flag__Wnonnull
8212 if eval \${$cacheid+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 int i;
8218 int
8219 main ()
8220 {
8221
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 eval $cacheid=yes
8228 else
8229 eval $cacheid=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 fi
8234
8235
8236 CFLAGS="$xorg_testset_save_CFLAGS"
8237
8238 eval supported=\$$cacheid
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8240 $as_echo "$supported" >&6; }
8241 if test "$supported" = "yes" ; then
8242 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8243 found="yes"
8244 fi
8245 fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261 xorg_testset_save_CFLAGS="$CFLAGS"
8262
8263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275 xorg_cv_cc_flag_unknown_warning_option=yes
8276 else
8277 xorg_cv_cc_flag_unknown_warning_option=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 fi
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 int i;
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 xorg_cv_cc_flag_unused_command_line_argument=yes
8303 else
8304 xorg_cv_cc_flag_unused_command_line_argument=no
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8311 CFLAGS="$xorg_testset_save_CFLAGS"
8312 fi
8313
8314 found="no"
8315
8316 if test $found = "no" ; then
8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319 fi
8320
8321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323 fi
8324
8325 CFLAGS="$CFLAGS -Winit-self"
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8328 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8329 cacheid=xorg_cv_cc_flag__Winit_self
8330 if eval \${$cacheid+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 int i;
8336 int
8337 main ()
8338 {
8339
8340 ;
8341 return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345 eval $cacheid=yes
8346 else
8347 eval $cacheid=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8351 fi
8352
8353
8354 CFLAGS="$xorg_testset_save_CFLAGS"
8355
8356 eval supported=\$$cacheid
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8358 $as_echo "$supported" >&6; }
8359 if test "$supported" = "yes" ; then
8360 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8361 found="yes"
8362 fi
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379 xorg_testset_save_CFLAGS="$CFLAGS"
8380
8381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 int i;
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"; then :
8393 xorg_cv_cc_flag_unknown_warning_option=yes
8394 else
8395 xorg_cv_cc_flag_unknown_warning_option=no
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8402 CFLAGS="$xorg_testset_save_CFLAGS"
8403 fi
8404
8405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408 fi
8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417 int i;
8418 _ACEOF
8419 if ac_fn_c_try_compile "$LINENO"; then :
8420 xorg_cv_cc_flag_unused_command_line_argument=yes
8421 else
8422 xorg_cv_cc_flag_unused_command_line_argument=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8429 CFLAGS="$xorg_testset_save_CFLAGS"
8430 fi
8431
8432 found="no"
8433
8434 if test $found = "no" ; then
8435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8437 fi
8438
8439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8441 fi
8442
8443 CFLAGS="$CFLAGS -Wmain"
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8446 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8447 cacheid=xorg_cv_cc_flag__Wmain
8448 if eval \${$cacheid+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 int
8455 main ()
8456 {
8457
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_link "$LINENO"; then :
8463 eval $cacheid=yes
8464 else
8465 eval $cacheid=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 fi
8470
8471
8472 CFLAGS="$xorg_testset_save_CFLAGS"
8473
8474 eval supported=\$$cacheid
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8476 $as_echo "$supported" >&6; }
8477 if test "$supported" = "yes" ; then
8478 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8479 found="yes"
8480 fi
8481 fi
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497 xorg_testset_save_CFLAGS="$CFLAGS"
8498
8499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 int i;
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 xorg_cv_cc_flag_unknown_warning_option=yes
8512 else
8513 xorg_cv_cc_flag_unknown_warning_option=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8520 CFLAGS="$xorg_testset_save_CFLAGS"
8521 fi
8522
8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 fi
8527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"; then :
8538 xorg_cv_cc_flag_unused_command_line_argument=yes
8539 else
8540 xorg_cv_cc_flag_unused_command_line_argument=no
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8547 CFLAGS="$xorg_testset_save_CFLAGS"
8548 fi
8549
8550 found="no"
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 -Wmissing-braces"
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8564 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8565 cacheid=xorg_cv_cc_flag__Wmissing_braces
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 -Wmissing-braces"
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 -Wsequence-point"
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8682 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8683 cacheid=xorg_cv_cc_flag__Wsequence_point
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 -Wsequence-point"
8715 found="yes"
8716 fi
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 xorg_testset_save_CFLAGS="$CFLAGS"
8734
8735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 int i;
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 xorg_cv_cc_flag_unknown_warning_option=yes
8748 else
8749 xorg_cv_cc_flag_unknown_warning_option=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 xorg_cv_cc_flag_unused_command_line_argument=yes
8775 else
8776 xorg_cv_cc_flag_unused_command_line_argument=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783 CFLAGS="$xorg_testset_save_CFLAGS"
8784 fi
8785
8786 found="no"
8787
8788 if test $found = "no" ; then
8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 fi
8796
8797 CFLAGS="$CFLAGS -Wreturn-type"
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8800 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8801 cacheid=xorg_cv_cc_flag__Wreturn_type
8802 if eval \${$cacheid+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main ()
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817 eval $cacheid=yes
8818 else
8819 eval $cacheid=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 fi
8824
8825
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828 eval supported=\$$cacheid
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830 $as_echo "$supported" >&6; }
8831 if test "$supported" = "yes" ; then
8832 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8833 found="yes"
8834 fi
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851 xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 int i;
8863 _ACEOF
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 xorg_cv_cc_flag_unknown_warning_option=yes
8866 else
8867 xorg_cv_cc_flag_unknown_warning_option=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875 fi
8876
8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 xorg_cv_cc_flag_unused_command_line_argument=yes
8893 else
8894 xorg_cv_cc_flag_unused_command_line_argument=no
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902 fi
8903
8904 found="no"
8905
8906 if test $found = "no" ; then
8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 fi
8914
8915 CFLAGS="$CFLAGS -Wtrigraphs"
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8918 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8919 cacheid=xorg_cv_cc_flag__Wtrigraphs
8920 if eval \${$cacheid+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 eval $cacheid=yes
8936 else
8937 eval $cacheid=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 fi
8942
8943
8944 CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946 eval supported=\$$cacheid
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948 $as_echo "$supported" >&6; }
8949 if test "$supported" = "yes" ; then
8950 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8951 found="yes"
8952 fi
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969 xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 int i;
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 xorg_cv_cc_flag_unknown_warning_option=yes
8984 else
8985 xorg_cv_cc_flag_unknown_warning_option=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 xorg_cv_cc_flag_unused_command_line_argument=yes
9011 else
9012 xorg_cv_cc_flag_unused_command_line_argument=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 found="no"
9023
9024 if test $found = "no" ; then
9025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 fi
9028
9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 fi
9032
9033 CFLAGS="$CFLAGS -Warray-bounds"
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9036 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9037 cacheid=xorg_cv_cc_flag__Warray_bounds
9038 if eval \${$cacheid+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 int i;
9044 int
9045 main ()
9046 {
9047
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 eval $cacheid=yes
9054 else
9055 eval $cacheid=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 $as_echo "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 xorg_cv_cc_flag_unknown_warning_option=yes
9102 else
9103 xorg_cv_cc_flag_unknown_warning_option=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110 CFLAGS="$xorg_testset_save_CFLAGS"
9111 fi
9112
9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 fi
9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128 xorg_cv_cc_flag_unused_command_line_argument=yes
9129 else
9130 xorg_cv_cc_flag_unused_command_line_argument=no
9131 fi
9132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137 CFLAGS="$xorg_testset_save_CFLAGS"
9138 fi
9139
9140 found="no"
9141
9142 if test $found = "no" ; then
9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145 fi
9146
9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149 fi
9150
9151 CFLAGS="$CFLAGS -Wwrite-strings"
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9154 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9155 cacheid=xorg_cv_cc_flag__Wwrite_strings
9156 if eval \${$cacheid+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 int i;
9162 int
9163 main ()
9164 {
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 eval $cacheid=yes
9172 else
9173 eval $cacheid=no
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 fi
9178
9179
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182 eval supported=\$$cacheid
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184 $as_echo "$supported" >&6; }
9185 if test "$supported" = "yes" ; then
9186 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9187 found="yes"
9188 fi
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 _ACEOF
9218 if ac_fn_c_try_compile "$LINENO"; then :
9219 xorg_cv_cc_flag_unknown_warning_option=yes
9220 else
9221 xorg_cv_cc_flag_unknown_warning_option=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int i;
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246 xorg_cv_cc_flag_unused_command_line_argument=yes
9247 else
9248 xorg_cv_cc_flag_unused_command_line_argument=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 found="no"
9259
9260 if test $found = "no" ; then
9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263 fi
9264
9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267 fi
9268
9269 CFLAGS="$CFLAGS -Waddress"
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9272 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9273 cacheid=xorg_cv_cc_flag__Waddress
9274 if eval \${$cacheid+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 int i;
9280 int
9281 main ()
9282 {
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 eval $cacheid=yes
9290 else
9291 eval $cacheid=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi
9296
9297
9298 CFLAGS="$xorg_testset_save_CFLAGS"
9299
9300 eval supported=\$$cacheid
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9302 $as_echo "$supported" >&6; }
9303 if test "$supported" = "yes" ; then
9304 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9305 found="yes"
9306 fi
9307 fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 xorg_testset_save_CFLAGS="$CFLAGS"
9324
9325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 int i;
9335 _ACEOF
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337 xorg_cv_cc_flag_unknown_warning_option=yes
9338 else
9339 xorg_cv_cc_flag_unknown_warning_option=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9346 CFLAGS="$xorg_testset_save_CFLAGS"
9347 fi
9348
9349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 xorg_cv_cc_flag_unused_command_line_argument=yes
9365 else
9366 xorg_cv_cc_flag_unused_command_line_argument=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373 CFLAGS="$xorg_testset_save_CFLAGS"
9374 fi
9375
9376 found="no"
9377
9378 if test $found = "no" ; then
9379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381 fi
9382
9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 fi
9386
9387 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9390 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9391 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9392 if eval \${$cacheid+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 int
9399 main ()
9400 {
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 eval $cacheid=yes
9408 else
9409 eval $cacheid=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 fi
9414
9415
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418 eval supported=\$$cacheid
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420 $as_echo "$supported" >&6; }
9421 if test "$supported" = "yes" ; then
9422 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9423 found="yes"
9424 fi
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441 xorg_testset_save_CFLAGS="$CFLAGS"
9442
9443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 _ACEOF
9454 if ac_fn_c_try_compile "$LINENO"; then :
9455 xorg_cv_cc_flag_unknown_warning_option=yes
9456 else
9457 xorg_cv_cc_flag_unknown_warning_option=no
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465 fi
9466
9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"; then :
9482 xorg_cv_cc_flag_unused_command_line_argument=yes
9483 else
9484 xorg_cv_cc_flag_unused_command_line_argument=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491 CFLAGS="$xorg_testset_save_CFLAGS"
9492 fi
9493
9494 found="no"
9495
9496 if test $found = "no" ; then
9497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499 fi
9500
9501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503 fi
9504
9505 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9506
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9508 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9509 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9510 if eval \${$cacheid+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int i;
9516 int
9517 main ()
9518 {
9519
9520 ;
9521 return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 eval $cacheid=yes
9526 else
9527 eval $cacheid=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 fi
9532
9533
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536 eval supported=\$$cacheid
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538 $as_echo "$supported" >&6; }
9539 if test "$supported" = "yes" ; then
9540 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9541 found="yes"
9542 fi
9543 fi
9544
9545
9546 fi
9547
9548
9549
9550
9551
9552
9553
9554 CWARNFLAGS="$BASE_CFLAGS"
9555 if test "x$GCC" = xyes ; then
9556 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9557 fi
9558
9559
9560
9561
9562
9563
9564
9565
9566 # Check whether --enable-strict-compilation was given.
9567 if test "${enable_strict_compilation+set}" = set; then :
9568 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9569 else
9570 STRICT_COMPILE=no
9571 fi
9572
9573
9574
9575
9576
9577
9578 STRICT_CFLAGS=""
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592 xorg_testset_save_CFLAGS="$CFLAGS"
9593
9594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 int i;
9604 _ACEOF
9605 if ac_fn_c_try_compile "$LINENO"; then :
9606 xorg_cv_cc_flag_unknown_warning_option=yes
9607 else
9608 xorg_cv_cc_flag_unknown_warning_option=no
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9615 CFLAGS="$xorg_testset_save_CFLAGS"
9616 fi
9617
9618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621 fi
9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int i;
9631 _ACEOF
9632 if ac_fn_c_try_compile "$LINENO"; then :
9633 xorg_cv_cc_flag_unused_command_line_argument=yes
9634 else
9635 xorg_cv_cc_flag_unused_command_line_argument=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9643 fi
9644
9645 found="no"
9646
9647 if test $found = "no" ; then
9648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 fi
9651
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 fi
9655
9656 CFLAGS="$CFLAGS -pedantic"
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9659 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9660 cacheid=xorg_cv_cc_flag__pedantic
9661 if eval \${$cacheid+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 int
9668 main ()
9669 {
9670
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 eval $cacheid=yes
9677 else
9678 eval $cacheid=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 fi
9683
9684
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686
9687 eval supported=\$$cacheid
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9689 $as_echo "$supported" >&6; }
9690 if test "$supported" = "yes" ; then
9691 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9692 found="yes"
9693 fi
9694 fi
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710 xorg_testset_save_CFLAGS="$CFLAGS"
9711
9712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9715 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9716 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 int i;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 xorg_cv_cc_flag_unknown_warning_option=yes
9725 else
9726 xorg_cv_cc_flag_unknown_warning_option=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9731 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9733 CFLAGS="$xorg_testset_save_CFLAGS"
9734 fi
9735
9736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739 fi
9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9743 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 int i;
9749 _ACEOF
9750 if ac_fn_c_try_compile "$LINENO"; then :
9751 xorg_cv_cc_flag_unused_command_line_argument=yes
9752 else
9753 xorg_cv_cc_flag_unused_command_line_argument=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9758 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9761 fi
9762
9763 found="no"
9764
9765 if test $found = "no" ; then
9766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768 fi
9769
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772 fi
9773
9774 CFLAGS="$CFLAGS -Werror"
9775
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9777 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9778 cacheid=xorg_cv_cc_flag__Werror
9779 if eval \${$cacheid+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 int i;
9785 int
9786 main ()
9787 {
9788
9789 ;
9790 return 0;
9791 }
9792 _ACEOF
9793 if ac_fn_c_try_link "$LINENO"; then :
9794 eval $cacheid=yes
9795 else
9796 eval $cacheid=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 fi
9801
9802
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9804
9805 eval supported=\$$cacheid
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9807 $as_echo "$supported" >&6; }
9808 if test "$supported" = "yes" ; then
9809 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9810 found="yes"
9811 fi
9812 fi
9813
9814 if test $found = "no" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818
9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821 fi
9822
9823 CFLAGS="$CFLAGS -errwarn"
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9826 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9827 cacheid=xorg_cv_cc_flag__errwarn
9828 if eval \${$cacheid+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 int
9835 main ()
9836 {
9837
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 eval $cacheid=yes
9844 else
9845 eval $cacheid=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 fi
9850
9851
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854 eval supported=\$$cacheid
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856 $as_echo "$supported" >&6; }
9857 if test "$supported" = "yes" ; then
9858 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9859 found="yes"
9860 fi
9861 fi
9862
9863
9864
9865 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9866 # activate it with -Werror, so we add it here explicitly.
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880 xorg_testset_save_CFLAGS="$CFLAGS"
9881
9882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int i;
9892 _ACEOF
9893 if ac_fn_c_try_compile "$LINENO"; then :
9894 xorg_cv_cc_flag_unknown_warning_option=yes
9895 else
9896 xorg_cv_cc_flag_unknown_warning_option=no
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9903 CFLAGS="$xorg_testset_save_CFLAGS"
9904 fi
9905
9906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 fi
9910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918 int i;
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 xorg_cv_cc_flag_unused_command_line_argument=yes
9922 else
9923 xorg_cv_cc_flag_unused_command_line_argument=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931 fi
9932
9933 found="no"
9934
9935 if test $found = "no" ; then
9936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9938 fi
9939
9940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942 fi
9943
9944 CFLAGS="$CFLAGS -Werror=attributes"
9945
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9947 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9948 cacheid=xorg_cv_cc_flag__Werror_attributes
9949 if eval \${$cacheid+:} 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 int
9956 main ()
9957 {
9958
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 eval $cacheid=yes
9965 else
9966 eval $cacheid=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 fi
9971
9972
9973 CFLAGS="$xorg_testset_save_CFLAGS"
9974
9975 eval supported=\$$cacheid
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9977 $as_echo "$supported" >&6; }
9978 if test "$supported" = "yes" ; then
9979 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9980 found="yes"
9981 fi
9982 fi
9983
9984
9985
9986 if test "x$STRICT_COMPILE" = "xyes"; then
9987 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9988 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9989 fi
9990
9991
9992
9993
9994
9995
9996 cat >>confdefs.h <<_ACEOF
9997 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9998 _ACEOF
9999
10000 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10001 if test "x$PVM" = "x"; then
10002 PVM="0"
10003 fi
10004
10005 cat >>confdefs.h <<_ACEOF
10006 #define PACKAGE_VERSION_MINOR $PVM
10007 _ACEOF
10008
10009 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10010 if test "x$PVP" = "x"; then
10011 PVP="0"
10012 fi
10013
10014 cat >>confdefs.h <<_ACEOF
10015 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10016 _ACEOF
10017
10018
10019
10020 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10021 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10022 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10023 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10024
10025
10026
10027
10028 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10029 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10030 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10031 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10032 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10033
10034
10035
10036
10037
10038
10039 if test x$APP_MAN_SUFFIX = x ; then
10040 APP_MAN_SUFFIX=1
10041 fi
10042 if test x$APP_MAN_DIR = x ; then
10043 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10044 fi
10045
10046 if test x$LIB_MAN_SUFFIX = x ; then
10047 LIB_MAN_SUFFIX=3
10048 fi
10049 if test x$LIB_MAN_DIR = x ; then
10050 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10051 fi
10052
10053 if test x$FILE_MAN_SUFFIX = x ; then
10054 case $host_os in
10055 solaris*) FILE_MAN_SUFFIX=4 ;;
10056 *) FILE_MAN_SUFFIX=5 ;;
10057 esac
10058 fi
10059 if test x$FILE_MAN_DIR = x ; then
10060 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10061 fi
10062
10063 if test x$MISC_MAN_SUFFIX = x ; then
10064 case $host_os in
10065 solaris*) MISC_MAN_SUFFIX=5 ;;
10066 *) MISC_MAN_SUFFIX=7 ;;
10067 esac
10068 fi
10069 if test x$MISC_MAN_DIR = x ; then
10070 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10071 fi
10072
10073 if test x$DRIVER_MAN_SUFFIX = x ; then
10074 case $host_os in
10075 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10076 *) DRIVER_MAN_SUFFIX=4 ;;
10077 esac
10078 fi
10079 if test x$DRIVER_MAN_DIR = x ; then
10080 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10081 fi
10082
10083 if test x$ADMIN_MAN_SUFFIX = x ; then
10084 case $host_os in
10085 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10086 *) ADMIN_MAN_SUFFIX=8 ;;
10087 esac
10088 fi
10089 if test x$ADMIN_MAN_DIR = x ; then
10090 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 XORG_MAN_PAGE="X Version 11"
10108
10109 MAN_SUBSTS="\
10110 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10111 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10112 -e 's|__xservername__|Xorg|g' \
10113 -e 's|__xconfigfile__|xorg.conf|g' \
10114 -e 's|__projectroot__|\$(prefix)|g' \
10115 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10116 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10117 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10118 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10119 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10120 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10121 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10122
10123
10124
10125 # Check whether --enable-silent-rules was given.
10126 if test "${enable_silent_rules+set}" = set; then :
10127 enableval=$enable_silent_rules;
10128 fi
10129
10130 case $enable_silent_rules in # (((
10131 yes) AM_DEFAULT_VERBOSITY=0;;
10132 no) AM_DEFAULT_VERBOSITY=1;;
10133 *) AM_DEFAULT_VERBOSITY=0;;
10134 esac
10135 am_make=${MAKE-make}
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10137 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10138 if ${am_cv_make_support_nested_variables+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 if $as_echo 'TRUE=$(BAR$(V))
10142 BAR0=false
10143 BAR1=true
10144 V=1
10145 am__doit:
10146 @$(TRUE)
10147 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10148 am_cv_make_support_nested_variables=yes
10149 else
10150 am_cv_make_support_nested_variables=no
10151 fi
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10154 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10155 if test $am_cv_make_support_nested_variables = yes; then
10156 AM_V='$(V)'
10157 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10158 else
10159 AM_V=$AM_DEFAULT_VERBOSITY
10160 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10161 fi
10162 AM_BACKSLASH='\'
10163
10164
10165
10166
10167 ac_config_headers="$ac_config_headers config.h"
10168
10169 ac_aux_dir=
10170 for ac_dir in . "$srcdir"/.; do
10171 if test -f "$ac_dir/install-sh"; then
10172 ac_aux_dir=$ac_dir
10173 ac_install_sh="$ac_aux_dir/install-sh -c"
10174 break
10175 elif test -f "$ac_dir/install.sh"; then
10176 ac_aux_dir=$ac_dir
10177 ac_install_sh="$ac_aux_dir/install.sh -c"
10178 break
10179 elif test -f "$ac_dir/shtool"; then
10180 ac_aux_dir=$ac_dir
10181 ac_install_sh="$ac_aux_dir/shtool install -c"
10182 break
10183 fi
10184 done
10185 if test -z "$ac_aux_dir"; then
10186 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10187 fi
10188
10189 # These three variables are undocumented and unsupported,
10190 # and are intended to be withdrawn in a future Autoconf release.
10191 # They can cause serious problems if a builder's source tree is in a directory
10192 # whose full name contains unusual characters.
10193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10196
10197
10198
10199 # Initialize Automake
10200 am__api_version='1.14'
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10203 $as_echo_n "checking whether build environment is sane... " >&6; }
10204 # Reject unsafe characters in $srcdir or the absolute working directory
10205 # name. Accept space and tab only in the latter.
10206 am_lf='
10207 '
10208 case `pwd` in
10209 *[\\\"\#\$\&\'\`$am_lf]*)
10210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10211 esac
10212 case $srcdir in
10213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10214 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10215 esac
10216
10217 # Do 'set' in a subshell so we don't clobber the current shell's
10218 # arguments. Must try -L first in case configure is actually a
10219 # symlink; some systems play weird games with the mod time of symlinks
10220 # (eg FreeBSD returns the mod time of the symlink's containing
10221 # directory).
10222 if (
10223 am_has_slept=no
10224 for am_try in 1 2; do
10225 echo "timestamp, slept: $am_has_slept" > conftest.file
10226 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10227 if test "$*" = "X"; then
10228 # -L didn't work.
10229 set X `ls -t "$srcdir/configure" conftest.file`
10230 fi
10231 if test "$*" != "X $srcdir/configure conftest.file" \
10232 && test "$*" != "X conftest.file $srcdir/configure"; then
10233
10234 # If neither matched, then we have a broken ls. This can happen
10235 # if, for instance, CONFIG_SHELL is bash and it inherits a
10236 # broken ls alias from the environment. This has actually
10237 # happened. Such a system could not be considered "sane".
10238 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10239 alias in your environment" "$LINENO" 5
10240 fi
10241 if test "$2" = conftest.file || test $am_try -eq 2; then
10242 break
10243 fi
10244 # Just in case.
10245 sleep 1
10246 am_has_slept=yes
10247 done
10248 test "$2" = conftest.file
10249 )
10250 then
10251 # Ok.
10252 :
10253 else
10254 as_fn_error $? "newly created file is older than distributed files!
10255 Check your system clock" "$LINENO" 5
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10258 $as_echo "yes" >&6; }
10259 # If we didn't sleep, we still need to ensure time stamps of config.status and
10260 # generated files are strictly newer.
10261 am_sleep_pid=
10262 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10263 ( sleep 1 ) &
10264 am_sleep_pid=$!
10265 fi
10266
10267 rm -f conftest.file
10268
10269 test "$program_prefix" != NONE &&
10270 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10271 # Use a double $ so make ignores it.
10272 test "$program_suffix" != NONE &&
10273 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10274 # Double any \ or $.
10275 # By default was `s,x,x', remove it if useless.
10276 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10277 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10278
10279 if test x"${MISSING+set}" != xset; then
10280 case $am_aux_dir in
10281 *\ * | *\ *)
10282 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10283 *)
10284 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10285 esac
10286 fi
10287 # Use eval to expand $SHELL
10288 if eval "$MISSING --is-lightweight"; then
10289 am_missing_run="$MISSING "
10290 else
10291 am_missing_run=
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10293 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10294 fi
10295
10296 if test x"${install_sh}" != xset; then
10297 case $am_aux_dir in
10298 *\ * | *\ *)
10299 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10300 *)
10301 install_sh="\${SHELL} $am_aux_dir/install-sh"
10302 esac
10303 fi
10304
10305 # Installed binaries are usually stripped using 'strip' when the user
10306 # run "make install-strip". However 'strip' might not be the right
10307 # tool to use in cross-compilation environments, therefore Automake
10308 # will honor the 'STRIP' environment variable to overrule this program.
10309 if test "$cross_compiling" != no; then
10310 if test -n "$ac_tool_prefix"; then
10311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10312 set dummy ${ac_tool_prefix}strip; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_prog_STRIP+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test -n "$STRIP"; then
10319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332 done
10333 done
10334 IFS=$as_save_IFS
10335
10336 fi
10337 fi
10338 STRIP=$ac_cv_prog_STRIP
10339 if test -n "$STRIP"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10341 $as_echo "$STRIP" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10345 fi
10346
10347
10348 fi
10349 if test -z "$ac_cv_prog_STRIP"; then
10350 ac_ct_STRIP=$STRIP
10351 # Extract the first word of "strip", so it can be a program name with args.
10352 set dummy strip; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 if test -n "$ac_ct_STRIP"; then
10359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10363 do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_prog_ac_ct_STRIP="strip"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372 done
10373 done
10374 IFS=$as_save_IFS
10375
10376 fi
10377 fi
10378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10379 if test -n "$ac_ct_STRIP"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10381 $as_echo "$ac_ct_STRIP" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386
10387 if test "x$ac_ct_STRIP" = x; then
10388 STRIP=":"
10389 else
10390 case $cross_compiling:$ac_tool_warned in
10391 yes:)
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10394 ac_tool_warned=yes ;;
10395 esac
10396 STRIP=$ac_ct_STRIP
10397 fi
10398 else
10399 STRIP="$ac_cv_prog_STRIP"
10400 fi
10401
10402 fi
10403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10404
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10406 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10407 if test -z "$MKDIR_P"; then
10408 if ${ac_cv_path_mkdir+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10413 do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_prog in mkdir gmkdir; do
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10419 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10420 'mkdir (GNU coreutils) '* | \
10421 'mkdir (coreutils) '* | \
10422 'mkdir (fileutils) '4.1*)
10423 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10424 break 3;;
10425 esac
10426 done
10427 done
10428 done
10429 IFS=$as_save_IFS
10430
10431 fi
10432
10433 test -d ./--version && rmdir ./--version
10434 if test "${ac_cv_path_mkdir+set}" = set; then
10435 MKDIR_P="$ac_cv_path_mkdir -p"
10436 else
10437 # As a last resort, use the slow shell script. Don't cache a
10438 # value for MKDIR_P within a source directory, because that will
10439 # break other packages using the cache if that directory is
10440 # removed, or if the value is a relative name.
10441 MKDIR_P="$ac_install_sh -d"
10442 fi
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10445 $as_echo "$MKDIR_P" >&6; }
10446
10447 for ac_prog in gawk mawk nawk awk
10448 do
10449 # Extract the first word of "$ac_prog", so it can be a program name with args.
10450 set dummy $ac_prog; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_prog_AWK+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 if test -n "$AWK"; then
10457 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10458 else
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10461 do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_AWK="$ac_prog"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10469 fi
10470 done
10471 done
10472 IFS=$as_save_IFS
10473
10474 fi
10475 fi
10476 AWK=$ac_cv_prog_AWK
10477 if test -n "$AWK"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10479 $as_echo "$AWK" >&6; }
10480 else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10483 fi
10484
10485
10486 test -n "$AWK" && break
10487 done
10488
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10490 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10491 set x ${MAKE-make}
10492 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10493 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 cat >conftest.make <<\_ACEOF
10497 SHELL = /bin/sh
10498 all:
10499 @echo '@@@%%%=$(MAKE)=@@@%%%'
10500 _ACEOF
10501 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10502 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10503 *@@@%%%=?*=@@@%%%*)
10504 eval ac_cv_prog_make_${ac_make}_set=yes;;
10505 *)
10506 eval ac_cv_prog_make_${ac_make}_set=no;;
10507 esac
10508 rm -f conftest.make
10509 fi
10510 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; }
10513 SET_MAKE=
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10517 SET_MAKE="MAKE=${MAKE-make}"
10518 fi
10519
10520 rm -rf .tst 2>/dev/null
10521 mkdir .tst 2>/dev/null
10522 if test -d .tst; then
10523 am__leading_dot=.
10524 else
10525 am__leading_dot=_
10526 fi
10527 rmdir .tst 2>/dev/null
10528
10529 DEPDIR="${am__leading_dot}deps"
10530
10531 ac_config_commands="$ac_config_commands depfiles"
10532
10533
10534 am_make=${MAKE-make}
10535 cat > confinc << 'END'
10536 am__doit:
10537 @echo this is the am__doit target
10538 .PHONY: am__doit
10539 END
10540 # If we don't find an include directive, just comment out the code.
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10543 am__include="#"
10544 am__quote=
10545 _am_result=none
10546 # First try GNU make style include.
10547 echo "include confinc" > confmf
10548 # Ignore all kinds of additional output from 'make'.
10549 case `$am_make -s -f confmf 2> /dev/null` in #(
10550 *the\ am__doit\ target*)
10551 am__include=include
10552 am__quote=
10553 _am_result=GNU
10554 ;;
10555 esac
10556 # Now try BSD make style include.
10557 if test "$am__include" = "#"; then
10558 echo '.include "confinc"' > confmf
10559 case `$am_make -s -f confmf 2> /dev/null` in #(
10560 *the\ am__doit\ target*)
10561 am__include=.include
10562 am__quote="\""
10563 _am_result=BSD
10564 ;;
10565 esac
10566 fi
10567
10568
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10570 $as_echo "$_am_result" >&6; }
10571 rm -f confinc confmf
10572
10573 # Check whether --enable-dependency-tracking was given.
10574 if test "${enable_dependency_tracking+set}" = set; then :
10575 enableval=$enable_dependency_tracking;
10576 fi
10577
10578 if test "x$enable_dependency_tracking" != xno; then
10579 am_depcomp="$ac_aux_dir/depcomp"
10580 AMDEPBACKSLASH='\'
10581 am__nodep='_no'
10582 fi
10583 if test "x$enable_dependency_tracking" != xno; then
10584 AMDEP_TRUE=
10585 AMDEP_FALSE='#'
10586 else
10587 AMDEP_TRUE='#'
10588 AMDEP_FALSE=
10589 fi
10590
10591
10592 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10593 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10594 # is not polluted with repeated "-I."
10595 am__isrc=' -I$(srcdir)'
10596 # test to see if srcdir already configured
10597 if test -f $srcdir/config.status; then
10598 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10599 fi
10600 fi
10601
10602 # test whether we have cygpath
10603 if test -z "$CYGPATH_W"; then
10604 if (cygpath --version) >/dev/null 2>/dev/null; then
10605 CYGPATH_W='cygpath -w'
10606 else
10607 CYGPATH_W=echo
10608 fi
10609 fi
10610
10611
10612 # Define the identity of the package.
10613 PACKAGE='xf86-video-siliconmotion'
10614 VERSION='1.7.8'
10615
10616
10617 cat >>confdefs.h <<_ACEOF
10618 #define PACKAGE "$PACKAGE"
10619 _ACEOF
10620
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define VERSION "$VERSION"
10624 _ACEOF
10625
10626 # Some tools Automake needs.
10627
10628 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10629
10630
10631 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10632
10633
10634 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10635
10636
10637 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10638
10639
10640 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10641
10642 # For better backward compatibility. To be removed once Automake 1.9.x
10643 # dies out for good. For more background, see:
10644 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10645 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10646 mkdir_p='$(MKDIR_P)'
10647
10648 # We need awk for the "check" target. The system "awk" is bad on
10649 # some platforms.
10650 # Always define AMTAR for backward compatibility. Yes, it's still used
10651 # in the wild :-( We should find a proper way to deprecate it ...
10652 AMTAR='$${TAR-tar}'
10653
10654
10655 # We'll loop over all known methods to create a tar archive until one works.
10656 _am_tools='gnutar pax cpio none'
10657
10658 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10659
10660
10661
10662
10663
10664 depcc="$CC" am_compiler_list=
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10667 $as_echo_n "checking dependency style of $depcc... " >&6; }
10668 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10672 # We make a subdir and do the tests there. Otherwise we can end up
10673 # making bogus files that we don't know about and never remove. For
10674 # instance it was reported that on HP-UX the gcc test will end up
10675 # making a dummy file named 'D' -- because '-MD' means "put the output
10676 # in D".
10677 rm -rf conftest.dir
10678 mkdir conftest.dir
10679 # Copy depcomp to subdir because otherwise we won't find it if we're
10680 # using a relative directory.
10681 cp "$am_depcomp" conftest.dir
10682 cd conftest.dir
10683 # We will build objects and dependencies in a subdirectory because
10684 # it helps to detect inapplicable dependency modes. For instance
10685 # both Tru64's cc and ICC support -MD to output dependencies as a
10686 # side effect of compilation, but ICC will put the dependencies in
10687 # the current directory while Tru64 will put them in the object
10688 # directory.
10689 mkdir sub
10690
10691 am_cv_CC_dependencies_compiler_type=none
10692 if test "$am_compiler_list" = ""; then
10693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10694 fi
10695 am__universal=false
10696 case " $depcc " in #(
10697 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10698 esac
10699
10700 for depmode in $am_compiler_list; do
10701 # Setup a source with many dependencies, because some compilers
10702 # like to wrap large dependency lists on column 80 (with \), and
10703 # we should not choose a depcomp mode which is confused by this.
10704 #
10705 # We need to recreate these files for each test, as the compiler may
10706 # overwrite some of them when testing with obscure command lines.
10707 # This happens at least with the AIX C compiler.
10708 : > sub/conftest.c
10709 for i in 1 2 3 4 5 6; do
10710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10712 # Solaris 10 /bin/sh.
10713 echo '/* dummy */' > sub/conftst$i.h
10714 done
10715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10716
10717 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10718 # mode. It turns out that the SunPro C++ compiler does not properly
10719 # handle '-M -o', and we need to detect this. Also, some Intel
10720 # versions had trouble with output in subdirs.
10721 am__obj=sub/conftest.${OBJEXT-o}
10722 am__minus_obj="-o $am__obj"
10723 case $depmode in
10724 gcc)
10725 # This depmode causes a compiler race in universal mode.
10726 test "$am__universal" = false || continue
10727 ;;
10728 nosideeffect)
10729 # After this tag, mechanisms are not by side-effect, so they'll
10730 # only be used when explicitly requested.
10731 if test "x$enable_dependency_tracking" = xyes; then
10732 continue
10733 else
10734 break
10735 fi
10736 ;;
10737 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10738 # This compiler won't grok '-c -o', but also, the minuso test has
10739 # not run yet. These depmodes are late enough in the game, and
10740 # so weak that their functioning should not be impacted.
10741 am__obj=conftest.${OBJEXT-o}
10742 am__minus_obj=
10743 ;;
10744 none) break ;;
10745 esac
10746 if depmode=$depmode \
10747 source=sub/conftest.c object=$am__obj \
10748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10750 >/dev/null 2>conftest.err &&
10751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10755 # icc doesn't choke on unknown options, it will just issue warnings
10756 # or remarks (even with -Werror). So we grep stderr for any message
10757 # that says an option was ignored or not supported.
10758 # When given -MP, icc 7.0 and 7.1 complain thusly:
10759 # icc: Command line warning: ignoring option '-M'; no argument required
10760 # The diagnosis changed in icc 8.0:
10761 # icc: Command line remark: option '-MP' not supported
10762 if (grep 'ignoring option' conftest.err ||
10763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10764 am_cv_CC_dependencies_compiler_type=$depmode
10765 break
10766 fi
10767 fi
10768 done
10769
10770 cd ..
10771 rm -rf conftest.dir
10772 else
10773 am_cv_CC_dependencies_compiler_type=none
10774 fi
10775
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10778 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10779 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10780
10781 if
10782 test "x$enable_dependency_tracking" != xno \
10783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10784 am__fastdepCC_TRUE=
10785 am__fastdepCC_FALSE='#'
10786 else
10787 am__fastdepCC_TRUE='#'
10788 am__fastdepCC_FALSE=
10789 fi
10790
10791
10792
10793 # POSIX will say in a future version that running "rm -f" with no argument
10794 # is OK; and we want to be able to make that assumption in our Makefile
10795 # recipes. So use an aggressive probe to check that the usage we want is
10796 # actually supported "in the wild" to an acceptable degree.
10797 # See automake bug#10828.
10798 # To make any issue more visible, cause the running configure to be aborted
10799 # by default if the 'rm' program in use doesn't match our expectations; the
10800 # user can still override this though.
10801 if rm -f && rm -fr && rm -rf; then : OK; else
10802 cat >&2 <<'END'
10803 Oops!
10804
10805 Your 'rm' program seems unable to run without file operands specified
10806 on the command line, even when the '-f' option is present. This is contrary
10807 to the behaviour of most rm programs out there, and not conforming with
10808 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10809
10810 Please tell bug-automake@gnu.org about your system, including the value
10811 of your $PATH and any error possibly output before this message. This
10812 can help us improve future automake versions.
10813
10814 END
10815 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10816 echo 'Configuration will proceed anyway, since you have set the' >&2
10817 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10818 echo >&2
10819 else
10820 cat >&2 <<'END'
10821 Aborting the configuration process, to ensure you take notice of the issue.
10822
10823 You can download and install GNU coreutils to get an 'rm' implementation
10824 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10825
10826 If you want to complete the configuration process using your problematic
10827 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10828 to "yes", and re-run configure.
10829
10830 END
10831 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
10832 fi
10833 fi
10834
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10837 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10838 # Check whether --enable-maintainer-mode was given.
10839 if test "${enable_maintainer_mode+set}" = set; then :
10840 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10841 else
10842 USE_MAINTAINER_MODE=no
10843 fi
10844
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10846 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10847 if test $USE_MAINTAINER_MODE = yes; then
10848 MAINTAINER_MODE_TRUE=
10849 MAINTAINER_MODE_FALSE='#'
10850 else
10851 MAINTAINER_MODE_TRUE='#'
10852 MAINTAINER_MODE_FALSE=
10853 fi
10854
10855 MAINT=$MAINTAINER_MODE_TRUE
10856
10857
10858
10859 # Initialize libtool
10860 # Check whether --enable-static was given.
10861 if test "${enable_static+set}" = set; then :
10862 enableval=$enable_static; p=${PACKAGE-default}
10863 case $enableval in
10864 yes) enable_static=yes ;;
10865 no) enable_static=no ;;
10866 *)
10867 enable_static=no
10868 # Look at the argument we got. We use all the common list separators.
10869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10870 for pkg in $enableval; do
10871 IFS="$lt_save_ifs"
10872 if test "X$pkg" = "X$p"; then
10873 enable_static=yes
10874 fi
10875 done
10876 IFS="$lt_save_ifs"
10877 ;;
10878 esac
10879 else
10880 enable_static=no
10881 fi
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891 case `pwd` in
10892 *\ * | *\ *)
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10894 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10895 esac
10896
10897
10898
10899 macro_version='2.4.2'
10900 macro_revision='1.3337'
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 ltmain="$ac_aux_dir/ltmain.sh"
10915
10916 # Backslashify metacharacters that are still active within
10917 # double-quoted strings.
10918 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10919
10920 # Same as above, but do not quote variable references.
10921 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10922
10923 # Sed substitution to delay expansion of an escaped shell variable in a
10924 # double_quote_subst'ed string.
10925 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10926
10927 # Sed substitution to delay expansion of an escaped single quote.
10928 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10929
10930 # Sed substitution to avoid accidental globbing in evaled expressions
10931 no_glob_subst='s/\*/\\\*/g'
10932
10933 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10934 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10935 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10938 $as_echo_n "checking how to print strings... " >&6; }
10939 # Test print first, because it will be a builtin if present.
10940 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10941 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10942 ECHO='print -r --'
10943 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10944 ECHO='printf %s\n'
10945 else
10946 # Use this function as a fallback that always works.
10947 func_fallback_echo ()
10948 {
10949 eval 'cat <<_LTECHO_EOF
10950 $1
10951 _LTECHO_EOF'
10952 }
10953 ECHO='func_fallback_echo'
10954 fi
10955
10956 # func_echo_all arg...
10957 # Invoke $ECHO with all args, space-separated.
10958 func_echo_all ()
10959 {
10960 $ECHO ""
10961 }
10962
10963 case "$ECHO" in
10964 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10965 $as_echo "printf" >&6; } ;;
10966 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10967 $as_echo "print -r" >&6; } ;;
10968 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10969 $as_echo "cat" >&6; } ;;
10970 esac
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10986 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10987 if ${ac_cv_path_SED+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10991 for ac_i in 1 2 3 4 5 6 7; do
10992 ac_script="$ac_script$as_nl$ac_script"
10993 done
10994 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10995 { ac_script=; unset ac_script;}
10996 if test -z "$SED"; then
10997 ac_path_SED_found=false
10998 # Loop through the user's path and test for each of PROGNAME-LIST
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11001 do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_prog in sed gsed; do
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11007 as_fn_executable_p "$ac_path_SED" || continue
11008 # Check for GNU ac_path_SED and select it if it is found.
11009 # Check for GNU $ac_path_SED
11010 case `"$ac_path_SED" --version 2>&1` in
11011 *GNU*)
11012 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11013 *)
11014 ac_count=0
11015 $as_echo_n 0123456789 >"conftest.in"
11016 while :
11017 do
11018 cat "conftest.in" "conftest.in" >"conftest.tmp"
11019 mv "conftest.tmp" "conftest.in"
11020 cp "conftest.in" "conftest.nl"
11021 $as_echo '' >> "conftest.nl"
11022 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11024 as_fn_arith $ac_count + 1 && ac_count=$as_val
11025 if test $ac_count -gt ${ac_path_SED_max-0}; then
11026 # Best one so far, save it but keep looking for a better one
11027 ac_cv_path_SED="$ac_path_SED"
11028 ac_path_SED_max=$ac_count
11029 fi
11030 # 10*(2^10) chars as input seems more than enough
11031 test $ac_count -gt 10 && break
11032 done
11033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11034 esac
11035
11036 $ac_path_SED_found && break 3
11037 done
11038 done
11039 done
11040 IFS=$as_save_IFS
11041 if test -z "$ac_cv_path_SED"; then
11042 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11043 fi
11044 else
11045 ac_cv_path_SED=$SED
11046 fi
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11050 $as_echo "$ac_cv_path_SED" >&6; }
11051 SED="$ac_cv_path_SED"
11052 rm -f conftest.sed
11053
11054 test -z "$SED" && SED=sed
11055 Xsed="$SED -e 1s/^X//"
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11068 $as_echo_n "checking for fgrep... " >&6; }
11069 if ${ac_cv_path_FGREP+:} false; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11073 then ac_cv_path_FGREP="$GREP -F"
11074 else
11075 if test -z "$FGREP"; then
11076 ac_path_FGREP_found=false
11077 # Loop through the user's path and test for each of PROGNAME-LIST
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11080 do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_prog in fgrep; do
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11086 as_fn_executable_p "$ac_path_FGREP" || continue
11087 # Check for GNU ac_path_FGREP and select it if it is found.
11088 # Check for GNU $ac_path_FGREP
11089 case `"$ac_path_FGREP" --version 2>&1` in
11090 *GNU*)
11091 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11092 *)
11093 ac_count=0
11094 $as_echo_n 0123456789 >"conftest.in"
11095 while :
11096 do
11097 cat "conftest.in" "conftest.in" >"conftest.tmp"
11098 mv "conftest.tmp" "conftest.in"
11099 cp "conftest.in" "conftest.nl"
11100 $as_echo 'FGREP' >> "conftest.nl"
11101 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11103 as_fn_arith $ac_count + 1 && ac_count=$as_val
11104 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11105 # Best one so far, save it but keep looking for a better one
11106 ac_cv_path_FGREP="$ac_path_FGREP"
11107 ac_path_FGREP_max=$ac_count
11108 fi
11109 # 10*(2^10) chars as input seems more than enough
11110 test $ac_count -gt 10 && break
11111 done
11112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11113 esac
11114
11115 $ac_path_FGREP_found && break 3
11116 done
11117 done
11118 done
11119 IFS=$as_save_IFS
11120 if test -z "$ac_cv_path_FGREP"; then
11121 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11122 fi
11123 else
11124 ac_cv_path_FGREP=$FGREP
11125 fi
11126
11127 fi
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11130 $as_echo "$ac_cv_path_FGREP" >&6; }
11131 FGREP="$ac_cv_path_FGREP"
11132
11133
11134 test -z "$GREP" && GREP=grep
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154 # Check whether --with-gnu-ld was given.
11155 if test "${with_gnu_ld+set}" = set; then :
11156 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11157 else
11158 with_gnu_ld=no
11159 fi
11160
11161 ac_prog=ld
11162 if test "$GCC" = yes; then
11163 # Check if gcc -print-prog-name=ld gives a path.
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11165 $as_echo_n "checking for ld used by $CC... " >&6; }
11166 case $host in
11167 *-*-mingw*)
11168 # gcc leaves a trailing carriage return which upsets mingw
11169 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11170 *)
11171 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11172 esac
11173 case $ac_prog in
11174 # Accept absolute paths.
11175 [\\/]* | ?:[\\/]*)
11176 re_direlt='/[^/][^/]*/\.\./'
11177 # Canonicalize the pathname of ld
11178 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11179 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11180 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11181 done
11182 test -z "$LD" && LD="$ac_prog"
11183 ;;
11184 "")
11185 # If it fails, then pretend we aren't using GCC.
11186 ac_prog=ld
11187 ;;
11188 *)
11189 # If it is relative, then search for the first ld in PATH.
11190 with_gnu_ld=unknown
11191 ;;
11192 esac
11193 elif test "$with_gnu_ld" = yes; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11195 $as_echo_n "checking for GNU ld... " >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11198 $as_echo_n "checking for non-GNU ld... " >&6; }
11199 fi
11200 if ${lt_cv_path_LD+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test -z "$LD"; then
11204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11205 for ac_dir in $PATH; do
11206 IFS="$lt_save_ifs"
11207 test -z "$ac_dir" && ac_dir=.
11208 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11209 lt_cv_path_LD="$ac_dir/$ac_prog"
11210 # Check to see if the program is GNU ld. I'd rather use --version,
11211 # but apparently some variants of GNU ld only accept -v.
11212 # Break only if it was the GNU/non-GNU ld that we prefer.
11213 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11214 *GNU* | *'with BFD'*)
11215 test "$with_gnu_ld" != no && break
11216 ;;
11217 *)
11218 test "$with_gnu_ld" != yes && break
11219 ;;
11220 esac
11221 fi
11222 done
11223 IFS="$lt_save_ifs"
11224 else
11225 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11226 fi
11227 fi
11228
11229 LD="$lt_cv_path_LD"
11230 if test -n "$LD"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11232 $as_echo "$LD" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11236 fi
11237 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11239 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11240 if ${lt_cv_prog_gnu_ld+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11244 case `$LD -v 2>&1 </dev/null` in
11245 *GNU* | *'with BFD'*)
11246 lt_cv_prog_gnu_ld=yes
11247 ;;
11248 *)
11249 lt_cv_prog_gnu_ld=no
11250 ;;
11251 esac
11252 fi
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11254 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11255 with_gnu_ld=$lt_cv_prog_gnu_ld
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11266 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11267 if ${lt_cv_path_NM+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test -n "$NM"; then
11271 # Let the user override the test.
11272 lt_cv_path_NM="$NM"
11273 else
11274 lt_nm_to_check="${ac_tool_prefix}nm"
11275 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11276 lt_nm_to_check="$lt_nm_to_check nm"
11277 fi
11278 for lt_tmp_nm in $lt_nm_to_check; do
11279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11280 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11281 IFS="$lt_save_ifs"
11282 test -z "$ac_dir" && ac_dir=.
11283 tmp_nm="$ac_dir/$lt_tmp_nm"
11284 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11285 # Check to see if the nm accepts a BSD-compat flag.
11286 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11287 # nm: unknown option "B" ignored
11288 # Tru64's nm complains that /dev/null is an invalid object file
11289 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11290 */dev/null* | *'Invalid file or object type'*)
11291 lt_cv_path_NM="$tmp_nm -B"
11292 break
11293 ;;
11294 *)
11295 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11296 */dev/null*)
11297 lt_cv_path_NM="$tmp_nm -p"
11298 break
11299 ;;
11300 *)
11301 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11302 continue # so that we can try to find one that supports BSD flags
11303 ;;
11304 esac
11305 ;;
11306 esac
11307 fi
11308 done
11309 IFS="$lt_save_ifs"
11310 done
11311 : ${lt_cv_path_NM=no}
11312 fi
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11315 $as_echo "$lt_cv_path_NM" >&6; }
11316 if test "$lt_cv_path_NM" != "no"; then
11317 NM="$lt_cv_path_NM"
11318 else
11319 # Didn't find any BSD compatible name lister, look for dumpbin.
11320 if test -n "$DUMPBIN"; then :
11321 # Let the user override the test.
11322 else
11323 if test -n "$ac_tool_prefix"; then
11324 for ac_prog in dumpbin "link -dump"
11325 do
11326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if ${ac_cv_prog_DUMPBIN+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 if test -n "$DUMPBIN"; then
11334 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11335 else
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $PATH
11338 do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11343 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347 done
11348 done
11349 IFS=$as_save_IFS
11350
11351 fi
11352 fi
11353 DUMPBIN=$ac_cv_prog_DUMPBIN
11354 if test -n "$DUMPBIN"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11356 $as_echo "$DUMPBIN" >&6; }
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11360 fi
11361
11362
11363 test -n "$DUMPBIN" && break
11364 done
11365 fi
11366 if test -z "$DUMPBIN"; then
11367 ac_ct_DUMPBIN=$DUMPBIN
11368 for ac_prog in dumpbin "link -dump"
11369 do
11370 # Extract the first word of "$ac_prog", so it can be a program name with args.
11371 set dummy $ac_prog; ac_word=$2
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 if test -n "$ac_ct_DUMPBIN"; then
11378 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11379 else
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11390 fi
11391 done
11392 done
11393 IFS=$as_save_IFS
11394
11395 fi
11396 fi
11397 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11398 if test -n "$ac_ct_DUMPBIN"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11400 $as_echo "$ac_ct_DUMPBIN" >&6; }
11401 else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405
11406
11407 test -n "$ac_ct_DUMPBIN" && break
11408 done
11409
11410 if test "x$ac_ct_DUMPBIN" = x; then
11411 DUMPBIN=":"
11412 else
11413 case $cross_compiling:$ac_tool_warned in
11414 yes:)
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11417 ac_tool_warned=yes ;;
11418 esac
11419 DUMPBIN=$ac_ct_DUMPBIN
11420 fi
11421 fi
11422
11423 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11424 *COFF*)
11425 DUMPBIN="$DUMPBIN -symbols"
11426 ;;
11427 *)
11428 DUMPBIN=:
11429 ;;
11430 esac
11431 fi
11432
11433 if test "$DUMPBIN" != ":"; then
11434 NM="$DUMPBIN"
11435 fi
11436 fi
11437 test -z "$NM" && NM=nm
11438
11439
11440
11441
11442
11443
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11445 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11446 if ${lt_cv_nm_interface+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 lt_cv_nm_interface="BSD nm"
11450 echo "int some_variable = 0;" > conftest.$ac_ext
11451 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11452 (eval "$ac_compile" 2>conftest.err)
11453 cat conftest.err >&5
11454 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11455 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11456 cat conftest.err >&5
11457 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11458 cat conftest.out >&5
11459 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11460 lt_cv_nm_interface="MS dumpbin"
11461 fi
11462 rm -f conftest*
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11465 $as_echo "$lt_cv_nm_interface" >&6; }
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11468 $as_echo_n "checking whether ln -s works... " >&6; }
11469 LN_S=$as_ln_s
11470 if test "$LN_S" = "ln -s"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472 $as_echo "yes" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11475 $as_echo "no, using $LN_S" >&6; }
11476 fi
11477
11478 # find the maximum length of command line arguments
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11480 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11481 if ${lt_cv_sys_max_cmd_len+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 i=0
11485 teststring="ABCD"
11486
11487 case $build_os in
11488 msdosdjgpp*)
11489 # On DJGPP, this test can blow up pretty badly due to problems in libc
11490 # (any single argument exceeding 2000 bytes causes a buffer overrun
11491 # during glob expansion). Even if it were fixed, the result of this
11492 # check would be larger than it should be.
11493 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11494 ;;
11495
11496 gnu*)
11497 # Under GNU Hurd, this test is not required because there is
11498 # no limit to the length of command line arguments.
11499 # Libtool will interpret -1 as no limit whatsoever
11500 lt_cv_sys_max_cmd_len=-1;
11501 ;;
11502
11503 cygwin* | mingw* | cegcc*)
11504 # On Win9x/ME, this test blows up -- it succeeds, but takes
11505 # about 5 minutes as the teststring grows exponentially.
11506 # Worse, since 9x/ME are not pre-emptively multitasking,
11507 # you end up with a "frozen" computer, even though with patience
11508 # the test eventually succeeds (with a max line length of 256k).
11509 # Instead, let's just punt: use the minimum linelength reported by
11510 # all of the supported platforms: 8192 (on NT/2K/XP).
11511 lt_cv_sys_max_cmd_len=8192;
11512 ;;
11513
11514 mint*)
11515 # On MiNT this can take a long time and run out of memory.
11516 lt_cv_sys_max_cmd_len=8192;
11517 ;;
11518
11519 amigaos*)
11520 # On AmigaOS with pdksh, this test takes hours, literally.
11521 # So we just punt and use a minimum line length of 8192.
11522 lt_cv_sys_max_cmd_len=8192;
11523 ;;
11524
11525 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11526 # This has been around since 386BSD, at least. Likely further.
11527 if test -x /sbin/sysctl; then
11528 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11529 elif test -x /usr/sbin/sysctl; then
11530 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11531 else
11532 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11533 fi
11534 # And add a safety zone
11535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11537 ;;
11538
11539 interix*)
11540 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11541 lt_cv_sys_max_cmd_len=196608
11542 ;;
11543
11544 os2*)
11545 # The test takes a long time on OS/2.
11546 lt_cv_sys_max_cmd_len=8192
11547 ;;
11548
11549 osf*)
11550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11552 # nice to cause kernel panics so lets avoid the loop below.
11553 # First set a reasonable default.
11554 lt_cv_sys_max_cmd_len=16384
11555 #
11556 if test -x /sbin/sysconfig; then
11557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11558 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11559 esac
11560 fi
11561 ;;
11562 sco3.2v5*)
11563 lt_cv_sys_max_cmd_len=102400
11564 ;;
11565 sysv5* | sco5v6* | sysv4.2uw2*)
11566 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11567 if test -n "$kargmax"; then
11568 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11569 else
11570 lt_cv_sys_max_cmd_len=32768
11571 fi
11572 ;;
11573 *)
11574 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11575 if test -n "$lt_cv_sys_max_cmd_len" && \
11576 test undefined != "$lt_cv_sys_max_cmd_len"; then
11577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11579 else
11580 # Make teststring a little bigger before we do anything with it.
11581 # a 1K string should be a reasonable start.
11582 for i in 1 2 3 4 5 6 7 8 ; do
11583 teststring=$teststring$teststring
11584 done
11585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11586 # If test is not a shell built-in, we'll probably end up computing a
11587 # maximum length that is only half of the actual maximum length, but
11588 # we can't tell.
11589 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11590 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11591 test $i != 17 # 1/2 MB should be enough
11592 do
11593 i=`expr $i + 1`
11594 teststring=$teststring$teststring
11595 done
11596 # Only check the string length outside the loop.
11597 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11598 teststring=
11599 # Add a significant safety factor because C++ compilers can tack on
11600 # massive amounts of additional arguments before passing them to the
11601 # linker. It appears as though 1/2 is a usable value.
11602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11603 fi
11604 ;;
11605 esac
11606
11607 fi
11608
11609 if test -n $lt_cv_sys_max_cmd_len ; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11611 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11614 $as_echo "none" >&6; }
11615 fi
11616 max_cmd_len=$lt_cv_sys_max_cmd_len
11617
11618
11619
11620
11621
11622
11623 : ${CP="cp -f"}
11624 : ${MV="mv -f"}
11625 : ${RM="rm -f"}
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11628 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11629 # Try some XSI features
11630 xsi_shell=no
11631 ( _lt_dummy="a/b/c"
11632 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11633 = c,a/b,b/c, \
11634 && eval 'test $(( 1 + 1 )) -eq 2 \
11635 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11636 && xsi_shell=yes
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11638 $as_echo "$xsi_shell" >&6; }
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11642 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11643 lt_shell_append=no
11644 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11645 >/dev/null 2>&1 \
11646 && lt_shell_append=yes
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11648 $as_echo "$lt_shell_append" >&6; }
11649
11650
11651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11652 lt_unset=unset
11653 else
11654 lt_unset=false
11655 fi
11656
11657
11658
11659
11660
11661 # test EBCDIC or ASCII
11662 case `echo X|tr X '\101'` in
11663 A) # ASCII based system
11664 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11665 lt_SP2NL='tr \040 \012'
11666 lt_NL2SP='tr \015\012 \040\040'
11667 ;;
11668 *) # EBCDIC based system
11669 lt_SP2NL='tr \100 \n'
11670 lt_NL2SP='tr \r\n \100\100'
11671 ;;
11672 esac
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11683 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11684 if ${lt_cv_to_host_file_cmd+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 case $host in
11688 *-*-mingw* )
11689 case $build in
11690 *-*-mingw* ) # actually msys
11691 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11692 ;;
11693 *-*-cygwin* )
11694 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11695 ;;
11696 * ) # otherwise, assume *nix
11697 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11698 ;;
11699 esac
11700 ;;
11701 *-*-cygwin* )
11702 case $build in
11703 *-*-mingw* ) # actually msys
11704 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11705 ;;
11706 *-*-cygwin* )
11707 lt_cv_to_host_file_cmd=func_convert_file_noop
11708 ;;
11709 * ) # otherwise, assume *nix
11710 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11711 ;;
11712 esac
11713 ;;
11714 * ) # unhandled hosts (and "normal" native builds)
11715 lt_cv_to_host_file_cmd=func_convert_file_noop
11716 ;;
11717 esac
11718
11719 fi
11720
11721 to_host_file_cmd=$lt_cv_to_host_file_cmd
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11723 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11724
11725
11726
11727
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11730 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11731 if ${lt_cv_to_tool_file_cmd+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 #assume ordinary cross tools, or native build.
11735 lt_cv_to_tool_file_cmd=func_convert_file_noop
11736 case $host in
11737 *-*-mingw* )
11738 case $build in
11739 *-*-mingw* ) # actually msys
11740 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11741 ;;
11742 esac
11743 ;;
11744 esac
11745
11746 fi
11747
11748 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11750 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11751
11752
11753
11754
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11757 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11758 if ${lt_cv_ld_reload_flag+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 lt_cv_ld_reload_flag='-r'
11762 fi
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11764 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11765 reload_flag=$lt_cv_ld_reload_flag
11766 case $reload_flag in
11767 "" | " "*) ;;
11768 *) reload_flag=" $reload_flag" ;;
11769 esac
11770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11771 case $host_os in
11772 cygwin* | mingw* | pw32* | cegcc*)
11773 if test "$GCC" != yes; then
11774 reload_cmds=false
11775 fi
11776 ;;
11777 darwin*)
11778 if test "$GCC" = yes; then
11779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11780 else
11781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11782 fi
11783 ;;
11784 esac
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794 if test -n "$ac_tool_prefix"; then
11795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11796 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if ${ac_cv_prog_OBJDUMP+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$OBJDUMP"; then
11803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 OBJDUMP=$ac_cv_prog_OBJDUMP
11823 if test -n "$OBJDUMP"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11825 $as_echo "$OBJDUMP" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832 fi
11833 if test -z "$ac_cv_prog_OBJDUMP"; then
11834 ac_ct_OBJDUMP=$OBJDUMP
11835 # Extract the first word of "objdump", so it can be a program name with args.
11836 set dummy objdump; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 if test -n "$ac_ct_OBJDUMP"; then
11843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11844 else
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856 done
11857 done
11858 IFS=$as_save_IFS
11859
11860 fi
11861 fi
11862 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11863 if test -n "$ac_ct_OBJDUMP"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11865 $as_echo "$ac_ct_OBJDUMP" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870
11871 if test "x$ac_ct_OBJDUMP" = x; then
11872 OBJDUMP="false"
11873 else
11874 case $cross_compiling:$ac_tool_warned in
11875 yes:)
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11878 ac_tool_warned=yes ;;
11879 esac
11880 OBJDUMP=$ac_ct_OBJDUMP
11881 fi
11882 else
11883 OBJDUMP="$ac_cv_prog_OBJDUMP"
11884 fi
11885
11886 test -z "$OBJDUMP" && OBJDUMP=objdump
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11897 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11898 if ${lt_cv_deplibs_check_method+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 lt_cv_file_magic_cmd='$MAGIC_CMD'
11902 lt_cv_file_magic_test_file=
11903 lt_cv_deplibs_check_method='unknown'
11904 # Need to set the preceding variable on all platforms that support
11905 # interlibrary dependencies.
11906 # 'none' -- dependencies not supported.
11907 # `unknown' -- same as none, but documents that we really don't know.
11908 # 'pass_all' -- all dependencies passed with no checks.
11909 # 'test_compile' -- check by making test program.
11910 # 'file_magic [[regex]]' -- check by looking for files in library path
11911 # which responds to the $file_magic_cmd with a given extended regex.
11912 # If you have `file' or equivalent on your system and you're not sure
11913 # whether `pass_all' will *always* work, you probably want this one.
11914
11915 case $host_os in
11916 aix[4-9]*)
11917 lt_cv_deplibs_check_method=pass_all
11918 ;;
11919
11920 beos*)
11921 lt_cv_deplibs_check_method=pass_all
11922 ;;
11923
11924 bsdi[45]*)
11925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11926 lt_cv_file_magic_cmd='/usr/bin/file -L'
11927 lt_cv_file_magic_test_file=/shlib/libc.so
11928 ;;
11929
11930 cygwin*)
11931 # func_win32_libid is a shell function defined in ltmain.sh
11932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11933 lt_cv_file_magic_cmd='func_win32_libid'
11934 ;;
11935
11936 mingw* | pw32*)
11937 # Base MSYS/MinGW do not provide the 'file' command needed by
11938 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11939 # unless we find 'file', for example because we are cross-compiling.
11940 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11941 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11943 lt_cv_file_magic_cmd='func_win32_libid'
11944 else
11945 # Keep this pattern in sync with the one in func_win32_libid.
11946 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11947 lt_cv_file_magic_cmd='$OBJDUMP -f'
11948 fi
11949 ;;
11950
11951 cegcc*)
11952 # use the weaker test based on 'objdump'. See mingw*.
11953 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11954 lt_cv_file_magic_cmd='$OBJDUMP -f'
11955 ;;
11956
11957 darwin* | rhapsody*)
11958 lt_cv_deplibs_check_method=pass_all
11959 ;;
11960
11961 freebsd* | dragonfly*)
11962 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11963 case $host_cpu in
11964 i*86 )
11965 # Not sure whether the presence of OpenBSD here was a mistake.
11966 # Let's accept both of them until this is cleared up.
11967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11968 lt_cv_file_magic_cmd=/usr/bin/file
11969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11970 ;;
11971 esac
11972 else
11973 lt_cv_deplibs_check_method=pass_all
11974 fi
11975 ;;
11976
11977 haiku*)
11978 lt_cv_deplibs_check_method=pass_all
11979 ;;
11980
11981 hpux10.20* | hpux11*)
11982 lt_cv_file_magic_cmd=/usr/bin/file
11983 case $host_cpu in
11984 ia64*)
11985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11986 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11987 ;;
11988 hppa*64*)
11989 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]'
11990 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11991 ;;
11992 *)
11993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11994 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11995 ;;
11996 esac
11997 ;;
11998
11999 interix[3-9]*)
12000 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12002 ;;
12003
12004 irix5* | irix6* | nonstopux*)
12005 case $LD in
12006 *-32|*"-32 ") libmagic=32-bit;;
12007 *-n32|*"-n32 ") libmagic=N32;;
12008 *-64|*"-64 ") libmagic=64-bit;;
12009 *) libmagic=never-match;;
12010 esac
12011 lt_cv_deplibs_check_method=pass_all
12012 ;;
12013
12014 # This must be glibc/ELF.
12015 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12016 lt_cv_deplibs_check_method=pass_all
12017 ;;
12018
12019 netbsd* | netbsdelf*-gnu)
12020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12022 else
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12024 fi
12025 ;;
12026
12027 newos6*)
12028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12029 lt_cv_file_magic_cmd=/usr/bin/file
12030 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12031 ;;
12032
12033 *nto* | *qnx*)
12034 lt_cv_deplibs_check_method=pass_all
12035 ;;
12036
12037 openbsd*)
12038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12040 else
12041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12042 fi
12043 ;;
12044
12045 osf3* | osf4* | osf5*)
12046 lt_cv_deplibs_check_method=pass_all
12047 ;;
12048
12049 rdos*)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052
12053 solaris*)
12054 lt_cv_deplibs_check_method=pass_all
12055 ;;
12056
12057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12058 lt_cv_deplibs_check_method=pass_all
12059 ;;
12060
12061 sysv4 | sysv4.3*)
12062 case $host_vendor in
12063 motorola)
12064 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]'
12065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12066 ;;
12067 ncr)
12068 lt_cv_deplibs_check_method=pass_all
12069 ;;
12070 sequent)
12071 lt_cv_file_magic_cmd='/bin/file'
12072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12073 ;;
12074 sni)
12075 lt_cv_file_magic_cmd='/bin/file'
12076 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12077 lt_cv_file_magic_test_file=/lib/libc.so
12078 ;;
12079 siemens)
12080 lt_cv_deplibs_check_method=pass_all
12081 ;;
12082 pc)
12083 lt_cv_deplibs_check_method=pass_all
12084 ;;
12085 esac
12086 ;;
12087
12088 tpf*)
12089 lt_cv_deplibs_check_method=pass_all
12090 ;;
12091 esac
12092
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12095 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12096
12097 file_magic_glob=
12098 want_nocaseglob=no
12099 if test "$build" = "$host"; then
12100 case $host_os in
12101 mingw* | pw32*)
12102 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12103 want_nocaseglob=yes
12104 else
12105 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12106 fi
12107 ;;
12108 esac
12109 fi
12110
12111 file_magic_cmd=$lt_cv_file_magic_cmd
12112 deplibs_check_method=$lt_cv_deplibs_check_method
12113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136 if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_prog_DLLTOOL+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test -n "$DLLTOOL"; then
12145 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158 done
12159 done
12160 IFS=$as_save_IFS
12161
12162 fi
12163 fi
12164 DLLTOOL=$ac_cv_prog_DLLTOOL
12165 if test -n "$DLLTOOL"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12167 $as_echo "$DLLTOOL" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171 fi
12172
12173
12174 fi
12175 if test -z "$ac_cv_prog_DLLTOOL"; then
12176 ac_ct_DLLTOOL=$DLLTOOL
12177 # Extract the first word of "dlltool", so it can be a program name with args.
12178 set dummy dlltool; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test -n "$ac_ct_DLLTOOL"; then
12185 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12186 else
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 fi
12203 fi
12204 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12205 if test -n "$ac_ct_DLLTOOL"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12207 $as_echo "$ac_ct_DLLTOOL" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213 if test "x$ac_ct_DLLTOOL" = x; then
12214 DLLTOOL="false"
12215 else
12216 case $cross_compiling:$ac_tool_warned in
12217 yes:)
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220 ac_tool_warned=yes ;;
12221 esac
12222 DLLTOOL=$ac_ct_DLLTOOL
12223 fi
12224 else
12225 DLLTOOL="$ac_cv_prog_DLLTOOL"
12226 fi
12227
12228 test -z "$DLLTOOL" && DLLTOOL=dlltool
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12240 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12241 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 lt_cv_sharedlib_from_linklib_cmd='unknown'
12245
12246 case $host_os in
12247 cygwin* | mingw* | pw32* | cegcc*)
12248 # two different shell functions defined in ltmain.sh
12249 # decide which to use based on capabilities of $DLLTOOL
12250 case `$DLLTOOL --help 2>&1` in
12251 *--identify-strict*)
12252 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12253 ;;
12254 *)
12255 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12256 ;;
12257 esac
12258 ;;
12259 *)
12260 # fallback: assume linklib IS sharedlib
12261 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12262 ;;
12263 esac
12264
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12267 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12268 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12269 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12270
12271
12272
12273
12274
12275
12276
12277 if test -n "$ac_tool_prefix"; then
12278 for ac_prog in ar
12279 do
12280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_AR+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 if test -n "$AR"; then
12288 ac_cv_prog_AR="$AR" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12300 fi
12301 done
12302 done
12303 IFS=$as_save_IFS
12304
12305 fi
12306 fi
12307 AR=$ac_cv_prog_AR
12308 if test -n "$AR"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12310 $as_echo "$AR" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315
12316
12317 test -n "$AR" && break
12318 done
12319 fi
12320 if test -z "$AR"; then
12321 ac_ct_AR=$AR
12322 for ac_prog in ar
12323 do
12324 # Extract the first word of "$ac_prog", so it can be a program name with args.
12325 set dummy $ac_prog; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$ac_ct_AR"; then
12332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_prog_ac_ct_AR="$ac_prog"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345 done
12346 done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12352 if test -n "$ac_ct_AR"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12354 $as_echo "$ac_ct_AR" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360
12361 test -n "$ac_ct_AR" && break
12362 done
12363
12364 if test "x$ac_ct_AR" = x; then
12365 AR="false"
12366 else
12367 case $cross_compiling:$ac_tool_warned in
12368 yes:)
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12371 ac_tool_warned=yes ;;
12372 esac
12373 AR=$ac_ct_AR
12374 fi
12375 fi
12376
12377 : ${AR=ar}
12378 : ${AR_FLAGS=cru}
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12391 $as_echo_n "checking for archiver @FILE support... " >&6; }
12392 if ${lt_cv_ar_at_file+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 lt_cv_ar_at_file=no
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398
12399 int
12400 main ()
12401 {
12402
12403 ;
12404 return 0;
12405 }
12406 _ACEOF
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408 echo conftest.$ac_objext > conftest.lst
12409 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12411 (eval $lt_ar_try) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; }
12415 if test "$ac_status" -eq 0; then
12416 # Ensure the archiver fails upon bogus file names.
12417 rm -f conftest.$ac_objext libconftest.a
12418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12419 (eval $lt_ar_try) 2>&5
12420 ac_status=$?
12421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; }
12423 if test "$ac_status" -ne 0; then
12424 lt_cv_ar_at_file=@
12425 fi
12426 fi
12427 rm -f conftest.* libconftest.a
12428
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431
12432 fi
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12434 $as_echo "$lt_cv_ar_at_file" >&6; }
12435
12436 if test "x$lt_cv_ar_at_file" = xno; then
12437 archiver_list_spec=
12438 else
12439 archiver_list_spec=$lt_cv_ar_at_file
12440 fi
12441
12442
12443
12444
12445
12446
12447
12448 if test -n "$ac_tool_prefix"; then
12449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12450 set dummy ${ac_tool_prefix}strip; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if ${ac_cv_prog_STRIP+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 if test -n "$STRIP"; then
12457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 STRIP=$ac_cv_prog_STRIP
12477 if test -n "$STRIP"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12479 $as_echo "$STRIP" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485
12486 fi
12487 if test -z "$ac_cv_prog_STRIP"; then
12488 ac_ct_STRIP=$STRIP
12489 # Extract the first word of "strip", so it can be a program name with args.
12490 set dummy strip; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if test -n "$ac_ct_STRIP"; then
12497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12506 ac_cv_prog_ac_ct_STRIP="strip"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12509 fi
12510 done
12511 done
12512 IFS=$as_save_IFS
12513
12514 fi
12515 fi
12516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12517 if test -n "$ac_ct_STRIP"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12519 $as_echo "$ac_ct_STRIP" >&6; }
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12523 fi
12524
12525 if test "x$ac_ct_STRIP" = x; then
12526 STRIP=":"
12527 else
12528 case $cross_compiling:$ac_tool_warned in
12529 yes:)
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12532 ac_tool_warned=yes ;;
12533 esac
12534 STRIP=$ac_ct_STRIP
12535 fi
12536 else
12537 STRIP="$ac_cv_prog_STRIP"
12538 fi
12539
12540 test -z "$STRIP" && STRIP=:
12541
12542
12543
12544
12545
12546
12547 if test -n "$ac_tool_prefix"; then
12548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if ${ac_cv_prog_RANLIB+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 if test -n "$RANLIB"; then
12556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12560 do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569 done
12570 done
12571 IFS=$as_save_IFS
12572
12573 fi
12574 fi
12575 RANLIB=$ac_cv_prog_RANLIB
12576 if test -n "$RANLIB"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12578 $as_echo "$RANLIB" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12582 fi
12583
12584
12585 fi
12586 if test -z "$ac_cv_prog_RANLIB"; then
12587 ac_ct_RANLIB=$RANLIB
12588 # Extract the first word of "ranlib", so it can be a program name with args.
12589 set dummy ranlib; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 if test -n "$ac_ct_RANLIB"; then
12596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12597 else
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12600 do
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_prog_ac_ct_RANLIB="ranlib"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12608 fi
12609 done
12610 done
12611 IFS=$as_save_IFS
12612
12613 fi
12614 fi
12615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12616 if test -n "$ac_ct_RANLIB"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12618 $as_echo "$ac_ct_RANLIB" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623
12624 if test "x$ac_ct_RANLIB" = x; then
12625 RANLIB=":"
12626 else
12627 case $cross_compiling:$ac_tool_warned in
12628 yes:)
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12631 ac_tool_warned=yes ;;
12632 esac
12633 RANLIB=$ac_ct_RANLIB
12634 fi
12635 else
12636 RANLIB="$ac_cv_prog_RANLIB"
12637 fi
12638
12639 test -z "$RANLIB" && RANLIB=:
12640
12641
12642
12643
12644
12645
12646 # Determine commands to create old-style static archives.
12647 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12648 old_postinstall_cmds='chmod 644 $oldlib'
12649 old_postuninstall_cmds=
12650
12651 if test -n "$RANLIB"; then
12652 case $host_os in
12653 openbsd*)
12654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12655 ;;
12656 *)
12657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12658 ;;
12659 esac
12660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12661 fi
12662
12663 case $host_os in
12664 darwin*)
12665 lock_old_archive_extraction=yes ;;
12666 *)
12667 lock_old_archive_extraction=no ;;
12668 esac
12669
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 # If no C compiler was specified, use CC.
12709 LTCC=${LTCC-"$CC"}
12710
12711 # If no C compiler flags were specified, use CFLAGS.
12712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12713
12714 # Allow CC to be a program name with arguments.
12715 compiler=$CC
12716
12717
12718 # Check for command to grab the raw symbol name followed by C symbol from nm.
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12720 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12721 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724
12725 # These are sane defaults that work on at least a few old systems.
12726 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12727
12728 # Character class describing NM global symbol codes.
12729 symcode='[BCDEGRST]'
12730
12731 # Regexp to match symbols that can be accessed directly from C.
12732 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12733
12734 # Define system-specific variables.
12735 case $host_os in
12736 aix*)
12737 symcode='[BCDT]'
12738 ;;
12739 cygwin* | mingw* | pw32* | cegcc*)
12740 symcode='[ABCDGISTW]'
12741 ;;
12742 hpux*)
12743 if test "$host_cpu" = ia64; then
12744 symcode='[ABCDEGRST]'
12745 fi
12746 ;;
12747 irix* | nonstopux*)
12748 symcode='[BCDEGRST]'
12749 ;;
12750 osf*)
12751 symcode='[BCDEGQRST]'
12752 ;;
12753 solaris*)
12754 symcode='[BDRT]'
12755 ;;
12756 sco3.2v5*)
12757 symcode='[DT]'
12758 ;;
12759 sysv4.2uw2*)
12760 symcode='[DT]'
12761 ;;
12762 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12763 symcode='[ABDT]'
12764 ;;
12765 sysv4)
12766 symcode='[DFNSTU]'
12767 ;;
12768 esac
12769
12770 # If we're using GNU nm, then use its standard symbol codes.
12771 case `$NM -V 2>&1` in
12772 *GNU* | *'with BFD'*)
12773 symcode='[ABCDGIRSTW]' ;;
12774 esac
12775
12776 # Transform an extracted symbol line into a proper C declaration.
12777 # Some systems (esp. on ia64) link data and code symbols differently,
12778 # so use this general approach.
12779 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12780
12781 # Transform an extracted symbol line into symbol name and symbol address
12782 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12783 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12784
12785 # Handle CRLF in mingw tool chain
12786 opt_cr=
12787 case $build_os in
12788 mingw*)
12789 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12790 ;;
12791 esac
12792
12793 # Try without a prefix underscore, then with it.
12794 for ac_symprfx in "" "_"; do
12795
12796 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12797 symxfrm="\\1 $ac_symprfx\\2 \\2"
12798
12799 # Write the raw and C identifiers.
12800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12801 # Fake it for dumpbin and say T for any non-static function
12802 # and D for any global variable.
12803 # Also find C++ and __fastcall symbols from MSVC++,
12804 # which start with @ or ?.
12805 lt_cv_sys_global_symbol_pipe="$AWK '"\
12806 " {last_section=section; section=\$ 3};"\
12807 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12808 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12809 " \$ 0!~/External *\|/{next};"\
12810 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12811 " {if(hide[section]) next};"\
12812 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12813 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12814 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12815 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12816 " ' prfx=^$ac_symprfx"
12817 else
12818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12819 fi
12820 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12821
12822 # Check to see that the pipe works correctly.
12823 pipe_works=no
12824
12825 rm -f conftest*
12826 cat > conftest.$ac_ext <<_LT_EOF
12827 #ifdef __cplusplus
12828 extern "C" {
12829 #endif
12830 char nm_test_var;
12831 void nm_test_func(void);
12832 void nm_test_func(void){}
12833 #ifdef __cplusplus
12834 }
12835 #endif
12836 int main(){nm_test_var='a';nm_test_func();return(0);}
12837 _LT_EOF
12838
12839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12840 (eval $ac_compile) 2>&5
12841 ac_status=$?
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843 test $ac_status = 0; }; then
12844 # Now try to grab the symbols.
12845 nlist=conftest.nm
12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12847 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12848 ac_status=$?
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; } && test -s "$nlist"; then
12851 # Try sorting and uniquifying the output.
12852 if sort "$nlist" | uniq > "$nlist"T; then
12853 mv -f "$nlist"T "$nlist"
12854 else
12855 rm -f "$nlist"T
12856 fi
12857
12858 # Make sure that we snagged all the symbols we need.
12859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12861 cat <<_LT_EOF > conftest.$ac_ext
12862 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12863 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12864 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12865 relocations are performed -- see ld's documentation on pseudo-relocs. */
12866 # define LT_DLSYM_CONST
12867 #elif defined(__osf__)
12868 /* This system does not cope well with relocations in const data. */
12869 # define LT_DLSYM_CONST
12870 #else
12871 # define LT_DLSYM_CONST const
12872 #endif
12873
12874 #ifdef __cplusplus
12875 extern "C" {
12876 #endif
12877
12878 _LT_EOF
12879 # Now generate the symbol file.
12880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12881
12882 cat <<_LT_EOF >> conftest.$ac_ext
12883
12884 /* The mapping between symbol names and symbols. */
12885 LT_DLSYM_CONST struct {
12886 const char *name;
12887 void *address;
12888 }
12889 lt__PROGRAM__LTX_preloaded_symbols[] =
12890 {
12891 { "@PROGRAM@", (void *) 0 },
12892 _LT_EOF
12893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12894 cat <<\_LT_EOF >> conftest.$ac_ext
12895 {0, (void *) 0}
12896 };
12897
12898 /* This works around a problem in FreeBSD linker */
12899 #ifdef FREEBSD_WORKAROUND
12900 static const void *lt_preloaded_setup() {
12901 return lt__PROGRAM__LTX_preloaded_symbols;
12902 }
12903 #endif
12904
12905 #ifdef __cplusplus
12906 }
12907 #endif
12908 _LT_EOF
12909 # Now try linking the two files.
12910 mv conftest.$ac_objext conftstm.$ac_objext
12911 lt_globsym_save_LIBS=$LIBS
12912 lt_globsym_save_CFLAGS=$CFLAGS
12913 LIBS="conftstm.$ac_objext"
12914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916 (eval $ac_link) 2>&5
12917 ac_status=$?
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12920 pipe_works=yes
12921 fi
12922 LIBS=$lt_globsym_save_LIBS
12923 CFLAGS=$lt_globsym_save_CFLAGS
12924 else
12925 echo "cannot find nm_test_func in $nlist" >&5
12926 fi
12927 else
12928 echo "cannot find nm_test_var in $nlist" >&5
12929 fi
12930 else
12931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12932 fi
12933 else
12934 echo "$progname: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 fi
12937 rm -rf conftest* conftst*
12938
12939 # Do not use the global_symbol_pipe unless it works.
12940 if test "$pipe_works" = yes; then
12941 break
12942 else
12943 lt_cv_sys_global_symbol_pipe=
12944 fi
12945 done
12946
12947 fi
12948
12949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12950 lt_cv_sys_global_symbol_to_cdecl=
12951 fi
12952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12954 $as_echo "failed" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12957 $as_echo "ok" >&6; }
12958 fi
12959
12960 # Response file support.
12961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12962 nm_file_list_spec='@'
12963 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12964 nm_file_list_spec='@'
12965 fi
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12994 $as_echo_n "checking for sysroot... " >&6; }
12995
12996 # Check whether --with-sysroot was given.
12997 if test "${with_sysroot+set}" = set; then :
12998 withval=$with_sysroot;
12999 else
13000 with_sysroot=no
13001 fi
13002
13003
13004 lt_sysroot=
13005 case ${with_sysroot} in #(
13006 yes)
13007 if test "$GCC" = yes; then
13008 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13009 fi
13010 ;; #(
13011 /*)
13012 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13013 ;; #(
13014 no|'')
13015 ;; #(
13016 *)
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13018 $as_echo "${with_sysroot}" >&6; }
13019 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13020 ;;
13021 esac
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13024 $as_echo "${lt_sysroot:-no}" >&6; }
13025
13026
13027
13028
13029
13030 # Check whether --enable-libtool-lock was given.
13031 if test "${enable_libtool_lock+set}" = set; then :
13032 enableval=$enable_libtool_lock;
13033 fi
13034
13035 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13036
13037 # Some flags need to be propagated to the compiler or linker for good
13038 # libtool support.
13039 case $host in
13040 ia64-*-hpux*)
13041 # Find out which ABI we are using.
13042 echo 'int i;' > conftest.$ac_ext
13043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13044 (eval $ac_compile) 2>&5
13045 ac_status=$?
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; then
13048 case `/usr/bin/file conftest.$ac_objext` in
13049 *ELF-32*)
13050 HPUX_IA64_MODE="32"
13051 ;;
13052 *ELF-64*)
13053 HPUX_IA64_MODE="64"
13054 ;;
13055 esac
13056 fi
13057 rm -rf conftest*
13058 ;;
13059 *-*-irix6*)
13060 # Find out which ABI we are using.
13061 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13063 (eval $ac_compile) 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066 test $ac_status = 0; }; then
13067 if test "$lt_cv_prog_gnu_ld" = yes; then
13068 case `/usr/bin/file conftest.$ac_objext` in
13069 *32-bit*)
13070 LD="${LD-ld} -melf32bsmip"
13071 ;;
13072 *N32*)
13073 LD="${LD-ld} -melf32bmipn32"
13074 ;;
13075 *64-bit*)
13076 LD="${LD-ld} -melf64bmip"
13077 ;;
13078 esac
13079 else
13080 case `/usr/bin/file conftest.$ac_objext` in
13081 *32-bit*)
13082 LD="${LD-ld} -32"
13083 ;;
13084 *N32*)
13085 LD="${LD-ld} -n32"
13086 ;;
13087 *64-bit*)
13088 LD="${LD-ld} -64"
13089 ;;
13090 esac
13091 fi
13092 fi
13093 rm -rf conftest*
13094 ;;
13095
13096 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13097 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13098 # Find out which ABI we are using.
13099 echo 'int i;' > conftest.$ac_ext
13100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104 test $ac_status = 0; }; then
13105 case `/usr/bin/file conftest.o` in
13106 *32-bit*)
13107 case $host in
13108 x86_64-*kfreebsd*-gnu)
13109 LD="${LD-ld} -m elf_i386_fbsd"
13110 ;;
13111 x86_64-*linux*)
13112 case `/usr/bin/file conftest.o` in
13113 *x86-64*)
13114 LD="${LD-ld} -m elf32_x86_64"
13115 ;;
13116 *)
13117 LD="${LD-ld} -m elf_i386"
13118 ;;
13119 esac
13120 ;;
13121 powerpc64le-*)
13122 LD="${LD-ld} -m elf32lppclinux"
13123 ;;
13124 powerpc64-*)
13125 LD="${LD-ld} -m elf32ppclinux"
13126 ;;
13127 s390x-*linux*)
13128 LD="${LD-ld} -m elf_s390"
13129 ;;
13130 sparc64-*linux*)
13131 LD="${LD-ld} -m elf32_sparc"
13132 ;;
13133 esac
13134 ;;
13135 *64-bit*)
13136 case $host in
13137 x86_64-*kfreebsd*-gnu)
13138 LD="${LD-ld} -m elf_x86_64_fbsd"
13139 ;;
13140 x86_64-*linux*)
13141 LD="${LD-ld} -m elf_x86_64"
13142 ;;
13143 powerpcle-*)
13144 LD="${LD-ld} -m elf64lppc"
13145 ;;
13146 powerpc-*)
13147 LD="${LD-ld} -m elf64ppc"
13148 ;;
13149 s390*-*linux*|s390*-*tpf*)
13150 LD="${LD-ld} -m elf64_s390"
13151 ;;
13152 sparc*-*linux*)
13153 LD="${LD-ld} -m elf64_sparc"
13154 ;;
13155 esac
13156 ;;
13157 esac
13158 fi
13159 rm -rf conftest*
13160 ;;
13161
13162 *-*-sco3.2v5*)
13163 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13164 SAVE_CFLAGS="$CFLAGS"
13165 CFLAGS="$CFLAGS -belf"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13167 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13168 if ${lt_cv_cc_needs_belf+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 ac_ext=c
13172 ac_cpp='$CPP $CPPFLAGS'
13173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 int
13181 main ()
13182 {
13183
13184 ;
13185 return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189 lt_cv_cc_needs_belf=yes
13190 else
13191 lt_cv_cc_needs_belf=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 ac_ext=c
13196 ac_cpp='$CPP $CPPFLAGS'
13197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13200
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13203 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13204 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13205 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13206 CFLAGS="$SAVE_CFLAGS"
13207 fi
13208 ;;
13209 *-*solaris*)
13210 # Find out which ABI we are using.
13211 echo 'int i;' > conftest.$ac_ext
13212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13213 (eval $ac_compile) 2>&5
13214 ac_status=$?
13215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216 test $ac_status = 0; }; then
13217 case `/usr/bin/file conftest.o` in
13218 *64-bit*)
13219 case $lt_cv_prog_gnu_ld in
13220 yes*)
13221 case $host in
13222 i?86-*-solaris*)
13223 LD="${LD-ld} -m elf_x86_64"
13224 ;;
13225 sparc*-*-solaris*)
13226 LD="${LD-ld} -m elf64_sparc"
13227 ;;
13228 esac
13229 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13230 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13231 LD="${LD-ld}_sol2"
13232 fi
13233 ;;
13234 *)
13235 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13236 LD="${LD-ld} -64"
13237 fi
13238 ;;
13239 esac
13240 ;;
13241 esac
13242 fi
13243 rm -rf conftest*
13244 ;;
13245 esac
13246
13247 need_locks="$enable_libtool_lock"
13248
13249 if test -n "$ac_tool_prefix"; then
13250 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13251 set dummy ${ac_tool_prefix}mt; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$MANIFEST_TOOL"; then
13258 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13267 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271 done
13272 done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13278 if test -n "$MANIFEST_TOOL"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13280 $as_echo "$MANIFEST_TOOL" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284 fi
13285
13286
13287 fi
13288 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13289 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13290 # Extract the first word of "mt", so it can be a program name with args.
13291 set dummy mt; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 if test -n "$ac_ct_MANIFEST_TOOL"; then
13298 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13302 do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13307 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 break 2
13310 fi
13311 done
13312 done
13313 IFS=$as_save_IFS
13314
13315 fi
13316 fi
13317 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13318 if test -n "$ac_ct_MANIFEST_TOOL"; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13320 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13324 fi
13325
13326 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13327 MANIFEST_TOOL=":"
13328 else
13329 case $cross_compiling:$ac_tool_warned in
13330 yes:)
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13333 ac_tool_warned=yes ;;
13334 esac
13335 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13336 fi
13337 else
13338 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13339 fi
13340
13341 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13343 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13344 if ${lt_cv_path_mainfest_tool+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 lt_cv_path_mainfest_tool=no
13348 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13349 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13350 cat conftest.err >&5
13351 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13352 lt_cv_path_mainfest_tool=yes
13353 fi
13354 rm -f conftest*
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13357 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13358 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13359 MANIFEST_TOOL=:
13360 fi
13361
13362
13363
13364
13365
13366
13367 case $host_os in
13368 rhapsody* | darwin*)
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$DSYMUTIL"; then
13378 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13382 do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13387 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13390 fi
13391 done
13392 done
13393 IFS=$as_save_IFS
13394
13395 fi
13396 fi
13397 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13398 if test -n "$DSYMUTIL"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13400 $as_echo "$DSYMUTIL" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13404 fi
13405
13406
13407 fi
13408 if test -z "$ac_cv_prog_DSYMUTIL"; then
13409 ac_ct_DSYMUTIL=$DSYMUTIL
13410 # Extract the first word of "dsymutil", so it can be a program name with args.
13411 set dummy dsymutil; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$ac_ct_DSYMUTIL"; then
13418 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13422 do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13430 fi
13431 done
13432 done
13433 IFS=$as_save_IFS
13434
13435 fi
13436 fi
13437 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13438 if test -n "$ac_ct_DSYMUTIL"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13440 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13444 fi
13445
13446 if test "x$ac_ct_DSYMUTIL" = x; then
13447 DSYMUTIL=":"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450 yes:)
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453 ac_tool_warned=yes ;;
13454 esac
13455 DSYMUTIL=$ac_ct_DSYMUTIL
13456 fi
13457 else
13458 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13459 fi
13460
13461 if test -n "$ac_tool_prefix"; then
13462 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13463 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if ${ac_cv_prog_NMEDIT+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$NMEDIT"; then
13470 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13474 do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483 done
13484 done
13485 IFS=$as_save_IFS
13486
13487 fi
13488 fi
13489 NMEDIT=$ac_cv_prog_NMEDIT
13490 if test -n "$NMEDIT"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13492 $as_echo "$NMEDIT" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 fi
13497
13498
13499 fi
13500 if test -z "$ac_cv_prog_NMEDIT"; then
13501 ac_ct_NMEDIT=$NMEDIT
13502 # Extract the first word of "nmedit", so it can be a program name with args.
13503 set dummy nmedit; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 if test -n "$ac_ct_NMEDIT"; then
13510 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13511 else
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13514 do
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521 break 2
13522 fi
13523 done
13524 done
13525 IFS=$as_save_IFS
13526
13527 fi
13528 fi
13529 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13530 if test -n "$ac_ct_NMEDIT"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13532 $as_echo "$ac_ct_NMEDIT" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13536 fi
13537
13538 if test "x$ac_ct_NMEDIT" = x; then
13539 NMEDIT=":"
13540 else
13541 case $cross_compiling:$ac_tool_warned in
13542 yes:)
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13545 ac_tool_warned=yes ;;
13546 esac
13547 NMEDIT=$ac_ct_NMEDIT
13548 fi
13549 else
13550 NMEDIT="$ac_cv_prog_NMEDIT"
13551 fi
13552
13553 if test -n "$ac_tool_prefix"; then
13554 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13555 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if ${ac_cv_prog_LIPO+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test -n "$LIPO"; then
13562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 LIPO=$ac_cv_prog_LIPO
13582 if test -n "$LIPO"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13584 $as_echo "$LIPO" >&6; }
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588 fi
13589
13590
13591 fi
13592 if test -z "$ac_cv_prog_LIPO"; then
13593 ac_ct_LIPO=$LIPO
13594 # Extract the first word of "lipo", so it can be a program name with args.
13595 set dummy lipo; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 if test -n "$ac_ct_LIPO"; then
13602 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13603 else
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13606 do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_prog_ac_ct_LIPO="lipo"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615 done
13616 done
13617 IFS=$as_save_IFS
13618
13619 fi
13620 fi
13621 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13622 if test -n "$ac_ct_LIPO"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13624 $as_echo "$ac_ct_LIPO" >&6; }
13625 else
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13628 fi
13629
13630 if test "x$ac_ct_LIPO" = x; then
13631 LIPO=":"
13632 else
13633 case $cross_compiling:$ac_tool_warned in
13634 yes:)
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13637 ac_tool_warned=yes ;;
13638 esac
13639 LIPO=$ac_ct_LIPO
13640 fi
13641 else
13642 LIPO="$ac_cv_prog_LIPO"
13643 fi
13644
13645 if test -n "$ac_tool_prefix"; then
13646 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13647 set dummy ${ac_tool_prefix}otool; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649 $as_echo_n "checking for $ac_word... " >&6; }
13650 if ${ac_cv_prog_OTOOL+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 if test -n "$OTOOL"; then
13654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13655 else
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH
13658 do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13663 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13666 fi
13667 done
13668 done
13669 IFS=$as_save_IFS
13670
13671 fi
13672 fi
13673 OTOOL=$ac_cv_prog_OTOOL
13674 if test -n "$OTOOL"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13676 $as_echo "$OTOOL" >&6; }
13677 else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 fi
13681
13682
13683 fi
13684 if test -z "$ac_cv_prog_OTOOL"; then
13685 ac_ct_OTOOL=$OTOOL
13686 # Extract the first word of "otool", so it can be a program name with args.
13687 set dummy otool; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689 $as_echo_n "checking for $ac_word... " >&6; }
13690 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 if test -n "$ac_ct_OTOOL"; then
13694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13695 else
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13698 do
13699 IFS=$as_save_IFS
13700 test -z "$as_dir" && as_dir=.
13701 for ac_exec_ext in '' $ac_executable_extensions; do
13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703 ac_cv_prog_ac_ct_OTOOL="otool"
13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705 break 2
13706 fi
13707 done
13708 done
13709 IFS=$as_save_IFS
13710
13711 fi
13712 fi
13713 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13714 if test -n "$ac_ct_OTOOL"; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13716 $as_echo "$ac_ct_OTOOL" >&6; }
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721
13722 if test "x$ac_ct_OTOOL" = x; then
13723 OTOOL=":"
13724 else
13725 case $cross_compiling:$ac_tool_warned in
13726 yes:)
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13729 ac_tool_warned=yes ;;
13730 esac
13731 OTOOL=$ac_ct_OTOOL
13732 fi
13733 else
13734 OTOOL="$ac_cv_prog_OTOOL"
13735 fi
13736
13737 if test -n "$ac_tool_prefix"; then
13738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741 $as_echo_n "checking for $ac_word... " >&6; }
13742 if ${ac_cv_prog_OTOOL64+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 if test -n "$OTOOL64"; then
13746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13747 else
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13750 do
13751 IFS=$as_save_IFS
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
13754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757 break 2
13758 fi
13759 done
13760 done
13761 IFS=$as_save_IFS
13762
13763 fi
13764 fi
13765 OTOOL64=$ac_cv_prog_OTOOL64
13766 if test -n "$OTOOL64"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13768 $as_echo "$OTOOL64" >&6; }
13769 else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773
13774
13775 fi
13776 if test -z "$ac_cv_prog_OTOOL64"; then
13777 ac_ct_OTOOL64=$OTOOL64
13778 # Extract the first word of "otool64", so it can be a program name with args.
13779 set dummy otool64; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 if test -n "$ac_ct_OTOOL64"; then
13786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_ac_ct_OTOOL64="otool64"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13798 fi
13799 done
13800 done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13806 if test -n "$ac_ct_OTOOL64"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13808 $as_echo "$ac_ct_OTOOL64" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814 if test "x$ac_ct_OTOOL64" = x; then
13815 OTOOL64=":"
13816 else
13817 case $cross_compiling:$ac_tool_warned in
13818 yes:)
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13821 ac_tool_warned=yes ;;
13822 esac
13823 OTOOL64=$ac_ct_OTOOL64
13824 fi
13825 else
13826 OTOOL64="$ac_cv_prog_OTOOL64"
13827 fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13856 $as_echo_n "checking for -single_module linker flag... " >&6; }
13857 if ${lt_cv_apple_cc_single_mod+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 lt_cv_apple_cc_single_mod=no
13861 if test -z "${LT_MULTI_MODULE}"; then
13862 # By default we will add the -single_module flag. You can override
13863 # by either setting the environment variable LT_MULTI_MODULE
13864 # non-empty at configure time, or by adding -multi_module to the
13865 # link flags.
13866 rm -rf libconftest.dylib*
13867 echo "int foo(void){return 1;}" > conftest.c
13868 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13869 -dynamiclib -Wl,-single_module conftest.c" >&5
13870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13871 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13872 _lt_result=$?
13873 # If there is a non-empty error log, and "single_module"
13874 # appears in it, assume the flag caused a linker warning
13875 if test -s conftest.err && $GREP single_module conftest.err; then
13876 cat conftest.err >&5
13877 # Otherwise, if the output was created with a 0 exit code from
13878 # the compiler, it worked.
13879 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13880 lt_cv_apple_cc_single_mod=yes
13881 else
13882 cat conftest.err >&5
13883 fi
13884 rm -rf libconftest.dylib*
13885 rm -f conftest.*
13886 fi
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13889 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13893 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 lt_cv_ld_exported_symbols_list=no
13897 save_LDFLAGS=$LDFLAGS
13898 echo "_main" > conftest.sym
13899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902
13903 int
13904 main ()
13905 {
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 lt_cv_ld_exported_symbols_list=yes
13913 else
13914 lt_cv_ld_exported_symbols_list=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LDFLAGS="$save_LDFLAGS"
13919
13920 fi
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13925 $as_echo_n "checking for -force_load linker flag... " >&6; }
13926 if ${lt_cv_ld_force_load+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 lt_cv_ld_force_load=no
13930 cat > conftest.c << _LT_EOF
13931 int forced_loaded() { return 2;}
13932 _LT_EOF
13933 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13934 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13935 echo "$AR cru libconftest.a conftest.o" >&5
13936 $AR cru libconftest.a conftest.o 2>&5
13937 echo "$RANLIB libconftest.a" >&5
13938 $RANLIB libconftest.a 2>&5
13939 cat > conftest.c << _LT_EOF
13940 int main() { return 0;}
13941 _LT_EOF
13942 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13943 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13944 _lt_result=$?
13945 if test -s conftest.err && $GREP force_load conftest.err; then
13946 cat conftest.err >&5
13947 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13948 lt_cv_ld_force_load=yes
13949 else
13950 cat conftest.err >&5
13951 fi
13952 rm -f conftest.err libconftest.a conftest conftest.c
13953 rm -rf conftest.dSYM
13954
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13957 $as_echo "$lt_cv_ld_force_load" >&6; }
13958 case $host_os in
13959 rhapsody* | darwin1.[012])
13960 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13961 darwin1.*)
13962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13963 darwin*) # darwin 5.x on
13964 # if running on 10.5 or later, the deployment target defaults
13965 # to the OS version, if on x86, and 10.4, the deployment
13966 # target defaults to 10.4. Don't you love it?
13967 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13968 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13970 10.[012]*)
13971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13972 10.*)
13973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13974 esac
13975 ;;
13976 esac
13977 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13978 _lt_dar_single_mod='$single_module'
13979 fi
13980 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13981 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13982 else
13983 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13984 fi
13985 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13986 _lt_dsymutil='~$DSYMUTIL $lib || :'
13987 else
13988 _lt_dsymutil=
13989 fi
13990 ;;
13991 esac
13992
13993 for ac_header in dlfcn.h
13994 do :
13995 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13996 "
13997 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_DLFCN_H 1
14000 _ACEOF
14001
14002 fi
14003
14004 done
14005
14006
14007
14008
14009
14010 # Set options
14011
14012
14013
14014 enable_dlopen=no
14015
14016
14017 enable_win32_dll=no
14018
14019
14020 # Check whether --enable-shared was given.
14021 if test "${enable_shared+set}" = set; then :
14022 enableval=$enable_shared; p=${PACKAGE-default}
14023 case $enableval in
14024 yes) enable_shared=yes ;;
14025 no) enable_shared=no ;;
14026 *)
14027 enable_shared=no
14028 # Look at the argument we got. We use all the common list separators.
14029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14030 for pkg in $enableval; do
14031 IFS="$lt_save_ifs"
14032 if test "X$pkg" = "X$p"; then
14033 enable_shared=yes
14034 fi
14035 done
14036 IFS="$lt_save_ifs"
14037 ;;
14038 esac
14039 else
14040 enable_shared=yes
14041 fi
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053 # Check whether --with-pic was given.
14054 if test "${with_pic+set}" = set; then :
14055 withval=$with_pic; lt_p=${PACKAGE-default}
14056 case $withval in
14057 yes|no) pic_mode=$withval ;;
14058 *)
14059 pic_mode=default
14060 # Look at the argument we got. We use all the common list separators.
14061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14062 for lt_pkg in $withval; do
14063 IFS="$lt_save_ifs"
14064 if test "X$lt_pkg" = "X$lt_p"; then
14065 pic_mode=yes
14066 fi
14067 done
14068 IFS="$lt_save_ifs"
14069 ;;
14070 esac
14071 else
14072 pic_mode=default
14073 fi
14074
14075
14076 test -z "$pic_mode" && pic_mode=default
14077
14078
14079
14080
14081
14082
14083
14084 # Check whether --enable-fast-install was given.
14085 if test "${enable_fast_install+set}" = set; then :
14086 enableval=$enable_fast_install; p=${PACKAGE-default}
14087 case $enableval in
14088 yes) enable_fast_install=yes ;;
14089 no) enable_fast_install=no ;;
14090 *)
14091 enable_fast_install=no
14092 # Look at the argument we got. We use all the common list separators.
14093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14094 for pkg in $enableval; do
14095 IFS="$lt_save_ifs"
14096 if test "X$pkg" = "X$p"; then
14097 enable_fast_install=yes
14098 fi
14099 done
14100 IFS="$lt_save_ifs"
14101 ;;
14102 esac
14103 else
14104 enable_fast_install=yes
14105 fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 # This can be used to rebuild libtool when needed
14118 LIBTOOL_DEPS="$ltmain"
14119
14120 # Always use our own libtool.
14121 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 test -z "$LN_S" && LN_S="ln -s"
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167 if test -n "${ZSH_VERSION+set}" ; then
14168 setopt NO_GLOB_SUBST
14169 fi
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14172 $as_echo_n "checking for objdir... " >&6; }
14173 if ${lt_cv_objdir+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 rm -f .libs 2>/dev/null
14177 mkdir .libs 2>/dev/null
14178 if test -d .libs; then
14179 lt_cv_objdir=.libs
14180 else
14181 # MS-DOS does not allow filenames that begin with a dot.
14182 lt_cv_objdir=_libs
14183 fi
14184 rmdir .libs 2>/dev/null
14185 fi
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14187 $as_echo "$lt_cv_objdir" >&6; }
14188 objdir=$lt_cv_objdir
14189
14190
14191
14192
14193
14194 cat >>confdefs.h <<_ACEOF
14195 #define LT_OBJDIR "$lt_cv_objdir/"
14196 _ACEOF
14197
14198
14199
14200
14201 case $host_os in
14202 aix3*)
14203 # AIX sometimes has problems with the GCC collect2 program. For some
14204 # reason, if we set the COLLECT_NAMES environment variable, the problems
14205 # vanish in a puff of smoke.
14206 if test "X${COLLECT_NAMES+set}" != Xset; then
14207 COLLECT_NAMES=
14208 export COLLECT_NAMES
14209 fi
14210 ;;
14211 esac
14212
14213 # Global variables:
14214 ofile=libtool
14215 can_build_shared=yes
14216
14217 # All known linkers require a `.a' archive for static linking (except MSVC,
14218 # which needs '.lib').
14219 libext=a
14220
14221 with_gnu_ld="$lt_cv_prog_gnu_ld"
14222
14223 old_CC="$CC"
14224 old_CFLAGS="$CFLAGS"
14225
14226 # Set sane defaults for various variables
14227 test -z "$CC" && CC=cc
14228 test -z "$LTCC" && LTCC=$CC
14229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14230 test -z "$LD" && LD=ld
14231 test -z "$ac_objext" && ac_objext=o
14232
14233 for cc_temp in $compiler""; do
14234 case $cc_temp in
14235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14237 \-*) ;;
14238 *) break;;
14239 esac
14240 done
14241 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14242
14243
14244 # Only perform the check for file, if the check method requires it
14245 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14246 case $deplibs_check_method in
14247 file_magic*)
14248 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14250 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14251 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 case $MAGIC_CMD in
14255 [\\/*] | ?:[\\/]*)
14256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14257 ;;
14258 *)
14259 lt_save_MAGIC_CMD="$MAGIC_CMD"
14260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14262 for ac_dir in $ac_dummy; do
14263 IFS="$lt_save_ifs"
14264 test -z "$ac_dir" && ac_dir=.
14265 if test -f $ac_dir/${ac_tool_prefix}file; then
14266 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14267 if test -n "$file_magic_test_file"; then
14268 case $deplibs_check_method in
14269 "file_magic "*)
14270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14273 $EGREP "$file_magic_regex" > /dev/null; then
14274 :
14275 else
14276 cat <<_LT_EOF 1>&2
14277
14278 *** Warning: the command libtool uses to detect shared libraries,
14279 *** $file_magic_cmd, produces output that libtool cannot recognize.
14280 *** The result is that libtool may fail to recognize shared libraries
14281 *** as such. This will affect the creation of libtool libraries that
14282 *** depend on shared libraries, but programs linked with such libtool
14283 *** libraries will work regardless of this problem. Nevertheless, you
14284 *** may want to report the problem to your system manager and/or to
14285 *** bug-libtool@gnu.org
14286
14287 _LT_EOF
14288 fi ;;
14289 esac
14290 fi
14291 break
14292 fi
14293 done
14294 IFS="$lt_save_ifs"
14295 MAGIC_CMD="$lt_save_MAGIC_CMD"
14296 ;;
14297 esac
14298 fi
14299
14300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14301 if test -n "$MAGIC_CMD"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14303 $as_echo "$MAGIC_CMD" >&6; }
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307 fi
14308
14309
14310
14311
14312
14313 if test -z "$lt_cv_path_MAGIC_CMD"; then
14314 if test -n "$ac_tool_prefix"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14316 $as_echo_n "checking for file... " >&6; }
14317 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 case $MAGIC_CMD in
14321 [\\/*] | ?:[\\/]*)
14322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14323 ;;
14324 *)
14325 lt_save_MAGIC_CMD="$MAGIC_CMD"
14326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14328 for ac_dir in $ac_dummy; do
14329 IFS="$lt_save_ifs"
14330 test -z "$ac_dir" && ac_dir=.
14331 if test -f $ac_dir/file; then
14332 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14333 if test -n "$file_magic_test_file"; then
14334 case $deplibs_check_method in
14335 "file_magic "*)
14336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14339 $EGREP "$file_magic_regex" > /dev/null; then
14340 :
14341 else
14342 cat <<_LT_EOF 1>&2
14343
14344 *** Warning: the command libtool uses to detect shared libraries,
14345 *** $file_magic_cmd, produces output that libtool cannot recognize.
14346 *** The result is that libtool may fail to recognize shared libraries
14347 *** as such. This will affect the creation of libtool libraries that
14348 *** depend on shared libraries, but programs linked with such libtool
14349 *** libraries will work regardless of this problem. Nevertheless, you
14350 *** may want to report the problem to your system manager and/or to
14351 *** bug-libtool@gnu.org
14352
14353 _LT_EOF
14354 fi ;;
14355 esac
14356 fi
14357 break
14358 fi
14359 done
14360 IFS="$lt_save_ifs"
14361 MAGIC_CMD="$lt_save_MAGIC_CMD"
14362 ;;
14363 esac
14364 fi
14365
14366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14367 if test -n "$MAGIC_CMD"; then
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14369 $as_echo "$MAGIC_CMD" >&6; }
14370 else
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14373 fi
14374
14375
14376 else
14377 MAGIC_CMD=:
14378 fi
14379 fi
14380
14381 fi
14382 ;;
14383 esac
14384
14385 # Use C for the default configuration in the libtool script
14386
14387 lt_save_CC="$CC"
14388 ac_ext=c
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393
14394
14395 # Source file extension for C test sources.
14396 ac_ext=c
14397
14398 # Object file extension for compiled C test sources.
14399 objext=o
14400 objext=$objext
14401
14402 # Code to be used in simple compile tests
14403 lt_simple_compile_test_code="int some_variable = 0;"
14404
14405 # Code to be used in simple link tests
14406 lt_simple_link_test_code='int main(){return(0);}'
14407
14408
14409
14410
14411
14412
14413
14414 # If no C compiler was specified, use CC.
14415 LTCC=${LTCC-"$CC"}
14416
14417 # If no C compiler flags were specified, use CFLAGS.
14418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14419
14420 # Allow CC to be a program name with arguments.
14421 compiler=$CC
14422
14423 # Save the default compiler, since it gets overwritten when the other
14424 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14425 compiler_DEFAULT=$CC
14426
14427 # save warnings/boilerplate of simple test code
14428 ac_outfile=conftest.$ac_objext
14429 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14431 _lt_compiler_boilerplate=`cat conftest.err`
14432 $RM conftest*
14433
14434 ac_outfile=conftest.$ac_objext
14435 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14437 _lt_linker_boilerplate=`cat conftest.err`
14438 $RM -r conftest*
14439
14440
14441 if test -n "$compiler"; then
14442
14443 lt_prog_compiler_no_builtin_flag=
14444
14445 if test "$GCC" = yes; then
14446 case $cc_basename in
14447 nvcc*)
14448 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14449 *)
14450 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14451 esac
14452
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14454 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14455 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 lt_cv_prog_compiler_rtti_exceptions=no
14459 ac_outfile=conftest.$ac_objext
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461 lt_compiler_flag="-fno-rtti -fno-exceptions"
14462 # Insert the option either (1) after the last *FLAGS variable, or
14463 # (2) before a word containing "conftest.", or (3) at the end.
14464 # Note that $ac_compile itself does not contain backslashes and begins
14465 # with a dollar sign (not a hyphen), so the echo should work correctly.
14466 # The option is referenced via a variable to avoid confusing sed.
14467 lt_compile=`echo "$ac_compile" | $SED \
14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14470 -e 's:$: $lt_compiler_flag:'`
14471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14472 (eval "$lt_compile" 2>conftest.err)
14473 ac_status=$?
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 if (exit $ac_status) && test -s "$ac_outfile"; then
14477 # The compiler can only warn and ignore the option if not recognized
14478 # So say no if there are warnings other than the usual output.
14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14482 lt_cv_prog_compiler_rtti_exceptions=yes
14483 fi
14484 fi
14485 $RM conftest*
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14489 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14490
14491 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14492 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14493 else
14494 :
14495 fi
14496
14497 fi
14498
14499
14500
14501
14502
14503
14504 lt_prog_compiler_wl=
14505 lt_prog_compiler_pic=
14506 lt_prog_compiler_static=
14507
14508
14509 if test "$GCC" = yes; then
14510 lt_prog_compiler_wl='-Wl,'
14511 lt_prog_compiler_static='-static'
14512
14513 case $host_os in
14514 aix*)
14515 # All AIX code is PIC.
14516 if test "$host_cpu" = ia64; then
14517 # AIX 5 now supports IA64 processor
14518 lt_prog_compiler_static='-Bstatic'
14519 fi
14520 ;;
14521
14522 amigaos*)
14523 case $host_cpu in
14524 powerpc)
14525 # see comment about AmigaOS4 .so support
14526 lt_prog_compiler_pic='-fPIC'
14527 ;;
14528 m68k)
14529 # FIXME: we need at least 68020 code to build shared libraries, but
14530 # adding the `-m68020' flag to GCC prevents building anything better,
14531 # like `-m68040'.
14532 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14533 ;;
14534 esac
14535 ;;
14536
14537 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14538 # PIC is the default for these OSes.
14539 ;;
14540
14541 mingw* | cygwin* | pw32* | os2* | cegcc*)
14542 # This hack is so that the source file can tell whether it is being
14543 # built for inclusion in a dll (and should export symbols for example).
14544 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14545 # (--disable-auto-import) libraries
14546 lt_prog_compiler_pic='-DDLL_EXPORT'
14547 ;;
14548
14549 darwin* | rhapsody*)
14550 # PIC is the default on this platform
14551 # Common symbols not allowed in MH_DYLIB files
14552 lt_prog_compiler_pic='-fno-common'
14553 ;;
14554
14555 haiku*)
14556 # PIC is the default for Haiku.
14557 # The "-static" flag exists, but is broken.
14558 lt_prog_compiler_static=
14559 ;;
14560
14561 hpux*)
14562 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14563 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14564 # sets the default TLS model and affects inlining.
14565 case $host_cpu in
14566 hppa*64*)
14567 # +Z the default
14568 ;;
14569 *)
14570 lt_prog_compiler_pic='-fPIC'
14571 ;;
14572 esac
14573 ;;
14574
14575 interix[3-9]*)
14576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14577 # Instead, we relocate shared libraries at runtime.
14578 ;;
14579
14580 msdosdjgpp*)
14581 # Just because we use GCC doesn't mean we suddenly get shared libraries
14582 # on systems that don't support them.
14583 lt_prog_compiler_can_build_shared=no
14584 enable_shared=no
14585 ;;
14586
14587 *nto* | *qnx*)
14588 # QNX uses GNU C++, but need to define -shared option too, otherwise
14589 # it will coredump.
14590 lt_prog_compiler_pic='-fPIC -shared'
14591 ;;
14592
14593 sysv4*MP*)
14594 if test -d /usr/nec; then
14595 lt_prog_compiler_pic=-Kconform_pic
14596 fi
14597 ;;
14598
14599 *)
14600 lt_prog_compiler_pic='-fPIC'
14601 ;;
14602 esac
14603
14604 case $cc_basename in
14605 nvcc*) # Cuda Compiler Driver 2.2
14606 lt_prog_compiler_wl='-Xlinker '
14607 if test -n "$lt_prog_compiler_pic"; then
14608 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14609 fi
14610 ;;
14611 esac
14612 else
14613 # PORTME Check for flag to pass linker flags through the system compiler.
14614 case $host_os in
14615 aix*)
14616 lt_prog_compiler_wl='-Wl,'
14617 if test "$host_cpu" = ia64; then
14618 # AIX 5 now supports IA64 processor
14619 lt_prog_compiler_static='-Bstatic'
14620 else
14621 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14622 fi
14623 ;;
14624
14625 mingw* | cygwin* | pw32* | os2* | cegcc*)
14626 # This hack is so that the source file can tell whether it is being
14627 # built for inclusion in a dll (and should export symbols for example).
14628 lt_prog_compiler_pic='-DDLL_EXPORT'
14629 ;;
14630
14631 hpux9* | hpux10* | hpux11*)
14632 lt_prog_compiler_wl='-Wl,'
14633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14634 # not for PA HP-UX.
14635 case $host_cpu in
14636 hppa*64*|ia64*)
14637 # +Z the default
14638 ;;
14639 *)
14640 lt_prog_compiler_pic='+Z'
14641 ;;
14642 esac
14643 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14644 lt_prog_compiler_static='${wl}-a ${wl}archive'
14645 ;;
14646
14647 irix5* | irix6* | nonstopux*)
14648 lt_prog_compiler_wl='-Wl,'
14649 # PIC (with -KPIC) is the default.
14650 lt_prog_compiler_static='-non_shared'
14651 ;;
14652
14653 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14654 case $cc_basename in
14655 # old Intel for x86_64 which still supported -KPIC.
14656 ecc*)
14657 lt_prog_compiler_wl='-Wl,'
14658 lt_prog_compiler_pic='-KPIC'
14659 lt_prog_compiler_static='-static'
14660 ;;
14661 # icc used to be incompatible with GCC.
14662 # ICC 10 doesn't accept -KPIC any more.
14663 icc* | ifort*)
14664 lt_prog_compiler_wl='-Wl,'
14665 lt_prog_compiler_pic='-fPIC'
14666 lt_prog_compiler_static='-static'
14667 ;;
14668 # Lahey Fortran 8.1.
14669 lf95*)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='--shared'
14672 lt_prog_compiler_static='--static'
14673 ;;
14674 nagfor*)
14675 # NAG Fortran compiler
14676 lt_prog_compiler_wl='-Wl,-Wl,,'
14677 lt_prog_compiler_pic='-PIC'
14678 lt_prog_compiler_static='-Bstatic'
14679 ;;
14680 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14681 # Portland Group compilers (*not* the Pentium gcc compiler,
14682 # which looks to be a dead project)
14683 lt_prog_compiler_wl='-Wl,'
14684 lt_prog_compiler_pic='-fpic'
14685 lt_prog_compiler_static='-Bstatic'
14686 ;;
14687 ccc*)
14688 lt_prog_compiler_wl='-Wl,'
14689 # All Alpha code is PIC.
14690 lt_prog_compiler_static='-non_shared'
14691 ;;
14692 xl* | bgxl* | bgf* | mpixl*)
14693 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14694 lt_prog_compiler_wl='-Wl,'
14695 lt_prog_compiler_pic='-qpic'
14696 lt_prog_compiler_static='-qstaticlink'
14697 ;;
14698 *)
14699 case `$CC -V 2>&1 | sed 5q` in
14700 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14701 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
14704 lt_prog_compiler_wl=''
14705 ;;
14706 *Sun\ F* | *Sun*Fortran*)
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-Bstatic'
14709 lt_prog_compiler_wl='-Qoption ld '
14710 ;;
14711 *Sun\ C*)
14712 # Sun C 5.9
14713 lt_prog_compiler_pic='-KPIC'
14714 lt_prog_compiler_static='-Bstatic'
14715 lt_prog_compiler_wl='-Wl,'
14716 ;;
14717 *Intel*\ [CF]*Compiler*)
14718 lt_prog_compiler_wl='-Wl,'
14719 lt_prog_compiler_pic='-fPIC'
14720 lt_prog_compiler_static='-static'
14721 ;;
14722 *Portland\ Group*)
14723 lt_prog_compiler_wl='-Wl,'
14724 lt_prog_compiler_pic='-fpic'
14725 lt_prog_compiler_static='-Bstatic'
14726 ;;
14727 esac
14728 ;;
14729 esac
14730 ;;
14731
14732 newsos6)
14733 lt_prog_compiler_pic='-KPIC'
14734 lt_prog_compiler_static='-Bstatic'
14735 ;;
14736
14737 *nto* | *qnx*)
14738 # QNX uses GNU C++, but need to define -shared option too, otherwise
14739 # it will coredump.
14740 lt_prog_compiler_pic='-fPIC -shared'
14741 ;;
14742
14743 osf3* | osf4* | osf5*)
14744 lt_prog_compiler_wl='-Wl,'
14745 # All OSF/1 code is PIC.
14746 lt_prog_compiler_static='-non_shared'
14747 ;;
14748
14749 rdos*)
14750 lt_prog_compiler_static='-non_shared'
14751 ;;
14752
14753 solaris*)
14754 lt_prog_compiler_pic='-KPIC'
14755 lt_prog_compiler_static='-Bstatic'
14756 case $cc_basename in
14757 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14758 lt_prog_compiler_wl='-Qoption ld ';;
14759 *)
14760 lt_prog_compiler_wl='-Wl,';;
14761 esac
14762 ;;
14763
14764 sunos4*)
14765 lt_prog_compiler_wl='-Qoption ld '
14766 lt_prog_compiler_pic='-PIC'
14767 lt_prog_compiler_static='-Bstatic'
14768 ;;
14769
14770 sysv4 | sysv4.2uw2* | sysv4.3*)
14771 lt_prog_compiler_wl='-Wl,'
14772 lt_prog_compiler_pic='-KPIC'
14773 lt_prog_compiler_static='-Bstatic'
14774 ;;
14775
14776 sysv4*MP*)
14777 if test -d /usr/nec ;then
14778 lt_prog_compiler_pic='-Kconform_pic'
14779 lt_prog_compiler_static='-Bstatic'
14780 fi
14781 ;;
14782
14783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14784 lt_prog_compiler_wl='-Wl,'
14785 lt_prog_compiler_pic='-KPIC'
14786 lt_prog_compiler_static='-Bstatic'
14787 ;;
14788
14789 unicos*)
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_can_build_shared=no
14792 ;;
14793
14794 uts4*)
14795 lt_prog_compiler_pic='-pic'
14796 lt_prog_compiler_static='-Bstatic'
14797 ;;
14798
14799 *)
14800 lt_prog_compiler_can_build_shared=no
14801 ;;
14802 esac
14803 fi
14804
14805 case $host_os in
14806 # For platforms which do not support PIC, -DPIC is meaningless:
14807 *djgpp*)
14808 lt_prog_compiler_pic=
14809 ;;
14810 *)
14811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14812 ;;
14813 esac
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14816 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14817 if ${lt_cv_prog_compiler_pic+:} false; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14823 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14824 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14825
14826 #
14827 # Check to make sure the PIC flag actually works.
14828 #
14829 if test -n "$lt_prog_compiler_pic"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14831 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14832 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 lt_cv_prog_compiler_pic_works=no
14836 ac_outfile=conftest.$ac_objext
14837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14838 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14839 # Insert the option either (1) after the last *FLAGS variable, or
14840 # (2) before a word containing "conftest.", or (3) at the end.
14841 # Note that $ac_compile itself does not contain backslashes and begins
14842 # with a dollar sign (not a hyphen), so the echo should work correctly.
14843 # The option is referenced via a variable to avoid confusing sed.
14844 lt_compile=`echo "$ac_compile" | $SED \
14845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14847 -e 's:$: $lt_compiler_flag:'`
14848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14849 (eval "$lt_compile" 2>conftest.err)
14850 ac_status=$?
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 if (exit $ac_status) && test -s "$ac_outfile"; then
14854 # The compiler can only warn and ignore the option if not recognized
14855 # So say no if there are warnings other than the usual output.
14856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14859 lt_cv_prog_compiler_pic_works=yes
14860 fi
14861 fi
14862 $RM conftest*
14863
14864 fi
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14866 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14867
14868 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14869 case $lt_prog_compiler_pic in
14870 "" | " "*) ;;
14871 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14872 esac
14873 else
14874 lt_prog_compiler_pic=
14875 lt_prog_compiler_can_build_shared=no
14876 fi
14877
14878 fi
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890 #
14891 # Check to make sure the static flag actually works.
14892 #
14893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14896 if ${lt_cv_prog_compiler_static_works+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 lt_cv_prog_compiler_static_works=no
14900 save_LDFLAGS="$LDFLAGS"
14901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14904 # The linker can only warn and ignore the option if not recognized
14905 # So say no if there are warnings
14906 if test -s conftest.err; then
14907 # Append any errors to the config.log.
14908 cat conftest.err 1>&5
14909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911 if diff conftest.exp conftest.er2 >/dev/null; then
14912 lt_cv_prog_compiler_static_works=yes
14913 fi
14914 else
14915 lt_cv_prog_compiler_static_works=yes
14916 fi
14917 fi
14918 $RM -r conftest*
14919 LDFLAGS="$save_LDFLAGS"
14920
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14924
14925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14926 :
14927 else
14928 lt_prog_compiler_static=
14929 fi
14930
14931
14932
14933
14934
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14939 if ${lt_cv_prog_compiler_c_o+:} false; then :
14940 $as_echo_n "(cached) " >&6
14941 else
14942 lt_cv_prog_compiler_c_o=no
14943 $RM -r conftest 2>/dev/null
14944 mkdir conftest
14945 cd conftest
14946 mkdir out
14947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14948
14949 lt_compiler_flag="-o out/conftest2.$ac_objext"
14950 # Insert the option either (1) after the last *FLAGS variable, or
14951 # (2) before a word containing "conftest.", or (3) at the end.
14952 # Note that $ac_compile itself does not contain backslashes and begins
14953 # with a dollar sign (not a hyphen), so the echo should work correctly.
14954 lt_compile=`echo "$ac_compile" | $SED \
14955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957 -e 's:$: $lt_compiler_flag:'`
14958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14959 (eval "$lt_compile" 2>out/conftest.err)
14960 ac_status=$?
14961 cat out/conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14964 then
14965 # The compiler can only warn and ignore the option if not recognized
14966 # So say no if there are warnings
14967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14970 lt_cv_prog_compiler_c_o=yes
14971 fi
14972 fi
14973 chmod u+w . 2>&5
14974 $RM conftest*
14975 # SGI C++ compiler will create directory out/ii_files/ for
14976 # template instantiation
14977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14978 $RM out/* && rmdir out
14979 cd ..
14980 $RM -r conftest
14981 $RM conftest*
14982
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14986
14987
14988
14989
14990
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14994 if ${lt_cv_prog_compiler_c_o+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 lt_cv_prog_compiler_c_o=no
14998 $RM -r conftest 2>/dev/null
14999 mkdir conftest
15000 cd conftest
15001 mkdir out
15002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15003
15004 lt_compiler_flag="-o out/conftest2.$ac_objext"
15005 # Insert the option either (1) after the last *FLAGS variable, or
15006 # (2) before a word containing "conftest.", or (3) at the end.
15007 # Note that $ac_compile itself does not contain backslashes and begins
15008 # with a dollar sign (not a hyphen), so the echo should work correctly.
15009 lt_compile=`echo "$ac_compile" | $SED \
15010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15012 -e 's:$: $lt_compiler_flag:'`
15013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15014 (eval "$lt_compile" 2>out/conftest.err)
15015 ac_status=$?
15016 cat out/conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15019 then
15020 # The compiler can only warn and ignore the option if not recognized
15021 # So say no if there are warnings
15022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15025 lt_cv_prog_compiler_c_o=yes
15026 fi
15027 fi
15028 chmod u+w . 2>&5
15029 $RM conftest*
15030 # SGI C++ compiler will create directory out/ii_files/ for
15031 # template instantiation
15032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15033 $RM out/* && rmdir out
15034 cd ..
15035 $RM -r conftest
15036 $RM conftest*
15037
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15041
15042
15043
15044
15045 hard_links="nottested"
15046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15047 # do not overwrite the value of need_locks provided by the user
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15049 $as_echo_n "checking if we can lock with hard links... " >&6; }
15050 hard_links=yes
15051 $RM conftest*
15052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15053 touch conftest.a
15054 ln conftest.a conftest.b 2>&5 || hard_links=no
15055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15057 $as_echo "$hard_links" >&6; }
15058 if test "$hard_links" = no; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15061 need_locks=warn
15062 fi
15063 else
15064 need_locks=no
15065 fi
15066
15067
15068
15069
15070
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15074
15075 runpath_var=
15076 allow_undefined_flag=
15077 always_export_symbols=no
15078 archive_cmds=
15079 archive_expsym_cmds=
15080 compiler_needs_object=no
15081 enable_shared_with_static_runtimes=no
15082 export_dynamic_flag_spec=
15083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15084 hardcode_automatic=no
15085 hardcode_direct=no
15086 hardcode_direct_absolute=no
15087 hardcode_libdir_flag_spec=
15088 hardcode_libdir_separator=
15089 hardcode_minus_L=no
15090 hardcode_shlibpath_var=unsupported
15091 inherit_rpath=no
15092 link_all_deplibs=unknown
15093 module_cmds=
15094 module_expsym_cmds=
15095 old_archive_from_new_cmds=
15096 old_archive_from_expsyms_cmds=
15097 thread_safe_flag_spec=
15098 whole_archive_flag_spec=
15099 # include_expsyms should be a list of space-separated symbols to be *always*
15100 # included in the symbol list
15101 include_expsyms=
15102 # exclude_expsyms can be an extended regexp of symbols to exclude
15103 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15104 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15105 # as well as any symbol that contains `d'.
15106 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15107 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15108 # platforms (ab)use it in PIC code, but their linkers get confused if
15109 # the symbol is explicitly referenced. Since portable code cannot
15110 # rely on this symbol name, it's probably fine to never include it in
15111 # preloaded symbol tables.
15112 # Exclude shared library initialization/finalization symbols.
15113 extract_expsyms_cmds=
15114
15115 case $host_os in
15116 cygwin* | mingw* | pw32* | cegcc*)
15117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15118 # When not using gcc, we currently assume that we are using
15119 # Microsoft Visual C++.
15120 if test "$GCC" != yes; then
15121 with_gnu_ld=no
15122 fi
15123 ;;
15124 interix*)
15125 # we just hope/assume this is gcc and not c89 (= MSVC++)
15126 with_gnu_ld=yes
15127 ;;
15128 openbsd*)
15129 with_gnu_ld=no
15130 ;;
15131 linux* | k*bsd*-gnu | gnu*)
15132 link_all_deplibs=no
15133 ;;
15134 esac
15135
15136 ld_shlibs=yes
15137
15138 # On some targets, GNU ld is compatible enough with the native linker
15139 # that we're better off using the native interface for both.
15140 lt_use_gnu_ld_interface=no
15141 if test "$with_gnu_ld" = yes; then
15142 case $host_os in
15143 aix*)
15144 # The AIX port of GNU ld has always aspired to compatibility
15145 # with the native linker. However, as the warning in the GNU ld
15146 # block says, versions before 2.19.5* couldn't really create working
15147 # shared libraries, regardless of the interface used.
15148 case `$LD -v 2>&1` in
15149 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15150 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15151 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15152 *)
15153 lt_use_gnu_ld_interface=yes
15154 ;;
15155 esac
15156 ;;
15157 *)
15158 lt_use_gnu_ld_interface=yes
15159 ;;
15160 esac
15161 fi
15162
15163 if test "$lt_use_gnu_ld_interface" = yes; then
15164 # If archive_cmds runs LD, not CC, wlarc should be empty
15165 wlarc='${wl}'
15166
15167 # Set some defaults for GNU ld with shared library support. These
15168 # are reset later if shared libraries are not supported. Putting them
15169 # here allows them to be overridden if necessary.
15170 runpath_var=LD_RUN_PATH
15171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15172 export_dynamic_flag_spec='${wl}--export-dynamic'
15173 # ancient GNU ld didn't support --whole-archive et. al.
15174 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15176 else
15177 whole_archive_flag_spec=
15178 fi
15179 supports_anon_versioning=no
15180 case `$LD -v 2>&1` in
15181 *GNU\ gold*) supports_anon_versioning=yes ;;
15182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15185 *\ 2.11.*) ;; # other 2.11 versions
15186 *) supports_anon_versioning=yes ;;
15187 esac
15188
15189 # See if GNU ld supports shared libraries.
15190 case $host_os in
15191 aix[3-9]*)
15192 # On AIX/PPC, the GNU linker is very broken
15193 if test "$host_cpu" != ia64; then
15194 ld_shlibs=no
15195 cat <<_LT_EOF 1>&2
15196
15197 *** Warning: the GNU linker, at least up to release 2.19, is reported
15198 *** to be unable to reliably create shared libraries on AIX.
15199 *** Therefore, libtool is disabling shared libraries support. If you
15200 *** really care for shared libraries, you may want to install binutils
15201 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15202 *** You will then need to restart the configuration process.
15203
15204 _LT_EOF
15205 fi
15206 ;;
15207
15208 amigaos*)
15209 case $host_cpu in
15210 powerpc)
15211 # see comment about AmigaOS4 .so support
15212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15213 archive_expsym_cmds=''
15214 ;;
15215 m68k)
15216 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)'
15217 hardcode_libdir_flag_spec='-L$libdir'
15218 hardcode_minus_L=yes
15219 ;;
15220 esac
15221 ;;
15222
15223 beos*)
15224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15225 allow_undefined_flag=unsupported
15226 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15227 # support --undefined. This deserves some investigation. FIXME
15228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15229 else
15230 ld_shlibs=no
15231 fi
15232 ;;
15233
15234 cygwin* | mingw* | pw32* | cegcc*)
15235 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15236 # as there is no search path for DLLs.
15237 hardcode_libdir_flag_spec='-L$libdir'
15238 export_dynamic_flag_spec='${wl}--export-all-symbols'
15239 allow_undefined_flag=unsupported
15240 always_export_symbols=no
15241 enable_shared_with_static_runtimes=yes
15242 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'
15243 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15244
15245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15247 # If the export-symbols file already is a .def file (1st line
15248 # is EXPORTS), use it as is; otherwise, prepend...
15249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15250 cp $export_symbols $output_objdir/$soname.def;
15251 else
15252 echo EXPORTS > $output_objdir/$soname.def;
15253 cat $export_symbols >> $output_objdir/$soname.def;
15254 fi~
15255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15256 else
15257 ld_shlibs=no
15258 fi
15259 ;;
15260
15261 haiku*)
15262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15263 link_all_deplibs=yes
15264 ;;
15265
15266 interix[3-9]*)
15267 hardcode_direct=no
15268 hardcode_shlibpath_var=no
15269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15270 export_dynamic_flag_spec='${wl}-E'
15271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15272 # Instead, shared libraries are loaded at an image base (0x10000000 by
15273 # default) and relocated if they conflict, which is a slow very memory
15274 # consuming and fragmenting process. To avoid this, we pick a random,
15275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15278 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'
15279 ;;
15280
15281 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15282 tmp_diet=no
15283 if test "$host_os" = linux-dietlibc; then
15284 case $cc_basename in
15285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15286 esac
15287 fi
15288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15289 && test "$tmp_diet" = no
15290 then
15291 tmp_addflag=' $pic_flag'
15292 tmp_sharedflag='-shared'
15293 case $cc_basename,$host_cpu in
15294 pgcc*) # Portland Group C compiler
15295 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'
15296 tmp_addflag=' $pic_flag'
15297 ;;
15298 pgf77* | pgf90* | pgf95* | pgfortran*)
15299 # Portland Group f77 and f90 compilers
15300 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'
15301 tmp_addflag=' $pic_flag -Mnomain' ;;
15302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15303 tmp_addflag=' -i_dynamic' ;;
15304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15305 tmp_addflag=' -i_dynamic -nofor_main' ;;
15306 ifc* | ifort*) # Intel Fortran compiler
15307 tmp_addflag=' -nofor_main' ;;
15308 lf95*) # Lahey Fortran 8.1
15309 whole_archive_flag_spec=
15310 tmp_sharedflag='--shared' ;;
15311 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15312 tmp_sharedflag='-qmkshrobj'
15313 tmp_addflag= ;;
15314 nvcc*) # Cuda Compiler Driver 2.2
15315 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'
15316 compiler_needs_object=yes
15317 ;;
15318 esac
15319 case `$CC -V 2>&1 | sed 5q` in
15320 *Sun\ C*) # Sun C 5.9
15321 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'
15322 compiler_needs_object=yes
15323 tmp_sharedflag='-G' ;;
15324 *Sun\ F*) # Sun Fortran 8.3
15325 tmp_sharedflag='-G' ;;
15326 esac
15327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328
15329 if test "x$supports_anon_versioning" = xyes; then
15330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15332 echo "local: *; };" >> $output_objdir/$libname.ver~
15333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15334 fi
15335
15336 case $cc_basename in
15337 xlf* | bgf* | bgxlf* | mpixlf*)
15338 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15341 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15342 if test "x$supports_anon_versioning" = xyes; then
15343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15345 echo "local: *; };" >> $output_objdir/$libname.ver~
15346 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15347 fi
15348 ;;
15349 esac
15350 else
15351 ld_shlibs=no
15352 fi
15353 ;;
15354
15355 netbsd* | netbsdelf*-gnu)
15356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15357 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15358 wlarc=
15359 else
15360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15361 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15362 fi
15363 ;;
15364
15365 solaris*)
15366 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15367 ld_shlibs=no
15368 cat <<_LT_EOF 1>&2
15369
15370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15371 *** create shared libraries on Solaris systems. Therefore, libtool
15372 *** is disabling shared libraries support. We urge you to upgrade GNU
15373 *** binutils to release 2.9.1 or newer. Another option is to modify
15374 *** your PATH or compiler configuration so that the native linker is
15375 *** used, and then restart.
15376
15377 _LT_EOF
15378 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15379 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15380 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15381 else
15382 ld_shlibs=no
15383 fi
15384 ;;
15385
15386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15387 case `$LD -v 2>&1` in
15388 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15389 ld_shlibs=no
15390 cat <<_LT_EOF 1>&2
15391
15392 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15393 *** reliably create shared libraries on SCO systems. Therefore, libtool
15394 *** is disabling shared libraries support. We urge you to upgrade GNU
15395 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15396 *** your PATH or compiler configuration so that the native linker is
15397 *** used, and then restart.
15398
15399 _LT_EOF
15400 ;;
15401 *)
15402 # For security reasons, it is highly recommended that you always
15403 # use absolute paths for naming shared libraries, and exclude the
15404 # DT_RUNPATH tag from executables and libraries. But doing so
15405 # requires that you compile everything twice, which is a pain.
15406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15410 else
15411 ld_shlibs=no
15412 fi
15413 ;;
15414 esac
15415 ;;
15416
15417 sunos4*)
15418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 wlarc=
15420 hardcode_direct=yes
15421 hardcode_shlibpath_var=no
15422 ;;
15423
15424 *)
15425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428 else
15429 ld_shlibs=no
15430 fi
15431 ;;
15432 esac
15433
15434 if test "$ld_shlibs" = no; then
15435 runpath_var=
15436 hardcode_libdir_flag_spec=
15437 export_dynamic_flag_spec=
15438 whole_archive_flag_spec=
15439 fi
15440 else
15441 # PORTME fill in a description of your system's linker (not GNU ld)
15442 case $host_os in
15443 aix3*)
15444 allow_undefined_flag=unsupported
15445 always_export_symbols=yes
15446 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'
15447 # Note: this linker hardcodes the directories in LIBPATH if there
15448 # are no directories specified by -L.
15449 hardcode_minus_L=yes
15450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15451 # Neither direct hardcoding nor static linking is supported with a
15452 # broken collect2.
15453 hardcode_direct=unsupported
15454 fi
15455 ;;
15456
15457 aix[4-9]*)
15458 if test "$host_cpu" = ia64; then
15459 # On IA64, the linker does run time linking by default, so we don't
15460 # have to do anything special.
15461 aix_use_runtimelinking=no
15462 exp_sym_flag='-Bexport'
15463 no_entry_flag=""
15464 else
15465 # If we're using GNU nm, then we don't want the "-C" option.
15466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15467 # Also, AIX nm treats weak defined symbols like other global
15468 # defined symbols, whereas GNU nm marks them as "W".
15469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15470 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15471 else
15472 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15473 fi
15474 aix_use_runtimelinking=no
15475
15476 # Test if we are trying to use run time linking or normal
15477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15478 # need to do runtime linking.
15479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15480 for ld_flag in $LDFLAGS; do
15481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15482 aix_use_runtimelinking=yes
15483 break
15484 fi
15485 done
15486 ;;
15487 esac
15488
15489 exp_sym_flag='-bexport'
15490 no_entry_flag='-bnoentry'
15491 fi
15492
15493 # When large executables or shared objects are built, AIX ld can
15494 # have problems creating the table of contents. If linking a library
15495 # or program results in "error TOC overflow" add -mminimal-toc to
15496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15498
15499 archive_cmds=''
15500 hardcode_direct=yes
15501 hardcode_direct_absolute=yes
15502 hardcode_libdir_separator=':'
15503 link_all_deplibs=yes
15504 file_list_spec='${wl}-f,'
15505
15506 if test "$GCC" = yes; then
15507 case $host_os in aix4.[012]|aix4.[012].*)
15508 # We only want to do this on AIX 4.2 and lower, the check
15509 # below for broken collect2 doesn't work under 4.3+
15510 collect2name=`${CC} -print-prog-name=collect2`
15511 if test -f "$collect2name" &&
15512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15513 then
15514 # We have reworked collect2
15515 :
15516 else
15517 # We have old collect2
15518 hardcode_direct=unsupported
15519 # It fails to find uninstalled libraries when the uninstalled
15520 # path is not listed in the libpath. Setting hardcode_minus_L
15521 # to unsupported forces relinking
15522 hardcode_minus_L=yes
15523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_libdir_separator=
15525 fi
15526 ;;
15527 esac
15528 shared_flag='-shared'
15529 if test "$aix_use_runtimelinking" = yes; then
15530 shared_flag="$shared_flag "'${wl}-G'
15531 fi
15532 link_all_deplibs=no
15533 else
15534 # not using gcc
15535 if test "$host_cpu" = ia64; then
15536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15537 # chokes on -Wl,-G. The following line is correct:
15538 shared_flag='-G'
15539 else
15540 if test "$aix_use_runtimelinking" = yes; then
15541 shared_flag='${wl}-G'
15542 else
15543 shared_flag='${wl}-bM:SRE'
15544 fi
15545 fi
15546 fi
15547
15548 export_dynamic_flag_spec='${wl}-bexpall'
15549 # It seems that -bexpall does not export symbols beginning with
15550 # underscore (_), so it is better to generate a list of symbols to export.
15551 always_export_symbols=yes
15552 if test "$aix_use_runtimelinking" = yes; then
15553 # Warning - without using the other runtime loading flags (-brtl),
15554 # -berok will link without error, but may produce a broken library.
15555 allow_undefined_flag='-berok'
15556 # Determine the default libpath from the value encoded in an
15557 # empty executable.
15558 if test "${lt_cv_aix_libpath+set}" = set; then
15559 aix_libpath=$lt_cv_aix_libpath
15560 else
15561 if ${lt_cv_aix_libpath_+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566
15567 int
15568 main ()
15569 {
15570
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 if ac_fn_c_try_link "$LINENO"; then :
15576
15577 lt_aix_libpath_sed='
15578 /Import File Strings/,/^$/ {
15579 /^0/ {
15580 s/^0 *\([^ ]*\) *$/\1/
15581 p
15582 }
15583 }'
15584 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15585 # Check for a 64-bit object if we didn't find anything.
15586 if test -z "$lt_cv_aix_libpath_"; then
15587 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15588 fi
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 if test -z "$lt_cv_aix_libpath_"; then
15593 lt_cv_aix_libpath_="/usr/lib:/lib"
15594 fi
15595
15596 fi
15597
15598 aix_libpath=$lt_cv_aix_libpath_
15599 fi
15600
15601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15602 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15603 else
15604 if test "$host_cpu" = ia64; then
15605 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15606 allow_undefined_flag="-z nodefs"
15607 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"
15608 else
15609 # Determine the default libpath from the value encoded in an
15610 # empty executable.
15611 if test "${lt_cv_aix_libpath+set}" = set; then
15612 aix_libpath=$lt_cv_aix_libpath
15613 else
15614 if ${lt_cv_aix_libpath_+:} false; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619
15620 int
15621 main ()
15622 {
15623
15624 ;
15625 return 0;
15626 }
15627 _ACEOF
15628 if ac_fn_c_try_link "$LINENO"; then :
15629
15630 lt_aix_libpath_sed='
15631 /Import File Strings/,/^$/ {
15632 /^0/ {
15633 s/^0 *\([^ ]*\) *$/\1/
15634 p
15635 }
15636 }'
15637 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15638 # Check for a 64-bit object if we didn't find anything.
15639 if test -z "$lt_cv_aix_libpath_"; then
15640 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15641 fi
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15645 if test -z "$lt_cv_aix_libpath_"; then
15646 lt_cv_aix_libpath_="/usr/lib:/lib"
15647 fi
15648
15649 fi
15650
15651 aix_libpath=$lt_cv_aix_libpath_
15652 fi
15653
15654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15655 # Warning - without using the other run time loading flags,
15656 # -berok will link without error, but may produce a broken library.
15657 no_undefined_flag=' ${wl}-bernotok'
15658 allow_undefined_flag=' ${wl}-berok'
15659 if test "$with_gnu_ld" = yes; then
15660 # We only use this code for GNU lds that support --whole-archive.
15661 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15662 else
15663 # Exported symbols can be pulled into shared objects from archives
15664 whole_archive_flag_spec='$convenience'
15665 fi
15666 archive_cmds_need_lc=yes
15667 # This is similar to how AIX traditionally builds its shared libraries.
15668 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15669 fi
15670 fi
15671 ;;
15672
15673 amigaos*)
15674 case $host_cpu in
15675 powerpc)
15676 # see comment about AmigaOS4 .so support
15677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 archive_expsym_cmds=''
15679 ;;
15680 m68k)
15681 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)'
15682 hardcode_libdir_flag_spec='-L$libdir'
15683 hardcode_minus_L=yes
15684 ;;
15685 esac
15686 ;;
15687
15688 bsdi[45]*)
15689 export_dynamic_flag_spec=-rdynamic
15690 ;;
15691
15692 cygwin* | mingw* | pw32* | cegcc*)
15693 # When not using gcc, we currently assume that we are using
15694 # Microsoft Visual C++.
15695 # hardcode_libdir_flag_spec is actually meaningless, as there is
15696 # no search path for DLLs.
15697 case $cc_basename in
15698 cl*)
15699 # Native MSVC
15700 hardcode_libdir_flag_spec=' '
15701 allow_undefined_flag=unsupported
15702 always_export_symbols=yes
15703 file_list_spec='@'
15704 # Tell ltmain to make .lib files, not .a files.
15705 libext=lib
15706 # Tell ltmain to make .dll files, not .so files.
15707 shrext_cmds=".dll"
15708 # FIXME: Setting linknames here is a bad hack.
15709 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15710 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15711 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15712 else
15713 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15714 fi~
15715 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15716 linknames='
15717 # The linker will not automatically build a static lib if we build a DLL.
15718 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15719 enable_shared_with_static_runtimes=yes
15720 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15722 # Don't use ranlib
15723 old_postinstall_cmds='chmod 644 $oldlib'
15724 postlink_cmds='lt_outputfile="@OUTPUT@"~
15725 lt_tool_outputfile="@TOOL_OUTPUT@"~
15726 case $lt_outputfile in
15727 *.exe|*.EXE) ;;
15728 *)
15729 lt_outputfile="$lt_outputfile.exe"
15730 lt_tool_outputfile="$lt_tool_outputfile.exe"
15731 ;;
15732 esac~
15733 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15734 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15735 $RM "$lt_outputfile.manifest";
15736 fi'
15737 ;;
15738 *)
15739 # Assume MSVC wrapper
15740 hardcode_libdir_flag_spec=' '
15741 allow_undefined_flag=unsupported
15742 # Tell ltmain to make .lib files, not .a files.
15743 libext=lib
15744 # Tell ltmain to make .dll files, not .so files.
15745 shrext_cmds=".dll"
15746 # FIXME: Setting linknames here is a bad hack.
15747 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15748 # The linker will automatically build a .lib file if we build a DLL.
15749 old_archive_from_new_cmds='true'
15750 # FIXME: Should let the user specify the lib program.
15751 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15752 enable_shared_with_static_runtimes=yes
15753 ;;
15754 esac
15755 ;;
15756
15757 darwin* | rhapsody*)
15758
15759
15760 archive_cmds_need_lc=no
15761 hardcode_direct=no
15762 hardcode_automatic=yes
15763 hardcode_shlibpath_var=unsupported
15764 if test "$lt_cv_ld_force_load" = "yes"; then
15765 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\"`'
15766
15767 else
15768 whole_archive_flag_spec=''
15769 fi
15770 link_all_deplibs=yes
15771 allow_undefined_flag="$_lt_dar_allow_undefined"
15772 case $cc_basename in
15773 ifort*) _lt_dar_can_shared=yes ;;
15774 *) _lt_dar_can_shared=$GCC ;;
15775 esac
15776 if test "$_lt_dar_can_shared" = "yes"; then
15777 output_verbose_link_cmd=func_echo_all
15778 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15779 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15780 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}"
15781 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}"
15782
15783 else
15784 ld_shlibs=no
15785 fi
15786
15787 ;;
15788
15789 dgux*)
15790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_shlibpath_var=no
15793 ;;
15794
15795 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15796 # support. Future versions do this automatically, but an explicit c++rt0.o
15797 # does not break anything, and helps significantly (at the cost of a little
15798 # extra space).
15799 freebsd2.2*)
15800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15801 hardcode_libdir_flag_spec='-R$libdir'
15802 hardcode_direct=yes
15803 hardcode_shlibpath_var=no
15804 ;;
15805
15806 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15807 freebsd2.*)
15808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_direct=yes
15810 hardcode_minus_L=yes
15811 hardcode_shlibpath_var=no
15812 ;;
15813
15814 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15815 freebsd* | dragonfly*)
15816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15817 hardcode_libdir_flag_spec='-R$libdir'
15818 hardcode_direct=yes
15819 hardcode_shlibpath_var=no
15820 ;;
15821
15822 hpux9*)
15823 if test "$GCC" = yes; then
15824 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15825 else
15826 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15827 fi
15828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15829 hardcode_libdir_separator=:
15830 hardcode_direct=yes
15831
15832 # hardcode_minus_L: Not really in the search PATH,
15833 # but as the default location of the library.
15834 hardcode_minus_L=yes
15835 export_dynamic_flag_spec='${wl}-E'
15836 ;;
15837
15838 hpux10*)
15839 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15840 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15841 else
15842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15843 fi
15844 if test "$with_gnu_ld" = no; then
15845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15846 hardcode_libdir_separator=:
15847 hardcode_direct=yes
15848 hardcode_direct_absolute=yes
15849 export_dynamic_flag_spec='${wl}-E'
15850 # hardcode_minus_L: Not really in the search PATH,
15851 # but as the default location of the library.
15852 hardcode_minus_L=yes
15853 fi
15854 ;;
15855
15856 hpux11*)
15857 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15858 case $host_cpu in
15859 hppa*64*)
15860 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 ;;
15862 ia64*)
15863 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15864 ;;
15865 *)
15866 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15867 ;;
15868 esac
15869 else
15870 case $host_cpu in
15871 hppa*64*)
15872 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 ;;
15874 ia64*)
15875 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15876 ;;
15877 *)
15878
15879 # Older versions of the 11.00 compiler do not understand -b yet
15880 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15882 $as_echo_n "checking if $CC understands -b... " >&6; }
15883 if ${lt_cv_prog_compiler__b+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 lt_cv_prog_compiler__b=no
15887 save_LDFLAGS="$LDFLAGS"
15888 LDFLAGS="$LDFLAGS -b"
15889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15891 # The linker can only warn and ignore the option if not recognized
15892 # So say no if there are warnings
15893 if test -s conftest.err; then
15894 # Append any errors to the config.log.
15895 cat conftest.err 1>&5
15896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15898 if diff conftest.exp conftest.er2 >/dev/null; then
15899 lt_cv_prog_compiler__b=yes
15900 fi
15901 else
15902 lt_cv_prog_compiler__b=yes
15903 fi
15904 fi
15905 $RM -r conftest*
15906 LDFLAGS="$save_LDFLAGS"
15907
15908 fi
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15910 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15911
15912 if test x"$lt_cv_prog_compiler__b" = xyes; then
15913 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15914 else
15915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15916 fi
15917
15918 ;;
15919 esac
15920 fi
15921 if test "$with_gnu_ld" = no; then
15922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15923 hardcode_libdir_separator=:
15924
15925 case $host_cpu in
15926 hppa*64*|ia64*)
15927 hardcode_direct=no
15928 hardcode_shlibpath_var=no
15929 ;;
15930 *)
15931 hardcode_direct=yes
15932 hardcode_direct_absolute=yes
15933 export_dynamic_flag_spec='${wl}-E'
15934
15935 # hardcode_minus_L: Not really in the search PATH,
15936 # but as the default location of the library.
15937 hardcode_minus_L=yes
15938 ;;
15939 esac
15940 fi
15941 ;;
15942
15943 irix5* | irix6* | nonstopux*)
15944 if test "$GCC" = yes; then
15945 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'
15946 # Try to use the -exported_symbol ld option, if it does not
15947 # work, assume that -exports_file does not work either and
15948 # implicitly export all symbols.
15949 # This should be the same for all languages, so no per-tag cache variable.
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15951 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15952 if ${lt_cv_irix_exported_symbol+:} false; then :
15953 $as_echo_n "(cached) " >&6
15954 else
15955 save_LDFLAGS="$LDFLAGS"
15956 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15959 int foo (void) { return 0; }
15960 _ACEOF
15961 if ac_fn_c_try_link "$LINENO"; then :
15962 lt_cv_irix_exported_symbol=yes
15963 else
15964 lt_cv_irix_exported_symbol=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968 LDFLAGS="$save_LDFLAGS"
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15971 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15972 if test "$lt_cv_irix_exported_symbol" = yes; then
15973 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'
15974 fi
15975 else
15976 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'
15977 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'
15978 fi
15979 archive_cmds_need_lc='no'
15980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15981 hardcode_libdir_separator=:
15982 inherit_rpath=yes
15983 link_all_deplibs=yes
15984 ;;
15985
15986 netbsd* | netbsdelf*-gnu)
15987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15989 else
15990 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15991 fi
15992 hardcode_libdir_flag_spec='-R$libdir'
15993 hardcode_direct=yes
15994 hardcode_shlibpath_var=no
15995 ;;
15996
15997 newsos6)
15998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15999 hardcode_direct=yes
16000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16001 hardcode_libdir_separator=:
16002 hardcode_shlibpath_var=no
16003 ;;
16004
16005 *nto* | *qnx*)
16006 ;;
16007
16008 openbsd*)
16009 if test -f /usr/libexec/ld.so; then
16010 hardcode_direct=yes
16011 hardcode_shlibpath_var=no
16012 hardcode_direct_absolute=yes
16013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16017 export_dynamic_flag_spec='${wl}-E'
16018 else
16019 case $host_os in
16020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16022 hardcode_libdir_flag_spec='-R$libdir'
16023 ;;
16024 *)
16025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16027 ;;
16028 esac
16029 fi
16030 else
16031 ld_shlibs=no
16032 fi
16033 ;;
16034
16035 os2*)
16036 hardcode_libdir_flag_spec='-L$libdir'
16037 hardcode_minus_L=yes
16038 allow_undefined_flag=unsupported
16039 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16040 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16041 ;;
16042
16043 osf3*)
16044 if test "$GCC" = yes; then
16045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16046 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'
16047 else
16048 allow_undefined_flag=' -expect_unresolved \*'
16049 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'
16050 fi
16051 archive_cmds_need_lc='no'
16052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16053 hardcode_libdir_separator=:
16054 ;;
16055
16056 osf4* | osf5*) # as osf3* with the addition of -msym flag
16057 if test "$GCC" = yes; then
16058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16059 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'
16060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16061 else
16062 allow_undefined_flag=' -expect_unresolved \*'
16063 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'
16064 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~
16065 $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'
16066
16067 # Both c and cxx compiler support -rpath directly
16068 hardcode_libdir_flag_spec='-rpath $libdir'
16069 fi
16070 archive_cmds_need_lc='no'
16071 hardcode_libdir_separator=:
16072 ;;
16073
16074 solaris*)
16075 no_undefined_flag=' -z defs'
16076 if test "$GCC" = yes; then
16077 wlarc='${wl}'
16078 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16080 $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'
16081 else
16082 case `$CC -V 2>&1` in
16083 *"Compilers 5.0"*)
16084 wlarc=''
16085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16088 ;;
16089 *)
16090 wlarc='${wl}'
16091 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16094 ;;
16095 esac
16096 fi
16097 hardcode_libdir_flag_spec='-R$libdir'
16098 hardcode_shlibpath_var=no
16099 case $host_os in
16100 solaris2.[0-5] | solaris2.[0-5].*) ;;
16101 *)
16102 # The compiler driver will combine and reorder linker options,
16103 # but understands `-z linker_flag'. GCC discards it without `$wl',
16104 # but is careful enough not to reorder.
16105 # Supported since Solaris 2.6 (maybe 2.5.1?)
16106 if test "$GCC" = yes; then
16107 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16108 else
16109 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16110 fi
16111 ;;
16112 esac
16113 link_all_deplibs=yes
16114 ;;
16115
16116 sunos4*)
16117 if test "x$host_vendor" = xsequent; then
16118 # Use $CC to link under sequent, because it throws in some extra .o
16119 # files that make .init and .fini sections work.
16120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16121 else
16122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16123 fi
16124 hardcode_libdir_flag_spec='-L$libdir'
16125 hardcode_direct=yes
16126 hardcode_minus_L=yes
16127 hardcode_shlibpath_var=no
16128 ;;
16129
16130 sysv4)
16131 case $host_vendor in
16132 sni)
16133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16134 hardcode_direct=yes # is this really true???
16135 ;;
16136 siemens)
16137 ## LD is ld it makes a PLAMLIB
16138 ## CC just makes a GrossModule.
16139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16140 reload_cmds='$CC -r -o $output$reload_objs'
16141 hardcode_direct=no
16142 ;;
16143 motorola)
16144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16146 ;;
16147 esac
16148 runpath_var='LD_RUN_PATH'
16149 hardcode_shlibpath_var=no
16150 ;;
16151
16152 sysv4.3*)
16153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_shlibpath_var=no
16155 export_dynamic_flag_spec='-Bexport'
16156 ;;
16157
16158 sysv4*MP*)
16159 if test -d /usr/nec; then
16160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16161 hardcode_shlibpath_var=no
16162 runpath_var=LD_RUN_PATH
16163 hardcode_runpath_var=yes
16164 ld_shlibs=yes
16165 fi
16166 ;;
16167
16168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16169 no_undefined_flag='${wl}-z,text'
16170 archive_cmds_need_lc=no
16171 hardcode_shlibpath_var=no
16172 runpath_var='LD_RUN_PATH'
16173
16174 if test "$GCC" = yes; then
16175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 else
16178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16180 fi
16181 ;;
16182
16183 sysv5* | sco3.2v5* | sco5v6*)
16184 # Note: We can NOT use -z defs as we might desire, because we do not
16185 # link with -lc, and that would cause any symbols used from libc to
16186 # always be unresolved, which means just about no library would
16187 # ever link correctly. If we're not using GNU ld we use -z text
16188 # though, which does catch some bad symbols but isn't as heavy-handed
16189 # as -z defs.
16190 no_undefined_flag='${wl}-z,text'
16191 allow_undefined_flag='${wl}-z,nodefs'
16192 archive_cmds_need_lc=no
16193 hardcode_shlibpath_var=no
16194 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16195 hardcode_libdir_separator=':'
16196 link_all_deplibs=yes
16197 export_dynamic_flag_spec='${wl}-Bexport'
16198 runpath_var='LD_RUN_PATH'
16199
16200 if test "$GCC" = yes; then
16201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 else
16204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 fi
16207 ;;
16208
16209 uts4*)
16210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_libdir_flag_spec='-L$libdir'
16212 hardcode_shlibpath_var=no
16213 ;;
16214
16215 *)
16216 ld_shlibs=no
16217 ;;
16218 esac
16219
16220 if test x$host_vendor = xsni; then
16221 case $host in
16222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16223 export_dynamic_flag_spec='${wl}-Blargedynsym'
16224 ;;
16225 esac
16226 fi
16227 fi
16228
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16230 $as_echo "$ld_shlibs" >&6; }
16231 test "$ld_shlibs" = no && can_build_shared=no
16232
16233 with_gnu_ld=$with_gnu_ld
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249 #
16250 # Do we need to explicitly link libc?
16251 #
16252 case "x$archive_cmds_need_lc" in
16253 x|xyes)
16254 # Assume -lc should be added
16255 archive_cmds_need_lc=yes
16256
16257 if test "$enable_shared" = yes && test "$GCC" = yes; then
16258 case $archive_cmds in
16259 *'~'*)
16260 # FIXME: we may have to deal with multi-command sequences.
16261 ;;
16262 '$CC '*)
16263 # Test whether the compiler implicitly links with -lc since on some
16264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16265 # to ld, don't add -lc before -lgcc.
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16268 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16269 $as_echo_n "(cached) " >&6
16270 else
16271 $RM conftest*
16272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16273
16274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16275 (eval $ac_compile) 2>&5
16276 ac_status=$?
16277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16278 test $ac_status = 0; } 2>conftest.err; then
16279 soname=conftest
16280 lib=conftest
16281 libobjs=conftest.$ac_objext
16282 deplibs=
16283 wl=$lt_prog_compiler_wl
16284 pic_flag=$lt_prog_compiler_pic
16285 compiler_flags=-v
16286 linker_flags=-v
16287 verstring=
16288 output_objdir=.
16289 libname=conftest
16290 lt_save_allow_undefined_flag=$allow_undefined_flag
16291 allow_undefined_flag=
16292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16293 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16294 ac_status=$?
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; }
16297 then
16298 lt_cv_archive_cmds_need_lc=no
16299 else
16300 lt_cv_archive_cmds_need_lc=yes
16301 fi
16302 allow_undefined_flag=$lt_save_allow_undefined_flag
16303 else
16304 cat conftest.err 1>&5
16305 fi
16306 $RM conftest*
16307
16308 fi
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16310 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16311 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16312 ;;
16313 esac
16314 fi
16315 ;;
16316 esac
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16470 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16471
16472 if test "$GCC" = yes; then
16473 case $host_os in
16474 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16475 *) lt_awk_arg="/^libraries:/" ;;
16476 esac
16477 case $host_os in
16478 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16479 *) lt_sed_strip_eq="s,=/,/,g" ;;
16480 esac
16481 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16482 case $lt_search_path_spec in
16483 *\;*)
16484 # if the path contains ";" then we assume it to be the separator
16485 # otherwise default to the standard path separator (i.e. ":") - it is
16486 # assumed that no part of a normal pathname contains ";" but that should
16487 # okay in the real world where ";" in dirpaths is itself problematic.
16488 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16489 ;;
16490 *)
16491 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16492 ;;
16493 esac
16494 # Ok, now we have the path, separated by spaces, we can step through it
16495 # and add multilib dir if necessary.
16496 lt_tmp_lt_search_path_spec=
16497 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16498 for lt_sys_path in $lt_search_path_spec; do
16499 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16501 else
16502 test -d "$lt_sys_path" && \
16503 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16504 fi
16505 done
16506 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16507 BEGIN {RS=" "; FS="/|\n";} {
16508 lt_foo="";
16509 lt_count=0;
16510 for (lt_i = NF; lt_i > 0; lt_i--) {
16511 if ($lt_i != "" && $lt_i != ".") {
16512 if ($lt_i == "..") {
16513 lt_count++;
16514 } else {
16515 if (lt_count == 0) {
16516 lt_foo="/" $lt_i lt_foo;
16517 } else {
16518 lt_count--;
16519 }
16520 }
16521 }
16522 }
16523 if (lt_foo != "") { lt_freq[lt_foo]++; }
16524 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16525 }'`
16526 # AWK program above erroneously prepends '/' to C:/dos/paths
16527 # for these hosts.
16528 case $host_os in
16529 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16530 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16531 esac
16532 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16533 else
16534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16535 fi
16536 library_names_spec=
16537 libname_spec='lib$name'
16538 soname_spec=
16539 shrext_cmds=".so"
16540 postinstall_cmds=
16541 postuninstall_cmds=
16542 finish_cmds=
16543 finish_eval=
16544 shlibpath_var=
16545 shlibpath_overrides_runpath=unknown
16546 version_type=none
16547 dynamic_linker="$host_os ld.so"
16548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16549 need_lib_prefix=unknown
16550 hardcode_into_libs=no
16551
16552 # when you set need_version to no, make sure it does not cause -set_version
16553 # flags to be left without arguments
16554 need_version=unknown
16555
16556 case $host_os in
16557 aix3*)
16558 version_type=linux # correct to gnu/linux during the next big refactor
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16560 shlibpath_var=LIBPATH
16561
16562 # AIX 3 has no versioning support, so we append a major version to the name.
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 ;;
16565
16566 aix[4-9]*)
16567 version_type=linux # correct to gnu/linux during the next big refactor
16568 need_lib_prefix=no
16569 need_version=no
16570 hardcode_into_libs=yes
16571 if test "$host_cpu" = ia64; then
16572 # AIX 5 supports IA64
16573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 else
16576 # With GCC up to 2.95.x, collect2 would create an import file
16577 # for dependence libraries. The import file would start with
16578 # the line `#! .'. This would cause the generated library to
16579 # depend on `.', always an invalid library. This was fixed in
16580 # development snapshots of GCC prior to 3.0.
16581 case $host_os in
16582 aix4 | aix4.[01] | aix4.[01].*)
16583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16584 echo ' yes '
16585 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16586 :
16587 else
16588 can_build_shared=no
16589 fi
16590 ;;
16591 esac
16592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16593 # soname into executable. Probably we can add versioning support to
16594 # collect2, so additional links can be useful in future.
16595 if test "$aix_use_runtimelinking" = yes; then
16596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16597 # instead of lib<name>.a to let people know that these are not
16598 # typical AIX shared libraries.
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 else
16601 # We preserve .a as extension for shared libraries through AIX4.2
16602 # and later when we are not doing run time linking.
16603 library_names_spec='${libname}${release}.a $libname.a'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 fi
16606 shlibpath_var=LIBPATH
16607 fi
16608 ;;
16609
16610 amigaos*)
16611 case $host_cpu in
16612 powerpc)
16613 # Since July 2007 AmigaOS4 officially supports .so libraries.
16614 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 ;;
16617 m68k)
16618 library_names_spec='$libname.ixlibrary $libname.a'
16619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16620 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16621 ;;
16622 esac
16623 ;;
16624
16625 beos*)
16626 library_names_spec='${libname}${shared_ext}'
16627 dynamic_linker="$host_os ld.so"
16628 shlibpath_var=LIBRARY_PATH
16629 ;;
16630
16631 bsdi[45]*)
16632 version_type=linux # correct to gnu/linux during the next big refactor
16633 need_version=no
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635 soname_spec='${libname}${release}${shared_ext}$major'
16636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16640 # the default ld.so.conf also contains /usr/contrib/lib and
16641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16642 # libtool to hard-code these into programs
16643 ;;
16644
16645 cygwin* | mingw* | pw32* | cegcc*)
16646 version_type=windows
16647 shrext_cmds=".dll"
16648 need_version=no
16649 need_lib_prefix=no
16650
16651 case $GCC,$cc_basename in
16652 yes,*)
16653 # gcc
16654 library_names_spec='$libname.dll.a'
16655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16656 postinstall_cmds='base_file=`basename \${file}`~
16657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16658 dldir=$destdir/`dirname \$dlpath`~
16659 test -d \$dldir || mkdir -p \$dldir~
16660 $install_prog $dir/$dlname \$dldir/$dlname~
16661 chmod a+x \$dldir/$dlname~
16662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16664 fi'
16665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16666 dlpath=$dir/\$dldll~
16667 $RM \$dlpath'
16668 shlibpath_overrides_runpath=yes
16669
16670 case $host_os in
16671 cygwin*)
16672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16674
16675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16676 ;;
16677 mingw* | cegcc*)
16678 # MinGW DLLs use traditional 'lib' prefix
16679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16680 ;;
16681 pw32*)
16682 # pw32 DLLs use 'pw' prefix rather than 'lib'
16683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16684 ;;
16685 esac
16686 dynamic_linker='Win32 ld.exe'
16687 ;;
16688
16689 *,cl*)
16690 # Native MSVC
16691 libname_spec='$name'
16692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16693 library_names_spec='${libname}.dll.lib'
16694
16695 case $build_os in
16696 mingw*)
16697 sys_lib_search_path_spec=
16698 lt_save_ifs=$IFS
16699 IFS=';'
16700 for lt_path in $LIB
16701 do
16702 IFS=$lt_save_ifs
16703 # Let DOS variable expansion print the short 8.3 style file name.
16704 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16705 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16706 done
16707 IFS=$lt_save_ifs
16708 # Convert to MSYS style.
16709 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16710 ;;
16711 cygwin*)
16712 # Convert to unix form, then to dos form, then back to unix form
16713 # but this time dos style (no spaces!) so that the unix form looks
16714 # like /cygdrive/c/PROGRA~1:/cygdr...
16715 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16716 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16717 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16718 ;;
16719 *)
16720 sys_lib_search_path_spec="$LIB"
16721 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16722 # It is most probably a Windows format PATH.
16723 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16724 else
16725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16726 fi
16727 # FIXME: find the short name or the path components, as spaces are
16728 # common. (e.g. "Program Files" -> "PROGRA~1")
16729 ;;
16730 esac
16731
16732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16733 postinstall_cmds='base_file=`basename \${file}`~
16734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16735 dldir=$destdir/`dirname \$dlpath`~
16736 test -d \$dldir || mkdir -p \$dldir~
16737 $install_prog $dir/$dlname \$dldir/$dlname'
16738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16739 dlpath=$dir/\$dldll~
16740 $RM \$dlpath'
16741 shlibpath_overrides_runpath=yes
16742 dynamic_linker='Win32 link.exe'
16743 ;;
16744
16745 *)
16746 # Assume MSVC wrapper
16747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16748 dynamic_linker='Win32 ld.exe'
16749 ;;
16750 esac
16751 # FIXME: first we should search . and the directory the executable is in
16752 shlibpath_var=PATH
16753 ;;
16754
16755 darwin* | rhapsody*)
16756 dynamic_linker="$host_os dyld"
16757 version_type=darwin
16758 need_lib_prefix=no
16759 need_version=no
16760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16761 soname_spec='${libname}${release}${major}$shared_ext'
16762 shlibpath_overrides_runpath=yes
16763 shlibpath_var=DYLD_LIBRARY_PATH
16764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16765
16766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16768 ;;
16769
16770 dgux*)
16771 version_type=linux # correct to gnu/linux during the next big refactor
16772 need_lib_prefix=no
16773 need_version=no
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 ;;
16778
16779 freebsd* | dragonfly*)
16780 # DragonFly does not have aout. When/if they implement a new
16781 # versioning mechanism, adjust this.
16782 if test -x /usr/bin/objformat; then
16783 objformat=`/usr/bin/objformat`
16784 else
16785 case $host_os in
16786 freebsd[23].*) objformat=aout ;;
16787 *) objformat=elf ;;
16788 esac
16789 fi
16790 version_type=freebsd-$objformat
16791 case $version_type in
16792 freebsd-elf*)
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16794 need_version=no
16795 need_lib_prefix=no
16796 ;;
16797 freebsd-*)
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16799 need_version=yes
16800 ;;
16801 esac
16802 shlibpath_var=LD_LIBRARY_PATH
16803 case $host_os in
16804 freebsd2.*)
16805 shlibpath_overrides_runpath=yes
16806 ;;
16807 freebsd3.[01]* | freebsdelf3.[01]*)
16808 shlibpath_overrides_runpath=yes
16809 hardcode_into_libs=yes
16810 ;;
16811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16813 shlibpath_overrides_runpath=no
16814 hardcode_into_libs=yes
16815 ;;
16816 *) # from 4.6 on, and DragonFly
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 ;;
16820 esac
16821 ;;
16822
16823 haiku*)
16824 version_type=linux # correct to gnu/linux during the next big refactor
16825 need_lib_prefix=no
16826 need_version=no
16827 dynamic_linker="$host_os runtime_loader"
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LIBRARY_PATH
16831 shlibpath_overrides_runpath=yes
16832 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16833 hardcode_into_libs=yes
16834 ;;
16835
16836 hpux9* | hpux10* | hpux11*)
16837 # Give a soname corresponding to the major version so that dld.sl refuses to
16838 # link against other versions.
16839 version_type=sunos
16840 need_lib_prefix=no
16841 need_version=no
16842 case $host_cpu in
16843 ia64*)
16844 shrext_cmds='.so'
16845 hardcode_into_libs=yes
16846 dynamic_linker="$host_os dld.so"
16847 shlibpath_var=LD_LIBRARY_PATH
16848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 if test "X$HPUX_IA64_MODE" = X32; then
16852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16853 else
16854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16855 fi
16856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16857 ;;
16858 hppa*64*)
16859 shrext_cmds='.sl'
16860 hardcode_into_libs=yes
16861 dynamic_linker="$host_os dld.sl"
16862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16868 ;;
16869 *)
16870 shrext_cmds='.sl'
16871 dynamic_linker="$host_os dld.sl"
16872 shlibpath_var=SHLIB_PATH
16873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 ;;
16877 esac
16878 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16879 postinstall_cmds='chmod 555 $lib'
16880 # or fails outright, so override atomically:
16881 install_override_mode=555
16882 ;;
16883
16884 interix[3-9]*)
16885 version_type=linux # correct to gnu/linux during the next big refactor
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath=no
16893 hardcode_into_libs=yes
16894 ;;
16895
16896 irix5* | irix6* | nonstopux*)
16897 case $host_os in
16898 nonstopux*) version_type=nonstopux ;;
16899 *)
16900 if test "$lt_cv_prog_gnu_ld" = yes; then
16901 version_type=linux # correct to gnu/linux during the next big refactor
16902 else
16903 version_type=irix
16904 fi ;;
16905 esac
16906 need_lib_prefix=no
16907 need_version=no
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16910 case $host_os in
16911 irix5* | nonstopux*)
16912 libsuff= shlibsuff=
16913 ;;
16914 *)
16915 case $LD in # libtool.m4 will add one of these switches to LD
16916 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16917 libsuff= shlibsuff= libmagic=32-bit;;
16918 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16919 libsuff=32 shlibsuff=N32 libmagic=N32;;
16920 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16921 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16922 *) libsuff= shlibsuff= libmagic=never-match;;
16923 esac
16924 ;;
16925 esac
16926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16927 shlibpath_overrides_runpath=no
16928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16930 hardcode_into_libs=yes
16931 ;;
16932
16933 # No shared lib support for Linux oldld, aout, or coff.
16934 linux*oldld* | linux*aout* | linux*coff*)
16935 dynamic_linker=no
16936 ;;
16937
16938 # This must be glibc/ELF.
16939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16940 version_type=linux # correct to gnu/linux during the next big refactor
16941 need_lib_prefix=no
16942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 shlibpath_overrides_runpath=no
16948
16949 # Some binutils ld are patched to set DT_RUNPATH
16950 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 lt_cv_shlibpath_overrides_runpath=no
16954 save_LDFLAGS=$LDFLAGS
16955 save_libdir=$libdir
16956 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16957 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960
16961 int
16962 main ()
16963 {
16964
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 if ac_fn_c_try_link "$LINENO"; then :
16970 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16971 lt_cv_shlibpath_overrides_runpath=yes
16972 fi
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16976 LDFLAGS=$save_LDFLAGS
16977 libdir=$save_libdir
16978
16979 fi
16980
16981 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16982
16983 # This implies no fast_install, which is unacceptable.
16984 # Some rework will be needed to allow for fast_install
16985 # before this can be enabled.
16986 hardcode_into_libs=yes
16987
16988 # Append ld.so.conf contents to the search path
16989 if test -f /etc/ld.so.conf; then
16990 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' ' '`
16991 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16992 fi
16993
16994 # We used to test for /lib/ld.so.1 and disable shared libraries on
16995 # powerpc, because MkLinux only supported shared libraries with the
16996 # GNU dynamic linker. Since this was broken with cross compilers,
16997 # most powerpc-linux boxes support dynamic linking these days and
16998 # people can always --disable-shared, the test was removed, and we
16999 # assume the GNU/Linux dynamic linker is in use.
17000 dynamic_linker='GNU/Linux ld.so'
17001 ;;
17002
17003 netbsdelf*-gnu)
17004 version_type=linux
17005 need_lib_prefix=no
17006 need_version=no
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 dynamic_linker='NetBSD ld.elf_so'
17013 ;;
17014
17015 netbsd*)
17016 version_type=sunos
17017 need_lib_prefix=no
17018 need_version=no
17019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17022 dynamic_linker='NetBSD (a.out) ld.so'
17023 else
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 dynamic_linker='NetBSD ld.elf_so'
17027 fi
17028 shlibpath_var=LD_LIBRARY_PATH
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17031 ;;
17032
17033 newsos6)
17034 version_type=linux # correct to gnu/linux during the next big refactor
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=yes
17038 ;;
17039
17040 *nto* | *qnx*)
17041 version_type=qnx
17042 need_lib_prefix=no
17043 need_version=no
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 shlibpath_overrides_runpath=no
17048 hardcode_into_libs=yes
17049 dynamic_linker='ldqnx.so'
17050 ;;
17051
17052 openbsd*)
17053 version_type=sunos
17054 sys_lib_dlsearch_path_spec="/usr/lib"
17055 need_lib_prefix=no
17056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17057 case $host_os in
17058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17059 *) need_version=no ;;
17060 esac
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17063 shlibpath_var=LD_LIBRARY_PATH
17064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17065 case $host_os in
17066 openbsd2.[89] | openbsd2.[89].*)
17067 shlibpath_overrides_runpath=no
17068 ;;
17069 *)
17070 shlibpath_overrides_runpath=yes
17071 ;;
17072 esac
17073 else
17074 shlibpath_overrides_runpath=yes
17075 fi
17076 ;;
17077
17078 os2*)
17079 libname_spec='$name'
17080 shrext_cmds=".dll"
17081 need_lib_prefix=no
17082 library_names_spec='$libname${shared_ext} $libname.a'
17083 dynamic_linker='OS/2 ld.exe'
17084 shlibpath_var=LIBPATH
17085 ;;
17086
17087 osf3* | osf4* | osf5*)
17088 version_type=osf
17089 need_lib_prefix=no
17090 need_version=no
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17096 ;;
17097
17098 rdos*)
17099 dynamic_linker=no
17100 ;;
17101
17102 solaris*)
17103 version_type=linux # correct to gnu/linux during the next big refactor
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 # ldd complains unless libraries are executable
17112 postinstall_cmds='chmod +x $lib'
17113 ;;
17114
17115 sunos4*)
17116 version_type=sunos
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 if test "$with_gnu_ld" = yes; then
17122 need_lib_prefix=no
17123 fi
17124 need_version=yes
17125 ;;
17126
17127 sysv4 | sysv4.3*)
17128 version_type=linux # correct to gnu/linux during the next big refactor
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_vendor in
17133 sni)
17134 shlibpath_overrides_runpath=no
17135 need_lib_prefix=no
17136 runpath_var=LD_RUN_PATH
17137 ;;
17138 siemens)
17139 need_lib_prefix=no
17140 ;;
17141 motorola)
17142 need_lib_prefix=no
17143 need_version=no
17144 shlibpath_overrides_runpath=no
17145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17146 ;;
17147 esac
17148 ;;
17149
17150 sysv4*MP*)
17151 if test -d /usr/nec ;then
17152 version_type=linux # correct to gnu/linux during the next big refactor
17153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17154 soname_spec='$libname${shared_ext}.$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 fi
17157 ;;
17158
17159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17160 version_type=freebsd-elf
17161 need_lib_prefix=no
17162 need_version=no
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 hardcode_into_libs=yes
17168 if test "$with_gnu_ld" = yes; then
17169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17170 else
17171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17172 case $host_os in
17173 sco3.2v5*)
17174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17175 ;;
17176 esac
17177 fi
17178 sys_lib_dlsearch_path_spec='/usr/lib'
17179 ;;
17180
17181 tpf*)
17182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17183 version_type=linux # correct to gnu/linux during the next big refactor
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17190 ;;
17191
17192 uts4*)
17193 version_type=linux # correct to gnu/linux during the next big refactor
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 ;;
17198
17199 *)
17200 dynamic_linker=no
17201 ;;
17202 esac
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17204 $as_echo "$dynamic_linker" >&6; }
17205 test "$dynamic_linker" = no && can_build_shared=no
17206
17207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17208 if test "$GCC" = yes; then
17209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17210 fi
17211
17212 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17214 fi
17215 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17216 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17217 fi
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17312 hardcode_action=
17313 if test -n "$hardcode_libdir_flag_spec" ||
17314 test -n "$runpath_var" ||
17315 test "X$hardcode_automatic" = "Xyes" ; then
17316
17317 # We can hardcode non-existent directories.
17318 if test "$hardcode_direct" != no &&
17319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17320 # have to relink, otherwise we might link with an installed library
17321 # when we should be linking with a yet-to-be-installed one
17322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17323 test "$hardcode_minus_L" != no; then
17324 # Linking always hardcodes the temporary library directory.
17325 hardcode_action=relink
17326 else
17327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17328 hardcode_action=immediate
17329 fi
17330 else
17331 # We cannot hardcode anything, or else we can only hardcode existing
17332 # directories.
17333 hardcode_action=unsupported
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17336 $as_echo "$hardcode_action" >&6; }
17337
17338 if test "$hardcode_action" = relink ||
17339 test "$inherit_rpath" = yes; then
17340 # Fast installation is not supported
17341 enable_fast_install=no
17342 elif test "$shlibpath_overrides_runpath" = yes ||
17343 test "$enable_shared" = no; then
17344 # Fast installation is not necessary
17345 enable_fast_install=needless
17346 fi
17347
17348
17349
17350
17351
17352
17353 if test "x$enable_dlopen" != xyes; then
17354 enable_dlopen=unknown
17355 enable_dlopen_self=unknown
17356 enable_dlopen_self_static=unknown
17357 else
17358 lt_cv_dlopen=no
17359 lt_cv_dlopen_libs=
17360
17361 case $host_os in
17362 beos*)
17363 lt_cv_dlopen="load_add_on"
17364 lt_cv_dlopen_libs=
17365 lt_cv_dlopen_self=yes
17366 ;;
17367
17368 mingw* | pw32* | cegcc*)
17369 lt_cv_dlopen="LoadLibrary"
17370 lt_cv_dlopen_libs=
17371 ;;
17372
17373 cygwin*)
17374 lt_cv_dlopen="dlopen"
17375 lt_cv_dlopen_libs=
17376 ;;
17377
17378 darwin*)
17379 # if libdl is installed we need to link against it
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17382 if ${ac_cv_lib_dl_dlopen+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-ldl $LIBS"
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 char dlopen ();
17397 int
17398 main ()
17399 {
17400 return dlopen ();
17401 ;
17402 return 0;
17403 }
17404 _ACEOF
17405 if ac_fn_c_try_link "$LINENO"; then :
17406 ac_cv_lib_dl_dlopen=yes
17407 else
17408 ac_cv_lib_dl_dlopen=no
17409 fi
17410 rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17413 fi
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17416 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17418 else
17419
17420 lt_cv_dlopen="dyld"
17421 lt_cv_dlopen_libs=
17422 lt_cv_dlopen_self=yes
17423
17424 fi
17425
17426 ;;
17427
17428 *)
17429 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17430 if test "x$ac_cv_func_shl_load" = xyes; then :
17431 lt_cv_dlopen="shl_load"
17432 else
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17434 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17435 if ${ac_cv_lib_dld_shl_load+:} false; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17438 ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-ldld $LIBS"
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 char shl_load ();
17450 int
17451 main ()
17452 {
17453 return shl_load ();
17454 ;
17455 return 0;
17456 }
17457 _ACEOF
17458 if ac_fn_c_try_link "$LINENO"; then :
17459 ac_cv_lib_dld_shl_load=yes
17460 else
17461 ac_cv_lib_dld_shl_load=no
17462 fi
17463 rm -f core conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465 LIBS=$ac_check_lib_save_LIBS
17466 fi
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17468 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17469 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17471 else
17472 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17473 if test "x$ac_cv_func_dlopen" = xyes; then :
17474 lt_cv_dlopen="dlopen"
17475 else
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17477 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17478 if ${ac_cv_lib_dl_dlopen+:} false; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 ac_check_lib_save_LIBS=$LIBS
17482 LIBS="-ldl $LIBS"
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17485
17486 /* Override any GCC internal prototype to avoid an error.
17487 Use char because int might match the return type of a GCC
17488 builtin and then its argument prototype would still apply. */
17489 #ifdef __cplusplus
17490 extern "C"
17491 #endif
17492 char dlopen ();
17493 int
17494 main ()
17495 {
17496 return dlopen ();
17497 ;
17498 return 0;
17499 }
17500 _ACEOF
17501 if ac_fn_c_try_link "$LINENO"; then :
17502 ac_cv_lib_dl_dlopen=yes
17503 else
17504 ac_cv_lib_dl_dlopen=no
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508 LIBS=$ac_check_lib_save_LIBS
17509 fi
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17511 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17512 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17514 else
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17516 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17517 if ${ac_cv_lib_svld_dlopen+:} false; then :
17518 $as_echo_n "(cached) " >&6
17519 else
17520 ac_check_lib_save_LIBS=$LIBS
17521 LIBS="-lsvld $LIBS"
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524
17525 /* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17528 #ifdef __cplusplus
17529 extern "C"
17530 #endif
17531 char dlopen ();
17532 int
17533 main ()
17534 {
17535 return dlopen ();
17536 ;
17537 return 0;
17538 }
17539 _ACEOF
17540 if ac_fn_c_try_link "$LINENO"; then :
17541 ac_cv_lib_svld_dlopen=yes
17542 else
17543 ac_cv_lib_svld_dlopen=no
17544 fi
17545 rm -f core conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17547 LIBS=$ac_check_lib_save_LIBS
17548 fi
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17550 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17551 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17553 else
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17555 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17556 if ${ac_cv_lib_dld_dld_link+:} false; then :
17557 $as_echo_n "(cached) " >&6
17558 else
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-ldld $LIBS"
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567 #ifdef __cplusplus
17568 extern "C"
17569 #endif
17570 char dld_link ();
17571 int
17572 main ()
17573 {
17574 return dld_link ();
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_c_try_link "$LINENO"; then :
17580 ac_cv_lib_dld_dld_link=yes
17581 else
17582 ac_cv_lib_dld_dld_link=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17589 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17590 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17591 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17592 fi
17593
17594
17595 fi
17596
17597
17598 fi
17599
17600
17601 fi
17602
17603
17604 fi
17605
17606
17607 fi
17608
17609 ;;
17610 esac
17611
17612 if test "x$lt_cv_dlopen" != xno; then
17613 enable_dlopen=yes
17614 else
17615 enable_dlopen=no
17616 fi
17617
17618 case $lt_cv_dlopen in
17619 dlopen)
17620 save_CPPFLAGS="$CPPFLAGS"
17621 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17622
17623 save_LDFLAGS="$LDFLAGS"
17624 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17625
17626 save_LIBS="$LIBS"
17627 LIBS="$lt_cv_dlopen_libs $LIBS"
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17630 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17631 if ${lt_cv_dlopen_self+:} false; then :
17632 $as_echo_n "(cached) " >&6
17633 else
17634 if test "$cross_compiling" = yes; then :
17635 lt_cv_dlopen_self=cross
17636 else
17637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17638 lt_status=$lt_dlunknown
17639 cat > conftest.$ac_ext <<_LT_EOF
17640 #line $LINENO "configure"
17641 #include "confdefs.h"
17642
17643 #if HAVE_DLFCN_H
17644 #include <dlfcn.h>
17645 #endif
17646
17647 #include <stdio.h>
17648
17649 #ifdef RTLD_GLOBAL
17650 # define LT_DLGLOBAL RTLD_GLOBAL
17651 #else
17652 # ifdef DL_GLOBAL
17653 # define LT_DLGLOBAL DL_GLOBAL
17654 # else
17655 # define LT_DLGLOBAL 0
17656 # endif
17657 #endif
17658
17659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17660 find out it does not work in some platform. */
17661 #ifndef LT_DLLAZY_OR_NOW
17662 # ifdef RTLD_LAZY
17663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17664 # else
17665 # ifdef DL_LAZY
17666 # define LT_DLLAZY_OR_NOW DL_LAZY
17667 # else
17668 # ifdef RTLD_NOW
17669 # define LT_DLLAZY_OR_NOW RTLD_NOW
17670 # else
17671 # ifdef DL_NOW
17672 # define LT_DLLAZY_OR_NOW DL_NOW
17673 # else
17674 # define LT_DLLAZY_OR_NOW 0
17675 # endif
17676 # endif
17677 # endif
17678 # endif
17679 #endif
17680
17681 /* When -fvisbility=hidden is used, assume the code has been annotated
17682 correspondingly for the symbols needed. */
17683 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17684 int fnord () __attribute__((visibility("default")));
17685 #endif
17686
17687 int fnord () { return 42; }
17688 int main ()
17689 {
17690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17691 int status = $lt_dlunknown;
17692
17693 if (self)
17694 {
17695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17696 else
17697 {
17698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17699 else puts (dlerror ());
17700 }
17701 /* dlclose (self); */
17702 }
17703 else
17704 puts (dlerror ());
17705
17706 return status;
17707 }
17708 _LT_EOF
17709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17710 (eval $ac_link) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17714 (./conftest; exit; ) >&5 2>/dev/null
17715 lt_status=$?
17716 case x$lt_status in
17717 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17718 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17719 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17720 esac
17721 else :
17722 # compilation failed
17723 lt_cv_dlopen_self=no
17724 fi
17725 fi
17726 rm -fr conftest*
17727
17728
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17731 $as_echo "$lt_cv_dlopen_self" >&6; }
17732
17733 if test "x$lt_cv_dlopen_self" = xyes; then
17734 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17736 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17737 if ${lt_cv_dlopen_self_static+:} false; then :
17738 $as_echo_n "(cached) " >&6
17739 else
17740 if test "$cross_compiling" = yes; then :
17741 lt_cv_dlopen_self_static=cross
17742 else
17743 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17744 lt_status=$lt_dlunknown
17745 cat > conftest.$ac_ext <<_LT_EOF
17746 #line $LINENO "configure"
17747 #include "confdefs.h"
17748
17749 #if HAVE_DLFCN_H
17750 #include <dlfcn.h>
17751 #endif
17752
17753 #include <stdio.h>
17754
17755 #ifdef RTLD_GLOBAL
17756 # define LT_DLGLOBAL RTLD_GLOBAL
17757 #else
17758 # ifdef DL_GLOBAL
17759 # define LT_DLGLOBAL DL_GLOBAL
17760 # else
17761 # define LT_DLGLOBAL 0
17762 # endif
17763 #endif
17764
17765 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17766 find out it does not work in some platform. */
17767 #ifndef LT_DLLAZY_OR_NOW
17768 # ifdef RTLD_LAZY
17769 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17770 # else
17771 # ifdef DL_LAZY
17772 # define LT_DLLAZY_OR_NOW DL_LAZY
17773 # else
17774 # ifdef RTLD_NOW
17775 # define LT_DLLAZY_OR_NOW RTLD_NOW
17776 # else
17777 # ifdef DL_NOW
17778 # define LT_DLLAZY_OR_NOW DL_NOW
17779 # else
17780 # define LT_DLLAZY_OR_NOW 0
17781 # endif
17782 # endif
17783 # endif
17784 # endif
17785 #endif
17786
17787 /* When -fvisbility=hidden is used, assume the code has been annotated
17788 correspondingly for the symbols needed. */
17789 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17790 int fnord () __attribute__((visibility("default")));
17791 #endif
17792
17793 int fnord () { return 42; }
17794 int main ()
17795 {
17796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17797 int status = $lt_dlunknown;
17798
17799 if (self)
17800 {
17801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17802 else
17803 {
17804 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17805 else puts (dlerror ());
17806 }
17807 /* dlclose (self); */
17808 }
17809 else
17810 puts (dlerror ());
17811
17812 return status;
17813 }
17814 _LT_EOF
17815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17816 (eval $ac_link) 2>&5
17817 ac_status=$?
17818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17819 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17820 (./conftest; exit; ) >&5 2>/dev/null
17821 lt_status=$?
17822 case x$lt_status in
17823 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17824 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17825 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17826 esac
17827 else :
17828 # compilation failed
17829 lt_cv_dlopen_self_static=no
17830 fi
17831 fi
17832 rm -fr conftest*
17833
17834
17835 fi
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17837 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17838 fi
17839
17840 CPPFLAGS="$save_CPPFLAGS"
17841 LDFLAGS="$save_LDFLAGS"
17842 LIBS="$save_LIBS"
17843 ;;
17844 esac
17845
17846 case $lt_cv_dlopen_self in
17847 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17848 *) enable_dlopen_self=unknown ;;
17849 esac
17850
17851 case $lt_cv_dlopen_self_static in
17852 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17853 *) enable_dlopen_self_static=unknown ;;
17854 esac
17855 fi
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873 striplib=
17874 old_striplib=
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17876 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17877 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17878 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17879 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17881 $as_echo "yes" >&6; }
17882 else
17883 # FIXME - insert some real tests, host_os isn't really good enough
17884 case $host_os in
17885 darwin*)
17886 if test -n "$STRIP" ; then
17887 striplib="$STRIP -x"
17888 old_striplib="$STRIP -S"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17890 $as_echo "yes" >&6; }
17891 else
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 $as_echo "no" >&6; }
17894 fi
17895 ;;
17896 *)
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17898 $as_echo "no" >&6; }
17899 ;;
17900 esac
17901 fi
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914 # Report which library types will actually be built
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17916 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17918 $as_echo "$can_build_shared" >&6; }
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17921 $as_echo_n "checking whether to build shared libraries... " >&6; }
17922 test "$can_build_shared" = "no" && enable_shared=no
17923
17924 # On AIX, shared libraries and static libraries use the same namespace, and
17925 # are all built from PIC.
17926 case $host_os in
17927 aix3*)
17928 test "$enable_shared" = yes && enable_static=no
17929 if test -n "$RANLIB"; then
17930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17931 postinstall_cmds='$RANLIB $lib'
17932 fi
17933 ;;
17934
17935 aix[4-9]*)
17936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17937 test "$enable_shared" = yes && enable_static=no
17938 fi
17939 ;;
17940 esac
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17942 $as_echo "$enable_shared" >&6; }
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17945 $as_echo_n "checking whether to build static libraries... " >&6; }
17946 # Make sure either enable_shared or enable_static is yes.
17947 test "$enable_shared" = yes || enable_static=yes
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17949 $as_echo "$enable_static" >&6; }
17950
17951
17952
17953
17954 fi
17955 ac_ext=c
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960
17961 CC="$lt_save_CC"
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977 ac_config_commands="$ac_config_commands libtool"
17978
17979
17980
17981
17982 # Only expand once:
17983
17984
17985
17986
17987
17988 # Define a configure option for an alternate module directory
17989
17990 # Check whether --with-xorg-module-dir was given.
17991 if test "${with_xorg_module_dir+set}" = set; then :
17992 withval=$with_xorg_module_dir; moduledir="$withval"
17993 else
17994 moduledir="$libdir/xorg/modules"
17995 fi
17996
17997
17998 # Store the list of server defined optional extensions in REQUIRED_MODULES
17999
18000
18001 SAVE_CFLAGS="$CFLAGS"
18002 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18005
18006 #include "xorg-server.h"
18007 #if !defined XV
18008 #error XV not defined
18009 #endif
18010
18011 int
18012 main ()
18013 {
18014
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_compile "$LINENO"; then :
18020 _EXT_CHECK=yes
18021 else
18022 _EXT_CHECK=no
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 CFLAGS="$SAVE_CFLAGS"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18027 $as_echo_n "checking if XV is defined... " >&6; }
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18029 $as_echo "$_EXT_CHECK" >&6; }
18030 if test "$_EXT_CHECK" != no; then
18031 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18032 fi
18033
18034
18035
18036 SAVE_CFLAGS="$CFLAGS"
18037 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040
18041 #include "xorg-server.h"
18042 #if !defined DPMSExtension
18043 #error DPMSExtension not defined
18044 #endif
18045
18046 int
18047 main ()
18048 {
18049
18050 ;
18051 return 0;
18052 }
18053 _ACEOF
18054 if ac_fn_c_try_compile "$LINENO"; then :
18055 _EXT_CHECK=yes
18056 else
18057 _EXT_CHECK=no
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 CFLAGS="$SAVE_CFLAGS"
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18062 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18064 $as_echo "$_EXT_CHECK" >&6; }
18065 if test "$_EXT_CHECK" != no; then
18066 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18067 fi
18068
18069
18070 # Obtain compiler/linker options for the driver dependencies
18071
18072 pkg_failed=no
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18074 $as_echo_n "checking for XORG... " >&6; }
18075
18076 if test -n "$XORG_CFLAGS"; then
18077 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18078 elif test -n "$PKG_CONFIG"; then
18079 if test -n "$PKG_CONFIG" && \
18080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18081 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18082 ac_status=$?
18083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18084 test $ac_status = 0; }; then
18085 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18086 test "x$?" != "x0" && pkg_failed=yes
18087 else
18088 pkg_failed=yes
18089 fi
18090 else
18091 pkg_failed=untried
18092 fi
18093 if test -n "$XORG_LIBS"; then
18094 pkg_cv_XORG_LIBS="$XORG_LIBS"
18095 elif test -n "$PKG_CONFIG"; then
18096 if test -n "$PKG_CONFIG" && \
18097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18098 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18099 ac_status=$?
18100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18101 test $ac_status = 0; }; then
18102 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18103 test "x$?" != "x0" && pkg_failed=yes
18104 else
18105 pkg_failed=yes
18106 fi
18107 else
18108 pkg_failed=untried
18109 fi
18110
18111
18112
18113 if test $pkg_failed = yes; then
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18115 $as_echo "no" >&6; }
18116
18117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18118 _pkg_short_errors_supported=yes
18119 else
18120 _pkg_short_errors_supported=no
18121 fi
18122 if test $_pkg_short_errors_supported = yes; then
18123 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18124 else
18125 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18126 fi
18127 # Put the nasty error message in config.log where it belongs
18128 echo "$XORG_PKG_ERRORS" >&5
18129
18130 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18131
18132 $XORG_PKG_ERRORS
18133
18134 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18135 installed software in a non-standard prefix.
18136
18137 Alternatively, you may set the environment variables XORG_CFLAGS
18138 and XORG_LIBS to avoid the need to call pkg-config.
18139 See the pkg-config man page for more details." "$LINENO" 5
18140 elif test $pkg_failed = untried; then
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18142 $as_echo "no" >&6; }
18143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18145 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18146 is in your PATH or set the PKG_CONFIG environment variable to the full
18147 path to pkg-config.
18148
18149 Alternatively, you may set the environment variables XORG_CFLAGS
18150 and XORG_LIBS to avoid the need to call pkg-config.
18151 See the pkg-config man page for more details.
18152
18153 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18154 See \`config.log' for more details" "$LINENO" 5; }
18155 else
18156 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18157 XORG_LIBS=$pkg_cv_XORG_LIBS
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18159 $as_echo "yes" >&6; }
18160
18161 fi
18162
18163 pkg_failed=no
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18165 $as_echo_n "checking for XEXT... " >&6; }
18166
18167 if test -n "$XEXT_CFLAGS"; then
18168 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18169 elif test -n "$PKG_CONFIG"; then
18170 if test -n "$PKG_CONFIG" && \
18171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18172 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18173 ac_status=$?
18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18175 test $ac_status = 0; }; then
18176 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18177 test "x$?" != "x0" && pkg_failed=yes
18178 else
18179 pkg_failed=yes
18180 fi
18181 else
18182 pkg_failed=untried
18183 fi
18184 if test -n "$XEXT_LIBS"; then
18185 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18186 elif test -n "$PKG_CONFIG"; then
18187 if test -n "$PKG_CONFIG" && \
18188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18189 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18190 ac_status=$?
18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192 test $ac_status = 0; }; then
18193 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18194 test "x$?" != "x0" && pkg_failed=yes
18195 else
18196 pkg_failed=yes
18197 fi
18198 else
18199 pkg_failed=untried
18200 fi
18201
18202
18203
18204 if test $pkg_failed = yes; then
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18207
18208 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18209 _pkg_short_errors_supported=yes
18210 else
18211 _pkg_short_errors_supported=no
18212 fi
18213 if test $_pkg_short_errors_supported = yes; then
18214 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18215 else
18216 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18217 fi
18218 # Put the nasty error message in config.log where it belongs
18219 echo "$XEXT_PKG_ERRORS" >&5
18220
18221 HAVE_XEXTPROTO_71="no"
18222 elif test $pkg_failed = untried; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224 $as_echo "no" >&6; }
18225 HAVE_XEXTPROTO_71="no"
18226 else
18227 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18228 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231 HAVE_XEXTPROTO_71="yes";
18232 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18233
18234 fi
18235 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
18236 HAVE_XEXTPROTO_71_TRUE=
18237 HAVE_XEXTPROTO_71_FALSE='#'
18238 else
18239 HAVE_XEXTPROTO_71_TRUE='#'
18240 HAVE_XEXTPROTO_71_FALSE=
18241 fi
18242
18243
18244 # Checks for libraries.
18245 SAVE_CPPFLAGS="$CPPFLAGS"
18246 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18247 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18248 "
18249 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18250 XSERVER_LIBPCIACCESS=yes
18251 else
18252 XSERVER_LIBPCIACCESS=no
18253 fi
18254
18255 ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
18256 "
18257 if test "x$ac_cv_header_xf86Modes_h" = xyes; then :
18258 XMODES=yes
18259 else
18260 XMODES=no
18261 fi
18262
18263
18264 CPPFLAGS="$SAVE_CPPFLAGS"
18265
18266 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18267
18268 pkg_failed=no
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18270 $as_echo_n "checking for PCIACCESS... " >&6; }
18271
18272 if test -n "$PCIACCESS_CFLAGS"; then
18273 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18274 elif test -n "$PKG_CONFIG"; then
18275 if test -n "$PKG_CONFIG" && \
18276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18277 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18278 ac_status=$?
18279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280 test $ac_status = 0; }; then
18281 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18282 test "x$?" != "x0" && pkg_failed=yes
18283 else
18284 pkg_failed=yes
18285 fi
18286 else
18287 pkg_failed=untried
18288 fi
18289 if test -n "$PCIACCESS_LIBS"; then
18290 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18291 elif test -n "$PKG_CONFIG"; then
18292 if test -n "$PKG_CONFIG" && \
18293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18294 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18295 ac_status=$?
18296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18297 test $ac_status = 0; }; then
18298 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18299 test "x$?" != "x0" && pkg_failed=yes
18300 else
18301 pkg_failed=yes
18302 fi
18303 else
18304 pkg_failed=untried
18305 fi
18306
18307
18308
18309 if test $pkg_failed = yes; then
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18311 $as_echo "no" >&6; }
18312
18313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18314 _pkg_short_errors_supported=yes
18315 else
18316 _pkg_short_errors_supported=no
18317 fi
18318 if test $_pkg_short_errors_supported = yes; then
18319 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18320 else
18321 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18322 fi
18323 # Put the nasty error message in config.log where it belongs
18324 echo "$PCIACCESS_PKG_ERRORS" >&5
18325
18326 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18327
18328 $PCIACCESS_PKG_ERRORS
18329
18330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18331 installed software in a non-standard prefix.
18332
18333 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18334 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18335 See the pkg-config man page for more details." "$LINENO" 5
18336 elif test $pkg_failed = untried; then
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18341 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18342 is in your PATH or set the PKG_CONFIG environment variable to the full
18343 path to pkg-config.
18344
18345 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18346 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18347 See the pkg-config man page for more details.
18348
18349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18350 See \`config.log' for more details" "$LINENO" 5; }
18351 else
18352 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18353 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18355 $as_echo "yes" >&6; }
18356
18357 fi
18358 fi
18359 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18360 XSERVER_LIBPCIACCESS_TRUE=
18361 XSERVER_LIBPCIACCESS_FALSE='#'
18362 else
18363 XSERVER_LIBPCIACCESS_TRUE='#'
18364 XSERVER_LIBPCIACCESS_FALSE=
18365 fi
18366
18367 if test "x$XMODES" = xyes; then
18368 XMODES_TRUE=
18369 XMODES_FALSE='#'
18370 else
18371 XMODES_TRUE='#'
18372 XMODES_FALSE=
18373 fi
18374
18375
18376 if test "x$XMODES" = xyes; then
18377
18378 $as_echo "#define HAVE_XMODES 1" >>confdefs.h
18379
18380 fi
18381 # Check whether --enable-xaa was given.
18382 if test "${enable_xaa+set}" = set; then :
18383 enableval=$enable_xaa; XAA="$enableval"
18384 else
18385 XAA=auto
18386 fi
18387
18388 if test "x$XAA" != xno; then
18389 save_CFLAGS=$CFLAGS
18390 save_CPPFLAGS=$CPPFLAGS
18391 CFLAGS=$XORG_CFLAGS
18392 CPPFLAGS="$XORG_CFLAGS"
18393 for ac_header in xaa.h
18394 do :
18395 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18396 if test "x$ac_cv_header_xaa_h" = xyes; then :
18397 cat >>confdefs.h <<_ACEOF
18398 #define HAVE_XAA_H 1
18399 _ACEOF
18400 XAA=yes
18401 else
18402 XAA=no
18403 fi
18404
18405 done
18406
18407 CFLAGS=$save_CFLAGS
18408 CPPFLAGS=$save_CPPFLAGS
18409 fi
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18411 $as_echo_n "checking whether to include XAA support... " >&6; }
18412 if test "x$XAA" = xyes; then
18413 XAA_TRUE=
18414 XAA_FALSE='#'
18415 else
18416 XAA_TRUE='#'
18417 XAA_FALSE=
18418 fi
18419
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18421 $as_echo "$XAA" >&6; }
18422
18423
18424
18425 DRIVER_NAME=siliconmotion
18426
18427
18428 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18429
18430 cat >confcache <<\_ACEOF
18431 # This file is a shell script that caches the results of configure
18432 # tests run on this system so they can be shared between configure
18433 # scripts and configure runs, see configure's option --config-cache.
18434 # It is not useful on other systems. If it contains results you don't
18435 # want to keep, you may remove or edit it.
18436 #
18437 # config.status only pays attention to the cache file if you give it
18438 # the --recheck option to rerun configure.
18439 #
18440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18442 # following values.
18443
18444 _ACEOF
18445
18446 # The following way of writing the cache mishandles newlines in values,
18447 # but we know of no workaround that is simple, portable, and efficient.
18448 # So, we kill variables containing newlines.
18449 # Ultrix sh set writes to stderr and can't be redirected directly,
18450 # and sets the high bit in the cache file unless we assign to the vars.
18451 (
18452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18453 eval ac_val=\$$ac_var
18454 case $ac_val in #(
18455 *${as_nl}*)
18456 case $ac_var in #(
18457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18459 esac
18460 case $ac_var in #(
18461 _ | IFS | as_nl) ;; #(
18462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18463 *) { eval $ac_var=; unset $ac_var;} ;;
18464 esac ;;
18465 esac
18466 done
18467
18468 (set) 2>&1 |
18469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18470 *${as_nl}ac_space=\ *)
18471 # `set' does not quote correctly, so add quotes: double-quote
18472 # substitution turns \\\\ into \\, and sed turns \\ into \.
18473 sed -n \
18474 "s/'/'\\\\''/g;
18475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18476 ;; #(
18477 *)
18478 # `set' quotes correctly as required by POSIX, so do not add quotes.
18479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18480 ;;
18481 esac |
18482 sort
18483 ) |
18484 sed '
18485 /^ac_cv_env_/b end
18486 t clear
18487 :clear
18488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18489 t end
18490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18491 :end' >>confcache
18492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18493 if test -w "$cache_file"; then
18494 if test "x$cache_file" != "x/dev/null"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18496 $as_echo "$as_me: updating cache $cache_file" >&6;}
18497 if test ! -f "$cache_file" || test -h "$cache_file"; then
18498 cat confcache >"$cache_file"
18499 else
18500 case $cache_file in #(
18501 */* | ?:*)
18502 mv -f confcache "$cache_file"$$ &&
18503 mv -f "$cache_file"$$ "$cache_file" ;; #(
18504 *)
18505 mv -f confcache "$cache_file" ;;
18506 esac
18507 fi
18508 fi
18509 else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18512 fi
18513 fi
18514 rm -f confcache
18515
18516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18517 # Let make expand exec_prefix.
18518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18519
18520 DEFS=-DHAVE_CONFIG_H
18521
18522 ac_libobjs=
18523 ac_ltlibobjs=
18524 U=
18525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18526 # 1. Remove the extension, and $U if already installed.
18527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18530 # will be set to the directory where LIBOBJS objects are built.
18531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18533 done
18534 LIBOBJS=$ac_libobjs
18535
18536 LTLIBOBJS=$ac_ltlibobjs
18537
18538
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18540 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18541 if test -n "$am_sleep_pid"; then
18542 # Hide warnings about reused PIDs.
18543 wait $am_sleep_pid 2>/dev/null
18544 fi
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18546 $as_echo "done" >&6; }
18547 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18548 as_fn_error $? "conditional \"AMDEP\" was never defined.
18549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18550 fi
18551 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18554 fi
18555 if test -n "$EXEEXT"; then
18556 am__EXEEXT_TRUE=
18557 am__EXEEXT_FALSE='#'
18558 else
18559 am__EXEEXT_TRUE='#'
18560 am__EXEEXT_FALSE=
18561 fi
18562
18563 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18564 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18566 fi
18567 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18568 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18570 fi
18571 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18572 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18574 fi
18575 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
18576 as_fn_error $? "conditional \"XMODES\" was never defined.
18577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18578 fi
18579 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18580 as_fn_error $? "conditional \"XAA\" was never defined.
18581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18582 fi
18583
18584 : "${CONFIG_STATUS=./config.status}"
18585 ac_write_fail=0
18586 ac_clean_files_save=$ac_clean_files
18587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18589 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18590 as_write_fail=0
18591 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18592 #! $SHELL
18593 # Generated by $as_me.
18594 # Run this file to recreate the current configuration.
18595 # Compiler output produced by configure, useful for debugging
18596 # configure, is in config.log if it exists.
18597
18598 debug=false
18599 ac_cs_recheck=false
18600 ac_cs_silent=false
18601
18602 SHELL=\${CONFIG_SHELL-$SHELL}
18603 export SHELL
18604 _ASEOF
18605 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18606 ## -------------------- ##
18607 ## M4sh Initialization. ##
18608 ## -------------------- ##
18609
18610 # Be more Bourne compatible
18611 DUALCASE=1; export DUALCASE # for MKS sh
18612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18613 emulate sh
18614 NULLCMD=:
18615 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18616 # is contrary to our usage. Disable this feature.
18617 alias -g '${1+"$@"}'='"$@"'
18618 setopt NO_GLOB_SUBST
18619 else
18620 case `(set -o) 2>/dev/null` in #(
18621 *posix*) :
18622 set -o posix ;; #(
18623 *) :
18624 ;;
18625 esac
18626 fi
18627
18628
18629 as_nl='
18630 '
18631 export as_nl
18632 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18633 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18636 # Prefer a ksh shell builtin over an external printf program on Solaris,
18637 # but without wasting forks for bash or zsh.
18638 if test -z "$BASH_VERSION$ZSH_VERSION" \
18639 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18640 as_echo='print -r --'
18641 as_echo_n='print -rn --'
18642 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18643 as_echo='printf %s\n'
18644 as_echo_n='printf %s'
18645 else
18646 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18647 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18648 as_echo_n='/usr/ucb/echo -n'
18649 else
18650 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18651 as_echo_n_body='eval
18652 arg=$1;
18653 case $arg in #(
18654 *"$as_nl"*)
18655 expr "X$arg" : "X\\(.*\\)$as_nl";
18656 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18657 esac;
18658 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18659 '
18660 export as_echo_n_body
18661 as_echo_n='sh -c $as_echo_n_body as_echo'
18662 fi
18663 export as_echo_body
18664 as_echo='sh -c $as_echo_body as_echo'
18665 fi
18666
18667 # The user is always right.
18668 if test "${PATH_SEPARATOR+set}" != set; then
18669 PATH_SEPARATOR=:
18670 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18671 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18672 PATH_SEPARATOR=';'
18673 }
18674 fi
18675
18676
18677 # IFS
18678 # We need space, tab and new line, in precisely that order. Quoting is
18679 # there to prevent editors from complaining about space-tab.
18680 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18681 # splitting by setting IFS to empty value.)
18682 IFS=" "" $as_nl"
18683
18684 # Find who we are. Look in the path if we contain no directory separator.
18685 as_myself=
18686 case $0 in #((
18687 *[\\/]* ) as_myself=$0 ;;
18688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18690 do
18691 IFS=$as_save_IFS
18692 test -z "$as_dir" && as_dir=.
18693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18694 done
18695 IFS=$as_save_IFS
18696
18697 ;;
18698 esac
18699 # We did not find ourselves, most probably we were run as `sh COMMAND'
18700 # in which case we are not to be found in the path.
18701 if test "x$as_myself" = x; then
18702 as_myself=$0
18703 fi
18704 if test ! -f "$as_myself"; then
18705 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18706 exit 1
18707 fi
18708
18709 # Unset variables that we do not need and which cause bugs (e.g. in
18710 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18711 # suppresses any "Segmentation fault" message there. '((' could
18712 # trigger a bug in pdksh 5.2.14.
18713 for as_var in BASH_ENV ENV MAIL MAILPATH
18714 do eval test x\${$as_var+set} = xset \
18715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18716 done
18717 PS1='$ '
18718 PS2='> '
18719 PS4='+ '
18720
18721 # NLS nuisances.
18722 LC_ALL=C
18723 export LC_ALL
18724 LANGUAGE=C
18725 export LANGUAGE
18726
18727 # CDPATH.
18728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18729
18730
18731 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18732 # ----------------------------------------
18733 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18734 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18735 # script with STATUS, using 1 if that was 0.
18736 as_fn_error ()
18737 {
18738 as_status=$1; test $as_status -eq 0 && as_status=1
18739 if test "$4"; then
18740 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18741 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18742 fi
18743 $as_echo "$as_me: error: $2" >&2
18744 as_fn_exit $as_status
18745 } # as_fn_error
18746
18747
18748 # as_fn_set_status STATUS
18749 # -----------------------
18750 # Set $? to STATUS, without forking.
18751 as_fn_set_status ()
18752 {
18753 return $1
18754 } # as_fn_set_status
18755
18756 # as_fn_exit STATUS
18757 # -----------------
18758 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18759 as_fn_exit ()
18760 {
18761 set +e
18762 as_fn_set_status $1
18763 exit $1
18764 } # as_fn_exit
18765
18766 # as_fn_unset VAR
18767 # ---------------
18768 # Portably unset VAR.
18769 as_fn_unset ()
18770 {
18771 { eval $1=; unset $1;}
18772 }
18773 as_unset=as_fn_unset
18774 # as_fn_append VAR VALUE
18775 # ----------------------
18776 # Append the text in VALUE to the end of the definition contained in VAR. Take
18777 # advantage of any shell optimizations that allow amortized linear growth over
18778 # repeated appends, instead of the typical quadratic growth present in naive
18779 # implementations.
18780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18781 eval 'as_fn_append ()
18782 {
18783 eval $1+=\$2
18784 }'
18785 else
18786 as_fn_append ()
18787 {
18788 eval $1=\$$1\$2
18789 }
18790 fi # as_fn_append
18791
18792 # as_fn_arith ARG...
18793 # ------------------
18794 # Perform arithmetic evaluation on the ARGs, and store the result in the
18795 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18796 # must be portable across $(()) and expr.
18797 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18798 eval 'as_fn_arith ()
18799 {
18800 as_val=$(( $* ))
18801 }'
18802 else
18803 as_fn_arith ()
18804 {
18805 as_val=`expr "$@" || test $? -eq 1`
18806 }
18807 fi # as_fn_arith
18808
18809
18810 if expr a : '\(a\)' >/dev/null 2>&1 &&
18811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18812 as_expr=expr
18813 else
18814 as_expr=false
18815 fi
18816
18817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18818 as_basename=basename
18819 else
18820 as_basename=false
18821 fi
18822
18823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18824 as_dirname=dirname
18825 else
18826 as_dirname=false
18827 fi
18828
18829 as_me=`$as_basename -- "$0" ||
18830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18831 X"$0" : 'X\(//\)$' \| \
18832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18833 $as_echo X/"$0" |
18834 sed '/^.*\/\([^/][^/]*\)\/*$/{
18835 s//\1/
18836 q
18837 }
18838 /^X\/\(\/\/\)$/{
18839 s//\1/
18840 q
18841 }
18842 /^X\/\(\/\).*/{
18843 s//\1/
18844 q
18845 }
18846 s/.*/./; q'`
18847
18848 # Avoid depending upon Character Ranges.
18849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18852 as_cr_digits='0123456789'
18853 as_cr_alnum=$as_cr_Letters$as_cr_digits
18854
18855 ECHO_C= ECHO_N= ECHO_T=
18856 case `echo -n x` in #(((((
18857 -n*)
18858 case `echo 'xy\c'` in
18859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18860 xy) ECHO_C='\c';;
18861 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18862 ECHO_T=' ';;
18863 esac;;
18864 *)
18865 ECHO_N='-n';;
18866 esac
18867
18868 rm -f conf$$ conf$$.exe conf$$.file
18869 if test -d conf$$.dir; then
18870 rm -f conf$$.dir/conf$$.file
18871 else
18872 rm -f conf$$.dir
18873 mkdir conf$$.dir 2>/dev/null
18874 fi
18875 if (echo >conf$$.file) 2>/dev/null; then
18876 if ln -s conf$$.file conf$$ 2>/dev/null; then
18877 as_ln_s='ln -s'
18878 # ... but there are two gotchas:
18879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18881 # In both cases, we have to default to `cp -pR'.
18882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18883 as_ln_s='cp -pR'
18884 elif ln conf$$.file conf$$ 2>/dev/null; then
18885 as_ln_s=ln
18886 else
18887 as_ln_s='cp -pR'
18888 fi
18889 else
18890 as_ln_s='cp -pR'
18891 fi
18892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18893 rmdir conf$$.dir 2>/dev/null
18894
18895
18896 # as_fn_mkdir_p
18897 # -------------
18898 # Create "$as_dir" as a directory, including parents if necessary.
18899 as_fn_mkdir_p ()
18900 {
18901
18902 case $as_dir in #(
18903 -*) as_dir=./$as_dir;;
18904 esac
18905 test -d "$as_dir" || eval $as_mkdir_p || {
18906 as_dirs=
18907 while :; do
18908 case $as_dir in #(
18909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18910 *) as_qdir=$as_dir;;
18911 esac
18912 as_dirs="'$as_qdir' $as_dirs"
18913 as_dir=`$as_dirname -- "$as_dir" ||
18914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18915 X"$as_dir" : 'X\(//\)[^/]' \| \
18916 X"$as_dir" : 'X\(//\)$' \| \
18917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18918 $as_echo X"$as_dir" |
18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18920 s//\1/
18921 q
18922 }
18923 /^X\(\/\/\)[^/].*/{
18924 s//\1/
18925 q
18926 }
18927 /^X\(\/\/\)$/{
18928 s//\1/
18929 q
18930 }
18931 /^X\(\/\).*/{
18932 s//\1/
18933 q
18934 }
18935 s/.*/./; q'`
18936 test -d "$as_dir" && break
18937 done
18938 test -z "$as_dirs" || eval "mkdir $as_dirs"
18939 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18940
18941
18942 } # as_fn_mkdir_p
18943 if mkdir -p . 2>/dev/null; then
18944 as_mkdir_p='mkdir -p "$as_dir"'
18945 else
18946 test -d ./-p && rmdir ./-p
18947 as_mkdir_p=false
18948 fi
18949
18950
18951 # as_fn_executable_p FILE
18952 # -----------------------
18953 # Test if FILE is an executable regular file.
18954 as_fn_executable_p ()
18955 {
18956 test -f "$1" && test -x "$1"
18957 } # as_fn_executable_p
18958 as_test_x='test -x'
18959 as_executable_p=as_fn_executable_p
18960
18961 # Sed expression to map a string onto a valid CPP name.
18962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18963
18964 # Sed expression to map a string onto a valid variable name.
18965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18966
18967
18968 exec 6>&1
18969 ## ----------------------------------- ##
18970 ## Main body of $CONFIG_STATUS script. ##
18971 ## ----------------------------------- ##
18972 _ASEOF
18973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18974
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 # Save the log message, to keep $0 and so on meaningful, and to
18977 # report actual input values of CONFIG_FILES etc. instead of their
18978 # values after options handling.
18979 ac_log="
18980 This file was extended by xf86-video-siliconmotion $as_me 1.7.8, which was
18981 generated by GNU Autoconf 2.69. Invocation command line was
18982
18983 CONFIG_FILES = $CONFIG_FILES
18984 CONFIG_HEADERS = $CONFIG_HEADERS
18985 CONFIG_LINKS = $CONFIG_LINKS
18986 CONFIG_COMMANDS = $CONFIG_COMMANDS
18987 $ $0 $@
18988
18989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18990 "
18991
18992 _ACEOF
18993
18994 case $ac_config_files in *"
18995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18996 esac
18997
18998 case $ac_config_headers in *"
18999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19000 esac
19001
19002
19003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19004 # Files that config.status was made for.
19005 config_files="$ac_config_files"
19006 config_headers="$ac_config_headers"
19007 config_commands="$ac_config_commands"
19008
19009 _ACEOF
19010
19011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19012 ac_cs_usage="\
19013 \`$as_me' instantiates files and other configuration actions
19014 from templates according to the current configuration. Unless the files
19015 and actions are specified as TAGs, all are instantiated by default.
19016
19017 Usage: $0 [OPTION]... [TAG]...
19018
19019 -h, --help print this help, then exit
19020 -V, --version print version number and configuration settings, then exit
19021 --config print configuration, then exit
19022 -q, --quiet, --silent
19023 do not print progress messages
19024 -d, --debug don't remove temporary files
19025 --recheck update $as_me by reconfiguring in the same conditions
19026 --file=FILE[:TEMPLATE]
19027 instantiate the configuration file FILE
19028 --header=FILE[:TEMPLATE]
19029 instantiate the configuration header FILE
19030
19031 Configuration files:
19032 $config_files
19033
19034 Configuration headers:
19035 $config_headers
19036
19037 Configuration commands:
19038 $config_commands
19039
19040 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/siliconmotion>."
19041
19042 _ACEOF
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19045 ac_cs_version="\\
19046 xf86-video-siliconmotion config.status 1.7.8
19047 configured by $0, generated by GNU Autoconf 2.69,
19048 with options \\"\$ac_cs_config\\"
19049
19050 Copyright (C) 2012 Free Software Foundation, Inc.
19051 This config.status script is free software; the Free Software Foundation
19052 gives unlimited permission to copy, distribute and modify it."
19053
19054 ac_pwd='$ac_pwd'
19055 srcdir='$srcdir'
19056 INSTALL='$INSTALL'
19057 MKDIR_P='$MKDIR_P'
19058 AWK='$AWK'
19059 test -n "\$AWK" || AWK=awk
19060 _ACEOF
19061
19062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19063 # The default lists apply if the user does not specify any file.
19064 ac_need_defaults=:
19065 while test $# != 0
19066 do
19067 case $1 in
19068 --*=?*)
19069 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19070 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19071 ac_shift=:
19072 ;;
19073 --*=)
19074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19075 ac_optarg=
19076 ac_shift=:
19077 ;;
19078 *)
19079 ac_option=$1
19080 ac_optarg=$2
19081 ac_shift=shift
19082 ;;
19083 esac
19084
19085 case $ac_option in
19086 # Handling of the options.
19087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19088 ac_cs_recheck=: ;;
19089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19090 $as_echo "$ac_cs_version"; exit ;;
19091 --config | --confi | --conf | --con | --co | --c )
19092 $as_echo "$ac_cs_config"; exit ;;
19093 --debug | --debu | --deb | --de | --d | -d )
19094 debug=: ;;
19095 --file | --fil | --fi | --f )
19096 $ac_shift
19097 case $ac_optarg in
19098 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19099 '') as_fn_error $? "missing file argument" ;;
19100 esac
19101 as_fn_append CONFIG_FILES " '$ac_optarg'"
19102 ac_need_defaults=false;;
19103 --header | --heade | --head | --hea )
19104 $ac_shift
19105 case $ac_optarg in
19106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19107 esac
19108 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19109 ac_need_defaults=false;;
19110 --he | --h)
19111 # Conflict between --help and --header
19112 as_fn_error $? "ambiguous option: \`$1'
19113 Try \`$0 --help' for more information.";;
19114 --help | --hel | -h )
19115 $as_echo "$ac_cs_usage"; exit ;;
19116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19118 ac_cs_silent=: ;;
19119
19120 # This is an error.
19121 -*) as_fn_error $? "unrecognized option: \`$1'
19122 Try \`$0 --help' for more information." ;;
19123
19124 *) as_fn_append ac_config_targets " $1"
19125 ac_need_defaults=false ;;
19126
19127 esac
19128 shift
19129 done
19130
19131 ac_configure_extra_args=
19132
19133 if $ac_cs_silent; then
19134 exec 6>/dev/null
19135 ac_configure_extra_args="$ac_configure_extra_args --silent"
19136 fi
19137
19138 _ACEOF
19139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19140 if \$ac_cs_recheck; then
19141 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19142 shift
19143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19144 CONFIG_SHELL='$SHELL'
19145 export CONFIG_SHELL
19146 exec "\$@"
19147 fi
19148
19149 _ACEOF
19150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19151 exec 5>>config.log
19152 {
19153 echo
19154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19155 ## Running $as_me. ##
19156 _ASBOX
19157 $as_echo "$ac_log"
19158 } >&5
19159
19160 _ACEOF
19161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19162 #
19163 # INIT-COMMANDS
19164 #
19165 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19166
19167
19168 # The HP-UX ksh and POSIX shell print the target directory to stdout
19169 # if CDPATH is set.
19170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19171
19172 sed_quote_subst='$sed_quote_subst'
19173 double_quote_subst='$double_quote_subst'
19174 delay_variable_subst='$delay_variable_subst'
19175 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19176 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19177 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19178 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19179 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19180 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19181 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19182 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19183 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19184 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19185 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19186 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19187 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19188 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19189 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19190 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19191 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19192 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19193 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19194 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19195 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19196 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19197 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19198 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19199 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19200 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19201 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19202 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19203 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19204 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19205 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19206 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19207 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19208 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19209 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19210 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19211 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19212 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19213 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19214 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19215 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19216 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19217 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19218 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19219 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19220 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19221 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19222 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19223 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19224 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19225 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19226 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19227 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19228 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19229 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19230 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19231 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"`'
19232 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19233 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19234 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19235 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19236 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19237 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19238 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19239 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19240 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19241 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19242 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19243 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19244 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19245 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19246 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19247 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19248 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19249 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19250 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19251 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19252 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19253 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19254 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19255 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19256 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19257 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19258 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19259 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19260 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19261 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19262 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19263 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19264 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19265 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19266 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19267 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19268 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19269 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19270 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19271 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19272 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19273 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19274 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19275 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19276 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19277 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19278 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19279 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19280 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19281 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19282 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19283 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19284 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19285 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19286 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19287 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19288 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19289 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19290 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19291 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19292 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19293 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19294 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19295 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19296 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19297 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19298 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19305
19306 LTCC='$LTCC'
19307 LTCFLAGS='$LTCFLAGS'
19308 compiler='$compiler_DEFAULT'
19309
19310 # A function that is used when there is no print builtin or printf.
19311 func_fallback_echo ()
19312 {
19313 eval 'cat <<_LTECHO_EOF
19314 \$1
19315 _LTECHO_EOF'
19316 }
19317
19318 # Quote evaled strings.
19319 for var in SHELL \
19320 ECHO \
19321 PATH_SEPARATOR \
19322 SED \
19323 GREP \
19324 EGREP \
19325 FGREP \
19326 LD \
19327 NM \
19328 LN_S \
19329 lt_SP2NL \
19330 lt_NL2SP \
19331 reload_flag \
19332 OBJDUMP \
19333 deplibs_check_method \
19334 file_magic_cmd \
19335 file_magic_glob \
19336 want_nocaseglob \
19337 DLLTOOL \
19338 sharedlib_from_linklib_cmd \
19339 AR \
19340 AR_FLAGS \
19341 archiver_list_spec \
19342 STRIP \
19343 RANLIB \
19344 CC \
19345 CFLAGS \
19346 compiler \
19347 lt_cv_sys_global_symbol_pipe \
19348 lt_cv_sys_global_symbol_to_cdecl \
19349 lt_cv_sys_global_symbol_to_c_name_address \
19350 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19351 nm_file_list_spec \
19352 lt_prog_compiler_no_builtin_flag \
19353 lt_prog_compiler_pic \
19354 lt_prog_compiler_wl \
19355 lt_prog_compiler_static \
19356 lt_cv_prog_compiler_c_o \
19357 need_locks \
19358 MANIFEST_TOOL \
19359 DSYMUTIL \
19360 NMEDIT \
19361 LIPO \
19362 OTOOL \
19363 OTOOL64 \
19364 shrext_cmds \
19365 export_dynamic_flag_spec \
19366 whole_archive_flag_spec \
19367 compiler_needs_object \
19368 with_gnu_ld \
19369 allow_undefined_flag \
19370 no_undefined_flag \
19371 hardcode_libdir_flag_spec \
19372 hardcode_libdir_separator \
19373 exclude_expsyms \
19374 include_expsyms \
19375 file_list_spec \
19376 variables_saved_for_relink \
19377 libname_spec \
19378 library_names_spec \
19379 soname_spec \
19380 install_override_mode \
19381 finish_eval \
19382 old_striplib \
19383 striplib; do
19384 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19385 *[\\\\\\\`\\"\\\$]*)
19386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19387 ;;
19388 *)
19389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19390 ;;
19391 esac
19392 done
19393
19394 # Double-quote double-evaled strings.
19395 for var in reload_cmds \
19396 old_postinstall_cmds \
19397 old_postuninstall_cmds \
19398 old_archive_cmds \
19399 extract_expsyms_cmds \
19400 old_archive_from_new_cmds \
19401 old_archive_from_expsyms_cmds \
19402 archive_cmds \
19403 archive_expsym_cmds \
19404 module_cmds \
19405 module_expsym_cmds \
19406 export_symbols_cmds \
19407 prelink_cmds \
19408 postlink_cmds \
19409 postinstall_cmds \
19410 postuninstall_cmds \
19411 finish_cmds \
19412 sys_lib_search_path_spec \
19413 sys_lib_dlsearch_path_spec; do
19414 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19415 *[\\\\\\\`\\"\\\$]*)
19416 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19417 ;;
19418 *)
19419 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19420 ;;
19421 esac
19422 done
19423
19424 ac_aux_dir='$ac_aux_dir'
19425 xsi_shell='$xsi_shell'
19426 lt_shell_append='$lt_shell_append'
19427
19428 # See if we are running on zsh, and set the options which allow our
19429 # commands through without removal of \ escapes INIT.
19430 if test -n "\${ZSH_VERSION+set}" ; then
19431 setopt NO_GLOB_SUBST
19432 fi
19433
19434
19435 PACKAGE='$PACKAGE'
19436 VERSION='$VERSION'
19437 TIMESTAMP='$TIMESTAMP'
19438 RM='$RM'
19439 ofile='$ofile'
19440
19441
19442
19443
19444 _ACEOF
19445
19446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19447
19448 # Handling of arguments.
19449 for ac_config_target in $ac_config_targets
19450 do
19451 case $ac_config_target in
19452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19454 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19455 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19456 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19457 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19458
19459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19460 esac
19461 done
19462
19463
19464 # If the user did not use the arguments to specify the items to instantiate,
19465 # then the envvar interface is used. Set only those that are not.
19466 # We use the long form for the default assignment because of an extremely
19467 # bizarre bug on SunOS 4.1.3.
19468 if $ac_need_defaults; then
19469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19472 fi
19473
19474 # Have a temporary directory for convenience. Make it in the build tree
19475 # simply because there is no reason against having it here, and in addition,
19476 # creating and moving files from /tmp can sometimes cause problems.
19477 # Hook for its removal unless debugging.
19478 # Note that there is a small window in which the directory will not be cleaned:
19479 # after its creation but before its name has been assigned to `$tmp'.
19480 $debug ||
19481 {
19482 tmp= ac_tmp=
19483 trap 'exit_status=$?
19484 : "${ac_tmp:=$tmp}"
19485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19486 ' 0
19487 trap 'as_fn_exit 1' 1 2 13 15
19488 }
19489 # Create a (secure) tmp directory for tmp files.
19490
19491 {
19492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19493 test -d "$tmp"
19494 } ||
19495 {
19496 tmp=./conf$$-$RANDOM
19497 (umask 077 && mkdir "$tmp")
19498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19499 ac_tmp=$tmp
19500
19501 # Set up the scripts for CONFIG_FILES section.
19502 # No need to generate them if there are no CONFIG_FILES.
19503 # This happens for instance with `./config.status config.h'.
19504 if test -n "$CONFIG_FILES"; then
19505
19506
19507 ac_cr=`echo X | tr X '\015'`
19508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19509 # But we know of no other shell where ac_cr would be empty at this
19510 # point, so we can use a bashism as a fallback.
19511 if test "x$ac_cr" = x; then
19512 eval ac_cr=\$\'\\r\'
19513 fi
19514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19516 ac_cs_awk_cr='\\r'
19517 else
19518 ac_cs_awk_cr=$ac_cr
19519 fi
19520
19521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19522 _ACEOF
19523
19524
19525 {
19526 echo "cat >conf$$subs.awk <<_ACEOF" &&
19527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19528 echo "_ACEOF"
19529 } >conf$$subs.sh ||
19530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19532 ac_delim='%!_!# '
19533 for ac_last_try in false false false false false :; do
19534 . ./conf$$subs.sh ||
19535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19536
19537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19538 if test $ac_delim_n = $ac_delim_num; then
19539 break
19540 elif $ac_last_try; then
19541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19542 else
19543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19544 fi
19545 done
19546 rm -f conf$$subs.sh
19547
19548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19550 _ACEOF
19551 sed -n '
19552 h
19553 s/^/S["/; s/!.*/"]=/
19554 p
19555 g
19556 s/^[^!]*!//
19557 :repl
19558 t repl
19559 s/'"$ac_delim"'$//
19560 t delim
19561 :nl
19562 h
19563 s/\(.\{148\}\)..*/\1/
19564 t more1
19565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19566 p
19567 n
19568 b repl
19569 :more1
19570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19571 p
19572 g
19573 s/.\{148\}//
19574 t nl
19575 :delim
19576 h
19577 s/\(.\{148\}\)..*/\1/
19578 t more2
19579 s/["\\]/\\&/g; s/^/"/; s/$/"/
19580 p
19581 b
19582 :more2
19583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19584 p
19585 g
19586 s/.\{148\}//
19587 t delim
19588 ' <conf$$subs.awk | sed '
19589 /^[^""]/{
19590 N
19591 s/\n//
19592 }
19593 ' >>$CONFIG_STATUS || ac_write_fail=1
19594 rm -f conf$$subs.awk
19595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19596 _ACAWK
19597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19598 for (key in S) S_is_set[key] = 1
19599 FS = ""
19600
19601 }
19602 {
19603 line = $ 0
19604 nfields = split(line, field, "@")
19605 substed = 0
19606 len = length(field[1])
19607 for (i = 2; i < nfields; i++) {
19608 key = field[i]
19609 keylen = length(key)
19610 if (S_is_set[key]) {
19611 value = S[key]
19612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19613 len += length(value) + length(field[++i])
19614 substed = 1
19615 } else
19616 len += 1 + keylen
19617 }
19618
19619 print line
19620 }
19621
19622 _ACAWK
19623 _ACEOF
19624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19627 else
19628 cat
19629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19631 _ACEOF
19632
19633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19635 # trailing colons and then remove the whole line if VPATH becomes empty
19636 # (actually we leave an empty line to preserve line numbers).
19637 if test "x$srcdir" = x.; then
19638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19639 h
19640 s///
19641 s/^/:/
19642 s/[ ]*$/:/
19643 s/:\$(srcdir):/:/g
19644 s/:\${srcdir}:/:/g
19645 s/:@srcdir@:/:/g
19646 s/^:*//
19647 s/:*$//
19648 x
19649 s/\(=[ ]*\).*/\1/
19650 G
19651 s/\n//
19652 s/^[^=]*=[ ]*$//
19653 }'
19654 fi
19655
19656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657 fi # test -n "$CONFIG_FILES"
19658
19659 # Set up the scripts for CONFIG_HEADERS section.
19660 # No need to generate them if there are no CONFIG_HEADERS.
19661 # This happens for instance with `./config.status Makefile'.
19662 if test -n "$CONFIG_HEADERS"; then
19663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19664 BEGIN {
19665 _ACEOF
19666
19667 # Transform confdefs.h into an awk script `defines.awk', embedded as
19668 # here-document in config.status, that substitutes the proper values into
19669 # config.h.in to produce config.h.
19670
19671 # Create a delimiter string that does not exist in confdefs.h, to ease
19672 # handling of long lines.
19673 ac_delim='%!_!# '
19674 for ac_last_try in false false :; do
19675 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19676 if test -z "$ac_tt"; then
19677 break
19678 elif $ac_last_try; then
19679 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19680 else
19681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19682 fi
19683 done
19684
19685 # For the awk script, D is an array of macro values keyed by name,
19686 # likewise P contains macro parameters if any. Preserve backslash
19687 # newline sequences.
19688
19689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19690 sed -n '
19691 s/.\{148\}/&'"$ac_delim"'/g
19692 t rset
19693 :rset
19694 s/^[ ]*#[ ]*define[ ][ ]*/ /
19695 t def
19696 d
19697 :def
19698 s/\\$//
19699 t bsnl
19700 s/["\\]/\\&/g
19701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19702 D["\1"]=" \3"/p
19703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19704 d
19705 :bsnl
19706 s/["\\]/\\&/g
19707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19708 D["\1"]=" \3\\\\\\n"\\/p
19709 t cont
19710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19711 t cont
19712 d
19713 :cont
19714 n
19715 s/.\{148\}/&'"$ac_delim"'/g
19716 t clear
19717 :clear
19718 s/\\$//
19719 t bsnlc
19720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19721 d
19722 :bsnlc
19723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19724 b cont
19725 ' <confdefs.h | sed '
19726 s/'"$ac_delim"'/"\\\
19727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19728
19729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19730 for (key in D) D_is_set[key] = 1
19731 FS = ""
19732 }
19733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19734 line = \$ 0
19735 split(line, arg, " ")
19736 if (arg[1] == "#") {
19737 defundef = arg[2]
19738 mac1 = arg[3]
19739 } else {
19740 defundef = substr(arg[1], 2)
19741 mac1 = arg[2]
19742 }
19743 split(mac1, mac2, "(") #)
19744 macro = mac2[1]
19745 prefix = substr(line, 1, index(line, defundef) - 1)
19746 if (D_is_set[macro]) {
19747 # Preserve the white space surrounding the "#".
19748 print prefix "define", macro P[macro] D[macro]
19749 next
19750 } else {
19751 # Replace #undef with comments. This is necessary, for example,
19752 # in the case of _POSIX_SOURCE, which is predefined and required
19753 # on some systems where configure will not decide to define it.
19754 if (defundef == "undef") {
19755 print "/*", prefix defundef, macro, "*/"
19756 next
19757 }
19758 }
19759 }
19760 { print }
19761 _ACAWK
19762 _ACEOF
19763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19764 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19765 fi # test -n "$CONFIG_HEADERS"
19766
19767
19768 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19769 shift
19770 for ac_tag
19771 do
19772 case $ac_tag in
19773 :[FHLC]) ac_mode=$ac_tag; continue;;
19774 esac
19775 case $ac_mode$ac_tag in
19776 :[FHL]*:*);;
19777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19778 :[FH]-) ac_tag=-:-;;
19779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19780 esac
19781 ac_save_IFS=$IFS
19782 IFS=:
19783 set x $ac_tag
19784 IFS=$ac_save_IFS
19785 shift
19786 ac_file=$1
19787 shift
19788
19789 case $ac_mode in
19790 :L) ac_source=$1;;
19791 :[FH])
19792 ac_file_inputs=
19793 for ac_f
19794 do
19795 case $ac_f in
19796 -) ac_f="$ac_tmp/stdin";;
19797 *) # Look for the file first in the build tree, then in the source tree
19798 # (if the path is not absolute). The absolute path cannot be DOS-style,
19799 # because $ac_f cannot contain `:'.
19800 test -f "$ac_f" ||
19801 case $ac_f in
19802 [\\/$]*) false;;
19803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19804 esac ||
19805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19806 esac
19807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19808 as_fn_append ac_file_inputs " '$ac_f'"
19809 done
19810
19811 # Let's still pretend it is `configure' which instantiates (i.e., don't
19812 # use $as_me), people would be surprised to read:
19813 # /* config.h. Generated by config.status. */
19814 configure_input='Generated from '`
19815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19816 `' by configure.'
19817 if test x"$ac_file" != x-; then
19818 configure_input="$ac_file. $configure_input"
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19820 $as_echo "$as_me: creating $ac_file" >&6;}
19821 fi
19822 # Neutralize special characters interpreted by sed in replacement strings.
19823 case $configure_input in #(
19824 *\&* | *\|* | *\\* )
19825 ac_sed_conf_input=`$as_echo "$configure_input" |
19826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19827 *) ac_sed_conf_input=$configure_input;;
19828 esac
19829
19830 case $ac_tag in
19831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19833 esac
19834 ;;
19835 esac
19836
19837 ac_dir=`$as_dirname -- "$ac_file" ||
19838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19839 X"$ac_file" : 'X\(//\)[^/]' \| \
19840 X"$ac_file" : 'X\(//\)$' \| \
19841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19842 $as_echo X"$ac_file" |
19843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19844 s//\1/
19845 q
19846 }
19847 /^X\(\/\/\)[^/].*/{
19848 s//\1/
19849 q
19850 }
19851 /^X\(\/\/\)$/{
19852 s//\1/
19853 q
19854 }
19855 /^X\(\/\).*/{
19856 s//\1/
19857 q
19858 }
19859 s/.*/./; q'`
19860 as_dir="$ac_dir"; as_fn_mkdir_p
19861 ac_builddir=.
19862
19863 case "$ac_dir" in
19864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19865 *)
19866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19867 # A ".." for each directory in $ac_dir_suffix.
19868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19869 case $ac_top_builddir_sub in
19870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19872 esac ;;
19873 esac
19874 ac_abs_top_builddir=$ac_pwd
19875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19876 # for backward compatibility:
19877 ac_top_builddir=$ac_top_build_prefix
19878
19879 case $srcdir in
19880 .) # We are building in place.
19881 ac_srcdir=.
19882 ac_top_srcdir=$ac_top_builddir_sub
19883 ac_abs_top_srcdir=$ac_pwd ;;
19884 [\\/]* | ?:[\\/]* ) # Absolute name.
19885 ac_srcdir=$srcdir$ac_dir_suffix;
19886 ac_top_srcdir=$srcdir
19887 ac_abs_top_srcdir=$srcdir ;;
19888 *) # Relative name.
19889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19890 ac_top_srcdir=$ac_top_build_prefix$srcdir
19891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19892 esac
19893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19894
19895
19896 case $ac_mode in
19897 :F)
19898 #
19899 # CONFIG_FILE
19900 #
19901
19902 case $INSTALL in
19903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19905 esac
19906 ac_MKDIR_P=$MKDIR_P
19907 case $MKDIR_P in
19908 [\\/$]* | ?:[\\/]* ) ;;
19909 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19910 esac
19911 _ACEOF
19912
19913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914 # If the template does not know about datarootdir, expand it.
19915 # FIXME: This hack should be removed a few years after 2.60.
19916 ac_datarootdir_hack=; ac_datarootdir_seen=
19917 ac_sed_dataroot='
19918 /datarootdir/ {
19919 p
19920 q
19921 }
19922 /@datadir@/p
19923 /@docdir@/p
19924 /@infodir@/p
19925 /@localedir@/p
19926 /@mandir@/p'
19927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19928 *datarootdir*) ac_datarootdir_seen=yes;;
19929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19932 _ACEOF
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19934 ac_datarootdir_hack='
19935 s&@datadir@&$datadir&g
19936 s&@docdir@&$docdir&g
19937 s&@infodir@&$infodir&g
19938 s&@localedir@&$localedir&g
19939 s&@mandir@&$mandir&g
19940 s&\\\${datarootdir}&$datarootdir&g' ;;
19941 esac
19942 _ACEOF
19943
19944 # Neutralize VPATH when `$srcdir' = `.'.
19945 # Shell code in configure.ac might set extrasub.
19946 # FIXME: do we really want to maintain this feature?
19947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19948 ac_sed_extra="$ac_vpsub
19949 $extrasub
19950 _ACEOF
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952 :t
19953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19954 s|@configure_input@|$ac_sed_conf_input|;t t
19955 s&@top_builddir@&$ac_top_builddir_sub&;t t
19956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19957 s&@srcdir@&$ac_srcdir&;t t
19958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19959 s&@top_srcdir@&$ac_top_srcdir&;t t
19960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19961 s&@builddir@&$ac_builddir&;t t
19962 s&@abs_builddir@&$ac_abs_builddir&;t t
19963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19964 s&@INSTALL@&$ac_INSTALL&;t t
19965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19966 $ac_datarootdir_hack
19967 "
19968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19970
19971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19976 which seems to be undefined. Please make sure it is defined" >&5
19977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19978 which seems to be undefined. Please make sure it is defined" >&2;}
19979
19980 rm -f "$ac_tmp/stdin"
19981 case $ac_file in
19982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19984 esac \
19985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19986 ;;
19987 :H)
19988 #
19989 # CONFIG_HEADER
19990 #
19991 if test x"$ac_file" != x-; then
19992 {
19993 $as_echo "/* $configure_input */" \
19994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19995 } >"$ac_tmp/config.h" \
19996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20000 else
20001 rm -f "$ac_file"
20002 mv "$ac_tmp/config.h" "$ac_file" \
20003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20004 fi
20005 else
20006 $as_echo "/* $configure_input */" \
20007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20008 || as_fn_error $? "could not create -" "$LINENO" 5
20009 fi
20010 # Compute "$ac_file"'s index in $config_headers.
20011 _am_arg="$ac_file"
20012 _am_stamp_count=1
20013 for _am_header in $config_headers :; do
20014 case $_am_header in
20015 $_am_arg | $_am_arg:* )
20016 break ;;
20017 * )
20018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20019 esac
20020 done
20021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20023 X"$_am_arg" : 'X\(//\)[^/]' \| \
20024 X"$_am_arg" : 'X\(//\)$' \| \
20025 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20026 $as_echo X"$_am_arg" |
20027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20028 s//\1/
20029 q
20030 }
20031 /^X\(\/\/\)[^/].*/{
20032 s//\1/
20033 q
20034 }
20035 /^X\(\/\/\)$/{
20036 s//\1/
20037 q
20038 }
20039 /^X\(\/\).*/{
20040 s//\1/
20041 q
20042 }
20043 s/.*/./; q'`/stamp-h$_am_stamp_count
20044 ;;
20045
20046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20047 $as_echo "$as_me: executing $ac_file commands" >&6;}
20048 ;;
20049 esac
20050
20051
20052 case $ac_file$ac_mode in
20053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20054 # Older Autoconf quotes --file arguments for eval, but not when files
20055 # are listed without --file. Let's play safe and only enable the eval
20056 # if we detect the quoting.
20057 case $CONFIG_FILES in
20058 *\'*) eval set x "$CONFIG_FILES" ;;
20059 *) set x $CONFIG_FILES ;;
20060 esac
20061 shift
20062 for mf
20063 do
20064 # Strip MF so we end up with the name of the file.
20065 mf=`echo "$mf" | sed -e 's/:.*$//'`
20066 # Check whether this is an Automake generated Makefile or not.
20067 # We used to match only the files named 'Makefile.in', but
20068 # some people rename them; so instead we look at the file content.
20069 # Grep'ing the first line is not enough: some people post-process
20070 # each Makefile.in and add a new line on top of each file to say so.
20071 # Grep'ing the whole file is not good either: AIX grep has a line
20072 # limit of 2048, but all sed's we know have understand at least 4000.
20073 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20074 dirpart=`$as_dirname -- "$mf" ||
20075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20076 X"$mf" : 'X\(//\)[^/]' \| \
20077 X"$mf" : 'X\(//\)$' \| \
20078 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20079 $as_echo X"$mf" |
20080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20081 s//\1/
20082 q
20083 }
20084 /^X\(\/\/\)[^/].*/{
20085 s//\1/
20086 q
20087 }
20088 /^X\(\/\/\)$/{
20089 s//\1/
20090 q
20091 }
20092 /^X\(\/\).*/{
20093 s//\1/
20094 q
20095 }
20096 s/.*/./; q'`
20097 else
20098 continue
20099 fi
20100 # Extract the definition of DEPDIR, am__include, and am__quote
20101 # from the Makefile without running 'make'.
20102 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20103 test -z "$DEPDIR" && continue
20104 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20105 test -z "$am__include" && continue
20106 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20107 # Find all dependency output files, they are included files with
20108 # $(DEPDIR) in their names. We invoke sed twice because it is the
20109 # simplest approach to changing $(DEPDIR) to its actual value in the
20110 # expansion.
20111 for file in `sed -n "
20112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20114 # Make sure the directory exists.
20115 test -f "$dirpart/$file" && continue
20116 fdir=`$as_dirname -- "$file" ||
20117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20118 X"$file" : 'X\(//\)[^/]' \| \
20119 X"$file" : 'X\(//\)$' \| \
20120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20121 $as_echo X"$file" |
20122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20123 s//\1/
20124 q
20125 }
20126 /^X\(\/\/\)[^/].*/{
20127 s//\1/
20128 q
20129 }
20130 /^X\(\/\/\)$/{
20131 s//\1/
20132 q
20133 }
20134 /^X\(\/\).*/{
20135 s//\1/
20136 q
20137 }
20138 s/.*/./; q'`
20139 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20140 # echo "creating $dirpart/$file"
20141 echo '# dummy' > "$dirpart/$file"
20142 done
20143 done
20144 }
20145 ;;
20146 "libtool":C)
20147
20148 # See if we are running on zsh, and set the options which allow our
20149 # commands through without removal of \ escapes.
20150 if test -n "${ZSH_VERSION+set}" ; then
20151 setopt NO_GLOB_SUBST
20152 fi
20153
20154 cfgfile="${ofile}T"
20155 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20156 $RM "$cfgfile"
20157
20158 cat <<_LT_EOF >> "$cfgfile"
20159 #! $SHELL
20160
20161 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20162 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20165 #
20166 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20167 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20168 # Foundation, Inc.
20169 # Written by Gordon Matzigkeit, 1996
20170 #
20171 # This file is part of GNU Libtool.
20172 #
20173 # GNU Libtool is free software; you can redistribute it and/or
20174 # modify it under the terms of the GNU General Public License as
20175 # published by the Free Software Foundation; either version 2 of
20176 # the License, or (at your option) any later version.
20177 #
20178 # As a special exception to the GNU General Public License,
20179 # if you distribute this file as part of a program or library that
20180 # is built using GNU Libtool, you may include this file under the
20181 # same distribution terms that you use for the rest of that program.
20182 #
20183 # GNU Libtool is distributed in the hope that it will be useful,
20184 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20186 # GNU General Public License for more details.
20187 #
20188 # You should have received a copy of the GNU General Public License
20189 # along with GNU Libtool; see the file COPYING. If not, a copy
20190 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20191 # obtained by writing to the Free Software Foundation, Inc.,
20192 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20193
20194
20195 # The names of the tagged configurations supported by this script.
20196 available_tags=""
20197
20198 # ### BEGIN LIBTOOL CONFIG
20199
20200 # Whether or not to build static libraries.
20201 build_old_libs=$enable_static
20202
20203 # Which release of libtool.m4 was used?
20204 macro_version=$macro_version
20205 macro_revision=$macro_revision
20206
20207 # Whether or not to build shared libraries.
20208 build_libtool_libs=$enable_shared
20209
20210 # What type of objects to build.
20211 pic_mode=$pic_mode
20212
20213 # Whether or not to optimize for fast installation.
20214 fast_install=$enable_fast_install
20215
20216 # Shell to use when invoking shell scripts.
20217 SHELL=$lt_SHELL
20218
20219 # An echo program that protects backslashes.
20220 ECHO=$lt_ECHO
20221
20222 # The PATH separator for the build system.
20223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20224
20225 # The host system.
20226 host_alias=$host_alias
20227 host=$host
20228 host_os=$host_os
20229
20230 # The build system.
20231 build_alias=$build_alias
20232 build=$build
20233 build_os=$build_os
20234
20235 # A sed program that does not truncate output.
20236 SED=$lt_SED
20237
20238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20239 Xsed="\$SED -e 1s/^X//"
20240
20241 # A grep program that handles long lines.
20242 GREP=$lt_GREP
20243
20244 # An ERE matcher.
20245 EGREP=$lt_EGREP
20246
20247 # A literal string matcher.
20248 FGREP=$lt_FGREP
20249
20250 # A BSD- or MS-compatible name lister.
20251 NM=$lt_NM
20252
20253 # Whether we need soft or hard links.
20254 LN_S=$lt_LN_S
20255
20256 # What is the maximum length of a command?
20257 max_cmd_len=$max_cmd_len
20258
20259 # Object file suffix (normally "o").
20260 objext=$ac_objext
20261
20262 # Executable file suffix (normally "").
20263 exeext=$exeext
20264
20265 # whether the shell understands "unset".
20266 lt_unset=$lt_unset
20267
20268 # turn spaces into newlines.
20269 SP2NL=$lt_lt_SP2NL
20270
20271 # turn newlines into spaces.
20272 NL2SP=$lt_lt_NL2SP
20273
20274 # convert \$build file names to \$host format.
20275 to_host_file_cmd=$lt_cv_to_host_file_cmd
20276
20277 # convert \$build files to toolchain format.
20278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20279
20280 # An object symbol dumper.
20281 OBJDUMP=$lt_OBJDUMP
20282
20283 # Method to check whether dependent libraries are shared objects.
20284 deplibs_check_method=$lt_deplibs_check_method
20285
20286 # Command to use when deplibs_check_method = "file_magic".
20287 file_magic_cmd=$lt_file_magic_cmd
20288
20289 # How to find potential files when deplibs_check_method = "file_magic".
20290 file_magic_glob=$lt_file_magic_glob
20291
20292 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20293 want_nocaseglob=$lt_want_nocaseglob
20294
20295 # DLL creation program.
20296 DLLTOOL=$lt_DLLTOOL
20297
20298 # Command to associate shared and link libraries.
20299 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20300
20301 # The archiver.
20302 AR=$lt_AR
20303
20304 # Flags to create an archive.
20305 AR_FLAGS=$lt_AR_FLAGS
20306
20307 # How to feed a file listing to the archiver.
20308 archiver_list_spec=$lt_archiver_list_spec
20309
20310 # A symbol stripping program.
20311 STRIP=$lt_STRIP
20312
20313 # Commands used to install an old-style archive.
20314 RANLIB=$lt_RANLIB
20315 old_postinstall_cmds=$lt_old_postinstall_cmds
20316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20317
20318 # Whether to use a lock for old archive extraction.
20319 lock_old_archive_extraction=$lock_old_archive_extraction
20320
20321 # A C compiler.
20322 LTCC=$lt_CC
20323
20324 # LTCC compiler flags.
20325 LTCFLAGS=$lt_CFLAGS
20326
20327 # Take the output of nm and produce a listing of raw symbols and C names.
20328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20329
20330 # Transform the output of nm in a proper C declaration.
20331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20332
20333 # Transform the output of nm in a C name address pair.
20334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20335
20336 # Transform the output of nm in a C name address pair when lib prefix is needed.
20337 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20338
20339 # Specify filename containing input files for \$NM.
20340 nm_file_list_spec=$lt_nm_file_list_spec
20341
20342 # The root where to search for dependent libraries,and in which our libraries should be installed.
20343 lt_sysroot=$lt_sysroot
20344
20345 # The name of the directory that contains temporary libtool files.
20346 objdir=$objdir
20347
20348 # Used to examine libraries when file_magic_cmd begins with "file".
20349 MAGIC_CMD=$MAGIC_CMD
20350
20351 # Must we lock files when doing compilation?
20352 need_locks=$lt_need_locks
20353
20354 # Manifest tool.
20355 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20356
20357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20358 DSYMUTIL=$lt_DSYMUTIL
20359
20360 # Tool to change global to local symbols on Mac OS X.
20361 NMEDIT=$lt_NMEDIT
20362
20363 # Tool to manipulate fat objects and archives on Mac OS X.
20364 LIPO=$lt_LIPO
20365
20366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20367 OTOOL=$lt_OTOOL
20368
20369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20370 OTOOL64=$lt_OTOOL64
20371
20372 # Old archive suffix (normally "a").
20373 libext=$libext
20374
20375 # Shared library suffix (normally ".so").
20376 shrext_cmds=$lt_shrext_cmds
20377
20378 # The commands to extract the exported symbol list from a shared archive.
20379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20380
20381 # Variables whose values should be saved in libtool wrapper scripts and
20382 # restored at link time.
20383 variables_saved_for_relink=$lt_variables_saved_for_relink
20384
20385 # Do we need the "lib" prefix for modules?
20386 need_lib_prefix=$need_lib_prefix
20387
20388 # Do we need a version for libraries?
20389 need_version=$need_version
20390
20391 # Library versioning type.
20392 version_type=$version_type
20393
20394 # Shared library runtime path variable.
20395 runpath_var=$runpath_var
20396
20397 # Shared library path variable.
20398 shlibpath_var=$shlibpath_var
20399
20400 # Is shlibpath searched before the hard-coded library search path?
20401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20402
20403 # Format of library name prefix.
20404 libname_spec=$lt_libname_spec
20405
20406 # List of archive names. First name is the real one, the rest are links.
20407 # The last name is the one that the linker finds with -lNAME
20408 library_names_spec=$lt_library_names_spec
20409
20410 # The coded name of the library, if different from the real name.
20411 soname_spec=$lt_soname_spec
20412
20413 # Permission mode override for installation of shared libraries.
20414 install_override_mode=$lt_install_override_mode
20415
20416 # Command to use after installation of a shared archive.
20417 postinstall_cmds=$lt_postinstall_cmds
20418
20419 # Command to use after uninstallation of a shared archive.
20420 postuninstall_cmds=$lt_postuninstall_cmds
20421
20422 # Commands used to finish a libtool library installation in a directory.
20423 finish_cmds=$lt_finish_cmds
20424
20425 # As "finish_cmds", except a single script fragment to be evaled but
20426 # not shown.
20427 finish_eval=$lt_finish_eval
20428
20429 # Whether we should hardcode library paths into libraries.
20430 hardcode_into_libs=$hardcode_into_libs
20431
20432 # Compile-time system search path for libraries.
20433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20434
20435 # Run-time system search path for libraries.
20436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20437
20438 # Whether dlopen is supported.
20439 dlopen_support=$enable_dlopen
20440
20441 # Whether dlopen of programs is supported.
20442 dlopen_self=$enable_dlopen_self
20443
20444 # Whether dlopen of statically linked programs is supported.
20445 dlopen_self_static=$enable_dlopen_self_static
20446
20447 # Commands to strip libraries.
20448 old_striplib=$lt_old_striplib
20449 striplib=$lt_striplib
20450
20451
20452 # The linker used to build libraries.
20453 LD=$lt_LD
20454
20455 # How to create reloadable object files.
20456 reload_flag=$lt_reload_flag
20457 reload_cmds=$lt_reload_cmds
20458
20459 # Commands used to build an old-style archive.
20460 old_archive_cmds=$lt_old_archive_cmds
20461
20462 # A language specific compiler.
20463 CC=$lt_compiler
20464
20465 # Is the compiler the GNU compiler?
20466 with_gcc=$GCC
20467
20468 # Compiler flag to turn off builtin functions.
20469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20470
20471 # Additional compiler flags for building library objects.
20472 pic_flag=$lt_lt_prog_compiler_pic
20473
20474 # How to pass a linker flag through the compiler.
20475 wl=$lt_lt_prog_compiler_wl
20476
20477 # Compiler flag to prevent dynamic linking.
20478 link_static_flag=$lt_lt_prog_compiler_static
20479
20480 # Does compiler simultaneously support -c and -o options?
20481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20482
20483 # Whether or not to add -lc for building shared libraries.
20484 build_libtool_need_lc=$archive_cmds_need_lc
20485
20486 # Whether or not to disallow shared libs when runtime libs are static.
20487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20488
20489 # Compiler flag to allow reflexive dlopens.
20490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20491
20492 # Compiler flag to generate shared objects directly from archives.
20493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20494
20495 # Whether the compiler copes with passing no objects directly.
20496 compiler_needs_object=$lt_compiler_needs_object
20497
20498 # Create an old-style archive from a shared archive.
20499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20500
20501 # Create a temporary old-style archive to link instead of a shared archive.
20502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20503
20504 # Commands used to build a shared archive.
20505 archive_cmds=$lt_archive_cmds
20506 archive_expsym_cmds=$lt_archive_expsym_cmds
20507
20508 # Commands used to build a loadable module if different from building
20509 # a shared archive.
20510 module_cmds=$lt_module_cmds
20511 module_expsym_cmds=$lt_module_expsym_cmds
20512
20513 # Whether we are building with GNU ld or not.
20514 with_gnu_ld=$lt_with_gnu_ld
20515
20516 # Flag that allows shared libraries with undefined symbols to be built.
20517 allow_undefined_flag=$lt_allow_undefined_flag
20518
20519 # Flag that enforces no undefined symbols.
20520 no_undefined_flag=$lt_no_undefined_flag
20521
20522 # Flag to hardcode \$libdir into a binary during linking.
20523 # This must work even if \$libdir does not exist
20524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20525
20526 # Whether we need a single "-rpath" flag with a separated argument.
20527 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20528
20529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20530 # DIR into the resulting binary.
20531 hardcode_direct=$hardcode_direct
20532
20533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20534 # DIR into the resulting binary and the resulting library dependency is
20535 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20536 # library is relocated.
20537 hardcode_direct_absolute=$hardcode_direct_absolute
20538
20539 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20540 # into the resulting binary.
20541 hardcode_minus_L=$hardcode_minus_L
20542
20543 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20544 # into the resulting binary.
20545 hardcode_shlibpath_var=$hardcode_shlibpath_var
20546
20547 # Set to "yes" if building a shared library automatically hardcodes DIR
20548 # into the library and all subsequent libraries and executables linked
20549 # against it.
20550 hardcode_automatic=$hardcode_automatic
20551
20552 # Set to yes if linker adds runtime paths of dependent libraries
20553 # to runtime path list.
20554 inherit_rpath=$inherit_rpath
20555
20556 # Whether libtool must link a program against all its dependency libraries.
20557 link_all_deplibs=$link_all_deplibs
20558
20559 # Set to "yes" if exported symbols are required.
20560 always_export_symbols=$always_export_symbols
20561
20562 # The commands to list exported symbols.
20563 export_symbols_cmds=$lt_export_symbols_cmds
20564
20565 # Symbols that should not be listed in the preloaded symbols.
20566 exclude_expsyms=$lt_exclude_expsyms
20567
20568 # Symbols that must always be exported.
20569 include_expsyms=$lt_include_expsyms
20570
20571 # Commands necessary for linking programs (against libraries) with templates.
20572 prelink_cmds=$lt_prelink_cmds
20573
20574 # Commands necessary for finishing linking programs.
20575 postlink_cmds=$lt_postlink_cmds
20576
20577 # Specify filename containing input files.
20578 file_list_spec=$lt_file_list_spec
20579
20580 # How to hardcode a shared library path into an executable.
20581 hardcode_action=$hardcode_action
20582
20583 # ### END LIBTOOL CONFIG
20584
20585 _LT_EOF
20586
20587 case $host_os in
20588 aix3*)
20589 cat <<\_LT_EOF >> "$cfgfile"
20590 # AIX sometimes has problems with the GCC collect2 program. For some
20591 # reason, if we set the COLLECT_NAMES environment variable, the problems
20592 # vanish in a puff of smoke.
20593 if test "X${COLLECT_NAMES+set}" != Xset; then
20594 COLLECT_NAMES=
20595 export COLLECT_NAMES
20596 fi
20597 _LT_EOF
20598 ;;
20599 esac
20600
20601
20602 ltmain="$ac_aux_dir/ltmain.sh"
20603
20604
20605 # We use sed instead of cat because bash on DJGPP gets confused if
20606 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20607 # text mode, it properly converts lines to CR/LF. This bash problem
20608 # is reportedly fixed, but why not run on old versions too?
20609 sed '$q' "$ltmain" >> "$cfgfile" \
20610 || (rm -f "$cfgfile"; exit 1)
20611
20612 if test x"$xsi_shell" = xyes; then
20613 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20614 func_dirname ()\
20615 {\
20616 \ case ${1} in\
20617 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20618 \ * ) func_dirname_result="${3}" ;;\
20619 \ esac\
20620 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20621 && mv -f "$cfgfile.tmp" "$cfgfile" \
20622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20623 test 0 -eq $? || _lt_function_replace_fail=:
20624
20625
20626 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20627 func_basename ()\
20628 {\
20629 \ func_basename_result="${1##*/}"\
20630 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20631 && mv -f "$cfgfile.tmp" "$cfgfile" \
20632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20633 test 0 -eq $? || _lt_function_replace_fail=:
20634
20635
20636 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20637 func_dirname_and_basename ()\
20638 {\
20639 \ case ${1} in\
20640 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20641 \ * ) func_dirname_result="${3}" ;;\
20642 \ esac\
20643 \ func_basename_result="${1##*/}"\
20644 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20645 && mv -f "$cfgfile.tmp" "$cfgfile" \
20646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20647 test 0 -eq $? || _lt_function_replace_fail=:
20648
20649
20650 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20651 func_stripname ()\
20652 {\
20653 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20654 \ # positional parameters, so assign one to ordinary parameter first.\
20655 \ func_stripname_result=${3}\
20656 \ func_stripname_result=${func_stripname_result#"${1}"}\
20657 \ func_stripname_result=${func_stripname_result%"${2}"}\
20658 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20659 && mv -f "$cfgfile.tmp" "$cfgfile" \
20660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20661 test 0 -eq $? || _lt_function_replace_fail=:
20662
20663
20664 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20665 func_split_long_opt ()\
20666 {\
20667 \ func_split_long_opt_name=${1%%=*}\
20668 \ func_split_long_opt_arg=${1#*=}\
20669 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20670 && mv -f "$cfgfile.tmp" "$cfgfile" \
20671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20672 test 0 -eq $? || _lt_function_replace_fail=:
20673
20674
20675 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20676 func_split_short_opt ()\
20677 {\
20678 \ func_split_short_opt_arg=${1#??}\
20679 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20680 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20681 && mv -f "$cfgfile.tmp" "$cfgfile" \
20682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20683 test 0 -eq $? || _lt_function_replace_fail=:
20684
20685
20686 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20687 func_lo2o ()\
20688 {\
20689 \ case ${1} in\
20690 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20691 \ *) func_lo2o_result=${1} ;;\
20692 \ esac\
20693 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20694 && mv -f "$cfgfile.tmp" "$cfgfile" \
20695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20696 test 0 -eq $? || _lt_function_replace_fail=:
20697
20698
20699 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20700 func_xform ()\
20701 {\
20702 func_xform_result=${1%.*}.lo\
20703 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20704 && mv -f "$cfgfile.tmp" "$cfgfile" \
20705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20706 test 0 -eq $? || _lt_function_replace_fail=:
20707
20708
20709 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20710 func_arith ()\
20711 {\
20712 func_arith_result=$(( $* ))\
20713 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20714 && mv -f "$cfgfile.tmp" "$cfgfile" \
20715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20716 test 0 -eq $? || _lt_function_replace_fail=:
20717
20718
20719 sed -e '/^func_len ()$/,/^} # func_len /c\
20720 func_len ()\
20721 {\
20722 func_len_result=${#1}\
20723 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20724 && mv -f "$cfgfile.tmp" "$cfgfile" \
20725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20726 test 0 -eq $? || _lt_function_replace_fail=:
20727
20728 fi
20729
20730 if test x"$lt_shell_append" = xyes; then
20731 sed -e '/^func_append ()$/,/^} # func_append /c\
20732 func_append ()\
20733 {\
20734 eval "${1}+=\\${2}"\
20735 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20736 && mv -f "$cfgfile.tmp" "$cfgfile" \
20737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20739
20740
20741 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20742 func_append_quoted ()\
20743 {\
20744 \ func_quote_for_eval "${2}"\
20745 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20746 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20747 && mv -f "$cfgfile.tmp" "$cfgfile" \
20748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20749 test 0 -eq $? || _lt_function_replace_fail=:
20750
20751
20752 # Save a `func_append' function call where possible by direct use of '+='
20753 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20754 && mv -f "$cfgfile.tmp" "$cfgfile" \
20755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20756 test 0 -eq $? || _lt_function_replace_fail=:
20757 else
20758 # Save a `func_append' function call even when '+=' is not available
20759 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20760 && mv -f "$cfgfile.tmp" "$cfgfile" \
20761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20762 test 0 -eq $? || _lt_function_replace_fail=:
20763 fi
20764
20765 if test x"$_lt_function_replace_fail" = x":"; then
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20767 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20768 fi
20769
20770
20771 mv -f "$cfgfile" "$ofile" ||
20772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20773 chmod +x "$ofile"
20774
20775 ;;
20776
20777 esac
20778 done # for ac_tag
20779
20780
20781 as_fn_exit 0
20782 _ACEOF
20783 ac_clean_files=$ac_clean_files_save
20784
20785 test $ac_write_fail = 0 ||
20786 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20787
20788
20789 # configure is writing to config.log, and then calls config.status.
20790 # config.status does its own redirection, appending to config.log.
20791 # Unfortunately, on DOS this fails, as config.log is still kept open
20792 # by configure, so config.status won't be able to write to it; its
20793 # output is simply discarded. So we exec the FD to /dev/null,
20794 # effectively closing config.log, so it can be properly (re)opened and
20795 # appended to by config.status. When coming back to configure, we
20796 # need to make the FD available again.
20797 if test "$no_create" != yes; then
20798 ac_cs_success=:
20799 ac_config_status_args=
20800 test "$silent" = yes &&
20801 ac_config_status_args="$ac_config_status_args --quiet"
20802 exec 5>/dev/null
20803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20804 exec 5>>config.log
20805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20806 # would make configure fail if this is the last instruction.
20807 $ac_cs_success || as_fn_exit 1
20808 fi
20809 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20811 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20812 fi
20813
20814