configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-i740 1.3.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-i740'
593 PACKAGE_TARNAME='xf86-video-i740'
594 PACKAGE_VERSION='1.3.6'
595 PACKAGE_STRING='xf86-video-i740 1.3.6'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 XAA_FALSE
643 XAA_TRUE
644 XSERVER_LIBPCIACCESS_FALSE
645 XSERVER_LIBPCIACCESS_TRUE
646 PCIACCESS_LIBS
647 PCIACCESS_CFLAGS
648 XORG_LIBS
649 XORG_CFLAGS
650 LT_SYS_LIBRARY_PATH
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 LIBTOOL
669 MAN_SUBSTS
670 XORG_MAN_PAGE
671 ADMIN_MAN_DIR
672 DRIVER_MAN_DIR
673 MISC_MAN_DIR
674 FILE_MAN_DIR
675 LIB_MAN_DIR
676 APP_MAN_DIR
677 ADMIN_MAN_SUFFIX
678 DRIVER_MAN_SUFFIX
679 MISC_MAN_SUFFIX
680 FILE_MAN_SUFFIX
681 LIB_MAN_SUFFIX
682 APP_MAN_SUFFIX
683 SED
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 INSTALL_CMD
693 PKG_CONFIG_LIBDIR
694 PKG_CONFIG_PATH
695 PKG_CONFIG
696 CHANGELOG_CMD
697 STRICT_CFLAGS
698 CWARNFLAGS
699 BASE_CFLAGS
700 EGREP
701 GREP
702 CPP
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__quote
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_silent_rules
792 enable_maintainer_mode
793 enable_dependency_tracking
794 enable_selective_werror
795 enable_strict_compilation
796 enable_static
797 enable_shared
798 with_pic
799 enable_fast_install
800 with_aix_soname
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_xorg_module_dir
805 enable_xaa
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 PKG_CONFIG
817 PKG_CONFIG_PATH
818 PKG_CONFIG_LIBDIR
819 LT_SYS_LIBRARY_PATH
820 XORG_CFLAGS
821 XORG_LIBS
822 PCIACCESS_CFLAGS
823 PCIACCESS_LIBS'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1158
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1208
1209 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information"
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1222
1223 *)
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 ;;
1230
1231 esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $? "missing argument to $ac_option"
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245 fi
1246
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1252 do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1267
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1274
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $? "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $? "pwd does not report name of working directory"
1296
1297
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329 else
1330 ac_srcdir_defaulted=no
1331 fi
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 fi
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures xf86-video-i740 1.3.6 to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i740]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1418
1419 cat <<\_ACEOF
1420
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 _ACEOF
1430 fi
1431
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of xf86-video-i740 1.3.6:";;
1435 esac
1436 cat <<\_ACEOF
1437
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
1447 --enable-dependency-tracking
1448 do not reject slow dependency extractors
1449 --disable-dependency-tracking
1450 speeds up one-time build
1451 --disable-selective-werror
1452 Turn off selective compiler errors. (default:
1453 enabled)
1454 --enable-strict-compilation
1455 Enable all warnings from compiler and make them
1456 errors (default: disabled)
1457 --enable-static[=PKGS] build static libraries [default=no]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-xaa Enable legacy X Acceleration Architecture (XAA)
1463 [default=auto]
1464
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-aix-soname=aix|svr4|both
1471 shared library versioning (aka "SONAME") variant to
1472 provide on AIX, [default=aix].
1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1475 compiler's sysroot if not specified).
1476 --with-xorg-module-dir=DIR
1477 Default xorg module directory
1478 [[default=$libdir/xorg/modules]]
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 PKG_CONFIG path to pkg-config utility
1490 PKG_CONFIG_PATH
1491 directories to add to pkg-config's search path
1492 PKG_CONFIG_LIBDIR
1493 path overriding pkg-config's built-in search path
1494 LT_SYS_LIBRARY_PATH
1495 User-defined run-time library search path.
1496 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1497 XORG_LIBS linker flags for XORG, overriding pkg-config
1498 PCIACCESS_CFLAGS
1499 C compiler flags for PCIACCESS, overriding pkg-config
1500 PCIACCESS_LIBS
1501 linker flags for PCIACCESS, overriding pkg-config
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 xf86-video-i740 configure 1.3.6
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1622 # ---------------------------------------------
1623 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1624 # accordingly.
1625 ac_fn_c_check_decl ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 as_decl_name=`echo $2|sed 's/ *(.*//'`
1629 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1631 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 $4
1638 int
1639 main ()
1640 {
1641 #ifndef $as_decl_name
1642 #ifdef __cplusplus
1643 (void) $as_decl_use;
1644 #else
1645 (void) $as_decl_name;
1646 #endif
1647 #endif
1648
1649 ;
1650 return 0;
1651 }
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_decl
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739 fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765 else
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_header_compile
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 test -x conftest$ac_exeext
1805 }; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812 fi
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_link
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1839
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1850
1851 #undef $2
1852
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1866
1867 int
1868 main ()
1869 {
1870 return $2 ();
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_func
1889
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1894 # accordingly.
1895 ac_fn_c_check_header_mongrel ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if eval \${$3+:} false; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 else
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1918 else
1919 ac_header_compiler=no
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1924
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1934 else
1935 ac_header_preproc=no
1936 fi
1937 rm -f conftest.err conftest.i conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1940
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 yes:no: )
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 ;;
1949 no:yes:* )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ( $as_echo "## ---------------------------------------------------------------------- ##
1961 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1962 ## ---------------------------------------------------------------------- ##"
1963 ) | sed "s/^/$as_me: WARNING: /" >&2
1964 ;;
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_check_header_mongrel
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1983
1984 It was created by xf86-video-i740 $as_me 1.3.6, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1986
1987 $ $0 $@
1988
1989 _ACEOF
1990 exec 5>>config.log
1991 {
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1996
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013
2014 _ASUNAME
2015
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2024
2025 } >&5
2026
2027 cat >&5 <<_ACEOF
2028
2029
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2033
2034 _ACEOF
2035
2036
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2047 do
2048 for ac_arg
2049 do
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060 2)
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2073 ;;
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2076 fi
2077 as_fn_append ac_configure_args " '$ac_arg'"
2078 ;;
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2084
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2092 {
2093 echo
2094
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2100 (
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2123 *)
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125 ;;
2126 esac |
2127 sort
2128 )
2129 echo
2130
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149 echo
2150 for ac_var in $ac_subst_files
2151 do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2159 fi
2160
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165 echo
2166 cat confdefs.h
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2176 ' 0
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2181
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2184
2185 $as_echo "/* confdefs.h */" > confdefs.h
2186
2187 # Predefined preprocessor variables.
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2212
2213
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228 else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2231 fi
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233 do
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2244 fi
2245 done
2246
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2257 fi
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2262 fi
2263
2264 # Check that the precious variables saved in the cache have kept the same
2265 # value.
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2273 set,)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,set)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,);;
2282 *)
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 esac
2312 fi
2313 done
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2320 fi
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2324
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331
2332
2333 ac_config_headers="$ac_config_headers config.h"
2334
2335 ac_aux_dir=
2336 for ac_dir in . "$srcdir"/.; do
2337 if test -f "$ac_dir/install-sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2340 break
2341 elif test -f "$ac_dir/install.sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2344 break
2345 elif test -f "$ac_dir/shtool"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 break
2349 fi
2350 done
2351 if test -z "$ac_aux_dir"; then
2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2353 fi
2354
2355 # These three variables are undocumented and unsupported,
2356 # and are intended to be withdrawn in a future Autoconf release.
2357 # They can cause serious problems if a builder's source tree is in a directory
2358 # whose full name contains unusual characters.
2359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2361 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362
2363
2364
2365 # Initialize Automake
2366 am__api_version='1.15'
2367
2368 # Find a good install program. We prefer a C program (faster),
2369 # so one script is as good as another. But avoid the broken or
2370 # incompatible versions:
2371 # SysV /etc/install, /usr/sbin/install
2372 # SunOS /usr/etc/install
2373 # IRIX /sbin/install
2374 # AIX /bin/install
2375 # AmigaOS /C/install, which installs bootblocks on floppy discs
2376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2379 # OS/2's system install, which has a completely different semantic
2380 # ./install, which can be erroneously created by make from ./install.sh.
2381 # Reject install programs that cannot install multiple files.
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2384 if test -z "$INSTALL"; then
2385 if ${ac_cv_path_install+:} false; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 # Account for people who put trailing slashes in PATH elements.
2394 case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2406 if test $ac_prog = install &&
2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # AIX install. It has an incompatible calling convention.
2409 :
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
2414 else
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
2427 fi
2428 fi
2429 done
2430 done
2431 ;;
2432 esac
2433
2434 done
2435 IFS=$as_save_IFS
2436
2437 rm -rf conftest.one conftest.two conftest.dir
2438
2439 fi
2440 if test "${ac_cv_path_install+set}" = set; then
2441 INSTALL=$ac_cv_path_install
2442 else
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the value is a relative name.
2447 INSTALL=$ac_install_sh
2448 fi
2449 fi
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451 $as_echo "$INSTALL" >&6; }
2452
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2462 $as_echo_n "checking whether build environment is sane... " >&6; }
2463 # Reject unsafe characters in $srcdir or the absolute working directory
2464 # name. Accept space and tab only in the latter.
2465 am_lf='
2466 '
2467 case `pwd` in
2468 *[\\\"\#\$\&\'\`$am_lf]*)
2469 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2470 esac
2471 case $srcdir in
2472 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2473 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2474 esac
2475
2476 # Do 'set' in a subshell so we don't clobber the current shell's
2477 # arguments. Must try -L first in case configure is actually a
2478 # symlink; some systems play weird games with the mod time of symlinks
2479 # (eg FreeBSD returns the mod time of the symlink's containing
2480 # directory).
2481 if (
2482 am_has_slept=no
2483 for am_try in 1 2; do
2484 echo "timestamp, slept: $am_has_slept" > conftest.file
2485 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2486 if test "$*" = "X"; then
2487 # -L didn't work.
2488 set X `ls -t "$srcdir/configure" conftest.file`
2489 fi
2490 if test "$*" != "X $srcdir/configure conftest.file" \
2491 && test "$*" != "X conftest.file $srcdir/configure"; then
2492
2493 # If neither matched, then we have a broken ls. This can happen
2494 # if, for instance, CONFIG_SHELL is bash and it inherits a
2495 # broken ls alias from the environment. This has actually
2496 # happened. Such a system could not be considered "sane".
2497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2498 alias in your environment" "$LINENO" 5
2499 fi
2500 if test "$2" = conftest.file || test $am_try -eq 2; then
2501 break
2502 fi
2503 # Just in case.
2504 sleep 1
2505 am_has_slept=yes
2506 done
2507 test "$2" = conftest.file
2508 )
2509 then
2510 # Ok.
2511 :
2512 else
2513 as_fn_error $? "newly created file is older than distributed files!
2514 Check your system clock" "$LINENO" 5
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2517 $as_echo "yes" >&6; }
2518 # If we didn't sleep, we still need to ensure time stamps of config.status and
2519 # generated files are strictly newer.
2520 am_sleep_pid=
2521 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2522 ( sleep 1 ) &
2523 am_sleep_pid=$!
2524 fi
2525
2526 rm -f conftest.file
2527
2528 test "$program_prefix" != NONE &&
2529 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE &&
2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537
2538 # Expand $ac_aux_dir to an absolute path.
2539 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2540
2541 if test x"${MISSING+set}" != xset; then
2542 case $am_aux_dir in
2543 *\ * | *\ *)
2544 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545 *)
2546 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2547 esac
2548 fi
2549 # Use eval to expand $SHELL
2550 if eval "$MISSING --is-lightweight"; then
2551 am_missing_run="$MISSING "
2552 else
2553 am_missing_run=
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2555 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2556 fi
2557
2558 if test x"${install_sh+set}" != xset; then
2559 case $am_aux_dir in
2560 *\ * | *\ *)
2561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562 *)
2563 install_sh="\${SHELL} $am_aux_dir/install-sh"
2564 esac
2565 fi
2566
2567 # Installed binaries are usually stripped using 'strip' when the user
2568 # run "make install-strip". However 'strip' might not be the right
2569 # tool to use in cross-compilation environments, therefore Automake
2570 # will honor the 'STRIP' environment variable to overrule this program.
2571 if test "$cross_compiling" != no; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$STRIP"; then
2581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 STRIP=$ac_cv_prog_STRIP
2601 if test -n "$STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2603 $as_echo "$STRIP" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 if test -z "$ac_cv_prog_STRIP"; then
2612 ac_ct_STRIP=$STRIP
2613 # Extract the first word of "strip", so it can be a program name with args.
2614 set dummy strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$ac_ct_STRIP"; then
2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_ac_ct_STRIP="strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641 if test -n "$ac_ct_STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2643 $as_echo "$ac_ct_STRIP" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649 if test "x$ac_ct_STRIP" = x; then
2650 STRIP=":"
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653 yes:)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 STRIP=$ac_ct_STRIP
2659 fi
2660 else
2661 STRIP="$ac_cv_prog_STRIP"
2662 fi
2663
2664 fi
2665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2668 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2669 if test -z "$MKDIR_P"; then
2670 if ${ac_cv_path_mkdir+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in mkdir gmkdir; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2681 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2682 'mkdir (GNU coreutils) '* | \
2683 'mkdir (coreutils) '* | \
2684 'mkdir (fileutils) '4.1*)
2685 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2686 break 3;;
2687 esac
2688 done
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694
2695 test -d ./--version && rmdir ./--version
2696 if test "${ac_cv_path_mkdir+set}" = set; then
2697 MKDIR_P="$ac_cv_path_mkdir -p"
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for MKDIR_P within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 MKDIR_P="$ac_install_sh -d"
2704 fi
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2707 $as_echo "$MKDIR_P" >&6; }
2708
2709 for ac_prog in gawk mawk nawk awk
2710 do
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712 set dummy $ac_prog; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_AWK+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$AWK"; then
2719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_AWK="$ac_prog"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 AWK=$ac_cv_prog_AWK
2739 if test -n "$AWK"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2741 $as_echo "$AWK" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747
2748 test -n "$AWK" && break
2749 done
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2753 set x ${MAKE-make}
2754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2755 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 cat >conftest.make <<\_ACEOF
2759 SHELL = /bin/sh
2760 all:
2761 @echo '@@@%%%=$(MAKE)=@@@%%%'
2762 _ACEOF
2763 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2765 *@@@%%%=?*=@@@%%%*)
2766 eval ac_cv_prog_make_${ac_make}_set=yes;;
2767 *)
2768 eval ac_cv_prog_make_${ac_make}_set=no;;
2769 esac
2770 rm -f conftest.make
2771 fi
2772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774 $as_echo "yes" >&6; }
2775 SET_MAKE=
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 SET_MAKE="MAKE=${MAKE-make}"
2780 fi
2781
2782 rm -rf .tst 2>/dev/null
2783 mkdir .tst 2>/dev/null
2784 if test -d .tst; then
2785 am__leading_dot=.
2786 else
2787 am__leading_dot=_
2788 fi
2789 rmdir .tst 2>/dev/null
2790
2791 # Check whether --enable-silent-rules was given.
2792 if test "${enable_silent_rules+set}" = set; then :
2793 enableval=$enable_silent_rules;
2794 fi
2795
2796 case $enable_silent_rules in # (((
2797 yes) AM_DEFAULT_VERBOSITY=0;;
2798 no) AM_DEFAULT_VERBOSITY=1;;
2799 *) AM_DEFAULT_VERBOSITY=1;;
2800 esac
2801 am_make=${MAKE-make}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2803 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2804 if ${am_cv_make_support_nested_variables+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if $as_echo 'TRUE=$(BAR$(V))
2808 BAR0=false
2809 BAR1=true
2810 V=1
2811 am__doit:
2812 @$(TRUE)
2813 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2814 am_cv_make_support_nested_variables=yes
2815 else
2816 am_cv_make_support_nested_variables=no
2817 fi
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2820 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2821 if test $am_cv_make_support_nested_variables = yes; then
2822 AM_V='$(V)'
2823 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2824 else
2825 AM_V=$AM_DEFAULT_VERBOSITY
2826 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2827 fi
2828 AM_BACKSLASH='\'
2829
2830 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2831 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2832 # is not polluted with repeated "-I."
2833 am__isrc=' -I$(srcdir)'
2834 # test to see if srcdir already configured
2835 if test -f $srcdir/config.status; then
2836 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2837 fi
2838 fi
2839
2840 # test whether we have cygpath
2841 if test -z "$CYGPATH_W"; then
2842 if (cygpath --version) >/dev/null 2>/dev/null; then
2843 CYGPATH_W='cygpath -w'
2844 else
2845 CYGPATH_W=echo
2846 fi
2847 fi
2848
2849
2850 # Define the identity of the package.
2851 PACKAGE='xf86-video-i740'
2852 VERSION='1.3.6'
2853
2854
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE "$PACKAGE"
2857 _ACEOF
2858
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define VERSION "$VERSION"
2862 _ACEOF
2863
2864 # Some tools Automake needs.
2865
2866 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2867
2868
2869 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2870
2871
2872 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2873
2874
2875 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2876
2877
2878 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2879
2880 # For better backward compatibility. To be removed once Automake 1.9.x
2881 # dies out for good. For more background, see:
2882 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2883 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2884 mkdir_p='$(MKDIR_P)'
2885
2886 # We need awk for the "check" target (and possibly the TAP driver). The
2887 # system "awk" is bad on some platforms.
2888 # Always define AMTAR for backward compatibility. Yes, it's still used
2889 # in the wild :-( We should find a proper way to deprecate it ...
2890 AMTAR='$${TAR-tar}'
2891
2892
2893 # We'll loop over all known methods to create a tar archive until one works.
2894 _am_tools='gnutar pax cpio none'
2895
2896 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2897
2898
2899
2900
2901
2902
2903 # POSIX will say in a future version that running "rm -f" with no argument
2904 # is OK; and we want to be able to make that assumption in our Makefile
2905 # recipes. So use an aggressive probe to check that the usage we want is
2906 # actually supported "in the wild" to an acceptable degree.
2907 # See automake bug#10828.
2908 # To make any issue more visible, cause the running configure to be aborted
2909 # by default if the 'rm' program in use doesn't match our expectations; the
2910 # user can still override this though.
2911 if rm -f && rm -fr && rm -rf; then : OK; else
2912 cat >&2 <<'END'
2913 Oops!
2914
2915 Your 'rm' program seems unable to run without file operands specified
2916 on the command line, even when the '-f' option is present. This is contrary
2917 to the behaviour of most rm programs out there, and not conforming with
2918 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2919
2920 Please tell bug-automake@gnu.org about your system, including the value
2921 of your $PATH and any error possibly output before this message. This
2922 can help us improve future automake versions.
2923
2924 END
2925 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2926 echo 'Configuration will proceed anyway, since you have set the' >&2
2927 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2928 echo >&2
2929 else
2930 cat >&2 <<'END'
2931 Aborting the configuration process, to ensure you take notice of the issue.
2932
2933 You can download and install GNU coreutils to get an 'rm' implementation
2934 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2935
2936 If you want to complete the configuration process using your problematic
2937 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2938 to "yes", and re-run configure.
2939
2940 END
2941 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2942 fi
2943 fi
2944
2945
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2947 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2948 # Check whether --enable-maintainer-mode was given.
2949 if test "${enable_maintainer_mode+set}" = set; then :
2950 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2951 else
2952 USE_MAINTAINER_MODE=no
2953 fi
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2956 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2957 if test $USE_MAINTAINER_MODE = yes; then
2958 MAINTAINER_MODE_TRUE=
2959 MAINTAINER_MODE_FALSE='#'
2960 else
2961 MAINTAINER_MODE_TRUE='#'
2962 MAINTAINER_MODE_FALSE=
2963 fi
2964
2965 MAINT=$MAINTAINER_MODE_TRUE
2966
2967
2968
2969 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981 DEPDIR="${am__leading_dot}deps"
2982
2983 ac_config_commands="$ac_config_commands depfiles"
2984
2985
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2988 am__doit:
2989 @echo this is the am__doit target
2990 .PHONY: am__doit
2991 END
2992 # If we don't find an include directive, just comment out the code.
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2994 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2995 am__include="#"
2996 am__quote=
2997 _am_result=none
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # Ignore all kinds of additional output from 'make'.
3001 case `$am_make -s -f confmf 2> /dev/null` in #(
3002 *the\ am__doit\ target*)
3003 am__include=include
3004 am__quote=
3005 _am_result=GNU
3006 ;;
3007 esac
3008 # Now try BSD make style include.
3009 if test "$am__include" = "#"; then
3010 echo '.include "confinc"' > confmf
3011 case `$am_make -s -f confmf 2> /dev/null` in #(
3012 *the\ am__doit\ target*)
3013 am__include=.include
3014 am__quote="\""
3015 _am_result=BSD
3016 ;;
3017 esac
3018 fi
3019
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3022 $as_echo "$_am_result" >&6; }
3023 rm -f confinc confmf
3024
3025 # Check whether --enable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then :
3027 enableval=$enable_dependency_tracking;
3028 fi
3029
3030 if test "x$enable_dependency_tracking" != xno; then
3031 am_depcomp="$ac_aux_dir/depcomp"
3032 AMDEPBACKSLASH='\'
3033 am__nodep='_no'
3034 fi
3035 if test "x$enable_dependency_tracking" != xno; then
3036 AMDEP_TRUE=
3037 AMDEP_FALSE='#'
3038 else
3039 AMDEP_TRUE='#'
3040 AMDEP_FALSE=
3041 fi
3042
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087 fi
3088 if test -z "$ac_cv_prog_CC"; then
3089 ac_ct_CC=$CC
3090 # Extract the first word of "gcc", so it can be a program name with args.
3091 set dummy gcc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_ac_ct_CC="gcc"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126 if test "x$ac_ct_CC" = x; then
3127 CC=""
3128 else
3129 case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135 CC=$ac_ct_CC
3136 fi
3137 else
3138 CC="$ac_cv_prog_CC"
3139 fi
3140
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}cc; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_CC="${ac_tool_prefix}cc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 fi
3181 fi
3182 if test -z "$CC"; then
3183 # Extract the first word of "cc", so it can be a program name with args.
3184 set dummy cc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 ac_prog_rejected=no
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3202 ac_prog_rejected=yes
3203 continue
3204 fi
3205 ac_cv_prog_CC="cc"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 if test $ac_prog_rejected = yes; then
3214 # We found a bogon in the path, so make sure we never use it.
3215 set dummy $ac_cv_prog_CC
3216 shift
3217 if test $# != 0; then
3218 # We chose a different compiler from the bogus one.
3219 # However, it has the same basename, so the bogon will be chosen
3220 # first if we set CC to just the basename; use the full file name.
3221 shift
3222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3223 fi
3224 fi
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 fi
3238 if test -z "$CC"; then
3239 if test -n "$ac_tool_prefix"; then
3240 for ac_prog in cl.exe
3241 do
3242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279 test -n "$CC" && break
3280 done
3281 fi
3282 if test -z "$CC"; then
3283 ac_ct_CC=$CC
3284 for ac_prog in cl.exe
3285 do
3286 # Extract the first word of "$ac_prog", so it can be a program name with args.
3287 set dummy $ac_prog; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$ac_ct_CC"; then
3294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_ac_ct_CC="$ac_prog"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3314 if test -n "$ac_ct_CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3316 $as_echo "$ac_ct_CC" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323 test -n "$ac_ct_CC" && break
3324 done
3325
3326 if test "x$ac_ct_CC" = x; then
3327 CC=""
3328 else
3329 case $cross_compiling:$ac_tool_warned in
3330 yes:)
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3333 ac_tool_warned=yes ;;
3334 esac
3335 CC=$ac_ct_CC
3336 fi
3337 fi
3338
3339 fi
3340
3341
3342 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "no acceptable C compiler found in \$PATH
3345 See \`config.log' for more details" "$LINENO" 5; }
3346
3347 # Provide some information about the compiler.
3348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3349 set X $ac_compile
3350 ac_compiler=$2
3351 for ac_option in --version -v -V -qversion; do
3352 { { ac_try="$ac_compiler $ac_option >&5"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3360 ac_status=$?
3361 if test -s conftest.err; then
3362 sed '10a\
3363 ... rest of stderr output deleted ...
3364 10q' conftest.err >conftest.er1
3365 cat conftest.er1 >&5
3366 fi
3367 rm -f conftest.er1 conftest.err
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }
3370 done
3371
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374
3375 int
3376 main ()
3377 {
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 ac_clean_files_save=$ac_clean_files
3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3385 # Try to create an executable without -o first, disregard a.out.
3386 # It will help us diagnose broken compilers, and finding out an intuition
3387 # of exeext.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3389 $as_echo_n "checking whether the C compiler works... " >&6; }
3390 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3391
3392 # The possible output files:
3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3394
3395 ac_rmfiles=
3396 for ac_file in $ac_files
3397 do
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401 esac
3402 done
3403 rm -f $ac_rmfiles
3404
3405 if { { ac_try="$ac_link_default"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link_default") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3420 # Autoconf.
3421 for ac_file in $ac_files ''
3422 do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426 ;;
3427 [ab].out )
3428 # We found the default executable, but exeext='' is most
3429 # certainly right.
3430 break;;
3431 *.* )
3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3433 then :; else
3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 fi
3436 # We set ac_cv_exeext here because the later test for it is not
3437 # safe: cross compilers may not add the suffix if given an `-o'
3438 # argument, so we may need to know it at that point already.
3439 # Even if this section looks crufty: it has the advantage of
3440 # actually working.
3441 break;;
3442 * )
3443 break;;
3444 esac
3445 done
3446 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447
3448 else
3449 ac_file=''
3450 fi
3451 if test -z "$ac_file"; then :
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error 77 "C compiler cannot create executables
3460 See \`config.log' for more details" "$LINENO" 5; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 $as_echo "yes" >&6; }
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3466 $as_echo_n "checking for C compiler default output file name... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 ac_exeext=$ac_cv_exeext
3470
3471 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474 $as_echo_n "checking for suffix of executables... " >&6; }
3475 if { { ac_try="$ac_link"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_link") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3488 # work properly (i.e., refer to `conftest.exe'), while it won't with
3489 # `rm'.
3490 for ac_file in conftest.exe conftest conftest.*; do
3491 test -f "$ac_file" || continue
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 break;;
3496 * ) break;;
3497 esac
3498 done
3499 else
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 fi
3505 rm -f conftest conftest$ac_cv_exeext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507 $as_echo "$ac_cv_exeext" >&6; }
3508
3509 rm -f conftest.$ac_ext
3510 EXEEXT=$ac_cv_exeext
3511 ac_exeext=$EXEEXT
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <stdio.h>
3515 int
3516 main ()
3517 {
3518 FILE *f = fopen ("conftest.out", "w");
3519 return ferror (f) || fclose (f) != 0;
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 ac_clean_files="$ac_clean_files conftest.out"
3526 # Check that the compiler produces executables we can run. If not, either
3527 # the compiler is broken, or we cross compile.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3529 $as_echo_n "checking whether we are cross compiling... " >&6; }
3530 if test "$cross_compiling" != yes; then
3531 { { ac_try="$ac_link"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }
3542 if { ac_try='./conftest$ac_cv_exeext'
3543 { { case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_try") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; }; then
3553 cross_compiling=no
3554 else
3555 if test "$cross_compiling" = maybe; then
3556 cross_compiling=yes
3557 else
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "cannot run C compiled programs.
3561 If you meant to cross compile, use \`--host'.
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 fi
3564 fi
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3567 $as_echo "$cross_compiling" >&6; }
3568
3569 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3570 ac_clean_files=$ac_clean_files_save
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3572 $as_echo_n "checking for suffix of object files... " >&6; }
3573 if ${ac_cv_objext+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 rm -f conftest.o conftest.obj
3588 if { { ac_try="$ac_compile"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_compile") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 for ac_file in conftest.o conftest.obj conftest.*; do
3600 test -f "$ac_file" || continue;
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3604 break;;
3605 esac
3606 done
3607 else
3608 $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of object files: cannot compile
3614 See \`config.log' for more details" "$LINENO" 5; }
3615 fi
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3621 ac_objext=$OBJEXT
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if ${ac_cv_c_compiler_gnu+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633 #ifndef __GNUC__
3634 choke me
3635 #endif
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_compiler_gnu=yes
3643 else
3644 ac_compiler_gnu=no
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3648
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3653 GCC=yes
3654 else
3655 GCC=
3656 fi
3657 ac_test_CFLAGS=${CFLAGS+set}
3658 ac_save_CFLAGS=$CFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3661 if ${ac_cv_prog_cc_g+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 ac_save_c_werror_flag=$ac_c_werror_flag
3665 ac_c_werror_flag=yes
3666 ac_cv_prog_cc_g=no
3667 CFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_g=yes
3681 else
3682 CFLAGS=""
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685
3686 int
3687 main ()
3688 {
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695
3696 else
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3721 $as_echo "$ac_cv_prog_cc_g" >&6; }
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3729 fi
3730 else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3735 fi
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3739 if ${ac_cv_prog_cc_c89+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_cv_prog_cc_c89=no
3743 ac_save_CC=$CC
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 struct stat;
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753 char **p;
3754 int i;
3755 {
3756 return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760 char *s;
3761 va_list v;
3762 va_start (v,p);
3763 s = g (p, va_arg (v,int));
3764 va_end (v);
3765 return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769 function prototypes and stuff, but not '\xHH' hex character constants.
3770 These don't provoke an error unfortunately, instead are silently treated
3771 as 'x'. The following induces an error, until -std is added to get
3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773 array size at least. It's necessary to write '\x00'==0 to get something
3774 that's true only with -std. */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778 inside strings and character constants. */
3779 #define FOO(x) 'x'
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 do
3799 CC="$ac_save_CC $ac_arg"
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_c89=$ac_arg
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext
3804 test "x$ac_cv_prog_cc_c89" != "xno" && break
3805 done
3806 rm -f conftest.$ac_ext
3807 CC=$ac_save_CC
3808
3809 fi
3810 # AC_CACHE_VAL
3811 case "x$ac_cv_prog_cc_c89" in
3812 x)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814 $as_echo "none needed" >&6; } ;;
3815 xno)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3817 $as_echo "unsupported" >&6; } ;;
3818 *)
3819 CC="$CC $ac_cv_prog_cc_c89"
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3822 esac
3823 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824
3825 fi
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832
3833 ac_ext=c
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3839 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3840 if ${am_cv_prog_cc_c_o+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845
3846 int
3847 main ()
3848 {
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 # Make sure it works both with $CC and with simple cc.
3855 # Following AC_PROG_CC_C_O, we do the test twice because some
3856 # compilers refuse to overwrite an existing .o file with -o,
3857 # though they will create one.
3858 am_cv_prog_cc_c_o=yes
3859 for am_i in 1 2; do
3860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } \
3865 && test -f conftest2.$ac_objext; then
3866 : OK
3867 else
3868 am_cv_prog_cc_c_o=no
3869 break
3870 fi
3871 done
3872 rm -f core conftest*
3873 unset am_i
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3876 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3877 if test "$am_cv_prog_cc_c_o" != yes; then
3878 # Losing compiler, so override with the script.
3879 # FIXME: It is wrong to rewrite CC.
3880 # But if we don't then we get into trouble of one sort or another.
3881 # A longer-term fix would be to have automake use am__CC in this case,
3882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3883 CC="$am_aux_dir/compile $CC"
3884 fi
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891
3892 depcc="$CC" am_compiler_list=
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3895 $as_echo_n "checking dependency style of $depcc... " >&6; }
3896 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3900 # We make a subdir and do the tests there. Otherwise we can end up
3901 # making bogus files that we don't know about and never remove. For
3902 # instance it was reported that on HP-UX the gcc test will end up
3903 # making a dummy file named 'D' -- because '-MD' means "put the output
3904 # in D".
3905 rm -rf conftest.dir
3906 mkdir conftest.dir
3907 # Copy depcomp to subdir because otherwise we won't find it if we're
3908 # using a relative directory.
3909 cp "$am_depcomp" conftest.dir
3910 cd conftest.dir
3911 # We will build objects and dependencies in a subdirectory because
3912 # it helps to detect inapplicable dependency modes. For instance
3913 # both Tru64's cc and ICC support -MD to output dependencies as a
3914 # side effect of compilation, but ICC will put the dependencies in
3915 # the current directory while Tru64 will put them in the object
3916 # directory.
3917 mkdir sub
3918
3919 am_cv_CC_dependencies_compiler_type=none
3920 if test "$am_compiler_list" = ""; then
3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3922 fi
3923 am__universal=false
3924 case " $depcc " in #(
3925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3926 esac
3927
3928 for depmode in $am_compiler_list; do
3929 # Setup a source with many dependencies, because some compilers
3930 # like to wrap large dependency lists on column 80 (with \), and
3931 # we should not choose a depcomp mode which is confused by this.
3932 #
3933 # We need to recreate these files for each test, as the compiler may
3934 # overwrite some of them when testing with obscure command lines.
3935 # This happens at least with the AIX C compiler.
3936 : > sub/conftest.c
3937 for i in 1 2 3 4 5 6; do
3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3940 # Solaris 10 /bin/sh.
3941 echo '/* dummy */' > sub/conftst$i.h
3942 done
3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3944
3945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3946 # mode. It turns out that the SunPro C++ compiler does not properly
3947 # handle '-M -o', and we need to detect this. Also, some Intel
3948 # versions had trouble with output in subdirs.
3949 am__obj=sub/conftest.${OBJEXT-o}
3950 am__minus_obj="-o $am__obj"
3951 case $depmode in
3952 gcc)
3953 # This depmode causes a compiler race in universal mode.
3954 test "$am__universal" = false || continue
3955 ;;
3956 nosideeffect)
3957 # After this tag, mechanisms are not by side-effect, so they'll
3958 # only be used when explicitly requested.
3959 if test "x$enable_dependency_tracking" = xyes; then
3960 continue
3961 else
3962 break
3963 fi
3964 ;;
3965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3966 # This compiler won't grok '-c -o', but also, the minuso test has
3967 # not run yet. These depmodes are late enough in the game, and
3968 # so weak that their functioning should not be impacted.
3969 am__obj=conftest.${OBJEXT-o}
3970 am__minus_obj=
3971 ;;
3972 none) break ;;
3973 esac
3974 if depmode=$depmode \
3975 source=sub/conftest.c object=$am__obj \
3976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3978 >/dev/null 2>conftest.err &&
3979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3983 # icc doesn't choke on unknown options, it will just issue warnings
3984 # or remarks (even with -Werror). So we grep stderr for any message
3985 # that says an option was ignored or not supported.
3986 # When given -MP, icc 7.0 and 7.1 complain thusly:
3987 # icc: Command line warning: ignoring option '-M'; no argument required
3988 # The diagnosis changed in icc 8.0:
3989 # icc: Command line remark: option '-MP' not supported
3990 if (grep 'ignoring option' conftest.err ||
3991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3992 am_cv_CC_dependencies_compiler_type=$depmode
3993 break
3994 fi
3995 fi
3996 done
3997
3998 cd ..
3999 rm -rf conftest.dir
4000 else
4001 am_cv_CC_dependencies_compiler_type=none
4002 fi
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4006 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4008
4009 if
4010 test "x$enable_dependency_tracking" != xno \
4011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4012 am__fastdepCC_TRUE=
4013 am__fastdepCC_FALSE='#'
4014 else
4015 am__fastdepCC_TRUE='#'
4016 am__fastdepCC_FALSE=
4017 fi
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4021 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4022 if ${ac_cv_prog_cc_c99+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 ac_cv_prog_cc_c99=no
4026 ac_save_CC=$CC
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #include <stdarg.h>
4030 #include <stdbool.h>
4031 #include <stdlib.h>
4032 #include <wchar.h>
4033 #include <stdio.h>
4034
4035 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4036 #define debug(...) fprintf (stderr, __VA_ARGS__)
4037 #define showlist(...) puts (#__VA_ARGS__)
4038 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4039 static void
4040 test_varargs_macros (void)
4041 {
4042 int x = 1234;
4043 int y = 5678;
4044 debug ("Flag");
4045 debug ("X = %d\n", x);
4046 showlist (The first, second, and third items.);
4047 report (x>y, "x is %d but y is %d", x, y);
4048 }
4049
4050 // Check long long types.
4051 #define BIG64 18446744073709551615ull
4052 #define BIG32 4294967295ul
4053 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4054 #if !BIG_OK
4055 your preprocessor is broken;
4056 #endif
4057 #if BIG_OK
4058 #else
4059 your preprocessor is broken;
4060 #endif
4061 static long long int bignum = -9223372036854775807LL;
4062 static unsigned long long int ubignum = BIG64;
4063
4064 struct incomplete_array
4065 {
4066 int datasize;
4067 double data[];
4068 };
4069
4070 struct named_init {
4071 int number;
4072 const wchar_t *name;
4073 double average;
4074 };
4075
4076 typedef const char *ccp;
4077
4078 static inline int
4079 test_restrict (ccp restrict text)
4080 {
4081 // See if C++-style comments work.
4082 // Iterate through items via the restricted pointer.
4083 // Also check for declarations in for loops.
4084 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4085 continue;
4086 return 0;
4087 }
4088
4089 // Check varargs and va_copy.
4090 static void
4091 test_varargs (const char *format, ...)
4092 {
4093 va_list args;
4094 va_start (args, format);
4095 va_list args_copy;
4096 va_copy (args_copy, args);
4097
4098 const char *str;
4099 int number;
4100 float fnumber;
4101
4102 while (*format)
4103 {
4104 switch (*format++)
4105 {
4106 case 's': // string
4107 str = va_arg (args_copy, const char *);
4108 break;
4109 case 'd': // int
4110 number = va_arg (args_copy, int);
4111 break;
4112 case 'f': // float
4113 fnumber = va_arg (args_copy, double);
4114 break;
4115 default:
4116 break;
4117 }
4118 }
4119 va_end (args_copy);
4120 va_end (args);
4121 }
4122
4123 int
4124 main ()
4125 {
4126
4127 // Check bool.
4128 _Bool success = false;
4129
4130 // Check restrict.
4131 if (test_restrict ("String literal") == 0)
4132 success = true;
4133 char *restrict newvar = "Another string";
4134
4135 // Check varargs.
4136 test_varargs ("s, d' f .", "string", 65, 34.234);
4137 test_varargs_macros ();
4138
4139 // Check flexible array members.
4140 struct incomplete_array *ia =
4141 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4142 ia->datasize = 10;
4143 for (int i = 0; i < ia->datasize; ++i)
4144 ia->data[i] = i * 1.234;
4145
4146 // Check named initializers.
4147 struct named_init ni = {
4148 .number = 34,
4149 .name = L"Test wide string",
4150 .average = 543.34343,
4151 };
4152
4153 ni.number = 58;
4154
4155 int dynamic_array[ni.number];
4156 dynamic_array[ni.number - 1] = 543;
4157
4158 // work around unused variable warnings
4159 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4160 || dynamic_array[ni.number - 1] != 543);
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4167 do
4168 CC="$ac_save_CC $ac_arg"
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_c99=$ac_arg
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext
4173 test "x$ac_cv_prog_cc_c99" != "xno" && break
4174 done
4175 rm -f conftest.$ac_ext
4176 CC=$ac_save_CC
4177
4178 fi
4179 # AC_CACHE_VAL
4180 case "x$ac_cv_prog_cc_c99" in
4181 x)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 $as_echo "none needed" >&6; } ;;
4184 xno)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186 $as_echo "unsupported" >&6; } ;;
4187 *)
4188 CC="$CC $ac_cv_prog_cc_c99"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4190 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4191 esac
4192 if test "x$ac_cv_prog_cc_c99" != xno; then :
4193
4194 fi
4195
4196
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4205 # On Suns, sometimes $CPP names a directory.
4206 if test -n "$CPP" && test -d "$CPP"; then
4207 CPP=
4208 fi
4209 if test -z "$CPP"; then
4210 if ${ac_cv_prog_CPP+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 # Double quotes because CPP needs to be expanded
4214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215 do
4216 ac_preproc_ok=false
4217 for ac_c_preproc_warn_flag in '' yes
4218 do
4219 # Use a header file that comes with gcc, so configuring glibc
4220 # with a fresh cross-compiler works.
4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222 # <limits.h> exists even on freestanding compilers.
4223 # On the NeXT, cc -E runs the code through the compiler's parser,
4224 # not just through cpp. "Syntax error" is here to catch this case.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #ifdef __STDC__
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232 Syntax error
4233 _ACEOF
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4235
4236 else
4237 # Broken: fails on valid input.
4238 continue
4239 fi
4240 rm -f conftest.err conftest.i conftest.$ac_ext
4241
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: success on invalid input.
4250 continue
4251 else
4252 # Passes both tests.
4253 ac_preproc_ok=:
4254 break
4255 fi
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4257
4258 done
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.i conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then :
4262 break
4263 fi
4264
4265 done
4266 ac_cv_prog_CPP=$CPP
4267
4268 fi
4269 CPP=$ac_cv_prog_CPP
4270 else
4271 ac_cv_prog_CPP=$CPP
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4274 $as_echo "$CPP" >&6; }
4275 ac_preproc_ok=false
4276 for ac_c_preproc_warn_flag in '' yes
4277 do
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 Syntax error
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294
4295 else
4296 # Broken: fails on valid input.
4297 continue
4298 fi
4299 rm -f conftest.err conftest.i conftest.$ac_ext
4300
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ac_nonexistent.h>
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4309 continue
4310 else
4311 # Passes both tests.
4312 ac_preproc_ok=:
4313 break
4314 fi
4315 rm -f conftest.err conftest.i conftest.$ac_ext
4316
4317 done
4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319 rm -f conftest.i conftest.err conftest.$ac_ext
4320 if $ac_preproc_ok; then :
4321
4322 else
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4326 See \`config.log' for more details" "$LINENO" 5; }
4327 fi
4328
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338 if ${ac_cv_path_GREP+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -z "$GREP"; then
4342 ac_path_GREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in grep ggrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352 as_fn_executable_p "$ac_path_GREP" || continue
4353 # Check for GNU ac_path_GREP and select it if it is found.
4354 # Check for GNU $ac_path_GREP
4355 case `"$ac_path_GREP" --version 2>&1` in
4356 *GNU*)
4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358 *)
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4362 do
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'GREP' >> "conftest.nl"
4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_GREP="$ac_path_GREP"
4373 ac_path_GREP_max=$ac_count
4374 fi
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4377 done
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381 $ac_path_GREP_found && break 3
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_GREP"; then
4387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388 fi
4389 else
4390 ac_cv_path_GREP=$GREP
4391 fi
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395 $as_echo "$ac_cv_path_GREP" >&6; }
4396 GREP="$ac_cv_path_GREP"
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400 $as_echo_n "checking for egrep... " >&6; }
4401 if ${ac_cv_path_EGREP+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405 then ac_cv_path_EGREP="$GREP -E"
4406 else
4407 if test -z "$EGREP"; then
4408 ac_path_EGREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in egrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p "$ac_path_EGREP" || continue
4419 # Check for GNU ac_path_EGREP and select it if it is found.
4420 # Check for GNU $ac_path_EGREP
4421 case `"$ac_path_EGREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'EGREP' >> "conftest.nl"
4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_EGREP="$ac_path_EGREP"
4439 ac_path_EGREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_EGREP_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_EGREP"; then
4453 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_EGREP=$EGREP
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4467 $as_echo_n "checking for ANSI C header files... " >&6; }
4468 if ${ac_cv_header_stdc+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <stdlib.h>
4474 #include <stdarg.h>
4475 #include <string.h>
4476 #include <float.h>
4477
4478 int
4479 main ()
4480 {
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"; then :
4487 ac_cv_header_stdc=yes
4488 else
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492
4493 if test $ac_cv_header_stdc = yes; then
4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <string.h>
4498
4499 _ACEOF
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "memchr" >/dev/null 2>&1; then :
4502
4503 else
4504 ac_cv_header_stdc=no
4505 fi
4506 rm -f conftest*
4507
4508 fi
4509
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #include <stdlib.h>
4515
4516 _ACEOF
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 $EGREP "free" >/dev/null 2>&1; then :
4519
4520 else
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f conftest*
4524
4525 fi
4526
4527 if test $ac_cv_header_stdc = yes; then
4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4529 if test "$cross_compiling" = yes; then :
4530 :
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <ctype.h>
4535 #include <stdlib.h>
4536 #if ((' ' & 0x0FF) == 0x020)
4537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4539 #else
4540 # define ISLOWER(c) \
4541 (('a' <= (c) && (c) <= 'i') \
4542 || ('j' <= (c) && (c) <= 'r') \
4543 || ('s' <= (c) && (c) <= 'z'))
4544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4545 #endif
4546
4547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4548 int
4549 main ()
4550 {
4551 int i;
4552 for (i = 0; i < 256; i++)
4553 if (XOR (islower (i), ISLOWER (i))
4554 || toupper (i) != TOUPPER (i))
4555 return 2;
4556 return 0;
4557 }
4558 _ACEOF
4559 if ac_fn_c_try_run "$LINENO"; then :
4560
4561 else
4562 ac_cv_header_stdc=no
4563 fi
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4565 conftest.$ac_objext conftest.beam conftest.$ac_ext
4566 fi
4567
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4571 $as_echo "$ac_cv_header_stdc" >&6; }
4572 if test $ac_cv_header_stdc = yes; then
4573
4574 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575
4576 fi
4577
4578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4580 inttypes.h stdint.h unistd.h
4581 do :
4582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4583 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4584 "
4585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4586 cat >>confdefs.h <<_ACEOF
4587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4589
4590 fi
4591
4592 done
4593
4594
4595
4596
4597
4598
4599 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4600 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4601 CLANGCC="yes"
4602 else
4603 CLANGCC="no"
4604 fi
4605
4606 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4607 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4608 INTELCC="yes"
4609 else
4610 INTELCC="no"
4611 fi
4612
4613 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4614 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4615 SUNCC="yes"
4616 else
4617 SUNCC="no"
4618 fi
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 case $PKG_CONFIG in
4638 [\\/]* | ?:[\\/]*)
4639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4640 ;;
4641 *)
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 ;;
4658 esac
4659 fi
4660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4661 if test -n "$PKG_CONFIG"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4663 $as_echo "$PKG_CONFIG" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670 fi
4671 if test -z "$ac_cv_path_PKG_CONFIG"; then
4672 ac_pt_PKG_CONFIG=$PKG_CONFIG
4673 # Extract the first word of "pkg-config", so it can be a program name with args.
4674 set dummy pkg-config; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 case $ac_pt_PKG_CONFIG in
4681 [\\/]* | ?:[\\/]*)
4682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4683 ;;
4684 *)
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 ;;
4701 esac
4702 fi
4703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4704 if test -n "$ac_pt_PKG_CONFIG"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4706 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712 if test "x$ac_pt_PKG_CONFIG" = x; then
4713 PKG_CONFIG=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721 PKG_CONFIG=$ac_pt_PKG_CONFIG
4722 fi
4723 else
4724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4725 fi
4726
4727 fi
4728 if test -n "$PKG_CONFIG"; then
4729 _pkg_min_version=0.9.0
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4731 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 PKG_CONFIG=""
4739 fi
4740 fi
4741 # Make sure we can run config.sub.
4742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4746 $as_echo_n "checking build system type... " >&6; }
4747 if ${ac_cv_build+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 ac_build_alias=$build_alias
4751 test "x$ac_build_alias" = x &&
4752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4753 test "x$ac_build_alias" = x &&
4754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4757
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4760 $as_echo "$ac_cv_build" >&6; }
4761 case $ac_cv_build in
4762 *-*-*) ;;
4763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4764 esac
4765 build=$ac_cv_build
4766 ac_save_IFS=$IFS; IFS='-'
4767 set x $ac_cv_build
4768 shift
4769 build_cpu=$1
4770 build_vendor=$2
4771 shift; shift
4772 # Remember, the first character of IFS is used to create $*,
4773 # except with old shells:
4774 build_os=$*
4775 IFS=$ac_save_IFS
4776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4780 $as_echo_n "checking host system type... " >&6; }
4781 if ${ac_cv_host+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test "x$host_alias" = x; then
4785 ac_cv_host=$ac_cv_build
4786 else
4787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4789 fi
4790
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4793 $as_echo "$ac_cv_host" >&6; }
4794 case $ac_cv_host in
4795 *-*-*) ;;
4796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4797 esac
4798 host=$ac_cv_host
4799 ac_save_IFS=$IFS; IFS='-'
4800 set x $ac_cv_host
4801 shift
4802 host_cpu=$1
4803 host_vendor=$2
4804 shift; shift
4805 # Remember, the first character of IFS is used to create $*,
4806 # except with old shells:
4807 host_os=$*
4808 IFS=$ac_save_IFS
4809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4813 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4814 if ${ac_cv_path_SED+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4818 for ac_i in 1 2 3 4 5 6 7; do
4819 ac_script="$ac_script$as_nl$ac_script"
4820 done
4821 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4822 { ac_script=; unset ac_script;}
4823 if test -z "$SED"; then
4824 ac_path_SED_found=false
4825 # Loop through the user's path and test for each of PROGNAME-LIST
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_prog in sed gsed; do
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4834 as_fn_executable_p "$ac_path_SED" || continue
4835 # Check for GNU ac_path_SED and select it if it is found.
4836 # Check for GNU $ac_path_SED
4837 case `"$ac_path_SED" --version 2>&1` in
4838 *GNU*)
4839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4840 *)
4841 ac_count=0
4842 $as_echo_n 0123456789 >"conftest.in"
4843 while :
4844 do
4845 cat "conftest.in" "conftest.in" >"conftest.tmp"
4846 mv "conftest.tmp" "conftest.in"
4847 cp "conftest.in" "conftest.nl"
4848 $as_echo '' >> "conftest.nl"
4849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851 as_fn_arith $ac_count + 1 && ac_count=$as_val
4852 if test $ac_count -gt ${ac_path_SED_max-0}; then
4853 # Best one so far, save it but keep looking for a better one
4854 ac_cv_path_SED="$ac_path_SED"
4855 ac_path_SED_max=$ac_count
4856 fi
4857 # 10*(2^10) chars as input seems more than enough
4858 test $ac_count -gt 10 && break
4859 done
4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 esac
4862
4863 $ac_path_SED_found && break 3
4864 done
4865 done
4866 done
4867 IFS=$as_save_IFS
4868 if test -z "$ac_cv_path_SED"; then
4869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4870 fi
4871 else
4872 ac_cv_path_SED=$SED
4873 fi
4874
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4877 $as_echo "$ac_cv_path_SED" >&6; }
4878 SED="$ac_cv_path_SED"
4879 rm -f conftest.sed
4880
4881
4882
4883
4884
4885
4886 # Check whether --enable-selective-werror was given.
4887 if test "${enable_selective_werror+set}" = set; then :
4888 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4889 else
4890 SELECTIVE_WERROR=yes
4891 fi
4892
4893
4894
4895
4896
4897 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4898 if test "x$SUNCC" = "xyes"; then
4899 BASE_CFLAGS="-v"
4900 else
4901 BASE_CFLAGS=""
4902 fi
4903
4904 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918 xorg_testset_save_CFLAGS="$CFLAGS"
4919
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_cv_cc_flag_unknown_warning_option=yes
4933 else
4934 xorg_cv_cc_flag_unknown_warning_option=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947 fi
4948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 int i;
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 xorg_cv_cc_flag_unused_command_line_argument=yes
4960 else
4961 xorg_cv_cc_flag_unused_command_line_argument=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968 CFLAGS="$xorg_testset_save_CFLAGS"
4969 fi
4970
4971 found="no"
4972
4973 if test $found = "no" ; then
4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976 fi
4977
4978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980 fi
4981
4982 CFLAGS="$CFLAGS -Wall"
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4985 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4986 cacheid=xorg_cv_cc_flag__Wall
4987 if eval \${$cacheid+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 int i;
4993 int
4994 main ()
4995 {
4996
4997 ;
4998 return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_c_try_link "$LINENO"; then :
5002 eval $cacheid=yes
5003 else
5004 eval $cacheid=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5008 fi
5009
5010
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012
5013 eval supported=\$$cacheid
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5015 $as_echo "$supported" >&6; }
5016 if test "$supported" = "yes" ; then
5017 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5018 found="yes"
5019 fi
5020 fi
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 xorg_testset_save_CFLAGS="$CFLAGS"
5037
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 xorg_cv_cc_flag_unknown_warning_option=yes
5051 else
5052 xorg_cv_cc_flag_unknown_warning_option=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065 fi
5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 int i;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 xorg_cv_cc_flag_unused_command_line_argument=yes
5078 else
5079 xorg_cv_cc_flag_unused_command_line_argument=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5086 CFLAGS="$xorg_testset_save_CFLAGS"
5087 fi
5088
5089 found="no"
5090
5091 if test $found = "no" ; then
5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094 fi
5095
5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5098 fi
5099
5100 CFLAGS="$CFLAGS -Wpointer-arith"
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5103 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5104 cacheid=xorg_cv_cc_flag__Wpointer_arith
5105 if eval \${$cacheid+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 int i;
5111 int
5112 main ()
5113 {
5114
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 if ac_fn_c_try_link "$LINENO"; then :
5120 eval $cacheid=yes
5121 else
5122 eval $cacheid=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126 fi
5127
5128
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130
5131 eval supported=\$$cacheid
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5133 $as_echo "$supported" >&6; }
5134 if test "$supported" = "yes" ; then
5135 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5136 found="yes"
5137 fi
5138 fi
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 xorg_testset_save_CFLAGS="$CFLAGS"
5155
5156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 xorg_cv_cc_flag_unknown_warning_option=yes
5169 else
5170 xorg_cv_cc_flag_unknown_warning_option=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178 fi
5179
5180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183 fi
5184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 int i;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 xorg_cv_cc_flag_unused_command_line_argument=yes
5196 else
5197 xorg_cv_cc_flag_unused_command_line_argument=no
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5204 CFLAGS="$xorg_testset_save_CFLAGS"
5205 fi
5206
5207 found="no"
5208
5209 if test $found = "no" ; then
5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212 fi
5213
5214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5216 fi
5217
5218 CFLAGS="$CFLAGS -Wmissing-declarations"
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5221 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5222 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5223 if eval \${$cacheid+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 int i;
5229 int
5230 main ()
5231 {
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_link "$LINENO"; then :
5238 eval $cacheid=yes
5239 else
5240 eval $cacheid=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244 fi
5245
5246
5247 CFLAGS="$xorg_testset_save_CFLAGS"
5248
5249 eval supported=\$$cacheid
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5251 $as_echo "$supported" >&6; }
5252 if test "$supported" = "yes" ; then
5253 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5254 found="yes"
5255 fi
5256 fi
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 xorg_testset_save_CFLAGS="$CFLAGS"
5273
5274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 int i;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 xorg_cv_cc_flag_unknown_warning_option=yes
5287 else
5288 xorg_cv_cc_flag_unknown_warning_option=no
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5295 CFLAGS="$xorg_testset_save_CFLAGS"
5296 fi
5297
5298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301 fi
5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 int i;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 xorg_cv_cc_flag_unused_command_line_argument=yes
5314 else
5315 xorg_cv_cc_flag_unused_command_line_argument=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5322 CFLAGS="$xorg_testset_save_CFLAGS"
5323 fi
5324
5325 found="no"
5326
5327 if test $found = "no" ; then
5328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5330 fi
5331
5332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5334 fi
5335
5336 CFLAGS="$CFLAGS -Wformat=2"
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5339 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5340 cacheid=xorg_cv_cc_flag__Wformat_2
5341 if eval \${$cacheid+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 int i;
5347 int
5348 main ()
5349 {
5350
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_c_try_link "$LINENO"; then :
5356 eval $cacheid=yes
5357 else
5358 eval $cacheid=no
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
5362 fi
5363
5364
5365 CFLAGS="$xorg_testset_save_CFLAGS"
5366
5367 eval supported=\$$cacheid
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5369 $as_echo "$supported" >&6; }
5370 if test "$supported" = "yes" ; then
5371 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5372 found="yes"
5373 fi
5374 fi
5375
5376 if test $found = "no" ; then
5377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379 fi
5380
5381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5383 fi
5384
5385 CFLAGS="$CFLAGS -Wformat"
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5388 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5389 cacheid=xorg_cv_cc_flag__Wformat
5390 if eval \${$cacheid+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 int i;
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_link "$LINENO"; then :
5405 eval $cacheid=yes
5406 else
5407 eval $cacheid=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 fi
5412
5413
5414 CFLAGS="$xorg_testset_save_CFLAGS"
5415
5416 eval supported=\$$cacheid
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5418 $as_echo "$supported" >&6; }
5419 if test "$supported" = "yes" ; then
5420 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5421 found="yes"
5422 fi
5423 fi
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 xorg_testset_save_CFLAGS="$CFLAGS"
5442
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 xorg_cv_cc_flag_unknown_warning_option=yes
5456 else
5457 xorg_cv_cc_flag_unknown_warning_option=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5465 fi
5466
5467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470 fi
5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 int i;
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 xorg_cv_cc_flag_unused_command_line_argument=yes
5483 else
5484 xorg_cv_cc_flag_unused_command_line_argument=no
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5492 fi
5493
5494 found="no"
5495
5496 if test $found = "no" ; then
5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 fi
5500
5501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5503 fi
5504
5505 CFLAGS="$CFLAGS -Wstrict-prototypes"
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5508 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5509 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5510 if eval \${$cacheid+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 int
5517 main ()
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"; then :
5525 eval $cacheid=yes
5526 else
5527 eval $cacheid=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
5531 fi
5532
5533
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5535
5536 eval supported=\$$cacheid
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5538 $as_echo "$supported" >&6; }
5539 if test "$supported" = "yes" ; then
5540 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5541 found="yes"
5542 fi
5543 fi
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 xorg_testset_save_CFLAGS="$CFLAGS"
5560
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 xorg_cv_cc_flag_unknown_warning_option=yes
5574 else
5575 xorg_cv_cc_flag_unknown_warning_option=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583 fi
5584
5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5588 fi
5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 int i;
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 xorg_cv_cc_flag_unused_command_line_argument=yes
5601 else
5602 xorg_cv_cc_flag_unused_command_line_argument=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5610 fi
5611
5612 found="no"
5613
5614 if test $found = "no" ; then
5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617 fi
5618
5619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5621 fi
5622
5623 CFLAGS="$CFLAGS -Wmissing-prototypes"
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5626 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5627 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5628 if eval \${$cacheid+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 int i;
5634 int
5635 main ()
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"; then :
5643 eval $cacheid=yes
5644 else
5645 eval $cacheid=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5649 fi
5650
5651
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5653
5654 eval supported=\$$cacheid
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5656 $as_echo "$supported" >&6; }
5657 if test "$supported" = "yes" ; then
5658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5659 found="yes"
5660 fi
5661 fi
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 xorg_testset_save_CFLAGS="$CFLAGS"
5678
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 xorg_cv_cc_flag_unknown_warning_option=yes
5692 else
5693 xorg_cv_cc_flag_unknown_warning_option=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 fi
5707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 int i;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 xorg_cv_cc_flag_unused_command_line_argument=yes
5719 else
5720 xorg_cv_cc_flag_unused_command_line_argument=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5728 fi
5729
5730 found="no"
5731
5732 if test $found = "no" ; then
5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735 fi
5736
5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5739 fi
5740
5741 CFLAGS="$CFLAGS -Wnested-externs"
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5744 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5745 cacheid=xorg_cv_cc_flag__Wnested_externs
5746 if eval \${$cacheid+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 int i;
5752 int
5753 main ()
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"; then :
5761 eval $cacheid=yes
5762 else
5763 eval $cacheid=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 fi
5768
5769
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5771
5772 eval supported=\$$cacheid
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5774 $as_echo "$supported" >&6; }
5775 if test "$supported" = "yes" ; then
5776 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5777 found="yes"
5778 fi
5779 fi
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 xorg_testset_save_CFLAGS="$CFLAGS"
5796
5797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 xorg_cv_cc_flag_unknown_warning_option=yes
5810 else
5811 xorg_cv_cc_flag_unknown_warning_option=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819 fi
5820
5821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824 fi
5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 int i;
5834 _ACEOF
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 xorg_cv_cc_flag_unused_command_line_argument=yes
5837 else
5838 xorg_cv_cc_flag_unused_command_line_argument=no
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5846 fi
5847
5848 found="no"
5849
5850 if test $found = "no" ; then
5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 fi
5858
5859 CFLAGS="$CFLAGS -Wbad-function-cast"
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5862 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5863 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5864 if eval \${$cacheid+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 int
5871 main ()
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"; then :
5879 eval $cacheid=yes
5880 else
5881 eval $cacheid=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 fi
5886
5887
5888 CFLAGS="$xorg_testset_save_CFLAGS"
5889
5890 eval supported=\$$cacheid
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5892 $as_echo "$supported" >&6; }
5893 if test "$supported" = "yes" ; then
5894 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5895 found="yes"
5896 fi
5897 fi
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 xorg_testset_save_CFLAGS="$CFLAGS"
5914
5915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"; then :
5927 xorg_cv_cc_flag_unknown_warning_option=yes
5928 else
5929 xorg_cv_cc_flag_unknown_warning_option=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 fi
5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 int i;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 xorg_cv_cc_flag_unused_command_line_argument=yes
5955 else
5956 xorg_cv_cc_flag_unused_command_line_argument=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 found="no"
5967
5968 if test $found = "no" ; then
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 fi
5972
5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5975 fi
5976
5977 CFLAGS="$CFLAGS -Wold-style-definition"
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5980 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5981 cacheid=xorg_cv_cc_flag__Wold_style_definition
5982 if eval \${$cacheid+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 int i;
5988 int
5989 main ()
5990 {
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_link "$LINENO"; then :
5997 eval $cacheid=yes
5998 else
5999 eval $cacheid=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003 fi
6004
6005
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008 eval supported=\$$cacheid
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010 $as_echo "$supported" >&6; }
6011 if test "$supported" = "yes" ; then
6012 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6013 found="yes"
6014 fi
6015 fi
6016
6017 if test $found = "no" ; then
6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021
6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 fi
6025
6026 CFLAGS="$CFLAGS -fd"
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6029 $as_echo_n "checking if $CC supports -fd... " >&6; }
6030 cacheid=xorg_cv_cc_flag__fd
6031 if eval \${$cacheid+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 int i;
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 eval $cacheid=yes
6047 else
6048 eval $cacheid=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 fi
6053
6054
6055 CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057 eval supported=\$$cacheid
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059 $as_echo "$supported" >&6; }
6060 if test "$supported" = "yes" ; then
6061 BASE_CFLAGS="$BASE_CFLAGS -fd"
6062 found="yes"
6063 fi
6064 fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094 xorg_cv_cc_flag_unknown_warning_option=yes
6095 else
6096 xorg_cv_cc_flag_unknown_warning_option=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6104 fi
6105
6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109 fi
6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 int i;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 xorg_cv_cc_flag_unused_command_line_argument=yes
6122 else
6123 xorg_cv_cc_flag_unused_command_line_argument=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131 fi
6132
6133 found="no"
6134
6135 if test $found = "no" ; then
6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139
6140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 fi
6143
6144 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6147 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6148 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6149 if eval \${$cacheid+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 int
6156 main ()
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 eval $cacheid=yes
6165 else
6166 eval $cacheid=no
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6170 fi
6171
6172
6173 CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175 eval supported=\$$cacheid
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177 $as_echo "$supported" >&6; }
6178 if test "$supported" = "yes" ; then
6179 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6180 found="yes"
6181 fi
6182 fi
6183
6184
6185
6186
6187
6188 # This chunk adds additional warnings that could catch undesired effects.
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 xorg_testset_save_CFLAGS="$CFLAGS"
6203
6204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 xorg_cv_cc_flag_unknown_warning_option=yes
6217 else
6218 xorg_cv_cc_flag_unknown_warning_option=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6231 fi
6232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 int i;
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243 xorg_cv_cc_flag_unused_command_line_argument=yes
6244 else
6245 xorg_cv_cc_flag_unused_command_line_argument=no
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 fi
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6252 CFLAGS="$xorg_testset_save_CFLAGS"
6253 fi
6254
6255 found="no"
6256
6257 if test $found = "no" ; then
6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260 fi
6261
6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6264 fi
6265
6266 CFLAGS="$CFLAGS -Wunused"
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6269 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6270 cacheid=xorg_cv_cc_flag__Wunused
6271 if eval \${$cacheid+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 int i;
6277 int
6278 main ()
6279 {
6280
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 if ac_fn_c_try_link "$LINENO"; then :
6286 eval $cacheid=yes
6287 else
6288 eval $cacheid=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6292 fi
6293
6294
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296
6297 eval supported=\$$cacheid
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6299 $as_echo "$supported" >&6; }
6300 if test "$supported" = "yes" ; then
6301 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6302 found="yes"
6303 fi
6304 fi
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 xorg_testset_save_CFLAGS="$CFLAGS"
6321
6322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 xorg_cv_cc_flag_unknown_warning_option=yes
6335 else
6336 xorg_cv_cc_flag_unknown_warning_option=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344 fi
6345
6346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349 fi
6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 int i;
6359 _ACEOF
6360 if ac_fn_c_try_compile "$LINENO"; then :
6361 xorg_cv_cc_flag_unused_command_line_argument=yes
6362 else
6363 xorg_cv_cc_flag_unused_command_line_argument=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6370 CFLAGS="$xorg_testset_save_CFLAGS"
6371 fi
6372
6373 found="no"
6374
6375 if test $found = "no" ; then
6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378 fi
6379
6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6382 fi
6383
6384 CFLAGS="$CFLAGS -Wuninitialized"
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6387 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6388 cacheid=xorg_cv_cc_flag__Wuninitialized
6389 if eval \${$cacheid+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 int i;
6395 int
6396 main ()
6397 {
6398
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_link "$LINENO"; then :
6404 eval $cacheid=yes
6405 else
6406 eval $cacheid=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410 fi
6411
6412
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414
6415 eval supported=\$$cacheid
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6417 $as_echo "$supported" >&6; }
6418 if test "$supported" = "yes" ; then
6419 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6420 found="yes"
6421 fi
6422 fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 xorg_testset_save_CFLAGS="$CFLAGS"
6439
6440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 xorg_cv_cc_flag_unknown_warning_option=yes
6453 else
6454 xorg_cv_cc_flag_unknown_warning_option=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6461 CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6463
6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 int i;
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 xorg_cv_cc_flag_unused_command_line_argument=yes
6480 else
6481 xorg_cv_cc_flag_unused_command_line_argument=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6488 CFLAGS="$xorg_testset_save_CFLAGS"
6489 fi
6490
6491 found="no"
6492
6493 if test $found = "no" ; then
6494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496 fi
6497
6498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500 fi
6501
6502 CFLAGS="$CFLAGS -Wshadow"
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6505 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6506 cacheid=xorg_cv_cc_flag__Wshadow
6507 if eval \${$cacheid+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 int i;
6513 int
6514 main ()
6515 {
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 eval $cacheid=yes
6523 else
6524 eval $cacheid=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 fi
6529
6530
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532
6533 eval supported=\$$cacheid
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6535 $as_echo "$supported" >&6; }
6536 if test "$supported" = "yes" ; then
6537 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6538 found="yes"
6539 fi
6540 fi
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 xorg_testset_save_CFLAGS="$CFLAGS"
6557
6558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unknown_warning_option=yes
6571 else
6572 xorg_cv_cc_flag_unknown_warning_option=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580 fi
6581
6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585 fi
6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 xorg_cv_cc_flag_unused_command_line_argument=yes
6598 else
6599 xorg_cv_cc_flag_unused_command_line_argument=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607 fi
6608
6609 found="no"
6610
6611 if test $found = "no" ; then
6612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614 fi
6615
6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6618 fi
6619
6620 CFLAGS="$CFLAGS -Wmissing-noreturn"
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6623 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6624 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6625 if eval \${$cacheid+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 int i;
6631 int
6632 main ()
6633 {
6634
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_link "$LINENO"; then :
6640 eval $cacheid=yes
6641 else
6642 eval $cacheid=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6646 fi
6647
6648
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6650
6651 eval supported=\$$cacheid
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6653 $as_echo "$supported" >&6; }
6654 if test "$supported" = "yes" ; then
6655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6656 found="yes"
6657 fi
6658 fi
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674 xorg_testset_save_CFLAGS="$CFLAGS"
6675
6676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 xorg_cv_cc_flag_unknown_warning_option=yes
6689 else
6690 xorg_cv_cc_flag_unknown_warning_option=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 fi
6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 int i;
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 xorg_cv_cc_flag_unused_command_line_argument=yes
6716 else
6717 xorg_cv_cc_flag_unused_command_line_argument=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6724 CFLAGS="$xorg_testset_save_CFLAGS"
6725 fi
6726
6727 found="no"
6728
6729 if test $found = "no" ; then
6730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732 fi
6733
6734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6736 fi
6737
6738 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6741 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6742 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6743 if eval \${$cacheid+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 int i;
6749 int
6750 main ()
6751 {
6752
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758 eval $cacheid=yes
6759 else
6760 eval $cacheid=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
6764 fi
6765
6766
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768
6769 eval supported=\$$cacheid
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6771 $as_echo "$supported" >&6; }
6772 if test "$supported" = "yes" ; then
6773 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6774 found="yes"
6775 fi
6776 fi
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 xorg_testset_save_CFLAGS="$CFLAGS"
6793
6794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 xorg_cv_cc_flag_unknown_warning_option=yes
6807 else
6808 xorg_cv_cc_flag_unknown_warning_option=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6815 CFLAGS="$xorg_testset_save_CFLAGS"
6816 fi
6817
6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 int i;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 xorg_cv_cc_flag_unused_command_line_argument=yes
6834 else
6835 xorg_cv_cc_flag_unused_command_line_argument=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 found="no"
6846
6847 if test $found = "no" ; then
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 fi
6851
6852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6854 fi
6855
6856 CFLAGS="$CFLAGS -Wredundant-decls"
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6859 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6860 cacheid=xorg_cv_cc_flag__Wredundant_decls
6861 if eval \${$cacheid+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 int i;
6867 int
6868 main ()
6869 {
6870
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 eval $cacheid=yes
6877 else
6878 eval $cacheid=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 fi
6883
6884
6885 CFLAGS="$xorg_testset_save_CFLAGS"
6886
6887 eval supported=\$$cacheid
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6889 $as_echo "$supported" >&6; }
6890 if test "$supported" = "yes" ; then
6891 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6892 found="yes"
6893 fi
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 xorg_testset_save_CFLAGS="$CFLAGS"
6911
6912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int i;
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"; then :
6924 xorg_cv_cc_flag_unknown_warning_option=yes
6925 else
6926 xorg_cv_cc_flag_unknown_warning_option=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6933 CFLAGS="$xorg_testset_save_CFLAGS"
6934 fi
6935
6936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939 fi
6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 int i;
6949 _ACEOF
6950 if ac_fn_c_try_compile "$LINENO"; then :
6951 xorg_cv_cc_flag_unused_command_line_argument=yes
6952 else
6953 xorg_cv_cc_flag_unused_command_line_argument=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6960 CFLAGS="$xorg_testset_save_CFLAGS"
6961 fi
6962
6963 found="no"
6964
6965 if test $found = "no" ; then
6966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968 fi
6969
6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6972 fi
6973
6974 CFLAGS="$CFLAGS -Wlogical-op"
6975
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6977 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6978 cacheid=xorg_cv_cc_flag__Wlogical_op
6979 if eval \${$cacheid+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 int i;
6985 int
6986 main ()
6987 {
6988
6989 ;
6990 return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_link "$LINENO"; then :
6994 eval $cacheid=yes
6995 else
6996 eval $cacheid=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 fi
7001
7002
7003 CFLAGS="$xorg_testset_save_CFLAGS"
7004
7005 eval supported=\$$cacheid
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7007 $as_echo "$supported" >&6; }
7008 if test "$supported" = "yes" ; then
7009 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7010 found="yes"
7011 fi
7012 fi
7013
7014
7015
7016 # These are currently disabled because they are noisy. They will be enabled
7017 # in the future once the codebase is sufficiently modernized to silence
7018 # them. For now, I don't want them to drown out the other warnings.
7019 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7020 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7021 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7022
7023 # Turn some warnings into errors, so we don't accidently get successful builds
7024 # when there are problems that should be fixed.
7025
7026 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 xorg_testset_save_CFLAGS="$CFLAGS"
7041
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 xorg_cv_cc_flag_unknown_warning_option=yes
7055 else
7056 xorg_cv_cc_flag_unknown_warning_option=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 fi
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 int i;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 xorg_cv_cc_flag_unused_command_line_argument=yes
7082 else
7083 xorg_cv_cc_flag_unused_command_line_argument=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7091 fi
7092
7093 found="no"
7094
7095 if test $found = "no" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099
7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7102 fi
7103
7104 CFLAGS="$CFLAGS -Werror=implicit"
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7107 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7108 cacheid=xorg_cv_cc_flag__Werror_implicit
7109 if eval \${$cacheid+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 int
7116 main ()
7117 {
7118
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_link "$LINENO"; then :
7124 eval $cacheid=yes
7125 else
7126 eval $cacheid=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 fi
7131
7132
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134
7135 eval supported=\$$cacheid
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138 if test "$supported" = "yes" ; then
7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7140 found="yes"
7141 fi
7142 fi
7143
7144 if test $found = "no" ; then
7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7151 fi
7152
7153 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7154
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7156 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7157 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7158 if eval \${$cacheid+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 int i;
7164 int
7165 main ()
7166 {
7167
7168 ;
7169 return 0;
7170 }
7171 _ACEOF
7172 if ac_fn_c_try_link "$LINENO"; then :
7173 eval $cacheid=yes
7174 else
7175 eval $cacheid=no
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7179 fi
7180
7181
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7183
7184 eval supported=\$$cacheid
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7186 $as_echo "$supported" >&6; }
7187 if test "$supported" = "yes" ; then
7188 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7189 found="yes"
7190 fi
7191 fi
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 xorg_testset_save_CFLAGS="$CFLAGS"
7208
7209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 int i;
7219 _ACEOF
7220 if ac_fn_c_try_compile "$LINENO"; then :
7221 xorg_cv_cc_flag_unknown_warning_option=yes
7222 else
7223 xorg_cv_cc_flag_unknown_warning_option=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231 fi
7232
7233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236 fi
7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"; then :
7248 xorg_cv_cc_flag_unused_command_line_argument=yes
7249 else
7250 xorg_cv_cc_flag_unused_command_line_argument=no
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7257 CFLAGS="$xorg_testset_save_CFLAGS"
7258 fi
7259
7260 found="no"
7261
7262 if test $found = "no" ; then
7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7265 fi
7266
7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7269 fi
7270
7271 CFLAGS="$CFLAGS -Werror=nonnull"
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7274 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7275 cacheid=xorg_cv_cc_flag__Werror_nonnull
7276 if eval \${$cacheid+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 int
7283 main ()
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_link "$LINENO"; then :
7291 eval $cacheid=yes
7292 else
7293 eval $cacheid=no
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 fi
7298
7299
7300 CFLAGS="$xorg_testset_save_CFLAGS"
7301
7302 eval supported=\$$cacheid
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7304 $as_echo "$supported" >&6; }
7305 if test "$supported" = "yes" ; then
7306 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7307 found="yes"
7308 fi
7309 fi
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325 xorg_testset_save_CFLAGS="$CFLAGS"
7326
7327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unknown_warning_option=yes
7340 else
7341 xorg_cv_cc_flag_unknown_warning_option=no
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7349 fi
7350
7351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 fi
7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 _ACEOF
7365 if ac_fn_c_try_compile "$LINENO"; then :
7366 xorg_cv_cc_flag_unused_command_line_argument=yes
7367 else
7368 xorg_cv_cc_flag_unused_command_line_argument=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376 fi
7377
7378 found="no"
7379
7380 if test $found = "no" ; then
7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383 fi
7384
7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7387 fi
7388
7389 CFLAGS="$CFLAGS -Werror=init-self"
7390
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7392 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7393 cacheid=xorg_cv_cc_flag__Werror_init_self
7394 if eval \${$cacheid+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399 int i;
7400 int
7401 main ()
7402 {
7403
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 if ac_fn_c_try_link "$LINENO"; then :
7409 eval $cacheid=yes
7410 else
7411 eval $cacheid=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7415 fi
7416
7417
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419
7420 eval supported=\$$cacheid
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7422 $as_echo "$supported" >&6; }
7423 if test "$supported" = "yes" ; then
7424 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7425 found="yes"
7426 fi
7427 fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443 xorg_testset_save_CFLAGS="$CFLAGS"
7444
7445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 xorg_cv_cc_flag_unknown_warning_option=yes
7458 else
7459 xorg_cv_cc_flag_unknown_warning_option=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7466 CFLAGS="$xorg_testset_save_CFLAGS"
7467 fi
7468
7469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472 fi
7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 xorg_cv_cc_flag_unused_command_line_argument=yes
7485 else
7486 xorg_cv_cc_flag_unused_command_line_argument=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7493 CFLAGS="$xorg_testset_save_CFLAGS"
7494 fi
7495
7496 found="no"
7497
7498 if test $found = "no" ; then
7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501 fi
7502
7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7505 fi
7506
7507 CFLAGS="$CFLAGS -Werror=main"
7508
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7510 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7511 cacheid=xorg_cv_cc_flag__Werror_main
7512 if eval \${$cacheid+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 int i;
7518 int
7519 main ()
7520 {
7521
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7527 eval $cacheid=yes
7528 else
7529 eval $cacheid=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext \
7532 conftest$ac_exeext conftest.$ac_ext
7533 fi
7534
7535
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537
7538 eval supported=\$$cacheid
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7540 $as_echo "$supported" >&6; }
7541 if test "$supported" = "yes" ; then
7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7543 found="yes"
7544 fi
7545 fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 xorg_testset_save_CFLAGS="$CFLAGS"
7562
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_cv_cc_flag_unknown_warning_option=yes
7576 else
7577 xorg_cv_cc_flag_unknown_warning_option=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590 fi
7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 int i;
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 xorg_cv_cc_flag_unused_command_line_argument=yes
7603 else
7604 xorg_cv_cc_flag_unused_command_line_argument=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612 fi
7613
7614 found="no"
7615
7616 if test $found = "no" ; then
7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619 fi
7620
7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623 fi
7624
7625 CFLAGS="$CFLAGS -Werror=missing-braces"
7626
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7628 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7629 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7630 if eval \${$cacheid+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 int
7637 main ()
7638 {
7639
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 eval $cacheid=yes
7646 else
7647 eval $cacheid=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 fi
7652
7653
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7655
7656 eval supported=\$$cacheid
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7658 $as_echo "$supported" >&6; }
7659 if test "$supported" = "yes" ; then
7660 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7661 found="yes"
7662 fi
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 xorg_testset_save_CFLAGS="$CFLAGS"
7680
7681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 xorg_cv_cc_flag_unknown_warning_option=yes
7694 else
7695 xorg_cv_cc_flag_unknown_warning_option=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7703 fi
7704
7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708 fi
7709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 int i;
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 xorg_cv_cc_flag_unused_command_line_argument=yes
7721 else
7722 xorg_cv_cc_flag_unused_command_line_argument=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7729 CFLAGS="$xorg_testset_save_CFLAGS"
7730 fi
7731
7732 found="no"
7733
7734 if test $found = "no" ; then
7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737 fi
7738
7739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7741 fi
7742
7743 CFLAGS="$CFLAGS -Werror=sequence-point"
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7746 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7747 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7748 if eval \${$cacheid+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 int
7755 main ()
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 eval $cacheid=yes
7764 else
7765 eval $cacheid=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 fi
7770
7771
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774 eval supported=\$$cacheid
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776 $as_echo "$supported" >&6; }
7777 if test "$supported" = "yes" ; then
7778 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7779 found="yes"
7780 fi
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 int i;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 xorg_cv_cc_flag_unknown_warning_option=yes
7812 else
7813 xorg_cv_cc_flag_unknown_warning_option=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7820 CFLAGS="$xorg_testset_save_CFLAGS"
7821 fi
7822
7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826 fi
7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 int i;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 xorg_cv_cc_flag_unused_command_line_argument=yes
7839 else
7840 xorg_cv_cc_flag_unused_command_line_argument=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7848 fi
7849
7850 found="no"
7851
7852 if test $found = "no" ; then
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 fi
7856
7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7859 fi
7860
7861 CFLAGS="$CFLAGS -Werror=return-type"
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7864 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7865 cacheid=xorg_cv_cc_flag__Werror_return_type
7866 if eval \${$cacheid+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 int
7873 main ()
7874 {
7875
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881 eval $cacheid=yes
7882 else
7883 eval $cacheid=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 fi
7888
7889
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891
7892 eval supported=\$$cacheid
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894 $as_echo "$supported" >&6; }
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7897 found="yes"
7898 fi
7899 fi
7900
7901 if test $found = "no" ; then
7902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904 fi
7905
7906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7908 fi
7909
7910 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7913 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7914 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7915 if eval \${$cacheid+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 int i;
7921 int
7922 main ()
7923 {
7924
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_link "$LINENO"; then :
7930 eval $cacheid=yes
7931 else
7932 eval $cacheid=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 fi
7937
7938
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940
7941 eval supported=\$$cacheid
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7943 $as_echo "$supported" >&6; }
7944 if test "$supported" = "yes" ; then
7945 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7946 found="yes"
7947 fi
7948 fi
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 xorg_testset_save_CFLAGS="$CFLAGS"
7965
7966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 xorg_cv_cc_flag_unknown_warning_option=yes
7979 else
7980 xorg_cv_cc_flag_unknown_warning_option=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7987 CFLAGS="$xorg_testset_save_CFLAGS"
7988 fi
7989
7990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 fi
7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 int i;
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 xorg_cv_cc_flag_unused_command_line_argument=yes
8006 else
8007 xorg_cv_cc_flag_unused_command_line_argument=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8014 CFLAGS="$xorg_testset_save_CFLAGS"
8015 fi
8016
8017 found="no"
8018
8019 if test $found = "no" ; then
8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022 fi
8023
8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8026 fi
8027
8028 CFLAGS="$CFLAGS -Werror=trigraphs"
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8031 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8032 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8033 if eval \${$cacheid+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 int i;
8039 int
8040 main ()
8041 {
8042
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 if ac_fn_c_try_link "$LINENO"; then :
8048 eval $cacheid=yes
8049 else
8050 eval $cacheid=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 fi
8055
8056
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058
8059 eval supported=\$$cacheid
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8061 $as_echo "$supported" >&6; }
8062 if test "$supported" = "yes" ; then
8063 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8064 found="yes"
8065 fi
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 xorg_testset_save_CFLAGS="$CFLAGS"
8083
8084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 xorg_cv_cc_flag_unknown_warning_option=yes
8097 else
8098 xorg_cv_cc_flag_unknown_warning_option=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8105 CFLAGS="$xorg_testset_save_CFLAGS"
8106 fi
8107
8108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111 fi
8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123 xorg_cv_cc_flag_unused_command_line_argument=yes
8124 else
8125 xorg_cv_cc_flag_unused_command_line_argument=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8132 CFLAGS="$xorg_testset_save_CFLAGS"
8133 fi
8134
8135 found="no"
8136
8137 if test $found = "no" ; then
8138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140 fi
8141
8142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8144 fi
8145
8146 CFLAGS="$CFLAGS -Werror=array-bounds"
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8149 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8150 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8151 if eval \${$cacheid+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 int i;
8157 int
8158 main ()
8159 {
8160
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"; then :
8166 eval $cacheid=yes
8167 else
8168 eval $cacheid=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 fi
8173
8174
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8176
8177 eval supported=\$$cacheid
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8179 $as_echo "$supported" >&6; }
8180 if test "$supported" = "yes" ; then
8181 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8182 found="yes"
8183 fi
8184 fi
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 xorg_testset_save_CFLAGS="$CFLAGS"
8201
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 xorg_cv_cc_flag_unknown_warning_option=yes
8215 else
8216 xorg_cv_cc_flag_unknown_warning_option=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229 fi
8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 int i;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 xorg_cv_cc_flag_unused_command_line_argument=yes
8242 else
8243 xorg_cv_cc_flag_unused_command_line_argument=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 found="no"
8254
8255 if test $found = "no" ; then
8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 fi
8259
8260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8262 fi
8263
8264 CFLAGS="$CFLAGS -Werror=write-strings"
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8267 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8268 cacheid=xorg_cv_cc_flag__Werror_write_strings
8269 if eval \${$cacheid+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 int i;
8275 int
8276 main ()
8277 {
8278
8279 ;
8280 return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284 eval $cacheid=yes
8285 else
8286 eval $cacheid=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290 fi
8291
8292
8293 CFLAGS="$xorg_testset_save_CFLAGS"
8294
8295 eval supported=\$$cacheid
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8297 $as_echo "$supported" >&6; }
8298 if test "$supported" = "yes" ; then
8299 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8300 found="yes"
8301 fi
8302 fi
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 xorg_testset_save_CFLAGS="$CFLAGS"
8319
8320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"; then :
8332 xorg_cv_cc_flag_unknown_warning_option=yes
8333 else
8334 xorg_cv_cc_flag_unknown_warning_option=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341 CFLAGS="$xorg_testset_save_CFLAGS"
8342 fi
8343
8344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347 fi
8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 int i;
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359 xorg_cv_cc_flag_unused_command_line_argument=yes
8360 else
8361 xorg_cv_cc_flag_unused_command_line_argument=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369 fi
8370
8371 found="no"
8372
8373 if test $found = "no" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377
8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8380 fi
8381
8382 CFLAGS="$CFLAGS -Werror=address"
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8385 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8386 cacheid=xorg_cv_cc_flag__Werror_address
8387 if eval \${$cacheid+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 int
8394 main ()
8395 {
8396
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402 eval $cacheid=yes
8403 else
8404 eval $cacheid=no
8405 fi
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8408 fi
8409
8410
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412
8413 eval supported=\$$cacheid
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8415 $as_echo "$supported" >&6; }
8416 if test "$supported" = "yes" ; then
8417 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8418 found="yes"
8419 fi
8420 fi
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 xorg_testset_save_CFLAGS="$CFLAGS"
8437
8438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 xorg_cv_cc_flag_unknown_warning_option=yes
8451 else
8452 xorg_cv_cc_flag_unknown_warning_option=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460 fi
8461
8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465 fi
8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 int i;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 xorg_cv_cc_flag_unused_command_line_argument=yes
8478 else
8479 xorg_cv_cc_flag_unused_command_line_argument=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487 fi
8488
8489 found="no"
8490
8491 if test $found = "no" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495
8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8498 fi
8499
8500 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8503 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8504 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8505 if eval \${$cacheid+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 int i;
8511 int
8512 main ()
8513 {
8514
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_link "$LINENO"; then :
8520 eval $cacheid=yes
8521 else
8522 eval $cacheid=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8526 fi
8527
8528
8529 CFLAGS="$xorg_testset_save_CFLAGS"
8530
8531 eval supported=\$$cacheid
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8533 $as_echo "$supported" >&6; }
8534 if test "$supported" = "yes" ; then
8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8536 found="yes"
8537 fi
8538 fi
8539
8540 if test $found = "no" ; then
8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8543 fi
8544
8545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8547 fi
8548
8549 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8552 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8553 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8554 if eval \${$cacheid+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 int
8561 main ()
8562 {
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 eval $cacheid=yes
8570 else
8571 eval $cacheid=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 fi
8576
8577
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579
8580 eval supported=\$$cacheid
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8582 $as_echo "$supported" >&6; }
8583 if test "$supported" = "yes" ; then
8584 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8585 found="yes"
8586 fi
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 xorg_testset_save_CFLAGS="$CFLAGS"
8604
8605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int i;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"; then :
8617 xorg_cv_cc_flag_unknown_warning_option=yes
8618 else
8619 xorg_cv_cc_flag_unknown_warning_option=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627 fi
8628
8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 fi
8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 int i;
8642 _ACEOF
8643 if ac_fn_c_try_compile "$LINENO"; then :
8644 xorg_cv_cc_flag_unused_command_line_argument=yes
8645 else
8646 xorg_cv_cc_flag_unused_command_line_argument=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8654 fi
8655
8656 found="no"
8657
8658 if test $found = "no" ; then
8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661 fi
8662
8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 fi
8666
8667 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8668
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8670 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8671 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8672 if eval \${$cacheid+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 int i;
8678 int
8679 main ()
8680 {
8681
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687 eval $cacheid=yes
8688 else
8689 eval $cacheid=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 fi
8694
8695
8696 CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698 eval supported=\$$cacheid
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700 $as_echo "$supported" >&6; }
8701 if test "$supported" = "yes" ; then
8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8703 found="yes"
8704 fi
8705 fi
8706
8707 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8708 else
8709 { $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
8710 $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;}
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 xorg_testset_save_CFLAGS="$CFLAGS"
8725
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 xorg_cv_cc_flag_unknown_warning_option=yes
8739 else
8740 xorg_cv_cc_flag_unknown_warning_option=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748 fi
8749
8750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753 fi
8754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 int i;
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765 xorg_cv_cc_flag_unused_command_line_argument=yes
8766 else
8767 xorg_cv_cc_flag_unused_command_line_argument=no
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8774 CFLAGS="$xorg_testset_save_CFLAGS"
8775 fi
8776
8777 found="no"
8778
8779 if test $found = "no" ; then
8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8782 fi
8783
8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8786 fi
8787
8788 CFLAGS="$CFLAGS -Wimplicit"
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8791 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8792 cacheid=xorg_cv_cc_flag__Wimplicit
8793 if eval \${$cacheid+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 int i;
8799 int
8800 main ()
8801 {
8802
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 eval $cacheid=yes
8809 else
8810 eval $cacheid=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 fi
8815
8816
8817 CFLAGS="$xorg_testset_save_CFLAGS"
8818
8819 eval supported=\$$cacheid
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8821 $as_echo "$supported" >&6; }
8822 if test "$supported" = "yes" ; then
8823 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8824 found="yes"
8825 fi
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 xorg_testset_save_CFLAGS="$CFLAGS"
8843
8844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 xorg_cv_cc_flag_unknown_warning_option=yes
8857 else
8858 xorg_cv_cc_flag_unknown_warning_option=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866 fi
8867
8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8871 fi
8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 int i;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 xorg_cv_cc_flag_unused_command_line_argument=yes
8884 else
8885 xorg_cv_cc_flag_unused_command_line_argument=no
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8892 CFLAGS="$xorg_testset_save_CFLAGS"
8893 fi
8894
8895 found="no"
8896
8897 if test $found = "no" ; then
8898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900 fi
8901
8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8904 fi
8905
8906 CFLAGS="$CFLAGS -Wnonnull"
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8909 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8910 cacheid=xorg_cv_cc_flag__Wnonnull
8911 if eval \${$cacheid+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 int i;
8917 int
8918 main ()
8919 {
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_c_try_link "$LINENO"; then :
8926 eval $cacheid=yes
8927 else
8928 eval $cacheid=no
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 fi
8933
8934
8935 CFLAGS="$xorg_testset_save_CFLAGS"
8936
8937 eval supported=\$$cacheid
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8939 $as_echo "$supported" >&6; }
8940 if test "$supported" = "yes" ; then
8941 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8942 found="yes"
8943 fi
8944 fi
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960 xorg_testset_save_CFLAGS="$CFLAGS"
8961
8962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8974 xorg_cv_cc_flag_unknown_warning_option=yes
8975 else
8976 xorg_cv_cc_flag_unknown_warning_option=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984 fi
8985
8986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8989 fi
8990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 int i;
8999 _ACEOF
9000 if ac_fn_c_try_compile "$LINENO"; then :
9001 xorg_cv_cc_flag_unused_command_line_argument=yes
9002 else
9003 xorg_cv_cc_flag_unused_command_line_argument=no
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9010 CFLAGS="$xorg_testset_save_CFLAGS"
9011 fi
9012
9013 found="no"
9014
9015 if test $found = "no" ; then
9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018 fi
9019
9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9022 fi
9023
9024 CFLAGS="$CFLAGS -Winit-self"
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9027 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9028 cacheid=xorg_cv_cc_flag__Winit_self
9029 if eval \${$cacheid+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 int i;
9035 int
9036 main ()
9037 {
9038
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 eval $cacheid=yes
9045 else
9046 eval $cacheid=no
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 fi
9051
9052
9053 CFLAGS="$xorg_testset_save_CFLAGS"
9054
9055 eval supported=\$$cacheid
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9057 $as_echo "$supported" >&6; }
9058 if test "$supported" = "yes" ; then
9059 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9060 found="yes"
9061 fi
9062 fi
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078 xorg_testset_save_CFLAGS="$CFLAGS"
9079
9080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092 xorg_cv_cc_flag_unknown_warning_option=yes
9093 else
9094 xorg_cv_cc_flag_unknown_warning_option=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102 fi
9103
9104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107 fi
9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int i;
9117 _ACEOF
9118 if ac_fn_c_try_compile "$LINENO"; then :
9119 xorg_cv_cc_flag_unused_command_line_argument=yes
9120 else
9121 xorg_cv_cc_flag_unused_command_line_argument=no
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9128 CFLAGS="$xorg_testset_save_CFLAGS"
9129 fi
9130
9131 found="no"
9132
9133 if test $found = "no" ; then
9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9136 fi
9137
9138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9140 fi
9141
9142 CFLAGS="$CFLAGS -Wmain"
9143
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9145 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9146 cacheid=xorg_cv_cc_flag__Wmain
9147 if eval \${$cacheid+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9152 int i;
9153 int
9154 main ()
9155 {
9156
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 eval $cacheid=yes
9163 else
9164 eval $cacheid=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 fi
9169
9170
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172
9173 eval supported=\$$cacheid
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9175 $as_echo "$supported" >&6; }
9176 if test "$supported" = "yes" ; then
9177 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9178 found="yes"
9179 fi
9180 fi
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196 xorg_testset_save_CFLAGS="$CFLAGS"
9197
9198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 xorg_cv_cc_flag_unknown_warning_option=yes
9211 else
9212 xorg_cv_cc_flag_unknown_warning_option=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9219 CFLAGS="$xorg_testset_save_CFLAGS"
9220 fi
9221
9222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9225 fi
9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int i;
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"; then :
9237 xorg_cv_cc_flag_unused_command_line_argument=yes
9238 else
9239 xorg_cv_cc_flag_unused_command_line_argument=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9246 CFLAGS="$xorg_testset_save_CFLAGS"
9247 fi
9248
9249 found="no"
9250
9251 if test $found = "no" ; then
9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9254 fi
9255
9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9258 fi
9259
9260 CFLAGS="$CFLAGS -Wmissing-braces"
9261
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9263 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9264 cacheid=xorg_cv_cc_flag__Wmissing_braces
9265 if eval \${$cacheid+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 int i;
9271 int
9272 main ()
9273 {
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 eval $cacheid=yes
9281 else
9282 eval $cacheid=no
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 fi
9287
9288
9289 CFLAGS="$xorg_testset_save_CFLAGS"
9290
9291 eval supported=\$$cacheid
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9293 $as_echo "$supported" >&6; }
9294 if test "$supported" = "yes" ; then
9295 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9296 found="yes"
9297 fi
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314 xorg_testset_save_CFLAGS="$CFLAGS"
9315
9316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int i;
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 xorg_cv_cc_flag_unknown_warning_option=yes
9329 else
9330 xorg_cv_cc_flag_unknown_warning_option=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338 fi
9339
9340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9343 fi
9344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 int i;
9353 _ACEOF
9354 if ac_fn_c_try_compile "$LINENO"; then :
9355 xorg_cv_cc_flag_unused_command_line_argument=yes
9356 else
9357 xorg_cv_cc_flag_unused_command_line_argument=no
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365 fi
9366
9367 found="no"
9368
9369 if test $found = "no" ; then
9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372 fi
9373
9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9376 fi
9377
9378 CFLAGS="$CFLAGS -Wsequence-point"
9379
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9381 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9382 cacheid=xorg_cv_cc_flag__Wsequence_point
9383 if eval \${$cacheid+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 int i;
9389 int
9390 main ()
9391 {
9392
9393 ;
9394 return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 eval $cacheid=yes
9399 else
9400 eval $cacheid=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 fi
9405
9406
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408
9409 eval supported=\$$cacheid
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9411 $as_echo "$supported" >&6; }
9412 if test "$supported" = "yes" ; then
9413 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9414 found="yes"
9415 fi
9416 fi
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432 xorg_testset_save_CFLAGS="$CFLAGS"
9433
9434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 xorg_cv_cc_flag_unknown_warning_option=yes
9447 else
9448 xorg_cv_cc_flag_unknown_warning_option=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456 fi
9457
9458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461 fi
9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int i;
9471 _ACEOF
9472 if ac_fn_c_try_compile "$LINENO"; then :
9473 xorg_cv_cc_flag_unused_command_line_argument=yes
9474 else
9475 xorg_cv_cc_flag_unused_command_line_argument=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9482 CFLAGS="$xorg_testset_save_CFLAGS"
9483 fi
9484
9485 found="no"
9486
9487 if test $found = "no" ; then
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 fi
9491
9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494 fi
9495
9496 CFLAGS="$CFLAGS -Wreturn-type"
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9499 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9500 cacheid=xorg_cv_cc_flag__Wreturn_type
9501 if eval \${$cacheid+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506 int i;
9507 int
9508 main ()
9509 {
9510
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 eval $cacheid=yes
9517 else
9518 eval $cacheid=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 fi
9523
9524
9525 CFLAGS="$xorg_testset_save_CFLAGS"
9526
9527 eval supported=\$$cacheid
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9529 $as_echo "$supported" >&6; }
9530 if test "$supported" = "yes" ; then
9531 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9532 found="yes"
9533 fi
9534 fi
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550 xorg_testset_save_CFLAGS="$CFLAGS"
9551
9552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 xorg_cv_cc_flag_unknown_warning_option=yes
9565 else
9566 xorg_cv_cc_flag_unknown_warning_option=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579 fi
9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 int i;
9589 _ACEOF
9590 if ac_fn_c_try_compile "$LINENO"; then :
9591 xorg_cv_cc_flag_unused_command_line_argument=yes
9592 else
9593 xorg_cv_cc_flag_unused_command_line_argument=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601 fi
9602
9603 found="no"
9604
9605 if test $found = "no" ; then
9606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608 fi
9609
9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9612 fi
9613
9614 CFLAGS="$CFLAGS -Wtrigraphs"
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9617 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9618 cacheid=xorg_cv_cc_flag__Wtrigraphs
9619 if eval \${$cacheid+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 int i;
9625 int
9626 main ()
9627 {
9628
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 eval $cacheid=yes
9635 else
9636 eval $cacheid=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 fi
9641
9642
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644
9645 eval supported=\$$cacheid
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9647 $as_echo "$supported" >&6; }
9648 if test "$supported" = "yes" ; then
9649 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9650 found="yes"
9651 fi
9652 fi
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668 xorg_testset_save_CFLAGS="$CFLAGS"
9669
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9682 xorg_cv_cc_flag_unknown_warning_option=yes
9683 else
9684 xorg_cv_cc_flag_unknown_warning_option=no
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9691 CFLAGS="$xorg_testset_save_CFLAGS"
9692 fi
9693
9694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9697 fi
9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 int i;
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 xorg_cv_cc_flag_unused_command_line_argument=yes
9710 else
9711 xorg_cv_cc_flag_unused_command_line_argument=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9719 fi
9720
9721 found="no"
9722
9723 if test $found = "no" ; then
9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726 fi
9727
9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730 fi
9731
9732 CFLAGS="$CFLAGS -Warray-bounds"
9733
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9735 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9736 cacheid=xorg_cv_cc_flag__Warray_bounds
9737 if eval \${$cacheid+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 int i;
9743 int
9744 main ()
9745 {
9746
9747 ;
9748 return 0;
9749 }
9750 _ACEOF
9751 if ac_fn_c_try_link "$LINENO"; then :
9752 eval $cacheid=yes
9753 else
9754 eval $cacheid=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 fi
9759
9760
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762
9763 eval supported=\$$cacheid
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9765 $as_echo "$supported" >&6; }
9766 if test "$supported" = "yes" ; then
9767 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9768 found="yes"
9769 fi
9770 fi
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 xorg_testset_save_CFLAGS="$CFLAGS"
9787
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"; then :
9800 xorg_cv_cc_flag_unknown_warning_option=yes
9801 else
9802 xorg_cv_cc_flag_unknown_warning_option=no
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810 fi
9811
9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 fi
9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 int i;
9825 _ACEOF
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827 xorg_cv_cc_flag_unused_command_line_argument=yes
9828 else
9829 xorg_cv_cc_flag_unused_command_line_argument=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9836 CFLAGS="$xorg_testset_save_CFLAGS"
9837 fi
9838
9839 found="no"
9840
9841 if test $found = "no" ; then
9842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9844 fi
9845
9846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848 fi
9849
9850 CFLAGS="$CFLAGS -Wwrite-strings"
9851
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9853 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9854 cacheid=xorg_cv_cc_flag__Wwrite_strings
9855 if eval \${$cacheid+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 int i;
9861 int
9862 main ()
9863 {
9864
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870 eval $cacheid=yes
9871 else
9872 eval $cacheid=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 fi
9877
9878
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9880
9881 eval supported=\$$cacheid
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9883 $as_echo "$supported" >&6; }
9884 if test "$supported" = "yes" ; then
9885 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9886 found="yes"
9887 fi
9888 fi
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904 xorg_testset_save_CFLAGS="$CFLAGS"
9905
9906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 xorg_cv_cc_flag_unknown_warning_option=yes
9919 else
9920 xorg_cv_cc_flag_unknown_warning_option=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9933 fi
9934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int i;
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 xorg_cv_cc_flag_unused_command_line_argument=yes
9946 else
9947 xorg_cv_cc_flag_unused_command_line_argument=no
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9955 fi
9956
9957 found="no"
9958
9959 if test $found = "no" ; then
9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962 fi
9963
9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9966 fi
9967
9968 CFLAGS="$CFLAGS -Waddress"
9969
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9971 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9972 cacheid=xorg_cv_cc_flag__Waddress
9973 if eval \${$cacheid+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978 int i;
9979 int
9980 main ()
9981 {
9982
9983 ;
9984 return 0;
9985 }
9986 _ACEOF
9987 if ac_fn_c_try_link "$LINENO"; then :
9988 eval $cacheid=yes
9989 else
9990 eval $cacheid=no
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 fi
9995
9996
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998
9999 eval supported=\$$cacheid
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10001 $as_echo "$supported" >&6; }
10002 if test "$supported" = "yes" ; then
10003 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10004 found="yes"
10005 fi
10006 fi
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022 xorg_testset_save_CFLAGS="$CFLAGS"
10023
10024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 xorg_cv_cc_flag_unknown_warning_option=yes
10037 else
10038 xorg_cv_cc_flag_unknown_warning_option=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046 fi
10047
10048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10051 fi
10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060 int i;
10061 _ACEOF
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063 xorg_cv_cc_flag_unused_command_line_argument=yes
10064 else
10065 xorg_cv_cc_flag_unused_command_line_argument=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10073 fi
10074
10075 found="no"
10076
10077 if test $found = "no" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081
10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10084 fi
10085
10086 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10087
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10089 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10090 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10091 if eval \${$cacheid+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 int i;
10097 int
10098 main ()
10099 {
10100
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"; then :
10106 eval $cacheid=yes
10107 else
10108 eval $cacheid=no
10109 fi
10110 rm -f core conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 fi
10113
10114
10115 CFLAGS="$xorg_testset_save_CFLAGS"
10116
10117 eval supported=\$$cacheid
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10119 $as_echo "$supported" >&6; }
10120 if test "$supported" = "yes" ; then
10121 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10122 found="yes"
10123 fi
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 xorg_testset_save_CFLAGS="$CFLAGS"
10141
10142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 xorg_cv_cc_flag_unknown_warning_option=yes
10155 else
10156 xorg_cv_cc_flag_unknown_warning_option=no
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163 CFLAGS="$xorg_testset_save_CFLAGS"
10164 fi
10165
10166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169 fi
10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 int i;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 xorg_cv_cc_flag_unused_command_line_argument=yes
10182 else
10183 xorg_cv_cc_flag_unused_command_line_argument=no
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191 fi
10192
10193 found="no"
10194
10195 if test $found = "no" ; then
10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198 fi
10199
10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10202 fi
10203
10204 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10207 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10208 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10209 if eval \${$cacheid+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 int i;
10215 int
10216 main ()
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224 eval $cacheid=yes
10225 else
10226 eval $cacheid=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 fi
10231
10232
10233 CFLAGS="$xorg_testset_save_CFLAGS"
10234
10235 eval supported=\$$cacheid
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10237 $as_echo "$supported" >&6; }
10238 if test "$supported" = "yes" ; then
10239 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10240 found="yes"
10241 fi
10242 fi
10243
10244
10245 fi
10246
10247
10248
10249
10250
10251
10252
10253 CWARNFLAGS="$BASE_CFLAGS"
10254 if test "x$GCC" = xyes ; then
10255 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10256 fi
10257
10258
10259
10260
10261
10262
10263
10264
10265 # Check whether --enable-strict-compilation was given.
10266 if test "${enable_strict_compilation+set}" = set; then :
10267 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10268 else
10269 STRICT_COMPILE=no
10270 fi
10271
10272
10273
10274
10275
10276
10277 STRICT_CFLAGS=""
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291 xorg_testset_save_CFLAGS="$CFLAGS"
10292
10293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 _ACEOF
10304 if ac_fn_c_try_compile "$LINENO"; then :
10305 xorg_cv_cc_flag_unknown_warning_option=yes
10306 else
10307 xorg_cv_cc_flag_unknown_warning_option=no
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10314 CFLAGS="$xorg_testset_save_CFLAGS"
10315 fi
10316
10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320 fi
10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 int i;
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332 xorg_cv_cc_flag_unused_command_line_argument=yes
10333 else
10334 xorg_cv_cc_flag_unused_command_line_argument=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10341 CFLAGS="$xorg_testset_save_CFLAGS"
10342 fi
10343
10344 found="no"
10345
10346 if test $found = "no" ; then
10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349 fi
10350
10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10353 fi
10354
10355 CFLAGS="$CFLAGS -pedantic"
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10358 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10359 cacheid=xorg_cv_cc_flag__pedantic
10360 if eval \${$cacheid+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 int i;
10366 int
10367 main ()
10368 {
10369
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 eval $cacheid=yes
10376 else
10377 eval $cacheid=no
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 fi
10382
10383
10384 CFLAGS="$xorg_testset_save_CFLAGS"
10385
10386 eval supported=\$$cacheid
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10388 $as_echo "$supported" >&6; }
10389 if test "$supported" = "yes" ; then
10390 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10391 found="yes"
10392 fi
10393 fi
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409 xorg_testset_save_CFLAGS="$CFLAGS"
10410
10411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 int i;
10421 _ACEOF
10422 if ac_fn_c_try_compile "$LINENO"; then :
10423 xorg_cv_cc_flag_unknown_warning_option=yes
10424 else
10425 xorg_cv_cc_flag_unknown_warning_option=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10432 CFLAGS="$xorg_testset_save_CFLAGS"
10433 fi
10434
10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10438 fi
10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int i;
10448 _ACEOF
10449 if ac_fn_c_try_compile "$LINENO"; then :
10450 xorg_cv_cc_flag_unused_command_line_argument=yes
10451 else
10452 xorg_cv_cc_flag_unused_command_line_argument=no
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10459 CFLAGS="$xorg_testset_save_CFLAGS"
10460 fi
10461
10462 found="no"
10463
10464 if test $found = "no" ; then
10465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10467 fi
10468
10469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10471 fi
10472
10473 CFLAGS="$CFLAGS -Werror"
10474
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10476 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10477 cacheid=xorg_cv_cc_flag__Werror
10478 if eval \${$cacheid+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 int i;
10484 int
10485 main ()
10486 {
10487
10488 ;
10489 return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 eval $cacheid=yes
10494 else
10495 eval $cacheid=no
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 fi
10500
10501
10502 CFLAGS="$xorg_testset_save_CFLAGS"
10503
10504 eval supported=\$$cacheid
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10506 $as_echo "$supported" >&6; }
10507 if test "$supported" = "yes" ; then
10508 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10509 found="yes"
10510 fi
10511 fi
10512
10513 if test $found = "no" ; then
10514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10516 fi
10517
10518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10520 fi
10521
10522 CFLAGS="$CFLAGS -errwarn"
10523
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10525 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10526 cacheid=xorg_cv_cc_flag__errwarn
10527 if eval \${$cacheid+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 int i;
10533 int
10534 main ()
10535 {
10536
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542 eval $cacheid=yes
10543 else
10544 eval $cacheid=no
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 fi
10549
10550
10551 CFLAGS="$xorg_testset_save_CFLAGS"
10552
10553 eval supported=\$$cacheid
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10555 $as_echo "$supported" >&6; }
10556 if test "$supported" = "yes" ; then
10557 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10558 found="yes"
10559 fi
10560 fi
10561
10562
10563
10564 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10565 # activate it with -Werror, so we add it here explicitly.
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579 xorg_testset_save_CFLAGS="$CFLAGS"
10580
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 int i;
10591 _ACEOF
10592 if ac_fn_c_try_compile "$LINENO"; then :
10593 xorg_cv_cc_flag_unknown_warning_option=yes
10594 else
10595 xorg_cv_cc_flag_unknown_warning_option=no
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10602 CFLAGS="$xorg_testset_save_CFLAGS"
10603 fi
10604
10605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10608 fi
10609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 int i;
10618 _ACEOF
10619 if ac_fn_c_try_compile "$LINENO"; then :
10620 xorg_cv_cc_flag_unused_command_line_argument=yes
10621 else
10622 xorg_cv_cc_flag_unused_command_line_argument=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10629 CFLAGS="$xorg_testset_save_CFLAGS"
10630 fi
10631
10632 found="no"
10633
10634 if test $found = "no" ; then
10635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10637 fi
10638
10639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10641 fi
10642
10643 CFLAGS="$CFLAGS -Werror=attributes"
10644
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10646 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10647 cacheid=xorg_cv_cc_flag__Werror_attributes
10648 if eval \${$cacheid+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 int i;
10654 int
10655 main ()
10656 {
10657
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_link "$LINENO"; then :
10663 eval $cacheid=yes
10664 else
10665 eval $cacheid=no
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 fi
10670
10671
10672 CFLAGS="$xorg_testset_save_CFLAGS"
10673
10674 eval supported=\$$cacheid
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10676 $as_echo "$supported" >&6; }
10677 if test "$supported" = "yes" ; then
10678 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10679 found="yes"
10680 fi
10681 fi
10682
10683
10684
10685 if test "x$STRICT_COMPILE" = "xyes"; then
10686 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10687 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10688 fi
10689
10690
10691
10692
10693
10694
10695 cat >>confdefs.h <<_ACEOF
10696 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10697 _ACEOF
10698
10699 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10700 if test "x$PVM" = "x"; then
10701 PVM="0"
10702 fi
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define PACKAGE_VERSION_MINOR $PVM
10706 _ACEOF
10707
10708 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10709 if test "x$PVP" = "x"; then
10710 PVP="0"
10711 fi
10712
10713 cat >>confdefs.h <<_ACEOF
10714 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10715 _ACEOF
10716
10717
10718
10719 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10720 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10721 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10722 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10723
10724
10725
10726
10727 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10728 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10729 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10730 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10731 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10732
10733
10734
10735
10736
10737
10738 if test x$APP_MAN_SUFFIX = x ; then
10739 APP_MAN_SUFFIX=1
10740 fi
10741 if test x$APP_MAN_DIR = x ; then
10742 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10743 fi
10744
10745 if test x$LIB_MAN_SUFFIX = x ; then
10746 LIB_MAN_SUFFIX=3
10747 fi
10748 if test x$LIB_MAN_DIR = x ; then
10749 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10750 fi
10751
10752 if test x$FILE_MAN_SUFFIX = x ; then
10753 case $host_os in
10754 solaris*) FILE_MAN_SUFFIX=4 ;;
10755 *) FILE_MAN_SUFFIX=5 ;;
10756 esac
10757 fi
10758 if test x$FILE_MAN_DIR = x ; then
10759 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10760 fi
10761
10762 if test x$MISC_MAN_SUFFIX = x ; then
10763 case $host_os in
10764 solaris*) MISC_MAN_SUFFIX=5 ;;
10765 *) MISC_MAN_SUFFIX=7 ;;
10766 esac
10767 fi
10768 if test x$MISC_MAN_DIR = x ; then
10769 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10770 fi
10771
10772 if test x$DRIVER_MAN_SUFFIX = x ; then
10773 case $host_os in
10774 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10775 *) DRIVER_MAN_SUFFIX=4 ;;
10776 esac
10777 fi
10778 if test x$DRIVER_MAN_DIR = x ; then
10779 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10780 fi
10781
10782 if test x$ADMIN_MAN_SUFFIX = x ; then
10783 case $host_os in
10784 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10785 *) ADMIN_MAN_SUFFIX=8 ;;
10786 esac
10787 fi
10788 if test x$ADMIN_MAN_DIR = x ; then
10789 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10790 fi
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806 XORG_MAN_PAGE="X Version 11"
10807
10808 MAN_SUBSTS="\
10809 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10810 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10811 -e 's|__xservername__|Xorg|g' \
10812 -e 's|__xconfigfile__|xorg.conf|g' \
10813 -e 's|__projectroot__|\$(prefix)|g' \
10814 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10815 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10816 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10817 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10818 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10819 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10820 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10821
10822
10823
10824 # Check whether --enable-silent-rules was given.
10825 if test "${enable_silent_rules+set}" = set; then :
10826 enableval=$enable_silent_rules;
10827 fi
10828
10829 case $enable_silent_rules in # (((
10830 yes) AM_DEFAULT_VERBOSITY=0;;
10831 no) AM_DEFAULT_VERBOSITY=1;;
10832 *) AM_DEFAULT_VERBOSITY=0;;
10833 esac
10834 am_make=${MAKE-make}
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10836 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10837 if ${am_cv_make_support_nested_variables+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 if $as_echo 'TRUE=$(BAR$(V))
10841 BAR0=false
10842 BAR1=true
10843 V=1
10844 am__doit:
10845 @$(TRUE)
10846 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10847 am_cv_make_support_nested_variables=yes
10848 else
10849 am_cv_make_support_nested_variables=no
10850 fi
10851 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10853 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10854 if test $am_cv_make_support_nested_variables = yes; then
10855 AM_V='$(V)'
10856 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10857 else
10858 AM_V=$AM_DEFAULT_VERBOSITY
10859 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10860 fi
10861 AM_BACKSLASH='\'
10862
10863
10864
10865 # Initialize libtool
10866 # Check whether --enable-static was given.
10867 if test "${enable_static+set}" = set; then :
10868 enableval=$enable_static; p=${PACKAGE-default}
10869 case $enableval in
10870 yes) enable_static=yes ;;
10871 no) enable_static=no ;;
10872 *)
10873 enable_static=no
10874 # Look at the argument we got. We use all the common list separators.
10875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10876 for pkg in $enableval; do
10877 IFS=$lt_save_ifs
10878 if test "X$pkg" = "X$p"; then
10879 enable_static=yes
10880 fi
10881 done
10882 IFS=$lt_save_ifs
10883 ;;
10884 esac
10885 else
10886 enable_static=no
10887 fi
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897 case `pwd` in
10898 *\ * | *\ *)
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10901 esac
10902
10903
10904
10905 macro_version='2.4.6'
10906 macro_revision='2.4.6'
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920 ltmain=$ac_aux_dir/ltmain.sh
10921
10922 # Backslashify metacharacters that are still active within
10923 # double-quoted strings.
10924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10925
10926 # Same as above, but do not quote variable references.
10927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10928
10929 # Sed substitution to delay expansion of an escaped shell variable in a
10930 # double_quote_subst'ed string.
10931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10932
10933 # Sed substitution to delay expansion of an escaped single quote.
10934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10935
10936 # Sed substitution to avoid accidental globbing in evaled expressions
10937 no_glob_subst='s/\*/\\\*/g'
10938
10939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10942
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10944 $as_echo_n "checking how to print strings... " >&6; }
10945 # Test print first, because it will be a builtin if present.
10946 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10948 ECHO='print -r --'
10949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10950 ECHO='printf %s\n'
10951 else
10952 # Use this function as a fallback that always works.
10953 func_fallback_echo ()
10954 {
10955 eval 'cat <<_LTECHO_EOF
10956 $1
10957 _LTECHO_EOF'
10958 }
10959 ECHO='func_fallback_echo'
10960 fi
10961
10962 # func_echo_all arg...
10963 # Invoke $ECHO with all args, space-separated.
10964 func_echo_all ()
10965 {
10966 $ECHO ""
10967 }
10968
10969 case $ECHO in
10970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10971 $as_echo "printf" >&6; } ;;
10972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10973 $as_echo "print -r" >&6; } ;;
10974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10975 $as_echo "cat" >&6; } ;;
10976 esac
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10993 if ${ac_cv_path_SED+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10997 for ac_i in 1 2 3 4 5 6 7; do
10998 ac_script="$ac_script$as_nl$ac_script"
10999 done
11000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11001 { ac_script=; unset ac_script;}
11002 if test -z "$SED"; then
11003 ac_path_SED_found=false
11004 # Loop through the user's path and test for each of PROGNAME-LIST
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11007 do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_prog in sed gsed; do
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11013 as_fn_executable_p "$ac_path_SED" || continue
11014 # Check for GNU ac_path_SED and select it if it is found.
11015 # Check for GNU $ac_path_SED
11016 case `"$ac_path_SED" --version 2>&1` in
11017 *GNU*)
11018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11019 *)
11020 ac_count=0
11021 $as_echo_n 0123456789 >"conftest.in"
11022 while :
11023 do
11024 cat "conftest.in" "conftest.in" >"conftest.tmp"
11025 mv "conftest.tmp" "conftest.in"
11026 cp "conftest.in" "conftest.nl"
11027 $as_echo '' >> "conftest.nl"
11028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11030 as_fn_arith $ac_count + 1 && ac_count=$as_val
11031 if test $ac_count -gt ${ac_path_SED_max-0}; then
11032 # Best one so far, save it but keep looking for a better one
11033 ac_cv_path_SED="$ac_path_SED"
11034 ac_path_SED_max=$ac_count
11035 fi
11036 # 10*(2^10) chars as input seems more than enough
11037 test $ac_count -gt 10 && break
11038 done
11039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11040 esac
11041
11042 $ac_path_SED_found && break 3
11043 done
11044 done
11045 done
11046 IFS=$as_save_IFS
11047 if test -z "$ac_cv_path_SED"; then
11048 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11049 fi
11050 else
11051 ac_cv_path_SED=$SED
11052 fi
11053
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11056 $as_echo "$ac_cv_path_SED" >&6; }
11057 SED="$ac_cv_path_SED"
11058 rm -f conftest.sed
11059
11060 test -z "$SED" && SED=sed
11061 Xsed="$SED -e 1s/^X//"
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11074 $as_echo_n "checking for fgrep... " >&6; }
11075 if ${ac_cv_path_FGREP+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11079 then ac_cv_path_FGREP="$GREP -F"
11080 else
11081 if test -z "$FGREP"; then
11082 ac_path_FGREP_found=false
11083 # Loop through the user's path and test for each of PROGNAME-LIST
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11086 do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_prog in fgrep; do
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11092 as_fn_executable_p "$ac_path_FGREP" || continue
11093 # Check for GNU ac_path_FGREP and select it if it is found.
11094 # Check for GNU $ac_path_FGREP
11095 case `"$ac_path_FGREP" --version 2>&1` in
11096 *GNU*)
11097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11098 *)
11099 ac_count=0
11100 $as_echo_n 0123456789 >"conftest.in"
11101 while :
11102 do
11103 cat "conftest.in" "conftest.in" >"conftest.tmp"
11104 mv "conftest.tmp" "conftest.in"
11105 cp "conftest.in" "conftest.nl"
11106 $as_echo 'FGREP' >> "conftest.nl"
11107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11109 as_fn_arith $ac_count + 1 && ac_count=$as_val
11110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11111 # Best one so far, save it but keep looking for a better one
11112 ac_cv_path_FGREP="$ac_path_FGREP"
11113 ac_path_FGREP_max=$ac_count
11114 fi
11115 # 10*(2^10) chars as input seems more than enough
11116 test $ac_count -gt 10 && break
11117 done
11118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11119 esac
11120
11121 $ac_path_FGREP_found && break 3
11122 done
11123 done
11124 done
11125 IFS=$as_save_IFS
11126 if test -z "$ac_cv_path_FGREP"; then
11127 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11128 fi
11129 else
11130 ac_cv_path_FGREP=$FGREP
11131 fi
11132
11133 fi
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11136 $as_echo "$ac_cv_path_FGREP" >&6; }
11137 FGREP="$ac_cv_path_FGREP"
11138
11139
11140 test -z "$GREP" && GREP=grep
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 # Check whether --with-gnu-ld was given.
11161 if test "${with_gnu_ld+set}" = set; then :
11162 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11163 else
11164 with_gnu_ld=no
11165 fi
11166
11167 ac_prog=ld
11168 if test yes = "$GCC"; then
11169 # Check if gcc -print-prog-name=ld gives a path.
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11171 $as_echo_n "checking for ld used by $CC... " >&6; }
11172 case $host in
11173 *-*-mingw*)
11174 # gcc leaves a trailing carriage return, which upsets mingw
11175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11176 *)
11177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11178 esac
11179 case $ac_prog in
11180 # Accept absolute paths.
11181 [\\/]* | ?:[\\/]*)
11182 re_direlt='/[^/][^/]*/\.\./'
11183 # Canonicalize the pathname of ld
11184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11187 done
11188 test -z "$LD" && LD=$ac_prog
11189 ;;
11190 "")
11191 # If it fails, then pretend we aren't using GCC.
11192 ac_prog=ld
11193 ;;
11194 *)
11195 # If it is relative, then search for the first ld in PATH.
11196 with_gnu_ld=unknown
11197 ;;
11198 esac
11199 elif test yes = "$with_gnu_ld"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11201 $as_echo_n "checking for GNU ld... " >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11204 $as_echo_n "checking for non-GNU ld... " >&6; }
11205 fi
11206 if ${lt_cv_path_LD+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test -z "$LD"; then
11210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11211 for ac_dir in $PATH; do
11212 IFS=$lt_save_ifs
11213 test -z "$ac_dir" && ac_dir=.
11214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11215 lt_cv_path_LD=$ac_dir/$ac_prog
11216 # Check to see if the program is GNU ld. I'd rather use --version,
11217 # but apparently some variants of GNU ld only accept -v.
11218 # Break only if it was the GNU/non-GNU ld that we prefer.
11219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11220 *GNU* | *'with BFD'*)
11221 test no != "$with_gnu_ld" && break
11222 ;;
11223 *)
11224 test yes != "$with_gnu_ld" && break
11225 ;;
11226 esac
11227 fi
11228 done
11229 IFS=$lt_save_ifs
11230 else
11231 lt_cv_path_LD=$LD # Let the user override the test with a path.
11232 fi
11233 fi
11234
11235 LD=$lt_cv_path_LD
11236 if test -n "$LD"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11238 $as_echo "$LD" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11246 if ${lt_cv_prog_gnu_ld+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11250 case `$LD -v 2>&1 </dev/null` in
11251 *GNU* | *'with BFD'*)
11252 lt_cv_prog_gnu_ld=yes
11253 ;;
11254 *)
11255 lt_cv_prog_gnu_ld=no
11256 ;;
11257 esac
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11260 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11261 with_gnu_ld=$lt_cv_prog_gnu_ld
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11272 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11273 if ${lt_cv_path_NM+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 if test -n "$NM"; then
11277 # Let the user override the test.
11278 lt_cv_path_NM=$NM
11279 else
11280 lt_nm_to_check=${ac_tool_prefix}nm
11281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11282 lt_nm_to_check="$lt_nm_to_check nm"
11283 fi
11284 for lt_tmp_nm in $lt_nm_to_check; do
11285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11287 IFS=$lt_save_ifs
11288 test -z "$ac_dir" && ac_dir=.
11289 tmp_nm=$ac_dir/$lt_tmp_nm
11290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11291 # Check to see if the nm accepts a BSD-compat flag.
11292 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11293 # nm: unknown option "B" ignored
11294 # Tru64's nm complains that /dev/null is an invalid object file
11295 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11296 case $build_os in
11297 mingw*) lt_bad_file=conftest.nm/nofile ;;
11298 *) lt_bad_file=/dev/null ;;
11299 esac
11300 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11301 *$lt_bad_file* | *'Invalid file or object type'*)
11302 lt_cv_path_NM="$tmp_nm -B"
11303 break 2
11304 ;;
11305 *)
11306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11307 */dev/null*)
11308 lt_cv_path_NM="$tmp_nm -p"
11309 break 2
11310 ;;
11311 *)
11312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11313 continue # so that we can try to find one that supports BSD flags
11314 ;;
11315 esac
11316 ;;
11317 esac
11318 fi
11319 done
11320 IFS=$lt_save_ifs
11321 done
11322 : ${lt_cv_path_NM=no}
11323 fi
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11326 $as_echo "$lt_cv_path_NM" >&6; }
11327 if test no != "$lt_cv_path_NM"; then
11328 NM=$lt_cv_path_NM
11329 else
11330 # Didn't find any BSD compatible name lister, look for dumpbin.
11331 if test -n "$DUMPBIN"; then :
11332 # Let the user override the test.
11333 else
11334 if test -n "$ac_tool_prefix"; then
11335 for ac_prog in dumpbin "link -dump"
11336 do
11337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_DUMPBIN+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -n "$DUMPBIN"; then
11345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358 done
11359 done
11360 IFS=$as_save_IFS
11361
11362 fi
11363 fi
11364 DUMPBIN=$ac_cv_prog_DUMPBIN
11365 if test -n "$DUMPBIN"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11367 $as_echo "$DUMPBIN" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 test -n "$DUMPBIN" && break
11375 done
11376 fi
11377 if test -z "$DUMPBIN"; then
11378 ac_ct_DUMPBIN=$DUMPBIN
11379 for ac_prog in dumpbin "link -dump"
11380 do
11381 # Extract the first word of "$ac_prog", so it can be a program name with args.
11382 set dummy $ac_prog; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -n "$ac_ct_DUMPBIN"; then
11389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11409 if test -n "$ac_ct_DUMPBIN"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11411 $as_echo "$ac_ct_DUMPBIN" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418 test -n "$ac_ct_DUMPBIN" && break
11419 done
11420
11421 if test "x$ac_ct_DUMPBIN" = x; then
11422 DUMPBIN=":"
11423 else
11424 case $cross_compiling:$ac_tool_warned in
11425 yes:)
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430 DUMPBIN=$ac_ct_DUMPBIN
11431 fi
11432 fi
11433
11434 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11435 *COFF*)
11436 DUMPBIN="$DUMPBIN -symbols -headers"
11437 ;;
11438 *)
11439 DUMPBIN=:
11440 ;;
11441 esac
11442 fi
11443
11444 if test : != "$DUMPBIN"; then
11445 NM=$DUMPBIN
11446 fi
11447 fi
11448 test -z "$NM" && NM=nm
11449
11450
11451
11452
11453
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11456 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11457 if ${lt_cv_nm_interface+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 lt_cv_nm_interface="BSD nm"
11461 echo "int some_variable = 0;" > conftest.$ac_ext
11462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11463 (eval "$ac_compile" 2>conftest.err)
11464 cat conftest.err >&5
11465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11467 cat conftest.err >&5
11468 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11469 cat conftest.out >&5
11470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11471 lt_cv_nm_interface="MS dumpbin"
11472 fi
11473 rm -f conftest*
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11476 $as_echo "$lt_cv_nm_interface" >&6; }
11477
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11479 $as_echo_n "checking whether ln -s works... " >&6; }
11480 LN_S=$as_ln_s
11481 if test "$LN_S" = "ln -s"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11483 $as_echo "yes" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11486 $as_echo "no, using $LN_S" >&6; }
11487 fi
11488
11489 # find the maximum length of command line arguments
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11491 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11492 if ${lt_cv_sys_max_cmd_len+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 i=0
11496 teststring=ABCD
11497
11498 case $build_os in
11499 msdosdjgpp*)
11500 # On DJGPP, this test can blow up pretty badly due to problems in libc
11501 # (any single argument exceeding 2000 bytes causes a buffer overrun
11502 # during glob expansion). Even if it were fixed, the result of this
11503 # check would be larger than it should be.
11504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11505 ;;
11506
11507 gnu*)
11508 # Under GNU Hurd, this test is not required because there is
11509 # no limit to the length of command line arguments.
11510 # Libtool will interpret -1 as no limit whatsoever
11511 lt_cv_sys_max_cmd_len=-1;
11512 ;;
11513
11514 cygwin* | mingw* | cegcc*)
11515 # On Win9x/ME, this test blows up -- it succeeds, but takes
11516 # about 5 minutes as the teststring grows exponentially.
11517 # Worse, since 9x/ME are not pre-emptively multitasking,
11518 # you end up with a "frozen" computer, even though with patience
11519 # the test eventually succeeds (with a max line length of 256k).
11520 # Instead, let's just punt: use the minimum linelength reported by
11521 # all of the supported platforms: 8192 (on NT/2K/XP).
11522 lt_cv_sys_max_cmd_len=8192;
11523 ;;
11524
11525 mint*)
11526 # On MiNT this can take a long time and run out of memory.
11527 lt_cv_sys_max_cmd_len=8192;
11528 ;;
11529
11530 amigaos*)
11531 # On AmigaOS with pdksh, this test takes hours, literally.
11532 # So we just punt and use a minimum line length of 8192.
11533 lt_cv_sys_max_cmd_len=8192;
11534 ;;
11535
11536 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11537 # This has been around since 386BSD, at least. Likely further.
11538 if test -x /sbin/sysctl; then
11539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11540 elif test -x /usr/sbin/sysctl; then
11541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11542 else
11543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11544 fi
11545 # And add a safety zone
11546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11548 ;;
11549
11550 interix*)
11551 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11552 lt_cv_sys_max_cmd_len=196608
11553 ;;
11554
11555 os2*)
11556 # The test takes a long time on OS/2.
11557 lt_cv_sys_max_cmd_len=8192
11558 ;;
11559
11560 osf*)
11561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11563 # nice to cause kernel panics so lets avoid the loop below.
11564 # First set a reasonable default.
11565 lt_cv_sys_max_cmd_len=16384
11566 #
11567 if test -x /sbin/sysconfig; then
11568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11570 esac
11571 fi
11572 ;;
11573 sco3.2v5*)
11574 lt_cv_sys_max_cmd_len=102400
11575 ;;
11576 sysv5* | sco5v6* | sysv4.2uw2*)
11577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11578 if test -n "$kargmax"; then
11579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11580 else
11581 lt_cv_sys_max_cmd_len=32768
11582 fi
11583 ;;
11584 *)
11585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11586 if test -n "$lt_cv_sys_max_cmd_len" && \
11587 test undefined != "$lt_cv_sys_max_cmd_len"; then
11588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11590 else
11591 # Make teststring a little bigger before we do anything with it.
11592 # a 1K string should be a reasonable start.
11593 for i in 1 2 3 4 5 6 7 8; do
11594 teststring=$teststring$teststring
11595 done
11596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11597 # If test is not a shell built-in, we'll probably end up computing a
11598 # maximum length that is only half of the actual maximum length, but
11599 # we can't tell.
11600 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11601 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11602 test 17 != "$i" # 1/2 MB should be enough
11603 do
11604 i=`expr $i + 1`
11605 teststring=$teststring$teststring
11606 done
11607 # Only check the string length outside the loop.
11608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11609 teststring=
11610 # Add a significant safety factor because C++ compilers can tack on
11611 # massive amounts of additional arguments before passing them to the
11612 # linker. It appears as though 1/2 is a usable value.
11613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11614 fi
11615 ;;
11616 esac
11617
11618 fi
11619
11620 if test -n "$lt_cv_sys_max_cmd_len"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11625 $as_echo "none" >&6; }
11626 fi
11627 max_cmd_len=$lt_cv_sys_max_cmd_len
11628
11629
11630
11631
11632
11633
11634 : ${CP="cp -f"}
11635 : ${MV="mv -f"}
11636 : ${RM="rm -f"}
11637
11638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11639 lt_unset=unset
11640 else
11641 lt_unset=false
11642 fi
11643
11644
11645
11646
11647
11648 # test EBCDIC or ASCII
11649 case `echo X|tr X '\101'` in
11650 A) # ASCII based system
11651 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11652 lt_SP2NL='tr \040 \012'
11653 lt_NL2SP='tr \015\012 \040\040'
11654 ;;
11655 *) # EBCDIC based system
11656 lt_SP2NL='tr \100 \n'
11657 lt_NL2SP='tr \r\n \100\100'
11658 ;;
11659 esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11670 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11671 if ${lt_cv_to_host_file_cmd+:} false; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 case $host in
11675 *-*-mingw* )
11676 case $build in
11677 *-*-mingw* ) # actually msys
11678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11679 ;;
11680 *-*-cygwin* )
11681 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11682 ;;
11683 * ) # otherwise, assume *nix
11684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11685 ;;
11686 esac
11687 ;;
11688 *-*-cygwin* )
11689 case $build in
11690 *-*-mingw* ) # actually msys
11691 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11692 ;;
11693 *-*-cygwin* )
11694 lt_cv_to_host_file_cmd=func_convert_file_noop
11695 ;;
11696 * ) # otherwise, assume *nix
11697 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11698 ;;
11699 esac
11700 ;;
11701 * ) # unhandled hosts (and "normal" native builds)
11702 lt_cv_to_host_file_cmd=func_convert_file_noop
11703 ;;
11704 esac
11705
11706 fi
11707
11708 to_host_file_cmd=$lt_cv_to_host_file_cmd
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11710 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11711
11712
11713
11714
11715
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11717 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11718 if ${lt_cv_to_tool_file_cmd+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 #assume ordinary cross tools, or native build.
11722 lt_cv_to_tool_file_cmd=func_convert_file_noop
11723 case $host in
11724 *-*-mingw* )
11725 case $build in
11726 *-*-mingw* ) # actually msys
11727 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11728 ;;
11729 esac
11730 ;;
11731 esac
11732
11733 fi
11734
11735 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11737 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11738
11739
11740
11741
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11745 if ${lt_cv_ld_reload_flag+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 lt_cv_ld_reload_flag='-r'
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11752 reload_flag=$lt_cv_ld_reload_flag
11753 case $reload_flag in
11754 "" | " "*) ;;
11755 *) reload_flag=" $reload_flag" ;;
11756 esac
11757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11758 case $host_os in
11759 cygwin* | mingw* | pw32* | cegcc*)
11760 if test yes != "$GCC"; then
11761 reload_cmds=false
11762 fi
11763 ;;
11764 darwin*)
11765 if test yes = "$GCC"; then
11766 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11767 else
11768 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11769 fi
11770 ;;
11771 esac
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781 if test -n "$ac_tool_prefix"; then
11782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11783 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_prog_OBJDUMP+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test -n "$OBJDUMP"; then
11790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11802 fi
11803 done
11804 done
11805 IFS=$as_save_IFS
11806
11807 fi
11808 fi
11809 OBJDUMP=$ac_cv_prog_OBJDUMP
11810 if test -n "$OBJDUMP"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11812 $as_echo "$OBJDUMP" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 fi
11820 if test -z "$ac_cv_prog_OBJDUMP"; then
11821 ac_ct_OBJDUMP=$OBJDUMP
11822 # Extract the first word of "objdump", so it can be a program name with args.
11823 set dummy objdump; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$ac_ct_OBJDUMP"; then
11830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843 done
11844 done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11850 if test -n "$ac_ct_OBJDUMP"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11852 $as_echo "$ac_ct_OBJDUMP" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858 if test "x$ac_ct_OBJDUMP" = x; then
11859 OBJDUMP="false"
11860 else
11861 case $cross_compiling:$ac_tool_warned in
11862 yes:)
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11865 ac_tool_warned=yes ;;
11866 esac
11867 OBJDUMP=$ac_ct_OBJDUMP
11868 fi
11869 else
11870 OBJDUMP="$ac_cv_prog_OBJDUMP"
11871 fi
11872
11873 test -z "$OBJDUMP" && OBJDUMP=objdump
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11884 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11885 if ${lt_cv_deplibs_check_method+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 lt_cv_file_magic_cmd='$MAGIC_CMD'
11889 lt_cv_file_magic_test_file=
11890 lt_cv_deplibs_check_method='unknown'
11891 # Need to set the preceding variable on all platforms that support
11892 # interlibrary dependencies.
11893 # 'none' -- dependencies not supported.
11894 # 'unknown' -- same as none, but documents that we really don't know.
11895 # 'pass_all' -- all dependencies passed with no checks.
11896 # 'test_compile' -- check by making test program.
11897 # 'file_magic [[regex]]' -- check by looking for files in library path
11898 # that responds to the $file_magic_cmd with a given extended regex.
11899 # If you have 'file' or equivalent on your system and you're not sure
11900 # whether 'pass_all' will *always* work, you probably want this one.
11901
11902 case $host_os in
11903 aix[4-9]*)
11904 lt_cv_deplibs_check_method=pass_all
11905 ;;
11906
11907 beos*)
11908 lt_cv_deplibs_check_method=pass_all
11909 ;;
11910
11911 bsdi[45]*)
11912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11913 lt_cv_file_magic_cmd='/usr/bin/file -L'
11914 lt_cv_file_magic_test_file=/shlib/libc.so
11915 ;;
11916
11917 cygwin*)
11918 # func_win32_libid is a shell function defined in ltmain.sh
11919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11920 lt_cv_file_magic_cmd='func_win32_libid'
11921 ;;
11922
11923 mingw* | pw32*)
11924 # Base MSYS/MinGW do not provide the 'file' command needed by
11925 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11926 # unless we find 'file', for example because we are cross-compiling.
11927 if ( file / ) >/dev/null 2>&1; then
11928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11929 lt_cv_file_magic_cmd='func_win32_libid'
11930 else
11931 # Keep this pattern in sync with the one in func_win32_libid.
11932 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11933 lt_cv_file_magic_cmd='$OBJDUMP -f'
11934 fi
11935 ;;
11936
11937 cegcc*)
11938 # use the weaker test based on 'objdump'. See mingw*.
11939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11940 lt_cv_file_magic_cmd='$OBJDUMP -f'
11941 ;;
11942
11943 darwin* | rhapsody*)
11944 lt_cv_deplibs_check_method=pass_all
11945 ;;
11946
11947 freebsd* | dragonfly*)
11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11949 case $host_cpu in
11950 i*86 )
11951 # Not sure whether the presence of OpenBSD here was a mistake.
11952 # Let's accept both of them until this is cleared up.
11953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11954 lt_cv_file_magic_cmd=/usr/bin/file
11955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11956 ;;
11957 esac
11958 else
11959 lt_cv_deplibs_check_method=pass_all
11960 fi
11961 ;;
11962
11963 haiku*)
11964 lt_cv_deplibs_check_method=pass_all
11965 ;;
11966
11967 hpux10.20* | hpux11*)
11968 lt_cv_file_magic_cmd=/usr/bin/file
11969 case $host_cpu in
11970 ia64*)
11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11973 ;;
11974 hppa*64*)
11975 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]'
11976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11977 ;;
11978 *)
11979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11981 ;;
11982 esac
11983 ;;
11984
11985 interix[3-9]*)
11986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11988 ;;
11989
11990 irix5* | irix6* | nonstopux*)
11991 case $LD in
11992 *-32|*"-32 ") libmagic=32-bit;;
11993 *-n32|*"-n32 ") libmagic=N32;;
11994 *-64|*"-64 ") libmagic=64-bit;;
11995 *) libmagic=never-match;;
11996 esac
11997 lt_cv_deplibs_check_method=pass_all
11998 ;;
11999
12000 # This must be glibc/ELF.
12001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12002 lt_cv_deplibs_check_method=pass_all
12003 ;;
12004
12005 netbsd*)
12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12008 else
12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12010 fi
12011 ;;
12012
12013 newos6*)
12014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12015 lt_cv_file_magic_cmd=/usr/bin/file
12016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12017 ;;
12018
12019 *nto* | *qnx*)
12020 lt_cv_deplibs_check_method=pass_all
12021 ;;
12022
12023 openbsd* | bitrig*)
12024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12026 else
12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12028 fi
12029 ;;
12030
12031 osf3* | osf4* | osf5*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035 rdos*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039 solaris*)
12040 lt_cv_deplibs_check_method=pass_all
12041 ;;
12042
12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
12047 sysv4 | sysv4.3*)
12048 case $host_vendor in
12049 motorola)
12050 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]'
12051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12052 ;;
12053 ncr)
12054 lt_cv_deplibs_check_method=pass_all
12055 ;;
12056 sequent)
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12059 ;;
12060 sni)
12061 lt_cv_file_magic_cmd='/bin/file'
12062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12063 lt_cv_file_magic_test_file=/lib/libc.so
12064 ;;
12065 siemens)
12066 lt_cv_deplibs_check_method=pass_all
12067 ;;
12068 pc)
12069 lt_cv_deplibs_check_method=pass_all
12070 ;;
12071 esac
12072 ;;
12073
12074 tpf*)
12075 lt_cv_deplibs_check_method=pass_all
12076 ;;
12077 os2*)
12078 lt_cv_deplibs_check_method=pass_all
12079 ;;
12080 esac
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12085
12086 file_magic_glob=
12087 want_nocaseglob=no
12088 if test "$build" = "$host"; then
12089 case $host_os in
12090 mingw* | pw32*)
12091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12092 want_nocaseglob=yes
12093 else
12094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12095 fi
12096 ;;
12097 esac
12098 fi
12099
12100 file_magic_cmd=$lt_cv_file_magic_cmd
12101 deplibs_check_method=$lt_cv_deplibs_check_method
12102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125 if test -n "$ac_tool_prefix"; then
12126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12127 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if ${ac_cv_prog_DLLTOOL+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test -n "$DLLTOOL"; then
12134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12146 fi
12147 done
12148 done
12149 IFS=$as_save_IFS
12150
12151 fi
12152 fi
12153 DLLTOOL=$ac_cv_prog_DLLTOOL
12154 if test -n "$DLLTOOL"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12156 $as_echo "$DLLTOOL" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12161
12162
12163 fi
12164 if test -z "$ac_cv_prog_DLLTOOL"; then
12165 ac_ct_DLLTOOL=$DLLTOOL
12166 # Extract the first word of "dlltool", so it can be a program name with args.
12167 set dummy dlltool; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 if test -n "$ac_ct_DLLTOOL"; then
12174 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12175 else
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12183 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12186 fi
12187 done
12188 done
12189 IFS=$as_save_IFS
12190
12191 fi
12192 fi
12193 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12194 if test -n "$ac_ct_DLLTOOL"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12196 $as_echo "$ac_ct_DLLTOOL" >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200 fi
12201
12202 if test "x$ac_ct_DLLTOOL" = x; then
12203 DLLTOOL="false"
12204 else
12205 case $cross_compiling:$ac_tool_warned in
12206 yes:)
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12209 ac_tool_warned=yes ;;
12210 esac
12211 DLLTOOL=$ac_ct_DLLTOOL
12212 fi
12213 else
12214 DLLTOOL="$ac_cv_prog_DLLTOOL"
12215 fi
12216
12217 test -z "$DLLTOOL" && DLLTOOL=dlltool
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12229 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12230 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 lt_cv_sharedlib_from_linklib_cmd='unknown'
12234
12235 case $host_os in
12236 cygwin* | mingw* | pw32* | cegcc*)
12237 # two different shell functions defined in ltmain.sh;
12238 # decide which one to use based on capabilities of $DLLTOOL
12239 case `$DLLTOOL --help 2>&1` in
12240 *--identify-strict*)
12241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12242 ;;
12243 *)
12244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12245 ;;
12246 esac
12247 ;;
12248 *)
12249 # fallback: assume linklib IS sharedlib
12250 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12251 ;;
12252 esac
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12256 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12257 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12258 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12259
12260
12261
12262
12263
12264
12265
12266 if test -n "$ac_tool_prefix"; then
12267 for ac_prog in ar
12268 do
12269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if ${ac_cv_prog_AR+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 if test -n "$AR"; then
12277 ac_cv_prog_AR="$AR" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290 done
12291 done
12292 IFS=$as_save_IFS
12293
12294 fi
12295 fi
12296 AR=$ac_cv_prog_AR
12297 if test -n "$AR"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12299 $as_echo "$AR" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 fi
12304
12305
12306 test -n "$AR" && break
12307 done
12308 fi
12309 if test -z "$AR"; then
12310 ac_ct_AR=$AR
12311 for ac_prog in ar
12312 do
12313 # Extract the first word of "$ac_prog", so it can be a program name with args.
12314 set dummy $ac_prog; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$ac_ct_AR"; then
12321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330 ac_cv_prog_ac_ct_AR="$ac_prog"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334 done
12335 done
12336 IFS=$as_save_IFS
12337
12338 fi
12339 fi
12340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12341 if test -n "$ac_ct_AR"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12343 $as_echo "$ac_ct_AR" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349
12350 test -n "$ac_ct_AR" && break
12351 done
12352
12353 if test "x$ac_ct_AR" = x; then
12354 AR="false"
12355 else
12356 case $cross_compiling:$ac_tool_warned in
12357 yes:)
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12360 ac_tool_warned=yes ;;
12361 esac
12362 AR=$ac_ct_AR
12363 fi
12364 fi
12365
12366 : ${AR=ar}
12367 : ${AR_FLAGS=cru}
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12380 $as_echo_n "checking for archiver @FILE support... " >&6; }
12381 if ${lt_cv_ar_at_file+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 lt_cv_ar_at_file=no
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 int
12389 main ()
12390 {
12391
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397 echo conftest.$ac_objext > conftest.lst
12398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12400 (eval $lt_ar_try) 2>&5
12401 ac_status=$?
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }
12404 if test 0 -eq "$ac_status"; then
12405 # Ensure the archiver fails upon bogus file names.
12406 rm -f conftest.$ac_objext libconftest.a
12407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12408 (eval $lt_ar_try) 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }
12412 if test 0 -ne "$ac_status"; then
12413 lt_cv_ar_at_file=@
12414 fi
12415 fi
12416 rm -f conftest.* libconftest.a
12417
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12423 $as_echo "$lt_cv_ar_at_file" >&6; }
12424
12425 if test no = "$lt_cv_ar_at_file"; then
12426 archiver_list_spec=
12427 else
12428 archiver_list_spec=$lt_cv_ar_at_file
12429 fi
12430
12431
12432
12433
12434
12435
12436
12437 if test -n "$ac_tool_prefix"; then
12438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12439 set dummy ${ac_tool_prefix}strip; ac_word=$2
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if ${ac_cv_prog_STRIP+:} false; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 if test -n "$STRIP"; then
12446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12447 else
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12450 do
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457 break 2
12458 fi
12459 done
12460 done
12461 IFS=$as_save_IFS
12462
12463 fi
12464 fi
12465 STRIP=$ac_cv_prog_STRIP
12466 if test -n "$STRIP"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12468 $as_echo "$STRIP" >&6; }
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473
12474
12475 fi
12476 if test -z "$ac_cv_prog_STRIP"; then
12477 ac_ct_STRIP=$STRIP
12478 # Extract the first word of "strip", so it can be a program name with args.
12479 set dummy strip; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$ac_ct_STRIP"; then
12486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12490 do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12495 ac_cv_prog_ac_ct_STRIP="strip"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12498 fi
12499 done
12500 done
12501 IFS=$as_save_IFS
12502
12503 fi
12504 fi
12505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12506 if test -n "$ac_ct_STRIP"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12508 $as_echo "$ac_ct_STRIP" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513
12514 if test "x$ac_ct_STRIP" = x; then
12515 STRIP=":"
12516 else
12517 case $cross_compiling:$ac_tool_warned in
12518 yes:)
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12521 ac_tool_warned=yes ;;
12522 esac
12523 STRIP=$ac_ct_STRIP
12524 fi
12525 else
12526 STRIP="$ac_cv_prog_STRIP"
12527 fi
12528
12529 test -z "$STRIP" && STRIP=:
12530
12531
12532
12533
12534
12535
12536 if test -n "$ac_tool_prefix"; then
12537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_prog_RANLIB+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 if test -n "$RANLIB"; then
12545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12546 else
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12549 do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558 done
12559 done
12560 IFS=$as_save_IFS
12561
12562 fi
12563 fi
12564 RANLIB=$ac_cv_prog_RANLIB
12565 if test -n "$RANLIB"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12567 $as_echo "$RANLIB" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572
12573
12574 fi
12575 if test -z "$ac_cv_prog_RANLIB"; then
12576 ac_ct_RANLIB=$RANLIB
12577 # Extract the first word of "ranlib", so it can be a program name with args.
12578 set dummy ranlib; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$ac_ct_RANLIB"; then
12585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_ac_ct_RANLIB="ranlib"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602 fi
12603 fi
12604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12605 if test -n "$ac_ct_RANLIB"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12607 $as_echo "$ac_ct_RANLIB" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612
12613 if test "x$ac_ct_RANLIB" = x; then
12614 RANLIB=":"
12615 else
12616 case $cross_compiling:$ac_tool_warned in
12617 yes:)
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12620 ac_tool_warned=yes ;;
12621 esac
12622 RANLIB=$ac_ct_RANLIB
12623 fi
12624 else
12625 RANLIB="$ac_cv_prog_RANLIB"
12626 fi
12627
12628 test -z "$RANLIB" && RANLIB=:
12629
12630
12631
12632
12633
12634
12635 # Determine commands to create old-style static archives.
12636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12637 old_postinstall_cmds='chmod 644 $oldlib'
12638 old_postuninstall_cmds=
12639
12640 if test -n "$RANLIB"; then
12641 case $host_os in
12642 bitrig* | openbsd*)
12643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12644 ;;
12645 *)
12646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12647 ;;
12648 esac
12649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12650 fi
12651
12652 case $host_os in
12653 darwin*)
12654 lock_old_archive_extraction=yes ;;
12655 *)
12656 lock_old_archive_extraction=no ;;
12657 esac
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
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697 # If no C compiler was specified, use CC.
12698 LTCC=${LTCC-"$CC"}
12699
12700 # If no C compiler flags were specified, use CFLAGS.
12701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12702
12703 # Allow CC to be a program name with arguments.
12704 compiler=$CC
12705
12706
12707 # Check for command to grab the raw symbol name followed by C symbol from nm.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12710 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713
12714 # These are sane defaults that work on at least a few old systems.
12715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12716
12717 # Character class describing NM global symbol codes.
12718 symcode='[BCDEGRST]'
12719
12720 # Regexp to match symbols that can be accessed directly from C.
12721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12722
12723 # Define system-specific variables.
12724 case $host_os in
12725 aix*)
12726 symcode='[BCDT]'
12727 ;;
12728 cygwin* | mingw* | pw32* | cegcc*)
12729 symcode='[ABCDGISTW]'
12730 ;;
12731 hpux*)
12732 if test ia64 = "$host_cpu"; then
12733 symcode='[ABCDEGRST]'
12734 fi
12735 ;;
12736 irix* | nonstopux*)
12737 symcode='[BCDEGRST]'
12738 ;;
12739 osf*)
12740 symcode='[BCDEGQRST]'
12741 ;;
12742 solaris*)
12743 symcode='[BDRT]'
12744 ;;
12745 sco3.2v5*)
12746 symcode='[DT]'
12747 ;;
12748 sysv4.2uw2*)
12749 symcode='[DT]'
12750 ;;
12751 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12752 symcode='[ABDT]'
12753 ;;
12754 sysv4)
12755 symcode='[DFNSTU]'
12756 ;;
12757 esac
12758
12759 # If we're using GNU nm, then use its standard symbol codes.
12760 case `$NM -V 2>&1` in
12761 *GNU* | *'with BFD'*)
12762 symcode='[ABCDGIRSTW]' ;;
12763 esac
12764
12765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12766 # Gets list of data symbols to import.
12767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12768 # Adjust the below global symbol transforms to fixup imported variables.
12769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12771 lt_c_name_lib_hook="\
12772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12774 else
12775 # Disable hooks by default.
12776 lt_cv_sys_global_symbol_to_import=
12777 lt_cdecl_hook=
12778 lt_c_name_hook=
12779 lt_c_name_lib_hook=
12780 fi
12781
12782 # Transform an extracted symbol line into a proper C declaration.
12783 # Some systems (esp. on ia64) link data and code symbols differently,
12784 # so use this general approach.
12785 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12786 $lt_cdecl_hook\
12787 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12788 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12789
12790 # Transform an extracted symbol line into symbol name and symbol address
12791 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12792 $lt_c_name_hook\
12793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12795
12796 # Transform an extracted symbol line into symbol name with lib prefix and
12797 # symbol address.
12798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12799 $lt_c_name_lib_hook\
12800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12801 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12802 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12803
12804 # Handle CRLF in mingw tool chain
12805 opt_cr=
12806 case $build_os in
12807 mingw*)
12808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12809 ;;
12810 esac
12811
12812 # Try without a prefix underscore, then with it.
12813 for ac_symprfx in "" "_"; do
12814
12815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12816 symxfrm="\\1 $ac_symprfx\\2 \\2"
12817
12818 # Write the raw and C identifiers.
12819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12820 # Fake it for dumpbin and say T for any non-static function,
12821 # D for any global variable and I for any imported variable.
12822 # Also find C++ and __fastcall symbols from MSVC++,
12823 # which start with @ or ?.
12824 lt_cv_sys_global_symbol_pipe="$AWK '"\
12825 " {last_section=section; section=\$ 3};"\
12826 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12827 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12828 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12829 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12830 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12831 " \$ 0!~/External *\|/{next};"\
12832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12833 " {if(hide[section]) next};"\
12834 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12835 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12836 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12837 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12838 " ' prfx=^$ac_symprfx"
12839 else
12840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12841 fi
12842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12843
12844 # Check to see that the pipe works correctly.
12845 pipe_works=no
12846
12847 rm -f conftest*
12848 cat > conftest.$ac_ext <<_LT_EOF
12849 #ifdef __cplusplus
12850 extern "C" {
12851 #endif
12852 char nm_test_var;
12853 void nm_test_func(void);
12854 void nm_test_func(void){}
12855 #ifdef __cplusplus
12856 }
12857 #endif
12858 int main(){nm_test_var='a';nm_test_func();return(0);}
12859 _LT_EOF
12860
12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12862 (eval $ac_compile) 2>&5
12863 ac_status=$?
12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12865 test $ac_status = 0; }; then
12866 # Now try to grab the symbols.
12867 nlist=conftest.nm
12868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; } && test -s "$nlist"; then
12873 # Try sorting and uniquifying the output.
12874 if sort "$nlist" | uniq > "$nlist"T; then
12875 mv -f "$nlist"T "$nlist"
12876 else
12877 rm -f "$nlist"T
12878 fi
12879
12880 # Make sure that we snagged all the symbols we need.
12881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12883 cat <<_LT_EOF > conftest.$ac_ext
12884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12886 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12887 relocations are performed -- see ld's documentation on pseudo-relocs. */
12888 # define LT_DLSYM_CONST
12889 #elif defined __osf__
12890 /* This system does not cope well with relocations in const data. */
12891 # define LT_DLSYM_CONST
12892 #else
12893 # define LT_DLSYM_CONST const
12894 #endif
12895
12896 #ifdef __cplusplus
12897 extern "C" {
12898 #endif
12899
12900 _LT_EOF
12901 # Now generate the symbol file.
12902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12903
12904 cat <<_LT_EOF >> conftest.$ac_ext
12905
12906 /* The mapping between symbol names and symbols. */
12907 LT_DLSYM_CONST struct {
12908 const char *name;
12909 void *address;
12910 }
12911 lt__PROGRAM__LTX_preloaded_symbols[] =
12912 {
12913 { "@PROGRAM@", (void *) 0 },
12914 _LT_EOF
12915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12916 cat <<\_LT_EOF >> conftest.$ac_ext
12917 {0, (void *) 0}
12918 };
12919
12920 /* This works around a problem in FreeBSD linker */
12921 #ifdef FREEBSD_WORKAROUND
12922 static const void *lt_preloaded_setup() {
12923 return lt__PROGRAM__LTX_preloaded_symbols;
12924 }
12925 #endif
12926
12927 #ifdef __cplusplus
12928 }
12929 #endif
12930 _LT_EOF
12931 # Now try linking the two files.
12932 mv conftest.$ac_objext conftstm.$ac_objext
12933 lt_globsym_save_LIBS=$LIBS
12934 lt_globsym_save_CFLAGS=$CFLAGS
12935 LIBS=conftstm.$ac_objext
12936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12938 (eval $ac_link) 2>&5
12939 ac_status=$?
12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12942 pipe_works=yes
12943 fi
12944 LIBS=$lt_globsym_save_LIBS
12945 CFLAGS=$lt_globsym_save_CFLAGS
12946 else
12947 echo "cannot find nm_test_func in $nlist" >&5
12948 fi
12949 else
12950 echo "cannot find nm_test_var in $nlist" >&5
12951 fi
12952 else
12953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12954 fi
12955 else
12956 echo "$progname: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 fi
12959 rm -rf conftest* conftst*
12960
12961 # Do not use the global_symbol_pipe unless it works.
12962 if test yes = "$pipe_works"; then
12963 break
12964 else
12965 lt_cv_sys_global_symbol_pipe=
12966 fi
12967 done
12968
12969 fi
12970
12971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12972 lt_cv_sys_global_symbol_to_cdecl=
12973 fi
12974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12976 $as_echo "failed" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12979 $as_echo "ok" >&6; }
12980 fi
12981
12982 # Response file support.
12983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12984 nm_file_list_spec='@'
12985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12986 nm_file_list_spec='@'
12987 fi
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
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13026 $as_echo_n "checking for sysroot... " >&6; }
13027
13028 # Check whether --with-sysroot was given.
13029 if test "${with_sysroot+set}" = set; then :
13030 withval=$with_sysroot;
13031 else
13032 with_sysroot=no
13033 fi
13034
13035
13036 lt_sysroot=
13037 case $with_sysroot in #(
13038 yes)
13039 if test yes = "$GCC"; then
13040 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13041 fi
13042 ;; #(
13043 /*)
13044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13045 ;; #(
13046 no|'')
13047 ;; #(
13048 *)
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13050 $as_echo "$with_sysroot" >&6; }
13051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13052 ;;
13053 esac
13054
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13056 $as_echo "${lt_sysroot:-no}" >&6; }
13057
13058
13059
13060
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13063 $as_echo_n "checking for a working dd... " >&6; }
13064 if ${ac_cv_path_lt_DD+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 printf 0123456789abcdef0123456789abcdef >conftest.i
13068 cat conftest.i conftest.i >conftest2.i
13069 : ${lt_DD:=$DD}
13070 if test -z "$lt_DD"; then
13071 ac_path_lt_DD_found=false
13072 # Loop through the user's path and test for each of PROGNAME-LIST
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_prog in dd; do
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13081 as_fn_executable_p "$ac_path_lt_DD" || continue
13082 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13083 cmp -s conftest.i conftest.out \
13084 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13085 fi
13086 $ac_path_lt_DD_found && break 3
13087 done
13088 done
13089 done
13090 IFS=$as_save_IFS
13091 if test -z "$ac_cv_path_lt_DD"; then
13092 :
13093 fi
13094 else
13095 ac_cv_path_lt_DD=$lt_DD
13096 fi
13097
13098 rm -f conftest.i conftest2.i conftest.out
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13101 $as_echo "$ac_cv_path_lt_DD" >&6; }
13102
13103
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13105 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13106 if ${lt_cv_truncate_bin+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 printf 0123456789abcdef0123456789abcdef >conftest.i
13110 cat conftest.i conftest.i >conftest2.i
13111 lt_cv_truncate_bin=
13112 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13113 cmp -s conftest.i conftest.out \
13114 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13115 fi
13116 rm -f conftest.i conftest2.i conftest.out
13117 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13120 $as_echo "$lt_cv_truncate_bin" >&6; }
13121
13122
13123
13124
13125
13126
13127
13128 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13129 func_cc_basename ()
13130 {
13131 for cc_temp in $*""; do
13132 case $cc_temp in
13133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13135 \-*) ;;
13136 *) break;;
13137 esac
13138 done
13139 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13140 }
13141
13142 # Check whether --enable-libtool-lock was given.
13143 if test "${enable_libtool_lock+set}" = set; then :
13144 enableval=$enable_libtool_lock;
13145 fi
13146
13147 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13148
13149 # Some flags need to be propagated to the compiler or linker for good
13150 # libtool support.
13151 case $host in
13152 ia64-*-hpux*)
13153 # Find out what ABI is being produced by ac_compile, and set mode
13154 # options accordingly.
13155 echo 'int i;' > conftest.$ac_ext
13156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13157 (eval $ac_compile) 2>&5
13158 ac_status=$?
13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13160 test $ac_status = 0; }; then
13161 case `/usr/bin/file conftest.$ac_objext` in
13162 *ELF-32*)
13163 HPUX_IA64_MODE=32
13164 ;;
13165 *ELF-64*)
13166 HPUX_IA64_MODE=64
13167 ;;
13168 esac
13169 fi
13170 rm -rf conftest*
13171 ;;
13172 *-*-irix6*)
13173 # Find out what ABI is being produced by ac_compile, and set linker
13174 # options accordingly.
13175 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }; then
13181 if test yes = "$lt_cv_prog_gnu_ld"; then
13182 case `/usr/bin/file conftest.$ac_objext` in
13183 *32-bit*)
13184 LD="${LD-ld} -melf32bsmip"
13185 ;;
13186 *N32*)
13187 LD="${LD-ld} -melf32bmipn32"
13188 ;;
13189 *64-bit*)
13190 LD="${LD-ld} -melf64bmip"
13191 ;;
13192 esac
13193 else
13194 case `/usr/bin/file conftest.$ac_objext` in
13195 *32-bit*)
13196 LD="${LD-ld} -32"
13197 ;;
13198 *N32*)
13199 LD="${LD-ld} -n32"
13200 ;;
13201 *64-bit*)
13202 LD="${LD-ld} -64"
13203 ;;
13204 esac
13205 fi
13206 fi
13207 rm -rf conftest*
13208 ;;
13209
13210 mips64*-*linux*)
13211 # Find out what ABI is being produced by ac_compile, and set linker
13212 # options accordingly.
13213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13215 (eval $ac_compile) 2>&5
13216 ac_status=$?
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218 test $ac_status = 0; }; then
13219 emul=elf
13220 case `/usr/bin/file conftest.$ac_objext` in
13221 *32-bit*)
13222 emul="${emul}32"
13223 ;;
13224 *64-bit*)
13225 emul="${emul}64"
13226 ;;
13227 esac
13228 case `/usr/bin/file conftest.$ac_objext` in
13229 *MSB*)
13230 emul="${emul}btsmip"
13231 ;;
13232 *LSB*)
13233 emul="${emul}ltsmip"
13234 ;;
13235 esac
13236 case `/usr/bin/file conftest.$ac_objext` in
13237 *N32*)
13238 emul="${emul}n32"
13239 ;;
13240 esac
13241 LD="${LD-ld} -m $emul"
13242 fi
13243 rm -rf conftest*
13244 ;;
13245
13246 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13247 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13248 # Find out what ABI is being produced by ac_compile, and set linker
13249 # options accordingly. Note that the listed cases only cover the
13250 # situations where additional linker options are needed (such as when
13251 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13252 # vice versa); the common cases where no linker options are needed do
13253 # not appear in the list.
13254 echo 'int i;' > conftest.$ac_ext
13255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13256 (eval $ac_compile) 2>&5
13257 ac_status=$?
13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; }; then
13260 case `/usr/bin/file conftest.o` in
13261 *32-bit*)
13262 case $host in
13263 x86_64-*kfreebsd*-gnu)
13264 LD="${LD-ld} -m elf_i386_fbsd"
13265 ;;
13266 x86_64-*linux*)
13267 case `/usr/bin/file conftest.o` in
13268 *x86-64*)
13269 LD="${LD-ld} -m elf32_x86_64"
13270 ;;
13271 *)
13272 LD="${LD-ld} -m elf_i386"
13273 ;;
13274 esac
13275 ;;
13276 powerpc64le-*linux*)
13277 LD="${LD-ld} -m elf32lppclinux"
13278 ;;
13279 powerpc64-*linux*)
13280 LD="${LD-ld} -m elf32ppclinux"
13281 ;;
13282 s390x-*linux*)
13283 LD="${LD-ld} -m elf_s390"
13284 ;;
13285 sparc64-*linux*)
13286 LD="${LD-ld} -m elf32_sparc"
13287 ;;
13288 esac
13289 ;;
13290 *64-bit*)
13291 case $host in
13292 x86_64-*kfreebsd*-gnu)
13293 LD="${LD-ld} -m elf_x86_64_fbsd"
13294 ;;
13295 x86_64-*linux*)
13296 LD="${LD-ld} -m elf_x86_64"
13297 ;;
13298 powerpcle-*linux*)
13299 LD="${LD-ld} -m elf64lppc"
13300 ;;
13301 powerpc-*linux*)
13302 LD="${LD-ld} -m elf64ppc"
13303 ;;
13304 s390*-*linux*|s390*-*tpf*)
13305 LD="${LD-ld} -m elf64_s390"
13306 ;;
13307 sparc*-*linux*)
13308 LD="${LD-ld} -m elf64_sparc"
13309 ;;
13310 esac
13311 ;;
13312 esac
13313 fi
13314 rm -rf conftest*
13315 ;;
13316
13317 *-*-sco3.2v5*)
13318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13319 SAVE_CFLAGS=$CFLAGS
13320 CFLAGS="$CFLAGS -belf"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13322 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13323 if ${lt_cv_cc_needs_belf+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 ac_ext=c
13327 ac_cpp='$CPP $CPPFLAGS'
13328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13331
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 int
13336 main ()
13337 {
13338
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_link "$LINENO"; then :
13344 lt_cv_cc_needs_belf=yes
13345 else
13346 lt_cv_cc_needs_belf=no
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
13350 ac_ext=c
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13358 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13359 if test yes != "$lt_cv_cc_needs_belf"; then
13360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13361 CFLAGS=$SAVE_CFLAGS
13362 fi
13363 ;;
13364 *-*solaris*)
13365 # Find out what ABI is being produced by ac_compile, and set linker
13366 # options accordingly.
13367 echo 'int i;' > conftest.$ac_ext
13368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13369 (eval $ac_compile) 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; then
13373 case `/usr/bin/file conftest.o` in
13374 *64-bit*)
13375 case $lt_cv_prog_gnu_ld in
13376 yes*)
13377 case $host in
13378 i?86-*-solaris*|x86_64-*-solaris*)
13379 LD="${LD-ld} -m elf_x86_64"
13380 ;;
13381 sparc*-*-solaris*)
13382 LD="${LD-ld} -m elf64_sparc"
13383 ;;
13384 esac
13385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13386 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13387 LD=${LD-ld}_sol2
13388 fi
13389 ;;
13390 *)
13391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13392 LD="${LD-ld} -64"
13393 fi
13394 ;;
13395 esac
13396 ;;
13397 esac
13398 fi
13399 rm -rf conftest*
13400 ;;
13401 esac
13402
13403 need_locks=$enable_libtool_lock
13404
13405 if test -n "$ac_tool_prefix"; then
13406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13407 set dummy ${ac_tool_prefix}mt; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 if test -n "$MANIFEST_TOOL"; then
13414 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13415 else
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13418 do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13426 fi
13427 done
13428 done
13429 IFS=$as_save_IFS
13430
13431 fi
13432 fi
13433 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13434 if test -n "$MANIFEST_TOOL"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13436 $as_echo "$MANIFEST_TOOL" >&6; }
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 fi
13441
13442
13443 fi
13444 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13445 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13446 # Extract the first word of "mt", so it can be a program name with args.
13447 set dummy mt; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$ac_ct_MANIFEST_TOOL"; then
13454 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13466 fi
13467 done
13468 done
13469 IFS=$as_save_IFS
13470
13471 fi
13472 fi
13473 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13474 if test -n "$ac_ct_MANIFEST_TOOL"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13476 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480 fi
13481
13482 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13483 MANIFEST_TOOL=":"
13484 else
13485 case $cross_compiling:$ac_tool_warned in
13486 yes:)
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489 ac_tool_warned=yes ;;
13490 esac
13491 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13492 fi
13493 else
13494 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13495 fi
13496
13497 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13499 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13500 if ${lt_cv_path_mainfest_tool+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 lt_cv_path_mainfest_tool=no
13504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13505 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13506 cat conftest.err >&5
13507 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13508 lt_cv_path_mainfest_tool=yes
13509 fi
13510 rm -f conftest*
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13513 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13514 if test yes != "$lt_cv_path_mainfest_tool"; then
13515 MANIFEST_TOOL=:
13516 fi
13517
13518
13519
13520
13521
13522
13523 case $host_os in
13524 rhapsody* | darwin*)
13525 if test -n "$ac_tool_prefix"; then
13526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13527 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529 $as_echo_n "checking for $ac_word... " >&6; }
13530 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 if test -n "$DSYMUTIL"; then
13534 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13535 else
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13538 do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547 done
13548 done
13549 IFS=$as_save_IFS
13550
13551 fi
13552 fi
13553 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13554 if test -n "$DSYMUTIL"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13556 $as_echo "$DSYMUTIL" >&6; }
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13560 fi
13561
13562
13563 fi
13564 if test -z "$ac_cv_prog_DSYMUTIL"; then
13565 ac_ct_DSYMUTIL=$DSYMUTIL
13566 # Extract the first word of "dsymutil", so it can be a program name with args.
13567 set dummy dsymutil; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 if test -n "$ac_ct_DSYMUTIL"; then
13574 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13575 else
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13578 do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587 done
13588 done
13589 IFS=$as_save_IFS
13590
13591 fi
13592 fi
13593 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13594 if test -n "$ac_ct_DSYMUTIL"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13596 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600 fi
13601
13602 if test "x$ac_ct_DSYMUTIL" = x; then
13603 DSYMUTIL=":"
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606 yes:)
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609 ac_tool_warned=yes ;;
13610 esac
13611 DSYMUTIL=$ac_ct_DSYMUTIL
13612 fi
13613 else
13614 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13615 fi
13616
13617 if test -n "$ac_tool_prefix"; then
13618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13619 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_prog_NMEDIT+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -n "$NMEDIT"; then
13626 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13630 do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639 done
13640 done
13641 IFS=$as_save_IFS
13642
13643 fi
13644 fi
13645 NMEDIT=$ac_cv_prog_NMEDIT
13646 if test -n "$NMEDIT"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13648 $as_echo "$NMEDIT" >&6; }
13649 else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655 fi
13656 if test -z "$ac_cv_prog_NMEDIT"; then
13657 ac_ct_NMEDIT=$NMEDIT
13658 # Extract the first word of "nmedit", so it can be a program name with args.
13659 set dummy nmedit; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$ac_ct_NMEDIT"; then
13666 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13670 do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13675 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 fi
13684 fi
13685 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13686 if test -n "$ac_ct_NMEDIT"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13688 $as_echo "$ac_ct_NMEDIT" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694 if test "x$ac_ct_NMEDIT" = x; then
13695 NMEDIT=":"
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698 yes:)
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701 ac_tool_warned=yes ;;
13702 esac
13703 NMEDIT=$ac_ct_NMEDIT
13704 fi
13705 else
13706 NMEDIT="$ac_cv_prog_NMEDIT"
13707 fi
13708
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13711 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_prog_LIPO+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 if test -n "$LIPO"; then
13718 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13719 else
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13722 do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731 done
13732 done
13733 IFS=$as_save_IFS
13734
13735 fi
13736 fi
13737 LIPO=$ac_cv_prog_LIPO
13738 if test -n "$LIPO"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13740 $as_echo "$LIPO" >&6; }
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744 fi
13745
13746
13747 fi
13748 if test -z "$ac_cv_prog_LIPO"; then
13749 ac_ct_LIPO=$LIPO
13750 # Extract the first word of "lipo", so it can be a program name with args.
13751 set dummy lipo; ac_word=$2
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753 $as_echo_n "checking for $ac_word... " >&6; }
13754 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 if test -n "$ac_ct_LIPO"; then
13758 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13759 else
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13762 do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13767 ac_cv_prog_ac_ct_LIPO="lipo"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771 done
13772 done
13773 IFS=$as_save_IFS
13774
13775 fi
13776 fi
13777 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13778 if test -n "$ac_ct_LIPO"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13780 $as_echo "$ac_ct_LIPO" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13784 fi
13785
13786 if test "x$ac_ct_LIPO" = x; then
13787 LIPO=":"
13788 else
13789 case $cross_compiling:$ac_tool_warned in
13790 yes:)
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793 ac_tool_warned=yes ;;
13794 esac
13795 LIPO=$ac_ct_LIPO
13796 fi
13797 else
13798 LIPO="$ac_cv_prog_LIPO"
13799 fi
13800
13801 if test -n "$ac_tool_prefix"; then
13802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13803 set dummy ${ac_tool_prefix}otool; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_OTOOL+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$OTOOL"; then
13810 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 OTOOL=$ac_cv_prog_OTOOL
13830 if test -n "$OTOOL"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13832 $as_echo "$OTOOL" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838
13839 fi
13840 if test -z "$ac_cv_prog_OTOOL"; then
13841 ac_ct_OTOOL=$OTOOL
13842 # Extract the first word of "otool", so it can be a program name with args.
13843 set dummy otool; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 if test -n "$ac_ct_OTOOL"; then
13850 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13851 else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13854 do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13859 ac_cv_prog_ac_ct_OTOOL="otool"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13862 fi
13863 done
13864 done
13865 IFS=$as_save_IFS
13866
13867 fi
13868 fi
13869 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13870 if test -n "$ac_ct_OTOOL"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13872 $as_echo "$ac_ct_OTOOL" >&6; }
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13876 fi
13877
13878 if test "x$ac_ct_OTOOL" = x; then
13879 OTOOL=":"
13880 else
13881 case $cross_compiling:$ac_tool_warned in
13882 yes:)
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13885 ac_tool_warned=yes ;;
13886 esac
13887 OTOOL=$ac_ct_OTOOL
13888 fi
13889 else
13890 OTOOL="$ac_cv_prog_OTOOL"
13891 fi
13892
13893 if test -n "$ac_tool_prefix"; then
13894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13895 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13897 $as_echo_n "checking for $ac_word... " >&6; }
13898 if ${ac_cv_prog_OTOOL64+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 if test -n "$OTOOL64"; then
13902 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13903 else
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907 IFS=$as_save_IFS
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13911 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 break 2
13914 fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 fi
13920 fi
13921 OTOOL64=$ac_cv_prog_OTOOL64
13922 if test -n "$OTOOL64"; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13924 $as_echo "$OTOOL64" >&6; }
13925 else
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927 $as_echo "no" >&6; }
13928 fi
13929
13930
13931 fi
13932 if test -z "$ac_cv_prog_OTOOL64"; then
13933 ac_ct_OTOOL64=$OTOOL64
13934 # Extract the first word of "otool64", so it can be a program name with args.
13935 set dummy otool64; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 if test -n "$ac_ct_OTOOL64"; then
13942 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951 ac_cv_prog_ac_ct_OTOOL64="otool64"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13954 fi
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi
13960 fi
13961 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13962 if test -n "$ac_ct_OTOOL64"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13964 $as_echo "$ac_ct_OTOOL64" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13968 fi
13969
13970 if test "x$ac_ct_OTOOL64" = x; then
13971 OTOOL64=":"
13972 else
13973 case $cross_compiling:$ac_tool_warned in
13974 yes:)
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13977 ac_tool_warned=yes ;;
13978 esac
13979 OTOOL64=$ac_ct_OTOOL64
13980 fi
13981 else
13982 OTOOL64="$ac_cv_prog_OTOOL64"
13983 fi
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14012 $as_echo_n "checking for -single_module linker flag... " >&6; }
14013 if ${lt_cv_apple_cc_single_mod+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 lt_cv_apple_cc_single_mod=no
14017 if test -z "$LT_MULTI_MODULE"; then
14018 # By default we will add the -single_module flag. You can override
14019 # by either setting the environment variable LT_MULTI_MODULE
14020 # non-empty at configure time, or by adding -multi_module to the
14021 # link flags.
14022 rm -rf libconftest.dylib*
14023 echo "int foo(void){return 1;}" > conftest.c
14024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14025 -dynamiclib -Wl,-single_module conftest.c" >&5
14026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14027 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14028 _lt_result=$?
14029 # If there is a non-empty error log, and "single_module"
14030 # appears in it, assume the flag caused a linker warning
14031 if test -s conftest.err && $GREP single_module conftest.err; then
14032 cat conftest.err >&5
14033 # Otherwise, if the output was created with a 0 exit code from
14034 # the compiler, it worked.
14035 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14036 lt_cv_apple_cc_single_mod=yes
14037 else
14038 cat conftest.err >&5
14039 fi
14040 rm -rf libconftest.dylib*
14041 rm -f conftest.*
14042 fi
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14046
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14048 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14049 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 lt_cv_ld_exported_symbols_list=no
14053 save_LDFLAGS=$LDFLAGS
14054 echo "_main" > conftest.sym
14055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058
14059 int
14060 main ()
14061 {
14062
14063 ;
14064 return 0;
14065 }
14066 _ACEOF
14067 if ac_fn_c_try_link "$LINENO"; then :
14068 lt_cv_ld_exported_symbols_list=yes
14069 else
14070 lt_cv_ld_exported_symbols_list=no
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14074 LDFLAGS=$save_LDFLAGS
14075
14076 fi
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14078 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14079
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14081 $as_echo_n "checking for -force_load linker flag... " >&6; }
14082 if ${lt_cv_ld_force_load+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 lt_cv_ld_force_load=no
14086 cat > conftest.c << _LT_EOF
14087 int forced_loaded() { return 2;}
14088 _LT_EOF
14089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14091 echo "$AR cru libconftest.a conftest.o" >&5
14092 $AR cru libconftest.a conftest.o 2>&5
14093 echo "$RANLIB libconftest.a" >&5
14094 $RANLIB libconftest.a 2>&5
14095 cat > conftest.c << _LT_EOF
14096 int main() { return 0;}
14097 _LT_EOF
14098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14100 _lt_result=$?
14101 if test -s conftest.err && $GREP force_load conftest.err; then
14102 cat conftest.err >&5
14103 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14104 lt_cv_ld_force_load=yes
14105 else
14106 cat conftest.err >&5
14107 fi
14108 rm -f conftest.err libconftest.a conftest conftest.c
14109 rm -rf conftest.dSYM
14110
14111 fi
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14113 $as_echo "$lt_cv_ld_force_load" >&6; }
14114 case $host_os in
14115 rhapsody* | darwin1.[012])
14116 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14117 darwin1.*)
14118 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14119 darwin*) # darwin 5.x on
14120 # if running on 10.5 or later, the deployment target defaults
14121 # to the OS version, if on x86, and 10.4, the deployment
14122 # target defaults to 10.4. Don't you love it?
14123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14124 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14125 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14126 10.[012][,.]*)
14127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14128 10.*)
14129 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14130 esac
14131 ;;
14132 esac
14133 if test yes = "$lt_cv_apple_cc_single_mod"; then
14134 _lt_dar_single_mod='$single_module'
14135 fi
14136 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14137 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14138 else
14139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14140 fi
14141 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14142 _lt_dsymutil='~$DSYMUTIL $lib || :'
14143 else
14144 _lt_dsymutil=
14145 fi
14146 ;;
14147 esac
14148
14149 # func_munge_path_list VARIABLE PATH
14150 # -----------------------------------
14151 # VARIABLE is name of variable containing _space_ separated list of
14152 # directories to be munged by the contents of PATH, which is string
14153 # having a format:
14154 # "DIR[:DIR]:"
14155 # string "DIR[ DIR]" will be prepended to VARIABLE
14156 # ":DIR[:DIR]"
14157 # string "DIR[ DIR]" will be appended to VARIABLE
14158 # "DIRP[:DIRP]::[DIRA:]DIRA"
14159 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14160 # "DIRA[ DIRA]" will be appended to VARIABLE
14161 # "DIR[:DIR]"
14162 # VARIABLE will be replaced by "DIR[ DIR]"
14163 func_munge_path_list ()
14164 {
14165 case x$2 in
14166 x)
14167 ;;
14168 *:)
14169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14170 ;;
14171 x:*)
14172 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14173 ;;
14174 *::*)
14175 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14177 ;;
14178 *)
14179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14180 ;;
14181 esac
14182 }
14183
14184 for ac_header in dlfcn.h
14185 do :
14186 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14187 "
14188 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14189 cat >>confdefs.h <<_ACEOF
14190 #define HAVE_DLFCN_H 1
14191 _ACEOF
14192
14193 fi
14194
14195 done
14196
14197
14198
14199
14200
14201 # Set options
14202
14203
14204
14205 enable_dlopen=no
14206
14207
14208 enable_win32_dll=no
14209
14210
14211 # Check whether --enable-shared was given.
14212 if test "${enable_shared+set}" = set; then :
14213 enableval=$enable_shared; p=${PACKAGE-default}
14214 case $enableval in
14215 yes) enable_shared=yes ;;
14216 no) enable_shared=no ;;
14217 *)
14218 enable_shared=no
14219 # Look at the argument we got. We use all the common list separators.
14220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14221 for pkg in $enableval; do
14222 IFS=$lt_save_ifs
14223 if test "X$pkg" = "X$p"; then
14224 enable_shared=yes
14225 fi
14226 done
14227 IFS=$lt_save_ifs
14228 ;;
14229 esac
14230 else
14231 enable_shared=yes
14232 fi
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244 # Check whether --with-pic was given.
14245 if test "${with_pic+set}" = set; then :
14246 withval=$with_pic; lt_p=${PACKAGE-default}
14247 case $withval in
14248 yes|no) pic_mode=$withval ;;
14249 *)
14250 pic_mode=default
14251 # Look at the argument we got. We use all the common list separators.
14252 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14253 for lt_pkg in $withval; do
14254 IFS=$lt_save_ifs
14255 if test "X$lt_pkg" = "X$lt_p"; then
14256 pic_mode=yes
14257 fi
14258 done
14259 IFS=$lt_save_ifs
14260 ;;
14261 esac
14262 else
14263 pic_mode=default
14264 fi
14265
14266
14267
14268
14269
14270
14271
14272
14273 # Check whether --enable-fast-install was given.
14274 if test "${enable_fast_install+set}" = set; then :
14275 enableval=$enable_fast_install; p=${PACKAGE-default}
14276 case $enableval in
14277 yes) enable_fast_install=yes ;;
14278 no) enable_fast_install=no ;;
14279 *)
14280 enable_fast_install=no
14281 # Look at the argument we got. We use all the common list separators.
14282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14283 for pkg in $enableval; do
14284 IFS=$lt_save_ifs
14285 if test "X$pkg" = "X$p"; then
14286 enable_fast_install=yes
14287 fi
14288 done
14289 IFS=$lt_save_ifs
14290 ;;
14291 esac
14292 else
14293 enable_fast_install=yes
14294 fi
14295
14296
14297
14298
14299
14300
14301
14302
14303 shared_archive_member_spec=
14304 case $host,$enable_shared in
14305 power*-*-aix[5-9]*,yes)
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14307 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14308
14309 # Check whether --with-aix-soname was given.
14310 if test "${with_aix_soname+set}" = set; then :
14311 withval=$with_aix_soname; case $withval in
14312 aix|svr4|both)
14313 ;;
14314 *)
14315 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14316 ;;
14317 esac
14318 lt_cv_with_aix_soname=$with_aix_soname
14319 else
14320 if ${lt_cv_with_aix_soname+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 lt_cv_with_aix_soname=aix
14324 fi
14325
14326 with_aix_soname=$lt_cv_with_aix_soname
14327 fi
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14330 $as_echo "$with_aix_soname" >&6; }
14331 if test aix != "$with_aix_soname"; then
14332 # For the AIX way of multilib, we name the shared archive member
14333 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14334 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14335 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14336 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14337 if test 64 = "${OBJECT_MODE-32}"; then
14338 shared_archive_member_spec=shr_64
14339 else
14340 shared_archive_member_spec=shr
14341 fi
14342 fi
14343 ;;
14344 *)
14345 with_aix_soname=aix
14346 ;;
14347 esac
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358 # This can be used to rebuild libtool when needed
14359 LIBTOOL_DEPS=$ltmain
14360
14361 # Always use our own libtool.
14362 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 test -z "$LN_S" && LN_S="ln -s"
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408 if test -n "${ZSH_VERSION+set}"; then
14409 setopt NO_GLOB_SUBST
14410 fi
14411
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14413 $as_echo_n "checking for objdir... " >&6; }
14414 if ${lt_cv_objdir+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 rm -f .libs 2>/dev/null
14418 mkdir .libs 2>/dev/null
14419 if test -d .libs; then
14420 lt_cv_objdir=.libs
14421 else
14422 # MS-DOS does not allow filenames that begin with a dot.
14423 lt_cv_objdir=_libs
14424 fi
14425 rmdir .libs 2>/dev/null
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14428 $as_echo "$lt_cv_objdir" >&6; }
14429 objdir=$lt_cv_objdir
14430
14431
14432
14433
14434
14435 cat >>confdefs.h <<_ACEOF
14436 #define LT_OBJDIR "$lt_cv_objdir/"
14437 _ACEOF
14438
14439
14440
14441
14442 case $host_os in
14443 aix3*)
14444 # AIX sometimes has problems with the GCC collect2 program. For some
14445 # reason, if we set the COLLECT_NAMES environment variable, the problems
14446 # vanish in a puff of smoke.
14447 if test set != "${COLLECT_NAMES+set}"; then
14448 COLLECT_NAMES=
14449 export COLLECT_NAMES
14450 fi
14451 ;;
14452 esac
14453
14454 # Global variables:
14455 ofile=libtool
14456 can_build_shared=yes
14457
14458 # All known linkers require a '.a' archive for static linking (except MSVC,
14459 # which needs '.lib').
14460 libext=a
14461
14462 with_gnu_ld=$lt_cv_prog_gnu_ld
14463
14464 old_CC=$CC
14465 old_CFLAGS=$CFLAGS
14466
14467 # Set sane defaults for various variables
14468 test -z "$CC" && CC=cc
14469 test -z "$LTCC" && LTCC=$CC
14470 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14471 test -z "$LD" && LD=ld
14472 test -z "$ac_objext" && ac_objext=o
14473
14474 func_cc_basename $compiler
14475 cc_basename=$func_cc_basename_result
14476
14477
14478 # Only perform the check for file, if the check method requires it
14479 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14480 case $deplibs_check_method in
14481 file_magic*)
14482 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14484 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14485 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 case $MAGIC_CMD in
14489 [\\/*] | ?:[\\/]*)
14490 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14491 ;;
14492 *)
14493 lt_save_MAGIC_CMD=$MAGIC_CMD
14494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14496 for ac_dir in $ac_dummy; do
14497 IFS=$lt_save_ifs
14498 test -z "$ac_dir" && ac_dir=.
14499 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14500 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14501 if test -n "$file_magic_test_file"; then
14502 case $deplibs_check_method in
14503 "file_magic "*)
14504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14507 $EGREP "$file_magic_regex" > /dev/null; then
14508 :
14509 else
14510 cat <<_LT_EOF 1>&2
14511
14512 *** Warning: the command libtool uses to detect shared libraries,
14513 *** $file_magic_cmd, produces output that libtool cannot recognize.
14514 *** The result is that libtool may fail to recognize shared libraries
14515 *** as such. This will affect the creation of libtool libraries that
14516 *** depend on shared libraries, but programs linked with such libtool
14517 *** libraries will work regardless of this problem. Nevertheless, you
14518 *** may want to report the problem to your system manager and/or to
14519 *** bug-libtool (at] gnu.org
14520
14521 _LT_EOF
14522 fi ;;
14523 esac
14524 fi
14525 break
14526 fi
14527 done
14528 IFS=$lt_save_ifs
14529 MAGIC_CMD=$lt_save_MAGIC_CMD
14530 ;;
14531 esac
14532 fi
14533
14534 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14535 if test -n "$MAGIC_CMD"; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14537 $as_echo "$MAGIC_CMD" >&6; }
14538 else
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14541 fi
14542
14543
14544
14545
14546
14547 if test -z "$lt_cv_path_MAGIC_CMD"; then
14548 if test -n "$ac_tool_prefix"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14550 $as_echo_n "checking for file... " >&6; }
14551 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 case $MAGIC_CMD in
14555 [\\/*] | ?:[\\/]*)
14556 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14557 ;;
14558 *)
14559 lt_save_MAGIC_CMD=$MAGIC_CMD
14560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14562 for ac_dir in $ac_dummy; do
14563 IFS=$lt_save_ifs
14564 test -z "$ac_dir" && ac_dir=.
14565 if test -f "$ac_dir/file"; then
14566 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14567 if test -n "$file_magic_test_file"; then
14568 case $deplibs_check_method in
14569 "file_magic "*)
14570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14573 $EGREP "$file_magic_regex" > /dev/null; then
14574 :
14575 else
14576 cat <<_LT_EOF 1>&2
14577
14578 *** Warning: the command libtool uses to detect shared libraries,
14579 *** $file_magic_cmd, produces output that libtool cannot recognize.
14580 *** The result is that libtool may fail to recognize shared libraries
14581 *** as such. This will affect the creation of libtool libraries that
14582 *** depend on shared libraries, but programs linked with such libtool
14583 *** libraries will work regardless of this problem. Nevertheless, you
14584 *** may want to report the problem to your system manager and/or to
14585 *** bug-libtool (at] gnu.org
14586
14587 _LT_EOF
14588 fi ;;
14589 esac
14590 fi
14591 break
14592 fi
14593 done
14594 IFS=$lt_save_ifs
14595 MAGIC_CMD=$lt_save_MAGIC_CMD
14596 ;;
14597 esac
14598 fi
14599
14600 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14601 if test -n "$MAGIC_CMD"; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14603 $as_echo "$MAGIC_CMD" >&6; }
14604 else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14606 $as_echo "no" >&6; }
14607 fi
14608
14609
14610 else
14611 MAGIC_CMD=:
14612 fi
14613 fi
14614
14615 fi
14616 ;;
14617 esac
14618
14619 # Use C for the default configuration in the libtool script
14620
14621 lt_save_CC=$CC
14622 ac_ext=c
14623 ac_cpp='$CPP $CPPFLAGS'
14624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14627
14628
14629 # Source file extension for C test sources.
14630 ac_ext=c
14631
14632 # Object file extension for compiled C test sources.
14633 objext=o
14634 objext=$objext
14635
14636 # Code to be used in simple compile tests
14637 lt_simple_compile_test_code="int some_variable = 0;"
14638
14639 # Code to be used in simple link tests
14640 lt_simple_link_test_code='int main(){return(0);}'
14641
14642
14643
14644
14645
14646
14647
14648 # If no C compiler was specified, use CC.
14649 LTCC=${LTCC-"$CC"}
14650
14651 # If no C compiler flags were specified, use CFLAGS.
14652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14653
14654 # Allow CC to be a program name with arguments.
14655 compiler=$CC
14656
14657 # Save the default compiler, since it gets overwritten when the other
14658 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14659 compiler_DEFAULT=$CC
14660
14661 # save warnings/boilerplate of simple test code
14662 ac_outfile=conftest.$ac_objext
14663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14665 _lt_compiler_boilerplate=`cat conftest.err`
14666 $RM conftest*
14667
14668 ac_outfile=conftest.$ac_objext
14669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14671 _lt_linker_boilerplate=`cat conftest.err`
14672 $RM -r conftest*
14673
14674
14675 if test -n "$compiler"; then
14676
14677 lt_prog_compiler_no_builtin_flag=
14678
14679 if test yes = "$GCC"; then
14680 case $cc_basename in
14681 nvcc*)
14682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14683 *)
14684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14685 esac
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14688 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14689 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 lt_cv_prog_compiler_rtti_exceptions=no
14693 ac_outfile=conftest.$ac_objext
14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14696 # Insert the option either (1) after the last *FLAGS variable, or
14697 # (2) before a word containing "conftest.", or (3) at the end.
14698 # Note that $ac_compile itself does not contain backslashes and begins
14699 # with a dollar sign (not a hyphen), so the echo should work correctly.
14700 # The option is referenced via a variable to avoid confusing sed.
14701 lt_compile=`echo "$ac_compile" | $SED \
14702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14704 -e 's:$: $lt_compiler_flag:'`
14705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14706 (eval "$lt_compile" 2>conftest.err)
14707 ac_status=$?
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 if (exit $ac_status) && test -s "$ac_outfile"; then
14711 # The compiler can only warn and ignore the option if not recognized
14712 # So say no if there are warnings other than the usual output.
14713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14716 lt_cv_prog_compiler_rtti_exceptions=yes
14717 fi
14718 fi
14719 $RM conftest*
14720
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14723 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14724
14725 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14727 else
14728 :
14729 fi
14730
14731 fi
14732
14733
14734
14735
14736
14737
14738 lt_prog_compiler_wl=
14739 lt_prog_compiler_pic=
14740 lt_prog_compiler_static=
14741
14742
14743 if test yes = "$GCC"; then
14744 lt_prog_compiler_wl='-Wl,'
14745 lt_prog_compiler_static='-static'
14746
14747 case $host_os in
14748 aix*)
14749 # All AIX code is PIC.
14750 if test ia64 = "$host_cpu"; then
14751 # AIX 5 now supports IA64 processor
14752 lt_prog_compiler_static='-Bstatic'
14753 fi
14754 lt_prog_compiler_pic='-fPIC'
14755 ;;
14756
14757 amigaos*)
14758 case $host_cpu in
14759 powerpc)
14760 # see comment about AmigaOS4 .so support
14761 lt_prog_compiler_pic='-fPIC'
14762 ;;
14763 m68k)
14764 # FIXME: we need at least 68020 code to build shared libraries, but
14765 # adding the '-m68020' flag to GCC prevents building anything better,
14766 # like '-m68040'.
14767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14768 ;;
14769 esac
14770 ;;
14771
14772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14773 # PIC is the default for these OSes.
14774 ;;
14775
14776 mingw* | cygwin* | pw32* | os2* | cegcc*)
14777 # This hack is so that the source file can tell whether it is being
14778 # built for inclusion in a dll (and should export symbols for example).
14779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14780 # (--disable-auto-import) libraries
14781 lt_prog_compiler_pic='-DDLL_EXPORT'
14782 case $host_os in
14783 os2*)
14784 lt_prog_compiler_static='$wl-static'
14785 ;;
14786 esac
14787 ;;
14788
14789 darwin* | rhapsody*)
14790 # PIC is the default on this platform
14791 # Common symbols not allowed in MH_DYLIB files
14792 lt_prog_compiler_pic='-fno-common'
14793 ;;
14794
14795 haiku*)
14796 # PIC is the default for Haiku.
14797 # The "-static" flag exists, but is broken.
14798 lt_prog_compiler_static=
14799 ;;
14800
14801 hpux*)
14802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14804 # sets the default TLS model and affects inlining.
14805 case $host_cpu in
14806 hppa*64*)
14807 # +Z the default
14808 ;;
14809 *)
14810 lt_prog_compiler_pic='-fPIC'
14811 ;;
14812 esac
14813 ;;
14814
14815 interix[3-9]*)
14816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14817 # Instead, we relocate shared libraries at runtime.
14818 ;;
14819
14820 msdosdjgpp*)
14821 # Just because we use GCC doesn't mean we suddenly get shared libraries
14822 # on systems that don't support them.
14823 lt_prog_compiler_can_build_shared=no
14824 enable_shared=no
14825 ;;
14826
14827 *nto* | *qnx*)
14828 # QNX uses GNU C++, but need to define -shared option too, otherwise
14829 # it will coredump.
14830 lt_prog_compiler_pic='-fPIC -shared'
14831 ;;
14832
14833 sysv4*MP*)
14834 if test -d /usr/nec; then
14835 lt_prog_compiler_pic=-Kconform_pic
14836 fi
14837 ;;
14838
14839 *)
14840 lt_prog_compiler_pic='-fPIC'
14841 ;;
14842 esac
14843
14844 case $cc_basename in
14845 nvcc*) # Cuda Compiler Driver 2.2
14846 lt_prog_compiler_wl='-Xlinker '
14847 if test -n "$lt_prog_compiler_pic"; then
14848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14849 fi
14850 ;;
14851 esac
14852 else
14853 # PORTME Check for flag to pass linker flags through the system compiler.
14854 case $host_os in
14855 aix*)
14856 lt_prog_compiler_wl='-Wl,'
14857 if test ia64 = "$host_cpu"; then
14858 # AIX 5 now supports IA64 processor
14859 lt_prog_compiler_static='-Bstatic'
14860 else
14861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14862 fi
14863 ;;
14864
14865 darwin* | rhapsody*)
14866 # PIC is the default on this platform
14867 # Common symbols not allowed in MH_DYLIB files
14868 lt_prog_compiler_pic='-fno-common'
14869 case $cc_basename in
14870 nagfor*)
14871 # NAG Fortran compiler
14872 lt_prog_compiler_wl='-Wl,-Wl,,'
14873 lt_prog_compiler_pic='-PIC'
14874 lt_prog_compiler_static='-Bstatic'
14875 ;;
14876 esac
14877 ;;
14878
14879 mingw* | cygwin* | pw32* | os2* | cegcc*)
14880 # This hack is so that the source file can tell whether it is being
14881 # built for inclusion in a dll (and should export symbols for example).
14882 lt_prog_compiler_pic='-DDLL_EXPORT'
14883 case $host_os in
14884 os2*)
14885 lt_prog_compiler_static='$wl-static'
14886 ;;
14887 esac
14888 ;;
14889
14890 hpux9* | hpux10* | hpux11*)
14891 lt_prog_compiler_wl='-Wl,'
14892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14893 # not for PA HP-UX.
14894 case $host_cpu in
14895 hppa*64*|ia64*)
14896 # +Z the default
14897 ;;
14898 *)
14899 lt_prog_compiler_pic='+Z'
14900 ;;
14901 esac
14902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14903 lt_prog_compiler_static='$wl-a ${wl}archive'
14904 ;;
14905
14906 irix5* | irix6* | nonstopux*)
14907 lt_prog_compiler_wl='-Wl,'
14908 # PIC (with -KPIC) is the default.
14909 lt_prog_compiler_static='-non_shared'
14910 ;;
14911
14912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14913 case $cc_basename in
14914 # old Intel for x86_64, which still supported -KPIC.
14915 ecc*)
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_pic='-KPIC'
14918 lt_prog_compiler_static='-static'
14919 ;;
14920 # icc used to be incompatible with GCC.
14921 # ICC 10 doesn't accept -KPIC any more.
14922 icc* | ifort*)
14923 lt_prog_compiler_wl='-Wl,'
14924 lt_prog_compiler_pic='-fPIC'
14925 lt_prog_compiler_static='-static'
14926 ;;
14927 # Lahey Fortran 8.1.
14928 lf95*)
14929 lt_prog_compiler_wl='-Wl,'
14930 lt_prog_compiler_pic='--shared'
14931 lt_prog_compiler_static='--static'
14932 ;;
14933 nagfor*)
14934 # NAG Fortran compiler
14935 lt_prog_compiler_wl='-Wl,-Wl,,'
14936 lt_prog_compiler_pic='-PIC'
14937 lt_prog_compiler_static='-Bstatic'
14938 ;;
14939 tcc*)
14940 # Fabrice Bellard et al's Tiny C Compiler
14941 lt_prog_compiler_wl='-Wl,'
14942 lt_prog_compiler_pic='-fPIC'
14943 lt_prog_compiler_static='-static'
14944 ;;
14945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14946 # Portland Group compilers (*not* the Pentium gcc compiler,
14947 # which looks to be a dead project)
14948 lt_prog_compiler_wl='-Wl,'
14949 lt_prog_compiler_pic='-fpic'
14950 lt_prog_compiler_static='-Bstatic'
14951 ;;
14952 ccc*)
14953 lt_prog_compiler_wl='-Wl,'
14954 # All Alpha code is PIC.
14955 lt_prog_compiler_static='-non_shared'
14956 ;;
14957 xl* | bgxl* | bgf* | mpixl*)
14958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14959 lt_prog_compiler_wl='-Wl,'
14960 lt_prog_compiler_pic='-qpic'
14961 lt_prog_compiler_static='-qstaticlink'
14962 ;;
14963 *)
14964 case `$CC -V 2>&1 | sed 5q` in
14965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14966 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14967 lt_prog_compiler_pic='-KPIC'
14968 lt_prog_compiler_static='-Bstatic'
14969 lt_prog_compiler_wl=''
14970 ;;
14971 *Sun\ F* | *Sun*Fortran*)
14972 lt_prog_compiler_pic='-KPIC'
14973 lt_prog_compiler_static='-Bstatic'
14974 lt_prog_compiler_wl='-Qoption ld '
14975 ;;
14976 *Sun\ C*)
14977 # Sun C 5.9
14978 lt_prog_compiler_pic='-KPIC'
14979 lt_prog_compiler_static='-Bstatic'
14980 lt_prog_compiler_wl='-Wl,'
14981 ;;
14982 *Intel*\ [CF]*Compiler*)
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_pic='-fPIC'
14985 lt_prog_compiler_static='-static'
14986 ;;
14987 *Portland\ Group*)
14988 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-fpic'
14990 lt_prog_compiler_static='-Bstatic'
14991 ;;
14992 esac
14993 ;;
14994 esac
14995 ;;
14996
14997 newsos6)
14998 lt_prog_compiler_pic='-KPIC'
14999 lt_prog_compiler_static='-Bstatic'
15000 ;;
15001
15002 *nto* | *qnx*)
15003 # QNX uses GNU C++, but need to define -shared option too, otherwise
15004 # it will coredump.
15005 lt_prog_compiler_pic='-fPIC -shared'
15006 ;;
15007
15008 osf3* | osf4* | osf5*)
15009 lt_prog_compiler_wl='-Wl,'
15010 # All OSF/1 code is PIC.
15011 lt_prog_compiler_static='-non_shared'
15012 ;;
15013
15014 rdos*)
15015 lt_prog_compiler_static='-non_shared'
15016 ;;
15017
15018 solaris*)
15019 lt_prog_compiler_pic='-KPIC'
15020 lt_prog_compiler_static='-Bstatic'
15021 case $cc_basename in
15022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15023 lt_prog_compiler_wl='-Qoption ld ';;
15024 *)
15025 lt_prog_compiler_wl='-Wl,';;
15026 esac
15027 ;;
15028
15029 sunos4*)
15030 lt_prog_compiler_wl='-Qoption ld '
15031 lt_prog_compiler_pic='-PIC'
15032 lt_prog_compiler_static='-Bstatic'
15033 ;;
15034
15035 sysv4 | sysv4.2uw2* | sysv4.3*)
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_pic='-KPIC'
15038 lt_prog_compiler_static='-Bstatic'
15039 ;;
15040
15041 sysv4*MP*)
15042 if test -d /usr/nec; then
15043 lt_prog_compiler_pic='-Kconform_pic'
15044 lt_prog_compiler_static='-Bstatic'
15045 fi
15046 ;;
15047
15048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15049 lt_prog_compiler_wl='-Wl,'
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 ;;
15053
15054 unicos*)
15055 lt_prog_compiler_wl='-Wl,'
15056 lt_prog_compiler_can_build_shared=no
15057 ;;
15058
15059 uts4*)
15060 lt_prog_compiler_pic='-pic'
15061 lt_prog_compiler_static='-Bstatic'
15062 ;;
15063
15064 *)
15065 lt_prog_compiler_can_build_shared=no
15066 ;;
15067 esac
15068 fi
15069
15070 case $host_os in
15071 # For platforms that do not support PIC, -DPIC is meaningless:
15072 *djgpp*)
15073 lt_prog_compiler_pic=
15074 ;;
15075 *)
15076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15077 ;;
15078 esac
15079
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15082 if ${lt_cv_prog_compiler_pic+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15086 fi
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15088 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15089 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15090
15091 #
15092 # Check to make sure the PIC flag actually works.
15093 #
15094 if test -n "$lt_prog_compiler_pic"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15096 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15097 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 lt_cv_prog_compiler_pic_works=no
15101 ac_outfile=conftest.$ac_objext
15102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15104 # Insert the option either (1) after the last *FLAGS variable, or
15105 # (2) before a word containing "conftest.", or (3) at the end.
15106 # Note that $ac_compile itself does not contain backslashes and begins
15107 # with a dollar sign (not a hyphen), so the echo should work correctly.
15108 # The option is referenced via a variable to avoid confusing sed.
15109 lt_compile=`echo "$ac_compile" | $SED \
15110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15112 -e 's:$: $lt_compiler_flag:'`
15113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15114 (eval "$lt_compile" 2>conftest.err)
15115 ac_status=$?
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 if (exit $ac_status) && test -s "$ac_outfile"; then
15119 # The compiler can only warn and ignore the option if not recognized
15120 # So say no if there are warnings other than the usual output.
15121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15124 lt_cv_prog_compiler_pic_works=yes
15125 fi
15126 fi
15127 $RM conftest*
15128
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15132
15133 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15134 case $lt_prog_compiler_pic in
15135 "" | " "*) ;;
15136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15137 esac
15138 else
15139 lt_prog_compiler_pic=
15140 lt_prog_compiler_can_build_shared=no
15141 fi
15142
15143 fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155 #
15156 # Check to make sure the static flag actually works.
15157 #
15158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15161 if ${lt_cv_prog_compiler_static_works+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 lt_cv_prog_compiler_static_works=no
15165 save_LDFLAGS=$LDFLAGS
15166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15169 # The linker can only warn and ignore the option if not recognized
15170 # So say no if there are warnings
15171 if test -s conftest.err; then
15172 # Append any errors to the config.log.
15173 cat conftest.err 1>&5
15174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15176 if diff conftest.exp conftest.er2 >/dev/null; then
15177 lt_cv_prog_compiler_static_works=yes
15178 fi
15179 else
15180 lt_cv_prog_compiler_static_works=yes
15181 fi
15182 fi
15183 $RM -r conftest*
15184 LDFLAGS=$save_LDFLAGS
15185
15186 fi
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15189
15190 if test yes = "$lt_cv_prog_compiler_static_works"; then
15191 :
15192 else
15193 lt_prog_compiler_static=
15194 fi
15195
15196
15197
15198
15199
15200
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15204 if ${lt_cv_prog_compiler_c_o+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207 lt_cv_prog_compiler_c_o=no
15208 $RM -r conftest 2>/dev/null
15209 mkdir conftest
15210 cd conftest
15211 mkdir out
15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15213
15214 lt_compiler_flag="-o out/conftest2.$ac_objext"
15215 # Insert the option either (1) after the last *FLAGS variable, or
15216 # (2) before a word containing "conftest.", or (3) at the end.
15217 # Note that $ac_compile itself does not contain backslashes and begins
15218 # with a dollar sign (not a hyphen), so the echo should work correctly.
15219 lt_compile=`echo "$ac_compile" | $SED \
15220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15222 -e 's:$: $lt_compiler_flag:'`
15223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15224 (eval "$lt_compile" 2>out/conftest.err)
15225 ac_status=$?
15226 cat out/conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15229 then
15230 # The compiler can only warn and ignore the option if not recognized
15231 # So say no if there are warnings
15232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15235 lt_cv_prog_compiler_c_o=yes
15236 fi
15237 fi
15238 chmod u+w . 2>&5
15239 $RM conftest*
15240 # SGI C++ compiler will create directory out/ii_files/ for
15241 # template instantiation
15242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15243 $RM out/* && rmdir out
15244 cd ..
15245 $RM -r conftest
15246 $RM conftest*
15247
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15251
15252
15253
15254
15255
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if ${lt_cv_prog_compiler_c_o+:} false; then :
15260 $as_echo_n "(cached) " >&6
15261 else
15262 lt_cv_prog_compiler_c_o=no
15263 $RM -r conftest 2>/dev/null
15264 mkdir conftest
15265 cd conftest
15266 mkdir out
15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15268
15269 lt_compiler_flag="-o out/conftest2.$ac_objext"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 lt_compile=`echo "$ac_compile" | $SED \
15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277 -e 's:$: $lt_compiler_flag:'`
15278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15279 (eval "$lt_compile" 2>out/conftest.err)
15280 ac_status=$?
15281 cat out/conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15284 then
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings
15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_c_o=yes
15291 fi
15292 fi
15293 chmod u+w . 2>&5
15294 $RM conftest*
15295 # SGI C++ compiler will create directory out/ii_files/ for
15296 # template instantiation
15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298 $RM out/* && rmdir out
15299 cd ..
15300 $RM -r conftest
15301 $RM conftest*
15302
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15306
15307
15308
15309
15310 hard_links=nottested
15311 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15312 # do not overwrite the value of need_locks provided by the user
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15314 $as_echo_n "checking if we can lock with hard links... " >&6; }
15315 hard_links=yes
15316 $RM conftest*
15317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15318 touch conftest.a
15319 ln conftest.a conftest.b 2>&5 || hard_links=no
15320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15322 $as_echo "$hard_links" >&6; }
15323 if test no = "$hard_links"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15325 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15326 need_locks=warn
15327 fi
15328 else
15329 need_locks=no
15330 fi
15331
15332
15333
15334
15335
15336
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15339
15340 runpath_var=
15341 allow_undefined_flag=
15342 always_export_symbols=no
15343 archive_cmds=
15344 archive_expsym_cmds=
15345 compiler_needs_object=no
15346 enable_shared_with_static_runtimes=no
15347 export_dynamic_flag_spec=
15348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15349 hardcode_automatic=no
15350 hardcode_direct=no
15351 hardcode_direct_absolute=no
15352 hardcode_libdir_flag_spec=
15353 hardcode_libdir_separator=
15354 hardcode_minus_L=no
15355 hardcode_shlibpath_var=unsupported
15356 inherit_rpath=no
15357 link_all_deplibs=unknown
15358 module_cmds=
15359 module_expsym_cmds=
15360 old_archive_from_new_cmds=
15361 old_archive_from_expsyms_cmds=
15362 thread_safe_flag_spec=
15363 whole_archive_flag_spec=
15364 # include_expsyms should be a list of space-separated symbols to be *always*
15365 # included in the symbol list
15366 include_expsyms=
15367 # exclude_expsyms can be an extended regexp of symbols to exclude
15368 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15369 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15370 # as well as any symbol that contains 'd'.
15371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15373 # platforms (ab)use it in PIC code, but their linkers get confused if
15374 # the symbol is explicitly referenced. Since portable code cannot
15375 # rely on this symbol name, it's probably fine to never include it in
15376 # preloaded symbol tables.
15377 # Exclude shared library initialization/finalization symbols.
15378 extract_expsyms_cmds=
15379
15380 case $host_os in
15381 cygwin* | mingw* | pw32* | cegcc*)
15382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15383 # When not using gcc, we currently assume that we are using
15384 # Microsoft Visual C++.
15385 if test yes != "$GCC"; then
15386 with_gnu_ld=no
15387 fi
15388 ;;
15389 interix*)
15390 # we just hope/assume this is gcc and not c89 (= MSVC++)
15391 with_gnu_ld=yes
15392 ;;
15393 openbsd* | bitrig*)
15394 with_gnu_ld=no
15395 ;;
15396 esac
15397
15398 ld_shlibs=yes
15399
15400 # On some targets, GNU ld is compatible enough with the native linker
15401 # that we're better off using the native interface for both.
15402 lt_use_gnu_ld_interface=no
15403 if test yes = "$with_gnu_ld"; then
15404 case $host_os in
15405 aix*)
15406 # The AIX port of GNU ld has always aspired to compatibility
15407 # with the native linker. However, as the warning in the GNU ld
15408 # block says, versions before 2.19.5* couldn't really create working
15409 # shared libraries, regardless of the interface used.
15410 case `$LD -v 2>&1` in
15411 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15412 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15413 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15414 *)
15415 lt_use_gnu_ld_interface=yes
15416 ;;
15417 esac
15418 ;;
15419 *)
15420 lt_use_gnu_ld_interface=yes
15421 ;;
15422 esac
15423 fi
15424
15425 if test yes = "$lt_use_gnu_ld_interface"; then
15426 # If archive_cmds runs LD, not CC, wlarc should be empty
15427 wlarc='$wl'
15428
15429 # Set some defaults for GNU ld with shared library support. These
15430 # are reset later if shared libraries are not supported. Putting them
15431 # here allows them to be overridden if necessary.
15432 runpath_var=LD_RUN_PATH
15433 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15434 export_dynamic_flag_spec='$wl--export-dynamic'
15435 # ancient GNU ld didn't support --whole-archive et. al.
15436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15437 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15438 else
15439 whole_archive_flag_spec=
15440 fi
15441 supports_anon_versioning=no
15442 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15443 *GNU\ gold*) supports_anon_versioning=yes ;;
15444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15447 *\ 2.11.*) ;; # other 2.11 versions
15448 *) supports_anon_versioning=yes ;;
15449 esac
15450
15451 # See if GNU ld supports shared libraries.
15452 case $host_os in
15453 aix[3-9]*)
15454 # On AIX/PPC, the GNU linker is very broken
15455 if test ia64 != "$host_cpu"; then
15456 ld_shlibs=no
15457 cat <<_LT_EOF 1>&2
15458
15459 *** Warning: the GNU linker, at least up to release 2.19, is reported
15460 *** to be unable to reliably create shared libraries on AIX.
15461 *** Therefore, libtool is disabling shared libraries support. If you
15462 *** really care for shared libraries, you may want to install binutils
15463 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15464 *** You will then need to restart the configuration process.
15465
15466 _LT_EOF
15467 fi
15468 ;;
15469
15470 amigaos*)
15471 case $host_cpu in
15472 powerpc)
15473 # see comment about AmigaOS4 .so support
15474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15475 archive_expsym_cmds=''
15476 ;;
15477 m68k)
15478 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)'
15479 hardcode_libdir_flag_spec='-L$libdir'
15480 hardcode_minus_L=yes
15481 ;;
15482 esac
15483 ;;
15484
15485 beos*)
15486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15487 allow_undefined_flag=unsupported
15488 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15489 # support --undefined. This deserves some investigation. FIXME
15490 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15491 else
15492 ld_shlibs=no
15493 fi
15494 ;;
15495
15496 cygwin* | mingw* | pw32* | cegcc*)
15497 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15498 # as there is no search path for DLLs.
15499 hardcode_libdir_flag_spec='-L$libdir'
15500 export_dynamic_flag_spec='$wl--export-all-symbols'
15501 allow_undefined_flag=unsupported
15502 always_export_symbols=no
15503 enable_shared_with_static_runtimes=yes
15504 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'
15505 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15506
15507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15509 # If the export-symbols file already is a .def file, use it as
15510 # is; otherwise, prepend EXPORTS...
15511 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15512 cp $export_symbols $output_objdir/$soname.def;
15513 else
15514 echo EXPORTS > $output_objdir/$soname.def;
15515 cat $export_symbols >> $output_objdir/$soname.def;
15516 fi~
15517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15518 else
15519 ld_shlibs=no
15520 fi
15521 ;;
15522
15523 haiku*)
15524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15525 link_all_deplibs=yes
15526 ;;
15527
15528 os2*)
15529 hardcode_libdir_flag_spec='-L$libdir'
15530 hardcode_minus_L=yes
15531 allow_undefined_flag=unsupported
15532 shrext_cmds=.dll
15533 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15534 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15535 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15536 $ECHO EXPORTS >> $output_objdir/$libname.def~
15537 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15539 emximp -o $lib $output_objdir/$libname.def'
15540 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15543 $ECHO EXPORTS >> $output_objdir/$libname.def~
15544 prefix_cmds="$SED"~
15545 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15546 prefix_cmds="$prefix_cmds -e 1d";
15547 fi~
15548 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15549 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15551 emximp -o $lib $output_objdir/$libname.def'
15552 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15553 enable_shared_with_static_runtimes=yes
15554 ;;
15555
15556 interix[3-9]*)
15557 hardcode_direct=no
15558 hardcode_shlibpath_var=no
15559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15560 export_dynamic_flag_spec='$wl-E'
15561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15562 # Instead, shared libraries are loaded at an image base (0x10000000 by
15563 # default) and relocated if they conflict, which is a slow very memory
15564 # consuming and fragmenting process. To avoid this, we pick a random,
15565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15568 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'
15569 ;;
15570
15571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15572 tmp_diet=no
15573 if test linux-dietlibc = "$host_os"; then
15574 case $cc_basename in
15575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15576 esac
15577 fi
15578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15579 && test no = "$tmp_diet"
15580 then
15581 tmp_addflag=' $pic_flag'
15582 tmp_sharedflag='-shared'
15583 case $cc_basename,$host_cpu in
15584 pgcc*) # Portland Group C compiler
15585 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'
15586 tmp_addflag=' $pic_flag'
15587 ;;
15588 pgf77* | pgf90* | pgf95* | pgfortran*)
15589 # Portland Group f77 and f90 compilers
15590 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'
15591 tmp_addflag=' $pic_flag -Mnomain' ;;
15592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15593 tmp_addflag=' -i_dynamic' ;;
15594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15595 tmp_addflag=' -i_dynamic -nofor_main' ;;
15596 ifc* | ifort*) # Intel Fortran compiler
15597 tmp_addflag=' -nofor_main' ;;
15598 lf95*) # Lahey Fortran 8.1
15599 whole_archive_flag_spec=
15600 tmp_sharedflag='--shared' ;;
15601 nagfor*) # NAGFOR 5.3
15602 tmp_sharedflag='-Wl,-shared' ;;
15603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15604 tmp_sharedflag='-qmkshrobj'
15605 tmp_addflag= ;;
15606 nvcc*) # Cuda Compiler Driver 2.2
15607 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'
15608 compiler_needs_object=yes
15609 ;;
15610 esac
15611 case `$CC -V 2>&1 | sed 5q` in
15612 *Sun\ C*) # Sun C 5.9
15613 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'
15614 compiler_needs_object=yes
15615 tmp_sharedflag='-G' ;;
15616 *Sun\ F*) # Sun Fortran 8.3
15617 tmp_sharedflag='-G' ;;
15618 esac
15619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15620
15621 if test yes = "$supports_anon_versioning"; then
15622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15624 echo "local: *; };" >> $output_objdir/$libname.ver~
15625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15626 fi
15627
15628 case $cc_basename in
15629 tcc*)
15630 export_dynamic_flag_spec='-rdynamic'
15631 ;;
15632 xlf* | bgf* | bgxlf* | mpixlf*)
15633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15637 if test yes = "$supports_anon_versioning"; then
15638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15640 echo "local: *; };" >> $output_objdir/$libname.ver~
15641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15642 fi
15643 ;;
15644 esac
15645 else
15646 ld_shlibs=no
15647 fi
15648 ;;
15649
15650 netbsd*)
15651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15653 wlarc=
15654 else
15655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15657 fi
15658 ;;
15659
15660 solaris*)
15661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15662 ld_shlibs=no
15663 cat <<_LT_EOF 1>&2
15664
15665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15666 *** create shared libraries on Solaris systems. Therefore, libtool
15667 *** is disabling shared libraries support. We urge you to upgrade GNU
15668 *** binutils to release 2.9.1 or newer. Another option is to modify
15669 *** your PATH or compiler configuration so that the native linker is
15670 *** used, and then restart.
15671
15672 _LT_EOF
15673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15676 else
15677 ld_shlibs=no
15678 fi
15679 ;;
15680
15681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15682 case `$LD -v 2>&1` in
15683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15684 ld_shlibs=no
15685 cat <<_LT_EOF 1>&2
15686
15687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15688 *** reliably create shared libraries on SCO systems. Therefore, libtool
15689 *** is disabling shared libraries support. We urge you to upgrade GNU
15690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15691 *** your PATH or compiler configuration so that the native linker is
15692 *** used, and then restart.
15693
15694 _LT_EOF
15695 ;;
15696 *)
15697 # For security reasons, it is highly recommended that you always
15698 # use absolute paths for naming shared libraries, and exclude the
15699 # DT_RUNPATH tag from executables and libraries. But doing so
15700 # requires that you compile everything twice, which is a pain.
15701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15705 else
15706 ld_shlibs=no
15707 fi
15708 ;;
15709 esac
15710 ;;
15711
15712 sunos4*)
15713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15714 wlarc=
15715 hardcode_direct=yes
15716 hardcode_shlibpath_var=no
15717 ;;
15718
15719 *)
15720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15723 else
15724 ld_shlibs=no
15725 fi
15726 ;;
15727 esac
15728
15729 if test no = "$ld_shlibs"; then
15730 runpath_var=
15731 hardcode_libdir_flag_spec=
15732 export_dynamic_flag_spec=
15733 whole_archive_flag_spec=
15734 fi
15735 else
15736 # PORTME fill in a description of your system's linker (not GNU ld)
15737 case $host_os in
15738 aix3*)
15739 allow_undefined_flag=unsupported
15740 always_export_symbols=yes
15741 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'
15742 # Note: this linker hardcodes the directories in LIBPATH if there
15743 # are no directories specified by -L.
15744 hardcode_minus_L=yes
15745 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15746 # Neither direct hardcoding nor static linking is supported with a
15747 # broken collect2.
15748 hardcode_direct=unsupported
15749 fi
15750 ;;
15751
15752 aix[4-9]*)
15753 if test ia64 = "$host_cpu"; then
15754 # On IA64, the linker does run time linking by default, so we don't
15755 # have to do anything special.
15756 aix_use_runtimelinking=no
15757 exp_sym_flag='-Bexport'
15758 no_entry_flag=
15759 else
15760 # If we're using GNU nm, then we don't want the "-C" option.
15761 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15762 # Without the "-l" option, or with the "-B" option, AIX nm treats
15763 # weak defined symbols like other global defined symbols, whereas
15764 # GNU nm marks them as "W".
15765 # While the 'weak' keyword is ignored in the Export File, we need
15766 # it in the Import File for the 'aix-soname' feature, so we have
15767 # to replace the "-B" option with "-P" for AIX nm.
15768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15769 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'
15770 else
15771 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'
15772 fi
15773 aix_use_runtimelinking=no
15774
15775 # Test if we are trying to use run time linking or normal
15776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15777 # have runtime linking enabled, and use it for executables.
15778 # For shared libraries, we enable/disable runtime linking
15779 # depending on the kind of the shared library created -
15780 # when "with_aix_soname,aix_use_runtimelinking" is:
15781 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15782 # "aix,yes" lib.so shared, rtl:yes, for executables
15783 # lib.a static archive
15784 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15785 # lib.a(lib.so.V) shared, rtl:no, for executables
15786 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15787 # lib.a(lib.so.V) shared, rtl:no
15788 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15789 # lib.a static archive
15790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15791 for ld_flag in $LDFLAGS; do
15792 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15793 aix_use_runtimelinking=yes
15794 break
15795 fi
15796 done
15797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15798 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15799 # so we don't have lib.a shared libs to link our executables.
15800 # We have to force runtime linking in this case.
15801 aix_use_runtimelinking=yes
15802 LDFLAGS="$LDFLAGS -Wl,-brtl"
15803 fi
15804 ;;
15805 esac
15806
15807 exp_sym_flag='-bexport'
15808 no_entry_flag='-bnoentry'
15809 fi
15810
15811 # When large executables or shared objects are built, AIX ld can
15812 # have problems creating the table of contents. If linking a library
15813 # or program results in "error TOC overflow" add -mminimal-toc to
15814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15816
15817 archive_cmds=''
15818 hardcode_direct=yes
15819 hardcode_direct_absolute=yes
15820 hardcode_libdir_separator=':'
15821 link_all_deplibs=yes
15822 file_list_spec='$wl-f,'
15823 case $with_aix_soname,$aix_use_runtimelinking in
15824 aix,*) ;; # traditional, no import file
15825 svr4,* | *,yes) # use import file
15826 # The Import File defines what to hardcode.
15827 hardcode_direct=no
15828 hardcode_direct_absolute=no
15829 ;;
15830 esac
15831
15832 if test yes = "$GCC"; then
15833 case $host_os in aix4.[012]|aix4.[012].*)
15834 # We only want to do this on AIX 4.2 and lower, the check
15835 # below for broken collect2 doesn't work under 4.3+
15836 collect2name=`$CC -print-prog-name=collect2`
15837 if test -f "$collect2name" &&
15838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15839 then
15840 # We have reworked collect2
15841 :
15842 else
15843 # We have old collect2
15844 hardcode_direct=unsupported
15845 # It fails to find uninstalled libraries when the uninstalled
15846 # path is not listed in the libpath. Setting hardcode_minus_L
15847 # to unsupported forces relinking
15848 hardcode_minus_L=yes
15849 hardcode_libdir_flag_spec='-L$libdir'
15850 hardcode_libdir_separator=
15851 fi
15852 ;;
15853 esac
15854 shared_flag='-shared'
15855 if test yes = "$aix_use_runtimelinking"; then
15856 shared_flag="$shared_flag "'$wl-G'
15857 fi
15858 # Need to ensure runtime linking is disabled for the traditional
15859 # shared library, or the linker may eventually find shared libraries
15860 # /with/ Import File - we do not want to mix them.
15861 shared_flag_aix='-shared'
15862 shared_flag_svr4='-shared $wl-G'
15863 else
15864 # not using gcc
15865 if test ia64 = "$host_cpu"; then
15866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867 # chokes on -Wl,-G. The following line is correct:
15868 shared_flag='-G'
15869 else
15870 if test yes = "$aix_use_runtimelinking"; then
15871 shared_flag='$wl-G'
15872 else
15873 shared_flag='$wl-bM:SRE'
15874 fi
15875 shared_flag_aix='$wl-bM:SRE'
15876 shared_flag_svr4='$wl-G'
15877 fi
15878 fi
15879
15880 export_dynamic_flag_spec='$wl-bexpall'
15881 # It seems that -bexpall does not export symbols beginning with
15882 # underscore (_), so it is better to generate a list of symbols to export.
15883 always_export_symbols=yes
15884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15885 # Warning - without using the other runtime loading flags (-brtl),
15886 # -berok will link without error, but may produce a broken library.
15887 allow_undefined_flag='-berok'
15888 # Determine the default libpath from the value encoded in an
15889 # empty executable.
15890 if test set = "${lt_cv_aix_libpath+set}"; then
15891 aix_libpath=$lt_cv_aix_libpath
15892 else
15893 if ${lt_cv_aix_libpath_+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898
15899 int
15900 main ()
15901 {
15902
15903 ;
15904 return 0;
15905 }
15906 _ACEOF
15907 if ac_fn_c_try_link "$LINENO"; then :
15908
15909 lt_aix_libpath_sed='
15910 /Import File Strings/,/^$/ {
15911 /^0/ {
15912 s/^0 *\([^ ]*\) *$/\1/
15913 p
15914 }
15915 }'
15916 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15917 # Check for a 64-bit object if we didn't find anything.
15918 if test -z "$lt_cv_aix_libpath_"; then
15919 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15920 fi
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 if test -z "$lt_cv_aix_libpath_"; then
15925 lt_cv_aix_libpath_=/usr/lib:/lib
15926 fi
15927
15928 fi
15929
15930 aix_libpath=$lt_cv_aix_libpath_
15931 fi
15932
15933 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15934 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
15935 else
15936 if test ia64 = "$host_cpu"; then
15937 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15938 allow_undefined_flag="-z nodefs"
15939 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"
15940 else
15941 # Determine the default libpath from the value encoded in an
15942 # empty executable.
15943 if test set = "${lt_cv_aix_libpath+set}"; then
15944 aix_libpath=$lt_cv_aix_libpath
15945 else
15946 if ${lt_cv_aix_libpath_+:} false; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951
15952 int
15953 main ()
15954 {
15955
15956 ;
15957 return 0;
15958 }
15959 _ACEOF
15960 if ac_fn_c_try_link "$LINENO"; then :
15961
15962 lt_aix_libpath_sed='
15963 /Import File Strings/,/^$/ {
15964 /^0/ {
15965 s/^0 *\([^ ]*\) *$/\1/
15966 p
15967 }
15968 }'
15969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15970 # Check for a 64-bit object if we didn't find anything.
15971 if test -z "$lt_cv_aix_libpath_"; then
15972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15973 fi
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 if test -z "$lt_cv_aix_libpath_"; then
15978 lt_cv_aix_libpath_=/usr/lib:/lib
15979 fi
15980
15981 fi
15982
15983 aix_libpath=$lt_cv_aix_libpath_
15984 fi
15985
15986 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15987 # Warning - without using the other run time loading flags,
15988 # -berok will link without error, but may produce a broken library.
15989 no_undefined_flag=' $wl-bernotok'
15990 allow_undefined_flag=' $wl-berok'
15991 if test yes = "$with_gnu_ld"; then
15992 # We only use this code for GNU lds that support --whole-archive.
15993 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15994 else
15995 # Exported symbols can be pulled into shared objects from archives
15996 whole_archive_flag_spec='$convenience'
15997 fi
15998 archive_cmds_need_lc=yes
15999 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16000 # -brtl affects multiple linker settings, -berok does not and is overridden later
16001 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16002 if test svr4 != "$with_aix_soname"; then
16003 # This is similar to how AIX traditionally builds its shared libraries.
16004 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'
16005 fi
16006 if test aix != "$with_aix_soname"; then
16007 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'
16008 else
16009 # used by -dlpreopen to get the symbols
16010 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16011 fi
16012 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16013 fi
16014 fi
16015 ;;
16016
16017 amigaos*)
16018 case $host_cpu in
16019 powerpc)
16020 # see comment about AmigaOS4 .so support
16021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16022 archive_expsym_cmds=''
16023 ;;
16024 m68k)
16025 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)'
16026 hardcode_libdir_flag_spec='-L$libdir'
16027 hardcode_minus_L=yes
16028 ;;
16029 esac
16030 ;;
16031
16032 bsdi[45]*)
16033 export_dynamic_flag_spec=-rdynamic
16034 ;;
16035
16036 cygwin* | mingw* | pw32* | cegcc*)
16037 # When not using gcc, we currently assume that we are using
16038 # Microsoft Visual C++.
16039 # hardcode_libdir_flag_spec is actually meaningless, as there is
16040 # no search path for DLLs.
16041 case $cc_basename in
16042 cl*)
16043 # Native MSVC
16044 hardcode_libdir_flag_spec=' '
16045 allow_undefined_flag=unsupported
16046 always_export_symbols=yes
16047 file_list_spec='@'
16048 # Tell ltmain to make .lib files, not .a files.
16049 libext=lib
16050 # Tell ltmain to make .dll files, not .so files.
16051 shrext_cmds=.dll
16052 # FIXME: Setting linknames here is a bad hack.
16053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16054 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16055 cp "$export_symbols" "$output_objdir/$soname.def";
16056 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16057 else
16058 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16059 fi~
16060 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16061 linknames='
16062 # The linker will not automatically build a static lib if we build a DLL.
16063 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16064 enable_shared_with_static_runtimes=yes
16065 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16067 # Don't use ranlib
16068 old_postinstall_cmds='chmod 644 $oldlib'
16069 postlink_cmds='lt_outputfile="@OUTPUT@"~
16070 lt_tool_outputfile="@TOOL_OUTPUT@"~
16071 case $lt_outputfile in
16072 *.exe|*.EXE) ;;
16073 *)
16074 lt_outputfile=$lt_outputfile.exe
16075 lt_tool_outputfile=$lt_tool_outputfile.exe
16076 ;;
16077 esac~
16078 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16079 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16080 $RM "$lt_outputfile.manifest";
16081 fi'
16082 ;;
16083 *)
16084 # Assume MSVC wrapper
16085 hardcode_libdir_flag_spec=' '
16086 allow_undefined_flag=unsupported
16087 # Tell ltmain to make .lib files, not .a files.
16088 libext=lib
16089 # Tell ltmain to make .dll files, not .so files.
16090 shrext_cmds=.dll
16091 # FIXME: Setting linknames here is a bad hack.
16092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16093 # The linker will automatically build a .lib file if we build a DLL.
16094 old_archive_from_new_cmds='true'
16095 # FIXME: Should let the user specify the lib program.
16096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16097 enable_shared_with_static_runtimes=yes
16098 ;;
16099 esac
16100 ;;
16101
16102 darwin* | rhapsody*)
16103
16104
16105 archive_cmds_need_lc=no
16106 hardcode_direct=no
16107 hardcode_automatic=yes
16108 hardcode_shlibpath_var=unsupported
16109 if test yes = "$lt_cv_ld_force_load"; then
16110 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\"`'
16111
16112 else
16113 whole_archive_flag_spec=''
16114 fi
16115 link_all_deplibs=yes
16116 allow_undefined_flag=$_lt_dar_allow_undefined
16117 case $cc_basename in
16118 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16119 *) _lt_dar_can_shared=$GCC ;;
16120 esac
16121 if test yes = "$_lt_dar_can_shared"; then
16122 output_verbose_link_cmd=func_echo_all
16123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16125 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"
16126 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"
16127
16128 else
16129 ld_shlibs=no
16130 fi
16131
16132 ;;
16133
16134 dgux*)
16135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_libdir_flag_spec='-L$libdir'
16137 hardcode_shlibpath_var=no
16138 ;;
16139
16140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16141 # support. Future versions do this automatically, but an explicit c++rt0.o
16142 # does not break anything, and helps significantly (at the cost of a little
16143 # extra space).
16144 freebsd2.2*)
16145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16146 hardcode_libdir_flag_spec='-R$libdir'
16147 hardcode_direct=yes
16148 hardcode_shlibpath_var=no
16149 ;;
16150
16151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16152 freebsd2.*)
16153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_direct=yes
16155 hardcode_minus_L=yes
16156 hardcode_shlibpath_var=no
16157 ;;
16158
16159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16160 freebsd* | dragonfly*)
16161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16162 hardcode_libdir_flag_spec='-R$libdir'
16163 hardcode_direct=yes
16164 hardcode_shlibpath_var=no
16165 ;;
16166
16167 hpux9*)
16168 if test yes = "$GCC"; then
16169 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'
16170 else
16171 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'
16172 fi
16173 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16174 hardcode_libdir_separator=:
16175 hardcode_direct=yes
16176
16177 # hardcode_minus_L: Not really in the search PATH,
16178 # but as the default location of the library.
16179 hardcode_minus_L=yes
16180 export_dynamic_flag_spec='$wl-E'
16181 ;;
16182
16183 hpux10*)
16184 if test yes,no = "$GCC,$with_gnu_ld"; then
16185 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16186 else
16187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16188 fi
16189 if test no = "$with_gnu_ld"; then
16190 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16191 hardcode_libdir_separator=:
16192 hardcode_direct=yes
16193 hardcode_direct_absolute=yes
16194 export_dynamic_flag_spec='$wl-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L=yes
16198 fi
16199 ;;
16200
16201 hpux11*)
16202 if test yes,no = "$GCC,$with_gnu_ld"; then
16203 case $host_cpu in
16204 hppa*64*)
16205 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 ;;
16207 ia64*)
16208 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16209 ;;
16210 *)
16211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16212 ;;
16213 esac
16214 else
16215 case $host_cpu in
16216 hppa*64*)
16217 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 ;;
16219 ia64*)
16220 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 *)
16223
16224 # Older versions of the 11.00 compiler do not understand -b yet
16225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16227 $as_echo_n "checking if $CC understands -b... " >&6; }
16228 if ${lt_cv_prog_compiler__b+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 lt_cv_prog_compiler__b=no
16232 save_LDFLAGS=$LDFLAGS
16233 LDFLAGS="$LDFLAGS -b"
16234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16236 # The linker can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test -s conftest.err; then
16239 # Append any errors to the config.log.
16240 cat conftest.err 1>&5
16241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16243 if diff conftest.exp conftest.er2 >/dev/null; then
16244 lt_cv_prog_compiler__b=yes
16245 fi
16246 else
16247 lt_cv_prog_compiler__b=yes
16248 fi
16249 fi
16250 $RM -r conftest*
16251 LDFLAGS=$save_LDFLAGS
16252
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16256
16257 if test yes = "$lt_cv_prog_compiler__b"; then
16258 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16259 else
16260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16261 fi
16262
16263 ;;
16264 esac
16265 fi
16266 if test no = "$with_gnu_ld"; then
16267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16268 hardcode_libdir_separator=:
16269
16270 case $host_cpu in
16271 hppa*64*|ia64*)
16272 hardcode_direct=no
16273 hardcode_shlibpath_var=no
16274 ;;
16275 *)
16276 hardcode_direct=yes
16277 hardcode_direct_absolute=yes
16278 export_dynamic_flag_spec='$wl-E'
16279
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L=yes
16283 ;;
16284 esac
16285 fi
16286 ;;
16287
16288 irix5* | irix6* | nonstopux*)
16289 if test yes = "$GCC"; then
16290 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'
16291 # Try to use the -exported_symbol ld option, if it does not
16292 # work, assume that -exports_file does not work either and
16293 # implicitly export all symbols.
16294 # This should be the same for all languages, so no per-tag cache variable.
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16296 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16297 if ${lt_cv_irix_exported_symbol+:} false; then :
16298 $as_echo_n "(cached) " >&6
16299 else
16300 save_LDFLAGS=$LDFLAGS
16301 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 int foo (void) { return 0; }
16305 _ACEOF
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 lt_cv_irix_exported_symbol=yes
16308 else
16309 lt_cv_irix_exported_symbol=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LDFLAGS=$save_LDFLAGS
16314 fi
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16316 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16317 if test yes = "$lt_cv_irix_exported_symbol"; then
16318 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'
16319 fi
16320 else
16321 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'
16322 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'
16323 fi
16324 archive_cmds_need_lc='no'
16325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16326 hardcode_libdir_separator=:
16327 inherit_rpath=yes
16328 link_all_deplibs=yes
16329 ;;
16330
16331 linux*)
16332 case $cc_basename in
16333 tcc*)
16334 # Fabrice Bellard et al's Tiny C Compiler
16335 ld_shlibs=yes
16336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16337 ;;
16338 esac
16339 ;;
16340
16341 netbsd*)
16342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16344 else
16345 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16346 fi
16347 hardcode_libdir_flag_spec='-R$libdir'
16348 hardcode_direct=yes
16349 hardcode_shlibpath_var=no
16350 ;;
16351
16352 newsos6)
16353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_direct=yes
16355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16356 hardcode_libdir_separator=:
16357 hardcode_shlibpath_var=no
16358 ;;
16359
16360 *nto* | *qnx*)
16361 ;;
16362
16363 openbsd* | bitrig*)
16364 if test -f /usr/libexec/ld.so; then
16365 hardcode_direct=yes
16366 hardcode_shlibpath_var=no
16367 hardcode_direct_absolute=yes
16368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16370 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16372 export_dynamic_flag_spec='$wl-E'
16373 else
16374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16375 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16376 fi
16377 else
16378 ld_shlibs=no
16379 fi
16380 ;;
16381
16382 os2*)
16383 hardcode_libdir_flag_spec='-L$libdir'
16384 hardcode_minus_L=yes
16385 allow_undefined_flag=unsupported
16386 shrext_cmds=.dll
16387 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16388 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16389 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16390 $ECHO EXPORTS >> $output_objdir/$libname.def~
16391 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16392 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16393 emximp -o $lib $output_objdir/$libname.def'
16394 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16397 $ECHO EXPORTS >> $output_objdir/$libname.def~
16398 prefix_cmds="$SED"~
16399 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16400 prefix_cmds="$prefix_cmds -e 1d";
16401 fi~
16402 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16403 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16404 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16405 emximp -o $lib $output_objdir/$libname.def'
16406 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16407 enable_shared_with_static_runtimes=yes
16408 ;;
16409
16410 osf3*)
16411 if test yes = "$GCC"; then
16412 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16413 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'
16414 else
16415 allow_undefined_flag=' -expect_unresolved \*'
16416 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'
16417 fi
16418 archive_cmds_need_lc='no'
16419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16420 hardcode_libdir_separator=:
16421 ;;
16422
16423 osf4* | osf5*) # as osf3* with the addition of -msym flag
16424 if test yes = "$GCC"; then
16425 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16426 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'
16427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16428 else
16429 allow_undefined_flag=' -expect_unresolved \*'
16430 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'
16431 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~
16432 $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'
16433
16434 # Both c and cxx compiler support -rpath directly
16435 hardcode_libdir_flag_spec='-rpath $libdir'
16436 fi
16437 archive_cmds_need_lc='no'
16438 hardcode_libdir_separator=:
16439 ;;
16440
16441 solaris*)
16442 no_undefined_flag=' -z defs'
16443 if test yes = "$GCC"; then
16444 wlarc='$wl'
16445 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447 $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'
16448 else
16449 case `$CC -V 2>&1` in
16450 *"Compilers 5.0"*)
16451 wlarc=''
16452 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16455 ;;
16456 *)
16457 wlarc='$wl'
16458 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16460 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16461 ;;
16462 esac
16463 fi
16464 hardcode_libdir_flag_spec='-R$libdir'
16465 hardcode_shlibpath_var=no
16466 case $host_os in
16467 solaris2.[0-5] | solaris2.[0-5].*) ;;
16468 *)
16469 # The compiler driver will combine and reorder linker options,
16470 # but understands '-z linker_flag'. GCC discards it without '$wl',
16471 # but is careful enough not to reorder.
16472 # Supported since Solaris 2.6 (maybe 2.5.1?)
16473 if test yes = "$GCC"; then
16474 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16475 else
16476 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16477 fi
16478 ;;
16479 esac
16480 link_all_deplibs=yes
16481 ;;
16482
16483 sunos4*)
16484 if test sequent = "$host_vendor"; then
16485 # Use $CC to link under sequent, because it throws in some extra .o
16486 # files that make .init and .fini sections work.
16487 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16488 else
16489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16490 fi
16491 hardcode_libdir_flag_spec='-L$libdir'
16492 hardcode_direct=yes
16493 hardcode_minus_L=yes
16494 hardcode_shlibpath_var=no
16495 ;;
16496
16497 sysv4)
16498 case $host_vendor in
16499 sni)
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct=yes # is this really true???
16502 ;;
16503 siemens)
16504 ## LD is ld it makes a PLAMLIB
16505 ## CC just makes a GrossModule.
16506 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507 reload_cmds='$CC -r -o $output$reload_objs'
16508 hardcode_direct=no
16509 ;;
16510 motorola)
16511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16513 ;;
16514 esac
16515 runpath_var='LD_RUN_PATH'
16516 hardcode_shlibpath_var=no
16517 ;;
16518
16519 sysv4.3*)
16520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var=no
16522 export_dynamic_flag_spec='-Bexport'
16523 ;;
16524
16525 sysv4*MP*)
16526 if test -d /usr/nec; then
16527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_shlibpath_var=no
16529 runpath_var=LD_RUN_PATH
16530 hardcode_runpath_var=yes
16531 ld_shlibs=yes
16532 fi
16533 ;;
16534
16535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16536 no_undefined_flag='$wl-z,text'
16537 archive_cmds_need_lc=no
16538 hardcode_shlibpath_var=no
16539 runpath_var='LD_RUN_PATH'
16540
16541 if test yes = "$GCC"; then
16542 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 else
16545 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16547 fi
16548 ;;
16549
16550 sysv5* | sco3.2v5* | sco5v6*)
16551 # Note: We CANNOT use -z defs as we might desire, because we do not
16552 # link with -lc, and that would cause any symbols used from libc to
16553 # always be unresolved, which means just about no library would
16554 # ever link correctly. If we're not using GNU ld we use -z text
16555 # though, which does catch some bad symbols but isn't as heavy-handed
16556 # as -z defs.
16557 no_undefined_flag='$wl-z,text'
16558 allow_undefined_flag='$wl-z,nodefs'
16559 archive_cmds_need_lc=no
16560 hardcode_shlibpath_var=no
16561 hardcode_libdir_flag_spec='$wl-R,$libdir'
16562 hardcode_libdir_separator=':'
16563 link_all_deplibs=yes
16564 export_dynamic_flag_spec='$wl-Bexport'
16565 runpath_var='LD_RUN_PATH'
16566
16567 if test yes = "$GCC"; then
16568 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 else
16571 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573 fi
16574 ;;
16575
16576 uts4*)
16577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec='-L$libdir'
16579 hardcode_shlibpath_var=no
16580 ;;
16581
16582 *)
16583 ld_shlibs=no
16584 ;;
16585 esac
16586
16587 if test sni = "$host_vendor"; then
16588 case $host in
16589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16590 export_dynamic_flag_spec='$wl-Blargedynsym'
16591 ;;
16592 esac
16593 fi
16594 fi
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16597 $as_echo "$ld_shlibs" >&6; }
16598 test no = "$ld_shlibs" && can_build_shared=no
16599
16600 with_gnu_ld=$with_gnu_ld
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616 #
16617 # Do we need to explicitly link libc?
16618 #
16619 case "x$archive_cmds_need_lc" in
16620 x|xyes)
16621 # Assume -lc should be added
16622 archive_cmds_need_lc=yes
16623
16624 if test yes,yes = "$GCC,$enable_shared"; then
16625 case $archive_cmds in
16626 *'~'*)
16627 # FIXME: we may have to deal with multi-command sequences.
16628 ;;
16629 '$CC '*)
16630 # Test whether the compiler implicitly links with -lc since on some
16631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16632 # to ld, don't add -lc before -lgcc.
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16635 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 $RM conftest*
16639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16640
16641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16642 (eval $ac_compile) 2>&5
16643 ac_status=$?
16644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645 test $ac_status = 0; } 2>conftest.err; then
16646 soname=conftest
16647 lib=conftest
16648 libobjs=conftest.$ac_objext
16649 deplibs=
16650 wl=$lt_prog_compiler_wl
16651 pic_flag=$lt_prog_compiler_pic
16652 compiler_flags=-v
16653 linker_flags=-v
16654 verstring=
16655 output_objdir=.
16656 libname=conftest
16657 lt_save_allow_undefined_flag=$allow_undefined_flag
16658 allow_undefined_flag=
16659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16660 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16661 ac_status=$?
16662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663 test $ac_status = 0; }
16664 then
16665 lt_cv_archive_cmds_need_lc=no
16666 else
16667 lt_cv_archive_cmds_need_lc=yes
16668 fi
16669 allow_undefined_flag=$lt_save_allow_undefined_flag
16670 else
16671 cat conftest.err 1>&5
16672 fi
16673 $RM conftest*
16674
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16678 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16679 ;;
16680 esac
16681 fi
16682 ;;
16683 esac
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
16828
16829
16830
16831
16832
16833
16834
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16837 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16838
16839 if test yes = "$GCC"; then
16840 case $host_os in
16841 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16842 *) lt_awk_arg='/^libraries:/' ;;
16843 esac
16844 case $host_os in
16845 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16846 *) lt_sed_strip_eq='s|=/|/|g' ;;
16847 esac
16848 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16849 case $lt_search_path_spec in
16850 *\;*)
16851 # if the path contains ";" then we assume it to be the separator
16852 # otherwise default to the standard path separator (i.e. ":") - it is
16853 # assumed that no part of a normal pathname contains ";" but that should
16854 # okay in the real world where ";" in dirpaths is itself problematic.
16855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16856 ;;
16857 *)
16858 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16859 ;;
16860 esac
16861 # Ok, now we have the path, separated by spaces, we can step through it
16862 # and add multilib dir if necessary...
16863 lt_tmp_lt_search_path_spec=
16864 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16865 # ...but if some path component already ends with the multilib dir we assume
16866 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16867 case "$lt_multi_os_dir; $lt_search_path_spec " in
16868 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16869 lt_multi_os_dir=
16870 ;;
16871 esac
16872 for lt_sys_path in $lt_search_path_spec; do
16873 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16875 elif test -n "$lt_multi_os_dir"; then
16876 test -d "$lt_sys_path" && \
16877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16878 fi
16879 done
16880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16881 BEGIN {RS = " "; FS = "/|\n";} {
16882 lt_foo = "";
16883 lt_count = 0;
16884 for (lt_i = NF; lt_i > 0; lt_i--) {
16885 if ($lt_i != "" && $lt_i != ".") {
16886 if ($lt_i == "..") {
16887 lt_count++;
16888 } else {
16889 if (lt_count == 0) {
16890 lt_foo = "/" $lt_i lt_foo;
16891 } else {
16892 lt_count--;
16893 }
16894 }
16895 }
16896 }
16897 if (lt_foo != "") { lt_freq[lt_foo]++; }
16898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16899 }'`
16900 # AWK program above erroneously prepends '/' to C:/dos/paths
16901 # for these hosts.
16902 case $host_os in
16903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16904 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16905 esac
16906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16907 else
16908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16909 fi
16910 library_names_spec=
16911 libname_spec='lib$name'
16912 soname_spec=
16913 shrext_cmds=.so
16914 postinstall_cmds=
16915 postuninstall_cmds=
16916 finish_cmds=
16917 finish_eval=
16918 shlibpath_var=
16919 shlibpath_overrides_runpath=unknown
16920 version_type=none
16921 dynamic_linker="$host_os ld.so"
16922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16923 need_lib_prefix=unknown
16924 hardcode_into_libs=no
16925
16926 # when you set need_version to no, make sure it does not cause -set_version
16927 # flags to be left without arguments
16928 need_version=unknown
16929
16930
16931
16932 case $host_os in
16933 aix3*)
16934 version_type=linux # correct to gnu/linux during the next big refactor
16935 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16936 shlibpath_var=LIBPATH
16937
16938 # AIX 3 has no versioning support, so we append a major version to the name.
16939 soname_spec='$libname$release$shared_ext$major'
16940 ;;
16941
16942 aix[4-9]*)
16943 version_type=linux # correct to gnu/linux during the next big refactor
16944 need_lib_prefix=no
16945 need_version=no
16946 hardcode_into_libs=yes
16947 if test ia64 = "$host_cpu"; then
16948 # AIX 5 supports IA64
16949 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 else
16952 # With GCC up to 2.95.x, collect2 would create an import file
16953 # for dependence libraries. The import file would start with
16954 # the line '#! .'. This would cause the generated library to
16955 # depend on '.', always an invalid library. This was fixed in
16956 # development snapshots of GCC prior to 3.0.
16957 case $host_os in
16958 aix4 | aix4.[01] | aix4.[01].*)
16959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16960 echo ' yes '
16961 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16962 :
16963 else
16964 can_build_shared=no
16965 fi
16966 ;;
16967 esac
16968 # Using Import Files as archive members, it is possible to support
16969 # filename-based versioning of shared library archives on AIX. While
16970 # this would work for both with and without runtime linking, it will
16971 # prevent static linking of such archives. So we do filename-based
16972 # shared library versioning with .so extension only, which is used
16973 # when both runtime linking and shared linking is enabled.
16974 # Unfortunately, runtime linking may impact performance, so we do
16975 # not want this to be the default eventually. Also, we use the
16976 # versioned .so libs for executables only if there is the -brtl
16977 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16978 # To allow for filename-based versioning support, we need to create
16979 # libNAME.so.V as an archive file, containing:
16980 # *) an Import File, referring to the versioned filename of the
16981 # archive as well as the shared archive member, telling the
16982 # bitwidth (32 or 64) of that shared object, and providing the
16983 # list of exported symbols of that shared object, eventually
16984 # decorated with the 'weak' keyword
16985 # *) the shared object with the F_LOADONLY flag set, to really avoid
16986 # it being seen by the linker.
16987 # At run time we better use the real file rather than another symlink,
16988 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16989
16990 case $with_aix_soname,$aix_use_runtimelinking in
16991 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16992 # soname into executable. Probably we can add versioning support to
16993 # collect2, so additional links can be useful in future.
16994 aix,yes) # traditional libtool
16995 dynamic_linker='AIX unversionable lib.so'
16996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16997 # instead of lib<name>.a to let people know that these are not
16998 # typical AIX shared libraries.
16999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17000 ;;
17001 aix,no) # traditional AIX only
17002 dynamic_linker='AIX lib.a(lib.so.V)'
17003 # We preserve .a as extension for shared libraries through AIX4.2
17004 # and later when we are not doing run time linking.
17005 library_names_spec='$libname$release.a $libname.a'
17006 soname_spec='$libname$release$shared_ext$major'
17007 ;;
17008 svr4,*) # full svr4 only
17009 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17010 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17011 # We do not specify a path in Import Files, so LIBPATH fires.
17012 shlibpath_overrides_runpath=yes
17013 ;;
17014 *,yes) # both, prefer svr4
17015 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17016 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17017 # unpreferred sharedlib libNAME.a needs extra handling
17018 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"'
17019 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"'
17020 # We do not specify a path in Import Files, so LIBPATH fires.
17021 shlibpath_overrides_runpath=yes
17022 ;;
17023 *,no) # both, prefer aix
17024 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17025 library_names_spec='$libname$release.a $libname.a'
17026 soname_spec='$libname$release$shared_ext$major'
17027 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17028 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)'
17029 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"'
17030 ;;
17031 esac
17032 shlibpath_var=LIBPATH
17033 fi
17034 ;;
17035
17036 amigaos*)
17037 case $host_cpu in
17038 powerpc)
17039 # Since July 2007 AmigaOS4 officially supports .so libraries.
17040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17042 ;;
17043 m68k)
17044 library_names_spec='$libname.ixlibrary $libname.a'
17045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17046 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'
17047 ;;
17048 esac
17049 ;;
17050
17051 beos*)
17052 library_names_spec='$libname$shared_ext'
17053 dynamic_linker="$host_os ld.so"
17054 shlibpath_var=LIBRARY_PATH
17055 ;;
17056
17057 bsdi[45]*)
17058 version_type=linux # correct to gnu/linux during the next big refactor
17059 need_version=no
17060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17061 soname_spec='$libname$release$shared_ext$major'
17062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17063 shlibpath_var=LD_LIBRARY_PATH
17064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17066 # the default ld.so.conf also contains /usr/contrib/lib and
17067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17068 # libtool to hard-code these into programs
17069 ;;
17070
17071 cygwin* | mingw* | pw32* | cegcc*)
17072 version_type=windows
17073 shrext_cmds=.dll
17074 need_version=no
17075 need_lib_prefix=no
17076
17077 case $GCC,$cc_basename in
17078 yes,*)
17079 # gcc
17080 library_names_spec='$libname.dll.a'
17081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17082 postinstall_cmds='base_file=`basename \$file`~
17083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17084 dldir=$destdir/`dirname \$dlpath`~
17085 test -d \$dldir || mkdir -p \$dldir~
17086 $install_prog $dir/$dlname \$dldir/$dlname~
17087 chmod a+x \$dldir/$dlname~
17088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17090 fi'
17091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17092 dlpath=$dir/\$dldll~
17093 $RM \$dlpath'
17094 shlibpath_overrides_runpath=yes
17095
17096 case $host_os in
17097 cygwin*)
17098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17099 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17100
17101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17102 ;;
17103 mingw* | cegcc*)
17104 # MinGW DLLs use traditional 'lib' prefix
17105 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17106 ;;
17107 pw32*)
17108 # pw32 DLLs use 'pw' prefix rather than 'lib'
17109 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17110 ;;
17111 esac
17112 dynamic_linker='Win32 ld.exe'
17113 ;;
17114
17115 *,cl*)
17116 # Native MSVC
17117 libname_spec='$name'
17118 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17119 library_names_spec='$libname.dll.lib'
17120
17121 case $build_os in
17122 mingw*)
17123 sys_lib_search_path_spec=
17124 lt_save_ifs=$IFS
17125 IFS=';'
17126 for lt_path in $LIB
17127 do
17128 IFS=$lt_save_ifs
17129 # Let DOS variable expansion print the short 8.3 style file name.
17130 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17131 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17132 done
17133 IFS=$lt_save_ifs
17134 # Convert to MSYS style.
17135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17136 ;;
17137 cygwin*)
17138 # Convert to unix form, then to dos form, then back to unix form
17139 # but this time dos style (no spaces!) so that the unix form looks
17140 # like /cygdrive/c/PROGRA~1:/cygdr...
17141 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17142 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17143 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17144 ;;
17145 *)
17146 sys_lib_search_path_spec=$LIB
17147 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17148 # It is most probably a Windows format PATH.
17149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17150 else
17151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17152 fi
17153 # FIXME: find the short name or the path components, as spaces are
17154 # common. (e.g. "Program Files" -> "PROGRA~1")
17155 ;;
17156 esac
17157
17158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17159 postinstall_cmds='base_file=`basename \$file`~
17160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17161 dldir=$destdir/`dirname \$dlpath`~
17162 test -d \$dldir || mkdir -p \$dldir~
17163 $install_prog $dir/$dlname \$dldir/$dlname'
17164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17165 dlpath=$dir/\$dldll~
17166 $RM \$dlpath'
17167 shlibpath_overrides_runpath=yes
17168 dynamic_linker='Win32 link.exe'
17169 ;;
17170
17171 *)
17172 # Assume MSVC wrapper
17173 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17174 dynamic_linker='Win32 ld.exe'
17175 ;;
17176 esac
17177 # FIXME: first we should search . and the directory the executable is in
17178 shlibpath_var=PATH
17179 ;;
17180
17181 darwin* | rhapsody*)
17182 dynamic_linker="$host_os dyld"
17183 version_type=darwin
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17187 soname_spec='$libname$release$major$shared_ext'
17188 shlibpath_overrides_runpath=yes
17189 shlibpath_var=DYLD_LIBRARY_PATH
17190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17191
17192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17194 ;;
17195
17196 dgux*)
17197 version_type=linux # correct to gnu/linux during the next big refactor
17198 need_lib_prefix=no
17199 need_version=no
17200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17201 soname_spec='$libname$release$shared_ext$major'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 ;;
17204
17205 freebsd* | dragonfly*)
17206 # DragonFly does not have aout. When/if they implement a new
17207 # versioning mechanism, adjust this.
17208 if test -x /usr/bin/objformat; then
17209 objformat=`/usr/bin/objformat`
17210 else
17211 case $host_os in
17212 freebsd[23].*) objformat=aout ;;
17213 *) objformat=elf ;;
17214 esac
17215 fi
17216 # Handle Gentoo/FreeBSD as it was Linux
17217 case $host_vendor in
17218 gentoo)
17219 version_type=linux ;;
17220 *)
17221 version_type=freebsd-$objformat ;;
17222 esac
17223
17224 case $version_type in
17225 freebsd-elf*)
17226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17227 soname_spec='$libname$release$shared_ext$major'
17228 need_version=no
17229 need_lib_prefix=no
17230 ;;
17231 freebsd-*)
17232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17233 need_version=yes
17234 ;;
17235 linux)
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 need_lib_prefix=no
17239 need_version=no
17240 ;;
17241 esac
17242 shlibpath_var=LD_LIBRARY_PATH
17243 case $host_os in
17244 freebsd2.*)
17245 shlibpath_overrides_runpath=yes
17246 ;;
17247 freebsd3.[01]* | freebsdelf3.[01]*)
17248 shlibpath_overrides_runpath=yes
17249 hardcode_into_libs=yes
17250 ;;
17251 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17252 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17253 shlibpath_overrides_runpath=no
17254 hardcode_into_libs=yes
17255 ;;
17256 *) # from 4.6 on, and DragonFly
17257 shlibpath_overrides_runpath=yes
17258 hardcode_into_libs=yes
17259 ;;
17260 esac
17261 ;;
17262
17263 haiku*)
17264 version_type=linux # correct to gnu/linux during the next big refactor
17265 need_lib_prefix=no
17266 need_version=no
17267 dynamic_linker="$host_os runtime_loader"
17268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17269 soname_spec='$libname$release$shared_ext$major'
17270 shlibpath_var=LIBRARY_PATH
17271 shlibpath_overrides_runpath=no
17272 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17273 hardcode_into_libs=yes
17274 ;;
17275
17276 hpux9* | hpux10* | hpux11*)
17277 # Give a soname corresponding to the major version so that dld.sl refuses to
17278 # link against other versions.
17279 version_type=sunos
17280 need_lib_prefix=no
17281 need_version=no
17282 case $host_cpu in
17283 ia64*)
17284 shrext_cmds='.so'
17285 hardcode_into_libs=yes
17286 dynamic_linker="$host_os dld.so"
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17290 soname_spec='$libname$release$shared_ext$major'
17291 if test 32 = "$HPUX_IA64_MODE"; then
17292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17293 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17294 else
17295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17296 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17297 fi
17298 ;;
17299 hppa*64*)
17300 shrext_cmds='.sl'
17301 hardcode_into_libs=yes
17302 dynamic_linker="$host_os dld.sl"
17303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17306 soname_spec='$libname$release$shared_ext$major'
17307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17309 ;;
17310 *)
17311 shrext_cmds='.sl'
17312 dynamic_linker="$host_os dld.sl"
17313 shlibpath_var=SHLIB_PATH
17314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17316 soname_spec='$libname$release$shared_ext$major'
17317 ;;
17318 esac
17319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17320 postinstall_cmds='chmod 555 $lib'
17321 # or fails outright, so override atomically:
17322 install_override_mode=555
17323 ;;
17324
17325 interix[3-9]*)
17326 version_type=linux # correct to gnu/linux during the next big refactor
17327 need_lib_prefix=no
17328 need_version=no
17329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17330 soname_spec='$libname$release$shared_ext$major'
17331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 shlibpath_overrides_runpath=no
17334 hardcode_into_libs=yes
17335 ;;
17336
17337 irix5* | irix6* | nonstopux*)
17338 case $host_os in
17339 nonstopux*) version_type=nonstopux ;;
17340 *)
17341 if test yes = "$lt_cv_prog_gnu_ld"; then
17342 version_type=linux # correct to gnu/linux during the next big refactor
17343 else
17344 version_type=irix
17345 fi ;;
17346 esac
17347 need_lib_prefix=no
17348 need_version=no
17349 soname_spec='$libname$release$shared_ext$major'
17350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17351 case $host_os in
17352 irix5* | nonstopux*)
17353 libsuff= shlibsuff=
17354 ;;
17355 *)
17356 case $LD in # libtool.m4 will add one of these switches to LD
17357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17358 libsuff= shlibsuff= libmagic=32-bit;;
17359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17360 libsuff=32 shlibsuff=N32 libmagic=N32;;
17361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17363 *) libsuff= shlibsuff= libmagic=never-match;;
17364 esac
17365 ;;
17366 esac
17367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17368 shlibpath_overrides_runpath=no
17369 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17370 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17371 hardcode_into_libs=yes
17372 ;;
17373
17374 # No shared lib support for Linux oldld, aout, or coff.
17375 linux*oldld* | linux*aout* | linux*coff*)
17376 dynamic_linker=no
17377 ;;
17378
17379 linux*android*)
17380 version_type=none # Android doesn't support versioned libraries.
17381 need_lib_prefix=no
17382 need_version=no
17383 library_names_spec='$libname$release$shared_ext'
17384 soname_spec='$libname$release$shared_ext'
17385 finish_cmds=
17386 shlibpath_var=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath=yes
17388
17389 # This implies no fast_install, which is unacceptable.
17390 # Some rework will be needed to allow for fast_install
17391 # before this can be enabled.
17392 hardcode_into_libs=yes
17393
17394 dynamic_linker='Android linker'
17395 # Don't embed -rpath directories since the linker doesn't support them.
17396 hardcode_libdir_flag_spec='-L$libdir'
17397 ;;
17398
17399 # This must be glibc/ELF.
17400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17401 version_type=linux # correct to gnu/linux during the next big refactor
17402 need_lib_prefix=no
17403 need_version=no
17404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17405 soname_spec='$libname$release$shared_ext$major'
17406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409
17410 # Some binutils ld are patched to set DT_RUNPATH
17411 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17412 $as_echo_n "(cached) " >&6
17413 else
17414 lt_cv_shlibpath_overrides_runpath=no
17415 save_LDFLAGS=$LDFLAGS
17416 save_libdir=$libdir
17417 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17418 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421
17422 int
17423 main ()
17424 {
17425
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"; then :
17431 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17432 lt_cv_shlibpath_overrides_runpath=yes
17433 fi
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17437 LDFLAGS=$save_LDFLAGS
17438 libdir=$save_libdir
17439
17440 fi
17441
17442 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17443
17444 # This implies no fast_install, which is unacceptable.
17445 # Some rework will be needed to allow for fast_install
17446 # before this can be enabled.
17447 hardcode_into_libs=yes
17448
17449 # Ideally, we could use ldconfig to report *all* directores which are
17450 # searched for libraries, however this is still not possible. Aside from not
17451 # being certain /sbin/ldconfig is available, command
17452 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17453 # even though it is searched at run-time. Try to do the best guess by
17454 # appending ld.so.conf contents (and includes) to the search path.
17455 if test -f /etc/ld.so.conf; then
17456 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' ' '`
17457 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17458 fi
17459
17460 # We used to test for /lib/ld.so.1 and disable shared libraries on
17461 # powerpc, because MkLinux only supported shared libraries with the
17462 # GNU dynamic linker. Since this was broken with cross compilers,
17463 # most powerpc-linux boxes support dynamic linking these days and
17464 # people can always --disable-shared, the test was removed, and we
17465 # assume the GNU/Linux dynamic linker is in use.
17466 dynamic_linker='GNU/Linux ld.so'
17467 ;;
17468
17469 netbsd*)
17470 version_type=sunos
17471 need_lib_prefix=no
17472 need_version=no
17473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17474 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17476 dynamic_linker='NetBSD (a.out) ld.so'
17477 else
17478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17479 soname_spec='$libname$release$shared_ext$major'
17480 dynamic_linker='NetBSD ld.elf_so'
17481 fi
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=yes
17484 hardcode_into_libs=yes
17485 ;;
17486
17487 newsos6)
17488 version_type=linux # correct to gnu/linux during the next big refactor
17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 shlibpath_overrides_runpath=yes
17492 ;;
17493
17494 *nto* | *qnx*)
17495 version_type=qnx
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17499 soname_spec='$libname$release$shared_ext$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=no
17502 hardcode_into_libs=yes
17503 dynamic_linker='ldqnx.so'
17504 ;;
17505
17506 openbsd* | bitrig*)
17507 version_type=sunos
17508 sys_lib_dlsearch_path_spec=/usr/lib
17509 need_lib_prefix=no
17510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17511 need_version=no
17512 else
17513 need_version=yes
17514 fi
17515 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17519 ;;
17520
17521 os2*)
17522 libname_spec='$name'
17523 version_type=windows
17524 shrext_cmds=.dll
17525 need_version=no
17526 need_lib_prefix=no
17527 # OS/2 can only load a DLL with a base name of 8 characters or less.
17528 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17529 v=$($ECHO $release$versuffix | tr -d .-);
17530 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17531 $ECHO $n$v`$shared_ext'
17532 library_names_spec='${libname}_dll.$libext'
17533 dynamic_linker='OS/2 ld.exe'
17534 shlibpath_var=BEGINLIBPATH
17535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17537 postinstall_cmds='base_file=`basename \$file`~
17538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17539 dldir=$destdir/`dirname \$dlpath`~
17540 test -d \$dldir || mkdir -p \$dldir~
17541 $install_prog $dir/$dlname \$dldir/$dlname~
17542 chmod a+x \$dldir/$dlname~
17543 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17544 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17545 fi'
17546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17547 dlpath=$dir/\$dldll~
17548 $RM \$dlpath'
17549 ;;
17550
17551 osf3* | osf4* | osf5*)
17552 version_type=osf
17553 need_lib_prefix=no
17554 need_version=no
17555 soname_spec='$libname$release$shared_ext$major'
17556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560 ;;
17561
17562 rdos*)
17563 dynamic_linker=no
17564 ;;
17565
17566 solaris*)
17567 version_type=linux # correct to gnu/linux during the next big refactor
17568 need_lib_prefix=no
17569 need_version=no
17570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17571 soname_spec='$libname$release$shared_ext$major'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath=yes
17574 hardcode_into_libs=yes
17575 # ldd complains unless libraries are executable
17576 postinstall_cmds='chmod +x $lib'
17577 ;;
17578
17579 sunos4*)
17580 version_type=sunos
17581 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=yes
17585 if test yes = "$with_gnu_ld"; then
17586 need_lib_prefix=no
17587 fi
17588 need_version=yes
17589 ;;
17590
17591 sysv4 | sysv4.3*)
17592 version_type=linux # correct to gnu/linux during the next big refactor
17593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17594 soname_spec='$libname$release$shared_ext$major'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 case $host_vendor in
17597 sni)
17598 shlibpath_overrides_runpath=no
17599 need_lib_prefix=no
17600 runpath_var=LD_RUN_PATH
17601 ;;
17602 siemens)
17603 need_lib_prefix=no
17604 ;;
17605 motorola)
17606 need_lib_prefix=no
17607 need_version=no
17608 shlibpath_overrides_runpath=no
17609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17610 ;;
17611 esac
17612 ;;
17613
17614 sysv4*MP*)
17615 if test -d /usr/nec; then
17616 version_type=linux # correct to gnu/linux during the next big refactor
17617 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17618 soname_spec='$libname$shared_ext.$major'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 fi
17621 ;;
17622
17623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17624 version_type=sco
17625 need_lib_prefix=no
17626 need_version=no
17627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17628 soname_spec='$libname$release$shared_ext$major'
17629 shlibpath_var=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath=yes
17631 hardcode_into_libs=yes
17632 if test yes = "$with_gnu_ld"; then
17633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17634 else
17635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17636 case $host_os in
17637 sco3.2v5*)
17638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17639 ;;
17640 esac
17641 fi
17642 sys_lib_dlsearch_path_spec='/usr/lib'
17643 ;;
17644
17645 tpf*)
17646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17647 version_type=linux # correct to gnu/linux during the next big refactor
17648 need_lib_prefix=no
17649 need_version=no
17650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=no
17653 hardcode_into_libs=yes
17654 ;;
17655
17656 uts4*)
17657 version_type=linux # correct to gnu/linux during the next big refactor
17658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17659 soname_spec='$libname$release$shared_ext$major'
17660 shlibpath_var=LD_LIBRARY_PATH
17661 ;;
17662
17663 *)
17664 dynamic_linker=no
17665 ;;
17666 esac
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17668 $as_echo "$dynamic_linker" >&6; }
17669 test no = "$dynamic_linker" && can_build_shared=no
17670
17671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17672 if test yes = "$GCC"; then
17673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17674 fi
17675
17676 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17677 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17678 fi
17679
17680 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17681 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17682 fi
17683
17684 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17685 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17686
17687 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17688 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17689
17690 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17691 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17790 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17791 hardcode_action=
17792 if test -n "$hardcode_libdir_flag_spec" ||
17793 test -n "$runpath_var" ||
17794 test yes = "$hardcode_automatic"; then
17795
17796 # We can hardcode non-existent directories.
17797 if test no != "$hardcode_direct" &&
17798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17799 # have to relink, otherwise we might link with an installed library
17800 # when we should be linking with a yet-to-be-installed one
17801 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17802 test no != "$hardcode_minus_L"; then
17803 # Linking always hardcodes the temporary library directory.
17804 hardcode_action=relink
17805 else
17806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17807 hardcode_action=immediate
17808 fi
17809 else
17810 # We cannot hardcode anything, or else we can only hardcode existing
17811 # directories.
17812 hardcode_action=unsupported
17813 fi
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17815 $as_echo "$hardcode_action" >&6; }
17816
17817 if test relink = "$hardcode_action" ||
17818 test yes = "$inherit_rpath"; then
17819 # Fast installation is not supported
17820 enable_fast_install=no
17821 elif test yes = "$shlibpath_overrides_runpath" ||
17822 test no = "$enable_shared"; then
17823 # Fast installation is not necessary
17824 enable_fast_install=needless
17825 fi
17826
17827
17828
17829
17830
17831
17832 if test yes != "$enable_dlopen"; then
17833 enable_dlopen=unknown
17834 enable_dlopen_self=unknown
17835 enable_dlopen_self_static=unknown
17836 else
17837 lt_cv_dlopen=no
17838 lt_cv_dlopen_libs=
17839
17840 case $host_os in
17841 beos*)
17842 lt_cv_dlopen=load_add_on
17843 lt_cv_dlopen_libs=
17844 lt_cv_dlopen_self=yes
17845 ;;
17846
17847 mingw* | pw32* | cegcc*)
17848 lt_cv_dlopen=LoadLibrary
17849 lt_cv_dlopen_libs=
17850 ;;
17851
17852 cygwin*)
17853 lt_cv_dlopen=dlopen
17854 lt_cv_dlopen_libs=
17855 ;;
17856
17857 darwin*)
17858 # if libdl is installed we need to link against it
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17861 if ${ac_cv_lib_dl_dlopen+:} false; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 ac_check_lib_save_LIBS=$LIBS
17865 LIBS="-ldl $LIBS"
17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17868
17869 /* Override any GCC internal prototype to avoid an error.
17870 Use char because int might match the return type of a GCC
17871 builtin and then its argument prototype would still apply. */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 char dlopen ();
17876 int
17877 main ()
17878 {
17879 return dlopen ();
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 if ac_fn_c_try_link "$LINENO"; then :
17885 ac_cv_lib_dl_dlopen=yes
17886 else
17887 ac_cv_lib_dl_dlopen=no
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17892 fi
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17895 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17896 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17897 else
17898
17899 lt_cv_dlopen=dyld
17900 lt_cv_dlopen_libs=
17901 lt_cv_dlopen_self=yes
17902
17903 fi
17904
17905 ;;
17906
17907 tpf*)
17908 # Don't try to run any link tests for TPF. We know it's impossible
17909 # because TPF is a cross-compiler, and we know how we open DSOs.
17910 lt_cv_dlopen=dlopen
17911 lt_cv_dlopen_libs=
17912 lt_cv_dlopen_self=no
17913 ;;
17914
17915 *)
17916 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17917 if test "x$ac_cv_func_shl_load" = xyes; then :
17918 lt_cv_dlopen=shl_load
17919 else
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17921 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17922 if ${ac_cv_lib_dld_shl_load+:} false; then :
17923 $as_echo_n "(cached) " >&6
17924 else
17925 ac_check_lib_save_LIBS=$LIBS
17926 LIBS="-ldld $LIBS"
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 char shl_load ();
17937 int
17938 main ()
17939 {
17940 return shl_load ();
17941 ;
17942 return 0;
17943 }
17944 _ACEOF
17945 if ac_fn_c_try_link "$LINENO"; then :
17946 ac_cv_lib_dld_shl_load=yes
17947 else
17948 ac_cv_lib_dld_shl_load=no
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 LIBS=$ac_check_lib_save_LIBS
17953 fi
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17955 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17956 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17957 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17958 else
17959 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17960 if test "x$ac_cv_func_dlopen" = xyes; then :
17961 lt_cv_dlopen=dlopen
17962 else
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17965 if ${ac_cv_lib_dl_dlopen+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 ac_check_lib_save_LIBS=$LIBS
17969 LIBS="-ldl $LIBS"
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char dlopen ();
17980 int
17981 main ()
17982 {
17983 return dlopen ();
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_link "$LINENO"; then :
17989 ac_cv_lib_dl_dlopen=yes
17990 else
17991 ac_cv_lib_dl_dlopen=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17996 fi
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17999 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18000 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18001 else
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18004 if ${ac_cv_lib_svld_dlopen+:} false; then :
18005 $as_echo_n "(cached) " >&6
18006 else
18007 ac_check_lib_save_LIBS=$LIBS
18008 LIBS="-lsvld $LIBS"
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18011
18012 /* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 char dlopen ();
18019 int
18020 main ()
18021 {
18022 return dlopen ();
18023 ;
18024 return 0;
18025 }
18026 _ACEOF
18027 if ac_fn_c_try_link "$LINENO"; then :
18028 ac_cv_lib_svld_dlopen=yes
18029 else
18030 ac_cv_lib_svld_dlopen=no
18031 fi
18032 rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18034 LIBS=$ac_check_lib_save_LIBS
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18038 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18039 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18040 else
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18043 if ${ac_cv_lib_dld_dld_link+:} false; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 ac_check_lib_save_LIBS=$LIBS
18047 LIBS="-ldld $LIBS"
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 char dld_link ();
18058 int
18059 main ()
18060 {
18061 return dld_link ();
18062 ;
18063 return 0;
18064 }
18065 _ACEOF
18066 if ac_fn_c_try_link "$LINENO"; then :
18067 ac_cv_lib_dld_dld_link=yes
18068 else
18069 ac_cv_lib_dld_dld_link=no
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
18073 LIBS=$ac_check_lib_save_LIBS
18074 fi
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18076 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18077 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18078 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18079 fi
18080
18081
18082 fi
18083
18084
18085 fi
18086
18087
18088 fi
18089
18090
18091 fi
18092
18093
18094 fi
18095
18096 ;;
18097 esac
18098
18099 if test no = "$lt_cv_dlopen"; then
18100 enable_dlopen=no
18101 else
18102 enable_dlopen=yes
18103 fi
18104
18105 case $lt_cv_dlopen in
18106 dlopen)
18107 save_CPPFLAGS=$CPPFLAGS
18108 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18109
18110 save_LDFLAGS=$LDFLAGS
18111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18112
18113 save_LIBS=$LIBS
18114 LIBS="$lt_cv_dlopen_libs $LIBS"
18115
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18117 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18118 if ${lt_cv_dlopen_self+:} false; then :
18119 $as_echo_n "(cached) " >&6
18120 else
18121 if test yes = "$cross_compiling"; then :
18122 lt_cv_dlopen_self=cross
18123 else
18124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18125 lt_status=$lt_dlunknown
18126 cat > conftest.$ac_ext <<_LT_EOF
18127 #line $LINENO "configure"
18128 #include "confdefs.h"
18129
18130 #if HAVE_DLFCN_H
18131 #include <dlfcn.h>
18132 #endif
18133
18134 #include <stdio.h>
18135
18136 #ifdef RTLD_GLOBAL
18137 # define LT_DLGLOBAL RTLD_GLOBAL
18138 #else
18139 # ifdef DL_GLOBAL
18140 # define LT_DLGLOBAL DL_GLOBAL
18141 # else
18142 # define LT_DLGLOBAL 0
18143 # endif
18144 #endif
18145
18146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18147 find out it does not work in some platform. */
18148 #ifndef LT_DLLAZY_OR_NOW
18149 # ifdef RTLD_LAZY
18150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18151 # else
18152 # ifdef DL_LAZY
18153 # define LT_DLLAZY_OR_NOW DL_LAZY
18154 # else
18155 # ifdef RTLD_NOW
18156 # define LT_DLLAZY_OR_NOW RTLD_NOW
18157 # else
18158 # ifdef DL_NOW
18159 # define LT_DLLAZY_OR_NOW DL_NOW
18160 # else
18161 # define LT_DLLAZY_OR_NOW 0
18162 # endif
18163 # endif
18164 # endif
18165 # endif
18166 #endif
18167
18168 /* When -fvisibility=hidden is used, assume the code has been annotated
18169 correspondingly for the symbols needed. */
18170 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18171 int fnord () __attribute__((visibility("default")));
18172 #endif
18173
18174 int fnord () { return 42; }
18175 int main ()
18176 {
18177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18178 int status = $lt_dlunknown;
18179
18180 if (self)
18181 {
18182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18183 else
18184 {
18185 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18186 else puts (dlerror ());
18187 }
18188 /* dlclose (self); */
18189 }
18190 else
18191 puts (dlerror ());
18192
18193 return status;
18194 }
18195 _LT_EOF
18196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18197 (eval $ac_link) 2>&5
18198 ac_status=$?
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18201 (./conftest; exit; ) >&5 2>/dev/null
18202 lt_status=$?
18203 case x$lt_status in
18204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18207 esac
18208 else :
18209 # compilation failed
18210 lt_cv_dlopen_self=no
18211 fi
18212 fi
18213 rm -fr conftest*
18214
18215
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18218 $as_echo "$lt_cv_dlopen_self" >&6; }
18219
18220 if test yes = "$lt_cv_dlopen_self"; then
18221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18223 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18224 if ${lt_cv_dlopen_self_static+:} false; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 if test yes = "$cross_compiling"; then :
18228 lt_cv_dlopen_self_static=cross
18229 else
18230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18231 lt_status=$lt_dlunknown
18232 cat > conftest.$ac_ext <<_LT_EOF
18233 #line $LINENO "configure"
18234 #include "confdefs.h"
18235
18236 #if HAVE_DLFCN_H
18237 #include <dlfcn.h>
18238 #endif
18239
18240 #include <stdio.h>
18241
18242 #ifdef RTLD_GLOBAL
18243 # define LT_DLGLOBAL RTLD_GLOBAL
18244 #else
18245 # ifdef DL_GLOBAL
18246 # define LT_DLGLOBAL DL_GLOBAL
18247 # else
18248 # define LT_DLGLOBAL 0
18249 # endif
18250 #endif
18251
18252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18253 find out it does not work in some platform. */
18254 #ifndef LT_DLLAZY_OR_NOW
18255 # ifdef RTLD_LAZY
18256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18257 # else
18258 # ifdef DL_LAZY
18259 # define LT_DLLAZY_OR_NOW DL_LAZY
18260 # else
18261 # ifdef RTLD_NOW
18262 # define LT_DLLAZY_OR_NOW RTLD_NOW
18263 # else
18264 # ifdef DL_NOW
18265 # define LT_DLLAZY_OR_NOW DL_NOW
18266 # else
18267 # define LT_DLLAZY_OR_NOW 0
18268 # endif
18269 # endif
18270 # endif
18271 # endif
18272 #endif
18273
18274 /* When -fvisibility=hidden is used, assume the code has been annotated
18275 correspondingly for the symbols needed. */
18276 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18277 int fnord () __attribute__((visibility("default")));
18278 #endif
18279
18280 int fnord () { return 42; }
18281 int main ()
18282 {
18283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18284 int status = $lt_dlunknown;
18285
18286 if (self)
18287 {
18288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18289 else
18290 {
18291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18292 else puts (dlerror ());
18293 }
18294 /* dlclose (self); */
18295 }
18296 else
18297 puts (dlerror ());
18298
18299 return status;
18300 }
18301 _LT_EOF
18302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18303 (eval $ac_link) 2>&5
18304 ac_status=$?
18305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18306 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18307 (./conftest; exit; ) >&5 2>/dev/null
18308 lt_status=$?
18309 case x$lt_status in
18310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18313 esac
18314 else :
18315 # compilation failed
18316 lt_cv_dlopen_self_static=no
18317 fi
18318 fi
18319 rm -fr conftest*
18320
18321
18322 fi
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18324 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18325 fi
18326
18327 CPPFLAGS=$save_CPPFLAGS
18328 LDFLAGS=$save_LDFLAGS
18329 LIBS=$save_LIBS
18330 ;;
18331 esac
18332
18333 case $lt_cv_dlopen_self in
18334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18335 *) enable_dlopen_self=unknown ;;
18336 esac
18337
18338 case $lt_cv_dlopen_self_static in
18339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18340 *) enable_dlopen_self_static=unknown ;;
18341 esac
18342 fi
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360 striplib=
18361 old_striplib=
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18363 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18364 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368 $as_echo "yes" >&6; }
18369 else
18370 # FIXME - insert some real tests, host_os isn't really good enough
18371 case $host_os in
18372 darwin*)
18373 if test -n "$STRIP"; then
18374 striplib="$STRIP -x"
18375 old_striplib="$STRIP -S"
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377 $as_echo "yes" >&6; }
18378 else
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 fi
18382 ;;
18383 *)
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18385 $as_echo "no" >&6; }
18386 ;;
18387 esac
18388 fi
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401 # Report what library types will actually be built
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18403 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18405 $as_echo "$can_build_shared" >&6; }
18406
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18408 $as_echo_n "checking whether to build shared libraries... " >&6; }
18409 test no = "$can_build_shared" && enable_shared=no
18410
18411 # On AIX, shared libraries and static libraries use the same namespace, and
18412 # are all built from PIC.
18413 case $host_os in
18414 aix3*)
18415 test yes = "$enable_shared" && enable_static=no
18416 if test -n "$RANLIB"; then
18417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18418 postinstall_cmds='$RANLIB $lib'
18419 fi
18420 ;;
18421
18422 aix[4-9]*)
18423 if test ia64 != "$host_cpu"; then
18424 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18425 yes,aix,yes) ;; # shared object as lib.so file only
18426 yes,svr4,*) ;; # shared object as lib.so archive member only
18427 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18428 esac
18429 fi
18430 ;;
18431 esac
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18433 $as_echo "$enable_shared" >&6; }
18434
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18436 $as_echo_n "checking whether to build static libraries... " >&6; }
18437 # Make sure either enable_shared or enable_static is yes.
18438 test yes = "$enable_shared" || enable_static=yes
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18440 $as_echo "$enable_static" >&6; }
18441
18442
18443
18444
18445 fi
18446 ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452 CC=$lt_save_CC
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468 ac_config_commands="$ac_config_commands libtool"
18469
18470
18471
18472
18473 # Only expand once:
18474
18475
18476
18477
18478
18479 # Define a configure option for an alternate module directory
18480
18481 # Check whether --with-xorg-module-dir was given.
18482 if test "${with_xorg_module_dir+set}" = set; then :
18483 withval=$with_xorg_module_dir; moduledir="$withval"
18484 else
18485 moduledir="$libdir/xorg/modules"
18486 fi
18487
18488
18489 # Store the list of server defined optional extensions in REQUIRED_MODULES
18490
18491
18492 SAVE_CFLAGS="$CFLAGS"
18493 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18496
18497 #include "xorg-server.h"
18498 #if !defined RANDR
18499 #error RANDR not defined
18500 #endif
18501
18502 int
18503 main ()
18504 {
18505
18506 ;
18507 return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_compile "$LINENO"; then :
18511 _EXT_CHECK=yes
18512 else
18513 _EXT_CHECK=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516 CFLAGS="$SAVE_CFLAGS"
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18518 $as_echo_n "checking if RANDR is defined... " >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18520 $as_echo "$_EXT_CHECK" >&6; }
18521 if test "$_EXT_CHECK" != no; then
18522 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18523 fi
18524
18525
18526
18527 SAVE_CFLAGS="$CFLAGS"
18528 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18531
18532 #include "xorg-server.h"
18533 #if !defined RENDER
18534 #error RENDER not defined
18535 #endif
18536
18537 int
18538 main ()
18539 {
18540
18541 ;
18542 return 0;
18543 }
18544 _ACEOF
18545 if ac_fn_c_try_compile "$LINENO"; then :
18546 _EXT_CHECK=yes
18547 else
18548 _EXT_CHECK=no
18549 fi
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 CFLAGS="$SAVE_CFLAGS"
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18553 $as_echo_n "checking if RENDER is defined... " >&6; }
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18555 $as_echo "$_EXT_CHECK" >&6; }
18556 if test "$_EXT_CHECK" != no; then
18557 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18558 fi
18559
18560
18561
18562 SAVE_CFLAGS="$CFLAGS"
18563 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566
18567 #include "xorg-server.h"
18568 #if !defined XV
18569 #error XV not defined
18570 #endif
18571
18572 int
18573 main ()
18574 {
18575
18576 ;
18577 return 0;
18578 }
18579 _ACEOF
18580 if ac_fn_c_try_compile "$LINENO"; then :
18581 _EXT_CHECK=yes
18582 else
18583 _EXT_CHECK=no
18584 fi
18585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586 CFLAGS="$SAVE_CFLAGS"
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18588 $as_echo_n "checking if XV is defined... " >&6; }
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18590 $as_echo "$_EXT_CHECK" >&6; }
18591 if test "$_EXT_CHECK" != no; then
18592 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18593 fi
18594
18595
18596
18597 SAVE_CFLAGS="$CFLAGS"
18598 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18601
18602 #include "xorg-server.h"
18603 #if !defined DPMSExtension
18604 #error DPMSExtension not defined
18605 #endif
18606
18607 int
18608 main ()
18609 {
18610
18611 ;
18612 return 0;
18613 }
18614 _ACEOF
18615 if ac_fn_c_try_compile "$LINENO"; then :
18616 _EXT_CHECK=yes
18617 else
18618 _EXT_CHECK=no
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18621 CFLAGS="$SAVE_CFLAGS"
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18623 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18625 $as_echo "$_EXT_CHECK" >&6; }
18626 if test "$_EXT_CHECK" != no; then
18627 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18628 fi
18629
18630
18631 # Obtain compiler/linker options for the driver dependencies
18632
18633 pkg_failed=no
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18635 $as_echo_n "checking for XORG... " >&6; }
18636
18637 if test -n "$XORG_CFLAGS"; then
18638 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18639 elif test -n "$PKG_CONFIG"; then
18640 if test -n "$PKG_CONFIG" && \
18641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18642 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18643 ac_status=$?
18644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18645 test $ac_status = 0; }; then
18646 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18647 test "x$?" != "x0" && pkg_failed=yes
18648 else
18649 pkg_failed=yes
18650 fi
18651 else
18652 pkg_failed=untried
18653 fi
18654 if test -n "$XORG_LIBS"; then
18655 pkg_cv_XORG_LIBS="$XORG_LIBS"
18656 elif test -n "$PKG_CONFIG"; then
18657 if test -n "$PKG_CONFIG" && \
18658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18659 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18660 ac_status=$?
18661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18662 test $ac_status = 0; }; then
18663 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18664 test "x$?" != "x0" && pkg_failed=yes
18665 else
18666 pkg_failed=yes
18667 fi
18668 else
18669 pkg_failed=untried
18670 fi
18671
18672
18673
18674 if test $pkg_failed = yes; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677
18678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18679 _pkg_short_errors_supported=yes
18680 else
18681 _pkg_short_errors_supported=no
18682 fi
18683 if test $_pkg_short_errors_supported = yes; then
18684 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18685 else
18686 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18687 fi
18688 # Put the nasty error message in config.log where it belongs
18689 echo "$XORG_PKG_ERRORS" >&5
18690
18691 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18692
18693 $XORG_PKG_ERRORS
18694
18695 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18696 installed software in a non-standard prefix.
18697
18698 Alternatively, you may set the environment variables XORG_CFLAGS
18699 and XORG_LIBS to avoid the need to call pkg-config.
18700 See the pkg-config man page for more details." "$LINENO" 5
18701 elif test $pkg_failed = untried; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18706 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18707 is in your PATH or set the PKG_CONFIG environment variable to the full
18708 path to pkg-config.
18709
18710 Alternatively, you may set the environment variables XORG_CFLAGS
18711 and XORG_LIBS to avoid the need to call pkg-config.
18712 See the pkg-config man page for more details.
18713
18714 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18715 See \`config.log' for more details" "$LINENO" 5; }
18716 else
18717 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18718 XORG_LIBS=$pkg_cv_XORG_LIBS
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720 $as_echo "yes" >&6; }
18721
18722 fi
18723
18724 # Checks for libraries.
18725 SAVE_CPPFLAGS="$CPPFLAGS"
18726 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18727 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18728 "
18729 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18730 XSERVER_LIBPCIACCESS=yes
18731 else
18732 XSERVER_LIBPCIACCESS=no
18733 fi
18734
18735 CPPFLAGS="$SAVE_CPPFLAGS"
18736
18737 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18738
18739 pkg_failed=no
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18741 $as_echo_n "checking for PCIACCESS... " >&6; }
18742
18743 if test -n "$PCIACCESS_CFLAGS"; then
18744 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18745 elif test -n "$PKG_CONFIG"; then
18746 if test -n "$PKG_CONFIG" && \
18747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18748 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18749 ac_status=$?
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; then
18752 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18753 test "x$?" != "x0" && pkg_failed=yes
18754 else
18755 pkg_failed=yes
18756 fi
18757 else
18758 pkg_failed=untried
18759 fi
18760 if test -n "$PCIACCESS_LIBS"; then
18761 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18762 elif test -n "$PKG_CONFIG"; then
18763 if test -n "$PKG_CONFIG" && \
18764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18765 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18766 ac_status=$?
18767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18768 test $ac_status = 0; }; then
18769 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18770 test "x$?" != "x0" && pkg_failed=yes
18771 else
18772 pkg_failed=yes
18773 fi
18774 else
18775 pkg_failed=untried
18776 fi
18777
18778
18779
18780 if test $pkg_failed = yes; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18783
18784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18785 _pkg_short_errors_supported=yes
18786 else
18787 _pkg_short_errors_supported=no
18788 fi
18789 if test $_pkg_short_errors_supported = yes; then
18790 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18791 else
18792 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18793 fi
18794 # Put the nasty error message in config.log where it belongs
18795 echo "$PCIACCESS_PKG_ERRORS" >&5
18796
18797 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18798
18799 $PCIACCESS_PKG_ERRORS
18800
18801 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18802 installed software in a non-standard prefix.
18803
18804 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18805 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18806 See the pkg-config man page for more details." "$LINENO" 5
18807 elif test $pkg_failed = untried; then
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18809 $as_echo "no" >&6; }
18810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18812 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18813 is in your PATH or set the PKG_CONFIG environment variable to the full
18814 path to pkg-config.
18815
18816 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18817 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18818 See the pkg-config man page for more details.
18819
18820 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18821 See \`config.log' for more details" "$LINENO" 5; }
18822 else
18823 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18824 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826 $as_echo "yes" >&6; }
18827
18828 fi
18829 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18830 fi
18831 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18832 XSERVER_LIBPCIACCESS_TRUE=
18833 XSERVER_LIBPCIACCESS_FALSE='#'
18834 else
18835 XSERVER_LIBPCIACCESS_TRUE='#'
18836 XSERVER_LIBPCIACCESS_FALSE=
18837 fi
18838
18839
18840 # Check whether --enable-xaa was given.
18841 if test "${enable_xaa+set}" = set; then :
18842 enableval=$enable_xaa; XAA="$enableval"
18843 else
18844 XAA=auto
18845 fi
18846
18847 if test "x$XAA" != xno; then
18848 save_CFLAGS=$CFLAGS
18849 save_CPPFLAGS=$CPPFLAGS
18850 CFLAGS=$XORG_CFLAGS
18851 CPPFLAGS="$XORG_CFLAGS"
18852 for ac_header in xaa.h
18853 do :
18854 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18855 if test "x$ac_cv_header_xaa_h" = xyes; then :
18856 cat >>confdefs.h <<_ACEOF
18857 #define HAVE_XAA_H 1
18858 _ACEOF
18859 XAA=yes
18860 else
18861 XAA=no
18862 fi
18863
18864 done
18865
18866 CFLAGS=$save_CFLAGS
18867 CPPFLAGS=$save_CPPFLAGS
18868 fi
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18870 $as_echo_n "checking whether to include XAA support... " >&6; }
18871 if test "x$XAA" = xyes; then
18872 XAA_TRUE=
18873 XAA_FALSE='#'
18874 else
18875 XAA_TRUE='#'
18876 XAA_FALSE=
18877 fi
18878
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18880 $as_echo "$XAA" >&6; }
18881
18882
18883
18884 DRIVER_NAME=i740
18885
18886
18887 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18888
18889 cat >confcache <<\_ACEOF
18890 # This file is a shell script that caches the results of configure
18891 # tests run on this system so they can be shared between configure
18892 # scripts and configure runs, see configure's option --config-cache.
18893 # It is not useful on other systems. If it contains results you don't
18894 # want to keep, you may remove or edit it.
18895 #
18896 # config.status only pays attention to the cache file if you give it
18897 # the --recheck option to rerun configure.
18898 #
18899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18901 # following values.
18902
18903 _ACEOF
18904
18905 # The following way of writing the cache mishandles newlines in values,
18906 # but we know of no workaround that is simple, portable, and efficient.
18907 # So, we kill variables containing newlines.
18908 # Ultrix sh set writes to stderr and can't be redirected directly,
18909 # and sets the high bit in the cache file unless we assign to the vars.
18910 (
18911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18912 eval ac_val=\$$ac_var
18913 case $ac_val in #(
18914 *${as_nl}*)
18915 case $ac_var in #(
18916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18918 esac
18919 case $ac_var in #(
18920 _ | IFS | as_nl) ;; #(
18921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18922 *) { eval $ac_var=; unset $ac_var;} ;;
18923 esac ;;
18924 esac
18925 done
18926
18927 (set) 2>&1 |
18928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18929 *${as_nl}ac_space=\ *)
18930 # `set' does not quote correctly, so add quotes: double-quote
18931 # substitution turns \\\\ into \\, and sed turns \\ into \.
18932 sed -n \
18933 "s/'/'\\\\''/g;
18934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18935 ;; #(
18936 *)
18937 # `set' quotes correctly as required by POSIX, so do not add quotes.
18938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18939 ;;
18940 esac |
18941 sort
18942 ) |
18943 sed '
18944 /^ac_cv_env_/b end
18945 t clear
18946 :clear
18947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18948 t end
18949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18950 :end' >>confcache
18951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18952 if test -w "$cache_file"; then
18953 if test "x$cache_file" != "x/dev/null"; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18955 $as_echo "$as_me: updating cache $cache_file" >&6;}
18956 if test ! -f "$cache_file" || test -h "$cache_file"; then
18957 cat confcache >"$cache_file"
18958 else
18959 case $cache_file in #(
18960 */* | ?:*)
18961 mv -f confcache "$cache_file"$$ &&
18962 mv -f "$cache_file"$$ "$cache_file" ;; #(
18963 *)
18964 mv -f confcache "$cache_file" ;;
18965 esac
18966 fi
18967 fi
18968 else
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18971 fi
18972 fi
18973 rm -f confcache
18974
18975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18976 # Let make expand exec_prefix.
18977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18978
18979 DEFS=-DHAVE_CONFIG_H
18980
18981 ac_libobjs=
18982 ac_ltlibobjs=
18983 U=
18984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18985 # 1. Remove the extension, and $U if already installed.
18986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18989 # will be set to the directory where LIBOBJS objects are built.
18990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18992 done
18993 LIBOBJS=$ac_libobjs
18994
18995 LTLIBOBJS=$ac_ltlibobjs
18996
18997
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18999 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19000 if test -n "$am_sleep_pid"; then
19001 # Hide warnings about reused PIDs.
19002 wait $am_sleep_pid 2>/dev/null
19003 fi
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19005 $as_echo "done" >&6; }
19006 if test -n "$EXEEXT"; then
19007 am__EXEEXT_TRUE=
19008 am__EXEEXT_FALSE='#'
19009 else
19010 am__EXEEXT_TRUE='#'
19011 am__EXEEXT_FALSE=
19012 fi
19013
19014 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19015 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19017 fi
19018 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19019 as_fn_error $? "conditional \"AMDEP\" was never defined.
19020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19021 fi
19022 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19023 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19025 fi
19026 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19027 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19029 fi
19030 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19031 as_fn_error $? "conditional \"XAA\" was never defined.
19032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19033 fi
19034
19035 : "${CONFIG_STATUS=./config.status}"
19036 ac_write_fail=0
19037 ac_clean_files_save=$ac_clean_files
19038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19040 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19041 as_write_fail=0
19042 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19043 #! $SHELL
19044 # Generated by $as_me.
19045 # Run this file to recreate the current configuration.
19046 # Compiler output produced by configure, useful for debugging
19047 # configure, is in config.log if it exists.
19048
19049 debug=false
19050 ac_cs_recheck=false
19051 ac_cs_silent=false
19052
19053 SHELL=\${CONFIG_SHELL-$SHELL}
19054 export SHELL
19055 _ASEOF
19056 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19057 ## -------------------- ##
19058 ## M4sh Initialization. ##
19059 ## -------------------- ##
19060
19061 # Be more Bourne compatible
19062 DUALCASE=1; export DUALCASE # for MKS sh
19063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19064 emulate sh
19065 NULLCMD=:
19066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19067 # is contrary to our usage. Disable this feature.
19068 alias -g '${1+"$@"}'='"$@"'
19069 setopt NO_GLOB_SUBST
19070 else
19071 case `(set -o) 2>/dev/null` in #(
19072 *posix*) :
19073 set -o posix ;; #(
19074 *) :
19075 ;;
19076 esac
19077 fi
19078
19079
19080 as_nl='
19081 '
19082 export as_nl
19083 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19084 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19087 # Prefer a ksh shell builtin over an external printf program on Solaris,
19088 # but without wasting forks for bash or zsh.
19089 if test -z "$BASH_VERSION$ZSH_VERSION" \
19090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19091 as_echo='print -r --'
19092 as_echo_n='print -rn --'
19093 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19094 as_echo='printf %s\n'
19095 as_echo_n='printf %s'
19096 else
19097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19099 as_echo_n='/usr/ucb/echo -n'
19100 else
19101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19102 as_echo_n_body='eval
19103 arg=$1;
19104 case $arg in #(
19105 *"$as_nl"*)
19106 expr "X$arg" : "X\\(.*\\)$as_nl";
19107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19108 esac;
19109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19110 '
19111 export as_echo_n_body
19112 as_echo_n='sh -c $as_echo_n_body as_echo'
19113 fi
19114 export as_echo_body
19115 as_echo='sh -c $as_echo_body as_echo'
19116 fi
19117
19118 # The user is always right.
19119 if test "${PATH_SEPARATOR+set}" != set; then
19120 PATH_SEPARATOR=:
19121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19123 PATH_SEPARATOR=';'
19124 }
19125 fi
19126
19127
19128 # IFS
19129 # We need space, tab and new line, in precisely that order. Quoting is
19130 # there to prevent editors from complaining about space-tab.
19131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19132 # splitting by setting IFS to empty value.)
19133 IFS=" "" $as_nl"
19134
19135 # Find who we are. Look in the path if we contain no directory separator.
19136 as_myself=
19137 case $0 in #((
19138 *[\\/]* ) as_myself=$0 ;;
19139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19140 for as_dir in $PATH
19141 do
19142 IFS=$as_save_IFS
19143 test -z "$as_dir" && as_dir=.
19144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19145 done
19146 IFS=$as_save_IFS
19147
19148 ;;
19149 esac
19150 # We did not find ourselves, most probably we were run as `sh COMMAND'
19151 # in which case we are not to be found in the path.
19152 if test "x$as_myself" = x; then
19153 as_myself=$0
19154 fi
19155 if test ! -f "$as_myself"; then
19156 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19157 exit 1
19158 fi
19159
19160 # Unset variables that we do not need and which cause bugs (e.g. in
19161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19162 # suppresses any "Segmentation fault" message there. '((' could
19163 # trigger a bug in pdksh 5.2.14.
19164 for as_var in BASH_ENV ENV MAIL MAILPATH
19165 do eval test x\${$as_var+set} = xset \
19166 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19167 done
19168 PS1='$ '
19169 PS2='> '
19170 PS4='+ '
19171
19172 # NLS nuisances.
19173 LC_ALL=C
19174 export LC_ALL
19175 LANGUAGE=C
19176 export LANGUAGE
19177
19178 # CDPATH.
19179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19180
19181
19182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19183 # ----------------------------------------
19184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19186 # script with STATUS, using 1 if that was 0.
19187 as_fn_error ()
19188 {
19189 as_status=$1; test $as_status -eq 0 && as_status=1
19190 if test "$4"; then
19191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19193 fi
19194 $as_echo "$as_me: error: $2" >&2
19195 as_fn_exit $as_status
19196 } # as_fn_error
19197
19198
19199 # as_fn_set_status STATUS
19200 # -----------------------
19201 # Set $? to STATUS, without forking.
19202 as_fn_set_status ()
19203 {
19204 return $1
19205 } # as_fn_set_status
19206
19207 # as_fn_exit STATUS
19208 # -----------------
19209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19210 as_fn_exit ()
19211 {
19212 set +e
19213 as_fn_set_status $1
19214 exit $1
19215 } # as_fn_exit
19216
19217 # as_fn_unset VAR
19218 # ---------------
19219 # Portably unset VAR.
19220 as_fn_unset ()
19221 {
19222 { eval $1=; unset $1;}
19223 }
19224 as_unset=as_fn_unset
19225 # as_fn_append VAR VALUE
19226 # ----------------------
19227 # Append the text in VALUE to the end of the definition contained in VAR. Take
19228 # advantage of any shell optimizations that allow amortized linear growth over
19229 # repeated appends, instead of the typical quadratic growth present in naive
19230 # implementations.
19231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19232 eval 'as_fn_append ()
19233 {
19234 eval $1+=\$2
19235 }'
19236 else
19237 as_fn_append ()
19238 {
19239 eval $1=\$$1\$2
19240 }
19241 fi # as_fn_append
19242
19243 # as_fn_arith ARG...
19244 # ------------------
19245 # Perform arithmetic evaluation on the ARGs, and store the result in the
19246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19247 # must be portable across $(()) and expr.
19248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19249 eval 'as_fn_arith ()
19250 {
19251 as_val=$(( $* ))
19252 }'
19253 else
19254 as_fn_arith ()
19255 {
19256 as_val=`expr "$@" || test $? -eq 1`
19257 }
19258 fi # as_fn_arith
19259
19260
19261 if expr a : '\(a\)' >/dev/null 2>&1 &&
19262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19263 as_expr=expr
19264 else
19265 as_expr=false
19266 fi
19267
19268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19269 as_basename=basename
19270 else
19271 as_basename=false
19272 fi
19273
19274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19275 as_dirname=dirname
19276 else
19277 as_dirname=false
19278 fi
19279
19280 as_me=`$as_basename -- "$0" ||
19281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19282 X"$0" : 'X\(//\)$' \| \
19283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19284 $as_echo X/"$0" |
19285 sed '/^.*\/\([^/][^/]*\)\/*$/{
19286 s//\1/
19287 q
19288 }
19289 /^X\/\(\/\/\)$/{
19290 s//\1/
19291 q
19292 }
19293 /^X\/\(\/\).*/{
19294 s//\1/
19295 q
19296 }
19297 s/.*/./; q'`
19298
19299 # Avoid depending upon Character Ranges.
19300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19303 as_cr_digits='0123456789'
19304 as_cr_alnum=$as_cr_Letters$as_cr_digits
19305
19306 ECHO_C= ECHO_N= ECHO_T=
19307 case `echo -n x` in #(((((
19308 -n*)
19309 case `echo 'xy\c'` in
19310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19311 xy) ECHO_C='\c';;
19312 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19313 ECHO_T=' ';;
19314 esac;;
19315 *)
19316 ECHO_N='-n';;
19317 esac
19318
19319 rm -f conf$$ conf$$.exe conf$$.file
19320 if test -d conf$$.dir; then
19321 rm -f conf$$.dir/conf$$.file
19322 else
19323 rm -f conf$$.dir
19324 mkdir conf$$.dir 2>/dev/null
19325 fi
19326 if (echo >conf$$.file) 2>/dev/null; then
19327 if ln -s conf$$.file conf$$ 2>/dev/null; then
19328 as_ln_s='ln -s'
19329 # ... but there are two gotchas:
19330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19332 # In both cases, we have to default to `cp -pR'.
19333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19334 as_ln_s='cp -pR'
19335 elif ln conf$$.file conf$$ 2>/dev/null; then
19336 as_ln_s=ln
19337 else
19338 as_ln_s='cp -pR'
19339 fi
19340 else
19341 as_ln_s='cp -pR'
19342 fi
19343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19344 rmdir conf$$.dir 2>/dev/null
19345
19346
19347 # as_fn_mkdir_p
19348 # -------------
19349 # Create "$as_dir" as a directory, including parents if necessary.
19350 as_fn_mkdir_p ()
19351 {
19352
19353 case $as_dir in #(
19354 -*) as_dir=./$as_dir;;
19355 esac
19356 test -d "$as_dir" || eval $as_mkdir_p || {
19357 as_dirs=
19358 while :; do
19359 case $as_dir in #(
19360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19361 *) as_qdir=$as_dir;;
19362 esac
19363 as_dirs="'$as_qdir' $as_dirs"
19364 as_dir=`$as_dirname -- "$as_dir" ||
19365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19366 X"$as_dir" : 'X\(//\)[^/]' \| \
19367 X"$as_dir" : 'X\(//\)$' \| \
19368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19369 $as_echo X"$as_dir" |
19370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19371 s//\1/
19372 q
19373 }
19374 /^X\(\/\/\)[^/].*/{
19375 s//\1/
19376 q
19377 }
19378 /^X\(\/\/\)$/{
19379 s//\1/
19380 q
19381 }
19382 /^X\(\/\).*/{
19383 s//\1/
19384 q
19385 }
19386 s/.*/./; q'`
19387 test -d "$as_dir" && break
19388 done
19389 test -z "$as_dirs" || eval "mkdir $as_dirs"
19390 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19391
19392
19393 } # as_fn_mkdir_p
19394 if mkdir -p . 2>/dev/null; then
19395 as_mkdir_p='mkdir -p "$as_dir"'
19396 else
19397 test -d ./-p && rmdir ./-p
19398 as_mkdir_p=false
19399 fi
19400
19401
19402 # as_fn_executable_p FILE
19403 # -----------------------
19404 # Test if FILE is an executable regular file.
19405 as_fn_executable_p ()
19406 {
19407 test -f "$1" && test -x "$1"
19408 } # as_fn_executable_p
19409 as_test_x='test -x'
19410 as_executable_p=as_fn_executable_p
19411
19412 # Sed expression to map a string onto a valid CPP name.
19413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19414
19415 # Sed expression to map a string onto a valid variable name.
19416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19417
19418
19419 exec 6>&1
19420 ## ----------------------------------- ##
19421 ## Main body of $CONFIG_STATUS script. ##
19422 ## ----------------------------------- ##
19423 _ASEOF
19424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19425
19426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19427 # Save the log message, to keep $0 and so on meaningful, and to
19428 # report actual input values of CONFIG_FILES etc. instead of their
19429 # values after options handling.
19430 ac_log="
19431 This file was extended by xf86-video-i740 $as_me 1.3.6, which was
19432 generated by GNU Autoconf 2.69. Invocation command line was
19433
19434 CONFIG_FILES = $CONFIG_FILES
19435 CONFIG_HEADERS = $CONFIG_HEADERS
19436 CONFIG_LINKS = $CONFIG_LINKS
19437 CONFIG_COMMANDS = $CONFIG_COMMANDS
19438 $ $0 $@
19439
19440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19441 "
19442
19443 _ACEOF
19444
19445 case $ac_config_files in *"
19446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19447 esac
19448
19449 case $ac_config_headers in *"
19450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19451 esac
19452
19453
19454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 # Files that config.status was made for.
19456 config_files="$ac_config_files"
19457 config_headers="$ac_config_headers"
19458 config_commands="$ac_config_commands"
19459
19460 _ACEOF
19461
19462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19463 ac_cs_usage="\
19464 \`$as_me' instantiates files and other configuration actions
19465 from templates according to the current configuration. Unless the files
19466 and actions are specified as TAGs, all are instantiated by default.
19467
19468 Usage: $0 [OPTION]... [TAG]...
19469
19470 -h, --help print this help, then exit
19471 -V, --version print version number and configuration settings, then exit
19472 --config print configuration, then exit
19473 -q, --quiet, --silent
19474 do not print progress messages
19475 -d, --debug don't remove temporary files
19476 --recheck update $as_me by reconfiguring in the same conditions
19477 --file=FILE[:TEMPLATE]
19478 instantiate the configuration file FILE
19479 --header=FILE[:TEMPLATE]
19480 instantiate the configuration header FILE
19481
19482 Configuration files:
19483 $config_files
19484
19485 Configuration headers:
19486 $config_headers
19487
19488 Configuration commands:
19489 $config_commands
19490
19491 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19492
19493 _ACEOF
19494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19496 ac_cs_version="\\
19497 xf86-video-i740 config.status 1.3.6
19498 configured by $0, generated by GNU Autoconf 2.69,
19499 with options \\"\$ac_cs_config\\"
19500
19501 Copyright (C) 2012 Free Software Foundation, Inc.
19502 This config.status script is free software; the Free Software Foundation
19503 gives unlimited permission to copy, distribute and modify it."
19504
19505 ac_pwd='$ac_pwd'
19506 srcdir='$srcdir'
19507 INSTALL='$INSTALL'
19508 MKDIR_P='$MKDIR_P'
19509 AWK='$AWK'
19510 test -n "\$AWK" || AWK=awk
19511 _ACEOF
19512
19513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19514 # The default lists apply if the user does not specify any file.
19515 ac_need_defaults=:
19516 while test $# != 0
19517 do
19518 case $1 in
19519 --*=?*)
19520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19522 ac_shift=:
19523 ;;
19524 --*=)
19525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19526 ac_optarg=
19527 ac_shift=:
19528 ;;
19529 *)
19530 ac_option=$1
19531 ac_optarg=$2
19532 ac_shift=shift
19533 ;;
19534 esac
19535
19536 case $ac_option in
19537 # Handling of the options.
19538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19539 ac_cs_recheck=: ;;
19540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19541 $as_echo "$ac_cs_version"; exit ;;
19542 --config | --confi | --conf | --con | --co | --c )
19543 $as_echo "$ac_cs_config"; exit ;;
19544 --debug | --debu | --deb | --de | --d | -d )
19545 debug=: ;;
19546 --file | --fil | --fi | --f )
19547 $ac_shift
19548 case $ac_optarg in
19549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19550 '') as_fn_error $? "missing file argument" ;;
19551 esac
19552 as_fn_append CONFIG_FILES " '$ac_optarg'"
19553 ac_need_defaults=false;;
19554 --header | --heade | --head | --hea )
19555 $ac_shift
19556 case $ac_optarg in
19557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19558 esac
19559 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19560 ac_need_defaults=false;;
19561 --he | --h)
19562 # Conflict between --help and --header
19563 as_fn_error $? "ambiguous option: \`$1'
19564 Try \`$0 --help' for more information.";;
19565 --help | --hel | -h )
19566 $as_echo "$ac_cs_usage"; exit ;;
19567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19569 ac_cs_silent=: ;;
19570
19571 # This is an error.
19572 -*) as_fn_error $? "unrecognized option: \`$1'
19573 Try \`$0 --help' for more information." ;;
19574
19575 *) as_fn_append ac_config_targets " $1"
19576 ac_need_defaults=false ;;
19577
19578 esac
19579 shift
19580 done
19581
19582 ac_configure_extra_args=
19583
19584 if $ac_cs_silent; then
19585 exec 6>/dev/null
19586 ac_configure_extra_args="$ac_configure_extra_args --silent"
19587 fi
19588
19589 _ACEOF
19590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19591 if \$ac_cs_recheck; then
19592 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19593 shift
19594 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19595 CONFIG_SHELL='$SHELL'
19596 export CONFIG_SHELL
19597 exec "\$@"
19598 fi
19599
19600 _ACEOF
19601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19602 exec 5>>config.log
19603 {
19604 echo
19605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19606 ## Running $as_me. ##
19607 _ASBOX
19608 $as_echo "$ac_log"
19609 } >&5
19610
19611 _ACEOF
19612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19613 #
19614 # INIT-COMMANDS
19615 #
19616 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19617
19618
19619 # The HP-UX ksh and POSIX shell print the target directory to stdout
19620 # if CDPATH is set.
19621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19622
19623 sed_quote_subst='$sed_quote_subst'
19624 double_quote_subst='$double_quote_subst'
19625 delay_variable_subst='$delay_variable_subst'
19626 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19627 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19628 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19629 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19630 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19631 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19632 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19633 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19634 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19635 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19636 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19637 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19638 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19639 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19640 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19641 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19642 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19643 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19644 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19645 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19646 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19647 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19648 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19649 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19650 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19651 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19652 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19653 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19654 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19655 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19656 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19657 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19658 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19659 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19660 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19661 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19662 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19663 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19664 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19665 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19666 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19667 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19668 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19669 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19670 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19671 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19672 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19673 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19674 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19675 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19676 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19677 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19678 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19679 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19680 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19681 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19682 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19683 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19684 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"`'
19685 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19686 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19687 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19688 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19689 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19690 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19691 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19692 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19693 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19694 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19695 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19696 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19697 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19698 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19699 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19700 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19701 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19702 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19703 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19704 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19705 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19706 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19707 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19708 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19709 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19710 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19711 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19712 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19713 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19714 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19715 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19716 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19717 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19718 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19719 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19720 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19721 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19722 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19723 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19724 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19725 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19726 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19727 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19728 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19729 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19730 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19731 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19732 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19733 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19734 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19735 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19736 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19737 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19738 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19739 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19740 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19741 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19742 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19743 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19744 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19745 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19746 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19747 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19748 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19749 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19750 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19751 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19752 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19753 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19754 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19755 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19756 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19757 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19758 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19759 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19760 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19761
19762 LTCC='$LTCC'
19763 LTCFLAGS='$LTCFLAGS'
19764 compiler='$compiler_DEFAULT'
19765
19766 # A function that is used when there is no print builtin or printf.
19767 func_fallback_echo ()
19768 {
19769 eval 'cat <<_LTECHO_EOF
19770 \$1
19771 _LTECHO_EOF'
19772 }
19773
19774 # Quote evaled strings.
19775 for var in SHELL \
19776 ECHO \
19777 PATH_SEPARATOR \
19778 SED \
19779 GREP \
19780 EGREP \
19781 FGREP \
19782 LD \
19783 NM \
19784 LN_S \
19785 lt_SP2NL \
19786 lt_NL2SP \
19787 reload_flag \
19788 OBJDUMP \
19789 deplibs_check_method \
19790 file_magic_cmd \
19791 file_magic_glob \
19792 want_nocaseglob \
19793 DLLTOOL \
19794 sharedlib_from_linklib_cmd \
19795 AR \
19796 AR_FLAGS \
19797 archiver_list_spec \
19798 STRIP \
19799 RANLIB \
19800 CC \
19801 CFLAGS \
19802 compiler \
19803 lt_cv_sys_global_symbol_pipe \
19804 lt_cv_sys_global_symbol_to_cdecl \
19805 lt_cv_sys_global_symbol_to_import \
19806 lt_cv_sys_global_symbol_to_c_name_address \
19807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19808 lt_cv_nm_interface \
19809 nm_file_list_spec \
19810 lt_cv_truncate_bin \
19811 lt_prog_compiler_no_builtin_flag \
19812 lt_prog_compiler_pic \
19813 lt_prog_compiler_wl \
19814 lt_prog_compiler_static \
19815 lt_cv_prog_compiler_c_o \
19816 need_locks \
19817 MANIFEST_TOOL \
19818 DSYMUTIL \
19819 NMEDIT \
19820 LIPO \
19821 OTOOL \
19822 OTOOL64 \
19823 shrext_cmds \
19824 export_dynamic_flag_spec \
19825 whole_archive_flag_spec \
19826 compiler_needs_object \
19827 with_gnu_ld \
19828 allow_undefined_flag \
19829 no_undefined_flag \
19830 hardcode_libdir_flag_spec \
19831 hardcode_libdir_separator \
19832 exclude_expsyms \
19833 include_expsyms \
19834 file_list_spec \
19835 variables_saved_for_relink \
19836 libname_spec \
19837 library_names_spec \
19838 soname_spec \
19839 install_override_mode \
19840 finish_eval \
19841 old_striplib \
19842 striplib; do
19843 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19844 *[\\\\\\\`\\"\\\$]*)
19845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19846 ;;
19847 *)
19848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19849 ;;
19850 esac
19851 done
19852
19853 # Double-quote double-evaled strings.
19854 for var in reload_cmds \
19855 old_postinstall_cmds \
19856 old_postuninstall_cmds \
19857 old_archive_cmds \
19858 extract_expsyms_cmds \
19859 old_archive_from_new_cmds \
19860 old_archive_from_expsyms_cmds \
19861 archive_cmds \
19862 archive_expsym_cmds \
19863 module_cmds \
19864 module_expsym_cmds \
19865 export_symbols_cmds \
19866 prelink_cmds \
19867 postlink_cmds \
19868 postinstall_cmds \
19869 postuninstall_cmds \
19870 finish_cmds \
19871 sys_lib_search_path_spec \
19872 configure_time_dlsearch_path \
19873 configure_time_lt_sys_library_path; do
19874 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19875 *[\\\\\\\`\\"\\\$]*)
19876 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19877 ;;
19878 *)
19879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19880 ;;
19881 esac
19882 done
19883
19884 ac_aux_dir='$ac_aux_dir'
19885
19886 # See if we are running on zsh, and set the options that allow our
19887 # commands through without removal of \ escapes INIT.
19888 if test -n "\${ZSH_VERSION+set}"; then
19889 setopt NO_GLOB_SUBST
19890 fi
19891
19892
19893 PACKAGE='$PACKAGE'
19894 VERSION='$VERSION'
19895 RM='$RM'
19896 ofile='$ofile'
19897
19898
19899
19900
19901 _ACEOF
19902
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904
19905 # Handling of arguments.
19906 for ac_config_target in $ac_config_targets
19907 do
19908 case $ac_config_target in
19909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19910 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19911 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19913 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19914 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19915
19916 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19917 esac
19918 done
19919
19920
19921 # If the user did not use the arguments to specify the items to instantiate,
19922 # then the envvar interface is used. Set only those that are not.
19923 # We use the long form for the default assignment because of an extremely
19924 # bizarre bug on SunOS 4.1.3.
19925 if $ac_need_defaults; then
19926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19928 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19929 fi
19930
19931 # Have a temporary directory for convenience. Make it in the build tree
19932 # simply because there is no reason against having it here, and in addition,
19933 # creating and moving files from /tmp can sometimes cause problems.
19934 # Hook for its removal unless debugging.
19935 # Note that there is a small window in which the directory will not be cleaned:
19936 # after its creation but before its name has been assigned to `$tmp'.
19937 $debug ||
19938 {
19939 tmp= ac_tmp=
19940 trap 'exit_status=$?
19941 : "${ac_tmp:=$tmp}"
19942 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19943 ' 0
19944 trap 'as_fn_exit 1' 1 2 13 15
19945 }
19946 # Create a (secure) tmp directory for tmp files.
19947
19948 {
19949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19950 test -d "$tmp"
19951 } ||
19952 {
19953 tmp=./conf$$-$RANDOM
19954 (umask 077 && mkdir "$tmp")
19955 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19956 ac_tmp=$tmp
19957
19958 # Set up the scripts for CONFIG_FILES section.
19959 # No need to generate them if there are no CONFIG_FILES.
19960 # This happens for instance with `./config.status config.h'.
19961 if test -n "$CONFIG_FILES"; then
19962
19963
19964 ac_cr=`echo X | tr X '\015'`
19965 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19966 # But we know of no other shell where ac_cr would be empty at this
19967 # point, so we can use a bashism as a fallback.
19968 if test "x$ac_cr" = x; then
19969 eval ac_cr=\$\'\\r\'
19970 fi
19971 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19972 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19973 ac_cs_awk_cr='\\r'
19974 else
19975 ac_cs_awk_cr=$ac_cr
19976 fi
19977
19978 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19979 _ACEOF
19980
19981
19982 {
19983 echo "cat >conf$$subs.awk <<_ACEOF" &&
19984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19985 echo "_ACEOF"
19986 } >conf$$subs.sh ||
19987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19989 ac_delim='%!_!# '
19990 for ac_last_try in false false false false false :; do
19991 . ./conf$$subs.sh ||
19992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19993
19994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19995 if test $ac_delim_n = $ac_delim_num; then
19996 break
19997 elif $ac_last_try; then
19998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19999 else
20000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20001 fi
20002 done
20003 rm -f conf$$subs.sh
20004
20005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20007 _ACEOF
20008 sed -n '
20009 h
20010 s/^/S["/; s/!.*/"]=/
20011 p
20012 g
20013 s/^[^!]*!//
20014 :repl
20015 t repl
20016 s/'"$ac_delim"'$//
20017 t delim
20018 :nl
20019 h
20020 s/\(.\{148\}\)..*/\1/
20021 t more1
20022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20023 p
20024 n
20025 b repl
20026 :more1
20027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20028 p
20029 g
20030 s/.\{148\}//
20031 t nl
20032 :delim
20033 h
20034 s/\(.\{148\}\)..*/\1/
20035 t more2
20036 s/["\\]/\\&/g; s/^/"/; s/$/"/
20037 p
20038 b
20039 :more2
20040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20041 p
20042 g
20043 s/.\{148\}//
20044 t delim
20045 ' <conf$$subs.awk | sed '
20046 /^[^""]/{
20047 N
20048 s/\n//
20049 }
20050 ' >>$CONFIG_STATUS || ac_write_fail=1
20051 rm -f conf$$subs.awk
20052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20053 _ACAWK
20054 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20055 for (key in S) S_is_set[key] = 1
20056 FS = ""
20057
20058 }
20059 {
20060 line = $ 0
20061 nfields = split(line, field, "@")
20062 substed = 0
20063 len = length(field[1])
20064 for (i = 2; i < nfields; i++) {
20065 key = field[i]
20066 keylen = length(key)
20067 if (S_is_set[key]) {
20068 value = S[key]
20069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20070 len += length(value) + length(field[++i])
20071 substed = 1
20072 } else
20073 len += 1 + keylen
20074 }
20075
20076 print line
20077 }
20078
20079 _ACAWK
20080 _ACEOF
20081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20082 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20083 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20084 else
20085 cat
20086 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20087 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20088 _ACEOF
20089
20090 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20091 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20092 # trailing colons and then remove the whole line if VPATH becomes empty
20093 # (actually we leave an empty line to preserve line numbers).
20094 if test "x$srcdir" = x.; then
20095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20096 h
20097 s///
20098 s/^/:/
20099 s/[ ]*$/:/
20100 s/:\$(srcdir):/:/g
20101 s/:\${srcdir}:/:/g
20102 s/:@srcdir@:/:/g
20103 s/^:*//
20104 s/:*$//
20105 x
20106 s/\(=[ ]*\).*/\1/
20107 G
20108 s/\n//
20109 s/^[^=]*=[ ]*$//
20110 }'
20111 fi
20112
20113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20114 fi # test -n "$CONFIG_FILES"
20115
20116 # Set up the scripts for CONFIG_HEADERS section.
20117 # No need to generate them if there are no CONFIG_HEADERS.
20118 # This happens for instance with `./config.status Makefile'.
20119 if test -n "$CONFIG_HEADERS"; then
20120 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20121 BEGIN {
20122 _ACEOF
20123
20124 # Transform confdefs.h into an awk script `defines.awk', embedded as
20125 # here-document in config.status, that substitutes the proper values into
20126 # config.h.in to produce config.h.
20127
20128 # Create a delimiter string that does not exist in confdefs.h, to ease
20129 # handling of long lines.
20130 ac_delim='%!_!# '
20131 for ac_last_try in false false :; do
20132 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20133 if test -z "$ac_tt"; then
20134 break
20135 elif $ac_last_try; then
20136 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20137 else
20138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20139 fi
20140 done
20141
20142 # For the awk script, D is an array of macro values keyed by name,
20143 # likewise P contains macro parameters if any. Preserve backslash
20144 # newline sequences.
20145
20146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20147 sed -n '
20148 s/.\{148\}/&'"$ac_delim"'/g
20149 t rset
20150 :rset
20151 s/^[ ]*#[ ]*define[ ][ ]*/ /
20152 t def
20153 d
20154 :def
20155 s/\\$//
20156 t bsnl
20157 s/["\\]/\\&/g
20158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20159 D["\1"]=" \3"/p
20160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20161 d
20162 :bsnl
20163 s/["\\]/\\&/g
20164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20165 D["\1"]=" \3\\\\\\n"\\/p
20166 t cont
20167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20168 t cont
20169 d
20170 :cont
20171 n
20172 s/.\{148\}/&'"$ac_delim"'/g
20173 t clear
20174 :clear
20175 s/\\$//
20176 t bsnlc
20177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20178 d
20179 :bsnlc
20180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20181 b cont
20182 ' <confdefs.h | sed '
20183 s/'"$ac_delim"'/"\\\
20184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20185
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 for (key in D) D_is_set[key] = 1
20188 FS = ""
20189 }
20190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20191 line = \$ 0
20192 split(line, arg, " ")
20193 if (arg[1] == "#") {
20194 defundef = arg[2]
20195 mac1 = arg[3]
20196 } else {
20197 defundef = substr(arg[1], 2)
20198 mac1 = arg[2]
20199 }
20200 split(mac1, mac2, "(") #)
20201 macro = mac2[1]
20202 prefix = substr(line, 1, index(line, defundef) - 1)
20203 if (D_is_set[macro]) {
20204 # Preserve the white space surrounding the "#".
20205 print prefix "define", macro P[macro] D[macro]
20206 next
20207 } else {
20208 # Replace #undef with comments. This is necessary, for example,
20209 # in the case of _POSIX_SOURCE, which is predefined and required
20210 # on some systems where configure will not decide to define it.
20211 if (defundef == "undef") {
20212 print "/*", prefix defundef, macro, "*/"
20213 next
20214 }
20215 }
20216 }
20217 { print }
20218 _ACAWK
20219 _ACEOF
20220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20221 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20222 fi # test -n "$CONFIG_HEADERS"
20223
20224
20225 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20226 shift
20227 for ac_tag
20228 do
20229 case $ac_tag in
20230 :[FHLC]) ac_mode=$ac_tag; continue;;
20231 esac
20232 case $ac_mode$ac_tag in
20233 :[FHL]*:*);;
20234 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20235 :[FH]-) ac_tag=-:-;;
20236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20237 esac
20238 ac_save_IFS=$IFS
20239 IFS=:
20240 set x $ac_tag
20241 IFS=$ac_save_IFS
20242 shift
20243 ac_file=$1
20244 shift
20245
20246 case $ac_mode in
20247 :L) ac_source=$1;;
20248 :[FH])
20249 ac_file_inputs=
20250 for ac_f
20251 do
20252 case $ac_f in
20253 -) ac_f="$ac_tmp/stdin";;
20254 *) # Look for the file first in the build tree, then in the source tree
20255 # (if the path is not absolute). The absolute path cannot be DOS-style,
20256 # because $ac_f cannot contain `:'.
20257 test -f "$ac_f" ||
20258 case $ac_f in
20259 [\\/$]*) false;;
20260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20261 esac ||
20262 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20263 esac
20264 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20265 as_fn_append ac_file_inputs " '$ac_f'"
20266 done
20267
20268 # Let's still pretend it is `configure' which instantiates (i.e., don't
20269 # use $as_me), people would be surprised to read:
20270 # /* config.h. Generated by config.status. */
20271 configure_input='Generated from '`
20272 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20273 `' by configure.'
20274 if test x"$ac_file" != x-; then
20275 configure_input="$ac_file. $configure_input"
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20277 $as_echo "$as_me: creating $ac_file" >&6;}
20278 fi
20279 # Neutralize special characters interpreted by sed in replacement strings.
20280 case $configure_input in #(
20281 *\&* | *\|* | *\\* )
20282 ac_sed_conf_input=`$as_echo "$configure_input" |
20283 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20284 *) ac_sed_conf_input=$configure_input;;
20285 esac
20286
20287 case $ac_tag in
20288 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20290 esac
20291 ;;
20292 esac
20293
20294 ac_dir=`$as_dirname -- "$ac_file" ||
20295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20296 X"$ac_file" : 'X\(//\)[^/]' \| \
20297 X"$ac_file" : 'X\(//\)$' \| \
20298 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20299 $as_echo X"$ac_file" |
20300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20301 s//\1/
20302 q
20303 }
20304 /^X\(\/\/\)[^/].*/{
20305 s//\1/
20306 q
20307 }
20308 /^X\(\/\/\)$/{
20309 s//\1/
20310 q
20311 }
20312 /^X\(\/\).*/{
20313 s//\1/
20314 q
20315 }
20316 s/.*/./; q'`
20317 as_dir="$ac_dir"; as_fn_mkdir_p
20318 ac_builddir=.
20319
20320 case "$ac_dir" in
20321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20322 *)
20323 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20324 # A ".." for each directory in $ac_dir_suffix.
20325 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20326 case $ac_top_builddir_sub in
20327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20329 esac ;;
20330 esac
20331 ac_abs_top_builddir=$ac_pwd
20332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20333 # for backward compatibility:
20334 ac_top_builddir=$ac_top_build_prefix
20335
20336 case $srcdir in
20337 .) # We are building in place.
20338 ac_srcdir=.
20339 ac_top_srcdir=$ac_top_builddir_sub
20340 ac_abs_top_srcdir=$ac_pwd ;;
20341 [\\/]* | ?:[\\/]* ) # Absolute name.
20342 ac_srcdir=$srcdir$ac_dir_suffix;
20343 ac_top_srcdir=$srcdir
20344 ac_abs_top_srcdir=$srcdir ;;
20345 *) # Relative name.
20346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20347 ac_top_srcdir=$ac_top_build_prefix$srcdir
20348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20349 esac
20350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20351
20352
20353 case $ac_mode in
20354 :F)
20355 #
20356 # CONFIG_FILE
20357 #
20358
20359 case $INSTALL in
20360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20362 esac
20363 ac_MKDIR_P=$MKDIR_P
20364 case $MKDIR_P in
20365 [\\/$]* | ?:[\\/]* ) ;;
20366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20367 esac
20368 _ACEOF
20369
20370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20371 # If the template does not know about datarootdir, expand it.
20372 # FIXME: This hack should be removed a few years after 2.60.
20373 ac_datarootdir_hack=; ac_datarootdir_seen=
20374 ac_sed_dataroot='
20375 /datarootdir/ {
20376 p
20377 q
20378 }
20379 /@datadir@/p
20380 /@docdir@/p
20381 /@infodir@/p
20382 /@localedir@/p
20383 /@mandir@/p'
20384 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20385 *datarootdir*) ac_datarootdir_seen=yes;;
20386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20388 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20389 _ACEOF
20390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20391 ac_datarootdir_hack='
20392 s&@datadir@&$datadir&g
20393 s&@docdir@&$docdir&g
20394 s&@infodir@&$infodir&g
20395 s&@localedir@&$localedir&g
20396 s&@mandir@&$mandir&g
20397 s&\\\${datarootdir}&$datarootdir&g' ;;
20398 esac
20399 _ACEOF
20400
20401 # Neutralize VPATH when `$srcdir' = `.'.
20402 # Shell code in configure.ac might set extrasub.
20403 # FIXME: do we really want to maintain this feature?
20404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20405 ac_sed_extra="$ac_vpsub
20406 $extrasub
20407 _ACEOF
20408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20409 :t
20410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20411 s|@configure_input@|$ac_sed_conf_input|;t t
20412 s&@top_builddir@&$ac_top_builddir_sub&;t t
20413 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20414 s&@srcdir@&$ac_srcdir&;t t
20415 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20416 s&@top_srcdir@&$ac_top_srcdir&;t t
20417 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20418 s&@builddir@&$ac_builddir&;t t
20419 s&@abs_builddir@&$ac_abs_builddir&;t t
20420 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20421 s&@INSTALL@&$ac_INSTALL&;t t
20422 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20423 $ac_datarootdir_hack
20424 "
20425 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20427
20428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20433 which seems to be undefined. Please make sure it is defined" >&5
20434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20435 which seems to be undefined. Please make sure it is defined" >&2;}
20436
20437 rm -f "$ac_tmp/stdin"
20438 case $ac_file in
20439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20441 esac \
20442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20443 ;;
20444 :H)
20445 #
20446 # CONFIG_HEADER
20447 #
20448 if test x"$ac_file" != x-; then
20449 {
20450 $as_echo "/* $configure_input */" \
20451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20452 } >"$ac_tmp/config.h" \
20453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20457 else
20458 rm -f "$ac_file"
20459 mv "$ac_tmp/config.h" "$ac_file" \
20460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20461 fi
20462 else
20463 $as_echo "/* $configure_input */" \
20464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20465 || as_fn_error $? "could not create -" "$LINENO" 5
20466 fi
20467 # Compute "$ac_file"'s index in $config_headers.
20468 _am_arg="$ac_file"
20469 _am_stamp_count=1
20470 for _am_header in $config_headers :; do
20471 case $_am_header in
20472 $_am_arg | $_am_arg:* )
20473 break ;;
20474 * )
20475 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20476 esac
20477 done
20478 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20479 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20480 X"$_am_arg" : 'X\(//\)[^/]' \| \
20481 X"$_am_arg" : 'X\(//\)$' \| \
20482 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20483 $as_echo X"$_am_arg" |
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20485 s//\1/
20486 q
20487 }
20488 /^X\(\/\/\)[^/].*/{
20489 s//\1/
20490 q
20491 }
20492 /^X\(\/\/\)$/{
20493 s//\1/
20494 q
20495 }
20496 /^X\(\/\).*/{
20497 s//\1/
20498 q
20499 }
20500 s/.*/./; q'`/stamp-h$_am_stamp_count
20501 ;;
20502
20503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20504 $as_echo "$as_me: executing $ac_file commands" >&6;}
20505 ;;
20506 esac
20507
20508
20509 case $ac_file$ac_mode in
20510 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20511 # Older Autoconf quotes --file arguments for eval, but not when files
20512 # are listed without --file. Let's play safe and only enable the eval
20513 # if we detect the quoting.
20514 case $CONFIG_FILES in
20515 *\'*) eval set x "$CONFIG_FILES" ;;
20516 *) set x $CONFIG_FILES ;;
20517 esac
20518 shift
20519 for mf
20520 do
20521 # Strip MF so we end up with the name of the file.
20522 mf=`echo "$mf" | sed -e 's/:.*$//'`
20523 # Check whether this is an Automake generated Makefile or not.
20524 # We used to match only the files named 'Makefile.in', but
20525 # some people rename them; so instead we look at the file content.
20526 # Grep'ing the first line is not enough: some people post-process
20527 # each Makefile.in and add a new line on top of each file to say so.
20528 # Grep'ing the whole file is not good either: AIX grep has a line
20529 # limit of 2048, but all sed's we know have understand at least 4000.
20530 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20531 dirpart=`$as_dirname -- "$mf" ||
20532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20533 X"$mf" : 'X\(//\)[^/]' \| \
20534 X"$mf" : 'X\(//\)$' \| \
20535 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20536 $as_echo X"$mf" |
20537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20538 s//\1/
20539 q
20540 }
20541 /^X\(\/\/\)[^/].*/{
20542 s//\1/
20543 q
20544 }
20545 /^X\(\/\/\)$/{
20546 s//\1/
20547 q
20548 }
20549 /^X\(\/\).*/{
20550 s//\1/
20551 q
20552 }
20553 s/.*/./; q'`
20554 else
20555 continue
20556 fi
20557 # Extract the definition of DEPDIR, am__include, and am__quote
20558 # from the Makefile without running 'make'.
20559 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20560 test -z "$DEPDIR" && continue
20561 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20562 test -z "$am__include" && continue
20563 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20564 # Find all dependency output files, they are included files with
20565 # $(DEPDIR) in their names. We invoke sed twice because it is the
20566 # simplest approach to changing $(DEPDIR) to its actual value in the
20567 # expansion.
20568 for file in `sed -n "
20569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20571 # Make sure the directory exists.
20572 test -f "$dirpart/$file" && continue
20573 fdir=`$as_dirname -- "$file" ||
20574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20575 X"$file" : 'X\(//\)[^/]' \| \
20576 X"$file" : 'X\(//\)$' \| \
20577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20578 $as_echo X"$file" |
20579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20580 s//\1/
20581 q
20582 }
20583 /^X\(\/\/\)[^/].*/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)$/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\).*/{
20592 s//\1/
20593 q
20594 }
20595 s/.*/./; q'`
20596 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20597 # echo "creating $dirpart/$file"
20598 echo '# dummy' > "$dirpart/$file"
20599 done
20600 done
20601 }
20602 ;;
20603 "libtool":C)
20604
20605 # See if we are running on zsh, and set the options that allow our
20606 # commands through without removal of \ escapes.
20607 if test -n "${ZSH_VERSION+set}"; then
20608 setopt NO_GLOB_SUBST
20609 fi
20610
20611 cfgfile=${ofile}T
20612 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20613 $RM "$cfgfile"
20614
20615 cat <<_LT_EOF >> "$cfgfile"
20616 #! $SHELL
20617 # Generated automatically by $as_me ($PACKAGE) $VERSION
20618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20619 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20620
20621 # Provide generalized library-building support services.
20622 # Written by Gordon Matzigkeit, 1996
20623
20624 # Copyright (C) 2014 Free Software Foundation, Inc.
20625 # This is free software; see the source for copying conditions. There is NO
20626 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20627
20628 # GNU Libtool is free software; you can redistribute it and/or modify
20629 # it under the terms of the GNU General Public License as published by
20630 # the Free Software Foundation; either version 2 of of the License, or
20631 # (at your option) any later version.
20632 #
20633 # As a special exception to the GNU General Public License, if you
20634 # distribute this file as part of a program or library that is built
20635 # using GNU Libtool, you may include this file under the same
20636 # distribution terms that you use for the rest of that program.
20637 #
20638 # GNU Libtool is distributed in the hope that it will be useful, but
20639 # WITHOUT ANY WARRANTY; without even the implied warranty of
20640 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20641 # GNU General Public License for more details.
20642 #
20643 # You should have received a copy of the GNU General Public License
20644 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20645
20646
20647 # The names of the tagged configurations supported by this script.
20648 available_tags=''
20649
20650 # Configured defaults for sys_lib_dlsearch_path munging.
20651 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20652
20653 # ### BEGIN LIBTOOL CONFIG
20654
20655 # Whether or not to build static libraries.
20656 build_old_libs=$enable_static
20657
20658 # Which release of libtool.m4 was used?
20659 macro_version=$macro_version
20660 macro_revision=$macro_revision
20661
20662 # Whether or not to build shared libraries.
20663 build_libtool_libs=$enable_shared
20664
20665 # What type of objects to build.
20666 pic_mode=$pic_mode
20667
20668 # Whether or not to optimize for fast installation.
20669 fast_install=$enable_fast_install
20670
20671 # Shared archive member basename,for filename based shared library versioning on AIX.
20672 shared_archive_member_spec=$shared_archive_member_spec
20673
20674 # Shell to use when invoking shell scripts.
20675 SHELL=$lt_SHELL
20676
20677 # An echo program that protects backslashes.
20678 ECHO=$lt_ECHO
20679
20680 # The PATH separator for the build system.
20681 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20682
20683 # The host system.
20684 host_alias=$host_alias
20685 host=$host
20686 host_os=$host_os
20687
20688 # The build system.
20689 build_alias=$build_alias
20690 build=$build
20691 build_os=$build_os
20692
20693 # A sed program that does not truncate output.
20694 SED=$lt_SED
20695
20696 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20697 Xsed="\$SED -e 1s/^X//"
20698
20699 # A grep program that handles long lines.
20700 GREP=$lt_GREP
20701
20702 # An ERE matcher.
20703 EGREP=$lt_EGREP
20704
20705 # A literal string matcher.
20706 FGREP=$lt_FGREP
20707
20708 # A BSD- or MS-compatible name lister.
20709 NM=$lt_NM
20710
20711 # Whether we need soft or hard links.
20712 LN_S=$lt_LN_S
20713
20714 # What is the maximum length of a command?
20715 max_cmd_len=$max_cmd_len
20716
20717 # Object file suffix (normally "o").
20718 objext=$ac_objext
20719
20720 # Executable file suffix (normally "").
20721 exeext=$exeext
20722
20723 # whether the shell understands "unset".
20724 lt_unset=$lt_unset
20725
20726 # turn spaces into newlines.
20727 SP2NL=$lt_lt_SP2NL
20728
20729 # turn newlines into spaces.
20730 NL2SP=$lt_lt_NL2SP
20731
20732 # convert \$build file names to \$host format.
20733 to_host_file_cmd=$lt_cv_to_host_file_cmd
20734
20735 # convert \$build files to toolchain format.
20736 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20737
20738 # An object symbol dumper.
20739 OBJDUMP=$lt_OBJDUMP
20740
20741 # Method to check whether dependent libraries are shared objects.
20742 deplibs_check_method=$lt_deplibs_check_method
20743
20744 # Command to use when deplibs_check_method = "file_magic".
20745 file_magic_cmd=$lt_file_magic_cmd
20746
20747 # How to find potential files when deplibs_check_method = "file_magic".
20748 file_magic_glob=$lt_file_magic_glob
20749
20750 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20751 want_nocaseglob=$lt_want_nocaseglob
20752
20753 # DLL creation program.
20754 DLLTOOL=$lt_DLLTOOL
20755
20756 # Command to associate shared and link libraries.
20757 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20758
20759 # The archiver.
20760 AR=$lt_AR
20761
20762 # Flags to create an archive.
20763 AR_FLAGS=$lt_AR_FLAGS
20764
20765 # How to feed a file listing to the archiver.
20766 archiver_list_spec=$lt_archiver_list_spec
20767
20768 # A symbol stripping program.
20769 STRIP=$lt_STRIP
20770
20771 # Commands used to install an old-style archive.
20772 RANLIB=$lt_RANLIB
20773 old_postinstall_cmds=$lt_old_postinstall_cmds
20774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20775
20776 # Whether to use a lock for old archive extraction.
20777 lock_old_archive_extraction=$lock_old_archive_extraction
20778
20779 # A C compiler.
20780 LTCC=$lt_CC
20781
20782 # LTCC compiler flags.
20783 LTCFLAGS=$lt_CFLAGS
20784
20785 # Take the output of nm and produce a listing of raw symbols and C names.
20786 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20787
20788 # Transform the output of nm in a proper C declaration.
20789 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20790
20791 # Transform the output of nm into a list of symbols to manually relocate.
20792 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20793
20794 # Transform the output of nm in a C name address pair.
20795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20796
20797 # Transform the output of nm in a C name address pair when lib prefix is needed.
20798 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20799
20800 # The name lister interface.
20801 nm_interface=$lt_lt_cv_nm_interface
20802
20803 # Specify filename containing input files for \$NM.
20804 nm_file_list_spec=$lt_nm_file_list_spec
20805
20806 # The root where to search for dependent libraries,and where our libraries should be installed.
20807 lt_sysroot=$lt_sysroot
20808
20809 # Command to truncate a binary pipe.
20810 lt_truncate_bin=$lt_lt_cv_truncate_bin
20811
20812 # The name of the directory that contains temporary libtool files.
20813 objdir=$objdir
20814
20815 # Used to examine libraries when file_magic_cmd begins with "file".
20816 MAGIC_CMD=$MAGIC_CMD
20817
20818 # Must we lock files when doing compilation?
20819 need_locks=$lt_need_locks
20820
20821 # Manifest tool.
20822 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20823
20824 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20825 DSYMUTIL=$lt_DSYMUTIL
20826
20827 # Tool to change global to local symbols on Mac OS X.
20828 NMEDIT=$lt_NMEDIT
20829
20830 # Tool to manipulate fat objects and archives on Mac OS X.
20831 LIPO=$lt_LIPO
20832
20833 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20834 OTOOL=$lt_OTOOL
20835
20836 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20837 OTOOL64=$lt_OTOOL64
20838
20839 # Old archive suffix (normally "a").
20840 libext=$libext
20841
20842 # Shared library suffix (normally ".so").
20843 shrext_cmds=$lt_shrext_cmds
20844
20845 # The commands to extract the exported symbol list from a shared archive.
20846 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20847
20848 # Variables whose values should be saved in libtool wrapper scripts and
20849 # restored at link time.
20850 variables_saved_for_relink=$lt_variables_saved_for_relink
20851
20852 # Do we need the "lib" prefix for modules?
20853 need_lib_prefix=$need_lib_prefix
20854
20855 # Do we need a version for libraries?
20856 need_version=$need_version
20857
20858 # Library versioning type.
20859 version_type=$version_type
20860
20861 # Shared library runtime path variable.
20862 runpath_var=$runpath_var
20863
20864 # Shared library path variable.
20865 shlibpath_var=$shlibpath_var
20866
20867 # Is shlibpath searched before the hard-coded library search path?
20868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20869
20870 # Format of library name prefix.
20871 libname_spec=$lt_libname_spec
20872
20873 # List of archive names. First name is the real one, the rest are links.
20874 # The last name is the one that the linker finds with -lNAME
20875 library_names_spec=$lt_library_names_spec
20876
20877 # The coded name of the library, if different from the real name.
20878 soname_spec=$lt_soname_spec
20879
20880 # Permission mode override for installation of shared libraries.
20881 install_override_mode=$lt_install_override_mode
20882
20883 # Command to use after installation of a shared archive.
20884 postinstall_cmds=$lt_postinstall_cmds
20885
20886 # Command to use after uninstallation of a shared archive.
20887 postuninstall_cmds=$lt_postuninstall_cmds
20888
20889 # Commands used to finish a libtool library installation in a directory.
20890 finish_cmds=$lt_finish_cmds
20891
20892 # As "finish_cmds", except a single script fragment to be evaled but
20893 # not shown.
20894 finish_eval=$lt_finish_eval
20895
20896 # Whether we should hardcode library paths into libraries.
20897 hardcode_into_libs=$hardcode_into_libs
20898
20899 # Compile-time system search path for libraries.
20900 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20901
20902 # Detected run-time system search path for libraries.
20903 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20904
20905 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20906 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20907
20908 # Whether dlopen is supported.
20909 dlopen_support=$enable_dlopen
20910
20911 # Whether dlopen of programs is supported.
20912 dlopen_self=$enable_dlopen_self
20913
20914 # Whether dlopen of statically linked programs is supported.
20915 dlopen_self_static=$enable_dlopen_self_static
20916
20917 # Commands to strip libraries.
20918 old_striplib=$lt_old_striplib
20919 striplib=$lt_striplib
20920
20921
20922 # The linker used to build libraries.
20923 LD=$lt_LD
20924
20925 # How to create reloadable object files.
20926 reload_flag=$lt_reload_flag
20927 reload_cmds=$lt_reload_cmds
20928
20929 # Commands used to build an old-style archive.
20930 old_archive_cmds=$lt_old_archive_cmds
20931
20932 # A language specific compiler.
20933 CC=$lt_compiler
20934
20935 # Is the compiler the GNU compiler?
20936 with_gcc=$GCC
20937
20938 # Compiler flag to turn off builtin functions.
20939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20940
20941 # Additional compiler flags for building library objects.
20942 pic_flag=$lt_lt_prog_compiler_pic
20943
20944 # How to pass a linker flag through the compiler.
20945 wl=$lt_lt_prog_compiler_wl
20946
20947 # Compiler flag to prevent dynamic linking.
20948 link_static_flag=$lt_lt_prog_compiler_static
20949
20950 # Does compiler simultaneously support -c and -o options?
20951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20952
20953 # Whether or not to add -lc for building shared libraries.
20954 build_libtool_need_lc=$archive_cmds_need_lc
20955
20956 # Whether or not to disallow shared libs when runtime libs are static.
20957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20958
20959 # Compiler flag to allow reflexive dlopens.
20960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20961
20962 # Compiler flag to generate shared objects directly from archives.
20963 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20964
20965 # Whether the compiler copes with passing no objects directly.
20966 compiler_needs_object=$lt_compiler_needs_object
20967
20968 # Create an old-style archive from a shared archive.
20969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20970
20971 # Create a temporary old-style archive to link instead of a shared archive.
20972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20973
20974 # Commands used to build a shared archive.
20975 archive_cmds=$lt_archive_cmds
20976 archive_expsym_cmds=$lt_archive_expsym_cmds
20977
20978 # Commands used to build a loadable module if different from building
20979 # a shared archive.
20980 module_cmds=$lt_module_cmds
20981 module_expsym_cmds=$lt_module_expsym_cmds
20982
20983 # Whether we are building with GNU ld or not.
20984 with_gnu_ld=$lt_with_gnu_ld
20985
20986 # Flag that allows shared libraries with undefined symbols to be built.
20987 allow_undefined_flag=$lt_allow_undefined_flag
20988
20989 # Flag that enforces no undefined symbols.
20990 no_undefined_flag=$lt_no_undefined_flag
20991
20992 # Flag to hardcode \$libdir into a binary during linking.
20993 # This must work even if \$libdir does not exist
20994 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20995
20996 # Whether we need a single "-rpath" flag with a separated argument.
20997 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20998
20999 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21000 # DIR into the resulting binary.
21001 hardcode_direct=$hardcode_direct
21002
21003 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21004 # DIR into the resulting binary and the resulting library dependency is
21005 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21006 # library is relocated.
21007 hardcode_direct_absolute=$hardcode_direct_absolute
21008
21009 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21010 # into the resulting binary.
21011 hardcode_minus_L=$hardcode_minus_L
21012
21013 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21014 # into the resulting binary.
21015 hardcode_shlibpath_var=$hardcode_shlibpath_var
21016
21017 # Set to "yes" if building a shared library automatically hardcodes DIR
21018 # into the library and all subsequent libraries and executables linked
21019 # against it.
21020 hardcode_automatic=$hardcode_automatic
21021
21022 # Set to yes if linker adds runtime paths of dependent libraries
21023 # to runtime path list.
21024 inherit_rpath=$inherit_rpath
21025
21026 # Whether libtool must link a program against all its dependency libraries.
21027 link_all_deplibs=$link_all_deplibs
21028
21029 # Set to "yes" if exported symbols are required.
21030 always_export_symbols=$always_export_symbols
21031
21032 # The commands to list exported symbols.
21033 export_symbols_cmds=$lt_export_symbols_cmds
21034
21035 # Symbols that should not be listed in the preloaded symbols.
21036 exclude_expsyms=$lt_exclude_expsyms
21037
21038 # Symbols that must always be exported.
21039 include_expsyms=$lt_include_expsyms
21040
21041 # Commands necessary for linking programs (against libraries) with templates.
21042 prelink_cmds=$lt_prelink_cmds
21043
21044 # Commands necessary for finishing linking programs.
21045 postlink_cmds=$lt_postlink_cmds
21046
21047 # Specify filename containing input files.
21048 file_list_spec=$lt_file_list_spec
21049
21050 # How to hardcode a shared library path into an executable.
21051 hardcode_action=$hardcode_action
21052
21053 # ### END LIBTOOL CONFIG
21054
21055 _LT_EOF
21056
21057 cat <<'_LT_EOF' >> "$cfgfile"
21058
21059 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21060
21061 # func_munge_path_list VARIABLE PATH
21062 # -----------------------------------
21063 # VARIABLE is name of variable containing _space_ separated list of
21064 # directories to be munged by the contents of PATH, which is string
21065 # having a format:
21066 # "DIR[:DIR]:"
21067 # string "DIR[ DIR]" will be prepended to VARIABLE
21068 # ":DIR[:DIR]"
21069 # string "DIR[ DIR]" will be appended to VARIABLE
21070 # "DIRP[:DIRP]::[DIRA:]DIRA"
21071 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21072 # "DIRA[ DIRA]" will be appended to VARIABLE
21073 # "DIR[:DIR]"
21074 # VARIABLE will be replaced by "DIR[ DIR]"
21075 func_munge_path_list ()
21076 {
21077 case x$2 in
21078 x)
21079 ;;
21080 *:)
21081 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21082 ;;
21083 x:*)
21084 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21085 ;;
21086 *::*)
21087 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21088 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21089 ;;
21090 *)
21091 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21092 ;;
21093 esac
21094 }
21095
21096
21097 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21098 func_cc_basename ()
21099 {
21100 for cc_temp in $*""; do
21101 case $cc_temp in
21102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21104 \-*) ;;
21105 *) break;;
21106 esac
21107 done
21108 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21109 }
21110
21111
21112 # ### END FUNCTIONS SHARED WITH CONFIGURE
21113
21114 _LT_EOF
21115
21116 case $host_os in
21117 aix3*)
21118 cat <<\_LT_EOF >> "$cfgfile"
21119 # AIX sometimes has problems with the GCC collect2 program. For some
21120 # reason, if we set the COLLECT_NAMES environment variable, the problems
21121 # vanish in a puff of smoke.
21122 if test set != "${COLLECT_NAMES+set}"; then
21123 COLLECT_NAMES=
21124 export COLLECT_NAMES
21125 fi
21126 _LT_EOF
21127 ;;
21128 esac
21129
21130
21131 ltmain=$ac_aux_dir/ltmain.sh
21132
21133
21134 # We use sed instead of cat because bash on DJGPP gets confused if
21135 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21136 # text mode, it properly converts lines to CR/LF. This bash problem
21137 # is reportedly fixed, but why not run on old versions too?
21138 sed '$q' "$ltmain" >> "$cfgfile" \
21139 || (rm -f "$cfgfile"; exit 1)
21140
21141 mv -f "$cfgfile" "$ofile" ||
21142 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21143 chmod +x "$ofile"
21144
21145 ;;
21146
21147 esac
21148 done # for ac_tag
21149
21150
21151 as_fn_exit 0
21152 _ACEOF
21153 ac_clean_files=$ac_clean_files_save
21154
21155 test $ac_write_fail = 0 ||
21156 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21157
21158
21159 # configure is writing to config.log, and then calls config.status.
21160 # config.status does its own redirection, appending to config.log.
21161 # Unfortunately, on DOS this fails, as config.log is still kept open
21162 # by configure, so config.status won't be able to write to it; its
21163 # output is simply discarded. So we exec the FD to /dev/null,
21164 # effectively closing config.log, so it can be properly (re)opened and
21165 # appended to by config.status. When coming back to configure, we
21166 # need to make the FD available again.
21167 if test "$no_create" != yes; then
21168 ac_cs_success=:
21169 ac_config_status_args=
21170 test "$silent" = yes &&
21171 ac_config_status_args="$ac_config_status_args --quiet"
21172 exec 5>/dev/null
21173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21174 exec 5>>config.log
21175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21176 # would make configure fail if this is the last instruction.
21177 $ac_cs_success || as_fn_exit 1
21178 fi
21179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21182 fi
21183
21184