configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-mga 2.0.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-mga'
593 PACKAGE_TARNAME='xf86-video-mga'
594 PACKAGE_VERSION='2.0.0'
595 PACKAGE_STRING='xf86-video-mga 2.0.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 USE_EXA_FALSE
643 USE_EXA_TRUE
644 XAA_FALSE
645 XAA_TRUE
646 XSERVER_LIBPCIACCESS_FALSE
647 XSERVER_LIBPCIACCESS_TRUE
648 PCIACCESS_LIBS
649 PCIACCESS_CFLAGS
650 DRI_LIBS
651 DRI_CFLAGS
652 DRI_FALSE
653 DRI_TRUE
654 XORG_LIBS
655 XORG_CFLAGS
656 LT_SYS_LIBRARY_PATH
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 LIBTOOL
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 MAN_SUBSTS
710 XORG_MAN_PAGE
711 ADMIN_MAN_DIR
712 DRIVER_MAN_DIR
713 MISC_MAN_DIR
714 FILE_MAN_DIR
715 LIB_MAN_DIR
716 APP_MAN_DIR
717 ADMIN_MAN_SUFFIX
718 DRIVER_MAN_SUFFIX
719 MISC_MAN_SUFFIX
720 FILE_MAN_SUFFIX
721 LIB_MAN_SUFFIX
722 APP_MAN_SUFFIX
723 SED
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 INSTALL_CMD
733 PKG_CONFIG_LIBDIR
734 PKG_CONFIG_PATH
735 PKG_CONFIG
736 CHANGELOG_CMD
737 STRICT_CFLAGS
738 CWARNFLAGS
739 BASE_CFLAGS
740 EGREP
741 GREP
742 CPP
743 OBJEXT
744 EXEEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
749 CC
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_selective_werror
796 enable_strict_compilation
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_static
800 enable_shared
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 with_xorg_module_dir
808 enable_dri
809 enable_exa
810 enable_xaa
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 PKG_CONFIG
822 PKG_CONFIG_PATH
823 PKG_CONFIG_LIBDIR
824 LT_SYS_LIBRARY_PATH
825 XORG_CFLAGS
826 XORG_LIBS
827 DRI_CFLAGS
828 DRI_LIBS
829 PCIACCESS_CFLAGS
830 PCIACCESS_LIBS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 runstatedir='${localstatedir}/run'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -runstatedir | --runstatedir | --runstatedi | --runstated \
1123 | --runstate | --runstat | --runsta | --runst | --runs \
1124 | --run | --ru | --r)
1125 ac_prev=runstatedir ;;
1126 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1127 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1128 | --run=* | --ru=* | --r=*)
1129 runstatedir=$ac_optarg ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir runstatedir
1269 do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures xf86-video-mga 2.0.0 to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1436
1437 cat <<\_ACEOF
1438
1439 Program names:
1440 --program-prefix=C prepend C to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of xf86-video-mga 2.0.0:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-selective-werror
1461 Turn off selective compiler errors. (default:
1462 enabled)
1463 --enable-strict-compilation
1464 Enable all warnings from compiler and make them
1465 errors (default: disabled)
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-static[=PKGS] build static libraries [default=no]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-dri Disable DRI support [[default=auto]]
1478 --disable-exa Disable EXA support [[default=enabled]]
1479 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1480 [default=auto]
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1492 compiler's sysroot if not specified).
1493 --with-xorg-module-dir=DIR
1494 Default xorg module directory
1495 [[default=$libdir/xorg/modules]]
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 PKG_CONFIG path to pkg-config utility
1507 PKG_CONFIG_PATH
1508 directories to add to pkg-config's search path
1509 PKG_CONFIG_LIBDIR
1510 path overriding pkg-config's built-in search path
1511 LT_SYS_LIBRARY_PATH
1512 User-defined run-time library search path.
1513 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1514 XORG_LIBS linker flags for XORG, overriding pkg-config
1515 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1516 DRI_LIBS linker flags for DRI, overriding pkg-config
1517 PCIACCESS_CFLAGS
1518 C compiler flags for PCIACCESS, overriding pkg-config
1519 PCIACCESS_LIBS
1520 linker flags for PCIACCESS, overriding pkg-config
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 continue
1536 ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 xf86-video-mga configure 2.0.0
1589 generated by GNU Autoconf 2.69
1590
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1596 fi
1597
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1601
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634 fi
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1641 # ---------------------------------------------
1642 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_decl ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 as_decl_name=`echo $2|sed 's/ *(.*//'`
1648 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1650 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1651 if eval \${$3+:} false; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 int
1658 main ()
1659 {
1660 #ifndef $as_decl_name
1661 #ifdef __cplusplus
1662 (void) $as_decl_use;
1663 #else
1664 (void) $as_decl_name;
1665 #endif
1666 #endif
1667
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_decl
1685
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_cpp
1722
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=$ac_status
1758 fi
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_run
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_header_compile
1795
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_link ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 test -x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_link
1841
1842 # ac_fn_c_check_func LINENO FUNC VAR
1843 # ----------------------------------
1844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1845 ac_fn_c_check_func ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1852 else
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below.
1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862 <limits.h> exists even on freestanding compilers. */
1863
1864 #ifdef __STDC__
1865 # include <limits.h>
1866 #else
1867 # include <assert.h>
1868 #endif
1869
1870 #undef $2
1871
1872 /* Override any GCC internal prototype to avoid an error.
1873 Use char because int might match the return type of a GCC
1874 builtin and then its argument prototype would still apply. */
1875 #ifdef __cplusplus
1876 extern "C"
1877 #endif
1878 char $2 ();
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined __stub_$2 || defined __stub___$2
1883 choke me
1884 #endif
1885
1886 int
1887 main ()
1888 {
1889 return $2 ();
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_link "$LINENO"; then :
1895 eval "$3=yes"
1896 else
1897 eval "$3=no"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext \
1900 conftest$ac_exeext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907 } # ac_fn_c_check_func
1908
1909 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912 # the include files in INCLUDES and setting the cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_header_mongrel ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval \${$3+:} false; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 else
1927 # Is the header compilable?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929 $as_echo_n "checking $2 usability... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1937 else
1938 ac_header_compiler=no
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942 $as_echo "$ac_header_compiler" >&6; }
1943
1944 # Is the header present?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946 $as_echo_n "checking $2 presence... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1953 else
1954 ac_header_preproc=no
1955 fi
1956 rm -f conftest.err conftest.i conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958 $as_echo "$ac_header_preproc" >&6; }
1959
1960 # So? What about this header?
1961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 yes:no: )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 ;;
1968 no:yes:* )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 ( $as_echo "## ------------------------------------------------------------------------------- ##
1980 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues ##
1981 ## ------------------------------------------------------------------------------- ##"
1982 ) | sed "s/^/$as_me: WARNING: /" >&2
1983 ;;
1984 esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=\$ac_header_compiler"
1991 fi
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 fi
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_header_mongrel
1999 cat >config.log <<_ACEOF
2000 This file contains any messages produced by compilers while
2001 running configure, to aid debugging if configure makes a mistake.
2002
2003 It was created by xf86-video-mga $as_me 2.0.0, which was
2004 generated by GNU Autoconf 2.69. Invocation command line was
2005
2006 $ $0 $@
2007
2008 _ACEOF
2009 exec 5>>config.log
2010 {
2011 cat <<_ASUNAME
2012 ## --------- ##
2013 ## Platform. ##
2014 ## --------- ##
2015
2016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021
2022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2024
2025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2028 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2032
2033 _ASUNAME
2034
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 $as_echo "PATH: $as_dir"
2041 done
2042 IFS=$as_save_IFS
2043
2044 } >&5
2045
2046 cat >&5 <<_ACEOF
2047
2048
2049 ## ----------- ##
2050 ## Core tests. ##
2051 ## ----------- ##
2052
2053 _ACEOF
2054
2055
2056 # Keep a trace of the command line.
2057 # Strip out --no-create and --no-recursion so they do not pile up.
2058 # Strip out --silent because we don't want to record it for future runs.
2059 # Also quote any args containing shell meta-characters.
2060 # Make two passes to allow for proper duplicate-argument suppression.
2061 ac_configure_args=
2062 ac_configure_args0=
2063 ac_configure_args1=
2064 ac_must_keep_next=false
2065 for ac_pass in 1 2
2066 do
2067 for ac_arg
2068 do
2069 case $ac_arg in
2070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2072 | -silent | --silent | --silen | --sile | --sil)
2073 continue ;;
2074 *\'*)
2075 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 esac
2077 case $ac_pass in
2078 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079 2)
2080 as_fn_append ac_configure_args1 " '$ac_arg'"
2081 if test $ac_must_keep_next = true; then
2082 ac_must_keep_next=false # Got value, back to normal.
2083 else
2084 case $ac_arg in
2085 *=* | --config-cache | -C | -disable-* | --disable-* \
2086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2088 | -with-* | --with-* | -without-* | --without-* | --x)
2089 case "$ac_configure_args0 " in
2090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091 esac
2092 ;;
2093 -* ) ac_must_keep_next=true ;;
2094 esac
2095 fi
2096 as_fn_append ac_configure_args " '$ac_arg'"
2097 ;;
2098 esac
2099 done
2100 done
2101 { ac_configure_args0=; unset ac_configure_args0;}
2102 { ac_configure_args1=; unset ac_configure_args1;}
2103
2104 # When interrupted or exit'd, cleanup temporary files, and complete
2105 # config.log. We remove comments because anyway the quotes in there
2106 # would cause problems or look ugly.
2107 # WARNING: Use '\'' to represent an apostrophe within the trap.
2108 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2109 trap 'exit_status=$?
2110 # Save into config.log some information that might help in debugging.
2111 {
2112 echo
2113
2114 $as_echo "## ---------------- ##
2115 ## Cache variables. ##
2116 ## ---------------- ##"
2117 echo
2118 # The following way of writing the cache mishandles newlines in values,
2119 (
2120 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in #(
2123 *${as_nl}*)
2124 case $ac_var in #(
2125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127 esac
2128 case $ac_var in #(
2129 _ | IFS | as_nl) ;; #(
2130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131 *) { eval $ac_var=; unset $ac_var;} ;;
2132 esac ;;
2133 esac
2134 done
2135 (set) 2>&1 |
2136 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137 *${as_nl}ac_space=\ *)
2138 sed -n \
2139 "s/'\''/'\''\\\\'\'''\''/g;
2140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 ;; #(
2142 *)
2143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2144 ;;
2145 esac |
2146 sort
2147 )
2148 echo
2149
2150 $as_echo "## ----------------- ##
2151 ## Output variables. ##
2152 ## ----------------- ##"
2153 echo
2154 for ac_var in $ac_subst_vars
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163
2164 if test -n "$ac_subst_files"; then
2165 $as_echo "## ------------------- ##
2166 ## File substitutions. ##
2167 ## ------------------- ##"
2168 echo
2169 for ac_var in $ac_subst_files
2170 do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2178 fi
2179
2180 if test -s confdefs.h; then
2181 $as_echo "## ----------- ##
2182 ## confdefs.h. ##
2183 ## ----------- ##"
2184 echo
2185 cat confdefs.h
2186 echo
2187 fi
2188 test "$ac_signal" != 0 &&
2189 $as_echo "$as_me: caught signal $ac_signal"
2190 $as_echo "$as_me: exit $exit_status"
2191 } >&5
2192 rm -f core *.core core.conftest.* &&
2193 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194 exit $exit_status
2195 ' 0
2196 for ac_signal in 1 2 13 15; do
2197 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 done
2199 ac_signal=0
2200
2201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2202 rm -f -r conftest* confdefs.h
2203
2204 $as_echo "/* confdefs.h */" > confdefs.h
2205
2206 # Predefined preprocessor variables.
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_URL "$PACKAGE_URL"
2230 _ACEOF
2231
2232
2233 # Let the site file select an alternate cache file if it wants to.
2234 # Prefer an explicitly selected file to automatically selected ones.
2235 ac_site_file1=NONE
2236 ac_site_file2=NONE
2237 if test -n "$CONFIG_SITE"; then
2238 # We do not want a PATH search for config.site.
2239 case $CONFIG_SITE in #((
2240 -*) ac_site_file1=./$CONFIG_SITE;;
2241 */*) ac_site_file1=$CONFIG_SITE;;
2242 *) ac_site_file1=./$CONFIG_SITE;;
2243 esac
2244 elif test "x$prefix" != xNONE; then
2245 ac_site_file1=$prefix/share/config.site
2246 ac_site_file2=$prefix/etc/config.site
2247 else
2248 ac_site_file1=$ac_default_prefix/share/config.site
2249 ac_site_file2=$ac_default_prefix/etc/config.site
2250 fi
2251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252 do
2253 test "x$ac_site_file" = xNONE && continue
2254 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2257 sed 's/^/| /' "$ac_site_file" >&5
2258 . "$ac_site_file" \
2259 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 as_fn_error $? "failed to load site script $ac_site_file
2262 See \`config.log' for more details" "$LINENO" 5; }
2263 fi
2264 done
2265
2266 if test -r "$cache_file"; then
2267 # Some versions of bash will fail to source /dev/null (special files
2268 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2269 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272 case $cache_file in
2273 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274 *) . "./$cache_file";;
2275 esac
2276 fi
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279 $as_echo "$as_me: creating cache $cache_file" >&6;}
2280 >$cache_file
2281 fi
2282
2283 # Check that the precious variables saved in the cache have kept the same
2284 # value.
2285 ac_cache_corrupted=false
2286 for ac_var in $ac_precious_vars; do
2287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288 eval ac_new_set=\$ac_env_${ac_var}_set
2289 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290 eval ac_new_val=\$ac_env_${ac_var}_value
2291 case $ac_old_set,$ac_new_set in
2292 set,)
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2296 ,set)
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299 ac_cache_corrupted=: ;;
2300 ,);;
2301 *)
2302 if test "x$ac_old_val" != "x$ac_new_val"; then
2303 # differences in whitespace do not lead to failure.
2304 ac_old_val_w=`echo x $ac_old_val`
2305 ac_new_val_w=`echo x $ac_new_val`
2306 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309 ac_cache_corrupted=:
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313 eval $ac_var=\$ac_old_val
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2316 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2318 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2319 fi;;
2320 esac
2321 # Pass precious variables to config.status.
2322 if test "$ac_new_set" = set; then
2323 case $ac_new_val in
2324 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 *) ac_arg=$ac_var=$ac_new_val ;;
2326 esac
2327 case " $ac_configure_args " in
2328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2329 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330 esac
2331 fi
2332 done
2333 if $ac_cache_corrupted; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 fi
2340 ## -------------------- ##
2341 ## Main body of script. ##
2342 ## -------------------- ##
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351
2352 ac_config_headers="$ac_config_headers config.h"
2353
2354
2355 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367 ac_aux_dir=
2368 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2381 fi
2382 done
2383 if test -z "$ac_aux_dir"; then
2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2385 fi
2386
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2394
2395
2396 # Find a good install program. We prefer a C program (faster),
2397 # so one script is as good as another. But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2402 # AIX /bin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if ${ac_cv_path_install+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423 ./ | .// | /[cC]/* | \
2424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2426 /usr/ucb/* ) ;;
2427 *)
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 # Don't use installbsd from OSF since it installs stuff as root
2430 # by default.
2431 for ac_prog in ginstall scoinst install; do
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2434 if test $ac_prog = install &&
2435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436 # AIX install. It has an incompatible calling convention.
2437 :
2438 elif test $ac_prog = install &&
2439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440 # program-specific install script used by HP pwplus--don't use.
2441 :
2442 else
2443 rm -rf conftest.one conftest.two conftest.dir
2444 echo one > conftest.one
2445 echo two > conftest.two
2446 mkdir conftest.dir
2447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448 test -s conftest.one && test -s conftest.two &&
2449 test -s conftest.dir/conftest.one &&
2450 test -s conftest.dir/conftest.two
2451 then
2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453 break 3
2454 fi
2455 fi
2456 fi
2457 done
2458 done
2459 ;;
2460 esac
2461
2462 done
2463 IFS=$as_save_IFS
2464
2465 rm -rf conftest.one conftest.two conftest.dir
2466
2467 fi
2468 if test "${ac_cv_path_install+set}" = set; then
2469 INSTALL=$ac_cv_path_install
2470 else
2471 # As a last resort, use the slow shell script. Don't cache a
2472 # value for INSTALL within a source directory, because that will
2473 # break other packages using the cache if that directory is
2474 # removed, or if the value is a relative name.
2475 INSTALL=$ac_install_sh
2476 fi
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2480
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2484
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2486
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2488
2489 # Expand $ac_aux_dir to an absolute path.
2490 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2491
2492 ac_ext=c
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_CC+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_CC"; then
2537 ac_ct_CC=$CC
2538 # Extract the first word of "gcc", so it can be a program name with args.
2539 set dummy gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_CC="gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2568 $as_echo "$ac_ct_CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574 if test "x$ac_ct_CC" = x; then
2575 CC=""
2576 else
2577 case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 CC=$ac_ct_CC
2584 fi
2585 else
2586 CC="$ac_cv_prog_CC"
2587 fi
2588
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}cc; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_CC+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 ac_cv_prog_CC="${ac_tool_prefix}cc"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628 fi
2629 fi
2630 if test -z "$CC"; then
2631 # Extract the first word of "cc", so it can be a program name with args.
2632 set dummy cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 ac_prog_rejected=no
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2650 ac_prog_rejected=yes
2651 continue
2652 fi
2653 ac_cv_prog_CC="cc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 if test $ac_prog_rejected = yes; then
2662 # We found a bogon in the path, so make sure we never use it.
2663 set dummy $ac_cv_prog_CC
2664 shift
2665 if test $# != 0; then
2666 # We chose a different compiler from the bogus one.
2667 # However, it has the same basename, so the bogon will be chosen
2668 # first if we set CC to just the basename; use the full file name.
2669 shift
2670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2671 fi
2672 fi
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$CC"; then
2687 if test -n "$ac_tool_prefix"; then
2688 for ac_prog in cl.exe
2689 do
2690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_CC+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 test -n "$CC" && break
2728 done
2729 fi
2730 if test -z "$CC"; then
2731 ac_ct_CC=$CC
2732 for ac_prog in cl.exe
2733 do
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_ac_ct_CC="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2764 $as_echo "$ac_ct_CC" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 test -n "$ac_ct_CC" && break
2772 done
2773
2774 if test "x$ac_ct_CC" = x; then
2775 CC=""
2776 else
2777 case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 CC=$ac_ct_CC
2784 fi
2785 fi
2786
2787 fi
2788
2789
2790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 as_fn_error $? "no acceptable C compiler found in \$PATH
2793 See \`config.log' for more details" "$LINENO" 5; }
2794
2795 # Provide some information about the compiler.
2796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2797 set X $ac_compile
2798 ac_compiler=$2
2799 for ac_option in --version -v -V -qversion; do
2800 { { ac_try="$ac_compiler $ac_option >&5"
2801 case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2808 ac_status=$?
2809 if test -s conftest.err; then
2810 sed '10a\
2811 ... rest of stderr output deleted ...
2812 10q' conftest.err >conftest.er1
2813 cat conftest.er1 >&5
2814 fi
2815 rm -f conftest.er1 conftest.err
2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817 test $ac_status = 0; }
2818 done
2819
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2822
2823 int
2824 main ()
2825 {
2826
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 ac_clean_files_save=$ac_clean_files
2832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2833 # Try to create an executable without -o first, disregard a.out.
2834 # It will help us diagnose broken compilers, and finding out an intuition
2835 # of exeext.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2837 $as_echo_n "checking whether the C compiler works... " >&6; }
2838 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2839
2840 # The possible output files:
2841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2842
2843 ac_rmfiles=
2844 for ac_file in $ac_files
2845 do
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849 esac
2850 done
2851 rm -f $ac_rmfiles
2852
2853 if { { ac_try="$ac_link_default"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859 $as_echo "$ac_try_echo"; } >&5
2860 (eval "$ac_link_default") 2>&5
2861 ac_status=$?
2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863 test $ac_status = 0; }; then :
2864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2867 # so that the user can short-circuit this test for compilers unknown to
2868 # Autoconf.
2869 for ac_file in $ac_files ''
2870 do
2871 test -f "$ac_file" || continue
2872 case $ac_file in
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2874 ;;
2875 [ab].out )
2876 # We found the default executable, but exeext='' is most
2877 # certainly right.
2878 break;;
2879 *.* )
2880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2881 then :; else
2882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883 fi
2884 # We set ac_cv_exeext here because the later test for it is not
2885 # safe: cross compilers may not add the suffix if given an `-o'
2886 # argument, so we may need to know it at that point already.
2887 # Even if this section looks crufty: it has the advantage of
2888 # actually working.
2889 break;;
2890 * )
2891 break;;
2892 esac
2893 done
2894 test "$ac_cv_exeext" = no && ac_cv_exeext=
2895
2896 else
2897 ac_file=''
2898 fi
2899 if test -z "$ac_file"; then :
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907 as_fn_error 77 "C compiler cannot create executables
2908 See \`config.log' for more details" "$LINENO" 5; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2914 $as_echo_n "checking for C compiler default output file name... " >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2916 $as_echo "$ac_file" >&6; }
2917 ac_exeext=$ac_cv_exeext
2918
2919 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2922 $as_echo_n "checking for suffix of executables... " >&6; }
2923 if { { ac_try="$ac_link"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_link") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939 test -f "$ac_file" || continue
2940 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 break;;
2944 * ) break;;
2945 esac
2946 done
2947 else
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details" "$LINENO" 5; }
2952 fi
2953 rm -f conftest conftest$ac_cv_exeext
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2955 $as_echo "$ac_cv_exeext" >&6; }
2956
2957 rm -f conftest.$ac_ext
2958 EXEEXT=$ac_cv_exeext
2959 ac_exeext=$EXEEXT
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2962 #include <stdio.h>
2963 int
2964 main ()
2965 {
2966 FILE *f = fopen ("conftest.out", "w");
2967 return ferror (f) || fclose (f) != 0;
2968
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 ac_clean_files="$ac_clean_files conftest.out"
2974 # Check that the compiler produces executables we can run. If not, either
2975 # the compiler is broken, or we cross compile.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2977 $as_echo_n "checking whether we are cross compiling... " >&6; }
2978 if test "$cross_compiling" != yes; then
2979 { { ac_try="$ac_link"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_link") 2>&5
2987 ac_status=$?
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }
2990 if { ac_try='./conftest$ac_cv_exeext'
2991 { { case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_try") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; }; then
3001 cross_compiling=no
3002 else
3003 if test "$cross_compiling" = maybe; then
3004 cross_compiling=yes
3005 else
3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details" "$LINENO" 5; }
3011 fi
3012 fi
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3015 $as_echo "$cross_compiling" >&6; }
3016
3017 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3018 ac_clean_files=$ac_clean_files_save
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3020 $as_echo_n "checking for suffix of object files... " >&6; }
3021 if ${ac_cv_objext+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.o conftest.obj
3036 if { { ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3042 $as_echo "$ac_try_echo"; } >&5
3043 (eval "$ac_compile") 2>&5
3044 ac_status=$?
3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046 test $ac_status = 0; }; then :
3047 for ac_file in conftest.o conftest.obj conftest.*; do
3048 test -f "$ac_file" || continue;
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3052 break;;
3053 esac
3054 done
3055 else
3056 $as_echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061 as_fn_error $? "cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details" "$LINENO" 5; }
3063 fi
3064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3065 fi
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3067 $as_echo "$ac_cv_objext" >&6; }
3068 OBJEXT=$ac_cv_objext
3069 ac_objext=$OBJEXT
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3071 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3072 if ${ac_cv_c_compiler_gnu+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3077
3078 int
3079 main ()
3080 {
3081 #ifndef __GNUC__
3082 choke me
3083 #endif
3084
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 if ac_fn_c_try_compile "$LINENO"; then :
3090 ac_compiler_gnu=yes
3091 else
3092 ac_compiler_gnu=no
3093 fi
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3099 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3100 if test $ac_compiler_gnu = yes; then
3101 GCC=yes
3102 else
3103 GCC=
3104 fi
3105 ac_test_CFLAGS=${CFLAGS+set}
3106 ac_save_CFLAGS=$CFLAGS
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3108 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3109 if ${ac_cv_prog_cc_g+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 ac_save_c_werror_flag=$ac_c_werror_flag
3113 ac_c_werror_flag=yes
3114 ac_cv_prog_cc_g=no
3115 CFLAGS="-g"
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118
3119 int
3120 main ()
3121 {
3122
3123 ;
3124 return 0;
3125 }
3126 _ACEOF
3127 if ac_fn_c_try_compile "$LINENO"; then :
3128 ac_cv_prog_cc_g=yes
3129 else
3130 CFLAGS=""
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133
3134 int
3135 main ()
3136 {
3137
3138 ;
3139 return 0;
3140 }
3141 _ACEOF
3142 if ac_fn_c_try_compile "$LINENO"; then :
3143
3144 else
3145 ac_c_werror_flag=$ac_save_c_werror_flag
3146 CFLAGS="-g"
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159 ac_cv_prog_cc_g=yes
3160 fi
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 fi
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_c_werror_flag=$ac_save_c_werror_flag
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3169 $as_echo "$ac_cv_prog_cc_g" >&6; }
3170 if test "$ac_test_CFLAGS" = set; then
3171 CFLAGS=$ac_save_CFLAGS
3172 elif test $ac_cv_prog_cc_g = yes; then
3173 if test "$GCC" = yes; then
3174 CFLAGS="-g -O2"
3175 else
3176 CFLAGS="-g"
3177 fi
3178 else
3179 if test "$GCC" = yes; then
3180 CFLAGS="-O2"
3181 else
3182 CFLAGS=
3183 fi
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3187 if ${ac_cv_prog_cc_c89+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 ac_cv_prog_cc_c89=no
3191 ac_save_CC=$CC
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194 #include <stdarg.h>
3195 #include <stdio.h>
3196 struct stat;
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201 char **p;
3202 int i;
3203 {
3204 return p[i];
3205 }
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3207 {
3208 char *s;
3209 va_list v;
3210 va_start (v,p);
3211 s = g (p, va_arg (v,int));
3212 va_end (v);
3213 return s;
3214 }
3215
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3217 function prototypes and stuff, but not '\xHH' hex character constants.
3218 These don't provoke an error unfortunately, instead are silently treated
3219 as 'x'. The following induces an error, until -std is added to get
3220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3221 array size at least. It's necessary to write '\x00'==0 to get something
3222 that's true only with -std. */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3224
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226 inside strings and character constants. */
3227 #define FOO(x) 'x'
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3229
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3236 int
3237 main ()
3238 {
3239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246 do
3247 CC="$ac_save_CC $ac_arg"
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_c89=$ac_arg
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext
3252 test "x$ac_cv_prog_cc_c89" != "xno" && break
3253 done
3254 rm -f conftest.$ac_ext
3255 CC=$ac_save_CC
3256
3257 fi
3258 # AC_CACHE_VAL
3259 case "x$ac_cv_prog_cc_c89" in
3260 x)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3262 $as_echo "none needed" >&6; } ;;
3263 xno)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3265 $as_echo "unsupported" >&6; } ;;
3266 *)
3267 CC="$CC $ac_cv_prog_cc_c89"
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3270 esac
3271 if test "x$ac_cv_prog_cc_c89" != xno; then :
3272
3273 fi
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3287 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3288 if ${am_cv_prog_cc_c_o+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 # Make sure it works both with $CC and with simple cc.
3303 # Following AC_PROG_CC_C_O, we do the test twice because some
3304 # compilers refuse to overwrite an existing .o file with -o,
3305 # though they will create one.
3306 am_cv_prog_cc_c_o=yes
3307 for am_i in 1 2; do
3308 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3309 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } \
3313 && test -f conftest2.$ac_objext; then
3314 : OK
3315 else
3316 am_cv_prog_cc_c_o=no
3317 break
3318 fi
3319 done
3320 rm -f core conftest*
3321 unset am_i
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3324 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3325 if test "$am_cv_prog_cc_c_o" != yes; then
3326 # Losing compiler, so override with the script.
3327 # FIXME: It is wrong to rewrite CC.
3328 # But if we don't then we get into trouble of one sort or another.
3329 # A longer-term fix would be to have automake use am__CC in this case,
3330 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3331 CC="$am_aux_dir/compile $CC"
3332 fi
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3341 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3342 if ${ac_cv_prog_cc_c99+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 ac_cv_prog_cc_c99=no
3346 ac_save_CC=$CC
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349 #include <stdarg.h>
3350 #include <stdbool.h>
3351 #include <stdlib.h>
3352 #include <wchar.h>
3353 #include <stdio.h>
3354
3355 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3356 #define debug(...) fprintf (stderr, __VA_ARGS__)
3357 #define showlist(...) puts (#__VA_ARGS__)
3358 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3359 static void
3360 test_varargs_macros (void)
3361 {
3362 int x = 1234;
3363 int y = 5678;
3364 debug ("Flag");
3365 debug ("X = %d\n", x);
3366 showlist (The first, second, and third items.);
3367 report (x>y, "x is %d but y is %d", x, y);
3368 }
3369
3370 // Check long long types.
3371 #define BIG64 18446744073709551615ull
3372 #define BIG32 4294967295ul
3373 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3374 #if !BIG_OK
3375 your preprocessor is broken;
3376 #endif
3377 #if BIG_OK
3378 #else
3379 your preprocessor is broken;
3380 #endif
3381 static long long int bignum = -9223372036854775807LL;
3382 static unsigned long long int ubignum = BIG64;
3383
3384 struct incomplete_array
3385 {
3386 int datasize;
3387 double data[];
3388 };
3389
3390 struct named_init {
3391 int number;
3392 const wchar_t *name;
3393 double average;
3394 };
3395
3396 typedef const char *ccp;
3397
3398 static inline int
3399 test_restrict (ccp restrict text)
3400 {
3401 // See if C++-style comments work.
3402 // Iterate through items via the restricted pointer.
3403 // Also check for declarations in for loops.
3404 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3405 continue;
3406 return 0;
3407 }
3408
3409 // Check varargs and va_copy.
3410 static void
3411 test_varargs (const char *format, ...)
3412 {
3413 va_list args;
3414 va_start (args, format);
3415 va_list args_copy;
3416 va_copy (args_copy, args);
3417
3418 const char *str;
3419 int number;
3420 float fnumber;
3421
3422 while (*format)
3423 {
3424 switch (*format++)
3425 {
3426 case 's': // string
3427 str = va_arg (args_copy, const char *);
3428 break;
3429 case 'd': // int
3430 number = va_arg (args_copy, int);
3431 break;
3432 case 'f': // float
3433 fnumber = va_arg (args_copy, double);
3434 break;
3435 default:
3436 break;
3437 }
3438 }
3439 va_end (args_copy);
3440 va_end (args);
3441 }
3442
3443 int
3444 main ()
3445 {
3446
3447 // Check bool.
3448 _Bool success = false;
3449
3450 // Check restrict.
3451 if (test_restrict ("String literal") == 0)
3452 success = true;
3453 char *restrict newvar = "Another string";
3454
3455 // Check varargs.
3456 test_varargs ("s, d' f .", "string", 65, 34.234);
3457 test_varargs_macros ();
3458
3459 // Check flexible array members.
3460 struct incomplete_array *ia =
3461 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3462 ia->datasize = 10;
3463 for (int i = 0; i < ia->datasize; ++i)
3464 ia->data[i] = i * 1.234;
3465
3466 // Check named initializers.
3467 struct named_init ni = {
3468 .number = 34,
3469 .name = L"Test wide string",
3470 .average = 543.34343,
3471 };
3472
3473 ni.number = 58;
3474
3475 int dynamic_array[ni.number];
3476 dynamic_array[ni.number - 1] = 543;
3477
3478 // work around unused variable warnings
3479 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3480 || dynamic_array[ni.number - 1] != 543);
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3487 do
3488 CC="$ac_save_CC $ac_arg"
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_c99=$ac_arg
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext
3493 test "x$ac_cv_prog_cc_c99" != "xno" && break
3494 done
3495 rm -f conftest.$ac_ext
3496 CC=$ac_save_CC
3497
3498 fi
3499 # AC_CACHE_VAL
3500 case "x$ac_cv_prog_cc_c99" in
3501 x)
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 $as_echo "none needed" >&6; } ;;
3504 xno)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3506 $as_echo "unsupported" >&6; } ;;
3507 *)
3508 CC="$CC $ac_cv_prog_cc_c99"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3510 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3511 esac
3512 if test "x$ac_cv_prog_cc_c99" != xno; then :
3513
3514 fi
3515
3516
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3524 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3527 CPP=
3528 fi
3529 if test -z "$CPP"; then
3530 if ${ac_cv_prog_CPP+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 # Double quotes because CPP needs to be expanded
3534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3535 do
3536 ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 #ifdef __STDC__
3548 # include <limits.h>
3549 #else
3550 # include <assert.h>
3551 #endif
3552 Syntax error
3553 _ACEOF
3554 if ac_fn_c_try_cpp "$LINENO"; then :
3555
3556 else
3557 # Broken: fails on valid input.
3558 continue
3559 fi
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3561
3562 # OK, works on sane cases. Now check whether nonexistent headers
3563 # can be detected and how.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <ac_nonexistent.h>
3567 _ACEOF
3568 if ac_fn_c_try_cpp "$LINENO"; then :
3569 # Broken: success on invalid input.
3570 continue
3571 else
3572 # Passes both tests.
3573 ac_preproc_ok=:
3574 break
3575 fi
3576 rm -f conftest.err conftest.i conftest.$ac_ext
3577
3578 done
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.i conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then :
3582 break
3583 fi
3584
3585 done
3586 ac_cv_prog_CPP=$CPP
3587
3588 fi
3589 CPP=$ac_cv_prog_CPP
3590 else
3591 ac_cv_prog_CPP=$CPP
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3594 $as_echo "$CPP" >&6; }
3595 ac_preproc_ok=false
3596 for ac_c_preproc_warn_flag in '' yes
3597 do
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #ifdef __STDC__
3607 # include <limits.h>
3608 #else
3609 # include <assert.h>
3610 #endif
3611 Syntax error
3612 _ACEOF
3613 if ac_fn_c_try_cpp "$LINENO"; then :
3614
3615 else
3616 # Broken: fails on valid input.
3617 continue
3618 fi
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3620
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3628 # Broken: success on invalid input.
3629 continue
3630 else
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3634 fi
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3636
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.i conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then :
3641
3642 else
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 fi
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3657 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3658 if ${ac_cv_path_GREP+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -z "$GREP"; then
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 as_fn_executable_p "$ac_path_GREP" || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 *)
3679 ac_count=0
3680 $as_echo_n 0123456789 >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 $as_echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 as_fn_arith $ac_count + 1 && ac_count=$as_val
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701 $ac_path_GREP_found && break 3
3702 done
3703 done
3704 done
3705 IFS=$as_save_IFS
3706 if test -z "$ac_cv_path_GREP"; then
3707 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3708 fi
3709 else
3710 ac_cv_path_GREP=$GREP
3711 fi
3712
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3715 $as_echo "$ac_cv_path_GREP" >&6; }
3716 GREP="$ac_cv_path_GREP"
3717
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3720 $as_echo_n "checking for egrep... " >&6; }
3721 if ${ac_cv_path_EGREP+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3725 then ac_cv_path_EGREP="$GREP -E"
3726 else
3727 if test -z "$EGREP"; then
3728 ac_path_EGREP_found=false
3729 # Loop through the user's path and test for each of PROGNAME-LIST
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_prog in egrep; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3738 as_fn_executable_p "$ac_path_EGREP" || continue
3739 # Check for GNU ac_path_EGREP and select it if it is found.
3740 # Check for GNU $ac_path_EGREP
3741 case `"$ac_path_EGREP" --version 2>&1` in
3742 *GNU*)
3743 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3744 *)
3745 ac_count=0
3746 $as_echo_n 0123456789 >"conftest.in"
3747 while :
3748 do
3749 cat "conftest.in" "conftest.in" >"conftest.tmp"
3750 mv "conftest.tmp" "conftest.in"
3751 cp "conftest.in" "conftest.nl"
3752 $as_echo 'EGREP' >> "conftest.nl"
3753 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3755 as_fn_arith $ac_count + 1 && ac_count=$as_val
3756 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3757 # Best one so far, save it but keep looking for a better one
3758 ac_cv_path_EGREP="$ac_path_EGREP"
3759 ac_path_EGREP_max=$ac_count
3760 fi
3761 # 10*(2^10) chars as input seems more than enough
3762 test $ac_count -gt 10 && break
3763 done
3764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3765 esac
3766
3767 $ac_path_EGREP_found && break 3
3768 done
3769 done
3770 done
3771 IFS=$as_save_IFS
3772 if test -z "$ac_cv_path_EGREP"; then
3773 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3774 fi
3775 else
3776 ac_cv_path_EGREP=$EGREP
3777 fi
3778
3779 fi
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3782 $as_echo "$ac_cv_path_EGREP" >&6; }
3783 EGREP="$ac_cv_path_EGREP"
3784
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3787 $as_echo_n "checking for ANSI C header files... " >&6; }
3788 if ${ac_cv_header_stdc+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <stdlib.h>
3794 #include <stdarg.h>
3795 #include <string.h>
3796 #include <float.h>
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_header_stdc=yes
3808 else
3809 ac_cv_header_stdc=no
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812
3813 if test $ac_cv_header_stdc = yes; then
3814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #include <string.h>
3818
3819 _ACEOF
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "memchr" >/dev/null 2>&1; then :
3822
3823 else
3824 ac_cv_header_stdc=no
3825 fi
3826 rm -f conftest*
3827
3828 fi
3829
3830 if test $ac_cv_header_stdc = yes; then
3831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdlib.h>
3835
3836 _ACEOF
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "free" >/dev/null 2>&1; then :
3839
3840 else
3841 ac_cv_header_stdc=no
3842 fi
3843 rm -f conftest*
3844
3845 fi
3846
3847 if test $ac_cv_header_stdc = yes; then
3848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3849 if test "$cross_compiling" = yes; then :
3850 :
3851 else
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <ctype.h>
3855 #include <stdlib.h>
3856 #if ((' ' & 0x0FF) == 0x020)
3857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3859 #else
3860 # define ISLOWER(c) \
3861 (('a' <= (c) && (c) <= 'i') \
3862 || ('j' <= (c) && (c) <= 'r') \
3863 || ('s' <= (c) && (c) <= 'z'))
3864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3865 #endif
3866
3867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3868 int
3869 main ()
3870 {
3871 int i;
3872 for (i = 0; i < 256; i++)
3873 if (XOR (islower (i), ISLOWER (i))
3874 || toupper (i) != TOUPPER (i))
3875 return 2;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_run "$LINENO"; then :
3880
3881 else
3882 ac_cv_header_stdc=no
3883 fi
3884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3885 conftest.$ac_objext conftest.beam conftest.$ac_ext
3886 fi
3887
3888 fi
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3891 $as_echo "$ac_cv_header_stdc" >&6; }
3892 if test $ac_cv_header_stdc = yes; then
3893
3894 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3895
3896 fi
3897
3898 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3899 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3900 inttypes.h stdint.h unistd.h
3901 do :
3902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3903 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3904 "
3905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3906 cat >>confdefs.h <<_ACEOF
3907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 _ACEOF
3909
3910 fi
3911
3912 done
3913
3914
3915
3916
3917
3918
3919 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3920 if test "x$ac_cv_have_decl___clang__" = xyes; then :
3921 CLANGCC="yes"
3922 else
3923 CLANGCC="no"
3924 fi
3925
3926 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3927 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3928 INTELCC="yes"
3929 else
3930 INTELCC="no"
3931 fi
3932
3933 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3934 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3935 SUNCC="yes"
3936 else
3937 SUNCC="no"
3938 fi
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3949 if test -n "$ac_tool_prefix"; then
3950 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3951 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 case $PKG_CONFIG in
3958 [\\/]* | ?:[\\/]*)
3959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3960 ;;
3961 *)
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975 IFS=$as_save_IFS
3976
3977 ;;
3978 esac
3979 fi
3980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3981 if test -n "$PKG_CONFIG"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3983 $as_echo "$PKG_CONFIG" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990 fi
3991 if test -z "$ac_cv_path_PKG_CONFIG"; then
3992 ac_pt_PKG_CONFIG=$PKG_CONFIG
3993 # Extract the first word of "pkg-config", so it can be a program name with args.
3994 set dummy pkg-config; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 case $ac_pt_PKG_CONFIG in
4001 [\\/]* | ?:[\\/]*)
4002 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4003 ;;
4004 *)
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 ;;
4021 esac
4022 fi
4023 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4024 if test -n "$ac_pt_PKG_CONFIG"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4026 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032 if test "x$ac_pt_PKG_CONFIG" = x; then
4033 PKG_CONFIG=""
4034 else
4035 case $cross_compiling:$ac_tool_warned in
4036 yes:)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4040 esac
4041 PKG_CONFIG=$ac_pt_PKG_CONFIG
4042 fi
4043 else
4044 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4045 fi
4046
4047 fi
4048 if test -n "$PKG_CONFIG"; then
4049 _pkg_min_version=0.9.0
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4051 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4052 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 PKG_CONFIG=""
4059 fi
4060 fi
4061 # Make sure we can run config.sub.
4062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4063 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4066 $as_echo_n "checking build system type... " >&6; }
4067 if ${ac_cv_build+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 ac_build_alias=$build_alias
4071 test "x$ac_build_alias" = x &&
4072 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4073 test "x$ac_build_alias" = x &&
4074 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4075 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4076 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4080 $as_echo "$ac_cv_build" >&6; }
4081 case $ac_cv_build in
4082 *-*-*) ;;
4083 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4084 esac
4085 build=$ac_cv_build
4086 ac_save_IFS=$IFS; IFS='-'
4087 set x $ac_cv_build
4088 shift
4089 build_cpu=$1
4090 build_vendor=$2
4091 shift; shift
4092 # Remember, the first character of IFS is used to create $*,
4093 # except with old shells:
4094 build_os=$*
4095 IFS=$ac_save_IFS
4096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4100 $as_echo_n "checking host system type... " >&6; }
4101 if ${ac_cv_host+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test "x$host_alias" = x; then
4105 ac_cv_host=$ac_cv_build
4106 else
4107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4108 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4109 fi
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4113 $as_echo "$ac_cv_host" >&6; }
4114 case $ac_cv_host in
4115 *-*-*) ;;
4116 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4117 esac
4118 host=$ac_cv_host
4119 ac_save_IFS=$IFS; IFS='-'
4120 set x $ac_cv_host
4121 shift
4122 host_cpu=$1
4123 host_vendor=$2
4124 shift; shift
4125 # Remember, the first character of IFS is used to create $*,
4126 # except with old shells:
4127 host_os=$*
4128 IFS=$ac_save_IFS
4129 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4134 if ${ac_cv_path_SED+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4138 for ac_i in 1 2 3 4 5 6 7; do
4139 ac_script="$ac_script$as_nl$ac_script"
4140 done
4141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4142 { ac_script=; unset ac_script;}
4143 if test -z "$SED"; then
4144 ac_path_SED_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in sed gsed; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4154 as_fn_executable_p "$ac_path_SED" || continue
4155 # Check for GNU ac_path_SED and select it if it is found.
4156 # Check for GNU $ac_path_SED
4157 case `"$ac_path_SED" --version 2>&1` in
4158 *GNU*)
4159 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4160 *)
4161 ac_count=0
4162 $as_echo_n 0123456789 >"conftest.in"
4163 while :
4164 do
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo '' >> "conftest.nl"
4169 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_SED_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_SED="$ac_path_SED"
4175 ac_path_SED_max=$ac_count
4176 fi
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4179 done
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 esac
4182
4183 $ac_path_SED_found && break 3
4184 done
4185 done
4186 done
4187 IFS=$as_save_IFS
4188 if test -z "$ac_cv_path_SED"; then
4189 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4190 fi
4191 else
4192 ac_cv_path_SED=$SED
4193 fi
4194
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4197 $as_echo "$ac_cv_path_SED" >&6; }
4198 SED="$ac_cv_path_SED"
4199 rm -f conftest.sed
4200
4201
4202
4203
4204
4205
4206 # Check whether --enable-selective-werror was given.
4207 if test "${enable_selective_werror+set}" = set; then :
4208 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4209 else
4210 SELECTIVE_WERROR=yes
4211 fi
4212
4213
4214
4215
4216
4217 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4218 if test "x$SUNCC" = "xyes"; then
4219 BASE_CFLAGS="-v"
4220 else
4221 BASE_CFLAGS=""
4222 fi
4223
4224 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 xorg_testset_save_CFLAGS="$CFLAGS"
4239
4240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 int i;
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 xorg_cv_cc_flag_unknown_warning_option=yes
4253 else
4254 xorg_cv_cc_flag_unknown_warning_option=no
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4261 CFLAGS="$xorg_testset_save_CFLAGS"
4262 fi
4263
4264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4267 fi
4268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 int i;
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 xorg_cv_cc_flag_unused_command_line_argument=yes
4280 else
4281 xorg_cv_cc_flag_unused_command_line_argument=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4288 CFLAGS="$xorg_testset_save_CFLAGS"
4289 fi
4290
4291 found="no"
4292
4293 if test $found = "no" ; then
4294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4296 fi
4297
4298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4300 fi
4301
4302 CFLAGS="$CFLAGS -Wall"
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4305 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4306 cacheid=xorg_cv_cc_flag__Wall
4307 if eval \${$cacheid+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 int i;
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_link "$LINENO"; then :
4322 eval $cacheid=yes
4323 else
4324 eval $cacheid=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328 fi
4329
4330
4331 CFLAGS="$xorg_testset_save_CFLAGS"
4332
4333 eval supported=\$$cacheid
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4335 $as_echo "$supported" >&6; }
4336 if test "$supported" = "yes" ; then
4337 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4338 found="yes"
4339 fi
4340 fi
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356 xorg_testset_save_CFLAGS="$CFLAGS"
4357
4358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 int i;
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370 xorg_cv_cc_flag_unknown_warning_option=yes
4371 else
4372 xorg_cv_cc_flag_unknown_warning_option=no
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4379 CFLAGS="$xorg_testset_save_CFLAGS"
4380 fi
4381
4382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4385 fi
4386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 int i;
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397 xorg_cv_cc_flag_unused_command_line_argument=yes
4398 else
4399 xorg_cv_cc_flag_unused_command_line_argument=no
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4406 CFLAGS="$xorg_testset_save_CFLAGS"
4407 fi
4408
4409 found="no"
4410
4411 if test $found = "no" ; then
4412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4414 fi
4415
4416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4418 fi
4419
4420 CFLAGS="$CFLAGS -Wpointer-arith"
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4423 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4424 cacheid=xorg_cv_cc_flag__Wpointer_arith
4425 if eval \${$cacheid+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 int i;
4431 int
4432 main ()
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_link "$LINENO"; then :
4440 eval $cacheid=yes
4441 else
4442 eval $cacheid=no
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext \
4445 conftest$ac_exeext conftest.$ac_ext
4446 fi
4447
4448
4449 CFLAGS="$xorg_testset_save_CFLAGS"
4450
4451 eval supported=\$$cacheid
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4453 $as_echo "$supported" >&6; }
4454 if test "$supported" = "yes" ; then
4455 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4456 found="yes"
4457 fi
4458 fi
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474 xorg_testset_save_CFLAGS="$CFLAGS"
4475
4476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4479 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4480 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 int i;
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 xorg_cv_cc_flag_unknown_warning_option=yes
4489 else
4490 xorg_cv_cc_flag_unknown_warning_option=no
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4495 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4497 CFLAGS="$xorg_testset_save_CFLAGS"
4498 fi
4499
4500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4503 fi
4504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4506 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4507 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 int i;
4513 _ACEOF
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 xorg_cv_cc_flag_unused_command_line_argument=yes
4516 else
4517 xorg_cv_cc_flag_unused_command_line_argument=no
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4522 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4524 CFLAGS="$xorg_testset_save_CFLAGS"
4525 fi
4526
4527 found="no"
4528
4529 if test $found = "no" ; then
4530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4532 fi
4533
4534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4536 fi
4537
4538 CFLAGS="$CFLAGS -Wmissing-declarations"
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4541 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4542 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4543 if eval \${$cacheid+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 int i;
4549 int
4550 main ()
4551 {
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_link "$LINENO"; then :
4558 eval $cacheid=yes
4559 else
4560 eval $cacheid=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext \
4563 conftest$ac_exeext conftest.$ac_ext
4564 fi
4565
4566
4567 CFLAGS="$xorg_testset_save_CFLAGS"
4568
4569 eval supported=\$$cacheid
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4571 $as_echo "$supported" >&6; }
4572 if test "$supported" = "yes" ; then
4573 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4574 found="yes"
4575 fi
4576 fi
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592 xorg_testset_save_CFLAGS="$CFLAGS"
4593
4594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 int i;
4604 _ACEOF
4605 if ac_fn_c_try_compile "$LINENO"; then :
4606 xorg_cv_cc_flag_unknown_warning_option=yes
4607 else
4608 xorg_cv_cc_flag_unknown_warning_option=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4615 CFLAGS="$xorg_testset_save_CFLAGS"
4616 fi
4617
4618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4621 fi
4622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 int i;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 xorg_cv_cc_flag_unused_command_line_argument=yes
4634 else
4635 xorg_cv_cc_flag_unused_command_line_argument=no
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4642 CFLAGS="$xorg_testset_save_CFLAGS"
4643 fi
4644
4645 found="no"
4646
4647 if test $found = "no" ; then
4648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4650 fi
4651
4652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4654 fi
4655
4656 CFLAGS="$CFLAGS -Wformat=2"
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4659 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4660 cacheid=xorg_cv_cc_flag__Wformat_2
4661 if eval \${$cacheid+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 int i;
4667 int
4668 main ()
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_link "$LINENO"; then :
4676 eval $cacheid=yes
4677 else
4678 eval $cacheid=no
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext \
4681 conftest$ac_exeext conftest.$ac_ext
4682 fi
4683
4684
4685 CFLAGS="$xorg_testset_save_CFLAGS"
4686
4687 eval supported=\$$cacheid
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4689 $as_echo "$supported" >&6; }
4690 if test "$supported" = "yes" ; then
4691 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4692 found="yes"
4693 fi
4694 fi
4695
4696 if test $found = "no" ; then
4697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4699 fi
4700
4701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4703 fi
4704
4705 CFLAGS="$CFLAGS -Wformat"
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4708 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4709 cacheid=xorg_cv_cc_flag__Wformat
4710 if eval \${$cacheid+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 int i;
4716 int
4717 main ()
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_link "$LINENO"; then :
4725 eval $cacheid=yes
4726 else
4727 eval $cacheid=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 fi
4732
4733
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4735
4736 eval supported=\$$cacheid
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4738 $as_echo "$supported" >&6; }
4739 if test "$supported" = "yes" ; then
4740 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4741 found="yes"
4742 fi
4743 fi
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761 xorg_testset_save_CFLAGS="$CFLAGS"
4762
4763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4766 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4767 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 int i;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 xorg_cv_cc_flag_unknown_warning_option=yes
4776 else
4777 xorg_cv_cc_flag_unknown_warning_option=no
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4782 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4784 CFLAGS="$xorg_testset_save_CFLAGS"
4785 fi
4786
4787 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790 fi
4791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4793 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4794 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 int i;
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 xorg_cv_cc_flag_unused_command_line_argument=yes
4803 else
4804 xorg_cv_cc_flag_unused_command_line_argument=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4809 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4811 CFLAGS="$xorg_testset_save_CFLAGS"
4812 fi
4813
4814 found="no"
4815
4816 if test $found = "no" ; then
4817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4819 fi
4820
4821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4823 fi
4824
4825 CFLAGS="$CFLAGS -Wstrict-prototypes"
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4828 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4829 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4830 if eval \${$cacheid+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 int i;
4836 int
4837 main ()
4838 {
4839
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 if ac_fn_c_try_link "$LINENO"; then :
4845 eval $cacheid=yes
4846 else
4847 eval $cacheid=no
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext \
4850 conftest$ac_exeext conftest.$ac_ext
4851 fi
4852
4853
4854 CFLAGS="$xorg_testset_save_CFLAGS"
4855
4856 eval supported=\$$cacheid
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4858 $as_echo "$supported" >&6; }
4859 if test "$supported" = "yes" ; then
4860 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4861 found="yes"
4862 fi
4863 fi
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 xorg_testset_save_CFLAGS="$CFLAGS"
4880
4881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4884 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4885 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 int i;
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 xorg_cv_cc_flag_unknown_warning_option=yes
4894 else
4895 xorg_cv_cc_flag_unknown_warning_option=no
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4900 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4902 CFLAGS="$xorg_testset_save_CFLAGS"
4903 fi
4904
4905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 fi
4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4911 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4912 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 int i;
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 xorg_cv_cc_flag_unused_command_line_argument=yes
4921 else
4922 xorg_cv_cc_flag_unused_command_line_argument=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4927 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4929 CFLAGS="$xorg_testset_save_CFLAGS"
4930 fi
4931
4932 found="no"
4933
4934 if test $found = "no" ; then
4935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4937 fi
4938
4939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4941 fi
4942
4943 CFLAGS="$CFLAGS -Wmissing-prototypes"
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4946 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4947 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4948 if eval \${$cacheid+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 int i;
4954 int
4955 main ()
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_link "$LINENO"; then :
4963 eval $cacheid=yes
4964 else
4965 eval $cacheid=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4969 fi
4970
4971
4972 CFLAGS="$xorg_testset_save_CFLAGS"
4973
4974 eval supported=\$$cacheid
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4976 $as_echo "$supported" >&6; }
4977 if test "$supported" = "yes" ; then
4978 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4979 found="yes"
4980 fi
4981 fi
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 xorg_testset_save_CFLAGS="$CFLAGS"
4998
4999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5002 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5003 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 int i;
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 xorg_cv_cc_flag_unknown_warning_option=yes
5012 else
5013 xorg_cv_cc_flag_unknown_warning_option=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5018 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5020 CFLAGS="$xorg_testset_save_CFLAGS"
5021 fi
5022
5023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026 fi
5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5029 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5030 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038 xorg_cv_cc_flag_unused_command_line_argument=yes
5039 else
5040 xorg_cv_cc_flag_unused_command_line_argument=no
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5045 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5047 CFLAGS="$xorg_testset_save_CFLAGS"
5048 fi
5049
5050 found="no"
5051
5052 if test $found = "no" ; then
5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5055 fi
5056
5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059 fi
5060
5061 CFLAGS="$CFLAGS -Wnested-externs"
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5064 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5065 cacheid=xorg_cv_cc_flag__Wnested_externs
5066 if eval \${$cacheid+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 int i;
5072 int
5073 main ()
5074 {
5075
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 if ac_fn_c_try_link "$LINENO"; then :
5081 eval $cacheid=yes
5082 else
5083 eval $cacheid=no
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext \
5086 conftest$ac_exeext conftest.$ac_ext
5087 fi
5088
5089
5090 CFLAGS="$xorg_testset_save_CFLAGS"
5091
5092 eval supported=\$$cacheid
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5094 $as_echo "$supported" >&6; }
5095 if test "$supported" = "yes" ; then
5096 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5097 found="yes"
5098 fi
5099 fi
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 xorg_testset_save_CFLAGS="$CFLAGS"
5116
5117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5120 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5121 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 xorg_cv_cc_flag_unknown_warning_option=yes
5130 else
5131 xorg_cv_cc_flag_unknown_warning_option=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5136 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5138 CFLAGS="$xorg_testset_save_CFLAGS"
5139 fi
5140
5141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144 fi
5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5147 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5148 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 int i;
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"; then :
5156 xorg_cv_cc_flag_unused_command_line_argument=yes
5157 else
5158 xorg_cv_cc_flag_unused_command_line_argument=no
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5163 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5165 CFLAGS="$xorg_testset_save_CFLAGS"
5166 fi
5167
5168 found="no"
5169
5170 if test $found = "no" ; then
5171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5173 fi
5174
5175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177 fi
5178
5179 CFLAGS="$CFLAGS -Wbad-function-cast"
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5182 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5183 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5184 if eval \${$cacheid+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 int i;
5190 int
5191 main ()
5192 {
5193
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_link "$LINENO"; then :
5199 eval $cacheid=yes
5200 else
5201 eval $cacheid=no
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 fi
5206
5207
5208 CFLAGS="$xorg_testset_save_CFLAGS"
5209
5210 eval supported=\$$cacheid
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5212 $as_echo "$supported" >&6; }
5213 if test "$supported" = "yes" ; then
5214 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5215 found="yes"
5216 fi
5217 fi
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 xorg_testset_save_CFLAGS="$CFLAGS"
5234
5235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5238 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5239 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 int i;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247 xorg_cv_cc_flag_unknown_warning_option=yes
5248 else
5249 xorg_cv_cc_flag_unknown_warning_option=no
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5254 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5256 CFLAGS="$xorg_testset_save_CFLAGS"
5257 fi
5258
5259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 fi
5263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5265 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5266 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 xorg_cv_cc_flag_unused_command_line_argument=yes
5275 else
5276 xorg_cv_cc_flag_unused_command_line_argument=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5281 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 found="no"
5287
5288 if test $found = "no" ; then
5289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291 fi
5292
5293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295 fi
5296
5297 CFLAGS="$CFLAGS -Wold-style-definition"
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5300 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5301 cacheid=xorg_cv_cc_flag__Wold_style_definition
5302 if eval \${$cacheid+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 int
5309 main ()
5310 {
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_c_try_link "$LINENO"; then :
5317 eval $cacheid=yes
5318 else
5319 eval $cacheid=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 fi
5324
5325
5326 CFLAGS="$xorg_testset_save_CFLAGS"
5327
5328 eval supported=\$$cacheid
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5330 $as_echo "$supported" >&6; }
5331 if test "$supported" = "yes" ; then
5332 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5333 found="yes"
5334 fi
5335 fi
5336
5337 if test $found = "no" ; then
5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 fi
5341
5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344 fi
5345
5346 CFLAGS="$CFLAGS -fd"
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5349 $as_echo_n "checking if $CC supports -fd... " >&6; }
5350 cacheid=xorg_cv_cc_flag__fd
5351 if eval \${$cacheid+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 int i;
5357 int
5358 main ()
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_link "$LINENO"; then :
5366 eval $cacheid=yes
5367 else
5368 eval $cacheid=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5372 fi
5373
5374
5375 CFLAGS="$xorg_testset_save_CFLAGS"
5376
5377 eval supported=\$$cacheid
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5379 $as_echo "$supported" >&6; }
5380 if test "$supported" = "yes" ; then
5381 BASE_CFLAGS="$BASE_CFLAGS -fd"
5382 found="yes"
5383 fi
5384 fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 int i;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 xorg_cv_cc_flag_unknown_warning_option=yes
5415 else
5416 xorg_cv_cc_flag_unknown_warning_option=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424 fi
5425
5426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 fi
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 xorg_cv_cc_flag_unused_command_line_argument=yes
5442 else
5443 xorg_cv_cc_flag_unused_command_line_argument=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 found="no"
5454
5455 if test $found = "no" ; then
5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459
5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 fi
5463
5464 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5467 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5468 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5469 if eval \${$cacheid+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 int
5476 main ()
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 eval $cacheid=yes
5485 else
5486 eval $cacheid=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5490 fi
5491
5492
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495 eval supported=\$$cacheid
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497 $as_echo "$supported" >&6; }
5498 if test "$supported" = "yes" ; then
5499 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5500 found="yes"
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508 # This chunk adds additional warnings that could catch undesired effects.
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 xorg_testset_save_CFLAGS="$CFLAGS"
5523
5524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5528 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 int i;
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 xorg_cv_cc_flag_unknown_warning_option=yes
5537 else
5538 xorg_cv_cc_flag_unknown_warning_option=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546 fi
5547
5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 fi
5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 int i;
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 xorg_cv_cc_flag_unused_command_line_argument=yes
5564 else
5565 xorg_cv_cc_flag_unused_command_line_argument=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5572 CFLAGS="$xorg_testset_save_CFLAGS"
5573 fi
5574
5575 found="no"
5576
5577 if test $found = "no" ; then
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 fi
5581
5582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584 fi
5585
5586 CFLAGS="$CFLAGS -Wunused"
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5589 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5590 cacheid=xorg_cv_cc_flag__Wunused
5591 if eval \${$cacheid+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 int i;
5597 int
5598 main ()
5599 {
5600
5601 ;
5602 return 0;
5603 }
5604 _ACEOF
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 eval $cacheid=yes
5607 else
5608 eval $cacheid=no
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612 fi
5613
5614
5615 CFLAGS="$xorg_testset_save_CFLAGS"
5616
5617 eval supported=\$$cacheid
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5619 $as_echo "$supported" >&6; }
5620 if test "$supported" = "yes" ; then
5621 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5622 found="yes"
5623 fi
5624 fi
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 xorg_cv_cc_flag_unknown_warning_option=yes
5655 else
5656 xorg_cv_cc_flag_unknown_warning_option=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663 CFLAGS="$xorg_testset_save_CFLAGS"
5664 fi
5665
5666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669 fi
5670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 int i;
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 xorg_cv_cc_flag_unused_command_line_argument=yes
5682 else
5683 xorg_cv_cc_flag_unused_command_line_argument=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691 fi
5692
5693 found="no"
5694
5695 if test $found = "no" ; then
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 fi
5699
5700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702 fi
5703
5704 CFLAGS="$CFLAGS -Wuninitialized"
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5707 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5708 cacheid=xorg_cv_cc_flag__Wuninitialized
5709 if eval \${$cacheid+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 int i;
5715 int
5716 main ()
5717 {
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_link "$LINENO"; then :
5724 eval $cacheid=yes
5725 else
5726 eval $cacheid=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext \
5729 conftest$ac_exeext conftest.$ac_ext
5730 fi
5731
5732
5733 CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735 eval supported=\$$cacheid
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737 $as_echo "$supported" >&6; }
5738 if test "$supported" = "yes" ; then
5739 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5740 found="yes"
5741 fi
5742 fi
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 xorg_cv_cc_flag_unknown_warning_option=yes
5773 else
5774 xorg_cv_cc_flag_unknown_warning_option=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782 fi
5783
5784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787 fi
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int i;
5797 _ACEOF
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 xorg_cv_cc_flag_unused_command_line_argument=yes
5800 else
5801 xorg_cv_cc_flag_unused_command_line_argument=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809 fi
5810
5811 found="no"
5812
5813 if test $found = "no" ; then
5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816 fi
5817
5818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820 fi
5821
5822 CFLAGS="$CFLAGS -Wshadow"
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5825 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5826 cacheid=xorg_cv_cc_flag__Wshadow
5827 if eval \${$cacheid+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int i;
5833 int
5834 main ()
5835 {
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 eval $cacheid=yes
5843 else
5844 eval $cacheid=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848 fi
5849
5850
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852
5853 eval supported=\$$cacheid
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5855 $as_echo "$supported" >&6; }
5856 if test "$supported" = "yes" ; then
5857 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5858 found="yes"
5859 fi
5860 fi
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876 xorg_testset_save_CFLAGS="$CFLAGS"
5877
5878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 int i;
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 xorg_cv_cc_flag_unknown_warning_option=yes
5891 else
5892 xorg_cv_cc_flag_unknown_warning_option=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5900 fi
5901
5902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905 fi
5906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 xorg_cv_cc_flag_unused_command_line_argument=yes
5918 else
5919 xorg_cv_cc_flag_unused_command_line_argument=no
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926 CFLAGS="$xorg_testset_save_CFLAGS"
5927 fi
5928
5929 found="no"
5930
5931 if test $found = "no" ; then
5932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934 fi
5935
5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938 fi
5939
5940 CFLAGS="$CFLAGS -Wmissing-noreturn"
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5943 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5944 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5945 if eval \${$cacheid+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int i;
5951 int
5952 main ()
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960 eval $cacheid=yes
5961 else
5962 eval $cacheid=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 fi
5967
5968
5969 CFLAGS="$xorg_testset_save_CFLAGS"
5970
5971 eval supported=\$$cacheid
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5973 $as_echo "$supported" >&6; }
5974 if test "$supported" = "yes" ; then
5975 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5976 found="yes"
5977 fi
5978 fi
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 xorg_testset_save_CFLAGS="$CFLAGS"
5995
5996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 int i;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 xorg_cv_cc_flag_unknown_warning_option=yes
6009 else
6010 xorg_cv_cc_flag_unknown_warning_option=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6017 CFLAGS="$xorg_testset_save_CFLAGS"
6018 fi
6019
6020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023 fi
6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 int i;
6033 _ACEOF
6034 if ac_fn_c_try_compile "$LINENO"; then :
6035 xorg_cv_cc_flag_unused_command_line_argument=yes
6036 else
6037 xorg_cv_cc_flag_unused_command_line_argument=no
6038 fi
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6044 CFLAGS="$xorg_testset_save_CFLAGS"
6045 fi
6046
6047 found="no"
6048
6049 if test $found = "no" ; then
6050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6052 fi
6053
6054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6056 fi
6057
6058 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6061 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6062 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6063 if eval \${$cacheid+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 int
6070 main ()
6071 {
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"; then :
6078 eval $cacheid=yes
6079 else
6080 eval $cacheid=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 fi
6085
6086
6087 CFLAGS="$xorg_testset_save_CFLAGS"
6088
6089 eval supported=\$$cacheid
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6091 $as_echo "$supported" >&6; }
6092 if test "$supported" = "yes" ; then
6093 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6094 found="yes"
6095 fi
6096 fi
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112 xorg_testset_save_CFLAGS="$CFLAGS"
6113
6114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 int i;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6126 xorg_cv_cc_flag_unknown_warning_option=yes
6127 else
6128 xorg_cv_cc_flag_unknown_warning_option=no
6129 fi
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141 fi
6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 int i;
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"; then :
6153 xorg_cv_cc_flag_unused_command_line_argument=yes
6154 else
6155 xorg_cv_cc_flag_unused_command_line_argument=no
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6162 CFLAGS="$xorg_testset_save_CFLAGS"
6163 fi
6164
6165 found="no"
6166
6167 if test $found = "no" ; then
6168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6170 fi
6171
6172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6174 fi
6175
6176 CFLAGS="$CFLAGS -Wredundant-decls"
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6179 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6180 cacheid=xorg_cv_cc_flag__Wredundant_decls
6181 if eval \${$cacheid+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 int
6188 main ()
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 eval $cacheid=yes
6197 else
6198 eval $cacheid=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 fi
6203
6204
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206
6207 eval supported=\$$cacheid
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6209 $as_echo "$supported" >&6; }
6210 if test "$supported" = "yes" ; then
6211 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6212 found="yes"
6213 fi
6214 fi
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 xorg_testset_save_CFLAGS="$CFLAGS"
6231
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 int i;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 xorg_cv_cc_flag_unknown_warning_option=yes
6245 else
6246 xorg_cv_cc_flag_unknown_warning_option=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6253 CFLAGS="$xorg_testset_save_CFLAGS"
6254 fi
6255
6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259 fi
6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 xorg_cv_cc_flag_unused_command_line_argument=yes
6272 else
6273 xorg_cv_cc_flag_unused_command_line_argument=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6281 fi
6282
6283 found="no"
6284
6285 if test $found = "no" ; then
6286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6288 fi
6289
6290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6292 fi
6293
6294 CFLAGS="$CFLAGS -Wlogical-op"
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6297 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6298 cacheid=xorg_cv_cc_flag__Wlogical_op
6299 if eval \${$cacheid+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 int
6306 main ()
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"; then :
6314 eval $cacheid=yes
6315 else
6316 eval $cacheid=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 fi
6321
6322
6323 CFLAGS="$xorg_testset_save_CFLAGS"
6324
6325 eval supported=\$$cacheid
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6327 $as_echo "$supported" >&6; }
6328 if test "$supported" = "yes" ; then
6329 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6330 found="yes"
6331 fi
6332 fi
6333
6334
6335
6336 # These are currently disabled because they are noisy. They will be enabled
6337 # in the future once the codebase is sufficiently modernized to silence
6338 # them. For now, I don't want them to drown out the other warnings.
6339 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6340 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6341 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6342
6343 # Turn some warnings into errors, so we don't accidently get successful builds
6344 # when there are problems that should be fixed.
6345
6346 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360 xorg_testset_save_CFLAGS="$CFLAGS"
6361
6362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 int i;
6372 _ACEOF
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 xorg_cv_cc_flag_unknown_warning_option=yes
6375 else
6376 xorg_cv_cc_flag_unknown_warning_option=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6383 CFLAGS="$xorg_testset_save_CFLAGS"
6384 fi
6385
6386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 fi
6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int i;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 xorg_cv_cc_flag_unused_command_line_argument=yes
6402 else
6403 xorg_cv_cc_flag_unused_command_line_argument=no
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6410 CFLAGS="$xorg_testset_save_CFLAGS"
6411 fi
6412
6413 found="no"
6414
6415 if test $found = "no" ; then
6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418 fi
6419
6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6422 fi
6423
6424 CFLAGS="$CFLAGS -Werror=implicit"
6425
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6427 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6428 cacheid=xorg_cv_cc_flag__Werror_implicit
6429 if eval \${$cacheid+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 int i;
6435 int
6436 main ()
6437 {
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 if ac_fn_c_try_link "$LINENO"; then :
6444 eval $cacheid=yes
6445 else
6446 eval $cacheid=no
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext \
6449 conftest$ac_exeext conftest.$ac_ext
6450 fi
6451
6452
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6454
6455 eval supported=\$$cacheid
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6457 $as_echo "$supported" >&6; }
6458 if test "$supported" = "yes" ; then
6459 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6460 found="yes"
6461 fi
6462 fi
6463
6464 if test $found = "no" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468
6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471 fi
6472
6473 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6474
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6476 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6477 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6478 if eval \${$cacheid+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 int i;
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 eval $cacheid=yes
6494 else
6495 eval $cacheid=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 fi
6500
6501
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503
6504 eval supported=\$$cacheid
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6506 $as_echo "$supported" >&6; }
6507 if test "$supported" = "yes" ; then
6508 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6509 found="yes"
6510 fi
6511 fi
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 xorg_testset_save_CFLAGS="$CFLAGS"
6528
6529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 xorg_cv_cc_flag_unknown_warning_option=yes
6542 else
6543 xorg_cv_cc_flag_unknown_warning_option=no
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6550 CFLAGS="$xorg_testset_save_CFLAGS"
6551 fi
6552
6553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 fi
6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 xorg_cv_cc_flag_unused_command_line_argument=yes
6569 else
6570 xorg_cv_cc_flag_unused_command_line_argument=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 found="no"
6581
6582 if test $found = "no" ; then
6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585 fi
6586
6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6589 fi
6590
6591 CFLAGS="$CFLAGS -Werror=nonnull"
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6594 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6595 cacheid=xorg_cv_cc_flag__Werror_nonnull
6596 if eval \${$cacheid+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 int
6603 main ()
6604 {
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 eval $cacheid=yes
6612 else
6613 eval $cacheid=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 fi
6618
6619
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621
6622 eval supported=\$$cacheid
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6624 $as_echo "$supported" >&6; }
6625 if test "$supported" = "yes" ; then
6626 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6627 found="yes"
6628 fi
6629 fi
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645 xorg_testset_save_CFLAGS="$CFLAGS"
6646
6647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6650 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6651 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 xorg_cv_cc_flag_unknown_warning_option=yes
6660 else
6661 xorg_cv_cc_flag_unknown_warning_option=no
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6666 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6668 CFLAGS="$xorg_testset_save_CFLAGS"
6669 fi
6670
6671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 fi
6675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6677 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6678 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 xorg_cv_cc_flag_unused_command_line_argument=yes
6687 else
6688 xorg_cv_cc_flag_unused_command_line_argument=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6693 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 found="no"
6699
6700 if test $found = "no" ; then
6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 fi
6704
6705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6707 fi
6708
6709 CFLAGS="$CFLAGS -Werror=init-self"
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6712 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6713 cacheid=xorg_cv_cc_flag__Werror_init_self
6714 if eval \${$cacheid+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 int i;
6720 int
6721 main ()
6722 {
6723
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 eval $cacheid=yes
6730 else
6731 eval $cacheid=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 fi
6736
6737
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739
6740 eval supported=\$$cacheid
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6742 $as_echo "$supported" >&6; }
6743 if test "$supported" = "yes" ; then
6744 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6745 found="yes"
6746 fi
6747 fi
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 xorg_testset_save_CFLAGS="$CFLAGS"
6764
6765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 xorg_cv_cc_flag_unknown_warning_option=yes
6778 else
6779 xorg_cv_cc_flag_unknown_warning_option=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6787 fi
6788
6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792 fi
6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 xorg_cv_cc_flag_unused_command_line_argument=yes
6805 else
6806 xorg_cv_cc_flag_unused_command_line_argument=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814 fi
6815
6816 found="no"
6817
6818 if test $found = "no" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825 fi
6826
6827 CFLAGS="$CFLAGS -Werror=main"
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6830 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6831 cacheid=xorg_cv_cc_flag__Werror_main
6832 if eval \${$cacheid+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int i;
6838 int
6839 main ()
6840 {
6841
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847 eval $cacheid=yes
6848 else
6849 eval $cacheid=no
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854
6855
6856 CFLAGS="$xorg_testset_save_CFLAGS"
6857
6858 eval supported=\$$cacheid
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6860 $as_echo "$supported" >&6; }
6861 if test "$supported" = "yes" ; then
6862 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6863 found="yes"
6864 fi
6865 fi
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 xorg_testset_save_CFLAGS="$CFLAGS"
6882
6883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 int i;
6893 _ACEOF
6894 if ac_fn_c_try_compile "$LINENO"; then :
6895 xorg_cv_cc_flag_unknown_warning_option=yes
6896 else
6897 xorg_cv_cc_flag_unknown_warning_option=no
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6904 CFLAGS="$xorg_testset_save_CFLAGS"
6905 fi
6906
6907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910 fi
6911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int i;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 xorg_cv_cc_flag_unused_command_line_argument=yes
6923 else
6924 xorg_cv_cc_flag_unused_command_line_argument=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6931 CFLAGS="$xorg_testset_save_CFLAGS"
6932 fi
6933
6934 found="no"
6935
6936 if test $found = "no" ; then
6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 fi
6940
6941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6943 fi
6944
6945 CFLAGS="$CFLAGS -Werror=missing-braces"
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6948 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6949 cacheid=xorg_cv_cc_flag__Werror_missing_braces
6950 if eval \${$cacheid+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 int
6957 main ()
6958 {
6959
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_link "$LINENO"; then :
6965 eval $cacheid=yes
6966 else
6967 eval $cacheid=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6971 fi
6972
6973
6974 CFLAGS="$xorg_testset_save_CFLAGS"
6975
6976 eval supported=\$$cacheid
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6978 $as_echo "$supported" >&6; }
6979 if test "$supported" = "yes" ; then
6980 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6981 found="yes"
6982 fi
6983 fi
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 xorg_testset_save_CFLAGS="$CFLAGS"
7000
7001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 xorg_cv_cc_flag_unknown_warning_option=yes
7014 else
7015 xorg_cv_cc_flag_unknown_warning_option=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7022 CFLAGS="$xorg_testset_save_CFLAGS"
7023 fi
7024
7025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028 fi
7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 int i;
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040 xorg_cv_cc_flag_unused_command_line_argument=yes
7041 else
7042 xorg_cv_cc_flag_unused_command_line_argument=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7049 CFLAGS="$xorg_testset_save_CFLAGS"
7050 fi
7051
7052 found="no"
7053
7054 if test $found = "no" ; then
7055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 fi
7058
7059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061 fi
7062
7063 CFLAGS="$CFLAGS -Werror=sequence-point"
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7066 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7067 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7068 if eval \${$cacheid+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 int i;
7074 int
7075 main ()
7076 {
7077
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 eval $cacheid=yes
7084 else
7085 eval $cacheid=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 fi
7090
7091
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7093
7094 eval supported=\$$cacheid
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7096 $as_echo "$supported" >&6; }
7097 if test "$supported" = "yes" ; then
7098 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7099 found="yes"
7100 fi
7101 fi
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 xorg_testset_save_CFLAGS="$CFLAGS"
7118
7119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 int i;
7129 _ACEOF
7130 if ac_fn_c_try_compile "$LINENO"; then :
7131 xorg_cv_cc_flag_unknown_warning_option=yes
7132 else
7133 xorg_cv_cc_flag_unknown_warning_option=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146 fi
7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 _ACEOF
7157 if ac_fn_c_try_compile "$LINENO"; then :
7158 xorg_cv_cc_flag_unused_command_line_argument=yes
7159 else
7160 xorg_cv_cc_flag_unused_command_line_argument=no
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7167 CFLAGS="$xorg_testset_save_CFLAGS"
7168 fi
7169
7170 found="no"
7171
7172 if test $found = "no" ; then
7173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7175 fi
7176
7177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179 fi
7180
7181 CFLAGS="$CFLAGS -Werror=return-type"
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7184 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7185 cacheid=xorg_cv_cc_flag__Werror_return_type
7186 if eval \${$cacheid+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 eval $cacheid=yes
7202 else
7203 eval $cacheid=no
7204 fi
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 fi
7208
7209
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212 eval supported=\$$cacheid
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214 $as_echo "$supported" >&6; }
7215 if test "$supported" = "yes" ; then
7216 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7217 found="yes"
7218 fi
7219 fi
7220
7221 if test $found = "no" ; then
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228 fi
7229
7230 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7233 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7234 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7235 if eval \${$cacheid+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 int i;
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 eval $cacheid=yes
7251 else
7252 eval $cacheid=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 fi
7257
7258
7259 CFLAGS="$xorg_testset_save_CFLAGS"
7260
7261 eval supported=\$$cacheid
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7263 $as_echo "$supported" >&6; }
7264 if test "$supported" = "yes" ; then
7265 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7266 found="yes"
7267 fi
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 xorg_testset_save_CFLAGS="$CFLAGS"
7285
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 xorg_cv_cc_flag_unknown_warning_option=yes
7299 else
7300 xorg_cv_cc_flag_unknown_warning_option=no
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7307 CFLAGS="$xorg_testset_save_CFLAGS"
7308 fi
7309
7310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 fi
7314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 xorg_cv_cc_flag_unused_command_line_argument=yes
7326 else
7327 xorg_cv_cc_flag_unused_command_line_argument=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335 fi
7336
7337 found="no"
7338
7339 if test $found = "no" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346 fi
7347
7348 CFLAGS="$CFLAGS -Werror=trigraphs"
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7351 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7352 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7353 if eval \${$cacheid+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 int i;
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_link "$LINENO"; then :
7368 eval $cacheid=yes
7369 else
7370 eval $cacheid=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 fi
7375
7376
7377 CFLAGS="$xorg_testset_save_CFLAGS"
7378
7379 eval supported=\$$cacheid
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7381 $as_echo "$supported" >&6; }
7382 if test "$supported" = "yes" ; then
7383 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7384 found="yes"
7385 fi
7386 fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 xorg_testset_save_CFLAGS="$CFLAGS"
7403
7404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_cv_cc_flag_unknown_warning_option=yes
7417 else
7418 xorg_cv_cc_flag_unknown_warning_option=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426 fi
7427
7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 fi
7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 int i;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 xorg_cv_cc_flag_unused_command_line_argument=yes
7444 else
7445 xorg_cv_cc_flag_unused_command_line_argument=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453 fi
7454
7455 found="no"
7456
7457 if test $found = "no" ; then
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 fi
7461
7462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464 fi
7465
7466 CFLAGS="$CFLAGS -Werror=array-bounds"
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7469 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7470 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7471 if eval \${$cacheid+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 int
7478 main ()
7479 {
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 eval $cacheid=yes
7487 else
7488 eval $cacheid=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 fi
7493
7494
7495 CFLAGS="$xorg_testset_save_CFLAGS"
7496
7497 eval supported=\$$cacheid
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7499 $as_echo "$supported" >&6; }
7500 if test "$supported" = "yes" ; then
7501 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7502 found="yes"
7503 fi
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 xorg_testset_save_CFLAGS="$CFLAGS"
7521
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 xorg_cv_cc_flag_unknown_warning_option=yes
7535 else
7536 xorg_cv_cc_flag_unknown_warning_option=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7543 CFLAGS="$xorg_testset_save_CFLAGS"
7544 fi
7545
7546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7549 fi
7550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561 xorg_cv_cc_flag_unused_command_line_argument=yes
7562 else
7563 xorg_cv_cc_flag_unused_command_line_argument=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571 fi
7572
7573 found="no"
7574
7575 if test $found = "no" ; then
7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 fi
7579
7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7582 fi
7583
7584 CFLAGS="$CFLAGS -Werror=write-strings"
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7587 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7588 cacheid=xorg_cv_cc_flag__Werror_write_strings
7589 if eval \${$cacheid+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 int
7596 main ()
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"; then :
7604 eval $cacheid=yes
7605 else
7606 eval $cacheid=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 fi
7611
7612
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614
7615 eval supported=\$$cacheid
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7617 $as_echo "$supported" >&6; }
7618 if test "$supported" = "yes" ; then
7619 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7620 found="yes"
7621 fi
7622 fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 xorg_testset_save_CFLAGS="$CFLAGS"
7639
7640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7643 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7644 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 xorg_cv_cc_flag_unknown_warning_option=yes
7653 else
7654 xorg_cv_cc_flag_unknown_warning_option=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7659 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7661 CFLAGS="$xorg_testset_save_CFLAGS"
7662 fi
7663
7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667 fi
7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7670 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7671 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 xorg_cv_cc_flag_unused_command_line_argument=yes
7680 else
7681 xorg_cv_cc_flag_unused_command_line_argument=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7686 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689 fi
7690
7691 found="no"
7692
7693 if test $found = "no" ; then
7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696 fi
7697
7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7700 fi
7701
7702 CFLAGS="$CFLAGS -Werror=address"
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7705 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7706 cacheid=xorg_cv_cc_flag__Werror_address
7707 if eval \${$cacheid+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 int i;
7713 int
7714 main ()
7715 {
7716
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 if ac_fn_c_try_link "$LINENO"; then :
7722 eval $cacheid=yes
7723 else
7724 eval $cacheid=no
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7728 fi
7729
7730
7731 CFLAGS="$xorg_testset_save_CFLAGS"
7732
7733 eval supported=\$$cacheid
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7735 $as_echo "$supported" >&6; }
7736 if test "$supported" = "yes" ; then
7737 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7738 found="yes"
7739 fi
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 xorg_testset_save_CFLAGS="$CFLAGS"
7757
7758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7761 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7762 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 int i;
7768 _ACEOF
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 xorg_cv_cc_flag_unknown_warning_option=yes
7771 else
7772 xorg_cv_cc_flag_unknown_warning_option=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7777 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7779 CFLAGS="$xorg_testset_save_CFLAGS"
7780 fi
7781
7782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785 fi
7786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7788 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7789 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 int i;
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 xorg_cv_cc_flag_unused_command_line_argument=yes
7798 else
7799 xorg_cv_cc_flag_unused_command_line_argument=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7804 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7806 CFLAGS="$xorg_testset_save_CFLAGS"
7807 fi
7808
7809 found="no"
7810
7811 if test $found = "no" ; then
7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 fi
7815
7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 fi
7819
7820 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7823 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7824 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
7825 if eval \${$cacheid+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 int i;
7831 int
7832 main ()
7833 {
7834
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840 eval $cacheid=yes
7841 else
7842 eval $cacheid=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 fi
7847
7848
7849 CFLAGS="$xorg_testset_save_CFLAGS"
7850
7851 eval supported=\$$cacheid
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7853 $as_echo "$supported" >&6; }
7854 if test "$supported" = "yes" ; then
7855 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7856 found="yes"
7857 fi
7858 fi
7859
7860 if test $found = "no" ; then
7861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867 fi
7868
7869 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7872 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7873 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
7874 if eval \${$cacheid+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 int i;
7880 int
7881 main ()
7882 {
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 eval $cacheid=yes
7890 else
7891 eval $cacheid=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 fi
7896
7897
7898 CFLAGS="$xorg_testset_save_CFLAGS"
7899
7900 eval supported=\$$cacheid
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7902 $as_echo "$supported" >&6; }
7903 if test "$supported" = "yes" ; then
7904 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7905 found="yes"
7906 fi
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923 xorg_testset_save_CFLAGS="$CFLAGS"
7924
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 xorg_cv_cc_flag_unknown_warning_option=yes
7938 else
7939 xorg_cv_cc_flag_unknown_warning_option=no
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7946 CFLAGS="$xorg_testset_save_CFLAGS"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952 fi
7953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 xorg_cv_cc_flag_unused_command_line_argument=yes
7965 else
7966 xorg_cv_cc_flag_unused_command_line_argument=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974 fi
7975
7976 found="no"
7977
7978 if test $found = "no" ; then
7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985 fi
7986
7987 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7990 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7991 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
7992 if eval \${$cacheid+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 int i;
7998 int
7999 main ()
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 eval $cacheid=yes
8008 else
8009 eval $cacheid=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 fi
8014
8015
8016 CFLAGS="$xorg_testset_save_CFLAGS"
8017
8018 eval supported=\$$cacheid
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8020 $as_echo "$supported" >&6; }
8021 if test "$supported" = "yes" ; then
8022 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8023 found="yes"
8024 fi
8025 fi
8026
8027 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8028 else
8029 { $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
8030 $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;}
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 xorg_testset_save_CFLAGS="$CFLAGS"
8045
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 int i;
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 xorg_cv_cc_flag_unknown_warning_option=yes
8059 else
8060 xorg_cv_cc_flag_unknown_warning_option=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8068 fi
8069
8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 fi
8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 int i;
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 xorg_cv_cc_flag_unused_command_line_argument=yes
8086 else
8087 xorg_cv_cc_flag_unused_command_line_argument=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 found="no"
8098
8099 if test $found = "no" ; then
8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102 fi
8103
8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 fi
8107
8108 CFLAGS="$CFLAGS -Wimplicit"
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8111 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8112 cacheid=xorg_cv_cc_flag__Wimplicit
8113 if eval \${$cacheid+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 int
8120 main ()
8121 {
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128 eval $cacheid=yes
8129 else
8130 eval $cacheid=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 fi
8135
8136
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8138
8139 eval supported=\$$cacheid
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8141 $as_echo "$supported" >&6; }
8142 if test "$supported" = "yes" ; then
8143 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8144 found="yes"
8145 fi
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 xorg_testset_save_CFLAGS="$CFLAGS"
8163
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 xorg_cv_cc_flag_unknown_warning_option=yes
8177 else
8178 xorg_cv_cc_flag_unknown_warning_option=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186 fi
8187
8188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191 fi
8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int i;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 xorg_cv_cc_flag_unused_command_line_argument=yes
8204 else
8205 xorg_cv_cc_flag_unused_command_line_argument=no
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8212 CFLAGS="$xorg_testset_save_CFLAGS"
8213 fi
8214
8215 found="no"
8216
8217 if test $found = "no" ; then
8218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220 fi
8221
8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224 fi
8225
8226 CFLAGS="$CFLAGS -Wnonnull"
8227
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8229 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8230 cacheid=xorg_cv_cc_flag__Wnonnull
8231 if eval \${$cacheid+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 int
8238 main ()
8239 {
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246 eval $cacheid=yes
8247 else
8248 eval $cacheid=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 fi
8253
8254
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257 eval supported=\$$cacheid
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259 $as_echo "$supported" >&6; }
8260 if test "$supported" = "yes" ; then
8261 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8262 found="yes"
8263 fi
8264 fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280 xorg_testset_save_CFLAGS="$CFLAGS"
8281
8282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8285 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8286 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 int i;
8292 _ACEOF
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 xorg_cv_cc_flag_unknown_warning_option=yes
8295 else
8296 xorg_cv_cc_flag_unknown_warning_option=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8301 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8303 CFLAGS="$xorg_testset_save_CFLAGS"
8304 fi
8305
8306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309 fi
8310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8312 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8313 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 int i;
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 xorg_cv_cc_flag_unused_command_line_argument=yes
8322 else
8323 xorg_cv_cc_flag_unused_command_line_argument=no
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8328 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8331 fi
8332
8333 found="no"
8334
8335 if test $found = "no" ; then
8336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338 fi
8339
8340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8342 fi
8343
8344 CFLAGS="$CFLAGS -Winit-self"
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8347 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8348 cacheid=xorg_cv_cc_flag__Winit_self
8349 if eval \${$cacheid+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 int i;
8355 int
8356 main ()
8357 {
8358
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_link "$LINENO"; then :
8364 eval $cacheid=yes
8365 else
8366 eval $cacheid=no
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext conftest.$ac_ext
8370 fi
8371
8372
8373 CFLAGS="$xorg_testset_save_CFLAGS"
8374
8375 eval supported=\$$cacheid
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377 $as_echo "$supported" >&6; }
8378 if test "$supported" = "yes" ; then
8379 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8380 found="yes"
8381 fi
8382 fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 xorg_testset_save_CFLAGS="$CFLAGS"
8399
8400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int i;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412 xorg_cv_cc_flag_unknown_warning_option=yes
8413 else
8414 xorg_cv_cc_flag_unknown_warning_option=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8421 CFLAGS="$xorg_testset_save_CFLAGS"
8422 fi
8423
8424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8427 fi
8428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 int i;
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8439 xorg_cv_cc_flag_unused_command_line_argument=yes
8440 else
8441 xorg_cv_cc_flag_unused_command_line_argument=no
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449 fi
8450
8451 found="no"
8452
8453 if test $found = "no" ; then
8454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456 fi
8457
8458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460 fi
8461
8462 CFLAGS="$CFLAGS -Wmain"
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8465 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8466 cacheid=xorg_cv_cc_flag__Wmain
8467 if eval \${$cacheid+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 int i;
8473 int
8474 main ()
8475 {
8476
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 eval $cacheid=yes
8483 else
8484 eval $cacheid=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 fi
8489
8490
8491 CFLAGS="$xorg_testset_save_CFLAGS"
8492
8493 eval supported=\$$cacheid
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8495 $as_echo "$supported" >&6; }
8496 if test "$supported" = "yes" ; then
8497 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8498 found="yes"
8499 fi
8500 fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516 xorg_testset_save_CFLAGS="$CFLAGS"
8517
8518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8521 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8522 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 int i;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 xorg_cv_cc_flag_unknown_warning_option=yes
8531 else
8532 xorg_cv_cc_flag_unknown_warning_option=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8537 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8540 fi
8541
8542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545 fi
8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8548 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8549 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 xorg_cv_cc_flag_unused_command_line_argument=yes
8558 else
8559 xorg_cv_cc_flag_unused_command_line_argument=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8564 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8566 CFLAGS="$xorg_testset_save_CFLAGS"
8567 fi
8568
8569 found="no"
8570
8571 if test $found = "no" ; then
8572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8574 fi
8575
8576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8578 fi
8579
8580 CFLAGS="$CFLAGS -Wmissing-braces"
8581
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8583 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8584 cacheid=xorg_cv_cc_flag__Wmissing_braces
8585 if eval \${$cacheid+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 int i;
8591 int
8592 main ()
8593 {
8594
8595 ;
8596 return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"; then :
8600 eval $cacheid=yes
8601 else
8602 eval $cacheid=no
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8606 fi
8607
8608
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610
8611 eval supported=\$$cacheid
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8613 $as_echo "$supported" >&6; }
8614 if test "$supported" = "yes" ; then
8615 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8616 found="yes"
8617 fi
8618 fi
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634 xorg_testset_save_CFLAGS="$CFLAGS"
8635
8636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8639 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8640 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 xorg_cv_cc_flag_unknown_warning_option=yes
8649 else
8650 xorg_cv_cc_flag_unknown_warning_option=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"; then :
8675 xorg_cv_cc_flag_unused_command_line_argument=yes
8676 else
8677 xorg_cv_cc_flag_unused_command_line_argument=no
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8682 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8684 CFLAGS="$xorg_testset_save_CFLAGS"
8685 fi
8686
8687 found="no"
8688
8689 if test $found = "no" ; then
8690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692 fi
8693
8694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8696 fi
8697
8698 CFLAGS="$CFLAGS -Wsequence-point"
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8701 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8702 cacheid=xorg_cv_cc_flag__Wsequence_point
8703 if eval \${$cacheid+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 int
8710 main ()
8711 {
8712
8713 ;
8714 return 0;
8715 }
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 eval $cacheid=yes
8719 else
8720 eval $cacheid=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 fi
8725
8726
8727 CFLAGS="$xorg_testset_save_CFLAGS"
8728
8729 eval supported=\$$cacheid
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8731 $as_echo "$supported" >&6; }
8732 if test "$supported" = "yes" ; then
8733 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8734 found="yes"
8735 fi
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752 xorg_testset_save_CFLAGS="$CFLAGS"
8753
8754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8757 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8758 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int i;
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 xorg_cv_cc_flag_unknown_warning_option=yes
8767 else
8768 xorg_cv_cc_flag_unknown_warning_option=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8773 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8776 fi
8777
8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 fi
8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8784 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8785 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 int i;
8791 _ACEOF
8792 if ac_fn_c_try_compile "$LINENO"; then :
8793 xorg_cv_cc_flag_unused_command_line_argument=yes
8794 else
8795 xorg_cv_cc_flag_unused_command_line_argument=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8800 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803 fi
8804
8805 found="no"
8806
8807 if test $found = "no" ; then
8808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 fi
8811
8812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8814 fi
8815
8816 CFLAGS="$CFLAGS -Wreturn-type"
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8819 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8820 cacheid=xorg_cv_cc_flag__Wreturn_type
8821 if eval \${$cacheid+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 int
8828 main ()
8829 {
8830
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 if ac_fn_c_try_link "$LINENO"; then :
8836 eval $cacheid=yes
8837 else
8838 eval $cacheid=no
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 fi
8843
8844
8845 CFLAGS="$xorg_testset_save_CFLAGS"
8846
8847 eval supported=\$$cacheid
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8849 $as_echo "$supported" >&6; }
8850 if test "$supported" = "yes" ; then
8851 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8852 found="yes"
8853 fi
8854 fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870 xorg_testset_save_CFLAGS="$CFLAGS"
8871
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8875 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8876 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 int i;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 xorg_cv_cc_flag_unknown_warning_option=yes
8885 else
8886 xorg_cv_cc_flag_unknown_warning_option=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8891 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899 fi
8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8902 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8903 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 int i;
8909 _ACEOF
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911 xorg_cv_cc_flag_unused_command_line_argument=yes
8912 else
8913 xorg_cv_cc_flag_unused_command_line_argument=no
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8918 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921 fi
8922
8923 found="no"
8924
8925 if test $found = "no" ; then
8926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8928 fi
8929
8930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 fi
8933
8934 CFLAGS="$CFLAGS -Wtrigraphs"
8935
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8937 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8938 cacheid=xorg_cv_cc_flag__Wtrigraphs
8939 if eval \${$cacheid+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 int i;
8945 int
8946 main ()
8947 {
8948
8949 ;
8950 return 0;
8951 }
8952 _ACEOF
8953 if ac_fn_c_try_link "$LINENO"; then :
8954 eval $cacheid=yes
8955 else
8956 eval $cacheid=no
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 fi
8961
8962
8963 CFLAGS="$xorg_testset_save_CFLAGS"
8964
8965 eval supported=\$$cacheid
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8967 $as_echo "$supported" >&6; }
8968 if test "$supported" = "yes" ; then
8969 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8970 found="yes"
8971 fi
8972 fi
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 xorg_testset_save_CFLAGS="$CFLAGS"
8989
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8993 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8994 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 xorg_cv_cc_flag_unknown_warning_option=yes
9003 else
9004 xorg_cv_cc_flag_unknown_warning_option=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9009 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 fi
9018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9020 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9021 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029 xorg_cv_cc_flag_unused_command_line_argument=yes
9030 else
9031 xorg_cv_cc_flag_unused_command_line_argument=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9036 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9038 CFLAGS="$xorg_testset_save_CFLAGS"
9039 fi
9040
9041 found="no"
9042
9043 if test $found = "no" ; then
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 fi
9047
9048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9050 fi
9051
9052 CFLAGS="$CFLAGS -Warray-bounds"
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9055 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9056 cacheid=xorg_cv_cc_flag__Warray_bounds
9057 if eval \${$cacheid+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 int i;
9063 int
9064 main ()
9065 {
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 eval $cacheid=yes
9073 else
9074 eval $cacheid=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi
9079
9080
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082
9083 eval supported=\$$cacheid
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9085 $as_echo "$supported" >&6; }
9086 if test "$supported" = "yes" ; then
9087 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9088 found="yes"
9089 fi
9090 fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 xorg_testset_save_CFLAGS="$CFLAGS"
9107
9108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unknown_warning_option=yes
9121 else
9122 xorg_cv_cc_flag_unknown_warning_option=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 fi
9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 xorg_cv_cc_flag_unused_command_line_argument=yes
9148 else
9149 xorg_cv_cc_flag_unused_command_line_argument=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157 fi
9158
9159 found="no"
9160
9161 if test $found = "no" ; then
9162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 fi
9165
9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9168 fi
9169
9170 CFLAGS="$CFLAGS -Wwrite-strings"
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9173 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9174 cacheid=xorg_cv_cc_flag__Wwrite_strings
9175 if eval \${$cacheid+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 int
9182 main ()
9183 {
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 eval $cacheid=yes
9191 else
9192 eval $cacheid=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 fi
9197
9198
9199 CFLAGS="$xorg_testset_save_CFLAGS"
9200
9201 eval supported=\$$cacheid
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9203 $as_echo "$supported" >&6; }
9204 if test "$supported" = "yes" ; then
9205 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9206 found="yes"
9207 fi
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224 xorg_testset_save_CFLAGS="$CFLAGS"
9225
9226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9229 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9230 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 int i;
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 xorg_cv_cc_flag_unknown_warning_option=yes
9239 else
9240 xorg_cv_cc_flag_unknown_warning_option=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9245 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 fi
9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9256 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9257 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 int i;
9263 _ACEOF
9264 if ac_fn_c_try_compile "$LINENO"; then :
9265 xorg_cv_cc_flag_unused_command_line_argument=yes
9266 else
9267 xorg_cv_cc_flag_unused_command_line_argument=no
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9272 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9274 CFLAGS="$xorg_testset_save_CFLAGS"
9275 fi
9276
9277 found="no"
9278
9279 if test $found = "no" ; then
9280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 fi
9283
9284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9286 fi
9287
9288 CFLAGS="$CFLAGS -Waddress"
9289
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9291 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9292 cacheid=xorg_cv_cc_flag__Waddress
9293 if eval \${$cacheid+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 int
9300 main ()
9301 {
9302
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 eval $cacheid=yes
9309 else
9310 eval $cacheid=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 fi
9315
9316
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318
9319 eval supported=\$$cacheid
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9321 $as_echo "$supported" >&6; }
9322 if test "$supported" = "yes" ; then
9323 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9324 found="yes"
9325 fi
9326 fi
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 xorg_testset_save_CFLAGS="$CFLAGS"
9343
9344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9347 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9348 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 _ACEOF
9355 if ac_fn_c_try_compile "$LINENO"; then :
9356 xorg_cv_cc_flag_unknown_warning_option=yes
9357 else
9358 xorg_cv_cc_flag_unknown_warning_option=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9363 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371 fi
9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9374 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9375 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 int i;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 xorg_cv_cc_flag_unused_command_line_argument=yes
9384 else
9385 xorg_cv_cc_flag_unused_command_line_argument=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9390 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393 fi
9394
9395 found="no"
9396
9397 if test $found = "no" ; then
9398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400 fi
9401
9402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9404 fi
9405
9406 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9409 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9410 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9411 if eval \${$cacheid+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 int
9418 main ()
9419 {
9420
9421 ;
9422 return 0;
9423 }
9424 _ACEOF
9425 if ac_fn_c_try_link "$LINENO"; then :
9426 eval $cacheid=yes
9427 else
9428 eval $cacheid=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 fi
9433
9434
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436
9437 eval supported=\$$cacheid
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9439 $as_echo "$supported" >&6; }
9440 if test "$supported" = "yes" ; then
9441 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9442 found="yes"
9443 fi
9444 fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 xorg_testset_save_CFLAGS="$CFLAGS"
9461
9462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9466 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unknown_warning_option=yes
9475 else
9476 xorg_cv_cc_flag_unknown_warning_option=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9481 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489 fi
9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9492 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9493 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"; then :
9501 xorg_cv_cc_flag_unused_command_line_argument=yes
9502 else
9503 xorg_cv_cc_flag_unused_command_line_argument=no
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9508 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9510 CFLAGS="$xorg_testset_save_CFLAGS"
9511 fi
9512
9513 found="no"
9514
9515 if test $found = "no" ; then
9516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518 fi
9519
9520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9522 fi
9523
9524 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9527 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9528 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9529 if eval \${$cacheid+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 int
9536 main ()
9537 {
9538
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9544 eval $cacheid=yes
9545 else
9546 eval $cacheid=no
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 fi
9551
9552
9553 CFLAGS="$xorg_testset_save_CFLAGS"
9554
9555 eval supported=\$$cacheid
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9557 $as_echo "$supported" >&6; }
9558 if test "$supported" = "yes" ; then
9559 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9560 found="yes"
9561 fi
9562 fi
9563
9564
9565 fi
9566
9567
9568
9569
9570
9571
9572
9573 CWARNFLAGS="$BASE_CFLAGS"
9574 if test "x$GCC" = xyes ; then
9575 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9576 fi
9577
9578
9579
9580
9581
9582
9583
9584
9585 # Check whether --enable-strict-compilation was given.
9586 if test "${enable_strict_compilation+set}" = set; then :
9587 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9588 else
9589 STRICT_COMPILE=no
9590 fi
9591
9592
9593
9594
9595
9596
9597 STRICT_CFLAGS=""
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611 xorg_testset_save_CFLAGS="$CFLAGS"
9612
9613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9625 xorg_cv_cc_flag_unknown_warning_option=yes
9626 else
9627 xorg_cv_cc_flag_unknown_warning_option=no
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9634 CFLAGS="$xorg_testset_save_CFLAGS"
9635 fi
9636
9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640 fi
9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 int i;
9650 _ACEOF
9651 if ac_fn_c_try_compile "$LINENO"; then :
9652 xorg_cv_cc_flag_unused_command_line_argument=yes
9653 else
9654 xorg_cv_cc_flag_unused_command_line_argument=no
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9661 CFLAGS="$xorg_testset_save_CFLAGS"
9662 fi
9663
9664 found="no"
9665
9666 if test $found = "no" ; then
9667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669 fi
9670
9671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673 fi
9674
9675 CFLAGS="$CFLAGS -pedantic"
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9678 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9679 cacheid=xorg_cv_cc_flag__pedantic
9680 if eval \${$cacheid+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 int i;
9686 int
9687 main ()
9688 {
9689
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695 eval $cacheid=yes
9696 else
9697 eval $cacheid=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 fi
9702
9703
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705
9706 eval supported=\$$cacheid
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9708 $as_echo "$supported" >&6; }
9709 if test "$supported" = "yes" ; then
9710 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9711 found="yes"
9712 fi
9713 fi
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729 xorg_testset_save_CFLAGS="$CFLAGS"
9730
9731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 xorg_cv_cc_flag_unknown_warning_option=yes
9744 else
9745 xorg_cv_cc_flag_unknown_warning_option=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9752 CFLAGS="$xorg_testset_save_CFLAGS"
9753 fi
9754
9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758 fi
9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 int i;
9768 _ACEOF
9769 if ac_fn_c_try_compile "$LINENO"; then :
9770 xorg_cv_cc_flag_unused_command_line_argument=yes
9771 else
9772 xorg_cv_cc_flag_unused_command_line_argument=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9779 CFLAGS="$xorg_testset_save_CFLAGS"
9780 fi
9781
9782 found="no"
9783
9784 if test $found = "no" ; then
9785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787 fi
9788
9789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791 fi
9792
9793 CFLAGS="$CFLAGS -Werror"
9794
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9796 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9797 cacheid=xorg_cv_cc_flag__Werror
9798 if eval \${$cacheid+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 int i;
9804 int
9805 main ()
9806 {
9807
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 eval $cacheid=yes
9814 else
9815 eval $cacheid=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 fi
9820
9821
9822 CFLAGS="$xorg_testset_save_CFLAGS"
9823
9824 eval supported=\$$cacheid
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9826 $as_echo "$supported" >&6; }
9827 if test "$supported" = "yes" ; then
9828 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9829 found="yes"
9830 fi
9831 fi
9832
9833 if test $found = "no" ; then
9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836 fi
9837
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840 fi
9841
9842 CFLAGS="$CFLAGS -errwarn"
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9845 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9846 cacheid=xorg_cv_cc_flag__errwarn
9847 if eval \${$cacheid+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 int i;
9853 int
9854 main ()
9855 {
9856
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 eval $cacheid=yes
9863 else
9864 eval $cacheid=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869
9870
9871 CFLAGS="$xorg_testset_save_CFLAGS"
9872
9873 eval supported=\$$cacheid
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9875 $as_echo "$supported" >&6; }
9876 if test "$supported" = "yes" ; then
9877 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9878 found="yes"
9879 fi
9880 fi
9881
9882
9883
9884 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9885 # activate it with -Werror, so we add it here explicitly.
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 xorg_testset_save_CFLAGS="$CFLAGS"
9900
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"; then :
9913 xorg_cv_cc_flag_unknown_warning_option=yes
9914 else
9915 xorg_cv_cc_flag_unknown_warning_option=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923 fi
9924
9925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928 fi
9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 xorg_cv_cc_flag_unused_command_line_argument=yes
9941 else
9942 xorg_cv_cc_flag_unused_command_line_argument=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950 fi
9951
9952 found="no"
9953
9954 if test $found = "no" ; then
9955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957 fi
9958
9959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961 fi
9962
9963 CFLAGS="$CFLAGS -Werror=attributes"
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9966 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9967 cacheid=xorg_cv_cc_flag__Werror_attributes
9968 if eval \${$cacheid+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 int i;
9974 int
9975 main ()
9976 {
9977
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 eval $cacheid=yes
9984 else
9985 eval $cacheid=no
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990
9991
9992 CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994 eval supported=\$$cacheid
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996 $as_echo "$supported" >&6; }
9997 if test "$supported" = "yes" ; then
9998 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9999 found="yes"
10000 fi
10001 fi
10002
10003
10004
10005 if test "x$STRICT_COMPILE" = "xyes"; then
10006 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10007 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10008 fi
10009
10010
10011
10012
10013
10014
10015 cat >>confdefs.h <<_ACEOF
10016 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10017 _ACEOF
10018
10019 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10020 if test "x$PVM" = "x"; then
10021 PVM="0"
10022 fi
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define PACKAGE_VERSION_MINOR $PVM
10026 _ACEOF
10027
10028 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10029 if test "x$PVP" = "x"; then
10030 PVP="0"
10031 fi
10032
10033 cat >>confdefs.h <<_ACEOF
10034 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10035 _ACEOF
10036
10037
10038
10039 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10040 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10041 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10042 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10043
10044
10045
10046
10047 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10048 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10049 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10050 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10051 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10052
10053
10054
10055
10056
10057
10058 if test x$APP_MAN_SUFFIX = x ; then
10059 APP_MAN_SUFFIX=1
10060 fi
10061 if test x$APP_MAN_DIR = x ; then
10062 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10063 fi
10064
10065 if test x$LIB_MAN_SUFFIX = x ; then
10066 LIB_MAN_SUFFIX=3
10067 fi
10068 if test x$LIB_MAN_DIR = x ; then
10069 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10070 fi
10071
10072 if test x$FILE_MAN_SUFFIX = x ; then
10073 case $host_os in
10074 solaris*) FILE_MAN_SUFFIX=4 ;;
10075 *) FILE_MAN_SUFFIX=5 ;;
10076 esac
10077 fi
10078 if test x$FILE_MAN_DIR = x ; then
10079 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10080 fi
10081
10082 if test x$MISC_MAN_SUFFIX = x ; then
10083 case $host_os in
10084 solaris*) MISC_MAN_SUFFIX=5 ;;
10085 *) MISC_MAN_SUFFIX=7 ;;
10086 esac
10087 fi
10088 if test x$MISC_MAN_DIR = x ; then
10089 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10090 fi
10091
10092 if test x$DRIVER_MAN_SUFFIX = x ; then
10093 case $host_os in
10094 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10095 *) DRIVER_MAN_SUFFIX=4 ;;
10096 esac
10097 fi
10098 if test x$DRIVER_MAN_DIR = x ; then
10099 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10100 fi
10101
10102 if test x$ADMIN_MAN_SUFFIX = x ; then
10103 case $host_os in
10104 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10105 *) ADMIN_MAN_SUFFIX=8 ;;
10106 esac
10107 fi
10108 if test x$ADMIN_MAN_DIR = x ; then
10109 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10110 fi
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126 XORG_MAN_PAGE="X Version 11"
10127
10128 MAN_SUBSTS="\
10129 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10130 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10131 -e 's|__xservername__|Xorg|g' \
10132 -e 's|__xconfigfile__|xorg.conf|g' \
10133 -e 's|__projectroot__|\$(prefix)|g' \
10134 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10135 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10136 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10137 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10138 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10139 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10140 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10141
10142
10143
10144 # Check whether --enable-silent-rules was given.
10145 if test "${enable_silent_rules+set}" = set; then :
10146 enableval=$enable_silent_rules;
10147 fi
10148
10149 case $enable_silent_rules in # (((
10150 yes) AM_DEFAULT_VERBOSITY=0;;
10151 no) AM_DEFAULT_VERBOSITY=1;;
10152 *) AM_DEFAULT_VERBOSITY=0;;
10153 esac
10154 am_make=${MAKE-make}
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10156 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10157 if ${am_cv_make_support_nested_variables+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if $as_echo 'TRUE=$(BAR$(V))
10161 BAR0=false
10162 BAR1=true
10163 V=1
10164 am__doit:
10165 @$(TRUE)
10166 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10167 am_cv_make_support_nested_variables=yes
10168 else
10169 am_cv_make_support_nested_variables=no
10170 fi
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10173 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10174 if test $am_cv_make_support_nested_variables = yes; then
10175 AM_V='$(V)'
10176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10177 else
10178 AM_V=$AM_DEFAULT_VERBOSITY
10179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10180 fi
10181 AM_BACKSLASH='\'
10182
10183
10184
10185 ac_aux_dir=
10186 for ac_dir in . "$srcdir"/.; do
10187 if test -f "$ac_dir/install-sh"; then
10188 ac_aux_dir=$ac_dir
10189 ac_install_sh="$ac_aux_dir/install-sh -c"
10190 break
10191 elif test -f "$ac_dir/install.sh"; then
10192 ac_aux_dir=$ac_dir
10193 ac_install_sh="$ac_aux_dir/install.sh -c"
10194 break
10195 elif test -f "$ac_dir/shtool"; then
10196 ac_aux_dir=$ac_dir
10197 ac_install_sh="$ac_aux_dir/shtool install -c"
10198 break
10199 fi
10200 done
10201 if test -z "$ac_aux_dir"; then
10202 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10203 fi
10204
10205 # These three variables are undocumented and unsupported,
10206 # and are intended to be withdrawn in a future Autoconf release.
10207 # They can cause serious problems if a builder's source tree is in a directory
10208 # whose full name contains unusual characters.
10209 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10210 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10211 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10212
10213
10214
10215 # Initialize Automake
10216 am__api_version='1.15'
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10219 $as_echo_n "checking whether build environment is sane... " >&6; }
10220 # Reject unsafe characters in $srcdir or the absolute working directory
10221 # name. Accept space and tab only in the latter.
10222 am_lf='
10223 '
10224 case `pwd` in
10225 *[\\\"\#\$\&\'\`$am_lf]*)
10226 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10227 esac
10228 case $srcdir in
10229 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10230 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10231 esac
10232
10233 # Do 'set' in a subshell so we don't clobber the current shell's
10234 # arguments. Must try -L first in case configure is actually a
10235 # symlink; some systems play weird games with the mod time of symlinks
10236 # (eg FreeBSD returns the mod time of the symlink's containing
10237 # directory).
10238 if (
10239 am_has_slept=no
10240 for am_try in 1 2; do
10241 echo "timestamp, slept: $am_has_slept" > conftest.file
10242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10243 if test "$*" = "X"; then
10244 # -L didn't work.
10245 set X `ls -t "$srcdir/configure" conftest.file`
10246 fi
10247 if test "$*" != "X $srcdir/configure conftest.file" \
10248 && test "$*" != "X conftest.file $srcdir/configure"; then
10249
10250 # If neither matched, then we have a broken ls. This can happen
10251 # if, for instance, CONFIG_SHELL is bash and it inherits a
10252 # broken ls alias from the environment. This has actually
10253 # happened. Such a system could not be considered "sane".
10254 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
10255 alias in your environment" "$LINENO" 5
10256 fi
10257 if test "$2" = conftest.file || test $am_try -eq 2; then
10258 break
10259 fi
10260 # Just in case.
10261 sleep 1
10262 am_has_slept=yes
10263 done
10264 test "$2" = conftest.file
10265 )
10266 then
10267 # Ok.
10268 :
10269 else
10270 as_fn_error $? "newly created file is older than distributed files!
10271 Check your system clock" "$LINENO" 5
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10274 $as_echo "yes" >&6; }
10275 # If we didn't sleep, we still need to ensure time stamps of config.status and
10276 # generated files are strictly newer.
10277 am_sleep_pid=
10278 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10279 ( sleep 1 ) &
10280 am_sleep_pid=$!
10281 fi
10282
10283 rm -f conftest.file
10284
10285 test "$program_prefix" != NONE &&
10286 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10287 # Use a double $ so make ignores it.
10288 test "$program_suffix" != NONE &&
10289 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10290 # Double any \ or $.
10291 # By default was `s,x,x', remove it if useless.
10292 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10293 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10294
10295 if test x"${MISSING+set}" != xset; then
10296 case $am_aux_dir in
10297 *\ * | *\ *)
10298 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10299 *)
10300 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10301 esac
10302 fi
10303 # Use eval to expand $SHELL
10304 if eval "$MISSING --is-lightweight"; then
10305 am_missing_run="$MISSING "
10306 else
10307 am_missing_run=
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10309 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10310 fi
10311
10312 if test x"${install_sh+set}" != xset; then
10313 case $am_aux_dir in
10314 *\ * | *\ *)
10315 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10316 *)
10317 install_sh="\${SHELL} $am_aux_dir/install-sh"
10318 esac
10319 fi
10320
10321 # Installed binaries are usually stripped using 'strip' when the user
10322 # run "make install-strip". However 'strip' might not be the right
10323 # tool to use in cross-compilation environments, therefore Automake
10324 # will honor the 'STRIP' environment variable to overrule this program.
10325 if test "$cross_compiling" != no; then
10326 if test -n "$ac_tool_prefix"; then
10327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10328 set dummy ${ac_tool_prefix}strip; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_prog_STRIP+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 if test -n "$STRIP"; then
10335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10339 do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348 done
10349 done
10350 IFS=$as_save_IFS
10351
10352 fi
10353 fi
10354 STRIP=$ac_cv_prog_STRIP
10355 if test -n "$STRIP"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10357 $as_echo "$STRIP" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 fi
10362
10363
10364 fi
10365 if test -z "$ac_cv_prog_STRIP"; then
10366 ac_ct_STRIP=$STRIP
10367 # Extract the first word of "strip", so it can be a program name with args.
10368 set dummy strip; ac_word=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 if test -n "$ac_ct_STRIP"; then
10375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10376 else
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10379 do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_prog_ac_ct_STRIP="strip"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388 done
10389 done
10390 IFS=$as_save_IFS
10391
10392 fi
10393 fi
10394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10395 if test -n "$ac_ct_STRIP"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10397 $as_echo "$ac_ct_STRIP" >&6; }
10398 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10401 fi
10402
10403 if test "x$ac_ct_STRIP" = x; then
10404 STRIP=":"
10405 else
10406 case $cross_compiling:$ac_tool_warned in
10407 yes:)
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10410 ac_tool_warned=yes ;;
10411 esac
10412 STRIP=$ac_ct_STRIP
10413 fi
10414 else
10415 STRIP="$ac_cv_prog_STRIP"
10416 fi
10417
10418 fi
10419 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10423 if test -z "$MKDIR_P"; then
10424 if ${ac_cv_path_mkdir+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10429 do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_prog in mkdir gmkdir; do
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10436 'mkdir (GNU coreutils) '* | \
10437 'mkdir (coreutils) '* | \
10438 'mkdir (fileutils) '4.1*)
10439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10440 break 3;;
10441 esac
10442 done
10443 done
10444 done
10445 IFS=$as_save_IFS
10446
10447 fi
10448
10449 test -d ./--version && rmdir ./--version
10450 if test "${ac_cv_path_mkdir+set}" = set; then
10451 MKDIR_P="$ac_cv_path_mkdir -p"
10452 else
10453 # As a last resort, use the slow shell script. Don't cache a
10454 # value for MKDIR_P within a source directory, because that will
10455 # break other packages using the cache if that directory is
10456 # removed, or if the value is a relative name.
10457 MKDIR_P="$ac_install_sh -d"
10458 fi
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10461 $as_echo "$MKDIR_P" >&6; }
10462
10463 for ac_prog in gawk mawk nawk awk
10464 do
10465 # Extract the first word of "$ac_prog", so it can be a program name with args.
10466 set dummy $ac_prog; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_prog_AWK+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 if test -n "$AWK"; then
10473 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10474 else
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_AWK="$ac_prog"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486 done
10487 done
10488 IFS=$as_save_IFS
10489
10490 fi
10491 fi
10492 AWK=$ac_cv_prog_AWK
10493 if test -n "$AWK"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10495 $as_echo "$AWK" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500
10501
10502 test -n "$AWK" && break
10503 done
10504
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10506 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10507 set x ${MAKE-make}
10508 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10509 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 cat >conftest.make <<\_ACEOF
10513 SHELL = /bin/sh
10514 all:
10515 @echo '@@@%%%=$(MAKE)=@@@%%%'
10516 _ACEOF
10517 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10519 *@@@%%%=?*=@@@%%%*)
10520 eval ac_cv_prog_make_${ac_make}_set=yes;;
10521 *)
10522 eval ac_cv_prog_make_${ac_make}_set=no;;
10523 esac
10524 rm -f conftest.make
10525 fi
10526 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528 $as_echo "yes" >&6; }
10529 SET_MAKE=
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 SET_MAKE="MAKE=${MAKE-make}"
10534 fi
10535
10536 rm -rf .tst 2>/dev/null
10537 mkdir .tst 2>/dev/null
10538 if test -d .tst; then
10539 am__leading_dot=.
10540 else
10541 am__leading_dot=_
10542 fi
10543 rmdir .tst 2>/dev/null
10544
10545 DEPDIR="${am__leading_dot}deps"
10546
10547 ac_config_commands="$ac_config_commands depfiles"
10548
10549
10550 am_make=${MAKE-make}
10551 cat > confinc << 'END'
10552 am__doit:
10553 @echo this is the am__doit target
10554 .PHONY: am__doit
10555 END
10556 # If we don't find an include directive, just comment out the code.
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10558 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10559 am__include="#"
10560 am__quote=
10561 _am_result=none
10562 # First try GNU make style include.
10563 echo "include confinc" > confmf
10564 # Ignore all kinds of additional output from 'make'.
10565 case `$am_make -s -f confmf 2> /dev/null` in #(
10566 *the\ am__doit\ target*)
10567 am__include=include
10568 am__quote=
10569 _am_result=GNU
10570 ;;
10571 esac
10572 # Now try BSD make style include.
10573 if test "$am__include" = "#"; then
10574 echo '.include "confinc"' > confmf
10575 case `$am_make -s -f confmf 2> /dev/null` in #(
10576 *the\ am__doit\ target*)
10577 am__include=.include
10578 am__quote="\""
10579 _am_result=BSD
10580 ;;
10581 esac
10582 fi
10583
10584
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10586 $as_echo "$_am_result" >&6; }
10587 rm -f confinc confmf
10588
10589 # Check whether --enable-dependency-tracking was given.
10590 if test "${enable_dependency_tracking+set}" = set; then :
10591 enableval=$enable_dependency_tracking;
10592 fi
10593
10594 if test "x$enable_dependency_tracking" != xno; then
10595 am_depcomp="$ac_aux_dir/depcomp"
10596 AMDEPBACKSLASH='\'
10597 am__nodep='_no'
10598 fi
10599 if test "x$enable_dependency_tracking" != xno; then
10600 AMDEP_TRUE=
10601 AMDEP_FALSE='#'
10602 else
10603 AMDEP_TRUE='#'
10604 AMDEP_FALSE=
10605 fi
10606
10607
10608 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10609 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10610 # is not polluted with repeated "-I."
10611 am__isrc=' -I$(srcdir)'
10612 # test to see if srcdir already configured
10613 if test -f $srcdir/config.status; then
10614 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10615 fi
10616 fi
10617
10618 # test whether we have cygpath
10619 if test -z "$CYGPATH_W"; then
10620 if (cygpath --version) >/dev/null 2>/dev/null; then
10621 CYGPATH_W='cygpath -w'
10622 else
10623 CYGPATH_W=echo
10624 fi
10625 fi
10626
10627
10628 # Define the identity of the package.
10629 PACKAGE='xf86-video-mga'
10630 VERSION='2.0.0'
10631
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define PACKAGE "$PACKAGE"
10635 _ACEOF
10636
10637
10638 cat >>confdefs.h <<_ACEOF
10639 #define VERSION "$VERSION"
10640 _ACEOF
10641
10642 # Some tools Automake needs.
10643
10644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10645
10646
10647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10648
10649
10650 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10651
10652
10653 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10654
10655
10656 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10657
10658 # For better backward compatibility. To be removed once Automake 1.9.x
10659 # dies out for good. For more background, see:
10660 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10661 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10662 mkdir_p='$(MKDIR_P)'
10663
10664 # We need awk for the "check" target (and possibly the TAP driver). The
10665 # system "awk" is bad on some platforms.
10666 # Always define AMTAR for backward compatibility. Yes, it's still used
10667 # in the wild :-( We should find a proper way to deprecate it ...
10668 AMTAR='$${TAR-tar}'
10669
10670
10671 # We'll loop over all known methods to create a tar archive until one works.
10672 _am_tools='gnutar pax cpio none'
10673
10674 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10675
10676
10677
10678
10679
10680 depcc="$CC" am_compiler_list=
10681
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10683 $as_echo_n "checking dependency style of $depcc... " >&6; }
10684 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10688 # We make a subdir and do the tests there. Otherwise we can end up
10689 # making bogus files that we don't know about and never remove. For
10690 # instance it was reported that on HP-UX the gcc test will end up
10691 # making a dummy file named 'D' -- because '-MD' means "put the output
10692 # in D".
10693 rm -rf conftest.dir
10694 mkdir conftest.dir
10695 # Copy depcomp to subdir because otherwise we won't find it if we're
10696 # using a relative directory.
10697 cp "$am_depcomp" conftest.dir
10698 cd conftest.dir
10699 # We will build objects and dependencies in a subdirectory because
10700 # it helps to detect inapplicable dependency modes. For instance
10701 # both Tru64's cc and ICC support -MD to output dependencies as a
10702 # side effect of compilation, but ICC will put the dependencies in
10703 # the current directory while Tru64 will put them in the object
10704 # directory.
10705 mkdir sub
10706
10707 am_cv_CC_dependencies_compiler_type=none
10708 if test "$am_compiler_list" = ""; then
10709 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10710 fi
10711 am__universal=false
10712 case " $depcc " in #(
10713 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10714 esac
10715
10716 for depmode in $am_compiler_list; do
10717 # Setup a source with many dependencies, because some compilers
10718 # like to wrap large dependency lists on column 80 (with \), and
10719 # we should not choose a depcomp mode which is confused by this.
10720 #
10721 # We need to recreate these files for each test, as the compiler may
10722 # overwrite some of them when testing with obscure command lines.
10723 # This happens at least with the AIX C compiler.
10724 : > sub/conftest.c
10725 for i in 1 2 3 4 5 6; do
10726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10727 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10728 # Solaris 10 /bin/sh.
10729 echo '/* dummy */' > sub/conftst$i.h
10730 done
10731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10732
10733 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10734 # mode. It turns out that the SunPro C++ compiler does not properly
10735 # handle '-M -o', and we need to detect this. Also, some Intel
10736 # versions had trouble with output in subdirs.
10737 am__obj=sub/conftest.${OBJEXT-o}
10738 am__minus_obj="-o $am__obj"
10739 case $depmode in
10740 gcc)
10741 # This depmode causes a compiler race in universal mode.
10742 test "$am__universal" = false || continue
10743 ;;
10744 nosideeffect)
10745 # After this tag, mechanisms are not by side-effect, so they'll
10746 # only be used when explicitly requested.
10747 if test "x$enable_dependency_tracking" = xyes; then
10748 continue
10749 else
10750 break
10751 fi
10752 ;;
10753 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10754 # This compiler won't grok '-c -o', but also, the minuso test has
10755 # not run yet. These depmodes are late enough in the game, and
10756 # so weak that their functioning should not be impacted.
10757 am__obj=conftest.${OBJEXT-o}
10758 am__minus_obj=
10759 ;;
10760 none) break ;;
10761 esac
10762 if depmode=$depmode \
10763 source=sub/conftest.c object=$am__obj \
10764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10765 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10766 >/dev/null 2>conftest.err &&
10767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10769 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10771 # icc doesn't choke on unknown options, it will just issue warnings
10772 # or remarks (even with -Werror). So we grep stderr for any message
10773 # that says an option was ignored or not supported.
10774 # When given -MP, icc 7.0 and 7.1 complain thusly:
10775 # icc: Command line warning: ignoring option '-M'; no argument required
10776 # The diagnosis changed in icc 8.0:
10777 # icc: Command line remark: option '-MP' not supported
10778 if (grep 'ignoring option' conftest.err ||
10779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10780 am_cv_CC_dependencies_compiler_type=$depmode
10781 break
10782 fi
10783 fi
10784 done
10785
10786 cd ..
10787 rm -rf conftest.dir
10788 else
10789 am_cv_CC_dependencies_compiler_type=none
10790 fi
10791
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10794 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10796
10797 if
10798 test "x$enable_dependency_tracking" != xno \
10799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10800 am__fastdepCC_TRUE=
10801 am__fastdepCC_FALSE='#'
10802 else
10803 am__fastdepCC_TRUE='#'
10804 am__fastdepCC_FALSE=
10805 fi
10806
10807
10808
10809 # POSIX will say in a future version that running "rm -f" with no argument
10810 # is OK; and we want to be able to make that assumption in our Makefile
10811 # recipes. So use an aggressive probe to check that the usage we want is
10812 # actually supported "in the wild" to an acceptable degree.
10813 # See automake bug#10828.
10814 # To make any issue more visible, cause the running configure to be aborted
10815 # by default if the 'rm' program in use doesn't match our expectations; the
10816 # user can still override this though.
10817 if rm -f && rm -fr && rm -rf; then : OK; else
10818 cat >&2 <<'END'
10819 Oops!
10820
10821 Your 'rm' program seems unable to run without file operands specified
10822 on the command line, even when the '-f' option is present. This is contrary
10823 to the behaviour of most rm programs out there, and not conforming with
10824 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10825
10826 Please tell bug-automake@gnu.org about your system, including the value
10827 of your $PATH and any error possibly output before this message. This
10828 can help us improve future automake versions.
10829
10830 END
10831 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10832 echo 'Configuration will proceed anyway, since you have set the' >&2
10833 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10834 echo >&2
10835 else
10836 cat >&2 <<'END'
10837 Aborting the configuration process, to ensure you take notice of the issue.
10838
10839 You can download and install GNU coreutils to get an 'rm' implementation
10840 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10841
10842 If you want to complete the configuration process using your problematic
10843 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10844 to "yes", and re-run configure.
10845
10846 END
10847 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
10848 fi
10849 fi
10850
10851
10852 # Initialize libtool
10853 # Check whether --enable-static was given.
10854 if test "${enable_static+set}" = set; then :
10855 enableval=$enable_static; p=${PACKAGE-default}
10856 case $enableval in
10857 yes) enable_static=yes ;;
10858 no) enable_static=no ;;
10859 *)
10860 enable_static=no
10861 # Look at the argument we got. We use all the common list separators.
10862 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10863 for pkg in $enableval; do
10864 IFS=$lt_save_ifs
10865 if test "X$pkg" = "X$p"; then
10866 enable_static=yes
10867 fi
10868 done
10869 IFS=$lt_save_ifs
10870 ;;
10871 esac
10872 else
10873 enable_static=no
10874 fi
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884 case `pwd` in
10885 *\ * | *\ *)
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10887 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10888 esac
10889
10890
10891
10892 macro_version='2.4.6'
10893 macro_revision='2.4.6'
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 ltmain=$ac_aux_dir/ltmain.sh
10908
10909 # Backslashify metacharacters that are still active within
10910 # double-quoted strings.
10911 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10912
10913 # Same as above, but do not quote variable references.
10914 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10915
10916 # Sed substitution to delay expansion of an escaped shell variable in a
10917 # double_quote_subst'ed string.
10918 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10919
10920 # Sed substitution to delay expansion of an escaped single quote.
10921 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10922
10923 # Sed substitution to avoid accidental globbing in evaled expressions
10924 no_glob_subst='s/\*/\\\*/g'
10925
10926 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10927 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10928 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10929
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10931 $as_echo_n "checking how to print strings... " >&6; }
10932 # Test print first, because it will be a builtin if present.
10933 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10934 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10935 ECHO='print -r --'
10936 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10937 ECHO='printf %s\n'
10938 else
10939 # Use this function as a fallback that always works.
10940 func_fallback_echo ()
10941 {
10942 eval 'cat <<_LTECHO_EOF
10943 $1
10944 _LTECHO_EOF'
10945 }
10946 ECHO='func_fallback_echo'
10947 fi
10948
10949 # func_echo_all arg...
10950 # Invoke $ECHO with all args, space-separated.
10951 func_echo_all ()
10952 {
10953 $ECHO ""
10954 }
10955
10956 case $ECHO in
10957 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10958 $as_echo "printf" >&6; } ;;
10959 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10960 $as_echo "print -r" >&6; } ;;
10961 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10962 $as_echo "cat" >&6; } ;;
10963 esac
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10979 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10980 if ${ac_cv_path_SED+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10984 for ac_i in 1 2 3 4 5 6 7; do
10985 ac_script="$ac_script$as_nl$ac_script"
10986 done
10987 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10988 { ac_script=; unset ac_script;}
10989 if test -z "$SED"; then
10990 ac_path_SED_found=false
10991 # Loop through the user's path and test for each of PROGNAME-LIST
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_prog in sed gsed; do
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11000 as_fn_executable_p "$ac_path_SED" || continue
11001 # Check for GNU ac_path_SED and select it if it is found.
11002 # Check for GNU $ac_path_SED
11003 case `"$ac_path_SED" --version 2>&1` in
11004 *GNU*)
11005 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11006 *)
11007 ac_count=0
11008 $as_echo_n 0123456789 >"conftest.in"
11009 while :
11010 do
11011 cat "conftest.in" "conftest.in" >"conftest.tmp"
11012 mv "conftest.tmp" "conftest.in"
11013 cp "conftest.in" "conftest.nl"
11014 $as_echo '' >> "conftest.nl"
11015 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11017 as_fn_arith $ac_count + 1 && ac_count=$as_val
11018 if test $ac_count -gt ${ac_path_SED_max-0}; then
11019 # Best one so far, save it but keep looking for a better one
11020 ac_cv_path_SED="$ac_path_SED"
11021 ac_path_SED_max=$ac_count
11022 fi
11023 # 10*(2^10) chars as input seems more than enough
11024 test $ac_count -gt 10 && break
11025 done
11026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11027 esac
11028
11029 $ac_path_SED_found && break 3
11030 done
11031 done
11032 done
11033 IFS=$as_save_IFS
11034 if test -z "$ac_cv_path_SED"; then
11035 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11036 fi
11037 else
11038 ac_cv_path_SED=$SED
11039 fi
11040
11041 fi
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11043 $as_echo "$ac_cv_path_SED" >&6; }
11044 SED="$ac_cv_path_SED"
11045 rm -f conftest.sed
11046
11047 test -z "$SED" && SED=sed
11048 Xsed="$SED -e 1s/^X//"
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11061 $as_echo_n "checking for fgrep... " >&6; }
11062 if ${ac_cv_path_FGREP+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11066 then ac_cv_path_FGREP="$GREP -F"
11067 else
11068 if test -z "$FGREP"; then
11069 ac_path_FGREP_found=false
11070 # Loop through the user's path and test for each of PROGNAME-LIST
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11073 do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_prog in fgrep; do
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11079 as_fn_executable_p "$ac_path_FGREP" || continue
11080 # Check for GNU ac_path_FGREP and select it if it is found.
11081 # Check for GNU $ac_path_FGREP
11082 case `"$ac_path_FGREP" --version 2>&1` in
11083 *GNU*)
11084 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11085 *)
11086 ac_count=0
11087 $as_echo_n 0123456789 >"conftest.in"
11088 while :
11089 do
11090 cat "conftest.in" "conftest.in" >"conftest.tmp"
11091 mv "conftest.tmp" "conftest.in"
11092 cp "conftest.in" "conftest.nl"
11093 $as_echo 'FGREP' >> "conftest.nl"
11094 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11096 as_fn_arith $ac_count + 1 && ac_count=$as_val
11097 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11098 # Best one so far, save it but keep looking for a better one
11099 ac_cv_path_FGREP="$ac_path_FGREP"
11100 ac_path_FGREP_max=$ac_count
11101 fi
11102 # 10*(2^10) chars as input seems more than enough
11103 test $ac_count -gt 10 && break
11104 done
11105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11106 esac
11107
11108 $ac_path_FGREP_found && break 3
11109 done
11110 done
11111 done
11112 IFS=$as_save_IFS
11113 if test -z "$ac_cv_path_FGREP"; then
11114 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11115 fi
11116 else
11117 ac_cv_path_FGREP=$FGREP
11118 fi
11119
11120 fi
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11123 $as_echo "$ac_cv_path_FGREP" >&6; }
11124 FGREP="$ac_cv_path_FGREP"
11125
11126
11127 test -z "$GREP" && GREP=grep
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 # Check whether --with-gnu-ld was given.
11148 if test "${with_gnu_ld+set}" = set; then :
11149 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11150 else
11151 with_gnu_ld=no
11152 fi
11153
11154 ac_prog=ld
11155 if test yes = "$GCC"; then
11156 # Check if gcc -print-prog-name=ld gives a path.
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11158 $as_echo_n "checking for ld used by $CC... " >&6; }
11159 case $host in
11160 *-*-mingw*)
11161 # gcc leaves a trailing carriage return, which upsets mingw
11162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11163 *)
11164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11165 esac
11166 case $ac_prog in
11167 # Accept absolute paths.
11168 [\\/]* | ?:[\\/]*)
11169 re_direlt='/[^/][^/]*/\.\./'
11170 # Canonicalize the pathname of ld
11171 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11172 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11173 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11174 done
11175 test -z "$LD" && LD=$ac_prog
11176 ;;
11177 "")
11178 # If it fails, then pretend we aren't using GCC.
11179 ac_prog=ld
11180 ;;
11181 *)
11182 # If it is relative, then search for the first ld in PATH.
11183 with_gnu_ld=unknown
11184 ;;
11185 esac
11186 elif test yes = "$with_gnu_ld"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11188 $as_echo_n "checking for GNU ld... " >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11191 $as_echo_n "checking for non-GNU ld... " >&6; }
11192 fi
11193 if ${lt_cv_path_LD+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 if test -z "$LD"; then
11197 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11198 for ac_dir in $PATH; do
11199 IFS=$lt_save_ifs
11200 test -z "$ac_dir" && ac_dir=.
11201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11202 lt_cv_path_LD=$ac_dir/$ac_prog
11203 # Check to see if the program is GNU ld. I'd rather use --version,
11204 # but apparently some variants of GNU ld only accept -v.
11205 # Break only if it was the GNU/non-GNU ld that we prefer.
11206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11207 *GNU* | *'with BFD'*)
11208 test no != "$with_gnu_ld" && break
11209 ;;
11210 *)
11211 test yes != "$with_gnu_ld" && break
11212 ;;
11213 esac
11214 fi
11215 done
11216 IFS=$lt_save_ifs
11217 else
11218 lt_cv_path_LD=$LD # Let the user override the test with a path.
11219 fi
11220 fi
11221
11222 LD=$lt_cv_path_LD
11223 if test -n "$LD"; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11225 $as_echo "$LD" >&6; }
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11232 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11233 if ${lt_cv_prog_gnu_ld+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11237 case `$LD -v 2>&1 </dev/null` in
11238 *GNU* | *'with BFD'*)
11239 lt_cv_prog_gnu_ld=yes
11240 ;;
11241 *)
11242 lt_cv_prog_gnu_ld=no
11243 ;;
11244 esac
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11247 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11248 with_gnu_ld=$lt_cv_prog_gnu_ld
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11259 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11260 if ${lt_cv_path_NM+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 if test -n "$NM"; then
11264 # Let the user override the test.
11265 lt_cv_path_NM=$NM
11266 else
11267 lt_nm_to_check=${ac_tool_prefix}nm
11268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11269 lt_nm_to_check="$lt_nm_to_check nm"
11270 fi
11271 for lt_tmp_nm in $lt_nm_to_check; do
11272 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11274 IFS=$lt_save_ifs
11275 test -z "$ac_dir" && ac_dir=.
11276 tmp_nm=$ac_dir/$lt_tmp_nm
11277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11278 # Check to see if the nm accepts a BSD-compat flag.
11279 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11280 # nm: unknown option "B" ignored
11281 # Tru64's nm complains that /dev/null is an invalid object file
11282 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11283 case $build_os in
11284 mingw*) lt_bad_file=conftest.nm/nofile ;;
11285 *) lt_bad_file=/dev/null ;;
11286 esac
11287 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11288 *$lt_bad_file* | *'Invalid file or object type'*)
11289 lt_cv_path_NM="$tmp_nm -B"
11290 break 2
11291 ;;
11292 *)
11293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11294 */dev/null*)
11295 lt_cv_path_NM="$tmp_nm -p"
11296 break 2
11297 ;;
11298 *)
11299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11300 continue # so that we can try to find one that supports BSD flags
11301 ;;
11302 esac
11303 ;;
11304 esac
11305 fi
11306 done
11307 IFS=$lt_save_ifs
11308 done
11309 : ${lt_cv_path_NM=no}
11310 fi
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11313 $as_echo "$lt_cv_path_NM" >&6; }
11314 if test no != "$lt_cv_path_NM"; then
11315 NM=$lt_cv_path_NM
11316 else
11317 # Didn't find any BSD compatible name lister, look for dumpbin.
11318 if test -n "$DUMPBIN"; then :
11319 # Let the user override the test.
11320 else
11321 if test -n "$ac_tool_prefix"; then
11322 for ac_prog in dumpbin "link -dump"
11323 do
11324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_prog_DUMPBIN+:} false; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 if test -n "$DUMPBIN"; then
11332 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345 done
11346 done
11347 IFS=$as_save_IFS
11348
11349 fi
11350 fi
11351 DUMPBIN=$ac_cv_prog_DUMPBIN
11352 if test -n "$DUMPBIN"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11354 $as_echo "$DUMPBIN" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359
11360
11361 test -n "$DUMPBIN" && break
11362 done
11363 fi
11364 if test -z "$DUMPBIN"; then
11365 ac_ct_DUMPBIN=$DUMPBIN
11366 for ac_prog in dumpbin "link -dump"
11367 do
11368 # Extract the first word of "$ac_prog", so it can be a program name with args.
11369 set dummy $ac_prog; ac_word=$2
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371 $as_echo_n "checking for $ac_word... " >&6; }
11372 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 if test -n "$ac_ct_DUMPBIN"; then
11376 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11377 else
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11380 do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389 done
11390 done
11391 IFS=$as_save_IFS
11392
11393 fi
11394 fi
11395 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11396 if test -n "$ac_ct_DUMPBIN"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11398 $as_echo "$ac_ct_DUMPBIN" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403
11404
11405 test -n "$ac_ct_DUMPBIN" && break
11406 done
11407
11408 if test "x$ac_ct_DUMPBIN" = x; then
11409 DUMPBIN=":"
11410 else
11411 case $cross_compiling:$ac_tool_warned in
11412 yes:)
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11415 ac_tool_warned=yes ;;
11416 esac
11417 DUMPBIN=$ac_ct_DUMPBIN
11418 fi
11419 fi
11420
11421 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11422 *COFF*)
11423 DUMPBIN="$DUMPBIN -symbols -headers"
11424 ;;
11425 *)
11426 DUMPBIN=:
11427 ;;
11428 esac
11429 fi
11430
11431 if test : != "$DUMPBIN"; then
11432 NM=$DUMPBIN
11433 fi
11434 fi
11435 test -z "$NM" && NM=nm
11436
11437
11438
11439
11440
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11443 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11444 if ${lt_cv_nm_interface+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 lt_cv_nm_interface="BSD nm"
11448 echo "int some_variable = 0;" > conftest.$ac_ext
11449 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11450 (eval "$ac_compile" 2>conftest.err)
11451 cat conftest.err >&5
11452 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11453 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11454 cat conftest.err >&5
11455 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11456 cat conftest.out >&5
11457 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11458 lt_cv_nm_interface="MS dumpbin"
11459 fi
11460 rm -f conftest*
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11463 $as_echo "$lt_cv_nm_interface" >&6; }
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11466 $as_echo_n "checking whether ln -s works... " >&6; }
11467 LN_S=$as_ln_s
11468 if test "$LN_S" = "ln -s"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11473 $as_echo "no, using $LN_S" >&6; }
11474 fi
11475
11476 # find the maximum length of command line arguments
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11478 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11479 if ${lt_cv_sys_max_cmd_len+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 i=0
11483 teststring=ABCD
11484
11485 case $build_os in
11486 msdosdjgpp*)
11487 # On DJGPP, this test can blow up pretty badly due to problems in libc
11488 # (any single argument exceeding 2000 bytes causes a buffer overrun
11489 # during glob expansion). Even if it were fixed, the result of this
11490 # check would be larger than it should be.
11491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11492 ;;
11493
11494 gnu*)
11495 # Under GNU Hurd, this test is not required because there is
11496 # no limit to the length of command line arguments.
11497 # Libtool will interpret -1 as no limit whatsoever
11498 lt_cv_sys_max_cmd_len=-1;
11499 ;;
11500
11501 cygwin* | mingw* | cegcc*)
11502 # On Win9x/ME, this test blows up -- it succeeds, but takes
11503 # about 5 minutes as the teststring grows exponentially.
11504 # Worse, since 9x/ME are not pre-emptively multitasking,
11505 # you end up with a "frozen" computer, even though with patience
11506 # the test eventually succeeds (with a max line length of 256k).
11507 # Instead, let's just punt: use the minimum linelength reported by
11508 # all of the supported platforms: 8192 (on NT/2K/XP).
11509 lt_cv_sys_max_cmd_len=8192;
11510 ;;
11511
11512 mint*)
11513 # On MiNT this can take a long time and run out of memory.
11514 lt_cv_sys_max_cmd_len=8192;
11515 ;;
11516
11517 amigaos*)
11518 # On AmigaOS with pdksh, this test takes hours, literally.
11519 # So we just punt and use a minimum line length of 8192.
11520 lt_cv_sys_max_cmd_len=8192;
11521 ;;
11522
11523 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11524 # This has been around since 386BSD, at least. Likely further.
11525 if test -x /sbin/sysctl; then
11526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11527 elif test -x /usr/sbin/sysctl; then
11528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11529 else
11530 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11531 fi
11532 # And add a safety zone
11533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11535 ;;
11536
11537 interix*)
11538 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11539 lt_cv_sys_max_cmd_len=196608
11540 ;;
11541
11542 os2*)
11543 # The test takes a long time on OS/2.
11544 lt_cv_sys_max_cmd_len=8192
11545 ;;
11546
11547 osf*)
11548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11550 # nice to cause kernel panics so lets avoid the loop below.
11551 # First set a reasonable default.
11552 lt_cv_sys_max_cmd_len=16384
11553 #
11554 if test -x /sbin/sysconfig; then
11555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11557 esac
11558 fi
11559 ;;
11560 sco3.2v5*)
11561 lt_cv_sys_max_cmd_len=102400
11562 ;;
11563 sysv5* | sco5v6* | sysv4.2uw2*)
11564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11565 if test -n "$kargmax"; then
11566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11567 else
11568 lt_cv_sys_max_cmd_len=32768
11569 fi
11570 ;;
11571 *)
11572 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11573 if test -n "$lt_cv_sys_max_cmd_len" && \
11574 test undefined != "$lt_cv_sys_max_cmd_len"; then
11575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11577 else
11578 # Make teststring a little bigger before we do anything with it.
11579 # a 1K string should be a reasonable start.
11580 for i in 1 2 3 4 5 6 7 8; do
11581 teststring=$teststring$teststring
11582 done
11583 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11584 # If test is not a shell built-in, we'll probably end up computing a
11585 # maximum length that is only half of the actual maximum length, but
11586 # we can't tell.
11587 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11588 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11589 test 17 != "$i" # 1/2 MB should be enough
11590 do
11591 i=`expr $i + 1`
11592 teststring=$teststring$teststring
11593 done
11594 # Only check the string length outside the loop.
11595 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11596 teststring=
11597 # Add a significant safety factor because C++ compilers can tack on
11598 # massive amounts of additional arguments before passing them to the
11599 # linker. It appears as though 1/2 is a usable value.
11600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11601 fi
11602 ;;
11603 esac
11604
11605 fi
11606
11607 if test -n "$lt_cv_sys_max_cmd_len"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11609 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11612 $as_echo "none" >&6; }
11613 fi
11614 max_cmd_len=$lt_cv_sys_max_cmd_len
11615
11616
11617
11618
11619
11620
11621 : ${CP="cp -f"}
11622 : ${MV="mv -f"}
11623 : ${RM="rm -f"}
11624
11625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11626 lt_unset=unset
11627 else
11628 lt_unset=false
11629 fi
11630
11631
11632
11633
11634
11635 # test EBCDIC or ASCII
11636 case `echo X|tr X '\101'` in
11637 A) # ASCII based system
11638 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11639 lt_SP2NL='tr \040 \012'
11640 lt_NL2SP='tr \015\012 \040\040'
11641 ;;
11642 *) # EBCDIC based system
11643 lt_SP2NL='tr \100 \n'
11644 lt_NL2SP='tr \r\n \100\100'
11645 ;;
11646 esac
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11657 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11658 if ${lt_cv_to_host_file_cmd+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 case $host in
11662 *-*-mingw* )
11663 case $build in
11664 *-*-mingw* ) # actually msys
11665 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11666 ;;
11667 *-*-cygwin* )
11668 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11669 ;;
11670 * ) # otherwise, assume *nix
11671 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11672 ;;
11673 esac
11674 ;;
11675 *-*-cygwin* )
11676 case $build in
11677 *-*-mingw* ) # actually msys
11678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11679 ;;
11680 *-*-cygwin* )
11681 lt_cv_to_host_file_cmd=func_convert_file_noop
11682 ;;
11683 * ) # otherwise, assume *nix
11684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11685 ;;
11686 esac
11687 ;;
11688 * ) # unhandled hosts (and "normal" native builds)
11689 lt_cv_to_host_file_cmd=func_convert_file_noop
11690 ;;
11691 esac
11692
11693 fi
11694
11695 to_host_file_cmd=$lt_cv_to_host_file_cmd
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11697 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11698
11699
11700
11701
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11704 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11705 if ${lt_cv_to_tool_file_cmd+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 #assume ordinary cross tools, or native build.
11709 lt_cv_to_tool_file_cmd=func_convert_file_noop
11710 case $host in
11711 *-*-mingw* )
11712 case $build in
11713 *-*-mingw* ) # actually msys
11714 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11715 ;;
11716 esac
11717 ;;
11718 esac
11719
11720 fi
11721
11722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11724 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11725
11726
11727
11728
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11731 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11732 if ${lt_cv_ld_reload_flag+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 lt_cv_ld_reload_flag='-r'
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11738 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11739 reload_flag=$lt_cv_ld_reload_flag
11740 case $reload_flag in
11741 "" | " "*) ;;
11742 *) reload_flag=" $reload_flag" ;;
11743 esac
11744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11745 case $host_os in
11746 cygwin* | mingw* | pw32* | cegcc*)
11747 if test yes != "$GCC"; then
11748 reload_cmds=false
11749 fi
11750 ;;
11751 darwin*)
11752 if test yes = "$GCC"; then
11753 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11754 else
11755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11756 fi
11757 ;;
11758 esac
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768 if test -n "$ac_tool_prefix"; then
11769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_prog_OBJDUMP+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 if test -n "$OBJDUMP"; then
11777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11778 else
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11781 do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11789 fi
11790 done
11791 done
11792 IFS=$as_save_IFS
11793
11794 fi
11795 fi
11796 OBJDUMP=$ac_cv_prog_OBJDUMP
11797 if test -n "$OBJDUMP"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11799 $as_echo "$OBJDUMP" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 fi
11804
11805
11806 fi
11807 if test -z "$ac_cv_prog_OBJDUMP"; then
11808 ac_ct_OBJDUMP=$OBJDUMP
11809 # Extract the first word of "objdump", so it can be a program name with args.
11810 set dummy objdump; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$ac_ct_OBJDUMP"; then
11817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 fi
11835 fi
11836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11837 if test -n "$ac_ct_OBJDUMP"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11839 $as_echo "$ac_ct_OBJDUMP" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844
11845 if test "x$ac_ct_OBJDUMP" = x; then
11846 OBJDUMP="false"
11847 else
11848 case $cross_compiling:$ac_tool_warned in
11849 yes:)
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11852 ac_tool_warned=yes ;;
11853 esac
11854 OBJDUMP=$ac_ct_OBJDUMP
11855 fi
11856 else
11857 OBJDUMP="$ac_cv_prog_OBJDUMP"
11858 fi
11859
11860 test -z "$OBJDUMP" && OBJDUMP=objdump
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11872 if ${lt_cv_deplibs_check_method+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 lt_cv_file_magic_cmd='$MAGIC_CMD'
11876 lt_cv_file_magic_test_file=
11877 lt_cv_deplibs_check_method='unknown'
11878 # Need to set the preceding variable on all platforms that support
11879 # interlibrary dependencies.
11880 # 'none' -- dependencies not supported.
11881 # 'unknown' -- same as none, but documents that we really don't know.
11882 # 'pass_all' -- all dependencies passed with no checks.
11883 # 'test_compile' -- check by making test program.
11884 # 'file_magic [[regex]]' -- check by looking for files in library path
11885 # that responds to the $file_magic_cmd with a given extended regex.
11886 # If you have 'file' or equivalent on your system and you're not sure
11887 # whether 'pass_all' will *always* work, you probably want this one.
11888
11889 case $host_os in
11890 aix[4-9]*)
11891 lt_cv_deplibs_check_method=pass_all
11892 ;;
11893
11894 beos*)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897
11898 bsdi[45]*)
11899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11900 lt_cv_file_magic_cmd='/usr/bin/file -L'
11901 lt_cv_file_magic_test_file=/shlib/libc.so
11902 ;;
11903
11904 cygwin*)
11905 # func_win32_libid is a shell function defined in ltmain.sh
11906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11907 lt_cv_file_magic_cmd='func_win32_libid'
11908 ;;
11909
11910 mingw* | pw32*)
11911 # Base MSYS/MinGW do not provide the 'file' command needed by
11912 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11913 # unless we find 'file', for example because we are cross-compiling.
11914 if ( file / ) >/dev/null 2>&1; then
11915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11916 lt_cv_file_magic_cmd='func_win32_libid'
11917 else
11918 # Keep this pattern in sync with the one in func_win32_libid.
11919 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11920 lt_cv_file_magic_cmd='$OBJDUMP -f'
11921 fi
11922 ;;
11923
11924 cegcc*)
11925 # use the weaker test based on 'objdump'. See mingw*.
11926 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11927 lt_cv_file_magic_cmd='$OBJDUMP -f'
11928 ;;
11929
11930 darwin* | rhapsody*)
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933
11934 freebsd* | dragonfly*)
11935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11936 case $host_cpu in
11937 i*86 )
11938 # Not sure whether the presence of OpenBSD here was a mistake.
11939 # Let's accept both of them until this is cleared up.
11940 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11941 lt_cv_file_magic_cmd=/usr/bin/file
11942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11943 ;;
11944 esac
11945 else
11946 lt_cv_deplibs_check_method=pass_all
11947 fi
11948 ;;
11949
11950 haiku*)
11951 lt_cv_deplibs_check_method=pass_all
11952 ;;
11953
11954 hpux10.20* | hpux11*)
11955 lt_cv_file_magic_cmd=/usr/bin/file
11956 case $host_cpu in
11957 ia64*)
11958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11959 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11960 ;;
11961 hppa*64*)
11962 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]'
11963 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11964 ;;
11965 *)
11966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11967 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11968 ;;
11969 esac
11970 ;;
11971
11972 interix[3-9]*)
11973 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11975 ;;
11976
11977 irix5* | irix6* | nonstopux*)
11978 case $LD in
11979 *-32|*"-32 ") libmagic=32-bit;;
11980 *-n32|*"-n32 ") libmagic=N32;;
11981 *-64|*"-64 ") libmagic=64-bit;;
11982 *) libmagic=never-match;;
11983 esac
11984 lt_cv_deplibs_check_method=pass_all
11985 ;;
11986
11987 # This must be glibc/ELF.
11988 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11989 lt_cv_deplibs_check_method=pass_all
11990 ;;
11991
11992 netbsd* | netbsdelf*-gnu)
11993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11995 else
11996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11997 fi
11998 ;;
11999
12000 newos6*)
12001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12002 lt_cv_file_magic_cmd=/usr/bin/file
12003 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12004 ;;
12005
12006 *nto* | *qnx*)
12007 lt_cv_deplibs_check_method=pass_all
12008 ;;
12009
12010 openbsd* | bitrig*)
12011 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12013 else
12014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12015 fi
12016 ;;
12017
12018 osf3* | osf4* | osf5*)
12019 lt_cv_deplibs_check_method=pass_all
12020 ;;
12021
12022 rdos*)
12023 lt_cv_deplibs_check_method=pass_all
12024 ;;
12025
12026 solaris*)
12027 lt_cv_deplibs_check_method=pass_all
12028 ;;
12029
12030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12031 lt_cv_deplibs_check_method=pass_all
12032 ;;
12033
12034 sysv4 | sysv4.3*)
12035 case $host_vendor in
12036 motorola)
12037 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]'
12038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12039 ;;
12040 ncr)
12041 lt_cv_deplibs_check_method=pass_all
12042 ;;
12043 sequent)
12044 lt_cv_file_magic_cmd='/bin/file'
12045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12046 ;;
12047 sni)
12048 lt_cv_file_magic_cmd='/bin/file'
12049 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12050 lt_cv_file_magic_test_file=/lib/libc.so
12051 ;;
12052 siemens)
12053 lt_cv_deplibs_check_method=pass_all
12054 ;;
12055 pc)
12056 lt_cv_deplibs_check_method=pass_all
12057 ;;
12058 esac
12059 ;;
12060
12061 tpf*)
12062 lt_cv_deplibs_check_method=pass_all
12063 ;;
12064 os2*)
12065 lt_cv_deplibs_check_method=pass_all
12066 ;;
12067 esac
12068
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12071 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12072
12073 file_magic_glob=
12074 want_nocaseglob=no
12075 if test "$build" = "$host"; then
12076 case $host_os in
12077 mingw* | pw32*)
12078 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12079 want_nocaseglob=yes
12080 else
12081 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12082 fi
12083 ;;
12084 esac
12085 fi
12086
12087 file_magic_cmd=$lt_cv_file_magic_cmd
12088 deplibs_check_method=$lt_cv_deplibs_check_method
12089 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112 if test -n "$ac_tool_prefix"; then
12113 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12114 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_prog_DLLTOOL+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 if test -n "$DLLTOOL"; then
12121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12122 else
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12125 do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134 done
12135 done
12136 IFS=$as_save_IFS
12137
12138 fi
12139 fi
12140 DLLTOOL=$ac_cv_prog_DLLTOOL
12141 if test -n "$DLLTOOL"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12143 $as_echo "$DLLTOOL" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148
12149
12150 fi
12151 if test -z "$ac_cv_prog_DLLTOOL"; then
12152 ac_ct_DLLTOOL=$DLLTOOL
12153 # Extract the first word of "dlltool", so it can be a program name with args.
12154 set dummy dlltool; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 if test -n "$ac_ct_DLLTOOL"; then
12161 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12162 else
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12165 do
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 break 2
12173 fi
12174 done
12175 done
12176 IFS=$as_save_IFS
12177
12178 fi
12179 fi
12180 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12181 if test -n "$ac_ct_DLLTOOL"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12183 $as_echo "$ac_ct_DLLTOOL" >&6; }
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188
12189 if test "x$ac_ct_DLLTOOL" = x; then
12190 DLLTOOL="false"
12191 else
12192 case $cross_compiling:$ac_tool_warned in
12193 yes:)
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12196 ac_tool_warned=yes ;;
12197 esac
12198 DLLTOOL=$ac_ct_DLLTOOL
12199 fi
12200 else
12201 DLLTOOL="$ac_cv_prog_DLLTOOL"
12202 fi
12203
12204 test -z "$DLLTOOL" && DLLTOOL=dlltool
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12216 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12217 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 lt_cv_sharedlib_from_linklib_cmd='unknown'
12221
12222 case $host_os in
12223 cygwin* | mingw* | pw32* | cegcc*)
12224 # two different shell functions defined in ltmain.sh;
12225 # decide which one to use based on capabilities of $DLLTOOL
12226 case `$DLLTOOL --help 2>&1` in
12227 *--identify-strict*)
12228 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12229 ;;
12230 *)
12231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12232 ;;
12233 esac
12234 ;;
12235 *)
12236 # fallback: assume linklib IS sharedlib
12237 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12238 ;;
12239 esac
12240
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12243 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12244 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12245 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12246
12247
12248
12249
12250
12251
12252
12253 if test -n "$ac_tool_prefix"; then
12254 for ac_prog in ar
12255 do
12256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if ${ac_cv_prog_AR+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test -n "$AR"; then
12264 ac_cv_prog_AR="$AR" # Let the user override the test.
12265 else
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277 done
12278 done
12279 IFS=$as_save_IFS
12280
12281 fi
12282 fi
12283 AR=$ac_cv_prog_AR
12284 if test -n "$AR"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12286 $as_echo "$AR" >&6; }
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290 fi
12291
12292
12293 test -n "$AR" && break
12294 done
12295 fi
12296 if test -z "$AR"; then
12297 ac_ct_AR=$AR
12298 for ac_prog in ar
12299 do
12300 # Extract the first word of "$ac_prog", so it can be a program name with args.
12301 set dummy $ac_prog; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 if test -n "$ac_ct_AR"; then
12308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12309 else
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12312 do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_prog_ac_ct_AR="$ac_prog"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321 done
12322 done
12323 IFS=$as_save_IFS
12324
12325 fi
12326 fi
12327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12328 if test -n "$ac_ct_AR"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12330 $as_echo "$ac_ct_AR" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335
12336
12337 test -n "$ac_ct_AR" && break
12338 done
12339
12340 if test "x$ac_ct_AR" = x; then
12341 AR="false"
12342 else
12343 case $cross_compiling:$ac_tool_warned in
12344 yes:)
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12347 ac_tool_warned=yes ;;
12348 esac
12349 AR=$ac_ct_AR
12350 fi
12351 fi
12352
12353 : ${AR=ar}
12354 : ${AR_FLAGS=cru}
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12367 $as_echo_n "checking for archiver @FILE support... " >&6; }
12368 if ${lt_cv_ar_at_file+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 lt_cv_ar_at_file=no
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374
12375 int
12376 main ()
12377 {
12378
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 echo conftest.$ac_objext > conftest.lst
12385 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12387 (eval $lt_ar_try) 2>&5
12388 ac_status=$?
12389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12390 test $ac_status = 0; }
12391 if test 0 -eq "$ac_status"; then
12392 # Ensure the archiver fails upon bogus file names.
12393 rm -f conftest.$ac_objext libconftest.a
12394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12395 (eval $lt_ar_try) 2>&5
12396 ac_status=$?
12397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398 test $ac_status = 0; }
12399 if test 0 -ne "$ac_status"; then
12400 lt_cv_ar_at_file=@
12401 fi
12402 fi
12403 rm -f conftest.* libconftest.a
12404
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12410 $as_echo "$lt_cv_ar_at_file" >&6; }
12411
12412 if test no = "$lt_cv_ar_at_file"; then
12413 archiver_list_spec=
12414 else
12415 archiver_list_spec=$lt_cv_ar_at_file
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424 if test -n "$ac_tool_prefix"; then
12425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12426 set dummy ${ac_tool_prefix}strip; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_prog_STRIP+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test -n "$STRIP"; then
12433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12437 do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12445 fi
12446 done
12447 done
12448 IFS=$as_save_IFS
12449
12450 fi
12451 fi
12452 STRIP=$ac_cv_prog_STRIP
12453 if test -n "$STRIP"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12455 $as_echo "$STRIP" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462 fi
12463 if test -z "$ac_cv_prog_STRIP"; then
12464 ac_ct_STRIP=$STRIP
12465 # Extract the first word of "strip", so it can be a program name with args.
12466 set dummy strip; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$ac_ct_STRIP"; then
12473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12477 do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12482 ac_cv_prog_ac_ct_STRIP="strip"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12485 fi
12486 done
12487 done
12488 IFS=$as_save_IFS
12489
12490 fi
12491 fi
12492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12493 if test -n "$ac_ct_STRIP"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12495 $as_echo "$ac_ct_STRIP" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 fi
12500
12501 if test "x$ac_ct_STRIP" = x; then
12502 STRIP=":"
12503 else
12504 case $cross_compiling:$ac_tool_warned in
12505 yes:)
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12508 ac_tool_warned=yes ;;
12509 esac
12510 STRIP=$ac_ct_STRIP
12511 fi
12512 else
12513 STRIP="$ac_cv_prog_STRIP"
12514 fi
12515
12516 test -z "$STRIP" && STRIP=:
12517
12518
12519
12520
12521
12522
12523 if test -n "$ac_tool_prefix"; then
12524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if ${ac_cv_prog_RANLIB+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 if test -n "$RANLIB"; then
12532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12533 else
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12544 fi
12545 done
12546 done
12547 IFS=$as_save_IFS
12548
12549 fi
12550 fi
12551 RANLIB=$ac_cv_prog_RANLIB
12552 if test -n "$RANLIB"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12554 $as_echo "$RANLIB" >&6; }
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 fi
12559
12560
12561 fi
12562 if test -z "$ac_cv_prog_RANLIB"; then
12563 ac_ct_RANLIB=$RANLIB
12564 # Extract the first word of "ranlib", so it can be a program name with args.
12565 set dummy ranlib; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if test -n "$ac_ct_RANLIB"; then
12572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12573 else
12574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $PATH
12576 do
12577 IFS=$as_save_IFS
12578 test -z "$as_dir" && as_dir=.
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12581 ac_cv_prog_ac_ct_RANLIB="ranlib"
12582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583 break 2
12584 fi
12585 done
12586 done
12587 IFS=$as_save_IFS
12588
12589 fi
12590 fi
12591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12592 if test -n "$ac_ct_RANLIB"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12594 $as_echo "$ac_ct_RANLIB" >&6; }
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 fi
12599
12600 if test "x$ac_ct_RANLIB" = x; then
12601 RANLIB=":"
12602 else
12603 case $cross_compiling:$ac_tool_warned in
12604 yes:)
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12607 ac_tool_warned=yes ;;
12608 esac
12609 RANLIB=$ac_ct_RANLIB
12610 fi
12611 else
12612 RANLIB="$ac_cv_prog_RANLIB"
12613 fi
12614
12615 test -z "$RANLIB" && RANLIB=:
12616
12617
12618
12619
12620
12621
12622 # Determine commands to create old-style static archives.
12623 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12624 old_postinstall_cmds='chmod 644 $oldlib'
12625 old_postuninstall_cmds=
12626
12627 if test -n "$RANLIB"; then
12628 case $host_os in
12629 bitrig* | openbsd*)
12630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12631 ;;
12632 *)
12633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12634 ;;
12635 esac
12636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12637 fi
12638
12639 case $host_os in
12640 darwin*)
12641 lock_old_archive_extraction=yes ;;
12642 *)
12643 lock_old_archive_extraction=no ;;
12644 esac
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684 # If no C compiler was specified, use CC.
12685 LTCC=${LTCC-"$CC"}
12686
12687 # If no C compiler flags were specified, use CFLAGS.
12688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12689
12690 # Allow CC to be a program name with arguments.
12691 compiler=$CC
12692
12693
12694 # Check for command to grab the raw symbol name followed by C symbol from nm.
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12696 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12697 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700
12701 # These are sane defaults that work on at least a few old systems.
12702 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12703
12704 # Character class describing NM global symbol codes.
12705 symcode='[BCDEGRST]'
12706
12707 # Regexp to match symbols that can be accessed directly from C.
12708 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12709
12710 # Define system-specific variables.
12711 case $host_os in
12712 aix*)
12713 symcode='[BCDT]'
12714 ;;
12715 cygwin* | mingw* | pw32* | cegcc*)
12716 symcode='[ABCDGISTW]'
12717 ;;
12718 hpux*)
12719 if test ia64 = "$host_cpu"; then
12720 symcode='[ABCDEGRST]'
12721 fi
12722 ;;
12723 irix* | nonstopux*)
12724 symcode='[BCDEGRST]'
12725 ;;
12726 osf*)
12727 symcode='[BCDEGQRST]'
12728 ;;
12729 solaris*)
12730 symcode='[BDRT]'
12731 ;;
12732 sco3.2v5*)
12733 symcode='[DT]'
12734 ;;
12735 sysv4.2uw2*)
12736 symcode='[DT]'
12737 ;;
12738 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12739 symcode='[ABDT]'
12740 ;;
12741 sysv4)
12742 symcode='[DFNSTU]'
12743 ;;
12744 esac
12745
12746 # If we're using GNU nm, then use its standard symbol codes.
12747 case `$NM -V 2>&1` in
12748 *GNU* | *'with BFD'*)
12749 symcode='[ABCDGIRSTW]' ;;
12750 esac
12751
12752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12753 # Gets list of data symbols to import.
12754 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12755 # Adjust the below global symbol transforms to fixup imported variables.
12756 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12757 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12758 lt_c_name_lib_hook="\
12759 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12760 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12761 else
12762 # Disable hooks by default.
12763 lt_cv_sys_global_symbol_to_import=
12764 lt_cdecl_hook=
12765 lt_c_name_hook=
12766 lt_c_name_lib_hook=
12767 fi
12768
12769 # Transform an extracted symbol line into a proper C declaration.
12770 # Some systems (esp. on ia64) link data and code symbols differently,
12771 # so use this general approach.
12772 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12773 $lt_cdecl_hook\
12774 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12775 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12776
12777 # Transform an extracted symbol line into symbol name and symbol address
12778 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12779 $lt_c_name_hook\
12780 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12781 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12782
12783 # Transform an extracted symbol line into symbol name with lib prefix and
12784 # symbol address.
12785 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12786 $lt_c_name_lib_hook\
12787 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12788 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12789 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12790
12791 # Handle CRLF in mingw tool chain
12792 opt_cr=
12793 case $build_os in
12794 mingw*)
12795 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12796 ;;
12797 esac
12798
12799 # Try without a prefix underscore, then with it.
12800 for ac_symprfx in "" "_"; do
12801
12802 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12803 symxfrm="\\1 $ac_symprfx\\2 \\2"
12804
12805 # Write the raw and C identifiers.
12806 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12807 # Fake it for dumpbin and say T for any non-static function,
12808 # D for any global variable and I for any imported variable.
12809 # Also find C++ and __fastcall symbols from MSVC++,
12810 # which start with @ or ?.
12811 lt_cv_sys_global_symbol_pipe="$AWK '"\
12812 " {last_section=section; section=\$ 3};"\
12813 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12814 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12815 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12816 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12817 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12818 " \$ 0!~/External *\|/{next};"\
12819 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12820 " {if(hide[section]) next};"\
12821 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12822 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12823 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12824 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12825 " ' prfx=^$ac_symprfx"
12826 else
12827 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12828 fi
12829 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12830
12831 # Check to see that the pipe works correctly.
12832 pipe_works=no
12833
12834 rm -f conftest*
12835 cat > conftest.$ac_ext <<_LT_EOF
12836 #ifdef __cplusplus
12837 extern "C" {
12838 #endif
12839 char nm_test_var;
12840 void nm_test_func(void);
12841 void nm_test_func(void){}
12842 #ifdef __cplusplus
12843 }
12844 #endif
12845 int main(){nm_test_var='a';nm_test_func();return(0);}
12846 _LT_EOF
12847
12848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12849 (eval $ac_compile) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852 test $ac_status = 0; }; then
12853 # Now try to grab the symbols.
12854 nlist=conftest.nm
12855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12856 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12857 ac_status=$?
12858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12859 test $ac_status = 0; } && test -s "$nlist"; then
12860 # Try sorting and uniquifying the output.
12861 if sort "$nlist" | uniq > "$nlist"T; then
12862 mv -f "$nlist"T "$nlist"
12863 else
12864 rm -f "$nlist"T
12865 fi
12866
12867 # Make sure that we snagged all the symbols we need.
12868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12870 cat <<_LT_EOF > conftest.$ac_ext
12871 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12872 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12873 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12874 relocations are performed -- see ld's documentation on pseudo-relocs. */
12875 # define LT_DLSYM_CONST
12876 #elif defined __osf__
12877 /* This system does not cope well with relocations in const data. */
12878 # define LT_DLSYM_CONST
12879 #else
12880 # define LT_DLSYM_CONST const
12881 #endif
12882
12883 #ifdef __cplusplus
12884 extern "C" {
12885 #endif
12886
12887 _LT_EOF
12888 # Now generate the symbol file.
12889 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12890
12891 cat <<_LT_EOF >> conftest.$ac_ext
12892
12893 /* The mapping between symbol names and symbols. */
12894 LT_DLSYM_CONST struct {
12895 const char *name;
12896 void *address;
12897 }
12898 lt__PROGRAM__LTX_preloaded_symbols[] =
12899 {
12900 { "@PROGRAM@", (void *) 0 },
12901 _LT_EOF
12902 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12903 cat <<\_LT_EOF >> conftest.$ac_ext
12904 {0, (void *) 0}
12905 };
12906
12907 /* This works around a problem in FreeBSD linker */
12908 #ifdef FREEBSD_WORKAROUND
12909 static const void *lt_preloaded_setup() {
12910 return lt__PROGRAM__LTX_preloaded_symbols;
12911 }
12912 #endif
12913
12914 #ifdef __cplusplus
12915 }
12916 #endif
12917 _LT_EOF
12918 # Now try linking the two files.
12919 mv conftest.$ac_objext conftstm.$ac_objext
12920 lt_globsym_save_LIBS=$LIBS
12921 lt_globsym_save_CFLAGS=$CFLAGS
12922 LIBS=conftstm.$ac_objext
12923 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12925 (eval $ac_link) 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12929 pipe_works=yes
12930 fi
12931 LIBS=$lt_globsym_save_LIBS
12932 CFLAGS=$lt_globsym_save_CFLAGS
12933 else
12934 echo "cannot find nm_test_func in $nlist" >&5
12935 fi
12936 else
12937 echo "cannot find nm_test_var in $nlist" >&5
12938 fi
12939 else
12940 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12941 fi
12942 else
12943 echo "$progname: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 fi
12946 rm -rf conftest* conftst*
12947
12948 # Do not use the global_symbol_pipe unless it works.
12949 if test yes = "$pipe_works"; then
12950 break
12951 else
12952 lt_cv_sys_global_symbol_pipe=
12953 fi
12954 done
12955
12956 fi
12957
12958 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12959 lt_cv_sys_global_symbol_to_cdecl=
12960 fi
12961 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12963 $as_echo "failed" >&6; }
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12966 $as_echo "ok" >&6; }
12967 fi
12968
12969 # Response file support.
12970 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12971 nm_file_list_spec='@'
12972 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12973 nm_file_list_spec='@'
12974 fi
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13013 $as_echo_n "checking for sysroot... " >&6; }
13014
13015 # Check whether --with-sysroot was given.
13016 if test "${with_sysroot+set}" = set; then :
13017 withval=$with_sysroot;
13018 else
13019 with_sysroot=no
13020 fi
13021
13022
13023 lt_sysroot=
13024 case $with_sysroot in #(
13025 yes)
13026 if test yes = "$GCC"; then
13027 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13028 fi
13029 ;; #(
13030 /*)
13031 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13032 ;; #(
13033 no|'')
13034 ;; #(
13035 *)
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13037 $as_echo "$with_sysroot" >&6; }
13038 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13039 ;;
13040 esac
13041
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13043 $as_echo "${lt_sysroot:-no}" >&6; }
13044
13045
13046
13047
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13050 $as_echo_n "checking for a working dd... " >&6; }
13051 if ${ac_cv_path_lt_DD+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 printf 0123456789abcdef0123456789abcdef >conftest.i
13055 cat conftest.i conftest.i >conftest2.i
13056 : ${lt_DD:=$DD}
13057 if test -z "$lt_DD"; then
13058 ac_path_lt_DD_found=false
13059 # Loop through the user's path and test for each of PROGNAME-LIST
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
13065 for ac_prog in dd; do
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13068 as_fn_executable_p "$ac_path_lt_DD" || continue
13069 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13070 cmp -s conftest.i conftest.out \
13071 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13072 fi
13073 $ac_path_lt_DD_found && break 3
13074 done
13075 done
13076 done
13077 IFS=$as_save_IFS
13078 if test -z "$ac_cv_path_lt_DD"; then
13079 :
13080 fi
13081 else
13082 ac_cv_path_lt_DD=$lt_DD
13083 fi
13084
13085 rm -f conftest.i conftest2.i conftest.out
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13088 $as_echo "$ac_cv_path_lt_DD" >&6; }
13089
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13092 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13093 if ${lt_cv_truncate_bin+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 printf 0123456789abcdef0123456789abcdef >conftest.i
13097 cat conftest.i conftest.i >conftest2.i
13098 lt_cv_truncate_bin=
13099 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13100 cmp -s conftest.i conftest.out \
13101 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13102 fi
13103 rm -f conftest.i conftest2.i conftest.out
13104 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13105 fi
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13107 $as_echo "$lt_cv_truncate_bin" >&6; }
13108
13109
13110
13111
13112
13113
13114
13115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13116 func_cc_basename ()
13117 {
13118 for cc_temp in $*""; do
13119 case $cc_temp in
13120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13122 \-*) ;;
13123 *) break;;
13124 esac
13125 done
13126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13127 }
13128
13129 # Check whether --enable-libtool-lock was given.
13130 if test "${enable_libtool_lock+set}" = set; then :
13131 enableval=$enable_libtool_lock;
13132 fi
13133
13134 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13135
13136 # Some flags need to be propagated to the compiler or linker for good
13137 # libtool support.
13138 case $host in
13139 ia64-*-hpux*)
13140 # Find out what ABI is being produced by ac_compile, and set mode
13141 # options accordingly.
13142 echo 'int i;' > conftest.$ac_ext
13143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13144 (eval $ac_compile) 2>&5
13145 ac_status=$?
13146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13147 test $ac_status = 0; }; then
13148 case `/usr/bin/file conftest.$ac_objext` in
13149 *ELF-32*)
13150 HPUX_IA64_MODE=32
13151 ;;
13152 *ELF-64*)
13153 HPUX_IA64_MODE=64
13154 ;;
13155 esac
13156 fi
13157 rm -rf conftest*
13158 ;;
13159 *-*-irix6*)
13160 # Find out what ABI is being produced by ac_compile, and set linker
13161 # options accordingly.
13162 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; }; then
13168 if test yes = "$lt_cv_prog_gnu_ld"; then
13169 case `/usr/bin/file conftest.$ac_objext` in
13170 *32-bit*)
13171 LD="${LD-ld} -melf32bsmip"
13172 ;;
13173 *N32*)
13174 LD="${LD-ld} -melf32bmipn32"
13175 ;;
13176 *64-bit*)
13177 LD="${LD-ld} -melf64bmip"
13178 ;;
13179 esac
13180 else
13181 case `/usr/bin/file conftest.$ac_objext` in
13182 *32-bit*)
13183 LD="${LD-ld} -32"
13184 ;;
13185 *N32*)
13186 LD="${LD-ld} -n32"
13187 ;;
13188 *64-bit*)
13189 LD="${LD-ld} -64"
13190 ;;
13191 esac
13192 fi
13193 fi
13194 rm -rf conftest*
13195 ;;
13196
13197 mips64*-*linux*)
13198 # Find out what ABI is being produced by ac_compile, and set linker
13199 # options accordingly.
13200 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13202 (eval $ac_compile) 2>&5
13203 ac_status=$?
13204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13205 test $ac_status = 0; }; then
13206 emul=elf
13207 case `/usr/bin/file conftest.$ac_objext` in
13208 *32-bit*)
13209 emul="${emul}32"
13210 ;;
13211 *64-bit*)
13212 emul="${emul}64"
13213 ;;
13214 esac
13215 case `/usr/bin/file conftest.$ac_objext` in
13216 *MSB*)
13217 emul="${emul}btsmip"
13218 ;;
13219 *LSB*)
13220 emul="${emul}ltsmip"
13221 ;;
13222 esac
13223 case `/usr/bin/file conftest.$ac_objext` in
13224 *N32*)
13225 emul="${emul}n32"
13226 ;;
13227 esac
13228 LD="${LD-ld} -m $emul"
13229 fi
13230 rm -rf conftest*
13231 ;;
13232
13233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13235 # Find out what ABI is being produced by ac_compile, and set linker
13236 # options accordingly. Note that the listed cases only cover the
13237 # situations where additional linker options are needed (such as when
13238 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13239 # vice versa); the common cases where no linker options are needed do
13240 # not appear in the list.
13241 echo 'int i;' > conftest.$ac_ext
13242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13243 (eval $ac_compile) 2>&5
13244 ac_status=$?
13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246 test $ac_status = 0; }; then
13247 case `/usr/bin/file conftest.o` in
13248 *32-bit*)
13249 case $host in
13250 x86_64-*kfreebsd*-gnu)
13251 LD="${LD-ld} -m elf_i386_fbsd"
13252 ;;
13253 x86_64-*linux*)
13254 case `/usr/bin/file conftest.o` in
13255 *x86-64*)
13256 LD="${LD-ld} -m elf32_x86_64"
13257 ;;
13258 *)
13259 LD="${LD-ld} -m elf_i386"
13260 ;;
13261 esac
13262 ;;
13263 powerpc64le-*linux*)
13264 LD="${LD-ld} -m elf32lppclinux"
13265 ;;
13266 powerpc64-*linux*)
13267 LD="${LD-ld} -m elf32ppclinux"
13268 ;;
13269 s390x-*linux*)
13270 LD="${LD-ld} -m elf_s390"
13271 ;;
13272 sparc64-*linux*)
13273 LD="${LD-ld} -m elf32_sparc"
13274 ;;
13275 esac
13276 ;;
13277 *64-bit*)
13278 case $host in
13279 x86_64-*kfreebsd*-gnu)
13280 LD="${LD-ld} -m elf_x86_64_fbsd"
13281 ;;
13282 x86_64-*linux*)
13283 LD="${LD-ld} -m elf_x86_64"
13284 ;;
13285 powerpcle-*linux*)
13286 LD="${LD-ld} -m elf64lppc"
13287 ;;
13288 powerpc-*linux*)
13289 LD="${LD-ld} -m elf64ppc"
13290 ;;
13291 s390*-*linux*|s390*-*tpf*)
13292 LD="${LD-ld} -m elf64_s390"
13293 ;;
13294 sparc*-*linux*)
13295 LD="${LD-ld} -m elf64_sparc"
13296 ;;
13297 esac
13298 ;;
13299 esac
13300 fi
13301 rm -rf conftest*
13302 ;;
13303
13304 *-*-sco3.2v5*)
13305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13306 SAVE_CFLAGS=$CFLAGS
13307 CFLAGS="$CFLAGS -belf"
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13309 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13310 if ${lt_cv_cc_needs_belf+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 ac_ext=c
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13318
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 int
13323 main ()
13324 {
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_link "$LINENO"; then :
13331 lt_cv_cc_needs_belf=yes
13332 else
13333 lt_cv_cc_needs_belf=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 ac_ext=c
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13345 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13346 if test yes != "$lt_cv_cc_needs_belf"; then
13347 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13348 CFLAGS=$SAVE_CFLAGS
13349 fi
13350 ;;
13351 *-*solaris*)
13352 # Find out what ABI is being produced by ac_compile, and set linker
13353 # options accordingly.
13354 echo 'int i;' > conftest.$ac_ext
13355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13356 (eval $ac_compile) 2>&5
13357 ac_status=$?
13358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359 test $ac_status = 0; }; then
13360 case `/usr/bin/file conftest.o` in
13361 *64-bit*)
13362 case $lt_cv_prog_gnu_ld in
13363 yes*)
13364 case $host in
13365 i?86-*-solaris*|x86_64-*-solaris*)
13366 LD="${LD-ld} -m elf_x86_64"
13367 ;;
13368 sparc*-*-solaris*)
13369 LD="${LD-ld} -m elf64_sparc"
13370 ;;
13371 esac
13372 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13373 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13374 LD=${LD-ld}_sol2
13375 fi
13376 ;;
13377 *)
13378 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13379 LD="${LD-ld} -64"
13380 fi
13381 ;;
13382 esac
13383 ;;
13384 esac
13385 fi
13386 rm -rf conftest*
13387 ;;
13388 esac
13389
13390 need_locks=$enable_libtool_lock
13391
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}mt; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test -n "$MANIFEST_TOOL"; then
13401 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13402 else
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13421 if test -n "$MANIFEST_TOOL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13423 $as_echo "$MANIFEST_TOOL" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13432 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13433 # Extract the first word of "mt", so it can be a program name with args.
13434 set dummy mt; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$ac_ct_MANIFEST_TOOL"; then
13441 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13445 do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13450 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454 done
13455 done
13456 IFS=$as_save_IFS
13457
13458 fi
13459 fi
13460 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13461 if test -n "$ac_ct_MANIFEST_TOOL"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13463 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 fi
13468
13469 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13470 MANIFEST_TOOL=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473 yes:)
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476 ac_tool_warned=yes ;;
13477 esac
13478 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13479 fi
13480 else
13481 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13482 fi
13483
13484 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13486 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13487 if ${lt_cv_path_mainfest_tool+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 lt_cv_path_mainfest_tool=no
13491 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13492 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13493 cat conftest.err >&5
13494 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13495 lt_cv_path_mainfest_tool=yes
13496 fi
13497 rm -f conftest*
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13500 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13501 if test yes != "$lt_cv_path_mainfest_tool"; then
13502 MANIFEST_TOOL=:
13503 fi
13504
13505
13506
13507
13508
13509
13510 case $host_os in
13511 rhapsody* | darwin*)
13512 if test -n "$ac_tool_prefix"; then
13513 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13514 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516 $as_echo_n "checking for $ac_word... " >&6; }
13517 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 if test -n "$DSYMUTIL"; then
13521 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13522 else
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13525 do
13526 IFS=$as_save_IFS
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
13529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13530 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 break 2
13533 fi
13534 done
13535 done
13536 IFS=$as_save_IFS
13537
13538 fi
13539 fi
13540 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13541 if test -n "$DSYMUTIL"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13543 $as_echo "$DSYMUTIL" >&6; }
13544 else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 $as_echo "no" >&6; }
13547 fi
13548
13549
13550 fi
13551 if test -z "$ac_cv_prog_DSYMUTIL"; then
13552 ac_ct_DSYMUTIL=$DSYMUTIL
13553 # Extract the first word of "dsymutil", so it can be a program name with args.
13554 set dummy dsymutil; ac_word=$2
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13556 $as_echo_n "checking for $ac_word... " >&6; }
13557 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 if test -n "$ac_ct_DSYMUTIL"; then
13561 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13562 else
13563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564 for as_dir in $PATH
13565 do
13566 IFS=$as_save_IFS
13567 test -z "$as_dir" && as_dir=.
13568 for ac_exec_ext in '' $ac_executable_extensions; do
13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13570 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13572 break 2
13573 fi
13574 done
13575 done
13576 IFS=$as_save_IFS
13577
13578 fi
13579 fi
13580 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13581 if test -n "$ac_ct_DSYMUTIL"; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13583 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13584 else
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586 $as_echo "no" >&6; }
13587 fi
13588
13589 if test "x$ac_ct_DSYMUTIL" = x; then
13590 DSYMUTIL=":"
13591 else
13592 case $cross_compiling:$ac_tool_warned in
13593 yes:)
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13596 ac_tool_warned=yes ;;
13597 esac
13598 DSYMUTIL=$ac_ct_DSYMUTIL
13599 fi
13600 else
13601 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13602 fi
13603
13604 if test -n "$ac_tool_prefix"; then
13605 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13606 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if ${ac_cv_prog_NMEDIT+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 if test -n "$NMEDIT"; then
13613 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626 done
13627 done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 NMEDIT=$ac_cv_prog_NMEDIT
13633 if test -n "$NMEDIT"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13635 $as_echo "$NMEDIT" >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13639 fi
13640
13641
13642 fi
13643 if test -z "$ac_cv_prog_NMEDIT"; then
13644 ac_ct_NMEDIT=$NMEDIT
13645 # Extract the first word of "nmedit", so it can be a program name with args.
13646 set dummy nmedit; ac_word=$2
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13648 $as_echo_n "checking for $ac_word... " >&6; }
13649 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 if test -n "$ac_ct_NMEDIT"; then
13653 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13654 else
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13657 do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666 done
13667 done
13668 IFS=$as_save_IFS
13669
13670 fi
13671 fi
13672 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13673 if test -n "$ac_ct_NMEDIT"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13675 $as_echo "$ac_ct_NMEDIT" >&6; }
13676 else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; }
13679 fi
13680
13681 if test "x$ac_ct_NMEDIT" = x; then
13682 NMEDIT=":"
13683 else
13684 case $cross_compiling:$ac_tool_warned in
13685 yes:)
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13688 ac_tool_warned=yes ;;
13689 esac
13690 NMEDIT=$ac_ct_NMEDIT
13691 fi
13692 else
13693 NMEDIT="$ac_cv_prog_NMEDIT"
13694 fi
13695
13696 if test -n "$ac_tool_prefix"; then
13697 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13698 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if ${ac_cv_prog_LIPO+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 if test -n "$LIPO"; then
13705 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13706 else
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13714 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716 break 2
13717 fi
13718 done
13719 done
13720 IFS=$as_save_IFS
13721
13722 fi
13723 fi
13724 LIPO=$ac_cv_prog_LIPO
13725 if test -n "$LIPO"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13727 $as_echo "$LIPO" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733
13734 fi
13735 if test -z "$ac_cv_prog_LIPO"; then
13736 ac_ct_LIPO=$LIPO
13737 # Extract the first word of "lipo", so it can be a program name with args.
13738 set dummy lipo; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 if test -n "$ac_ct_LIPO"; then
13745 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754 ac_cv_prog_ac_ct_LIPO="lipo"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13757 fi
13758 done
13759 done
13760 IFS=$as_save_IFS
13761
13762 fi
13763 fi
13764 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13765 if test -n "$ac_ct_LIPO"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13767 $as_echo "$ac_ct_LIPO" >&6; }
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771 fi
13772
13773 if test "x$ac_ct_LIPO" = x; then
13774 LIPO=":"
13775 else
13776 case $cross_compiling:$ac_tool_warned in
13777 yes:)
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13780 ac_tool_warned=yes ;;
13781 esac
13782 LIPO=$ac_ct_LIPO
13783 fi
13784 else
13785 LIPO="$ac_cv_prog_LIPO"
13786 fi
13787
13788 if test -n "$ac_tool_prefix"; then
13789 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13790 set dummy ${ac_tool_prefix}otool; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if ${ac_cv_prog_OTOOL+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 if test -n "$OTOOL"; then
13797 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13798 else
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13801 do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13806 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13809 fi
13810 done
13811 done
13812 IFS=$as_save_IFS
13813
13814 fi
13815 fi
13816 OTOOL=$ac_cv_prog_OTOOL
13817 if test -n "$OTOOL"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13819 $as_echo "$OTOOL" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13823 fi
13824
13825
13826 fi
13827 if test -z "$ac_cv_prog_OTOOL"; then
13828 ac_ct_OTOOL=$OTOOL
13829 # Extract the first word of "otool", so it can be a program name with args.
13830 set dummy otool; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 if test -n "$ac_ct_OTOOL"; then
13837 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13838 else
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_prog_ac_ct_OTOOL="otool"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13849 fi
13850 done
13851 done
13852 IFS=$as_save_IFS
13853
13854 fi
13855 fi
13856 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13857 if test -n "$ac_ct_OTOOL"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13859 $as_echo "$ac_ct_OTOOL" >&6; }
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13863 fi
13864
13865 if test "x$ac_ct_OTOOL" = x; then
13866 OTOOL=":"
13867 else
13868 case $cross_compiling:$ac_tool_warned in
13869 yes:)
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13872 ac_tool_warned=yes ;;
13873 esac
13874 OTOOL=$ac_ct_OTOOL
13875 fi
13876 else
13877 OTOOL="$ac_cv_prog_OTOOL"
13878 fi
13879
13880 if test -n "$ac_tool_prefix"; then
13881 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13882 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_prog_OTOOL64+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 if test -n "$OTOOL64"; then
13889 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13890 else
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in $PATH
13893 do
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
13896 for ac_exec_ext in '' $ac_executable_extensions; do
13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 break 2
13901 fi
13902 done
13903 done
13904 IFS=$as_save_IFS
13905
13906 fi
13907 fi
13908 OTOOL64=$ac_cv_prog_OTOOL64
13909 if test -n "$OTOOL64"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13911 $as_echo "$OTOOL64" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915 fi
13916
13917
13918 fi
13919 if test -z "$ac_cv_prog_OTOOL64"; then
13920 ac_ct_OTOOL64=$OTOOL64
13921 # Extract the first word of "otool64", so it can be a program name with args.
13922 set dummy otool64; ac_word=$2
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13924 $as_echo_n "checking for $ac_word... " >&6; }
13925 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 if test -n "$ac_ct_OTOOL64"; then
13929 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13930 else
13931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13933 do
13934 IFS=$as_save_IFS
13935 test -z "$as_dir" && as_dir=.
13936 for ac_exec_ext in '' $ac_executable_extensions; do
13937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13938 ac_cv_prog_ac_ct_OTOOL64="otool64"
13939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13940 break 2
13941 fi
13942 done
13943 done
13944 IFS=$as_save_IFS
13945
13946 fi
13947 fi
13948 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13949 if test -n "$ac_ct_OTOOL64"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13951 $as_echo "$ac_ct_OTOOL64" >&6; }
13952 else
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13955 fi
13956
13957 if test "x$ac_ct_OTOOL64" = x; then
13958 OTOOL64=":"
13959 else
13960 case $cross_compiling:$ac_tool_warned in
13961 yes:)
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13964 ac_tool_warned=yes ;;
13965 esac
13966 OTOOL64=$ac_ct_OTOOL64
13967 fi
13968 else
13969 OTOOL64="$ac_cv_prog_OTOOL64"
13970 fi
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13999 $as_echo_n "checking for -single_module linker flag... " >&6; }
14000 if ${lt_cv_apple_cc_single_mod+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 lt_cv_apple_cc_single_mod=no
14004 if test -z "$LT_MULTI_MODULE"; then
14005 # By default we will add the -single_module flag. You can override
14006 # by either setting the environment variable LT_MULTI_MODULE
14007 # non-empty at configure time, or by adding -multi_module to the
14008 # link flags.
14009 rm -rf libconftest.dylib*
14010 echo "int foo(void){return 1;}" > conftest.c
14011 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14012 -dynamiclib -Wl,-single_module conftest.c" >&5
14013 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14014 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14015 _lt_result=$?
14016 # If there is a non-empty error log, and "single_module"
14017 # appears in it, assume the flag caused a linker warning
14018 if test -s conftest.err && $GREP single_module conftest.err; then
14019 cat conftest.err >&5
14020 # Otherwise, if the output was created with a 0 exit code from
14021 # the compiler, it worked.
14022 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14023 lt_cv_apple_cc_single_mod=yes
14024 else
14025 cat conftest.err >&5
14026 fi
14027 rm -rf libconftest.dylib*
14028 rm -f conftest.*
14029 fi
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14032 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14036 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 lt_cv_ld_exported_symbols_list=no
14040 save_LDFLAGS=$LDFLAGS
14041 echo "_main" > conftest.sym
14042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045
14046 int
14047 main ()
14048 {
14049
14050 ;
14051 return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 lt_cv_ld_exported_symbols_list=yes
14056 else
14057 lt_cv_ld_exported_symbols_list=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LDFLAGS=$save_LDFLAGS
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14066
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14068 $as_echo_n "checking for -force_load linker flag... " >&6; }
14069 if ${lt_cv_ld_force_load+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 lt_cv_ld_force_load=no
14073 cat > conftest.c << _LT_EOF
14074 int forced_loaded() { return 2;}
14075 _LT_EOF
14076 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14077 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14078 echo "$AR cru libconftest.a conftest.o" >&5
14079 $AR cru libconftest.a conftest.o 2>&5
14080 echo "$RANLIB libconftest.a" >&5
14081 $RANLIB libconftest.a 2>&5
14082 cat > conftest.c << _LT_EOF
14083 int main() { return 0;}
14084 _LT_EOF
14085 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14086 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14087 _lt_result=$?
14088 if test -s conftest.err && $GREP force_load conftest.err; then
14089 cat conftest.err >&5
14090 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14091 lt_cv_ld_force_load=yes
14092 else
14093 cat conftest.err >&5
14094 fi
14095 rm -f conftest.err libconftest.a conftest conftest.c
14096 rm -rf conftest.dSYM
14097
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14100 $as_echo "$lt_cv_ld_force_load" >&6; }
14101 case $host_os in
14102 rhapsody* | darwin1.[012])
14103 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14104 darwin1.*)
14105 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14106 darwin*) # darwin 5.x on
14107 # if running on 10.5 or later, the deployment target defaults
14108 # to the OS version, if on x86, and 10.4, the deployment
14109 # target defaults to 10.4. Don't you love it?
14110 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14111 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14112 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14113 10.[012][,.]*)
14114 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14115 10.*)
14116 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14117 esac
14118 ;;
14119 esac
14120 if test yes = "$lt_cv_apple_cc_single_mod"; then
14121 _lt_dar_single_mod='$single_module'
14122 fi
14123 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14124 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14125 else
14126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14127 fi
14128 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14129 _lt_dsymutil='~$DSYMUTIL $lib || :'
14130 else
14131 _lt_dsymutil=
14132 fi
14133 ;;
14134 esac
14135
14136 # func_munge_path_list VARIABLE PATH
14137 # -----------------------------------
14138 # VARIABLE is name of variable containing _space_ separated list of
14139 # directories to be munged by the contents of PATH, which is string
14140 # having a format:
14141 # "DIR[:DIR]:"
14142 # string "DIR[ DIR]" will be prepended to VARIABLE
14143 # ":DIR[:DIR]"
14144 # string "DIR[ DIR]" will be appended to VARIABLE
14145 # "DIRP[:DIRP]::[DIRA:]DIRA"
14146 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14147 # "DIRA[ DIRA]" will be appended to VARIABLE
14148 # "DIR[:DIR]"
14149 # VARIABLE will be replaced by "DIR[ DIR]"
14150 func_munge_path_list ()
14151 {
14152 case x$2 in
14153 x)
14154 ;;
14155 *:)
14156 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14157 ;;
14158 x:*)
14159 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14160 ;;
14161 *::*)
14162 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14163 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14164 ;;
14165 *)
14166 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14167 ;;
14168 esac
14169 }
14170
14171 for ac_header in dlfcn.h
14172 do :
14173 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14174 "
14175 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14176 cat >>confdefs.h <<_ACEOF
14177 #define HAVE_DLFCN_H 1
14178 _ACEOF
14179
14180 fi
14181
14182 done
14183
14184
14185
14186
14187
14188 # Set options
14189
14190
14191
14192 enable_dlopen=no
14193
14194
14195 enable_win32_dll=no
14196
14197
14198 # Check whether --enable-shared was given.
14199 if test "${enable_shared+set}" = set; then :
14200 enableval=$enable_shared; p=${PACKAGE-default}
14201 case $enableval in
14202 yes) enable_shared=yes ;;
14203 no) enable_shared=no ;;
14204 *)
14205 enable_shared=no
14206 # Look at the argument we got. We use all the common list separators.
14207 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14208 for pkg in $enableval; do
14209 IFS=$lt_save_ifs
14210 if test "X$pkg" = "X$p"; then
14211 enable_shared=yes
14212 fi
14213 done
14214 IFS=$lt_save_ifs
14215 ;;
14216 esac
14217 else
14218 enable_shared=yes
14219 fi
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231 # Check whether --with-pic was given.
14232 if test "${with_pic+set}" = set; then :
14233 withval=$with_pic; lt_p=${PACKAGE-default}
14234 case $withval in
14235 yes|no) pic_mode=$withval ;;
14236 *)
14237 pic_mode=default
14238 # Look at the argument we got. We use all the common list separators.
14239 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14240 for lt_pkg in $withval; do
14241 IFS=$lt_save_ifs
14242 if test "X$lt_pkg" = "X$lt_p"; then
14243 pic_mode=yes
14244 fi
14245 done
14246 IFS=$lt_save_ifs
14247 ;;
14248 esac
14249 else
14250 pic_mode=default
14251 fi
14252
14253
14254
14255
14256
14257
14258
14259
14260 # Check whether --enable-fast-install was given.
14261 if test "${enable_fast_install+set}" = set; then :
14262 enableval=$enable_fast_install; p=${PACKAGE-default}
14263 case $enableval in
14264 yes) enable_fast_install=yes ;;
14265 no) enable_fast_install=no ;;
14266 *)
14267 enable_fast_install=no
14268 # Look at the argument we got. We use all the common list separators.
14269 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14270 for pkg in $enableval; do
14271 IFS=$lt_save_ifs
14272 if test "X$pkg" = "X$p"; then
14273 enable_fast_install=yes
14274 fi
14275 done
14276 IFS=$lt_save_ifs
14277 ;;
14278 esac
14279 else
14280 enable_fast_install=yes
14281 fi
14282
14283
14284
14285
14286
14287
14288
14289
14290 shared_archive_member_spec=
14291 case $host,$enable_shared in
14292 power*-*-aix[5-9]*,yes)
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14294 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14295
14296 # Check whether --with-aix-soname was given.
14297 if test "${with_aix_soname+set}" = set; then :
14298 withval=$with_aix_soname; case $withval in
14299 aix|svr4|both)
14300 ;;
14301 *)
14302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14303 ;;
14304 esac
14305 lt_cv_with_aix_soname=$with_aix_soname
14306 else
14307 if ${lt_cv_with_aix_soname+:} false; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 lt_cv_with_aix_soname=aix
14311 fi
14312
14313 with_aix_soname=$lt_cv_with_aix_soname
14314 fi
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14317 $as_echo "$with_aix_soname" >&6; }
14318 if test aix != "$with_aix_soname"; then
14319 # For the AIX way of multilib, we name the shared archive member
14320 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14321 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14322 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14323 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14324 if test 64 = "${OBJECT_MODE-32}"; then
14325 shared_archive_member_spec=shr_64
14326 else
14327 shared_archive_member_spec=shr
14328 fi
14329 fi
14330 ;;
14331 *)
14332 with_aix_soname=aix
14333 ;;
14334 esac
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345 # This can be used to rebuild libtool when needed
14346 LIBTOOL_DEPS=$ltmain
14347
14348 # Always use our own libtool.
14349 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380 test -z "$LN_S" && LN_S="ln -s"
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395 if test -n "${ZSH_VERSION+set}"; then
14396 setopt NO_GLOB_SUBST
14397 fi
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14400 $as_echo_n "checking for objdir... " >&6; }
14401 if ${lt_cv_objdir+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 rm -f .libs 2>/dev/null
14405 mkdir .libs 2>/dev/null
14406 if test -d .libs; then
14407 lt_cv_objdir=.libs
14408 else
14409 # MS-DOS does not allow filenames that begin with a dot.
14410 lt_cv_objdir=_libs
14411 fi
14412 rmdir .libs 2>/dev/null
14413 fi
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14415 $as_echo "$lt_cv_objdir" >&6; }
14416 objdir=$lt_cv_objdir
14417
14418
14419
14420
14421
14422 cat >>confdefs.h <<_ACEOF
14423 #define LT_OBJDIR "$lt_cv_objdir/"
14424 _ACEOF
14425
14426
14427
14428
14429 case $host_os in
14430 aix3*)
14431 # AIX sometimes has problems with the GCC collect2 program. For some
14432 # reason, if we set the COLLECT_NAMES environment variable, the problems
14433 # vanish in a puff of smoke.
14434 if test set != "${COLLECT_NAMES+set}"; then
14435 COLLECT_NAMES=
14436 export COLLECT_NAMES
14437 fi
14438 ;;
14439 esac
14440
14441 # Global variables:
14442 ofile=libtool
14443 can_build_shared=yes
14444
14445 # All known linkers require a '.a' archive for static linking (except MSVC,
14446 # which needs '.lib').
14447 libext=a
14448
14449 with_gnu_ld=$lt_cv_prog_gnu_ld
14450
14451 old_CC=$CC
14452 old_CFLAGS=$CFLAGS
14453
14454 # Set sane defaults for various variables
14455 test -z "$CC" && CC=cc
14456 test -z "$LTCC" && LTCC=$CC
14457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14458 test -z "$LD" && LD=ld
14459 test -z "$ac_objext" && ac_objext=o
14460
14461 func_cc_basename $compiler
14462 cc_basename=$func_cc_basename_result
14463
14464
14465 # Only perform the check for file, if the check method requires it
14466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14467 case $deplibs_check_method in
14468 file_magic*)
14469 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14471 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14473 $as_echo_n "(cached) " >&6
14474 else
14475 case $MAGIC_CMD in
14476 [\\/*] | ?:[\\/]*)
14477 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14478 ;;
14479 *)
14480 lt_save_MAGIC_CMD=$MAGIC_CMD
14481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14483 for ac_dir in $ac_dummy; do
14484 IFS=$lt_save_ifs
14485 test -z "$ac_dir" && ac_dir=.
14486 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14487 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14488 if test -n "$file_magic_test_file"; then
14489 case $deplibs_check_method in
14490 "file_magic "*)
14491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14492 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14494 $EGREP "$file_magic_regex" > /dev/null; then
14495 :
14496 else
14497 cat <<_LT_EOF 1>&2
14498
14499 *** Warning: the command libtool uses to detect shared libraries,
14500 *** $file_magic_cmd, produces output that libtool cannot recognize.
14501 *** The result is that libtool may fail to recognize shared libraries
14502 *** as such. This will affect the creation of libtool libraries that
14503 *** depend on shared libraries, but programs linked with such libtool
14504 *** libraries will work regardless of this problem. Nevertheless, you
14505 *** may want to report the problem to your system manager and/or to
14506 *** bug-libtool (at] gnu.org
14507
14508 _LT_EOF
14509 fi ;;
14510 esac
14511 fi
14512 break
14513 fi
14514 done
14515 IFS=$lt_save_ifs
14516 MAGIC_CMD=$lt_save_MAGIC_CMD
14517 ;;
14518 esac
14519 fi
14520
14521 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14522 if test -n "$MAGIC_CMD"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14524 $as_echo "$MAGIC_CMD" >&6; }
14525 else
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14528 fi
14529
14530
14531
14532
14533
14534 if test -z "$lt_cv_path_MAGIC_CMD"; then
14535 if test -n "$ac_tool_prefix"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14537 $as_echo_n "checking for file... " >&6; }
14538 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 case $MAGIC_CMD in
14542 [\\/*] | ?:[\\/]*)
14543 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14544 ;;
14545 *)
14546 lt_save_MAGIC_CMD=$MAGIC_CMD
14547 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14548 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14549 for ac_dir in $ac_dummy; do
14550 IFS=$lt_save_ifs
14551 test -z "$ac_dir" && ac_dir=.
14552 if test -f "$ac_dir/file"; then
14553 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14554 if test -n "$file_magic_test_file"; then
14555 case $deplibs_check_method in
14556 "file_magic "*)
14557 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14558 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14559 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14560 $EGREP "$file_magic_regex" > /dev/null; then
14561 :
14562 else
14563 cat <<_LT_EOF 1>&2
14564
14565 *** Warning: the command libtool uses to detect shared libraries,
14566 *** $file_magic_cmd, produces output that libtool cannot recognize.
14567 *** The result is that libtool may fail to recognize shared libraries
14568 *** as such. This will affect the creation of libtool libraries that
14569 *** depend on shared libraries, but programs linked with such libtool
14570 *** libraries will work regardless of this problem. Nevertheless, you
14571 *** may want to report the problem to your system manager and/or to
14572 *** bug-libtool (at] gnu.org
14573
14574 _LT_EOF
14575 fi ;;
14576 esac
14577 fi
14578 break
14579 fi
14580 done
14581 IFS=$lt_save_ifs
14582 MAGIC_CMD=$lt_save_MAGIC_CMD
14583 ;;
14584 esac
14585 fi
14586
14587 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14588 if test -n "$MAGIC_CMD"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14590 $as_echo "$MAGIC_CMD" >&6; }
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14594 fi
14595
14596
14597 else
14598 MAGIC_CMD=:
14599 fi
14600 fi
14601
14602 fi
14603 ;;
14604 esac
14605
14606 # Use C for the default configuration in the libtool script
14607
14608 lt_save_CC=$CC
14609 ac_ext=c
14610 ac_cpp='$CPP $CPPFLAGS'
14611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14614
14615
14616 # Source file extension for C test sources.
14617 ac_ext=c
14618
14619 # Object file extension for compiled C test sources.
14620 objext=o
14621 objext=$objext
14622
14623 # Code to be used in simple compile tests
14624 lt_simple_compile_test_code="int some_variable = 0;"
14625
14626 # Code to be used in simple link tests
14627 lt_simple_link_test_code='int main(){return(0);}'
14628
14629
14630
14631
14632
14633
14634
14635 # If no C compiler was specified, use CC.
14636 LTCC=${LTCC-"$CC"}
14637
14638 # If no C compiler flags were specified, use CFLAGS.
14639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14640
14641 # Allow CC to be a program name with arguments.
14642 compiler=$CC
14643
14644 # Save the default compiler, since it gets overwritten when the other
14645 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14646 compiler_DEFAULT=$CC
14647
14648 # save warnings/boilerplate of simple test code
14649 ac_outfile=conftest.$ac_objext
14650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14652 _lt_compiler_boilerplate=`cat conftest.err`
14653 $RM conftest*
14654
14655 ac_outfile=conftest.$ac_objext
14656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14658 _lt_linker_boilerplate=`cat conftest.err`
14659 $RM -r conftest*
14660
14661
14662 if test -n "$compiler"; then
14663
14664 lt_prog_compiler_no_builtin_flag=
14665
14666 if test yes = "$GCC"; then
14667 case $cc_basename in
14668 nvcc*)
14669 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14670 *)
14671 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14672 esac
14673
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14675 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14676 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 lt_cv_prog_compiler_rtti_exceptions=no
14680 ac_outfile=conftest.$ac_objext
14681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14683 # Insert the option either (1) after the last *FLAGS variable, or
14684 # (2) before a word containing "conftest.", or (3) at the end.
14685 # Note that $ac_compile itself does not contain backslashes and begins
14686 # with a dollar sign (not a hyphen), so the echo should work correctly.
14687 # The option is referenced via a variable to avoid confusing sed.
14688 lt_compile=`echo "$ac_compile" | $SED \
14689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691 -e 's:$: $lt_compiler_flag:'`
14692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14693 (eval "$lt_compile" 2>conftest.err)
14694 ac_status=$?
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 if (exit $ac_status) && test -s "$ac_outfile"; then
14698 # The compiler can only warn and ignore the option if not recognized
14699 # So say no if there are warnings other than the usual output.
14700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703 lt_cv_prog_compiler_rtti_exceptions=yes
14704 fi
14705 fi
14706 $RM conftest*
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14710 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14711
14712 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14714 else
14715 :
14716 fi
14717
14718 fi
14719
14720
14721
14722
14723
14724
14725 lt_prog_compiler_wl=
14726 lt_prog_compiler_pic=
14727 lt_prog_compiler_static=
14728
14729
14730 if test yes = "$GCC"; then
14731 lt_prog_compiler_wl='-Wl,'
14732 lt_prog_compiler_static='-static'
14733
14734 case $host_os in
14735 aix*)
14736 # All AIX code is PIC.
14737 if test ia64 = "$host_cpu"; then
14738 # AIX 5 now supports IA64 processor
14739 lt_prog_compiler_static='-Bstatic'
14740 fi
14741 lt_prog_compiler_pic='-fPIC'
14742 ;;
14743
14744 amigaos*)
14745 case $host_cpu in
14746 powerpc)
14747 # see comment about AmigaOS4 .so support
14748 lt_prog_compiler_pic='-fPIC'
14749 ;;
14750 m68k)
14751 # FIXME: we need at least 68020 code to build shared libraries, but
14752 # adding the '-m68020' flag to GCC prevents building anything better,
14753 # like '-m68040'.
14754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14755 ;;
14756 esac
14757 ;;
14758
14759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14760 # PIC is the default for these OSes.
14761 ;;
14762
14763 mingw* | cygwin* | pw32* | os2* | cegcc*)
14764 # This hack is so that the source file can tell whether it is being
14765 # built for inclusion in a dll (and should export symbols for example).
14766 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14767 # (--disable-auto-import) libraries
14768 lt_prog_compiler_pic='-DDLL_EXPORT'
14769 case $host_os in
14770 os2*)
14771 lt_prog_compiler_static='$wl-static'
14772 ;;
14773 esac
14774 ;;
14775
14776 darwin* | rhapsody*)
14777 # PIC is the default on this platform
14778 # Common symbols not allowed in MH_DYLIB files
14779 lt_prog_compiler_pic='-fno-common'
14780 ;;
14781
14782 haiku*)
14783 # PIC is the default for Haiku.
14784 # The "-static" flag exists, but is broken.
14785 lt_prog_compiler_static=
14786 ;;
14787
14788 hpux*)
14789 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14790 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14791 # sets the default TLS model and affects inlining.
14792 case $host_cpu in
14793 hppa*64*)
14794 # +Z the default
14795 ;;
14796 *)
14797 lt_prog_compiler_pic='-fPIC'
14798 ;;
14799 esac
14800 ;;
14801
14802 interix[3-9]*)
14803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14804 # Instead, we relocate shared libraries at runtime.
14805 ;;
14806
14807 msdosdjgpp*)
14808 # Just because we use GCC doesn't mean we suddenly get shared libraries
14809 # on systems that don't support them.
14810 lt_prog_compiler_can_build_shared=no
14811 enable_shared=no
14812 ;;
14813
14814 *nto* | *qnx*)
14815 # QNX uses GNU C++, but need to define -shared option too, otherwise
14816 # it will coredump.
14817 lt_prog_compiler_pic='-fPIC -shared'
14818 ;;
14819
14820 sysv4*MP*)
14821 if test -d /usr/nec; then
14822 lt_prog_compiler_pic=-Kconform_pic
14823 fi
14824 ;;
14825
14826 *)
14827 lt_prog_compiler_pic='-fPIC'
14828 ;;
14829 esac
14830
14831 case $cc_basename in
14832 nvcc*) # Cuda Compiler Driver 2.2
14833 lt_prog_compiler_wl='-Xlinker '
14834 if test -n "$lt_prog_compiler_pic"; then
14835 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14836 fi
14837 ;;
14838 esac
14839 else
14840 # PORTME Check for flag to pass linker flags through the system compiler.
14841 case $host_os in
14842 aix*)
14843 lt_prog_compiler_wl='-Wl,'
14844 if test ia64 = "$host_cpu"; then
14845 # AIX 5 now supports IA64 processor
14846 lt_prog_compiler_static='-Bstatic'
14847 else
14848 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14849 fi
14850 ;;
14851
14852 darwin* | rhapsody*)
14853 # PIC is the default on this platform
14854 # Common symbols not allowed in MH_DYLIB files
14855 lt_prog_compiler_pic='-fno-common'
14856 case $cc_basename in
14857 nagfor*)
14858 # NAG Fortran compiler
14859 lt_prog_compiler_wl='-Wl,-Wl,,'
14860 lt_prog_compiler_pic='-PIC'
14861 lt_prog_compiler_static='-Bstatic'
14862 ;;
14863 esac
14864 ;;
14865
14866 mingw* | cygwin* | pw32* | os2* | cegcc*)
14867 # This hack is so that the source file can tell whether it is being
14868 # built for inclusion in a dll (and should export symbols for example).
14869 lt_prog_compiler_pic='-DDLL_EXPORT'
14870 case $host_os in
14871 os2*)
14872 lt_prog_compiler_static='$wl-static'
14873 ;;
14874 esac
14875 ;;
14876
14877 hpux9* | hpux10* | hpux11*)
14878 lt_prog_compiler_wl='-Wl,'
14879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14880 # not for PA HP-UX.
14881 case $host_cpu in
14882 hppa*64*|ia64*)
14883 # +Z the default
14884 ;;
14885 *)
14886 lt_prog_compiler_pic='+Z'
14887 ;;
14888 esac
14889 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14890 lt_prog_compiler_static='$wl-a ${wl}archive'
14891 ;;
14892
14893 irix5* | irix6* | nonstopux*)
14894 lt_prog_compiler_wl='-Wl,'
14895 # PIC (with -KPIC) is the default.
14896 lt_prog_compiler_static='-non_shared'
14897 ;;
14898
14899 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14900 case $cc_basename in
14901 # old Intel for x86_64, which still supported -KPIC.
14902 ecc*)
14903 lt_prog_compiler_wl='-Wl,'
14904 lt_prog_compiler_pic='-KPIC'
14905 lt_prog_compiler_static='-static'
14906 ;;
14907 # icc used to be incompatible with GCC.
14908 # ICC 10 doesn't accept -KPIC any more.
14909 icc* | ifort*)
14910 lt_prog_compiler_wl='-Wl,'
14911 lt_prog_compiler_pic='-fPIC'
14912 lt_prog_compiler_static='-static'
14913 ;;
14914 # Lahey Fortran 8.1.
14915 lf95*)
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_pic='--shared'
14918 lt_prog_compiler_static='--static'
14919 ;;
14920 nagfor*)
14921 # NAG Fortran compiler
14922 lt_prog_compiler_wl='-Wl,-Wl,,'
14923 lt_prog_compiler_pic='-PIC'
14924 lt_prog_compiler_static='-Bstatic'
14925 ;;
14926 tcc*)
14927 # Fabrice Bellard et al's Tiny C Compiler
14928 lt_prog_compiler_wl='-Wl,'
14929 lt_prog_compiler_pic='-fPIC'
14930 lt_prog_compiler_static='-static'
14931 ;;
14932 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14933 # Portland Group compilers (*not* the Pentium gcc compiler,
14934 # which looks to be a dead project)
14935 lt_prog_compiler_wl='-Wl,'
14936 lt_prog_compiler_pic='-fpic'
14937 lt_prog_compiler_static='-Bstatic'
14938 ;;
14939 ccc*)
14940 lt_prog_compiler_wl='-Wl,'
14941 # All Alpha code is PIC.
14942 lt_prog_compiler_static='-non_shared'
14943 ;;
14944 xl* | bgxl* | bgf* | mpixl*)
14945 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14946 lt_prog_compiler_wl='-Wl,'
14947 lt_prog_compiler_pic='-qpic'
14948 lt_prog_compiler_static='-qstaticlink'
14949 ;;
14950 *)
14951 case `$CC -V 2>&1 | sed 5q` in
14952 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14953 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14954 lt_prog_compiler_pic='-KPIC'
14955 lt_prog_compiler_static='-Bstatic'
14956 lt_prog_compiler_wl=''
14957 ;;
14958 *Sun\ F* | *Sun*Fortran*)
14959 lt_prog_compiler_pic='-KPIC'
14960 lt_prog_compiler_static='-Bstatic'
14961 lt_prog_compiler_wl='-Qoption ld '
14962 ;;
14963 *Sun\ C*)
14964 # Sun C 5.9
14965 lt_prog_compiler_pic='-KPIC'
14966 lt_prog_compiler_static='-Bstatic'
14967 lt_prog_compiler_wl='-Wl,'
14968 ;;
14969 *Intel*\ [CF]*Compiler*)
14970 lt_prog_compiler_wl='-Wl,'
14971 lt_prog_compiler_pic='-fPIC'
14972 lt_prog_compiler_static='-static'
14973 ;;
14974 *Portland\ Group*)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-fpic'
14977 lt_prog_compiler_static='-Bstatic'
14978 ;;
14979 esac
14980 ;;
14981 esac
14982 ;;
14983
14984 newsos6)
14985 lt_prog_compiler_pic='-KPIC'
14986 lt_prog_compiler_static='-Bstatic'
14987 ;;
14988
14989 *nto* | *qnx*)
14990 # QNX uses GNU C++, but need to define -shared option too, otherwise
14991 # it will coredump.
14992 lt_prog_compiler_pic='-fPIC -shared'
14993 ;;
14994
14995 osf3* | osf4* | osf5*)
14996 lt_prog_compiler_wl='-Wl,'
14997 # All OSF/1 code is PIC.
14998 lt_prog_compiler_static='-non_shared'
14999 ;;
15000
15001 rdos*)
15002 lt_prog_compiler_static='-non_shared'
15003 ;;
15004
15005 solaris*)
15006 lt_prog_compiler_pic='-KPIC'
15007 lt_prog_compiler_static='-Bstatic'
15008 case $cc_basename in
15009 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15010 lt_prog_compiler_wl='-Qoption ld ';;
15011 *)
15012 lt_prog_compiler_wl='-Wl,';;
15013 esac
15014 ;;
15015
15016 sunos4*)
15017 lt_prog_compiler_wl='-Qoption ld '
15018 lt_prog_compiler_pic='-PIC'
15019 lt_prog_compiler_static='-Bstatic'
15020 ;;
15021
15022 sysv4 | sysv4.2uw2* | sysv4.3*)
15023 lt_prog_compiler_wl='-Wl,'
15024 lt_prog_compiler_pic='-KPIC'
15025 lt_prog_compiler_static='-Bstatic'
15026 ;;
15027
15028 sysv4*MP*)
15029 if test -d /usr/nec; then
15030 lt_prog_compiler_pic='-Kconform_pic'
15031 lt_prog_compiler_static='-Bstatic'
15032 fi
15033 ;;
15034
15035 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_pic='-KPIC'
15038 lt_prog_compiler_static='-Bstatic'
15039 ;;
15040
15041 unicos*)
15042 lt_prog_compiler_wl='-Wl,'
15043 lt_prog_compiler_can_build_shared=no
15044 ;;
15045
15046 uts4*)
15047 lt_prog_compiler_pic='-pic'
15048 lt_prog_compiler_static='-Bstatic'
15049 ;;
15050
15051 *)
15052 lt_prog_compiler_can_build_shared=no
15053 ;;
15054 esac
15055 fi
15056
15057 case $host_os in
15058 # For platforms that do not support PIC, -DPIC is meaningless:
15059 *djgpp*)
15060 lt_prog_compiler_pic=
15061 ;;
15062 *)
15063 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15064 ;;
15065 esac
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15068 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15069 if ${lt_cv_prog_compiler_pic+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15075 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15076 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15077
15078 #
15079 # Check to make sure the PIC flag actually works.
15080 #
15081 if test -n "$lt_prog_compiler_pic"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15084 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 lt_cv_prog_compiler_pic_works=no
15088 ac_outfile=conftest.$ac_objext
15089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15090 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15091 # Insert the option either (1) after the last *FLAGS variable, or
15092 # (2) before a word containing "conftest.", or (3) at the end.
15093 # Note that $ac_compile itself does not contain backslashes and begins
15094 # with a dollar sign (not a hyphen), so the echo should work correctly.
15095 # The option is referenced via a variable to avoid confusing sed.
15096 lt_compile=`echo "$ac_compile" | $SED \
15097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15099 -e 's:$: $lt_compiler_flag:'`
15100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15101 (eval "$lt_compile" 2>conftest.err)
15102 ac_status=$?
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 if (exit $ac_status) && test -s "$ac_outfile"; then
15106 # The compiler can only warn and ignore the option if not recognized
15107 # So say no if there are warnings other than the usual output.
15108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15111 lt_cv_prog_compiler_pic_works=yes
15112 fi
15113 fi
15114 $RM conftest*
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15118 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15119
15120 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15121 case $lt_prog_compiler_pic in
15122 "" | " "*) ;;
15123 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15124 esac
15125 else
15126 lt_prog_compiler_pic=
15127 lt_prog_compiler_can_build_shared=no
15128 fi
15129
15130 fi
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 #
15143 # Check to make sure the static flag actually works.
15144 #
15145 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15147 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15148 if ${lt_cv_prog_compiler_static_works+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 lt_cv_prog_compiler_static_works=no
15152 save_LDFLAGS=$LDFLAGS
15153 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15154 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15156 # The linker can only warn and ignore the option if not recognized
15157 # So say no if there are warnings
15158 if test -s conftest.err; then
15159 # Append any errors to the config.log.
15160 cat conftest.err 1>&5
15161 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15163 if diff conftest.exp conftest.er2 >/dev/null; then
15164 lt_cv_prog_compiler_static_works=yes
15165 fi
15166 else
15167 lt_cv_prog_compiler_static_works=yes
15168 fi
15169 fi
15170 $RM -r conftest*
15171 LDFLAGS=$save_LDFLAGS
15172
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15175 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15176
15177 if test yes = "$lt_cv_prog_compiler_static_works"; then
15178 :
15179 else
15180 lt_prog_compiler_static=
15181 fi
15182
15183
15184
15185
15186
15187
15188
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15190 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15191 if ${lt_cv_prog_compiler_c_o+:} false; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 lt_cv_prog_compiler_c_o=no
15195 $RM -r conftest 2>/dev/null
15196 mkdir conftest
15197 cd conftest
15198 mkdir out
15199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15200
15201 lt_compiler_flag="-o out/conftest2.$ac_objext"
15202 # Insert the option either (1) after the last *FLAGS variable, or
15203 # (2) before a word containing "conftest.", or (3) at the end.
15204 # Note that $ac_compile itself does not contain backslashes and begins
15205 # with a dollar sign (not a hyphen), so the echo should work correctly.
15206 lt_compile=`echo "$ac_compile" | $SED \
15207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15209 -e 's:$: $lt_compiler_flag:'`
15210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15211 (eval "$lt_compile" 2>out/conftest.err)
15212 ac_status=$?
15213 cat out/conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15216 then
15217 # The compiler can only warn and ignore the option if not recognized
15218 # So say no if there are warnings
15219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15222 lt_cv_prog_compiler_c_o=yes
15223 fi
15224 fi
15225 chmod u+w . 2>&5
15226 $RM conftest*
15227 # SGI C++ compiler will create directory out/ii_files/ for
15228 # template instantiation
15229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15230 $RM out/* && rmdir out
15231 cd ..
15232 $RM -r conftest
15233 $RM conftest*
15234
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15237 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15238
15239
15240
15241
15242
15243
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15245 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15246 if ${lt_cv_prog_compiler_c_o+:} false; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249 lt_cv_prog_compiler_c_o=no
15250 $RM -r conftest 2>/dev/null
15251 mkdir conftest
15252 cd conftest
15253 mkdir out
15254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15255
15256 lt_compiler_flag="-o out/conftest2.$ac_objext"
15257 # Insert the option either (1) after the last *FLAGS variable, or
15258 # (2) before a word containing "conftest.", or (3) at the end.
15259 # Note that $ac_compile itself does not contain backslashes and begins
15260 # with a dollar sign (not a hyphen), so the echo should work correctly.
15261 lt_compile=`echo "$ac_compile" | $SED \
15262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15264 -e 's:$: $lt_compiler_flag:'`
15265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15266 (eval "$lt_compile" 2>out/conftest.err)
15267 ac_status=$?
15268 cat out/conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15271 then
15272 # The compiler can only warn and ignore the option if not recognized
15273 # So say no if there are warnings
15274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15277 lt_cv_prog_compiler_c_o=yes
15278 fi
15279 fi
15280 chmod u+w . 2>&5
15281 $RM conftest*
15282 # SGI C++ compiler will create directory out/ii_files/ for
15283 # template instantiation
15284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15285 $RM out/* && rmdir out
15286 cd ..
15287 $RM -r conftest
15288 $RM conftest*
15289
15290 fi
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15292 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15293
15294
15295
15296
15297 hard_links=nottested
15298 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15299 # do not overwrite the value of need_locks provided by the user
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15301 $as_echo_n "checking if we can lock with hard links... " >&6; }
15302 hard_links=yes
15303 $RM conftest*
15304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15305 touch conftest.a
15306 ln conftest.a conftest.b 2>&5 || hard_links=no
15307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15309 $as_echo "$hard_links" >&6; }
15310 if test no = "$hard_links"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15312 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15313 need_locks=warn
15314 fi
15315 else
15316 need_locks=no
15317 fi
15318
15319
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15325 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15326
15327 runpath_var=
15328 allow_undefined_flag=
15329 always_export_symbols=no
15330 archive_cmds=
15331 archive_expsym_cmds=
15332 compiler_needs_object=no
15333 enable_shared_with_static_runtimes=no
15334 export_dynamic_flag_spec=
15335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15336 hardcode_automatic=no
15337 hardcode_direct=no
15338 hardcode_direct_absolute=no
15339 hardcode_libdir_flag_spec=
15340 hardcode_libdir_separator=
15341 hardcode_minus_L=no
15342 hardcode_shlibpath_var=unsupported
15343 inherit_rpath=no
15344 link_all_deplibs=unknown
15345 module_cmds=
15346 module_expsym_cmds=
15347 old_archive_from_new_cmds=
15348 old_archive_from_expsyms_cmds=
15349 thread_safe_flag_spec=
15350 whole_archive_flag_spec=
15351 # include_expsyms should be a list of space-separated symbols to be *always*
15352 # included in the symbol list
15353 include_expsyms=
15354 # exclude_expsyms can be an extended regexp of symbols to exclude
15355 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15356 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15357 # as well as any symbol that contains 'd'.
15358 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15359 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15360 # platforms (ab)use it in PIC code, but their linkers get confused if
15361 # the symbol is explicitly referenced. Since portable code cannot
15362 # rely on this symbol name, it's probably fine to never include it in
15363 # preloaded symbol tables.
15364 # Exclude shared library initialization/finalization symbols.
15365 extract_expsyms_cmds=
15366
15367 case $host_os in
15368 cygwin* | mingw* | pw32* | cegcc*)
15369 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15370 # When not using gcc, we currently assume that we are using
15371 # Microsoft Visual C++.
15372 if test yes != "$GCC"; then
15373 with_gnu_ld=no
15374 fi
15375 ;;
15376 interix*)
15377 # we just hope/assume this is gcc and not c89 (= MSVC++)
15378 with_gnu_ld=yes
15379 ;;
15380 openbsd* | bitrig*)
15381 with_gnu_ld=no
15382 ;;
15383 linux* | k*bsd*-gnu | gnu*)
15384 link_all_deplibs=no
15385 ;;
15386 esac
15387
15388 ld_shlibs=yes
15389
15390 # On some targets, GNU ld is compatible enough with the native linker
15391 # that we're better off using the native interface for both.
15392 lt_use_gnu_ld_interface=no
15393 if test yes = "$with_gnu_ld"; then
15394 case $host_os in
15395 aix*)
15396 # The AIX port of GNU ld has always aspired to compatibility
15397 # with the native linker. However, as the warning in the GNU ld
15398 # block says, versions before 2.19.5* couldn't really create working
15399 # shared libraries, regardless of the interface used.
15400 case `$LD -v 2>&1` in
15401 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15402 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15403 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15404 *)
15405 lt_use_gnu_ld_interface=yes
15406 ;;
15407 esac
15408 ;;
15409 *)
15410 lt_use_gnu_ld_interface=yes
15411 ;;
15412 esac
15413 fi
15414
15415 if test yes = "$lt_use_gnu_ld_interface"; then
15416 # If archive_cmds runs LD, not CC, wlarc should be empty
15417 wlarc='$wl'
15418
15419 # Set some defaults for GNU ld with shared library support. These
15420 # are reset later if shared libraries are not supported. Putting them
15421 # here allows them to be overridden if necessary.
15422 runpath_var=LD_RUN_PATH
15423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15424 export_dynamic_flag_spec='$wl--export-dynamic'
15425 # ancient GNU ld didn't support --whole-archive et. al.
15426 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15427 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15428 else
15429 whole_archive_flag_spec=
15430 fi
15431 supports_anon_versioning=no
15432 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15433 *GNU\ gold*) supports_anon_versioning=yes ;;
15434 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15435 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15436 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15437 *\ 2.11.*) ;; # other 2.11 versions
15438 *) supports_anon_versioning=yes ;;
15439 esac
15440
15441 # See if GNU ld supports shared libraries.
15442 case $host_os in
15443 aix[3-9]*)
15444 # On AIX/PPC, the GNU linker is very broken
15445 if test ia64 != "$host_cpu"; then
15446 ld_shlibs=no
15447 cat <<_LT_EOF 1>&2
15448
15449 *** Warning: the GNU linker, at least up to release 2.19, is reported
15450 *** to be unable to reliably create shared libraries on AIX.
15451 *** Therefore, libtool is disabling shared libraries support. If you
15452 *** really care for shared libraries, you may want to install binutils
15453 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15454 *** You will then need to restart the configuration process.
15455
15456 _LT_EOF
15457 fi
15458 ;;
15459
15460 amigaos*)
15461 case $host_cpu in
15462 powerpc)
15463 # see comment about AmigaOS4 .so support
15464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15465 archive_expsym_cmds=''
15466 ;;
15467 m68k)
15468 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)'
15469 hardcode_libdir_flag_spec='-L$libdir'
15470 hardcode_minus_L=yes
15471 ;;
15472 esac
15473 ;;
15474
15475 beos*)
15476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15477 allow_undefined_flag=unsupported
15478 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15479 # support --undefined. This deserves some investigation. FIXME
15480 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15481 else
15482 ld_shlibs=no
15483 fi
15484 ;;
15485
15486 cygwin* | mingw* | pw32* | cegcc*)
15487 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15488 # as there is no search path for DLLs.
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 export_dynamic_flag_spec='$wl--export-all-symbols'
15491 allow_undefined_flag=unsupported
15492 always_export_symbols=no
15493 enable_shared_with_static_runtimes=yes
15494 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'
15495 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15496
15497 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15499 # If the export-symbols file already is a .def file, use it as
15500 # is; otherwise, prepend EXPORTS...
15501 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15502 cp $export_symbols $output_objdir/$soname.def;
15503 else
15504 echo EXPORTS > $output_objdir/$soname.def;
15505 cat $export_symbols >> $output_objdir/$soname.def;
15506 fi~
15507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15508 else
15509 ld_shlibs=no
15510 fi
15511 ;;
15512
15513 haiku*)
15514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15515 link_all_deplibs=yes
15516 ;;
15517
15518 os2*)
15519 hardcode_libdir_flag_spec='-L$libdir'
15520 hardcode_minus_L=yes
15521 allow_undefined_flag=unsupported
15522 shrext_cmds=.dll
15523 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15524 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15525 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15526 $ECHO EXPORTS >> $output_objdir/$libname.def~
15527 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15528 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15529 emximp -o $lib $output_objdir/$libname.def'
15530 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15531 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15532 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15533 $ECHO EXPORTS >> $output_objdir/$libname.def~
15534 prefix_cmds="$SED"~
15535 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15536 prefix_cmds="$prefix_cmds -e 1d";
15537 fi~
15538 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15539 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15541 emximp -o $lib $output_objdir/$libname.def'
15542 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15543 enable_shared_with_static_runtimes=yes
15544 ;;
15545
15546 interix[3-9]*)
15547 hardcode_direct=no
15548 hardcode_shlibpath_var=no
15549 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15550 export_dynamic_flag_spec='$wl-E'
15551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15552 # Instead, shared libraries are loaded at an image base (0x10000000 by
15553 # default) and relocated if they conflict, which is a slow very memory
15554 # consuming and fragmenting process. To avoid this, we pick a random,
15555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15558 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'
15559 ;;
15560
15561 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15562 tmp_diet=no
15563 if test linux-dietlibc = "$host_os"; then
15564 case $cc_basename in
15565 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15566 esac
15567 fi
15568 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15569 && test no = "$tmp_diet"
15570 then
15571 tmp_addflag=' $pic_flag'
15572 tmp_sharedflag='-shared'
15573 case $cc_basename,$host_cpu in
15574 pgcc*) # Portland Group C compiler
15575 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'
15576 tmp_addflag=' $pic_flag'
15577 ;;
15578 pgf77* | pgf90* | pgf95* | pgfortran*)
15579 # Portland Group f77 and f90 compilers
15580 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'
15581 tmp_addflag=' $pic_flag -Mnomain' ;;
15582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15583 tmp_addflag=' -i_dynamic' ;;
15584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15585 tmp_addflag=' -i_dynamic -nofor_main' ;;
15586 ifc* | ifort*) # Intel Fortran compiler
15587 tmp_addflag=' -nofor_main' ;;
15588 lf95*) # Lahey Fortran 8.1
15589 whole_archive_flag_spec=
15590 tmp_sharedflag='--shared' ;;
15591 nagfor*) # NAGFOR 5.3
15592 tmp_sharedflag='-Wl,-shared' ;;
15593 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15594 tmp_sharedflag='-qmkshrobj'
15595 tmp_addflag= ;;
15596 nvcc*) # Cuda Compiler Driver 2.2
15597 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'
15598 compiler_needs_object=yes
15599 ;;
15600 esac
15601 case `$CC -V 2>&1 | sed 5q` in
15602 *Sun\ C*) # Sun C 5.9
15603 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'
15604 compiler_needs_object=yes
15605 tmp_sharedflag='-G' ;;
15606 *Sun\ F*) # Sun Fortran 8.3
15607 tmp_sharedflag='-G' ;;
15608 esac
15609 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15610
15611 if test yes = "$supports_anon_versioning"; then
15612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15614 echo "local: *; };" >> $output_objdir/$libname.ver~
15615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15616 fi
15617
15618 case $cc_basename in
15619 tcc*)
15620 export_dynamic_flag_spec='-rdynamic'
15621 ;;
15622 xlf* | bgf* | bgxlf* | mpixlf*)
15623 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15624 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15626 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15627 if test yes = "$supports_anon_versioning"; then
15628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15630 echo "local: *; };" >> $output_objdir/$libname.ver~
15631 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15632 fi
15633 ;;
15634 esac
15635 else
15636 ld_shlibs=no
15637 fi
15638 ;;
15639
15640 netbsd* | netbsdelf*-gnu)
15641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15643 wlarc=
15644 else
15645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15646 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15647 fi
15648 ;;
15649
15650 solaris*)
15651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15652 ld_shlibs=no
15653 cat <<_LT_EOF 1>&2
15654
15655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15656 *** create shared libraries on Solaris systems. Therefore, libtool
15657 *** is disabling shared libraries support. We urge you to upgrade GNU
15658 *** binutils to release 2.9.1 or newer. Another option is to modify
15659 *** your PATH or compiler configuration so that the native linker is
15660 *** used, and then restart.
15661
15662 _LT_EOF
15663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15666 else
15667 ld_shlibs=no
15668 fi
15669 ;;
15670
15671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15672 case `$LD -v 2>&1` in
15673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15674 ld_shlibs=no
15675 cat <<_LT_EOF 1>&2
15676
15677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15678 *** reliably create shared libraries on SCO systems. Therefore, libtool
15679 *** is disabling shared libraries support. We urge you to upgrade GNU
15680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15681 *** your PATH or compiler configuration so that the native linker is
15682 *** used, and then restart.
15683
15684 _LT_EOF
15685 ;;
15686 *)
15687 # For security reasons, it is highly recommended that you always
15688 # use absolute paths for naming shared libraries, and exclude the
15689 # DT_RUNPATH tag from executables and libraries. But doing so
15690 # requires that you compile everything twice, which is a pain.
15691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15695 else
15696 ld_shlibs=no
15697 fi
15698 ;;
15699 esac
15700 ;;
15701
15702 sunos4*)
15703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15704 wlarc=
15705 hardcode_direct=yes
15706 hardcode_shlibpath_var=no
15707 ;;
15708
15709 *)
15710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15713 else
15714 ld_shlibs=no
15715 fi
15716 ;;
15717 esac
15718
15719 if test no = "$ld_shlibs"; then
15720 runpath_var=
15721 hardcode_libdir_flag_spec=
15722 export_dynamic_flag_spec=
15723 whole_archive_flag_spec=
15724 fi
15725 else
15726 # PORTME fill in a description of your system's linker (not GNU ld)
15727 case $host_os in
15728 aix3*)
15729 allow_undefined_flag=unsupported
15730 always_export_symbols=yes
15731 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'
15732 # Note: this linker hardcodes the directories in LIBPATH if there
15733 # are no directories specified by -L.
15734 hardcode_minus_L=yes
15735 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15736 # Neither direct hardcoding nor static linking is supported with a
15737 # broken collect2.
15738 hardcode_direct=unsupported
15739 fi
15740 ;;
15741
15742 aix[4-9]*)
15743 if test ia64 = "$host_cpu"; then
15744 # On IA64, the linker does run time linking by default, so we don't
15745 # have to do anything special.
15746 aix_use_runtimelinking=no
15747 exp_sym_flag='-Bexport'
15748 no_entry_flag=
15749 else
15750 # If we're using GNU nm, then we don't want the "-C" option.
15751 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15752 # Without the "-l" option, or with the "-B" option, AIX nm treats
15753 # weak defined symbols like other global defined symbols, whereas
15754 # GNU nm marks them as "W".
15755 # While the 'weak' keyword is ignored in the Export File, we need
15756 # it in the Import File for the 'aix-soname' feature, so we have
15757 # to replace the "-B" option with "-P" for AIX nm.
15758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15759 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15760 else
15761 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15762 fi
15763 aix_use_runtimelinking=no
15764
15765 # Test if we are trying to use run time linking or normal
15766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15767 # have runtime linking enabled, and use it for executables.
15768 # For shared libraries, we enable/disable runtime linking
15769 # depending on the kind of the shared library created -
15770 # when "with_aix_soname,aix_use_runtimelinking" is:
15771 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15772 # "aix,yes" lib.so shared, rtl:yes, for executables
15773 # lib.a static archive
15774 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15775 # lib.a(lib.so.V) shared, rtl:no, for executables
15776 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15777 # lib.a(lib.so.V) shared, rtl:no
15778 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15779 # lib.a static archive
15780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15781 for ld_flag in $LDFLAGS; do
15782 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15783 aix_use_runtimelinking=yes
15784 break
15785 fi
15786 done
15787 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15788 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15789 # so we don't have lib.a shared libs to link our executables.
15790 # We have to force runtime linking in this case.
15791 aix_use_runtimelinking=yes
15792 LDFLAGS="$LDFLAGS -Wl,-brtl"
15793 fi
15794 ;;
15795 esac
15796
15797 exp_sym_flag='-bexport'
15798 no_entry_flag='-bnoentry'
15799 fi
15800
15801 # When large executables or shared objects are built, AIX ld can
15802 # have problems creating the table of contents. If linking a library
15803 # or program results in "error TOC overflow" add -mminimal-toc to
15804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15806
15807 archive_cmds=''
15808 hardcode_direct=yes
15809 hardcode_direct_absolute=yes
15810 hardcode_libdir_separator=':'
15811 link_all_deplibs=yes
15812 file_list_spec='$wl-f,'
15813 case $with_aix_soname,$aix_use_runtimelinking in
15814 aix,*) ;; # traditional, no import file
15815 svr4,* | *,yes) # use import file
15816 # The Import File defines what to hardcode.
15817 hardcode_direct=no
15818 hardcode_direct_absolute=no
15819 ;;
15820 esac
15821
15822 if test yes = "$GCC"; then
15823 case $host_os in aix4.[012]|aix4.[012].*)
15824 # We only want to do this on AIX 4.2 and lower, the check
15825 # below for broken collect2 doesn't work under 4.3+
15826 collect2name=`$CC -print-prog-name=collect2`
15827 if test -f "$collect2name" &&
15828 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15829 then
15830 # We have reworked collect2
15831 :
15832 else
15833 # We have old collect2
15834 hardcode_direct=unsupported
15835 # It fails to find uninstalled libraries when the uninstalled
15836 # path is not listed in the libpath. Setting hardcode_minus_L
15837 # to unsupported forces relinking
15838 hardcode_minus_L=yes
15839 hardcode_libdir_flag_spec='-L$libdir'
15840 hardcode_libdir_separator=
15841 fi
15842 ;;
15843 esac
15844 shared_flag='-shared'
15845 if test yes = "$aix_use_runtimelinking"; then
15846 shared_flag="$shared_flag "'$wl-G'
15847 fi
15848 # Need to ensure runtime linking is disabled for the traditional
15849 # shared library, or the linker may eventually find shared libraries
15850 # /with/ Import File - we do not want to mix them.
15851 shared_flag_aix='-shared'
15852 shared_flag_svr4='-shared $wl-G'
15853 else
15854 # not using gcc
15855 if test ia64 = "$host_cpu"; then
15856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15857 # chokes on -Wl,-G. The following line is correct:
15858 shared_flag='-G'
15859 else
15860 if test yes = "$aix_use_runtimelinking"; then
15861 shared_flag='$wl-G'
15862 else
15863 shared_flag='$wl-bM:SRE'
15864 fi
15865 shared_flag_aix='$wl-bM:SRE'
15866 shared_flag_svr4='$wl-G'
15867 fi
15868 fi
15869
15870 export_dynamic_flag_spec='$wl-bexpall'
15871 # It seems that -bexpall does not export symbols beginning with
15872 # underscore (_), so it is better to generate a list of symbols to export.
15873 always_export_symbols=yes
15874 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15875 # Warning - without using the other runtime loading flags (-brtl),
15876 # -berok will link without error, but may produce a broken library.
15877 allow_undefined_flag='-berok'
15878 # Determine the default libpath from the value encoded in an
15879 # empty executable.
15880 if test set = "${lt_cv_aix_libpath+set}"; then
15881 aix_libpath=$lt_cv_aix_libpath
15882 else
15883 if ${lt_cv_aix_libpath_+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888
15889 int
15890 main ()
15891 {
15892
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"; then :
15898
15899 lt_aix_libpath_sed='
15900 /Import File Strings/,/^$/ {
15901 /^0/ {
15902 s/^0 *\([^ ]*\) *$/\1/
15903 p
15904 }
15905 }'
15906 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15907 # Check for a 64-bit object if we didn't find anything.
15908 if test -z "$lt_cv_aix_libpath_"; then
15909 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15910 fi
15911 fi
15912 rm -f core conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 if test -z "$lt_cv_aix_libpath_"; then
15915 lt_cv_aix_libpath_=/usr/lib:/lib
15916 fi
15917
15918 fi
15919
15920 aix_libpath=$lt_cv_aix_libpath_
15921 fi
15922
15923 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15924 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15925 else
15926 if test ia64 = "$host_cpu"; then
15927 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15928 allow_undefined_flag="-z nodefs"
15929 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"
15930 else
15931 # Determine the default libpath from the value encoded in an
15932 # empty executable.
15933 if test set = "${lt_cv_aix_libpath+set}"; then
15934 aix_libpath=$lt_cv_aix_libpath
15935 else
15936 if ${lt_cv_aix_libpath_+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941
15942 int
15943 main ()
15944 {
15945
15946 ;
15947 return 0;
15948 }
15949 _ACEOF
15950 if ac_fn_c_try_link "$LINENO"; then :
15951
15952 lt_aix_libpath_sed='
15953 /Import File Strings/,/^$/ {
15954 /^0/ {
15955 s/^0 *\([^ ]*\) *$/\1/
15956 p
15957 }
15958 }'
15959 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15960 # Check for a 64-bit object if we didn't find anything.
15961 if test -z "$lt_cv_aix_libpath_"; then
15962 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15963 fi
15964 fi
15965 rm -f core conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
15967 if test -z "$lt_cv_aix_libpath_"; then
15968 lt_cv_aix_libpath_=/usr/lib:/lib
15969 fi
15970
15971 fi
15972
15973 aix_libpath=$lt_cv_aix_libpath_
15974 fi
15975
15976 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15977 # Warning - without using the other run time loading flags,
15978 # -berok will link without error, but may produce a broken library.
15979 no_undefined_flag=' $wl-bernotok'
15980 allow_undefined_flag=' $wl-berok'
15981 if test yes = "$with_gnu_ld"; then
15982 # We only use this code for GNU lds that support --whole-archive.
15983 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15984 else
15985 # Exported symbols can be pulled into shared objects from archives
15986 whole_archive_flag_spec='$convenience'
15987 fi
15988 archive_cmds_need_lc=yes
15989 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15990 # -brtl affects multiple linker settings, -berok does not and is overridden later
15991 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15992 if test svr4 != "$with_aix_soname"; then
15993 # This is similar to how AIX traditionally builds its shared libraries.
15994 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15995 fi
15996 if test aix != "$with_aix_soname"; then
15997 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15998 else
15999 # used by -dlpreopen to get the symbols
16000 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16001 fi
16002 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16003 fi
16004 fi
16005 ;;
16006
16007 amigaos*)
16008 case $host_cpu in
16009 powerpc)
16010 # see comment about AmigaOS4 .so support
16011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16012 archive_expsym_cmds=''
16013 ;;
16014 m68k)
16015 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)'
16016 hardcode_libdir_flag_spec='-L$libdir'
16017 hardcode_minus_L=yes
16018 ;;
16019 esac
16020 ;;
16021
16022 bsdi[45]*)
16023 export_dynamic_flag_spec=-rdynamic
16024 ;;
16025
16026 cygwin* | mingw* | pw32* | cegcc*)
16027 # When not using gcc, we currently assume that we are using
16028 # Microsoft Visual C++.
16029 # hardcode_libdir_flag_spec is actually meaningless, as there is
16030 # no search path for DLLs.
16031 case $cc_basename in
16032 cl*)
16033 # Native MSVC
16034 hardcode_libdir_flag_spec=' '
16035 allow_undefined_flag=unsupported
16036 always_export_symbols=yes
16037 file_list_spec='@'
16038 # Tell ltmain to make .lib files, not .a files.
16039 libext=lib
16040 # Tell ltmain to make .dll files, not .so files.
16041 shrext_cmds=.dll
16042 # FIXME: Setting linknames here is a bad hack.
16043 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16044 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16045 cp "$export_symbols" "$output_objdir/$soname.def";
16046 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16047 else
16048 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16049 fi~
16050 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16051 linknames='
16052 # The linker will not automatically build a static lib if we build a DLL.
16053 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16054 enable_shared_with_static_runtimes=yes
16055 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16057 # Don't use ranlib
16058 old_postinstall_cmds='chmod 644 $oldlib'
16059 postlink_cmds='lt_outputfile="@OUTPUT@"~
16060 lt_tool_outputfile="@TOOL_OUTPUT@"~
16061 case $lt_outputfile in
16062 *.exe|*.EXE) ;;
16063 *)
16064 lt_outputfile=$lt_outputfile.exe
16065 lt_tool_outputfile=$lt_tool_outputfile.exe
16066 ;;
16067 esac~
16068 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16069 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16070 $RM "$lt_outputfile.manifest";
16071 fi'
16072 ;;
16073 *)
16074 # Assume MSVC wrapper
16075 hardcode_libdir_flag_spec=' '
16076 allow_undefined_flag=unsupported
16077 # Tell ltmain to make .lib files, not .a files.
16078 libext=lib
16079 # Tell ltmain to make .dll files, not .so files.
16080 shrext_cmds=.dll
16081 # FIXME: Setting linknames here is a bad hack.
16082 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16083 # The linker will automatically build a .lib file if we build a DLL.
16084 old_archive_from_new_cmds='true'
16085 # FIXME: Should let the user specify the lib program.
16086 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16087 enable_shared_with_static_runtimes=yes
16088 ;;
16089 esac
16090 ;;
16091
16092 darwin* | rhapsody*)
16093
16094
16095 archive_cmds_need_lc=no
16096 hardcode_direct=no
16097 hardcode_automatic=yes
16098 hardcode_shlibpath_var=unsupported
16099 if test yes = "$lt_cv_ld_force_load"; then
16100 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\"`'
16101
16102 else
16103 whole_archive_flag_spec=''
16104 fi
16105 link_all_deplibs=yes
16106 allow_undefined_flag=$_lt_dar_allow_undefined
16107 case $cc_basename in
16108 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16109 *) _lt_dar_can_shared=$GCC ;;
16110 esac
16111 if test yes = "$_lt_dar_can_shared"; then
16112 output_verbose_link_cmd=func_echo_all
16113 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16114 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16115 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"
16116 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"
16117
16118 else
16119 ld_shlibs=no
16120 fi
16121
16122 ;;
16123
16124 dgux*)
16125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_libdir_flag_spec='-L$libdir'
16127 hardcode_shlibpath_var=no
16128 ;;
16129
16130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16131 # support. Future versions do this automatically, but an explicit c++rt0.o
16132 # does not break anything, and helps significantly (at the cost of a little
16133 # extra space).
16134 freebsd2.2*)
16135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16136 hardcode_libdir_flag_spec='-R$libdir'
16137 hardcode_direct=yes
16138 hardcode_shlibpath_var=no
16139 ;;
16140
16141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16142 freebsd2.*)
16143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_direct=yes
16145 hardcode_minus_L=yes
16146 hardcode_shlibpath_var=no
16147 ;;
16148
16149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16150 freebsd* | dragonfly*)
16151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16152 hardcode_libdir_flag_spec='-R$libdir'
16153 hardcode_direct=yes
16154 hardcode_shlibpath_var=no
16155 ;;
16156
16157 hpux9*)
16158 if test yes = "$GCC"; then
16159 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16160 else
16161 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16162 fi
16163 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16164 hardcode_libdir_separator=:
16165 hardcode_direct=yes
16166
16167 # hardcode_minus_L: Not really in the search PATH,
16168 # but as the default location of the library.
16169 hardcode_minus_L=yes
16170 export_dynamic_flag_spec='$wl-E'
16171 ;;
16172
16173 hpux10*)
16174 if test yes,no = "$GCC,$with_gnu_ld"; then
16175 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16176 else
16177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16178 fi
16179 if test no = "$with_gnu_ld"; then
16180 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16181 hardcode_libdir_separator=:
16182 hardcode_direct=yes
16183 hardcode_direct_absolute=yes
16184 export_dynamic_flag_spec='$wl-E'
16185 # hardcode_minus_L: Not really in the search PATH,
16186 # but as the default location of the library.
16187 hardcode_minus_L=yes
16188 fi
16189 ;;
16190
16191 hpux11*)
16192 if test yes,no = "$GCC,$with_gnu_ld"; then
16193 case $host_cpu in
16194 hppa*64*)
16195 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 ;;
16197 ia64*)
16198 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16199 ;;
16200 *)
16201 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16202 ;;
16203 esac
16204 else
16205 case $host_cpu in
16206 hppa*64*)
16207 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 ;;
16209 ia64*)
16210 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 ;;
16212 *)
16213
16214 # Older versions of the 11.00 compiler do not understand -b yet
16215 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16217 $as_echo_n "checking if $CC understands -b... " >&6; }
16218 if ${lt_cv_prog_compiler__b+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 lt_cv_prog_compiler__b=no
16222 save_LDFLAGS=$LDFLAGS
16223 LDFLAGS="$LDFLAGS -b"
16224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16226 # The linker can only warn and ignore the option if not recognized
16227 # So say no if there are warnings
16228 if test -s conftest.err; then
16229 # Append any errors to the config.log.
16230 cat conftest.err 1>&5
16231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233 if diff conftest.exp conftest.er2 >/dev/null; then
16234 lt_cv_prog_compiler__b=yes
16235 fi
16236 else
16237 lt_cv_prog_compiler__b=yes
16238 fi
16239 fi
16240 $RM -r conftest*
16241 LDFLAGS=$save_LDFLAGS
16242
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16245 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16246
16247 if test yes = "$lt_cv_prog_compiler__b"; then
16248 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16249 else
16250 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16251 fi
16252
16253 ;;
16254 esac
16255 fi
16256 if test no = "$with_gnu_ld"; then
16257 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16258 hardcode_libdir_separator=:
16259
16260 case $host_cpu in
16261 hppa*64*|ia64*)
16262 hardcode_direct=no
16263 hardcode_shlibpath_var=no
16264 ;;
16265 *)
16266 hardcode_direct=yes
16267 hardcode_direct_absolute=yes
16268 export_dynamic_flag_spec='$wl-E'
16269
16270 # hardcode_minus_L: Not really in the search PATH,
16271 # but as the default location of the library.
16272 hardcode_minus_L=yes
16273 ;;
16274 esac
16275 fi
16276 ;;
16277
16278 irix5* | irix6* | nonstopux*)
16279 if test yes = "$GCC"; then
16280 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'
16281 # Try to use the -exported_symbol ld option, if it does not
16282 # work, assume that -exports_file does not work either and
16283 # implicitly export all symbols.
16284 # This should be the same for all languages, so no per-tag cache variable.
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16286 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16287 if ${lt_cv_irix_exported_symbol+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 save_LDFLAGS=$LDFLAGS
16291 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 int foo (void) { return 0; }
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 lt_cv_irix_exported_symbol=yes
16298 else
16299 lt_cv_irix_exported_symbol=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16303 LDFLAGS=$save_LDFLAGS
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16306 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16307 if test yes = "$lt_cv_irix_exported_symbol"; then
16308 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'
16309 fi
16310 link_all_deplibs=no
16311 else
16312 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'
16313 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'
16314 fi
16315 archive_cmds_need_lc='no'
16316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16317 hardcode_libdir_separator=:
16318 inherit_rpath=yes
16319 link_all_deplibs=yes
16320 ;;
16321
16322 linux*)
16323 case $cc_basename in
16324 tcc*)
16325 # Fabrice Bellard et al's Tiny C Compiler
16326 ld_shlibs=yes
16327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328 ;;
16329 esac
16330 ;;
16331
16332 netbsd* | netbsdelf*-gnu)
16333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16335 else
16336 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16337 fi
16338 hardcode_libdir_flag_spec='-R$libdir'
16339 hardcode_direct=yes
16340 hardcode_shlibpath_var=no
16341 ;;
16342
16343 newsos6)
16344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16345 hardcode_direct=yes
16346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16347 hardcode_libdir_separator=:
16348 hardcode_shlibpath_var=no
16349 ;;
16350
16351 *nto* | *qnx*)
16352 ;;
16353
16354 openbsd* | bitrig*)
16355 if test -f /usr/libexec/ld.so; then
16356 hardcode_direct=yes
16357 hardcode_shlibpath_var=no
16358 hardcode_direct_absolute=yes
16359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16361 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16362 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16363 export_dynamic_flag_spec='$wl-E'
16364 else
16365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16366 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16367 fi
16368 else
16369 ld_shlibs=no
16370 fi
16371 ;;
16372
16373 os2*)
16374 hardcode_libdir_flag_spec='-L$libdir'
16375 hardcode_minus_L=yes
16376 allow_undefined_flag=unsupported
16377 shrext_cmds=.dll
16378 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16379 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16380 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16381 $ECHO EXPORTS >> $output_objdir/$libname.def~
16382 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16383 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16384 emximp -o $lib $output_objdir/$libname.def'
16385 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16386 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16387 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16388 $ECHO EXPORTS >> $output_objdir/$libname.def~
16389 prefix_cmds="$SED"~
16390 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16391 prefix_cmds="$prefix_cmds -e 1d";
16392 fi~
16393 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16394 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16395 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16396 emximp -o $lib $output_objdir/$libname.def'
16397 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16398 enable_shared_with_static_runtimes=yes
16399 ;;
16400
16401 osf3*)
16402 if test yes = "$GCC"; then
16403 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16404 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'
16405 else
16406 allow_undefined_flag=' -expect_unresolved \*'
16407 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'
16408 fi
16409 archive_cmds_need_lc='no'
16410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16411 hardcode_libdir_separator=:
16412 ;;
16413
16414 osf4* | osf5*) # as osf3* with the addition of -msym flag
16415 if test yes = "$GCC"; then
16416 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16417 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'
16418 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16419 else
16420 allow_undefined_flag=' -expect_unresolved \*'
16421 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'
16422 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~
16423 $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'
16424
16425 # Both c and cxx compiler support -rpath directly
16426 hardcode_libdir_flag_spec='-rpath $libdir'
16427 fi
16428 archive_cmds_need_lc='no'
16429 hardcode_libdir_separator=:
16430 ;;
16431
16432 solaris*)
16433 no_undefined_flag=' -z defs'
16434 if test yes = "$GCC"; then
16435 wlarc='$wl'
16436 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16438 $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'
16439 else
16440 case `$CC -V 2>&1` in
16441 *"Compilers 5.0"*)
16442 wlarc=''
16443 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16445 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16446 ;;
16447 *)
16448 wlarc='$wl'
16449 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16451 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16452 ;;
16453 esac
16454 fi
16455 hardcode_libdir_flag_spec='-R$libdir'
16456 hardcode_shlibpath_var=no
16457 case $host_os in
16458 solaris2.[0-5] | solaris2.[0-5].*) ;;
16459 *)
16460 # The compiler driver will combine and reorder linker options,
16461 # but understands '-z linker_flag'. GCC discards it without '$wl',
16462 # but is careful enough not to reorder.
16463 # Supported since Solaris 2.6 (maybe 2.5.1?)
16464 if test yes = "$GCC"; then
16465 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16466 else
16467 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16468 fi
16469 ;;
16470 esac
16471 link_all_deplibs=yes
16472 ;;
16473
16474 sunos4*)
16475 if test sequent = "$host_vendor"; then
16476 # Use $CC to link under sequent, because it throws in some extra .o
16477 # files that make .init and .fini sections work.
16478 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16479 else
16480 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16481 fi
16482 hardcode_libdir_flag_spec='-L$libdir'
16483 hardcode_direct=yes
16484 hardcode_minus_L=yes
16485 hardcode_shlibpath_var=no
16486 ;;
16487
16488 sysv4)
16489 case $host_vendor in
16490 sni)
16491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 hardcode_direct=yes # is this really true???
16493 ;;
16494 siemens)
16495 ## LD is ld it makes a PLAMLIB
16496 ## CC just makes a GrossModule.
16497 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16498 reload_cmds='$CC -r -o $output$reload_objs'
16499 hardcode_direct=no
16500 ;;
16501 motorola)
16502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16504 ;;
16505 esac
16506 runpath_var='LD_RUN_PATH'
16507 hardcode_shlibpath_var=no
16508 ;;
16509
16510 sysv4.3*)
16511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_shlibpath_var=no
16513 export_dynamic_flag_spec='-Bexport'
16514 ;;
16515
16516 sysv4*MP*)
16517 if test -d /usr/nec; then
16518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16519 hardcode_shlibpath_var=no
16520 runpath_var=LD_RUN_PATH
16521 hardcode_runpath_var=yes
16522 ld_shlibs=yes
16523 fi
16524 ;;
16525
16526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16527 no_undefined_flag='$wl-z,text'
16528 archive_cmds_need_lc=no
16529 hardcode_shlibpath_var=no
16530 runpath_var='LD_RUN_PATH'
16531
16532 if test yes = "$GCC"; then
16533 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 else
16536 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 fi
16539 ;;
16540
16541 sysv5* | sco3.2v5* | sco5v6*)
16542 # Note: We CANNOT use -z defs as we might desire, because we do not
16543 # link with -lc, and that would cause any symbols used from libc to
16544 # always be unresolved, which means just about no library would
16545 # ever link correctly. If we're not using GNU ld we use -z text
16546 # though, which does catch some bad symbols but isn't as heavy-handed
16547 # as -z defs.
16548 no_undefined_flag='$wl-z,text'
16549 allow_undefined_flag='$wl-z,nodefs'
16550 archive_cmds_need_lc=no
16551 hardcode_shlibpath_var=no
16552 hardcode_libdir_flag_spec='$wl-R,$libdir'
16553 hardcode_libdir_separator=':'
16554 link_all_deplibs=yes
16555 export_dynamic_flag_spec='$wl-Bexport'
16556 runpath_var='LD_RUN_PATH'
16557
16558 if test yes = "$GCC"; then
16559 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 else
16562 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 fi
16565 ;;
16566
16567 uts4*)
16568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16569 hardcode_libdir_flag_spec='-L$libdir'
16570 hardcode_shlibpath_var=no
16571 ;;
16572
16573 *)
16574 ld_shlibs=no
16575 ;;
16576 esac
16577
16578 if test sni = "$host_vendor"; then
16579 case $host in
16580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16581 export_dynamic_flag_spec='$wl-Blargedynsym'
16582 ;;
16583 esac
16584 fi
16585 fi
16586
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16588 $as_echo "$ld_shlibs" >&6; }
16589 test no = "$ld_shlibs" && can_build_shared=no
16590
16591 with_gnu_ld=$with_gnu_ld
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607 #
16608 # Do we need to explicitly link libc?
16609 #
16610 case "x$archive_cmds_need_lc" in
16611 x|xyes)
16612 # Assume -lc should be added
16613 archive_cmds_need_lc=yes
16614
16615 if test yes,yes = "$GCC,$enable_shared"; then
16616 case $archive_cmds in
16617 *'~'*)
16618 # FIXME: we may have to deal with multi-command sequences.
16619 ;;
16620 '$CC '*)
16621 # Test whether the compiler implicitly links with -lc since on some
16622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16623 # to ld, don't add -lc before -lgcc.
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16625 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16626 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16627 $as_echo_n "(cached) " >&6
16628 else
16629 $RM conftest*
16630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16631
16632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16633 (eval $ac_compile) 2>&5
16634 ac_status=$?
16635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16636 test $ac_status = 0; } 2>conftest.err; then
16637 soname=conftest
16638 lib=conftest
16639 libobjs=conftest.$ac_objext
16640 deplibs=
16641 wl=$lt_prog_compiler_wl
16642 pic_flag=$lt_prog_compiler_pic
16643 compiler_flags=-v
16644 linker_flags=-v
16645 verstring=
16646 output_objdir=.
16647 libname=conftest
16648 lt_save_allow_undefined_flag=$allow_undefined_flag
16649 allow_undefined_flag=
16650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16652 ac_status=$?
16653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16654 test $ac_status = 0; }
16655 then
16656 lt_cv_archive_cmds_need_lc=no
16657 else
16658 lt_cv_archive_cmds_need_lc=yes
16659 fi
16660 allow_undefined_flag=$lt_save_allow_undefined_flag
16661 else
16662 cat conftest.err 1>&5
16663 fi
16664 $RM conftest*
16665
16666 fi
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16668 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16669 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16670 ;;
16671 esac
16672 fi
16673 ;;
16674 esac
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16828 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16829
16830 if test yes = "$GCC"; then
16831 case $host_os in
16832 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16833 *) lt_awk_arg='/^libraries:/' ;;
16834 esac
16835 case $host_os in
16836 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16837 *) lt_sed_strip_eq='s|=/|/|g' ;;
16838 esac
16839 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16840 case $lt_search_path_spec in
16841 *\;*)
16842 # if the path contains ";" then we assume it to be the separator
16843 # otherwise default to the standard path separator (i.e. ":") - it is
16844 # assumed that no part of a normal pathname contains ";" but that should
16845 # okay in the real world where ";" in dirpaths is itself problematic.
16846 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16847 ;;
16848 *)
16849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16850 ;;
16851 esac
16852 # Ok, now we have the path, separated by spaces, we can step through it
16853 # and add multilib dir if necessary...
16854 lt_tmp_lt_search_path_spec=
16855 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16856 # ...but if some path component already ends with the multilib dir we assume
16857 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16858 case "$lt_multi_os_dir; $lt_search_path_spec " in
16859 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16860 lt_multi_os_dir=
16861 ;;
16862 esac
16863 for lt_sys_path in $lt_search_path_spec; do
16864 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16866 elif test -n "$lt_multi_os_dir"; then
16867 test -d "$lt_sys_path" && \
16868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16869 fi
16870 done
16871 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16872 BEGIN {RS = " "; FS = "/|\n";} {
16873 lt_foo = "";
16874 lt_count = 0;
16875 for (lt_i = NF; lt_i > 0; lt_i--) {
16876 if ($lt_i != "" && $lt_i != ".") {
16877 if ($lt_i == "..") {
16878 lt_count++;
16879 } else {
16880 if (lt_count == 0) {
16881 lt_foo = "/" $lt_i lt_foo;
16882 } else {
16883 lt_count--;
16884 }
16885 }
16886 }
16887 }
16888 if (lt_foo != "") { lt_freq[lt_foo]++; }
16889 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16890 }'`
16891 # AWK program above erroneously prepends '/' to C:/dos/paths
16892 # for these hosts.
16893 case $host_os in
16894 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16895 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16896 esac
16897 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16898 else
16899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16900 fi
16901 library_names_spec=
16902 libname_spec='lib$name'
16903 soname_spec=
16904 shrext_cmds=.so
16905 postinstall_cmds=
16906 postuninstall_cmds=
16907 finish_cmds=
16908 finish_eval=
16909 shlibpath_var=
16910 shlibpath_overrides_runpath=unknown
16911 version_type=none
16912 dynamic_linker="$host_os ld.so"
16913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16914 need_lib_prefix=unknown
16915 hardcode_into_libs=no
16916
16917 # when you set need_version to no, make sure it does not cause -set_version
16918 # flags to be left without arguments
16919 need_version=unknown
16920
16921
16922
16923 case $host_os in
16924 aix3*)
16925 version_type=linux # correct to gnu/linux during the next big refactor
16926 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16927 shlibpath_var=LIBPATH
16928
16929 # AIX 3 has no versioning support, so we append a major version to the name.
16930 soname_spec='$libname$release$shared_ext$major'
16931 ;;
16932
16933 aix[4-9]*)
16934 version_type=linux # correct to gnu/linux during the next big refactor
16935 need_lib_prefix=no
16936 need_version=no
16937 hardcode_into_libs=yes
16938 if test ia64 = "$host_cpu"; then
16939 # AIX 5 supports IA64
16940 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 else
16943 # With GCC up to 2.95.x, collect2 would create an import file
16944 # for dependence libraries. The import file would start with
16945 # the line '#! .'. This would cause the generated library to
16946 # depend on '.', always an invalid library. This was fixed in
16947 # development snapshots of GCC prior to 3.0.
16948 case $host_os in
16949 aix4 | aix4.[01] | aix4.[01].*)
16950 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16951 echo ' yes '
16952 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16953 :
16954 else
16955 can_build_shared=no
16956 fi
16957 ;;
16958 esac
16959 # Using Import Files as archive members, it is possible to support
16960 # filename-based versioning of shared library archives on AIX. While
16961 # this would work for both with and without runtime linking, it will
16962 # prevent static linking of such archives. So we do filename-based
16963 # shared library versioning with .so extension only, which is used
16964 # when both runtime linking and shared linking is enabled.
16965 # Unfortunately, runtime linking may impact performance, so we do
16966 # not want this to be the default eventually. Also, we use the
16967 # versioned .so libs for executables only if there is the -brtl
16968 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16969 # To allow for filename-based versioning support, we need to create
16970 # libNAME.so.V as an archive file, containing:
16971 # *) an Import File, referring to the versioned filename of the
16972 # archive as well as the shared archive member, telling the
16973 # bitwidth (32 or 64) of that shared object, and providing the
16974 # list of exported symbols of that shared object, eventually
16975 # decorated with the 'weak' keyword
16976 # *) the shared object with the F_LOADONLY flag set, to really avoid
16977 # it being seen by the linker.
16978 # At run time we better use the real file rather than another symlink,
16979 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16980
16981 case $with_aix_soname,$aix_use_runtimelinking in
16982 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16983 # soname into executable. Probably we can add versioning support to
16984 # collect2, so additional links can be useful in future.
16985 aix,yes) # traditional libtool
16986 dynamic_linker='AIX unversionable lib.so'
16987 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16988 # instead of lib<name>.a to let people know that these are not
16989 # typical AIX shared libraries.
16990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16991 ;;
16992 aix,no) # traditional AIX only
16993 dynamic_linker='AIX lib.a(lib.so.V)'
16994 # We preserve .a as extension for shared libraries through AIX4.2
16995 # and later when we are not doing run time linking.
16996 library_names_spec='$libname$release.a $libname.a'
16997 soname_spec='$libname$release$shared_ext$major'
16998 ;;
16999 svr4,*) # full svr4 only
17000 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17001 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17002 # We do not specify a path in Import Files, so LIBPATH fires.
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005 *,yes) # both, prefer svr4
17006 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17007 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17008 # unpreferred sharedlib libNAME.a needs extra handling
17009 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17010 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17011 # We do not specify a path in Import Files, so LIBPATH fires.
17012 shlibpath_overrides_runpath=yes
17013 ;;
17014 *,no) # both, prefer aix
17015 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17016 library_names_spec='$libname$release.a $libname.a'
17017 soname_spec='$libname$release$shared_ext$major'
17018 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17019 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17020 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17021 ;;
17022 esac
17023 shlibpath_var=LIBPATH
17024 fi
17025 ;;
17026
17027 amigaos*)
17028 case $host_cpu in
17029 powerpc)
17030 # Since July 2007 AmigaOS4 officially supports .so libraries.
17031 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17033 ;;
17034 m68k)
17035 library_names_spec='$libname.ixlibrary $libname.a'
17036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17037 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17038 ;;
17039 esac
17040 ;;
17041
17042 beos*)
17043 library_names_spec='$libname$shared_ext'
17044 dynamic_linker="$host_os ld.so"
17045 shlibpath_var=LIBRARY_PATH
17046 ;;
17047
17048 bsdi[45]*)
17049 version_type=linux # correct to gnu/linux during the next big refactor
17050 need_version=no
17051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17052 soname_spec='$libname$release$shared_ext$major'
17053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17057 # the default ld.so.conf also contains /usr/contrib/lib and
17058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17059 # libtool to hard-code these into programs
17060 ;;
17061
17062 cygwin* | mingw* | pw32* | cegcc*)
17063 version_type=windows
17064 shrext_cmds=.dll
17065 need_version=no
17066 need_lib_prefix=no
17067
17068 case $GCC,$cc_basename in
17069 yes,*)
17070 # gcc
17071 library_names_spec='$libname.dll.a'
17072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17073 postinstall_cmds='base_file=`basename \$file`~
17074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17075 dldir=$destdir/`dirname \$dlpath`~
17076 test -d \$dldir || mkdir -p \$dldir~
17077 $install_prog $dir/$dlname \$dldir/$dlname~
17078 chmod a+x \$dldir/$dlname~
17079 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17080 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17081 fi'
17082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17083 dlpath=$dir/\$dldll~
17084 $RM \$dlpath'
17085 shlibpath_overrides_runpath=yes
17086
17087 case $host_os in
17088 cygwin*)
17089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17090 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17091
17092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17093 ;;
17094 mingw* | cegcc*)
17095 # MinGW DLLs use traditional 'lib' prefix
17096 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17097 ;;
17098 pw32*)
17099 # pw32 DLLs use 'pw' prefix rather than 'lib'
17100 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17101 ;;
17102 esac
17103 dynamic_linker='Win32 ld.exe'
17104 ;;
17105
17106 *,cl*)
17107 # Native MSVC
17108 libname_spec='$name'
17109 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17110 library_names_spec='$libname.dll.lib'
17111
17112 case $build_os in
17113 mingw*)
17114 sys_lib_search_path_spec=
17115 lt_save_ifs=$IFS
17116 IFS=';'
17117 for lt_path in $LIB
17118 do
17119 IFS=$lt_save_ifs
17120 # Let DOS variable expansion print the short 8.3 style file name.
17121 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17122 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17123 done
17124 IFS=$lt_save_ifs
17125 # Convert to MSYS style.
17126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17127 ;;
17128 cygwin*)
17129 # Convert to unix form, then to dos form, then back to unix form
17130 # but this time dos style (no spaces!) so that the unix form looks
17131 # like /cygdrive/c/PROGRA~1:/cygdr...
17132 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17133 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17134 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17135 ;;
17136 *)
17137 sys_lib_search_path_spec=$LIB
17138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17139 # It is most probably a Windows format PATH.
17140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17141 else
17142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17143 fi
17144 # FIXME: find the short name or the path components, as spaces are
17145 # common. (e.g. "Program Files" -> "PROGRA~1")
17146 ;;
17147 esac
17148
17149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17150 postinstall_cmds='base_file=`basename \$file`~
17151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17152 dldir=$destdir/`dirname \$dlpath`~
17153 test -d \$dldir || mkdir -p \$dldir~
17154 $install_prog $dir/$dlname \$dldir/$dlname'
17155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17156 dlpath=$dir/\$dldll~
17157 $RM \$dlpath'
17158 shlibpath_overrides_runpath=yes
17159 dynamic_linker='Win32 link.exe'
17160 ;;
17161
17162 *)
17163 # Assume MSVC wrapper
17164 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17165 dynamic_linker='Win32 ld.exe'
17166 ;;
17167 esac
17168 # FIXME: first we should search . and the directory the executable is in
17169 shlibpath_var=PATH
17170 ;;
17171
17172 darwin* | rhapsody*)
17173 dynamic_linker="$host_os dyld"
17174 version_type=darwin
17175 need_lib_prefix=no
17176 need_version=no
17177 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17178 soname_spec='$libname$release$major$shared_ext'
17179 shlibpath_overrides_runpath=yes
17180 shlibpath_var=DYLD_LIBRARY_PATH
17181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17182
17183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185 ;;
17186
17187 dgux*)
17188 version_type=linux # correct to gnu/linux during the next big refactor
17189 need_lib_prefix=no
17190 need_version=no
17191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17192 soname_spec='$libname$release$shared_ext$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 ;;
17195
17196 freebsd* | dragonfly*)
17197 # DragonFly does not have aout. When/if they implement a new
17198 # versioning mechanism, adjust this.
17199 if test -x /usr/bin/objformat; then
17200 objformat=`/usr/bin/objformat`
17201 else
17202 case $host_os in
17203 freebsd[23].*) objformat=aout ;;
17204 *) objformat=elf ;;
17205 esac
17206 fi
17207 version_type=freebsd-$objformat
17208 case $version_type in
17209 freebsd-elf*)
17210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17211 soname_spec='$libname$release$shared_ext$major'
17212 need_version=no
17213 need_lib_prefix=no
17214 ;;
17215 freebsd-*)
17216 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17217 need_version=yes
17218 ;;
17219 esac
17220 shlibpath_var=LD_LIBRARY_PATH
17221 case $host_os in
17222 freebsd2.*)
17223 shlibpath_overrides_runpath=yes
17224 ;;
17225 freebsd3.[01]* | freebsdelf3.[01]*)
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17228 ;;
17229 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17230 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17231 shlibpath_overrides_runpath=no
17232 hardcode_into_libs=yes
17233 ;;
17234 *) # from 4.6 on, and DragonFly
17235 shlibpath_overrides_runpath=yes
17236 hardcode_into_libs=yes
17237 ;;
17238 esac
17239 ;;
17240
17241 haiku*)
17242 version_type=linux # correct to gnu/linux during the next big refactor
17243 need_lib_prefix=no
17244 need_version=no
17245 dynamic_linker="$host_os runtime_loader"
17246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17247 soname_spec='$libname$release$shared_ext$major'
17248 shlibpath_var=LIBRARY_PATH
17249 shlibpath_overrides_runpath=no
17250 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17251 hardcode_into_libs=yes
17252 ;;
17253
17254 hpux9* | hpux10* | hpux11*)
17255 # Give a soname corresponding to the major version so that dld.sl refuses to
17256 # link against other versions.
17257 version_type=sunos
17258 need_lib_prefix=no
17259 need_version=no
17260 case $host_cpu in
17261 ia64*)
17262 shrext_cmds='.so'
17263 hardcode_into_libs=yes
17264 dynamic_linker="$host_os dld.so"
17265 shlibpath_var=LD_LIBRARY_PATH
17266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17268 soname_spec='$libname$release$shared_ext$major'
17269 if test 32 = "$HPUX_IA64_MODE"; then
17270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17271 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17272 else
17273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17274 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17275 fi
17276 ;;
17277 hppa*64*)
17278 shrext_cmds='.sl'
17279 hardcode_into_libs=yes
17280 dynamic_linker="$host_os dld.sl"
17281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17284 soname_spec='$libname$release$shared_ext$major'
17285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17287 ;;
17288 *)
17289 shrext_cmds='.sl'
17290 dynamic_linker="$host_os dld.sl"
17291 shlibpath_var=SHLIB_PATH
17292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17294 soname_spec='$libname$release$shared_ext$major'
17295 ;;
17296 esac
17297 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17298 postinstall_cmds='chmod 555 $lib'
17299 # or fails outright, so override atomically:
17300 install_override_mode=555
17301 ;;
17302
17303 interix[3-9]*)
17304 version_type=linux # correct to gnu/linux during the next big refactor
17305 need_lib_prefix=no
17306 need_version=no
17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17308 soname_spec='$libname$release$shared_ext$major'
17309 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath=no
17312 hardcode_into_libs=yes
17313 ;;
17314
17315 irix5* | irix6* | nonstopux*)
17316 case $host_os in
17317 nonstopux*) version_type=nonstopux ;;
17318 *)
17319 if test yes = "$lt_cv_prog_gnu_ld"; then
17320 version_type=linux # correct to gnu/linux during the next big refactor
17321 else
17322 version_type=irix
17323 fi ;;
17324 esac
17325 need_lib_prefix=no
17326 need_version=no
17327 soname_spec='$libname$release$shared_ext$major'
17328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17329 case $host_os in
17330 irix5* | nonstopux*)
17331 libsuff= shlibsuff=
17332 ;;
17333 *)
17334 case $LD in # libtool.m4 will add one of these switches to LD
17335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17336 libsuff= shlibsuff= libmagic=32-bit;;
17337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17338 libsuff=32 shlibsuff=N32 libmagic=N32;;
17339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17341 *) libsuff= shlibsuff= libmagic=never-match;;
17342 esac
17343 ;;
17344 esac
17345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17346 shlibpath_overrides_runpath=no
17347 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17348 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17349 hardcode_into_libs=yes
17350 ;;
17351
17352 # No shared lib support for Linux oldld, aout, or coff.
17353 linux*oldld* | linux*aout* | linux*coff*)
17354 dynamic_linker=no
17355 ;;
17356
17357 linux*android*)
17358 version_type=none # Android doesn't support versioned libraries.
17359 need_lib_prefix=no
17360 need_version=no
17361 library_names_spec='$libname$release$shared_ext'
17362 soname_spec='$libname$release$shared_ext'
17363 finish_cmds=
17364 shlibpath_var=LD_LIBRARY_PATH
17365 shlibpath_overrides_runpath=yes
17366
17367 # This implies no fast_install, which is unacceptable.
17368 # Some rework will be needed to allow for fast_install
17369 # before this can be enabled.
17370 hardcode_into_libs=yes
17371
17372 dynamic_linker='Android linker'
17373 # Don't embed -rpath directories since the linker doesn't support them.
17374 hardcode_libdir_flag_spec='-L$libdir'
17375 ;;
17376
17377 # This must be glibc/ELF.
17378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17379 version_type=linux # correct to gnu/linux during the next big refactor
17380 need_lib_prefix=no
17381 need_version=no
17382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17383 soname_spec='$libname$release$shared_ext$major'
17384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=no
17387
17388 # Some binutils ld are patched to set DT_RUNPATH
17389 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17392 lt_cv_shlibpath_overrides_runpath=no
17393 save_LDFLAGS=$LDFLAGS
17394 save_libdir=$libdir
17395 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17396 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399
17400 int
17401 main ()
17402 {
17403
17404 ;
17405 return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_c_try_link "$LINENO"; then :
17409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17410 lt_cv_shlibpath_overrides_runpath=yes
17411 fi
17412 fi
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LDFLAGS=$save_LDFLAGS
17416 libdir=$save_libdir
17417
17418 fi
17419
17420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17421
17422 # This implies no fast_install, which is unacceptable.
17423 # Some rework will be needed to allow for fast_install
17424 # before this can be enabled.
17425 hardcode_into_libs=yes
17426
17427 # Ideally, we could use ldconfig to report *all* directores which are
17428 # searched for libraries, however this is still not possible. Aside from not
17429 # being certain /sbin/ldconfig is available, command
17430 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17431 # even though it is searched at run-time. Try to do the best guess by
17432 # appending ld.so.conf contents (and includes) to the search path.
17433 if test -f /etc/ld.so.conf; then
17434 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' ' '`
17435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17436 fi
17437
17438 # We used to test for /lib/ld.so.1 and disable shared libraries on
17439 # powerpc, because MkLinux only supported shared libraries with the
17440 # GNU dynamic linker. Since this was broken with cross compilers,
17441 # most powerpc-linux boxes support dynamic linking these days and
17442 # people can always --disable-shared, the test was removed, and we
17443 # assume the GNU/Linux dynamic linker is in use.
17444 dynamic_linker='GNU/Linux ld.so'
17445 ;;
17446
17447 netbsdelf*-gnu)
17448 version_type=linux
17449 need_lib_prefix=no
17450 need_version=no
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=no
17455 hardcode_into_libs=yes
17456 dynamic_linker='NetBSD ld.elf_so'
17457 ;;
17458
17459 netbsd*)
17460 version_type=sunos
17461 need_lib_prefix=no
17462 need_version=no
17463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17466 dynamic_linker='NetBSD (a.out) ld.so'
17467 else
17468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469 soname_spec='$libname$release$shared_ext$major'
17470 dynamic_linker='NetBSD ld.elf_so'
17471 fi
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=yes
17474 hardcode_into_libs=yes
17475 ;;
17476
17477 newsos6)
17478 version_type=linux # correct to gnu/linux during the next big refactor
17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=yes
17482 ;;
17483
17484 *nto* | *qnx*)
17485 version_type=qnx
17486 need_lib_prefix=no
17487 need_version=no
17488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17489 soname_spec='$libname$release$shared_ext$major'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 shlibpath_overrides_runpath=no
17492 hardcode_into_libs=yes
17493 dynamic_linker='ldqnx.so'
17494 ;;
17495
17496 openbsd* | bitrig*)
17497 version_type=sunos
17498 sys_lib_dlsearch_path_spec=/usr/lib
17499 need_lib_prefix=no
17500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17501 need_version=no
17502 else
17503 need_version=yes
17504 fi
17505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 shlibpath_overrides_runpath=yes
17509 ;;
17510
17511 os2*)
17512 libname_spec='$name'
17513 version_type=windows
17514 shrext_cmds=.dll
17515 need_version=no
17516 need_lib_prefix=no
17517 # OS/2 can only load a DLL with a base name of 8 characters or less.
17518 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17519 v=$($ECHO $release$versuffix | tr -d .-);
17520 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17521 $ECHO $n$v`$shared_ext'
17522 library_names_spec='${libname}_dll.$libext'
17523 dynamic_linker='OS/2 ld.exe'
17524 shlibpath_var=BEGINLIBPATH
17525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17527 postinstall_cmds='base_file=`basename \$file`~
17528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17529 dldir=$destdir/`dirname \$dlpath`~
17530 test -d \$dldir || mkdir -p \$dldir~
17531 $install_prog $dir/$dlname \$dldir/$dlname~
17532 chmod a+x \$dldir/$dlname~
17533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17535 fi'
17536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17537 dlpath=$dir/\$dldll~
17538 $RM \$dlpath'
17539 ;;
17540
17541 osf3* | osf4* | osf5*)
17542 version_type=osf
17543 need_lib_prefix=no
17544 need_version=no
17545 soname_spec='$libname$release$shared_ext$major'
17546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17547 shlibpath_var=LD_LIBRARY_PATH
17548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17550 ;;
17551
17552 rdos*)
17553 dynamic_linker=no
17554 ;;
17555
17556 solaris*)
17557 version_type=linux # correct to gnu/linux during the next big refactor
17558 need_lib_prefix=no
17559 need_version=no
17560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17561 soname_spec='$libname$release$shared_ext$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 hardcode_into_libs=yes
17565 # ldd complains unless libraries are executable
17566 postinstall_cmds='chmod +x $lib'
17567 ;;
17568
17569 sunos4*)
17570 version_type=sunos
17571 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 shlibpath_overrides_runpath=yes
17575 if test yes = "$with_gnu_ld"; then
17576 need_lib_prefix=no
17577 fi
17578 need_version=yes
17579 ;;
17580
17581 sysv4 | sysv4.3*)
17582 version_type=linux # correct to gnu/linux during the next big refactor
17583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17584 soname_spec='$libname$release$shared_ext$major'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 case $host_vendor in
17587 sni)
17588 shlibpath_overrides_runpath=no
17589 need_lib_prefix=no
17590 runpath_var=LD_RUN_PATH
17591 ;;
17592 siemens)
17593 need_lib_prefix=no
17594 ;;
17595 motorola)
17596 need_lib_prefix=no
17597 need_version=no
17598 shlibpath_overrides_runpath=no
17599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17600 ;;
17601 esac
17602 ;;
17603
17604 sysv4*MP*)
17605 if test -d /usr/nec; then
17606 version_type=linux # correct to gnu/linux during the next big refactor
17607 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17608 soname_spec='$libname$shared_ext.$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 fi
17611 ;;
17612
17613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17614 version_type=sco
17615 need_lib_prefix=no
17616 need_version=no
17617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17618 soname_spec='$libname$release$shared_ext$major'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=yes
17621 hardcode_into_libs=yes
17622 if test yes = "$with_gnu_ld"; then
17623 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17624 else
17625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17626 case $host_os in
17627 sco3.2v5*)
17628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17629 ;;
17630 esac
17631 fi
17632 sys_lib_dlsearch_path_spec='/usr/lib'
17633 ;;
17634
17635 tpf*)
17636 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17637 version_type=linux # correct to gnu/linux during the next big refactor
17638 need_lib_prefix=no
17639 need_version=no
17640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=no
17643 hardcode_into_libs=yes
17644 ;;
17645
17646 uts4*)
17647 version_type=linux # correct to gnu/linux during the next big refactor
17648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17649 soname_spec='$libname$release$shared_ext$major'
17650 shlibpath_var=LD_LIBRARY_PATH
17651 ;;
17652
17653 *)
17654 dynamic_linker=no
17655 ;;
17656 esac
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17658 $as_echo "$dynamic_linker" >&6; }
17659 test no = "$dynamic_linker" && can_build_shared=no
17660
17661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17662 if test yes = "$GCC"; then
17663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17664 fi
17665
17666 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17667 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17668 fi
17669
17670 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17671 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17672 fi
17673
17674 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17675 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17676
17677 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17678 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17679
17680 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17681 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17781 hardcode_action=
17782 if test -n "$hardcode_libdir_flag_spec" ||
17783 test -n "$runpath_var" ||
17784 test yes = "$hardcode_automatic"; then
17785
17786 # We can hardcode non-existent directories.
17787 if test no != "$hardcode_direct" &&
17788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17789 # have to relink, otherwise we might link with an installed library
17790 # when we should be linking with a yet-to-be-installed one
17791 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17792 test no != "$hardcode_minus_L"; then
17793 # Linking always hardcodes the temporary library directory.
17794 hardcode_action=relink
17795 else
17796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17797 hardcode_action=immediate
17798 fi
17799 else
17800 # We cannot hardcode anything, or else we can only hardcode existing
17801 # directories.
17802 hardcode_action=unsupported
17803 fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17805 $as_echo "$hardcode_action" >&6; }
17806
17807 if test relink = "$hardcode_action" ||
17808 test yes = "$inherit_rpath"; then
17809 # Fast installation is not supported
17810 enable_fast_install=no
17811 elif test yes = "$shlibpath_overrides_runpath" ||
17812 test no = "$enable_shared"; then
17813 # Fast installation is not necessary
17814 enable_fast_install=needless
17815 fi
17816
17817
17818
17819
17820
17821
17822 if test yes != "$enable_dlopen"; then
17823 enable_dlopen=unknown
17824 enable_dlopen_self=unknown
17825 enable_dlopen_self_static=unknown
17826 else
17827 lt_cv_dlopen=no
17828 lt_cv_dlopen_libs=
17829
17830 case $host_os in
17831 beos*)
17832 lt_cv_dlopen=load_add_on
17833 lt_cv_dlopen_libs=
17834 lt_cv_dlopen_self=yes
17835 ;;
17836
17837 mingw* | pw32* | cegcc*)
17838 lt_cv_dlopen=LoadLibrary
17839 lt_cv_dlopen_libs=
17840 ;;
17841
17842 cygwin*)
17843 lt_cv_dlopen=dlopen
17844 lt_cv_dlopen_libs=
17845 ;;
17846
17847 darwin*)
17848 # if libdl is installed we need to link against it
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17851 if ${ac_cv_lib_dl_dlopen+:} false; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-ldl $LIBS"
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17858
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 char dlopen ();
17866 int
17867 main ()
17868 {
17869 return dlopen ();
17870 ;
17871 return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_dl_dlopen=yes
17876 else
17877 ac_cv_lib_dl_dlopen=no
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17885 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17886 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17887 else
17888
17889 lt_cv_dlopen=dyld
17890 lt_cv_dlopen_libs=
17891 lt_cv_dlopen_self=yes
17892
17893 fi
17894
17895 ;;
17896
17897 tpf*)
17898 # Don't try to run any link tests for TPF. We know it's impossible
17899 # because TPF is a cross-compiler, and we know how we open DSOs.
17900 lt_cv_dlopen=dlopen
17901 lt_cv_dlopen_libs=
17902 lt_cv_dlopen_self=no
17903 ;;
17904
17905 *)
17906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17907 if test "x$ac_cv_func_shl_load" = xyes; then :
17908 lt_cv_dlopen=shl_load
17909 else
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17912 if ${ac_cv_lib_dld_shl_load+:} false; then :
17913 $as_echo_n "(cached) " >&6
17914 else
17915 ac_check_lib_save_LIBS=$LIBS
17916 LIBS="-ldld $LIBS"
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919
17920 /* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17923 #ifdef __cplusplus
17924 extern "C"
17925 #endif
17926 char shl_load ();
17927 int
17928 main ()
17929 {
17930 return shl_load ();
17931 ;
17932 return 0;
17933 }
17934 _ACEOF
17935 if ac_fn_c_try_link "$LINENO"; then :
17936 ac_cv_lib_dld_shl_load=yes
17937 else
17938 ac_cv_lib_dld_shl_load=no
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
17942 LIBS=$ac_check_lib_save_LIBS
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17946 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17947 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17948 else
17949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17950 if test "x$ac_cv_func_dlopen" = xyes; then :
17951 lt_cv_dlopen=dlopen
17952 else
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17955 if ${ac_cv_lib_dl_dlopen+:} false; then :
17956 $as_echo_n "(cached) " >&6
17957 else
17958 ac_check_lib_save_LIBS=$LIBS
17959 LIBS="-ldl $LIBS"
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962
17963 /* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17966 #ifdef __cplusplus
17967 extern "C"
17968 #endif
17969 char dlopen ();
17970 int
17971 main ()
17972 {
17973 return dlopen ();
17974 ;
17975 return 0;
17976 }
17977 _ACEOF
17978 if ac_fn_c_try_link "$LINENO"; then :
17979 ac_cv_lib_dl_dlopen=yes
17980 else
17981 ac_cv_lib_dl_dlopen=no
17982 fi
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17986 fi
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17989 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17990 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17991 else
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17994 if ${ac_cv_lib_svld_dlopen+:} false; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-lsvld $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char dlopen ();
18009 int
18010 main ()
18011 {
18012 return dlopen ();
18013 ;
18014 return 0;
18015 }
18016 _ACEOF
18017 if ac_fn_c_try_link "$LINENO"; then :
18018 ac_cv_lib_svld_dlopen=yes
18019 else
18020 ac_cv_lib_svld_dlopen=no
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18025 fi
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18028 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18029 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18030 else
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18033 if ${ac_cv_lib_dld_dld_link+:} false; then :
18034 $as_echo_n "(cached) " >&6
18035 else
18036 ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-ldld $LIBS"
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040
18041 /* Override any GCC internal prototype to avoid an error.
18042 Use char because int might match the return type of a GCC
18043 builtin and then its argument prototype would still apply. */
18044 #ifdef __cplusplus
18045 extern "C"
18046 #endif
18047 char dld_link ();
18048 int
18049 main ()
18050 {
18051 return dld_link ();
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 if ac_fn_c_try_link "$LINENO"; then :
18057 ac_cv_lib_dld_dld_link=yes
18058 else
18059 ac_cv_lib_dld_dld_link=no
18060 fi
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18067 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18068 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18069 fi
18070
18071
18072 fi
18073
18074
18075 fi
18076
18077
18078 fi
18079
18080
18081 fi
18082
18083
18084 fi
18085
18086 ;;
18087 esac
18088
18089 if test no = "$lt_cv_dlopen"; then
18090 enable_dlopen=no
18091 else
18092 enable_dlopen=yes
18093 fi
18094
18095 case $lt_cv_dlopen in
18096 dlopen)
18097 save_CPPFLAGS=$CPPFLAGS
18098 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18099
18100 save_LDFLAGS=$LDFLAGS
18101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18102
18103 save_LIBS=$LIBS
18104 LIBS="$lt_cv_dlopen_libs $LIBS"
18105
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18108 if ${lt_cv_dlopen_self+:} false; then :
18109 $as_echo_n "(cached) " >&6
18110 else
18111 if test yes = "$cross_compiling"; then :
18112 lt_cv_dlopen_self=cross
18113 else
18114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18115 lt_status=$lt_dlunknown
18116 cat > conftest.$ac_ext <<_LT_EOF
18117 #line $LINENO "configure"
18118 #include "confdefs.h"
18119
18120 #if HAVE_DLFCN_H
18121 #include <dlfcn.h>
18122 #endif
18123
18124 #include <stdio.h>
18125
18126 #ifdef RTLD_GLOBAL
18127 # define LT_DLGLOBAL RTLD_GLOBAL
18128 #else
18129 # ifdef DL_GLOBAL
18130 # define LT_DLGLOBAL DL_GLOBAL
18131 # else
18132 # define LT_DLGLOBAL 0
18133 # endif
18134 #endif
18135
18136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18137 find out it does not work in some platform. */
18138 #ifndef LT_DLLAZY_OR_NOW
18139 # ifdef RTLD_LAZY
18140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18141 # else
18142 # ifdef DL_LAZY
18143 # define LT_DLLAZY_OR_NOW DL_LAZY
18144 # else
18145 # ifdef RTLD_NOW
18146 # define LT_DLLAZY_OR_NOW RTLD_NOW
18147 # else
18148 # ifdef DL_NOW
18149 # define LT_DLLAZY_OR_NOW DL_NOW
18150 # else
18151 # define LT_DLLAZY_OR_NOW 0
18152 # endif
18153 # endif
18154 # endif
18155 # endif
18156 #endif
18157
18158 /* When -fvisibility=hidden is used, assume the code has been annotated
18159 correspondingly for the symbols needed. */
18160 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18161 int fnord () __attribute__((visibility("default")));
18162 #endif
18163
18164 int fnord () { return 42; }
18165 int main ()
18166 {
18167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18168 int status = $lt_dlunknown;
18169
18170 if (self)
18171 {
18172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18173 else
18174 {
18175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18176 else puts (dlerror ());
18177 }
18178 /* dlclose (self); */
18179 }
18180 else
18181 puts (dlerror ());
18182
18183 return status;
18184 }
18185 _LT_EOF
18186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18187 (eval $ac_link) 2>&5
18188 ac_status=$?
18189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18190 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18191 (./conftest; exit; ) >&5 2>/dev/null
18192 lt_status=$?
18193 case x$lt_status in
18194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18197 esac
18198 else :
18199 # compilation failed
18200 lt_cv_dlopen_self=no
18201 fi
18202 fi
18203 rm -fr conftest*
18204
18205
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18208 $as_echo "$lt_cv_dlopen_self" >&6; }
18209
18210 if test yes = "$lt_cv_dlopen_self"; then
18211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18214 if ${lt_cv_dlopen_self_static+:} false; then :
18215 $as_echo_n "(cached) " >&6
18216 else
18217 if test yes = "$cross_compiling"; then :
18218 lt_cv_dlopen_self_static=cross
18219 else
18220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18221 lt_status=$lt_dlunknown
18222 cat > conftest.$ac_ext <<_LT_EOF
18223 #line $LINENO "configure"
18224 #include "confdefs.h"
18225
18226 #if HAVE_DLFCN_H
18227 #include <dlfcn.h>
18228 #endif
18229
18230 #include <stdio.h>
18231
18232 #ifdef RTLD_GLOBAL
18233 # define LT_DLGLOBAL RTLD_GLOBAL
18234 #else
18235 # ifdef DL_GLOBAL
18236 # define LT_DLGLOBAL DL_GLOBAL
18237 # else
18238 # define LT_DLGLOBAL 0
18239 # endif
18240 #endif
18241
18242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18243 find out it does not work in some platform. */
18244 #ifndef LT_DLLAZY_OR_NOW
18245 # ifdef RTLD_LAZY
18246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18247 # else
18248 # ifdef DL_LAZY
18249 # define LT_DLLAZY_OR_NOW DL_LAZY
18250 # else
18251 # ifdef RTLD_NOW
18252 # define LT_DLLAZY_OR_NOW RTLD_NOW
18253 # else
18254 # ifdef DL_NOW
18255 # define LT_DLLAZY_OR_NOW DL_NOW
18256 # else
18257 # define LT_DLLAZY_OR_NOW 0
18258 # endif
18259 # endif
18260 # endif
18261 # endif
18262 #endif
18263
18264 /* When -fvisibility=hidden is used, assume the code has been annotated
18265 correspondingly for the symbols needed. */
18266 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18267 int fnord () __attribute__((visibility("default")));
18268 #endif
18269
18270 int fnord () { return 42; }
18271 int main ()
18272 {
18273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18274 int status = $lt_dlunknown;
18275
18276 if (self)
18277 {
18278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18279 else
18280 {
18281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18282 else puts (dlerror ());
18283 }
18284 /* dlclose (self); */
18285 }
18286 else
18287 puts (dlerror ());
18288
18289 return status;
18290 }
18291 _LT_EOF
18292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18293 (eval $ac_link) 2>&5
18294 ac_status=$?
18295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18296 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18297 (./conftest; exit; ) >&5 2>/dev/null
18298 lt_status=$?
18299 case x$lt_status in
18300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18303 esac
18304 else :
18305 # compilation failed
18306 lt_cv_dlopen_self_static=no
18307 fi
18308 fi
18309 rm -fr conftest*
18310
18311
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18315 fi
18316
18317 CPPFLAGS=$save_CPPFLAGS
18318 LDFLAGS=$save_LDFLAGS
18319 LIBS=$save_LIBS
18320 ;;
18321 esac
18322
18323 case $lt_cv_dlopen_self in
18324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18325 *) enable_dlopen_self=unknown ;;
18326 esac
18327
18328 case $lt_cv_dlopen_self_static in
18329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18330 *) enable_dlopen_self_static=unknown ;;
18331 esac
18332 fi
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 striplib=
18351 old_striplib=
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358 $as_echo "yes" >&6; }
18359 else
18360 # FIXME - insert some real tests, host_os isn't really good enough
18361 case $host_os in
18362 darwin*)
18363 if test -n "$STRIP"; then
18364 striplib="$STRIP -x"
18365 old_striplib="$STRIP -S"
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18368 else
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18370 $as_echo "no" >&6; }
18371 fi
18372 ;;
18373 *)
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375 $as_echo "no" >&6; }
18376 ;;
18377 esac
18378 fi
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391 # Report what library types will actually be built
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18395 $as_echo "$can_build_shared" >&6; }
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18398 $as_echo_n "checking whether to build shared libraries... " >&6; }
18399 test no = "$can_build_shared" && enable_shared=no
18400
18401 # On AIX, shared libraries and static libraries use the same namespace, and
18402 # are all built from PIC.
18403 case $host_os in
18404 aix3*)
18405 test yes = "$enable_shared" && enable_static=no
18406 if test -n "$RANLIB"; then
18407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18408 postinstall_cmds='$RANLIB $lib'
18409 fi
18410 ;;
18411
18412 aix[4-9]*)
18413 if test ia64 != "$host_cpu"; then
18414 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18415 yes,aix,yes) ;; # shared object as lib.so file only
18416 yes,svr4,*) ;; # shared object as lib.so archive member only
18417 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18418 esac
18419 fi
18420 ;;
18421 esac
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18423 $as_echo "$enable_shared" >&6; }
18424
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18426 $as_echo_n "checking whether to build static libraries... " >&6; }
18427 # Make sure either enable_shared or enable_static is yes.
18428 test yes = "$enable_shared" || enable_static=yes
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18430 $as_echo "$enable_static" >&6; }
18431
18432
18433
18434
18435 fi
18436 ac_ext=c
18437 ac_cpp='$CPP $CPPFLAGS'
18438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18441
18442 CC=$lt_save_CC
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458 ac_config_commands="$ac_config_commands libtool"
18459
18460
18461
18462
18463 # Only expand once:
18464
18465
18466
18467
18468
18469 # Define a configure option for an alternate module directory
18470
18471 # Check whether --with-xorg-module-dir was given.
18472 if test "${with_xorg_module_dir+set}" = set; then :
18473 withval=$with_xorg_module_dir; moduledir="$withval"
18474 else
18475 moduledir="$libdir/xorg/modules"
18476 fi
18477
18478
18479 # Check whether --enable-dri was given.
18480 if test "${enable_dri+set}" = set; then :
18481 enableval=$enable_dri; DRI="$enableval"
18482 else
18483 DRI=auto
18484 fi
18485
18486 # Check whether --enable-exa was given.
18487 if test "${enable_exa+set}" = set; then :
18488 enableval=$enable_exa; EXA="$enableval"
18489 else
18490 EXA=yes
18491 fi
18492
18493
18494 # Store the list of server defined optional extensions in REQUIRED_MODULES
18495
18496
18497 SAVE_CFLAGS="$CFLAGS"
18498 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501
18502 #include "xorg-server.h"
18503 #if !defined RANDR
18504 #error RANDR not defined
18505 #endif
18506
18507 int
18508 main ()
18509 {
18510
18511 ;
18512 return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_compile "$LINENO"; then :
18516 _EXT_CHECK=yes
18517 else
18518 _EXT_CHECK=no
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 CFLAGS="$SAVE_CFLAGS"
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18523 $as_echo_n "checking if RANDR is defined... " >&6; }
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18525 $as_echo "$_EXT_CHECK" >&6; }
18526 if test "$_EXT_CHECK" != no; then
18527 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18528 fi
18529
18530
18531
18532 SAVE_CFLAGS="$CFLAGS"
18533 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536
18537 #include "xorg-server.h"
18538 #if !defined RENDER
18539 #error RENDER not defined
18540 #endif
18541
18542 int
18543 main ()
18544 {
18545
18546 ;
18547 return 0;
18548 }
18549 _ACEOF
18550 if ac_fn_c_try_compile "$LINENO"; then :
18551 _EXT_CHECK=yes
18552 else
18553 _EXT_CHECK=no
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 CFLAGS="$SAVE_CFLAGS"
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18558 $as_echo_n "checking if RENDER is defined... " >&6; }
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18560 $as_echo "$_EXT_CHECK" >&6; }
18561 if test "$_EXT_CHECK" != no; then
18562 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18563 fi
18564
18565
18566
18567 SAVE_CFLAGS="$CFLAGS"
18568 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18571
18572 #include "xorg-server.h"
18573 #if !defined XV
18574 #error XV not defined
18575 #endif
18576
18577 int
18578 main ()
18579 {
18580
18581 ;
18582 return 0;
18583 }
18584 _ACEOF
18585 if ac_fn_c_try_compile "$LINENO"; then :
18586 _EXT_CHECK=yes
18587 else
18588 _EXT_CHECK=no
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 CFLAGS="$SAVE_CFLAGS"
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18593 $as_echo_n "checking if XV is defined... " >&6; }
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18595 $as_echo "$_EXT_CHECK" >&6; }
18596 if test "$_EXT_CHECK" != no; then
18597 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18598 fi
18599
18600
18601
18602 SAVE_CFLAGS="$CFLAGS"
18603 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606
18607 #include "xorg-server.h"
18608 #if !defined DPMSExtension
18609 #error DPMSExtension not defined
18610 #endif
18611
18612 int
18613 main ()
18614 {
18615
18616 ;
18617 return 0;
18618 }
18619 _ACEOF
18620 if ac_fn_c_try_compile "$LINENO"; then :
18621 _EXT_CHECK=yes
18622 else
18623 _EXT_CHECK=no
18624 fi
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 CFLAGS="$SAVE_CFLAGS"
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18628 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18630 $as_echo "$_EXT_CHECK" >&6; }
18631 if test "$_EXT_CHECK" != no; then
18632 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18633 fi
18634
18635
18636 # Obtain compiler/linker options for the driver dependencies
18637
18638 pkg_failed=no
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18640 $as_echo_n "checking for XORG... " >&6; }
18641
18642 if test -n "$XORG_CFLAGS"; then
18643 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18644 elif test -n "$PKG_CONFIG"; then
18645 if test -n "$PKG_CONFIG" && \
18646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18647 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18648 ac_status=$?
18649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18650 test $ac_status = 0; }; then
18651 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18652 test "x$?" != "x0" && pkg_failed=yes
18653 else
18654 pkg_failed=yes
18655 fi
18656 else
18657 pkg_failed=untried
18658 fi
18659 if test -n "$XORG_LIBS"; then
18660 pkg_cv_XORG_LIBS="$XORG_LIBS"
18661 elif test -n "$PKG_CONFIG"; then
18662 if test -n "$PKG_CONFIG" && \
18663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18664 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
18665 ac_status=$?
18666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667 test $ac_status = 0; }; then
18668 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18669 test "x$?" != "x0" && pkg_failed=yes
18670 else
18671 pkg_failed=yes
18672 fi
18673 else
18674 pkg_failed=untried
18675 fi
18676
18677
18678
18679 if test $pkg_failed = yes; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18682
18683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18684 _pkg_short_errors_supported=yes
18685 else
18686 _pkg_short_errors_supported=no
18687 fi
18688 if test $_pkg_short_errors_supported = yes; then
18689 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18690 else
18691 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18692 fi
18693 # Put the nasty error message in config.log where it belongs
18694 echo "$XORG_PKG_ERRORS" >&5
18695
18696 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18697
18698 $XORG_PKG_ERRORS
18699
18700 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18701 installed software in a non-standard prefix.
18702
18703 Alternatively, you may set the environment variables XORG_CFLAGS
18704 and XORG_LIBS to avoid the need to call pkg-config.
18705 See the pkg-config man page for more details." "$LINENO" 5
18706 elif test $pkg_failed = untried; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18711 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18712 is in your PATH or set the PKG_CONFIG environment variable to the full
18713 path to pkg-config.
18714
18715 Alternatively, you may set the environment variables XORG_CFLAGS
18716 and XORG_LIBS to avoid the need to call pkg-config.
18717 See the pkg-config man page for more details.
18718
18719 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18720 See \`config.log' for more details" "$LINENO" 5; }
18721 else
18722 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18723 XORG_LIBS=$pkg_cv_XORG_LIBS
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18725 $as_echo "yes" >&6; }
18726
18727 fi
18728 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18729
18730 # Checks for libraries.
18731
18732 if test "x$DRI" != xno; then
18733 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18735 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18736 if eval \${$as_ac_File+:} false; then :
18737 $as_echo_n "(cached) " >&6
18738 else
18739 test "$cross_compiling" = yes &&
18740 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18741 if test -r "${sdkdir}/dri.h"; then
18742 eval "$as_ac_File=yes"
18743 else
18744 eval "$as_ac_File=no"
18745 fi
18746 fi
18747 eval ac_res=\$$as_ac_File
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18749 $as_echo "$ac_res" >&6; }
18750 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18751 have_dri_h="yes"
18752 else
18753 have_dri_h="no"
18754 fi
18755
18756 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18758 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18759 if eval \${$as_ac_File+:} false; then :
18760 $as_echo_n "(cached) " >&6
18761 else
18762 test "$cross_compiling" = yes &&
18763 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18764 if test -r "${sdkdir}/sarea.h"; then
18765 eval "$as_ac_File=yes"
18766 else
18767 eval "$as_ac_File=no"
18768 fi
18769 fi
18770 eval ac_res=\$$as_ac_File
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18772 $as_echo "$ac_res" >&6; }
18773 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18774 have_sarea_h="yes"
18775 else
18776 have_sarea_h="no"
18777 fi
18778
18779 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18781 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18782 if eval \${$as_ac_File+:} false; then :
18783 $as_echo_n "(cached) " >&6
18784 else
18785 test "$cross_compiling" = yes &&
18786 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18787 if test -r "${sdkdir}/dristruct.h"; then
18788 eval "$as_ac_File=yes"
18789 else
18790 eval "$as_ac_File=no"
18791 fi
18792 fi
18793 eval ac_res=\$$as_ac_File
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18795 $as_echo "$ac_res" >&6; }
18796 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18797 have_dristruct_h="yes"
18798 else
18799 have_dristruct_h="no"
18800 fi
18801
18802 fi
18803
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18805 $as_echo_n "checking whether to include DRI support... " >&6; }
18806 if test "x$DRI" = xauto; then
18807 if test "x$have_dri_h" = xyes && \
18808 test "x$have_sarea_h" = xyes && \
18809 test "x$have_dristruct_h" = xyes; then
18810 DRI="yes"
18811 else
18812 DRI="no"
18813 fi
18814 fi
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18816 $as_echo "$DRI" >&6; }
18817
18818 if test "x$DRI" = xyes; then
18819 DRI_TRUE=
18820 DRI_FALSE='#'
18821 else
18822 DRI_TRUE='#'
18823 DRI_FALSE=
18824 fi
18825
18826 if test "x$DRI" = xyes; then
18827
18828 pkg_failed=no
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18830 $as_echo_n "checking for DRI... " >&6; }
18831
18832 if test -n "$DRI_CFLAGS"; then
18833 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18834 elif test -n "$PKG_CONFIG"; then
18835 if test -n "$PKG_CONFIG" && \
18836 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18837 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18838 ac_status=$?
18839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840 test $ac_status = 0; }; then
18841 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18842 test "x$?" != "x0" && pkg_failed=yes
18843 else
18844 pkg_failed=yes
18845 fi
18846 else
18847 pkg_failed=untried
18848 fi
18849 if test -n "$DRI_LIBS"; then
18850 pkg_cv_DRI_LIBS="$DRI_LIBS"
18851 elif test -n "$PKG_CONFIG"; then
18852 if test -n "$PKG_CONFIG" && \
18853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18854 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18855 ac_status=$?
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; then
18858 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18859 test "x$?" != "x0" && pkg_failed=yes
18860 else
18861 pkg_failed=yes
18862 fi
18863 else
18864 pkg_failed=untried
18865 fi
18866
18867
18868
18869 if test $pkg_failed = yes; then
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871 $as_echo "no" >&6; }
18872
18873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18874 _pkg_short_errors_supported=yes
18875 else
18876 _pkg_short_errors_supported=no
18877 fi
18878 if test $_pkg_short_errors_supported = yes; then
18879 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18880 else
18881 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18882 fi
18883 # Put the nasty error message in config.log where it belongs
18884 echo "$DRI_PKG_ERRORS" >&5
18885
18886 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18887
18888 $DRI_PKG_ERRORS
18889
18890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18891 installed software in a non-standard prefix.
18892
18893 Alternatively, you may set the environment variables DRI_CFLAGS
18894 and DRI_LIBS to avoid the need to call pkg-config.
18895 See the pkg-config man page for more details." "$LINENO" 5
18896 elif test $pkg_failed = untried; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18902 is in your PATH or set the PKG_CONFIG environment variable to the full
18903 path to pkg-config.
18904
18905 Alternatively, you may set the environment variables DRI_CFLAGS
18906 and DRI_LIBS to avoid the need to call pkg-config.
18907 See the pkg-config man page for more details.
18908
18909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18910 See \`config.log' for more details" "$LINENO" 5; }
18911 else
18912 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18913 DRI_LIBS=$pkg_cv_DRI_LIBS
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18915 $as_echo "yes" >&6; }
18916
18917 fi
18918
18919 $as_echo "#define MGADRI 1" >>confdefs.h
18920
18921
18922 $as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
18923
18924 fi
18925
18926 save_CFLAGS="$CFLAGS"
18927 CFLAGS="$XORG_CFLAGS"
18928 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18929 "
18930 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18931 XSERVER_LIBPCIACCESS=yes
18932 else
18933 XSERVER_LIBPCIACCESS=no
18934 fi
18935
18936 CFLAGS="$save_CFLAGS"
18937
18938 save_CFLAGS="$CFLAGS"
18939 CFLAGS="$XORG_CFLAGS"
18940 ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
18941 #include \"xorg-server.h\"
18942 #include \"xf86Modes.h\"
18943 "
18944 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18945
18946 $as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18947
18948 fi
18949
18950 CFLAGS="$save_CFLAGS"
18951
18952 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18953
18954 pkg_failed=no
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18956 $as_echo_n "checking for PCIACCESS... " >&6; }
18957
18958 if test -n "$PCIACCESS_CFLAGS"; then
18959 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18960 elif test -n "$PKG_CONFIG"; then
18961 if test -n "$PKG_CONFIG" && \
18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18963 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18964 ac_status=$?
18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; then
18967 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18968 test "x$?" != "x0" && pkg_failed=yes
18969 else
18970 pkg_failed=yes
18971 fi
18972 else
18973 pkg_failed=untried
18974 fi
18975 if test -n "$PCIACCESS_LIBS"; then
18976 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18977 elif test -n "$PKG_CONFIG"; then
18978 if test -n "$PKG_CONFIG" && \
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18980 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18981 ac_status=$?
18982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; }; then
18984 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18985 test "x$?" != "x0" && pkg_failed=yes
18986 else
18987 pkg_failed=yes
18988 fi
18989 else
18990 pkg_failed=untried
18991 fi
18992
18993
18994
18995 if test $pkg_failed = yes; then
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997 $as_echo "no" >&6; }
18998
18999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19000 _pkg_short_errors_supported=yes
19001 else
19002 _pkg_short_errors_supported=no
19003 fi
19004 if test $_pkg_short_errors_supported = yes; then
19005 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19006 else
19007 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19008 fi
19009 # Put the nasty error message in config.log where it belongs
19010 echo "$PCIACCESS_PKG_ERRORS" >&5
19011
19012 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19013
19014 $PCIACCESS_PKG_ERRORS
19015
19016 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19017 installed software in a non-standard prefix.
19018
19019 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19020 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19021 See the pkg-config man page for more details." "$LINENO" 5
19022 elif test $pkg_failed = untried; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024 $as_echo "no" >&6; }
19025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19027 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19028 is in your PATH or set the PKG_CONFIG environment variable to the full
19029 path to pkg-config.
19030
19031 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19032 and PCIACCESS_LIBS to avoid the need to call pkg-config.
19033 See the pkg-config man page for more details.
19034
19035 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19036 See \`config.log' for more details" "$LINENO" 5; }
19037 else
19038 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19039 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19041 $as_echo "yes" >&6; }
19042
19043 fi
19044 fi
19045 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19046 XSERVER_LIBPCIACCESS_TRUE=
19047 XSERVER_LIBPCIACCESS_FALSE='#'
19048 else
19049 XSERVER_LIBPCIACCESS_TRUE='#'
19050 XSERVER_LIBPCIACCESS_FALSE=
19051 fi
19052
19053
19054
19055 # Check whether --enable-xaa was given.
19056 if test "${enable_xaa+set}" = set; then :
19057 enableval=$enable_xaa; XAA="$enableval"
19058 else
19059 XAA=auto
19060 fi
19061
19062 if test "x$XAA" != xno; then
19063 save_CFLAGS=$CFLAGS
19064 save_CPPFLAGS=$CPPFLAGS
19065 CFLAGS=$XORG_CFLAGS
19066 CPPFLAGS="$XORG_CFLAGS"
19067 for ac_header in xaa.h
19068 do :
19069 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19070 if test "x$ac_cv_header_xaa_h" = xyes; then :
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_XAA_H 1
19073 _ACEOF
19074 XAA=yes
19075 else
19076 XAA=no
19077 fi
19078
19079 done
19080
19081 CFLAGS=$save_CFLAGS
19082 CPPFLAGS=$save_CPPFLAGS
19083 fi
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19085 $as_echo_n "checking whether to include XAA support... " >&6; }
19086 if test "x$XAA" = xyes; then
19087 XAA_TRUE=
19088 XAA_FALSE='#'
19089 else
19090 XAA_TRUE='#'
19091 XAA_FALSE=
19092 fi
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19095 $as_echo "$XAA" >&6; }
19096 if test "x$XAA" = xyes; then
19097
19098 $as_echo "#define USE_XAA 1" >>confdefs.h
19099
19100 fi
19101
19102 # Properly handle EXA.
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
19104 $as_echo_n "checking whether to enable EXA support... " >&6; }
19105 if test "x$EXA" = xyes; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19107 $as_echo "yes" >&6; }
19108
19109 SAVE_CPPFLAGS="$CPPFLAGS"
19110 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19111 for ac_header in exa.h
19112 do :
19113 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include \"xorg-server.h\"
19114 "
19115 if test "x$ac_cv_header_exa_h" = xyes; then :
19116 cat >>confdefs.h <<_ACEOF
19117 #define HAVE_EXA_H 1
19118 _ACEOF
19119 have_exa_h="yes"
19120 else
19121 have_exa_h="no"
19122 fi
19123
19124 done
19125
19126 CPPFLAGS="$SAVE_CPPFLAGS"
19127 else
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19129 $as_echo "no" >&6; }
19130 fi
19131
19132 SAVE_CPPFLAGS="$CPPFLAGS"
19133 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19134 if test "x$have_exa_h" = xyes; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
19136 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139
19140 #include "xorg-server.h"
19141 #include "exa.h"
19142 #if EXA_VERSION_MAJOR < 2
19143 #error OLD EXA!
19144 #endif
19145
19146 int
19147 main ()
19148 {
19149
19150 ;
19151 return 0;
19152 }
19153 _ACEOF
19154 if ac_fn_c_try_cpp "$LINENO"; then :
19155 USE_EXA=yes
19156 else
19157 USE_EXA=no
19158 fi
19159 rm -f conftest.err conftest.i conftest.$ac_ext
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
19161 $as_echo "$USE_EXA" >&6; }
19162
19163 if test "x$USE_EXA" = xyes; then
19164
19165 $as_echo "#define USE_EXA 1" >>confdefs.h
19166
19167 fi
19168 fi
19169 CPPFLAGS="$SAVE_CPPFLAGS"
19170
19171 if test "x$USE_EXA" = xyes; then
19172 USE_EXA_TRUE=
19173 USE_EXA_FALSE='#'
19174 else
19175 USE_EXA_TRUE='#'
19176 USE_EXA_FALSE=
19177 fi
19178
19179
19180
19181
19182 DRIVER_NAME=mga
19183
19184
19185 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
19186
19187 cat >confcache <<\_ACEOF
19188 # This file is a shell script that caches the results of configure
19189 # tests run on this system so they can be shared between configure
19190 # scripts and configure runs, see configure's option --config-cache.
19191 # It is not useful on other systems. If it contains results you don't
19192 # want to keep, you may remove or edit it.
19193 #
19194 # config.status only pays attention to the cache file if you give it
19195 # the --recheck option to rerun configure.
19196 #
19197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19199 # following values.
19200
19201 _ACEOF
19202
19203 # The following way of writing the cache mishandles newlines in values,
19204 # but we know of no workaround that is simple, portable, and efficient.
19205 # So, we kill variables containing newlines.
19206 # Ultrix sh set writes to stderr and can't be redirected directly,
19207 # and sets the high bit in the cache file unless we assign to the vars.
19208 (
19209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19210 eval ac_val=\$$ac_var
19211 case $ac_val in #(
19212 *${as_nl}*)
19213 case $ac_var in #(
19214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19216 esac
19217 case $ac_var in #(
19218 _ | IFS | as_nl) ;; #(
19219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19220 *) { eval $ac_var=; unset $ac_var;} ;;
19221 esac ;;
19222 esac
19223 done
19224
19225 (set) 2>&1 |
19226 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19227 *${as_nl}ac_space=\ *)
19228 # `set' does not quote correctly, so add quotes: double-quote
19229 # substitution turns \\\\ into \\, and sed turns \\ into \.
19230 sed -n \
19231 "s/'/'\\\\''/g;
19232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19233 ;; #(
19234 *)
19235 # `set' quotes correctly as required by POSIX, so do not add quotes.
19236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19237 ;;
19238 esac |
19239 sort
19240 ) |
19241 sed '
19242 /^ac_cv_env_/b end
19243 t clear
19244 :clear
19245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19246 t end
19247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19248 :end' >>confcache
19249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19250 if test -w "$cache_file"; then
19251 if test "x$cache_file" != "x/dev/null"; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19253 $as_echo "$as_me: updating cache $cache_file" >&6;}
19254 if test ! -f "$cache_file" || test -h "$cache_file"; then
19255 cat confcache >"$cache_file"
19256 else
19257 case $cache_file in #(
19258 */* | ?:*)
19259 mv -f confcache "$cache_file"$$ &&
19260 mv -f "$cache_file"$$ "$cache_file" ;; #(
19261 *)
19262 mv -f confcache "$cache_file" ;;
19263 esac
19264 fi
19265 fi
19266 else
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19269 fi
19270 fi
19271 rm -f confcache
19272
19273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19274 # Let make expand exec_prefix.
19275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19276
19277 DEFS=-DHAVE_CONFIG_H
19278
19279 ac_libobjs=
19280 ac_ltlibobjs=
19281 U=
19282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19283 # 1. Remove the extension, and $U if already installed.
19284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19287 # will be set to the directory where LIBOBJS objects are built.
19288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19290 done
19291 LIBOBJS=$ac_libobjs
19292
19293 LTLIBOBJS=$ac_ltlibobjs
19294
19295
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19297 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19298 if test -n "$am_sleep_pid"; then
19299 # Hide warnings about reused PIDs.
19300 wait $am_sleep_pid 2>/dev/null
19301 fi
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19303 $as_echo "done" >&6; }
19304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19305 as_fn_error $? "conditional \"AMDEP\" was never defined.
19306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19307 fi
19308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19309 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19311 fi
19312 if test -n "$EXEEXT"; then
19313 am__EXEEXT_TRUE=
19314 am__EXEEXT_FALSE='#'
19315 else
19316 am__EXEEXT_TRUE='#'
19317 am__EXEEXT_FALSE=
19318 fi
19319
19320 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19321 as_fn_error $? "conditional \"DRI\" was never defined.
19322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19323 fi
19324 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19325 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19327 fi
19328 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19329 as_fn_error $? "conditional \"XAA\" was never defined.
19330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19331 fi
19332 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
19333 as_fn_error $? "conditional \"USE_EXA\" was never defined.
19334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19335 fi
19336
19337 : "${CONFIG_STATUS=./config.status}"
19338 ac_write_fail=0
19339 ac_clean_files_save=$ac_clean_files
19340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19343 as_write_fail=0
19344 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19345 #! $SHELL
19346 # Generated by $as_me.
19347 # Run this file to recreate the current configuration.
19348 # Compiler output produced by configure, useful for debugging
19349 # configure, is in config.log if it exists.
19350
19351 debug=false
19352 ac_cs_recheck=false
19353 ac_cs_silent=false
19354
19355 SHELL=\${CONFIG_SHELL-$SHELL}
19356 export SHELL
19357 _ASEOF
19358 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19359 ## -------------------- ##
19360 ## M4sh Initialization. ##
19361 ## -------------------- ##
19362
19363 # Be more Bourne compatible
19364 DUALCASE=1; export DUALCASE # for MKS sh
19365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19366 emulate sh
19367 NULLCMD=:
19368 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19369 # is contrary to our usage. Disable this feature.
19370 alias -g '${1+"$@"}'='"$@"'
19371 setopt NO_GLOB_SUBST
19372 else
19373 case `(set -o) 2>/dev/null` in #(
19374 *posix*) :
19375 set -o posix ;; #(
19376 *) :
19377 ;;
19378 esac
19379 fi
19380
19381
19382 as_nl='
19383 '
19384 export as_nl
19385 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19386 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19389 # Prefer a ksh shell builtin over an external printf program on Solaris,
19390 # but without wasting forks for bash or zsh.
19391 if test -z "$BASH_VERSION$ZSH_VERSION" \
19392 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19393 as_echo='print -r --'
19394 as_echo_n='print -rn --'
19395 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19396 as_echo='printf %s\n'
19397 as_echo_n='printf %s'
19398 else
19399 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19400 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19401 as_echo_n='/usr/ucb/echo -n'
19402 else
19403 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19404 as_echo_n_body='eval
19405 arg=$1;
19406 case $arg in #(
19407 *"$as_nl"*)
19408 expr "X$arg" : "X\\(.*\\)$as_nl";
19409 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19410 esac;
19411 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19412 '
19413 export as_echo_n_body
19414 as_echo_n='sh -c $as_echo_n_body as_echo'
19415 fi
19416 export as_echo_body
19417 as_echo='sh -c $as_echo_body as_echo'
19418 fi
19419
19420 # The user is always right.
19421 if test "${PATH_SEPARATOR+set}" != set; then
19422 PATH_SEPARATOR=:
19423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19425 PATH_SEPARATOR=';'
19426 }
19427 fi
19428
19429
19430 # IFS
19431 # We need space, tab and new line, in precisely that order. Quoting is
19432 # there to prevent editors from complaining about space-tab.
19433 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19434 # splitting by setting IFS to empty value.)
19435 IFS=" "" $as_nl"
19436
19437 # Find who we are. Look in the path if we contain no directory separator.
19438 as_myself=
19439 case $0 in #((
19440 *[\\/]* ) as_myself=$0 ;;
19441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19442 for as_dir in $PATH
19443 do
19444 IFS=$as_save_IFS
19445 test -z "$as_dir" && as_dir=.
19446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19447 done
19448 IFS=$as_save_IFS
19449
19450 ;;
19451 esac
19452 # We did not find ourselves, most probably we were run as `sh COMMAND'
19453 # in which case we are not to be found in the path.
19454 if test "x$as_myself" = x; then
19455 as_myself=$0
19456 fi
19457 if test ! -f "$as_myself"; then
19458 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19459 exit 1
19460 fi
19461
19462 # Unset variables that we do not need and which cause bugs (e.g. in
19463 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19464 # suppresses any "Segmentation fault" message there. '((' could
19465 # trigger a bug in pdksh 5.2.14.
19466 for as_var in BASH_ENV ENV MAIL MAILPATH
19467 do eval test x\${$as_var+set} = xset \
19468 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19469 done
19470 PS1='$ '
19471 PS2='> '
19472 PS4='+ '
19473
19474 # NLS nuisances.
19475 LC_ALL=C
19476 export LC_ALL
19477 LANGUAGE=C
19478 export LANGUAGE
19479
19480 # CDPATH.
19481 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19482
19483
19484 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19485 # ----------------------------------------
19486 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19487 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19488 # script with STATUS, using 1 if that was 0.
19489 as_fn_error ()
19490 {
19491 as_status=$1; test $as_status -eq 0 && as_status=1
19492 if test "$4"; then
19493 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19494 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19495 fi
19496 $as_echo "$as_me: error: $2" >&2
19497 as_fn_exit $as_status
19498 } # as_fn_error
19499
19500
19501 # as_fn_set_status STATUS
19502 # -----------------------
19503 # Set $? to STATUS, without forking.
19504 as_fn_set_status ()
19505 {
19506 return $1
19507 } # as_fn_set_status
19508
19509 # as_fn_exit STATUS
19510 # -----------------
19511 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19512 as_fn_exit ()
19513 {
19514 set +e
19515 as_fn_set_status $1
19516 exit $1
19517 } # as_fn_exit
19518
19519 # as_fn_unset VAR
19520 # ---------------
19521 # Portably unset VAR.
19522 as_fn_unset ()
19523 {
19524 { eval $1=; unset $1;}
19525 }
19526 as_unset=as_fn_unset
19527 # as_fn_append VAR VALUE
19528 # ----------------------
19529 # Append the text in VALUE to the end of the definition contained in VAR. Take
19530 # advantage of any shell optimizations that allow amortized linear growth over
19531 # repeated appends, instead of the typical quadratic growth present in naive
19532 # implementations.
19533 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19534 eval 'as_fn_append ()
19535 {
19536 eval $1+=\$2
19537 }'
19538 else
19539 as_fn_append ()
19540 {
19541 eval $1=\$$1\$2
19542 }
19543 fi # as_fn_append
19544
19545 # as_fn_arith ARG...
19546 # ------------------
19547 # Perform arithmetic evaluation on the ARGs, and store the result in the
19548 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19549 # must be portable across $(()) and expr.
19550 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19551 eval 'as_fn_arith ()
19552 {
19553 as_val=$(( $* ))
19554 }'
19555 else
19556 as_fn_arith ()
19557 {
19558 as_val=`expr "$@" || test $? -eq 1`
19559 }
19560 fi # as_fn_arith
19561
19562
19563 if expr a : '\(a\)' >/dev/null 2>&1 &&
19564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19565 as_expr=expr
19566 else
19567 as_expr=false
19568 fi
19569
19570 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19571 as_basename=basename
19572 else
19573 as_basename=false
19574 fi
19575
19576 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19577 as_dirname=dirname
19578 else
19579 as_dirname=false
19580 fi
19581
19582 as_me=`$as_basename -- "$0" ||
19583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19584 X"$0" : 'X\(//\)$' \| \
19585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19586 $as_echo X/"$0" |
19587 sed '/^.*\/\([^/][^/]*\)\/*$/{
19588 s//\1/
19589 q
19590 }
19591 /^X\/\(\/\/\)$/{
19592 s//\1/
19593 q
19594 }
19595 /^X\/\(\/\).*/{
19596 s//\1/
19597 q
19598 }
19599 s/.*/./; q'`
19600
19601 # Avoid depending upon Character Ranges.
19602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19605 as_cr_digits='0123456789'
19606 as_cr_alnum=$as_cr_Letters$as_cr_digits
19607
19608 ECHO_C= ECHO_N= ECHO_T=
19609 case `echo -n x` in #(((((
19610 -n*)
19611 case `echo 'xy\c'` in
19612 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19613 xy) ECHO_C='\c';;
19614 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19615 ECHO_T=' ';;
19616 esac;;
19617 *)
19618 ECHO_N='-n';;
19619 esac
19620
19621 rm -f conf$$ conf$$.exe conf$$.file
19622 if test -d conf$$.dir; then
19623 rm -f conf$$.dir/conf$$.file
19624 else
19625 rm -f conf$$.dir
19626 mkdir conf$$.dir 2>/dev/null
19627 fi
19628 if (echo >conf$$.file) 2>/dev/null; then
19629 if ln -s conf$$.file conf$$ 2>/dev/null; then
19630 as_ln_s='ln -s'
19631 # ... but there are two gotchas:
19632 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19633 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19634 # In both cases, we have to default to `cp -pR'.
19635 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19636 as_ln_s='cp -pR'
19637 elif ln conf$$.file conf$$ 2>/dev/null; then
19638 as_ln_s=ln
19639 else
19640 as_ln_s='cp -pR'
19641 fi
19642 else
19643 as_ln_s='cp -pR'
19644 fi
19645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19646 rmdir conf$$.dir 2>/dev/null
19647
19648
19649 # as_fn_mkdir_p
19650 # -------------
19651 # Create "$as_dir" as a directory, including parents if necessary.
19652 as_fn_mkdir_p ()
19653 {
19654
19655 case $as_dir in #(
19656 -*) as_dir=./$as_dir;;
19657 esac
19658 test -d "$as_dir" || eval $as_mkdir_p || {
19659 as_dirs=
19660 while :; do
19661 case $as_dir in #(
19662 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19663 *) as_qdir=$as_dir;;
19664 esac
19665 as_dirs="'$as_qdir' $as_dirs"
19666 as_dir=`$as_dirname -- "$as_dir" ||
19667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19668 X"$as_dir" : 'X\(//\)[^/]' \| \
19669 X"$as_dir" : 'X\(//\)$' \| \
19670 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19671 $as_echo X"$as_dir" |
19672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19673 s//\1/
19674 q
19675 }
19676 /^X\(\/\/\)[^/].*/{
19677 s//\1/
19678 q
19679 }
19680 /^X\(\/\/\)$/{
19681 s//\1/
19682 q
19683 }
19684 /^X\(\/\).*/{
19685 s//\1/
19686 q
19687 }
19688 s/.*/./; q'`
19689 test -d "$as_dir" && break
19690 done
19691 test -z "$as_dirs" || eval "mkdir $as_dirs"
19692 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19693
19694
19695 } # as_fn_mkdir_p
19696 if mkdir -p . 2>/dev/null; then
19697 as_mkdir_p='mkdir -p "$as_dir"'
19698 else
19699 test -d ./-p && rmdir ./-p
19700 as_mkdir_p=false
19701 fi
19702
19703
19704 # as_fn_executable_p FILE
19705 # -----------------------
19706 # Test if FILE is an executable regular file.
19707 as_fn_executable_p ()
19708 {
19709 test -f "$1" && test -x "$1"
19710 } # as_fn_executable_p
19711 as_test_x='test -x'
19712 as_executable_p=as_fn_executable_p
19713
19714 # Sed expression to map a string onto a valid CPP name.
19715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19716
19717 # Sed expression to map a string onto a valid variable name.
19718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19719
19720
19721 exec 6>&1
19722 ## ----------------------------------- ##
19723 ## Main body of $CONFIG_STATUS script. ##
19724 ## ----------------------------------- ##
19725 _ASEOF
19726 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19727
19728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19729 # Save the log message, to keep $0 and so on meaningful, and to
19730 # report actual input values of CONFIG_FILES etc. instead of their
19731 # values after options handling.
19732 ac_log="
19733 This file was extended by xf86-video-mga $as_me 2.0.0, which was
19734 generated by GNU Autoconf 2.69. Invocation command line was
19735
19736 CONFIG_FILES = $CONFIG_FILES
19737 CONFIG_HEADERS = $CONFIG_HEADERS
19738 CONFIG_LINKS = $CONFIG_LINKS
19739 CONFIG_COMMANDS = $CONFIG_COMMANDS
19740 $ $0 $@
19741
19742 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19743 "
19744
19745 _ACEOF
19746
19747 case $ac_config_files in *"
19748 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19749 esac
19750
19751 case $ac_config_headers in *"
19752 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19753 esac
19754
19755
19756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19757 # Files that config.status was made for.
19758 config_files="$ac_config_files"
19759 config_headers="$ac_config_headers"
19760 config_commands="$ac_config_commands"
19761
19762 _ACEOF
19763
19764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19765 ac_cs_usage="\
19766 \`$as_me' instantiates files and other configuration actions
19767 from templates according to the current configuration. Unless the files
19768 and actions are specified as TAGs, all are instantiated by default.
19769
19770 Usage: $0 [OPTION]... [TAG]...
19771
19772 -h, --help print this help, then exit
19773 -V, --version print version number and configuration settings, then exit
19774 --config print configuration, then exit
19775 -q, --quiet, --silent
19776 do not print progress messages
19777 -d, --debug don't remove temporary files
19778 --recheck update $as_me by reconfiguring in the same conditions
19779 --file=FILE[:TEMPLATE]
19780 instantiate the configuration file FILE
19781 --header=FILE[:TEMPLATE]
19782 instantiate the configuration header FILE
19783
19784 Configuration files:
19785 $config_files
19786
19787 Configuration headers:
19788 $config_headers
19789
19790 Configuration commands:
19791 $config_commands
19792
19793 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>."
19794
19795 _ACEOF
19796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19797 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19798 ac_cs_version="\\
19799 xf86-video-mga config.status 2.0.0
19800 configured by $0, generated by GNU Autoconf 2.69,
19801 with options \\"\$ac_cs_config\\"
19802
19803 Copyright (C) 2012 Free Software Foundation, Inc.
19804 This config.status script is free software; the Free Software Foundation
19805 gives unlimited permission to copy, distribute and modify it."
19806
19807 ac_pwd='$ac_pwd'
19808 srcdir='$srcdir'
19809 INSTALL='$INSTALL'
19810 MKDIR_P='$MKDIR_P'
19811 AWK='$AWK'
19812 test -n "\$AWK" || AWK=awk
19813 _ACEOF
19814
19815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19816 # The default lists apply if the user does not specify any file.
19817 ac_need_defaults=:
19818 while test $# != 0
19819 do
19820 case $1 in
19821 --*=?*)
19822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19823 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19824 ac_shift=:
19825 ;;
19826 --*=)
19827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19828 ac_optarg=
19829 ac_shift=:
19830 ;;
19831 *)
19832 ac_option=$1
19833 ac_optarg=$2
19834 ac_shift=shift
19835 ;;
19836 esac
19837
19838 case $ac_option in
19839 # Handling of the options.
19840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19841 ac_cs_recheck=: ;;
19842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19843 $as_echo "$ac_cs_version"; exit ;;
19844 --config | --confi | --conf | --con | --co | --c )
19845 $as_echo "$ac_cs_config"; exit ;;
19846 --debug | --debu | --deb | --de | --d | -d )
19847 debug=: ;;
19848 --file | --fil | --fi | --f )
19849 $ac_shift
19850 case $ac_optarg in
19851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19852 '') as_fn_error $? "missing file argument" ;;
19853 esac
19854 as_fn_append CONFIG_FILES " '$ac_optarg'"
19855 ac_need_defaults=false;;
19856 --header | --heade | --head | --hea )
19857 $ac_shift
19858 case $ac_optarg in
19859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19860 esac
19861 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19862 ac_need_defaults=false;;
19863 --he | --h)
19864 # Conflict between --help and --header
19865 as_fn_error $? "ambiguous option: \`$1'
19866 Try \`$0 --help' for more information.";;
19867 --help | --hel | -h )
19868 $as_echo "$ac_cs_usage"; exit ;;
19869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19871 ac_cs_silent=: ;;
19872
19873 # This is an error.
19874 -*) as_fn_error $? "unrecognized option: \`$1'
19875 Try \`$0 --help' for more information." ;;
19876
19877 *) as_fn_append ac_config_targets " $1"
19878 ac_need_defaults=false ;;
19879
19880 esac
19881 shift
19882 done
19883
19884 ac_configure_extra_args=
19885
19886 if $ac_cs_silent; then
19887 exec 6>/dev/null
19888 ac_configure_extra_args="$ac_configure_extra_args --silent"
19889 fi
19890
19891 _ACEOF
19892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19893 if \$ac_cs_recheck; then
19894 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19895 shift
19896 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19897 CONFIG_SHELL='$SHELL'
19898 export CONFIG_SHELL
19899 exec "\$@"
19900 fi
19901
19902 _ACEOF
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904 exec 5>>config.log
19905 {
19906 echo
19907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19908 ## Running $as_me. ##
19909 _ASBOX
19910 $as_echo "$ac_log"
19911 } >&5
19912
19913 _ACEOF
19914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19915 #
19916 # INIT-COMMANDS
19917 #
19918 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19919
19920
19921 # The HP-UX ksh and POSIX shell print the target directory to stdout
19922 # if CDPATH is set.
19923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19924
19925 sed_quote_subst='$sed_quote_subst'
19926 double_quote_subst='$double_quote_subst'
19927 delay_variable_subst='$delay_variable_subst'
19928 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19929 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19930 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19931 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19934 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19937 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19963 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19964 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19965 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19966 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19967 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19968 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19969 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19971 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19984 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19985 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19986 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"`'
19987 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19988 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19989 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19990 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19991 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19992 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19993 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19994 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19996 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19997 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19998 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19999 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20023 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20024 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20025 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20026 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20027 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20028 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20029 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20030 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20031 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20032 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20033 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20034 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20035 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20036 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20037 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20038 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20039 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20040 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20041 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20042 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20043 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20044 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20045 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20046 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20047 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20048 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20049 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20050 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20051 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20052 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20053 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20054 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20055 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20056 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20063
20064 LTCC='$LTCC'
20065 LTCFLAGS='$LTCFLAGS'
20066 compiler='$compiler_DEFAULT'
20067
20068 # A function that is used when there is no print builtin or printf.
20069 func_fallback_echo ()
20070 {
20071 eval 'cat <<_LTECHO_EOF
20072 \$1
20073 _LTECHO_EOF'
20074 }
20075
20076 # Quote evaled strings.
20077 for var in SHELL \
20078 ECHO \
20079 PATH_SEPARATOR \
20080 SED \
20081 GREP \
20082 EGREP \
20083 FGREP \
20084 LD \
20085 NM \
20086 LN_S \
20087 lt_SP2NL \
20088 lt_NL2SP \
20089 reload_flag \
20090 OBJDUMP \
20091 deplibs_check_method \
20092 file_magic_cmd \
20093 file_magic_glob \
20094 want_nocaseglob \
20095 DLLTOOL \
20096 sharedlib_from_linklib_cmd \
20097 AR \
20098 AR_FLAGS \
20099 archiver_list_spec \
20100 STRIP \
20101 RANLIB \
20102 CC \
20103 CFLAGS \
20104 compiler \
20105 lt_cv_sys_global_symbol_pipe \
20106 lt_cv_sys_global_symbol_to_cdecl \
20107 lt_cv_sys_global_symbol_to_import \
20108 lt_cv_sys_global_symbol_to_c_name_address \
20109 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20110 lt_cv_nm_interface \
20111 nm_file_list_spec \
20112 lt_cv_truncate_bin \
20113 lt_prog_compiler_no_builtin_flag \
20114 lt_prog_compiler_pic \
20115 lt_prog_compiler_wl \
20116 lt_prog_compiler_static \
20117 lt_cv_prog_compiler_c_o \
20118 need_locks \
20119 MANIFEST_TOOL \
20120 DSYMUTIL \
20121 NMEDIT \
20122 LIPO \
20123 OTOOL \
20124 OTOOL64 \
20125 shrext_cmds \
20126 export_dynamic_flag_spec \
20127 whole_archive_flag_spec \
20128 compiler_needs_object \
20129 with_gnu_ld \
20130 allow_undefined_flag \
20131 no_undefined_flag \
20132 hardcode_libdir_flag_spec \
20133 hardcode_libdir_separator \
20134 exclude_expsyms \
20135 include_expsyms \
20136 file_list_spec \
20137 variables_saved_for_relink \
20138 libname_spec \
20139 library_names_spec \
20140 soname_spec \
20141 install_override_mode \
20142 finish_eval \
20143 old_striplib \
20144 striplib; do
20145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20146 *[\\\\\\\`\\"\\\$]*)
20147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20148 ;;
20149 *)
20150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20151 ;;
20152 esac
20153 done
20154
20155 # Double-quote double-evaled strings.
20156 for var in reload_cmds \
20157 old_postinstall_cmds \
20158 old_postuninstall_cmds \
20159 old_archive_cmds \
20160 extract_expsyms_cmds \
20161 old_archive_from_new_cmds \
20162 old_archive_from_expsyms_cmds \
20163 archive_cmds \
20164 archive_expsym_cmds \
20165 module_cmds \
20166 module_expsym_cmds \
20167 export_symbols_cmds \
20168 prelink_cmds \
20169 postlink_cmds \
20170 postinstall_cmds \
20171 postuninstall_cmds \
20172 finish_cmds \
20173 sys_lib_search_path_spec \
20174 configure_time_dlsearch_path \
20175 configure_time_lt_sys_library_path; do
20176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20177 *[\\\\\\\`\\"\\\$]*)
20178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20179 ;;
20180 *)
20181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20182 ;;
20183 esac
20184 done
20185
20186 ac_aux_dir='$ac_aux_dir'
20187
20188 # See if we are running on zsh, and set the options that allow our
20189 # commands through without removal of \ escapes INIT.
20190 if test -n "\${ZSH_VERSION+set}"; then
20191 setopt NO_GLOB_SUBST
20192 fi
20193
20194
20195 PACKAGE='$PACKAGE'
20196 VERSION='$VERSION'
20197 RM='$RM'
20198 ofile='$ofile'
20199
20200
20201
20202
20203 _ACEOF
20204
20205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20206
20207 # Handling of arguments.
20208 for ac_config_target in $ac_config_targets
20209 do
20210 case $ac_config_target in
20211 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20212 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20213 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20214 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20215 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20216 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20217 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20218
20219 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20220 esac
20221 done
20222
20223
20224 # If the user did not use the arguments to specify the items to instantiate,
20225 # then the envvar interface is used. Set only those that are not.
20226 # We use the long form for the default assignment because of an extremely
20227 # bizarre bug on SunOS 4.1.3.
20228 if $ac_need_defaults; then
20229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20232 fi
20233
20234 # Have a temporary directory for convenience. Make it in the build tree
20235 # simply because there is no reason against having it here, and in addition,
20236 # creating and moving files from /tmp can sometimes cause problems.
20237 # Hook for its removal unless debugging.
20238 # Note that there is a small window in which the directory will not be cleaned:
20239 # after its creation but before its name has been assigned to `$tmp'.
20240 $debug ||
20241 {
20242 tmp= ac_tmp=
20243 trap 'exit_status=$?
20244 : "${ac_tmp:=$tmp}"
20245 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20246 ' 0
20247 trap 'as_fn_exit 1' 1 2 13 15
20248 }
20249 # Create a (secure) tmp directory for tmp files.
20250
20251 {
20252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20253 test -d "$tmp"
20254 } ||
20255 {
20256 tmp=./conf$$-$RANDOM
20257 (umask 077 && mkdir "$tmp")
20258 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20259 ac_tmp=$tmp
20260
20261 # Set up the scripts for CONFIG_FILES section.
20262 # No need to generate them if there are no CONFIG_FILES.
20263 # This happens for instance with `./config.status config.h'.
20264 if test -n "$CONFIG_FILES"; then
20265
20266
20267 ac_cr=`echo X | tr X '\015'`
20268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20269 # But we know of no other shell where ac_cr would be empty at this
20270 # point, so we can use a bashism as a fallback.
20271 if test "x$ac_cr" = x; then
20272 eval ac_cr=\$\'\\r\'
20273 fi
20274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20276 ac_cs_awk_cr='\\r'
20277 else
20278 ac_cs_awk_cr=$ac_cr
20279 fi
20280
20281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20282 _ACEOF
20283
20284
20285 {
20286 echo "cat >conf$$subs.awk <<_ACEOF" &&
20287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20288 echo "_ACEOF"
20289 } >conf$$subs.sh ||
20290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20291 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20292 ac_delim='%!_!# '
20293 for ac_last_try in false false false false false :; do
20294 . ./conf$$subs.sh ||
20295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20296
20297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20298 if test $ac_delim_n = $ac_delim_num; then
20299 break
20300 elif $ac_last_try; then
20301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20302 else
20303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20304 fi
20305 done
20306 rm -f conf$$subs.sh
20307
20308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20309 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20310 _ACEOF
20311 sed -n '
20312 h
20313 s/^/S["/; s/!.*/"]=/
20314 p
20315 g
20316 s/^[^!]*!//
20317 :repl
20318 t repl
20319 s/'"$ac_delim"'$//
20320 t delim
20321 :nl
20322 h
20323 s/\(.\{148\}\)..*/\1/
20324 t more1
20325 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20326 p
20327 n
20328 b repl
20329 :more1
20330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20331 p
20332 g
20333 s/.\{148\}//
20334 t nl
20335 :delim
20336 h
20337 s/\(.\{148\}\)..*/\1/
20338 t more2
20339 s/["\\]/\\&/g; s/^/"/; s/$/"/
20340 p
20341 b
20342 :more2
20343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20344 p
20345 g
20346 s/.\{148\}//
20347 t delim
20348 ' <conf$$subs.awk | sed '
20349 /^[^""]/{
20350 N
20351 s/\n//
20352 }
20353 ' >>$CONFIG_STATUS || ac_write_fail=1
20354 rm -f conf$$subs.awk
20355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20356 _ACAWK
20357 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20358 for (key in S) S_is_set[key] = 1
20359 FS = ""
20360
20361 }
20362 {
20363 line = $ 0
20364 nfields = split(line, field, "@")
20365 substed = 0
20366 len = length(field[1])
20367 for (i = 2; i < nfields; i++) {
20368 key = field[i]
20369 keylen = length(key)
20370 if (S_is_set[key]) {
20371 value = S[key]
20372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20373 len += length(value) + length(field[++i])
20374 substed = 1
20375 } else
20376 len += 1 + keylen
20377 }
20378
20379 print line
20380 }
20381
20382 _ACAWK
20383 _ACEOF
20384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20387 else
20388 cat
20389 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20390 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20391 _ACEOF
20392
20393 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20394 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20395 # trailing colons and then remove the whole line if VPATH becomes empty
20396 # (actually we leave an empty line to preserve line numbers).
20397 if test "x$srcdir" = x.; then
20398 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20399 h
20400 s///
20401 s/^/:/
20402 s/[ ]*$/:/
20403 s/:\$(srcdir):/:/g
20404 s/:\${srcdir}:/:/g
20405 s/:@srcdir@:/:/g
20406 s/^:*//
20407 s/:*$//
20408 x
20409 s/\(=[ ]*\).*/\1/
20410 G
20411 s/\n//
20412 s/^[^=]*=[ ]*$//
20413 }'
20414 fi
20415
20416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20417 fi # test -n "$CONFIG_FILES"
20418
20419 # Set up the scripts for CONFIG_HEADERS section.
20420 # No need to generate them if there are no CONFIG_HEADERS.
20421 # This happens for instance with `./config.status Makefile'.
20422 if test -n "$CONFIG_HEADERS"; then
20423 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20424 BEGIN {
20425 _ACEOF
20426
20427 # Transform confdefs.h into an awk script `defines.awk', embedded as
20428 # here-document in config.status, that substitutes the proper values into
20429 # config.h.in to produce config.h.
20430
20431 # Create a delimiter string that does not exist in confdefs.h, to ease
20432 # handling of long lines.
20433 ac_delim='%!_!# '
20434 for ac_last_try in false false :; do
20435 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20436 if test -z "$ac_tt"; then
20437 break
20438 elif $ac_last_try; then
20439 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20440 else
20441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20442 fi
20443 done
20444
20445 # For the awk script, D is an array of macro values keyed by name,
20446 # likewise P contains macro parameters if any. Preserve backslash
20447 # newline sequences.
20448
20449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20450 sed -n '
20451 s/.\{148\}/&'"$ac_delim"'/g
20452 t rset
20453 :rset
20454 s/^[ ]*#[ ]*define[ ][ ]*/ /
20455 t def
20456 d
20457 :def
20458 s/\\$//
20459 t bsnl
20460 s/["\\]/\\&/g
20461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20462 D["\1"]=" \3"/p
20463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20464 d
20465 :bsnl
20466 s/["\\]/\\&/g
20467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20468 D["\1"]=" \3\\\\\\n"\\/p
20469 t cont
20470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20471 t cont
20472 d
20473 :cont
20474 n
20475 s/.\{148\}/&'"$ac_delim"'/g
20476 t clear
20477 :clear
20478 s/\\$//
20479 t bsnlc
20480 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20481 d
20482 :bsnlc
20483 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20484 b cont
20485 ' <confdefs.h | sed '
20486 s/'"$ac_delim"'/"\\\
20487 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20488
20489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20490 for (key in D) D_is_set[key] = 1
20491 FS = ""
20492 }
20493 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20494 line = \$ 0
20495 split(line, arg, " ")
20496 if (arg[1] == "#") {
20497 defundef = arg[2]
20498 mac1 = arg[3]
20499 } else {
20500 defundef = substr(arg[1], 2)
20501 mac1 = arg[2]
20502 }
20503 split(mac1, mac2, "(") #)
20504 macro = mac2[1]
20505 prefix = substr(line, 1, index(line, defundef) - 1)
20506 if (D_is_set[macro]) {
20507 # Preserve the white space surrounding the "#".
20508 print prefix "define", macro P[macro] D[macro]
20509 next
20510 } else {
20511 # Replace #undef with comments. This is necessary, for example,
20512 # in the case of _POSIX_SOURCE, which is predefined and required
20513 # on some systems where configure will not decide to define it.
20514 if (defundef == "undef") {
20515 print "/*", prefix defundef, macro, "*/"
20516 next
20517 }
20518 }
20519 }
20520 { print }
20521 _ACAWK
20522 _ACEOF
20523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20524 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20525 fi # test -n "$CONFIG_HEADERS"
20526
20527
20528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20529 shift
20530 for ac_tag
20531 do
20532 case $ac_tag in
20533 :[FHLC]) ac_mode=$ac_tag; continue;;
20534 esac
20535 case $ac_mode$ac_tag in
20536 :[FHL]*:*);;
20537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20538 :[FH]-) ac_tag=-:-;;
20539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20540 esac
20541 ac_save_IFS=$IFS
20542 IFS=:
20543 set x $ac_tag
20544 IFS=$ac_save_IFS
20545 shift
20546 ac_file=$1
20547 shift
20548
20549 case $ac_mode in
20550 :L) ac_source=$1;;
20551 :[FH])
20552 ac_file_inputs=
20553 for ac_f
20554 do
20555 case $ac_f in
20556 -) ac_f="$ac_tmp/stdin";;
20557 *) # Look for the file first in the build tree, then in the source tree
20558 # (if the path is not absolute). The absolute path cannot be DOS-style,
20559 # because $ac_f cannot contain `:'.
20560 test -f "$ac_f" ||
20561 case $ac_f in
20562 [\\/$]*) false;;
20563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20564 esac ||
20565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20566 esac
20567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20568 as_fn_append ac_file_inputs " '$ac_f'"
20569 done
20570
20571 # Let's still pretend it is `configure' which instantiates (i.e., don't
20572 # use $as_me), people would be surprised to read:
20573 # /* config.h. Generated by config.status. */
20574 configure_input='Generated from '`
20575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20576 `' by configure.'
20577 if test x"$ac_file" != x-; then
20578 configure_input="$ac_file. $configure_input"
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20580 $as_echo "$as_me: creating $ac_file" >&6;}
20581 fi
20582 # Neutralize special characters interpreted by sed in replacement strings.
20583 case $configure_input in #(
20584 *\&* | *\|* | *\\* )
20585 ac_sed_conf_input=`$as_echo "$configure_input" |
20586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20587 *) ac_sed_conf_input=$configure_input;;
20588 esac
20589
20590 case $ac_tag in
20591 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20593 esac
20594 ;;
20595 esac
20596
20597 ac_dir=`$as_dirname -- "$ac_file" ||
20598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20599 X"$ac_file" : 'X\(//\)[^/]' \| \
20600 X"$ac_file" : 'X\(//\)$' \| \
20601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20602 $as_echo X"$ac_file" |
20603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20604 s//\1/
20605 q
20606 }
20607 /^X\(\/\/\)[^/].*/{
20608 s//\1/
20609 q
20610 }
20611 /^X\(\/\/\)$/{
20612 s//\1/
20613 q
20614 }
20615 /^X\(\/\).*/{
20616 s//\1/
20617 q
20618 }
20619 s/.*/./; q'`
20620 as_dir="$ac_dir"; as_fn_mkdir_p
20621 ac_builddir=.
20622
20623 case "$ac_dir" in
20624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20625 *)
20626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20627 # A ".." for each directory in $ac_dir_suffix.
20628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20629 case $ac_top_builddir_sub in
20630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20632 esac ;;
20633 esac
20634 ac_abs_top_builddir=$ac_pwd
20635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20636 # for backward compatibility:
20637 ac_top_builddir=$ac_top_build_prefix
20638
20639 case $srcdir in
20640 .) # We are building in place.
20641 ac_srcdir=.
20642 ac_top_srcdir=$ac_top_builddir_sub
20643 ac_abs_top_srcdir=$ac_pwd ;;
20644 [\\/]* | ?:[\\/]* ) # Absolute name.
20645 ac_srcdir=$srcdir$ac_dir_suffix;
20646 ac_top_srcdir=$srcdir
20647 ac_abs_top_srcdir=$srcdir ;;
20648 *) # Relative name.
20649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20650 ac_top_srcdir=$ac_top_build_prefix$srcdir
20651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20652 esac
20653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20654
20655
20656 case $ac_mode in
20657 :F)
20658 #
20659 # CONFIG_FILE
20660 #
20661
20662 case $INSTALL in
20663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20664 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20665 esac
20666 ac_MKDIR_P=$MKDIR_P
20667 case $MKDIR_P in
20668 [\\/$]* | ?:[\\/]* ) ;;
20669 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20670 esac
20671 _ACEOF
20672
20673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20674 # If the template does not know about datarootdir, expand it.
20675 # FIXME: This hack should be removed a few years after 2.60.
20676 ac_datarootdir_hack=; ac_datarootdir_seen=
20677 ac_sed_dataroot='
20678 /datarootdir/ {
20679 p
20680 q
20681 }
20682 /@datadir@/p
20683 /@docdir@/p
20684 /@infodir@/p
20685 /@localedir@/p
20686 /@mandir@/p'
20687 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20688 *datarootdir*) ac_datarootdir_seen=yes;;
20689 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20691 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20692 _ACEOF
20693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20694 ac_datarootdir_hack='
20695 s&@datadir@&$datadir&g
20696 s&@docdir@&$docdir&g
20697 s&@infodir@&$infodir&g
20698 s&@localedir@&$localedir&g
20699 s&@mandir@&$mandir&g
20700 s&\\\${datarootdir}&$datarootdir&g' ;;
20701 esac
20702 _ACEOF
20703
20704 # Neutralize VPATH when `$srcdir' = `.'.
20705 # Shell code in configure.ac might set extrasub.
20706 # FIXME: do we really want to maintain this feature?
20707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20708 ac_sed_extra="$ac_vpsub
20709 $extrasub
20710 _ACEOF
20711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20712 :t
20713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20714 s|@configure_input@|$ac_sed_conf_input|;t t
20715 s&@top_builddir@&$ac_top_builddir_sub&;t t
20716 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20717 s&@srcdir@&$ac_srcdir&;t t
20718 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20719 s&@top_srcdir@&$ac_top_srcdir&;t t
20720 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20721 s&@builddir@&$ac_builddir&;t t
20722 s&@abs_builddir@&$ac_abs_builddir&;t t
20723 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20724 s&@INSTALL@&$ac_INSTALL&;t t
20725 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20726 $ac_datarootdir_hack
20727 "
20728 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20729 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20730
20731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20732 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20734 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20736 which seems to be undefined. Please make sure it is defined" >&5
20737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20738 which seems to be undefined. Please make sure it is defined" >&2;}
20739
20740 rm -f "$ac_tmp/stdin"
20741 case $ac_file in
20742 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20743 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20744 esac \
20745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20746 ;;
20747 :H)
20748 #
20749 # CONFIG_HEADER
20750 #
20751 if test x"$ac_file" != x-; then
20752 {
20753 $as_echo "/* $configure_input */" \
20754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20755 } >"$ac_tmp/config.h" \
20756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20757 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20760 else
20761 rm -f "$ac_file"
20762 mv "$ac_tmp/config.h" "$ac_file" \
20763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20764 fi
20765 else
20766 $as_echo "/* $configure_input */" \
20767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20768 || as_fn_error $? "could not create -" "$LINENO" 5
20769 fi
20770 # Compute "$ac_file"'s index in $config_headers.
20771 _am_arg="$ac_file"
20772 _am_stamp_count=1
20773 for _am_header in $config_headers :; do
20774 case $_am_header in
20775 $_am_arg | $_am_arg:* )
20776 break ;;
20777 * )
20778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20779 esac
20780 done
20781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20783 X"$_am_arg" : 'X\(//\)[^/]' \| \
20784 X"$_am_arg" : 'X\(//\)$' \| \
20785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20786 $as_echo X"$_am_arg" |
20787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20788 s//\1/
20789 q
20790 }
20791 /^X\(\/\/\)[^/].*/{
20792 s//\1/
20793 q
20794 }
20795 /^X\(\/\/\)$/{
20796 s//\1/
20797 q
20798 }
20799 /^X\(\/\).*/{
20800 s//\1/
20801 q
20802 }
20803 s/.*/./; q'`/stamp-h$_am_stamp_count
20804 ;;
20805
20806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20807 $as_echo "$as_me: executing $ac_file commands" >&6;}
20808 ;;
20809 esac
20810
20811
20812 case $ac_file$ac_mode in
20813 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20814 # Older Autoconf quotes --file arguments for eval, but not when files
20815 # are listed without --file. Let's play safe and only enable the eval
20816 # if we detect the quoting.
20817 case $CONFIG_FILES in
20818 *\'*) eval set x "$CONFIG_FILES" ;;
20819 *) set x $CONFIG_FILES ;;
20820 esac
20821 shift
20822 for mf
20823 do
20824 # Strip MF so we end up with the name of the file.
20825 mf=`echo "$mf" | sed -e 's/:.*$//'`
20826 # Check whether this is an Automake generated Makefile or not.
20827 # We used to match only the files named 'Makefile.in', but
20828 # some people rename them; so instead we look at the file content.
20829 # Grep'ing the first line is not enough: some people post-process
20830 # each Makefile.in and add a new line on top of each file to say so.
20831 # Grep'ing the whole file is not good either: AIX grep has a line
20832 # limit of 2048, but all sed's we know have understand at least 4000.
20833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20834 dirpart=`$as_dirname -- "$mf" ||
20835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836 X"$mf" : 'X\(//\)[^/]' \| \
20837 X"$mf" : 'X\(//\)$' \| \
20838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20839 $as_echo X"$mf" |
20840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20841 s//\1/
20842 q
20843 }
20844 /^X\(\/\/\)[^/].*/{
20845 s//\1/
20846 q
20847 }
20848 /^X\(\/\/\)$/{
20849 s//\1/
20850 q
20851 }
20852 /^X\(\/\).*/{
20853 s//\1/
20854 q
20855 }
20856 s/.*/./; q'`
20857 else
20858 continue
20859 fi
20860 # Extract the definition of DEPDIR, am__include, and am__quote
20861 # from the Makefile without running 'make'.
20862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20863 test -z "$DEPDIR" && continue
20864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20865 test -z "$am__include" && continue
20866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20867 # Find all dependency output files, they are included files with
20868 # $(DEPDIR) in their names. We invoke sed twice because it is the
20869 # simplest approach to changing $(DEPDIR) to its actual value in the
20870 # expansion.
20871 for file in `sed -n "
20872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20874 # Make sure the directory exists.
20875 test -f "$dirpart/$file" && continue
20876 fdir=`$as_dirname -- "$file" ||
20877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20878 X"$file" : 'X\(//\)[^/]' \| \
20879 X"$file" : 'X\(//\)$' \| \
20880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20881 $as_echo X"$file" |
20882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20883 s//\1/
20884 q
20885 }
20886 /^X\(\/\/\)[^/].*/{
20887 s//\1/
20888 q
20889 }
20890 /^X\(\/\/\)$/{
20891 s//\1/
20892 q
20893 }
20894 /^X\(\/\).*/{
20895 s//\1/
20896 q
20897 }
20898 s/.*/./; q'`
20899 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20900 # echo "creating $dirpart/$file"
20901 echo '# dummy' > "$dirpart/$file"
20902 done
20903 done
20904 }
20905 ;;
20906 "libtool":C)
20907
20908 # See if we are running on zsh, and set the options that allow our
20909 # commands through without removal of \ escapes.
20910 if test -n "${ZSH_VERSION+set}"; then
20911 setopt NO_GLOB_SUBST
20912 fi
20913
20914 cfgfile=${ofile}T
20915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20916 $RM "$cfgfile"
20917
20918 cat <<_LT_EOF >> "$cfgfile"
20919 #! $SHELL
20920 # Generated automatically by $as_me ($PACKAGE) $VERSION
20921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20923
20924 # Provide generalized library-building support services.
20925 # Written by Gordon Matzigkeit, 1996
20926
20927 # Copyright (C) 2014 Free Software Foundation, Inc.
20928 # This is free software; see the source for copying conditions. There is NO
20929 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20930
20931 # GNU Libtool is free software; you can redistribute it and/or modify
20932 # it under the terms of the GNU General Public License as published by
20933 # the Free Software Foundation; either version 2 of of the License, or
20934 # (at your option) any later version.
20935 #
20936 # As a special exception to the GNU General Public License, if you
20937 # distribute this file as part of a program or library that is built
20938 # using GNU Libtool, you may include this file under the same
20939 # distribution terms that you use for the rest of that program.
20940 #
20941 # GNU Libtool is distributed in the hope that it will be useful, but
20942 # WITHOUT ANY WARRANTY; without even the implied warranty of
20943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20944 # GNU General Public License for more details.
20945 #
20946 # You should have received a copy of the GNU General Public License
20947 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20948
20949
20950 # The names of the tagged configurations supported by this script.
20951 available_tags=''
20952
20953 # Configured defaults for sys_lib_dlsearch_path munging.
20954 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20955
20956 # ### BEGIN LIBTOOL CONFIG
20957
20958 # Whether or not to build static libraries.
20959 build_old_libs=$enable_static
20960
20961 # Which release of libtool.m4 was used?
20962 macro_version=$macro_version
20963 macro_revision=$macro_revision
20964
20965 # Whether or not to build shared libraries.
20966 build_libtool_libs=$enable_shared
20967
20968 # What type of objects to build.
20969 pic_mode=$pic_mode
20970
20971 # Whether or not to optimize for fast installation.
20972 fast_install=$enable_fast_install
20973
20974 # Shared archive member basename,for filename based shared library versioning on AIX.
20975 shared_archive_member_spec=$shared_archive_member_spec
20976
20977 # Shell to use when invoking shell scripts.
20978 SHELL=$lt_SHELL
20979
20980 # An echo program that protects backslashes.
20981 ECHO=$lt_ECHO
20982
20983 # The PATH separator for the build system.
20984 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20985
20986 # The host system.
20987 host_alias=$host_alias
20988 host=$host
20989 host_os=$host_os
20990
20991 # The build system.
20992 build_alias=$build_alias
20993 build=$build
20994 build_os=$build_os
20995
20996 # A sed program that does not truncate output.
20997 SED=$lt_SED
20998
20999 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21000 Xsed="\$SED -e 1s/^X//"
21001
21002 # A grep program that handles long lines.
21003 GREP=$lt_GREP
21004
21005 # An ERE matcher.
21006 EGREP=$lt_EGREP
21007
21008 # A literal string matcher.
21009 FGREP=$lt_FGREP
21010
21011 # A BSD- or MS-compatible name lister.
21012 NM=$lt_NM
21013
21014 # Whether we need soft or hard links.
21015 LN_S=$lt_LN_S
21016
21017 # What is the maximum length of a command?
21018 max_cmd_len=$max_cmd_len
21019
21020 # Object file suffix (normally "o").
21021 objext=$ac_objext
21022
21023 # Executable file suffix (normally "").
21024 exeext=$exeext
21025
21026 # whether the shell understands "unset".
21027 lt_unset=$lt_unset
21028
21029 # turn spaces into newlines.
21030 SP2NL=$lt_lt_SP2NL
21031
21032 # turn newlines into spaces.
21033 NL2SP=$lt_lt_NL2SP
21034
21035 # convert \$build file names to \$host format.
21036 to_host_file_cmd=$lt_cv_to_host_file_cmd
21037
21038 # convert \$build files to toolchain format.
21039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21040
21041 # An object symbol dumper.
21042 OBJDUMP=$lt_OBJDUMP
21043
21044 # Method to check whether dependent libraries are shared objects.
21045 deplibs_check_method=$lt_deplibs_check_method
21046
21047 # Command to use when deplibs_check_method = "file_magic".
21048 file_magic_cmd=$lt_file_magic_cmd
21049
21050 # How to find potential files when deplibs_check_method = "file_magic".
21051 file_magic_glob=$lt_file_magic_glob
21052
21053 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21054 want_nocaseglob=$lt_want_nocaseglob
21055
21056 # DLL creation program.
21057 DLLTOOL=$lt_DLLTOOL
21058
21059 # Command to associate shared and link libraries.
21060 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21061
21062 # The archiver.
21063 AR=$lt_AR
21064
21065 # Flags to create an archive.
21066 AR_FLAGS=$lt_AR_FLAGS
21067
21068 # How to feed a file listing to the archiver.
21069 archiver_list_spec=$lt_archiver_list_spec
21070
21071 # A symbol stripping program.
21072 STRIP=$lt_STRIP
21073
21074 # Commands used to install an old-style archive.
21075 RANLIB=$lt_RANLIB
21076 old_postinstall_cmds=$lt_old_postinstall_cmds
21077 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21078
21079 # Whether to use a lock for old archive extraction.
21080 lock_old_archive_extraction=$lock_old_archive_extraction
21081
21082 # A C compiler.
21083 LTCC=$lt_CC
21084
21085 # LTCC compiler flags.
21086 LTCFLAGS=$lt_CFLAGS
21087
21088 # Take the output of nm and produce a listing of raw symbols and C names.
21089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21090
21091 # Transform the output of nm in a proper C declaration.
21092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21093
21094 # Transform the output of nm into a list of symbols to manually relocate.
21095 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21096
21097 # Transform the output of nm in a C name address pair.
21098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21099
21100 # Transform the output of nm in a C name address pair when lib prefix is needed.
21101 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21102
21103 # The name lister interface.
21104 nm_interface=$lt_lt_cv_nm_interface
21105
21106 # Specify filename containing input files for \$NM.
21107 nm_file_list_spec=$lt_nm_file_list_spec
21108
21109 # The root where to search for dependent libraries,and where our libraries should be installed.
21110 lt_sysroot=$lt_sysroot
21111
21112 # Command to truncate a binary pipe.
21113 lt_truncate_bin=$lt_lt_cv_truncate_bin
21114
21115 # The name of the directory that contains temporary libtool files.
21116 objdir=$objdir
21117
21118 # Used to examine libraries when file_magic_cmd begins with "file".
21119 MAGIC_CMD=$MAGIC_CMD
21120
21121 # Must we lock files when doing compilation?
21122 need_locks=$lt_need_locks
21123
21124 # Manifest tool.
21125 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21126
21127 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21128 DSYMUTIL=$lt_DSYMUTIL
21129
21130 # Tool to change global to local symbols on Mac OS X.
21131 NMEDIT=$lt_NMEDIT
21132
21133 # Tool to manipulate fat objects and archives on Mac OS X.
21134 LIPO=$lt_LIPO
21135
21136 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21137 OTOOL=$lt_OTOOL
21138
21139 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21140 OTOOL64=$lt_OTOOL64
21141
21142 # Old archive suffix (normally "a").
21143 libext=$libext
21144
21145 # Shared library suffix (normally ".so").
21146 shrext_cmds=$lt_shrext_cmds
21147
21148 # The commands to extract the exported symbol list from a shared archive.
21149 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21150
21151 # Variables whose values should be saved in libtool wrapper scripts and
21152 # restored at link time.
21153 variables_saved_for_relink=$lt_variables_saved_for_relink
21154
21155 # Do we need the "lib" prefix for modules?
21156 need_lib_prefix=$need_lib_prefix
21157
21158 # Do we need a version for libraries?
21159 need_version=$need_version
21160
21161 # Library versioning type.
21162 version_type=$version_type
21163
21164 # Shared library runtime path variable.
21165 runpath_var=$runpath_var
21166
21167 # Shared library path variable.
21168 shlibpath_var=$shlibpath_var
21169
21170 # Is shlibpath searched before the hard-coded library search path?
21171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21172
21173 # Format of library name prefix.
21174 libname_spec=$lt_libname_spec
21175
21176 # List of archive names. First name is the real one, the rest are links.
21177 # The last name is the one that the linker finds with -lNAME
21178 library_names_spec=$lt_library_names_spec
21179
21180 # The coded name of the library, if different from the real name.
21181 soname_spec=$lt_soname_spec
21182
21183 # Permission mode override for installation of shared libraries.
21184 install_override_mode=$lt_install_override_mode
21185
21186 # Command to use after installation of a shared archive.
21187 postinstall_cmds=$lt_postinstall_cmds
21188
21189 # Command to use after uninstallation of a shared archive.
21190 postuninstall_cmds=$lt_postuninstall_cmds
21191
21192 # Commands used to finish a libtool library installation in a directory.
21193 finish_cmds=$lt_finish_cmds
21194
21195 # As "finish_cmds", except a single script fragment to be evaled but
21196 # not shown.
21197 finish_eval=$lt_finish_eval
21198
21199 # Whether we should hardcode library paths into libraries.
21200 hardcode_into_libs=$hardcode_into_libs
21201
21202 # Compile-time system search path for libraries.
21203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21204
21205 # Detected run-time system search path for libraries.
21206 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21207
21208 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21209 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21210
21211 # Whether dlopen is supported.
21212 dlopen_support=$enable_dlopen
21213
21214 # Whether dlopen of programs is supported.
21215 dlopen_self=$enable_dlopen_self
21216
21217 # Whether dlopen of statically linked programs is supported.
21218 dlopen_self_static=$enable_dlopen_self_static
21219
21220 # Commands to strip libraries.
21221 old_striplib=$lt_old_striplib
21222 striplib=$lt_striplib
21223
21224
21225 # The linker used to build libraries.
21226 LD=$lt_LD
21227
21228 # How to create reloadable object files.
21229 reload_flag=$lt_reload_flag
21230 reload_cmds=$lt_reload_cmds
21231
21232 # Commands used to build an old-style archive.
21233 old_archive_cmds=$lt_old_archive_cmds
21234
21235 # A language specific compiler.
21236 CC=$lt_compiler
21237
21238 # Is the compiler the GNU compiler?
21239 with_gcc=$GCC
21240
21241 # Compiler flag to turn off builtin functions.
21242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21243
21244 # Additional compiler flags for building library objects.
21245 pic_flag=$lt_lt_prog_compiler_pic
21246
21247 # How to pass a linker flag through the compiler.
21248 wl=$lt_lt_prog_compiler_wl
21249
21250 # Compiler flag to prevent dynamic linking.
21251 link_static_flag=$lt_lt_prog_compiler_static
21252
21253 # Does compiler simultaneously support -c and -o options?
21254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21255
21256 # Whether or not to add -lc for building shared libraries.
21257 build_libtool_need_lc=$archive_cmds_need_lc
21258
21259 # Whether or not to disallow shared libs when runtime libs are static.
21260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21261
21262 # Compiler flag to allow reflexive dlopens.
21263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21264
21265 # Compiler flag to generate shared objects directly from archives.
21266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21267
21268 # Whether the compiler copes with passing no objects directly.
21269 compiler_needs_object=$lt_compiler_needs_object
21270
21271 # Create an old-style archive from a shared archive.
21272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21273
21274 # Create a temporary old-style archive to link instead of a shared archive.
21275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21276
21277 # Commands used to build a shared archive.
21278 archive_cmds=$lt_archive_cmds
21279 archive_expsym_cmds=$lt_archive_expsym_cmds
21280
21281 # Commands used to build a loadable module if different from building
21282 # a shared archive.
21283 module_cmds=$lt_module_cmds
21284 module_expsym_cmds=$lt_module_expsym_cmds
21285
21286 # Whether we are building with GNU ld or not.
21287 with_gnu_ld=$lt_with_gnu_ld
21288
21289 # Flag that allows shared libraries with undefined symbols to be built.
21290 allow_undefined_flag=$lt_allow_undefined_flag
21291
21292 # Flag that enforces no undefined symbols.
21293 no_undefined_flag=$lt_no_undefined_flag
21294
21295 # Flag to hardcode \$libdir into a binary during linking.
21296 # This must work even if \$libdir does not exist
21297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21298
21299 # Whether we need a single "-rpath" flag with a separated argument.
21300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21301
21302 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21303 # DIR into the resulting binary.
21304 hardcode_direct=$hardcode_direct
21305
21306 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21307 # DIR into the resulting binary and the resulting library dependency is
21308 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21309 # library is relocated.
21310 hardcode_direct_absolute=$hardcode_direct_absolute
21311
21312 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21313 # into the resulting binary.
21314 hardcode_minus_L=$hardcode_minus_L
21315
21316 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21317 # into the resulting binary.
21318 hardcode_shlibpath_var=$hardcode_shlibpath_var
21319
21320 # Set to "yes" if building a shared library automatically hardcodes DIR
21321 # into the library and all subsequent libraries and executables linked
21322 # against it.
21323 hardcode_automatic=$hardcode_automatic
21324
21325 # Set to yes if linker adds runtime paths of dependent libraries
21326 # to runtime path list.
21327 inherit_rpath=$inherit_rpath
21328
21329 # Whether libtool must link a program against all its dependency libraries.
21330 link_all_deplibs=$link_all_deplibs
21331
21332 # Set to "yes" if exported symbols are required.
21333 always_export_symbols=$always_export_symbols
21334
21335 # The commands to list exported symbols.
21336 export_symbols_cmds=$lt_export_symbols_cmds
21337
21338 # Symbols that should not be listed in the preloaded symbols.
21339 exclude_expsyms=$lt_exclude_expsyms
21340
21341 # Symbols that must always be exported.
21342 include_expsyms=$lt_include_expsyms
21343
21344 # Commands necessary for linking programs (against libraries) with templates.
21345 prelink_cmds=$lt_prelink_cmds
21346
21347 # Commands necessary for finishing linking programs.
21348 postlink_cmds=$lt_postlink_cmds
21349
21350 # Specify filename containing input files.
21351 file_list_spec=$lt_file_list_spec
21352
21353 # How to hardcode a shared library path into an executable.
21354 hardcode_action=$hardcode_action
21355
21356 # ### END LIBTOOL CONFIG
21357
21358 _LT_EOF
21359
21360 cat <<'_LT_EOF' >> "$cfgfile"
21361
21362 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21363
21364 # func_munge_path_list VARIABLE PATH
21365 # -----------------------------------
21366 # VARIABLE is name of variable containing _space_ separated list of
21367 # directories to be munged by the contents of PATH, which is string
21368 # having a format:
21369 # "DIR[:DIR]:"
21370 # string "DIR[ DIR]" will be prepended to VARIABLE
21371 # ":DIR[:DIR]"
21372 # string "DIR[ DIR]" will be appended to VARIABLE
21373 # "DIRP[:DIRP]::[DIRA:]DIRA"
21374 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21375 # "DIRA[ DIRA]" will be appended to VARIABLE
21376 # "DIR[:DIR]"
21377 # VARIABLE will be replaced by "DIR[ DIR]"
21378 func_munge_path_list ()
21379 {
21380 case x$2 in
21381 x)
21382 ;;
21383 *:)
21384 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21385 ;;
21386 x:*)
21387 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21388 ;;
21389 *::*)
21390 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21391 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21392 ;;
21393 *)
21394 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21395 ;;
21396 esac
21397 }
21398
21399
21400 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21401 func_cc_basename ()
21402 {
21403 for cc_temp in $*""; do
21404 case $cc_temp in
21405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21407 \-*) ;;
21408 *) break;;
21409 esac
21410 done
21411 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21412 }
21413
21414
21415 # ### END FUNCTIONS SHARED WITH CONFIGURE
21416
21417 _LT_EOF
21418
21419 case $host_os in
21420 aix3*)
21421 cat <<\_LT_EOF >> "$cfgfile"
21422 # AIX sometimes has problems with the GCC collect2 program. For some
21423 # reason, if we set the COLLECT_NAMES environment variable, the problems
21424 # vanish in a puff of smoke.
21425 if test set != "${COLLECT_NAMES+set}"; then
21426 COLLECT_NAMES=
21427 export COLLECT_NAMES
21428 fi
21429 _LT_EOF
21430 ;;
21431 esac
21432
21433
21434 ltmain=$ac_aux_dir/ltmain.sh
21435
21436
21437 # We use sed instead of cat because bash on DJGPP gets confused if
21438 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21439 # text mode, it properly converts lines to CR/LF. This bash problem
21440 # is reportedly fixed, but why not run on old versions too?
21441 sed '$q' "$ltmain" >> "$cfgfile" \
21442 || (rm -f "$cfgfile"; exit 1)
21443
21444 mv -f "$cfgfile" "$ofile" ||
21445 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21446 chmod +x "$ofile"
21447
21448 ;;
21449
21450 esac
21451 done # for ac_tag
21452
21453
21454 as_fn_exit 0
21455 _ACEOF
21456 ac_clean_files=$ac_clean_files_save
21457
21458 test $ac_write_fail = 0 ||
21459 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21460
21461
21462 # configure is writing to config.log, and then calls config.status.
21463 # config.status does its own redirection, appending to config.log.
21464 # Unfortunately, on DOS this fails, as config.log is still kept open
21465 # by configure, so config.status won't be able to write to it; its
21466 # output is simply discarded. So we exec the FD to /dev/null,
21467 # effectively closing config.log, so it can be properly (re)opened and
21468 # appended to by config.status. When coming back to configure, we
21469 # need to make the FD available again.
21470 if test "$no_create" != yes; then
21471 ac_cs_success=:
21472 ac_config_status_args=
21473 test "$silent" = yes &&
21474 ac_config_status_args="$ac_config_status_args --quiet"
21475 exec 5>/dev/null
21476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21477 exec 5>>config.log
21478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21479 # would make configure fail if this is the last instruction.
21480 $ac_cs_success || as_fn_exit 1
21481 fi
21482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21485 fi
21486
21487