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-vesa 2.3.4.
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-vesa'
593 PACKAGE_TARNAME='xf86-video-vesa'
594 PACKAGE_VERSION='2.3.4'
595 PACKAGE_STRING='xf86-video-vesa 2.3.4'
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 PCIACCESS_LIBS
642 PCIACCESS_CFLAGS
643 XEXT_LIBS
644 XEXT_CFLAGS
645 XORG_LIBS
646 XORG_CFLAGS
647 moduledir
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 LIBTOOL
666 MAN_SUBSTS
667 XORG_MAN_PAGE
668 ADMIN_MAN_DIR
669 DRIVER_MAN_DIR
670 MISC_MAN_DIR
671 FILE_MAN_DIR
672 LIB_MAN_DIR
673 APP_MAN_DIR
674 ADMIN_MAN_SUFFIX
675 DRIVER_MAN_SUFFIX
676 MISC_MAN_SUFFIX
677 FILE_MAN_SUFFIX
678 LIB_MAN_SUFFIX
679 APP_MAN_SUFFIX
680 SED
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 INSTALL_CMD
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 CHANGELOG_CMD
694 STRICT_CFLAGS
695 CWARNFLAGS
696 BASE_CFLAGS
697 EGREP
698 GREP
699 CPP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_silent_rules
786 enable_dependency_tracking
787 enable_selective_werror
788 enable_strict_compilation
789 enable_static
790 enable_shared
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 with_xorg_module_dir
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CPP
807 PKG_CONFIG
808 PKG_CONFIG_PATH
809 PKG_CONFIG_LIBDIR
810 XORG_CFLAGS
811 XORG_LIBS
812 XEXT_CFLAGS
813 XEXT_LIBS
814 PCIACCESS_CFLAGS
815 PCIACCESS_LIBS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures xf86-video-vesa 2.3.4 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of xf86-video-vesa 2.3.4:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-selective-werror
1441 Turn off selective compiler errors. (default:
1442 enabled)
1443 --enable-strict-compilation
1444 Enable all warnings from compiler and make them
1445 errors (default: disabled)
1446 --enable-static[=PKGS] build static libraries [default=no]
1447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-fast-install[=PKGS]
1449 optimize for fast installation [default=yes]
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1458 --with-sysroot=DIR Search for dependent libraries within DIR
1459 (or the compiler's sysroot if not specified).
1460 --with-xorg-module-dir=DIR
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CPP C preprocessor
1471 PKG_CONFIG path to pkg-config utility
1472 PKG_CONFIG_PATH
1473 directories to add to pkg-config's search path
1474 PKG_CONFIG_LIBDIR
1475 path overriding pkg-config's built-in search path
1476 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1477 XORG_LIBS linker flags for XORG, overriding pkg-config
1478 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1479 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1480 PCIACCESS_CFLAGS
1481 C compiler flags for PCIACCESS, overriding pkg-config
1482 PCIACCESS_LIBS
1483 linker flags for PCIACCESS, overriding pkg-config
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 xf86-video-vesa configure 2.3.4
1552 generated by GNU Autoconf 2.69
1553
1554 Copyright (C) 2012 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558 exit
1559 fi
1560
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1564
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_compile
1602
1603 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1604 # ---------------------------------------------
1605 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_decl ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 as_decl_name=`echo $2|sed 's/ *(.*//'`
1611 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 int
1621 main ()
1622 {
1623 #ifndef $as_decl_name
1624 #ifdef __cplusplus
1625 (void) $as_decl_use;
1626 #else
1627 (void) $as_decl_name;
1628 #endif
1629 #endif
1630
1631 ;
1632 return 0;
1633 }
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637 else
1638 eval "$3=no"
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 fi
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647 } # ac_fn_c_check_decl
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 test -x conftest$ac_exeext
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_link
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1874
1875 It was created by xf86-video-vesa $as_me 2.3.4, which was
1876 generated by GNU Autoconf 2.69. Invocation command line was
1877
1878 $ $0 $@
1879
1880 _ACEOF
1881 exec 5>>config.log
1882 {
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1887
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904
1905 _ASUNAME
1906
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991 (
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019 )
2020 echo
2021
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 $as_echo "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119 else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2122 fi
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 do
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2135 fi
2136 done
2137
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2148 fi
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2153 fi
2154
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2173 *)
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2186 fi
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2203 fi
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 fi
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2215
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224 ac_config_headers="$ac_config_headers config.h"
2225
2226 ac_aux_dir=
2227 for ac_dir in . "$srcdir"/.; do
2228 if test -f "$ac_dir/install-sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
2232 elif test -f "$ac_dir/install.sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
2236 elif test -f "$ac_dir/shtool"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
2240 fi
2241 done
2242 if test -z "$ac_aux_dir"; then
2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2244 fi
2245
2246 # These three variables are undocumented and unsupported,
2247 # and are intended to be withdrawn in a future Autoconf release.
2248 # They can cause serious problems if a builder's source tree is in a directory
2249 # whose full name contains unusual characters.
2250 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
2254
2255
2256 # Initialize Automake
2257 am__api_version='1.15'
2258
2259 # Find a good install program. We prefer a C program (faster),
2260 # so one script is as good as another. But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2265 # AIX /bin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 # Reject install programs that cannot install multiple files.
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2275 if test -z "$INSTALL"; then
2276 if ${ac_cv_path_install+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 # Account for people who put trailing slashes in PATH elements.
2285 case $as_dir/ in #((
2286 ./ | .// | /[cC]/* | \
2287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289 /usr/ucb/* ) ;;
2290 *)
2291 # OSF1 and SCO ODT 3.0 have their own names for install.
2292 # Don't use installbsd from OSF since it installs stuff as root
2293 # by default.
2294 for ac_prog in ginstall scoinst install; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297 if test $ac_prog = install &&
2298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # AIX install. It has an incompatible calling convention.
2300 :
2301 elif test $ac_prog = install &&
2302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # program-specific install script used by HP pwplus--don't use.
2304 :
2305 else
2306 rm -rf conftest.one conftest.two conftest.dir
2307 echo one > conftest.one
2308 echo two > conftest.two
2309 mkdir conftest.dir
2310 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311 test -s conftest.one && test -s conftest.two &&
2312 test -s conftest.dir/conftest.one &&
2313 test -s conftest.dir/conftest.two
2314 then
2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316 break 3
2317 fi
2318 fi
2319 fi
2320 done
2321 done
2322 ;;
2323 esac
2324
2325 done
2326 IFS=$as_save_IFS
2327
2328 rm -rf conftest.one conftest.two conftest.dir
2329
2330 fi
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2333 else
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2339 fi
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342 $as_echo "$INSTALL" >&6; }
2343
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353 $as_echo_n "checking whether build environment is sane... " >&6; }
2354 # Reject unsafe characters in $srcdir or the absolute working directory
2355 # name. Accept space and tab only in the latter.
2356 am_lf='
2357 '
2358 case `pwd` in
2359 *[\\\"\#\$\&\'\`$am_lf]*)
2360 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2361 esac
2362 case $srcdir in
2363 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2364 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2365 esac
2366
2367 # Do 'set' in a subshell so we don't clobber the current shell's
2368 # arguments. Must try -L first in case configure is actually a
2369 # symlink; some systems play weird games with the mod time of symlinks
2370 # (eg FreeBSD returns the mod time of the symlink's containing
2371 # directory).
2372 if (
2373 am_has_slept=no
2374 for am_try in 1 2; do
2375 echo "timestamp, slept: $am_has_slept" > conftest.file
2376 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377 if test "$*" = "X"; then
2378 # -L didn't work.
2379 set X `ls -t "$srcdir/configure" conftest.file`
2380 fi
2381 if test "$*" != "X $srcdir/configure conftest.file" \
2382 && test "$*" != "X conftest.file $srcdir/configure"; then
2383
2384 # If neither matched, then we have a broken ls. This can happen
2385 # if, for instance, CONFIG_SHELL is bash and it inherits a
2386 # broken ls alias from the environment. This has actually
2387 # happened. Such a system could not be considered "sane".
2388 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2389 alias in your environment" "$LINENO" 5
2390 fi
2391 if test "$2" = conftest.file || test $am_try -eq 2; then
2392 break
2393 fi
2394 # Just in case.
2395 sleep 1
2396 am_has_slept=yes
2397 done
2398 test "$2" = conftest.file
2399 )
2400 then
2401 # Ok.
2402 :
2403 else
2404 as_fn_error $? "newly created file is older than distributed files!
2405 Check your system clock" "$LINENO" 5
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408 $as_echo "yes" >&6; }
2409 # If we didn't sleep, we still need to ensure time stamps of config.status and
2410 # generated files are strictly newer.
2411 am_sleep_pid=
2412 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2413 ( sleep 1 ) &
2414 am_sleep_pid=$!
2415 fi
2416
2417 rm -f conftest.file
2418
2419 test "$program_prefix" != NONE &&
2420 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421 # Use a double $ so make ignores it.
2422 test "$program_suffix" != NONE &&
2423 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424 # Double any \ or $.
2425 # By default was `s,x,x', remove it if useless.
2426 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
2429 # Expand $ac_aux_dir to an absolute path.
2430 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2431
2432 if test x"${MISSING+set}" != xset; then
2433 case $am_aux_dir in
2434 *\ * | *\ *)
2435 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436 *)
2437 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438 esac
2439 fi
2440 # Use eval to expand $SHELL
2441 if eval "$MISSING --is-lightweight"; then
2442 am_missing_run="$MISSING "
2443 else
2444 am_missing_run=
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2447 fi
2448
2449 if test x"${install_sh+set}" != xset; then
2450 case $am_aux_dir in
2451 *\ * | *\ *)
2452 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453 *)
2454 install_sh="\${SHELL} $am_aux_dir/install-sh"
2455 esac
2456 fi
2457
2458 # Installed binaries are usually stripped using 'strip' when the user
2459 # run "make install-strip". However 'strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the 'STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_STRIP+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494 $as_echo "$STRIP" >&6; }
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_STRIP"; then
2503 ac_ct_STRIP=$STRIP
2504 # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534 $as_echo "$ac_ct_STRIP" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540 if test "x$ac_ct_STRIP" = x; then
2541 STRIP=":"
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549 STRIP=$ac_ct_STRIP
2550 fi
2551 else
2552 STRIP="$ac_cv_prog_STRIP"
2553 fi
2554
2555 fi
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560 if test -z "$MKDIR_P"; then
2561 if ${ac_cv_path_mkdir+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_prog in mkdir gmkdir; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573 'mkdir (GNU coreutils) '* | \
2574 'mkdir (coreutils) '* | \
2575 'mkdir (fileutils) '4.1*)
2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577 break 3;;
2578 esac
2579 done
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585
2586 test -d ./--version && rmdir ./--version
2587 if test "${ac_cv_path_mkdir+set}" = set; then
2588 MKDIR_P="$ac_cv_path_mkdir -p"
2589 else
2590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for MKDIR_P within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the value is a relative name.
2594 MKDIR_P="$ac_install_sh -d"
2595 fi
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598 $as_echo "$MKDIR_P" >&6; }
2599
2600 for ac_prog in gawk mawk nawk awk
2601 do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_AWK+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$AWK"; then
2610 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_AWK="$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 AWK=$ac_cv_prog_AWK
2630 if test -n "$AWK"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632 $as_echo "$AWK" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 test -n "$AWK" && break
2640 done
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644 set x ${MAKE-make}
2645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat >conftest.make <<\_ACEOF
2650 SHELL = /bin/sh
2651 all:
2652 @echo '@@@%%%=$(MAKE)=@@@%%%'
2653 _ACEOF
2654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656 *@@@%%%=?*=@@@%%%*)
2657 eval ac_cv_prog_make_${ac_make}_set=yes;;
2658 *)
2659 eval ac_cv_prog_make_${ac_make}_set=no;;
2660 esac
2661 rm -f conftest.make
2662 fi
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666 SET_MAKE=
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 SET_MAKE="MAKE=${MAKE-make}"
2671 fi
2672
2673 rm -rf .tst 2>/dev/null
2674 mkdir .tst 2>/dev/null
2675 if test -d .tst; then
2676 am__leading_dot=.
2677 else
2678 am__leading_dot=_
2679 fi
2680 rmdir .tst 2>/dev/null
2681
2682 # Check whether --enable-silent-rules was given.
2683 if test "${enable_silent_rules+set}" = set; then :
2684 enableval=$enable_silent_rules;
2685 fi
2686
2687 case $enable_silent_rules in # (((
2688 yes) AM_DEFAULT_VERBOSITY=0;;
2689 no) AM_DEFAULT_VERBOSITY=1;;
2690 *) AM_DEFAULT_VERBOSITY=1;;
2691 esac
2692 am_make=${MAKE-make}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695 if ${am_cv_make_support_nested_variables+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if $as_echo 'TRUE=$(BAR$(V))
2699 BAR0=false
2700 BAR1=true
2701 V=1
2702 am__doit:
2703 @$(TRUE)
2704 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705 am_cv_make_support_nested_variables=yes
2706 else
2707 am_cv_make_support_nested_variables=no
2708 fi
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2712 if test $am_cv_make_support_nested_variables = yes; then
2713 AM_V='$(V)'
2714 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715 else
2716 AM_V=$AM_DEFAULT_VERBOSITY
2717 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2718 fi
2719 AM_BACKSLASH='\'
2720
2721 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723 # is not polluted with repeated "-I."
2724 am__isrc=' -I$(srcdir)'
2725 # test to see if srcdir already configured
2726 if test -f $srcdir/config.status; then
2727 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728 fi
2729 fi
2730
2731 # test whether we have cygpath
2732 if test -z "$CYGPATH_W"; then
2733 if (cygpath --version) >/dev/null 2>/dev/null; then
2734 CYGPATH_W='cygpath -w'
2735 else
2736 CYGPATH_W=echo
2737 fi
2738 fi
2739
2740
2741 # Define the identity of the package.
2742 PACKAGE='xf86-video-vesa'
2743 VERSION='2.3.4'
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define PACKAGE "$PACKAGE"
2748 _ACEOF
2749
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define VERSION "$VERSION"
2753 _ACEOF
2754
2755 # Some tools Automake needs.
2756
2757 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771 # For better backward compatibility. To be removed once Automake 1.9.x
2772 # dies out for good. For more background, see:
2773 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775 mkdir_p='$(MKDIR_P)'
2776
2777 # We need awk for the "check" target (and possibly the TAP driver). The
2778 # system "awk" is bad on some platforms.
2779 # Always define AMTAR for backward compatibility. Yes, it's still used
2780 # in the wild :-( We should find a proper way to deprecate it ...
2781 AMTAR='$${TAR-tar}'
2782
2783
2784 # We'll loop over all known methods to create a tar archive until one works.
2785 _am_tools='gnutar pax cpio none'
2786
2787 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2788
2789
2790
2791
2792
2793
2794 # POSIX will say in a future version that running "rm -f" with no argument
2795 # is OK; and we want to be able to make that assumption in our Makefile
2796 # recipes. So use an aggressive probe to check that the usage we want is
2797 # actually supported "in the wild" to an acceptable degree.
2798 # See automake bug#10828.
2799 # To make any issue more visible, cause the running configure to be aborted
2800 # by default if the 'rm' program in use doesn't match our expectations; the
2801 # user can still override this though.
2802 if rm -f && rm -fr && rm -rf; then : OK; else
2803 cat >&2 <<'END'
2804 Oops!
2805
2806 Your 'rm' program seems unable to run without file operands specified
2807 on the command line, even when the '-f' option is present. This is contrary
2808 to the behaviour of most rm programs out there, and not conforming with
2809 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810
2811 Please tell bug-automake@gnu.org about your system, including the value
2812 of your $PATH and any error possibly output before this message. This
2813 can help us improve future automake versions.
2814
2815 END
2816 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817 echo 'Configuration will proceed anyway, since you have set the' >&2
2818 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2819 echo >&2
2820 else
2821 cat >&2 <<'END'
2822 Aborting the configuration process, to ensure you take notice of the issue.
2823
2824 You can download and install GNU coreutils to get an 'rm' implementation
2825 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2826
2827 If you want to complete the configuration process using your problematic
2828 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829 to "yes", and re-run configure.
2830
2831 END
2832 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2833 fi
2834 fi
2835
2836
2837 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849 DEPDIR="${am__leading_dot}deps"
2850
2851 ac_config_commands="$ac_config_commands depfiles"
2852
2853
2854 am_make=${MAKE-make}
2855 cat > confinc << 'END'
2856 am__doit:
2857 @echo this is the am__doit target
2858 .PHONY: am__doit
2859 END
2860 # If we don't find an include directive, just comment out the code.
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2862 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2863 am__include="#"
2864 am__quote=
2865 _am_result=none
2866 # First try GNU make style include.
2867 echo "include confinc" > confmf
2868 # Ignore all kinds of additional output from 'make'.
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target*)
2871 am__include=include
2872 am__quote=
2873 _am_result=GNU
2874 ;;
2875 esac
2876 # Now try BSD make style include.
2877 if test "$am__include" = "#"; then
2878 echo '.include "confinc"' > confmf
2879 case `$am_make -s -f confmf 2> /dev/null` in #(
2880 *the\ am__doit\ target*)
2881 am__include=.include
2882 am__quote="\""
2883 _am_result=BSD
2884 ;;
2885 esac
2886 fi
2887
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2890 $as_echo "$_am_result" >&6; }
2891 rm -f confinc confmf
2892
2893 # Check whether --enable-dependency-tracking was given.
2894 if test "${enable_dependency_tracking+set}" = set; then :
2895 enableval=$enable_dependency_tracking;
2896 fi
2897
2898 if test "x$enable_dependency_tracking" != xno; then
2899 am_depcomp="$ac_aux_dir/depcomp"
2900 AMDEPBACKSLASH='\'
2901 am__nodep='_no'
2902 fi
2903 if test "x$enable_dependency_tracking" != xno; then
2904 AMDEP_TRUE=
2905 AMDEP_FALSE='#'
2906 else
2907 AMDEP_TRUE='#'
2908 AMDEP_FALSE=
2909 fi
2910
2911
2912 ac_ext=c
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test -n "$ac_tool_prefix"; then
2918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955 fi
2956 if test -z "$ac_cv_prog_CC"; then
2957 ac_ct_CC=$CC
2958 # Extract the first word of "gcc", so it can be a program name with args.
2959 set dummy gcc; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_ac_ct_CC="gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988 $as_echo "$ac_ct_CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994 if test "x$ac_ct_CC" = x; then
2995 CC=""
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003 CC=$ac_ct_CC
3004 fi
3005 else
3006 CC="$ac_cv_prog_CC"
3007 fi
3008
3009 if test -z "$CC"; then
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3012 set dummy ${ac_tool_prefix}cc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_CC="${ac_tool_prefix}cc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 fi
3049 fi
3050 if test -z "$CC"; then
3051 # Extract the first word of "cc", so it can be a program name with args.
3052 set dummy cc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 ac_prog_rejected=no
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070 ac_prog_rejected=yes
3071 continue
3072 fi
3073 ac_cv_prog_CC="cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 if test $ac_prog_rejected = yes; then
3082 # We found a bogon in the path, so make sure we never use it.
3083 set dummy $ac_cv_prog_CC
3084 shift
3085 if test $# != 0; then
3086 # We chose a different compiler from the bogus one.
3087 # However, it has the same basename, so the bogon will be chosen
3088 # first if we set CC to just the basename; use the full file name.
3089 shift
3090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091 fi
3092 fi
3093 fi
3094 fi
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098 $as_echo "$CC" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104
3105 fi
3106 if test -z "$CC"; then
3107 if test -n "$ac_tool_prefix"; then
3108 for ac_prog in cl.exe
3109 do
3110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 test -n "$CC" && break
3148 done
3149 fi
3150 if test -z "$CC"; then
3151 ac_ct_CC=$CC
3152 for ac_prog in cl.exe
3153 do
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$ac_ct_CC"; then
3162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_CC="$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 $as_echo "$ac_ct_CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 test -n "$ac_ct_CC" && break
3192 done
3193
3194 if test "x$ac_ct_CC" = x; then
3195 CC=""
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 CC=$ac_ct_CC
3204 fi
3205 fi
3206
3207 fi
3208
3209
3210 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error $? "no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details" "$LINENO" 5; }
3214
3215 # Provide some information about the compiler.
3216 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3217 set X $ac_compile
3218 ac_compiler=$2
3219 for ac_option in --version -v -V -qversion; do
3220 { { ac_try="$ac_compiler $ac_option >&5"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228 ac_status=$?
3229 if test -s conftest.err; then
3230 sed '10a\
3231 ... rest of stderr output deleted ...
3232 10q' conftest.err >conftest.er1
3233 cat conftest.er1 >&5
3234 fi
3235 rm -f conftest.er1 conftest.err
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 done
3239
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 ac_clean_files_save=$ac_clean_files
3252 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3253 # Try to create an executable without -o first, disregard a.out.
3254 # It will help us diagnose broken compilers, and finding out an intuition
3255 # of exeext.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257 $as_echo_n "checking whether the C compiler works... " >&6; }
3258 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3259
3260 # The possible output files:
3261 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3262
3263 ac_rmfiles=
3264 for ac_file in $ac_files
3265 do
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269 esac
3270 done
3271 rm -f $ac_rmfiles
3272
3273 if { { ac_try="$ac_link_default"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link_default") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3288 # Autoconf.
3289 for ac_file in $ac_files ''
3290 do
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3294 ;;
3295 [ab].out )
3296 # We found the default executable, but exeext='' is most
3297 # certainly right.
3298 break;;
3299 *.* )
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301 then :; else
3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303 fi
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3308 # actually working.
3309 break;;
3310 * )
3311 break;;
3312 esac
3313 done
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3315
3316 else
3317 ac_file=''
3318 fi
3319 if test -z "$ac_file"; then :
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error 77 "C compiler cannot create executables
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 $as_echo "yes" >&6; }
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334 $as_echo_n "checking for C compiler default output file name... " >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 $as_echo "$ac_file" >&6; }
3337 ac_exeext=$ac_cv_exeext
3338
3339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342 $as_echo_n "checking for suffix of executables... " >&6; }
3343 if { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3356 # work properly (i.e., refer to `conftest.exe'), while it won't with
3357 # `rm'.
3358 for ac_file in conftest.exe conftest conftest.*; do
3359 test -f "$ac_file" || continue
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 break;;
3364 * ) break;;
3365 esac
3366 done
3367 else
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details" "$LINENO" 5; }
3372 fi
3373 rm -f conftest conftest$ac_cv_exeext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3375 $as_echo "$ac_cv_exeext" >&6; }
3376
3377 rm -f conftest.$ac_ext
3378 EXEEXT=$ac_cv_exeext
3379 ac_exeext=$EXEEXT
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 #include <stdio.h>
3383 int
3384 main ()
3385 {
3386 FILE *f = fopen ("conftest.out", "w");
3387 return ferror (f) || fclose (f) != 0;
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 ac_clean_files="$ac_clean_files conftest.out"
3394 # Check that the compiler produces executables we can run. If not, either
3395 # the compiler is broken, or we cross compile.
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3397 $as_echo_n "checking whether we are cross compiling... " >&6; }
3398 if test "$cross_compiling" != yes; then
3399 { { ac_try="$ac_link"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_link") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 if { ac_try='./conftest$ac_cv_exeext'
3411 { { case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_try") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; }; then
3421 cross_compiling=no
3422 else
3423 if test "$cross_compiling" = maybe; then
3424 cross_compiling=yes
3425 else
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error $? "cannot run C compiled programs.
3429 If you meant to cross compile, use \`--host'.
3430 See \`config.log' for more details" "$LINENO" 5; }
3431 fi
3432 fi
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3436
3437 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3438 ac_clean_files=$ac_clean_files_save
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440 $as_echo_n "checking for suffix of object files... " >&6; }
3441 if ${ac_cv_objext+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446
3447 int
3448 main ()
3449 {
3450
3451 ;
3452 return 0;
3453 }
3454 _ACEOF
3455 rm -f conftest.o conftest.obj
3456 if { { ac_try="$ac_compile"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compile") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 for ac_file in conftest.o conftest.obj conftest.*; do
3468 test -f "$ac_file" || continue;
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472 break;;
3473 esac
3474 done
3475 else
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot compute suffix of object files: cannot compile
3482 See \`config.log' for more details" "$LINENO" 5; }
3483 fi
3484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487 $as_echo "$ac_cv_objext" >&6; }
3488 OBJEXT=$ac_cv_objext
3489 ac_objext=$OBJEXT
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492 if ${ac_cv_c_compiler_gnu+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501 #ifndef __GNUC__
3502 choke me
3503 #endif
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_compiler_gnu=yes
3511 else
3512 ac_compiler_gnu=no
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520 if test $ac_compiler_gnu = yes; then
3521 GCC=yes
3522 else
3523 GCC=
3524 fi
3525 ac_test_CFLAGS=${CFLAGS+set}
3526 ac_save_CFLAGS=$CFLAGS
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3529 if ${ac_cv_prog_cc_g+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 ac_save_c_werror_flag=$ac_c_werror_flag
3533 ac_c_werror_flag=yes
3534 ac_cv_prog_cc_g=no
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 else
3550 CFLAGS=""
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563
3564 else
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589 $as_echo "$ac_cv_prog_cc_g" >&6; }
3590 if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592 elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3597 fi
3598 else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3603 fi
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607 if ${ac_cv_prog_cc_c89+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 ac_cv_prog_cc_c89=no
3611 ac_save_CC=$CC
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #include <stdarg.h>
3615 #include <stdio.h>
3616 struct stat;
3617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3618 struct buf { int x; };
3619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620 static char *e (p, i)
3621 char **p;
3622 int i;
3623 {
3624 return p[i];
3625 }
3626 static char *f (char * (*g) (char **, int), char **p, ...)
3627 {
3628 char *s;
3629 va_list v;
3630 va_start (v,p);
3631 s = g (p, va_arg (v,int));
3632 va_end (v);
3633 return s;
3634 }
3635
3636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3637 function prototypes and stuff, but not '\xHH' hex character constants.
3638 These don't provoke an error unfortunately, instead are silently treated
3639 as 'x'. The following induces an error, until -std is added to get
3640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3641 array size at least. It's necessary to write '\x00'==0 to get something
3642 that's true only with -std. */
3643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3644
3645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646 inside strings and character constants. */
3647 #define FOO(x) 'x'
3648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3649
3650 int test (int i, double x);
3651 struct s1 {int (*f) (int a);};
3652 struct s2 {int (*f) (double a);};
3653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654 int argc;
3655 char **argv;
3656 int
3657 main ()
3658 {
3659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3666 do
3667 CC="$ac_save_CC $ac_arg"
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_c89=$ac_arg
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext
3672 test "x$ac_cv_prog_cc_c89" != "xno" && break
3673 done
3674 rm -f conftest.$ac_ext
3675 CC=$ac_save_CC
3676
3677 fi
3678 # AC_CACHE_VAL
3679 case "x$ac_cv_prog_cc_c89" in
3680 x)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682 $as_echo "none needed" >&6; } ;;
3683 xno)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685 $as_echo "unsupported" >&6; } ;;
3686 *)
3687 CC="$CC $ac_cv_prog_cc_c89"
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3690 esac
3691 if test "x$ac_cv_prog_cc_c89" != xno; then :
3692
3693 fi
3694
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3707 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3708 if ${am_cv_prog_cc_c_o+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 # Make sure it works both with $CC and with simple cc.
3723 # Following AC_PROG_CC_C_O, we do the test twice because some
3724 # compilers refuse to overwrite an existing .o file with -o,
3725 # though they will create one.
3726 am_cv_prog_cc_c_o=yes
3727 for am_i in 1 2; do
3728 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } \
3733 && test -f conftest2.$ac_objext; then
3734 : OK
3735 else
3736 am_cv_prog_cc_c_o=no
3737 break
3738 fi
3739 done
3740 rm -f core conftest*
3741 unset am_i
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3744 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3745 if test "$am_cv_prog_cc_c_o" != yes; then
3746 # Losing compiler, so override with the script.
3747 # FIXME: It is wrong to rewrite CC.
3748 # But if we don't then we get into trouble of one sort or another.
3749 # A longer-term fix would be to have automake use am__CC in this case,
3750 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3751 CC="$am_aux_dir/compile $CC"
3752 fi
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760 depcc="$CC" am_compiler_list=
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3763 $as_echo_n "checking dependency style of $depcc... " >&6; }
3764 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768 # We make a subdir and do the tests there. Otherwise we can end up
3769 # making bogus files that we don't know about and never remove. For
3770 # instance it was reported that on HP-UX the gcc test will end up
3771 # making a dummy file named 'D' -- because '-MD' means "put the output
3772 # in D".
3773 rm -rf conftest.dir
3774 mkdir conftest.dir
3775 # Copy depcomp to subdir because otherwise we won't find it if we're
3776 # using a relative directory.
3777 cp "$am_depcomp" conftest.dir
3778 cd conftest.dir
3779 # We will build objects and dependencies in a subdirectory because
3780 # it helps to detect inapplicable dependency modes. For instance
3781 # both Tru64's cc and ICC support -MD to output dependencies as a
3782 # side effect of compilation, but ICC will put the dependencies in
3783 # the current directory while Tru64 will put them in the object
3784 # directory.
3785 mkdir sub
3786
3787 am_cv_CC_dependencies_compiler_type=none
3788 if test "$am_compiler_list" = ""; then
3789 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3790 fi
3791 am__universal=false
3792 case " $depcc " in #(
3793 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3794 esac
3795
3796 for depmode in $am_compiler_list; do
3797 # Setup a source with many dependencies, because some compilers
3798 # like to wrap large dependency lists on column 80 (with \), and
3799 # we should not choose a depcomp mode which is confused by this.
3800 #
3801 # We need to recreate these files for each test, as the compiler may
3802 # overwrite some of them when testing with obscure command lines.
3803 # This happens at least with the AIX C compiler.
3804 : > sub/conftest.c
3805 for i in 1 2 3 4 5 6; do
3806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3807 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3808 # Solaris 10 /bin/sh.
3809 echo '/* dummy */' > sub/conftst$i.h
3810 done
3811 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3812
3813 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3814 # mode. It turns out that the SunPro C++ compiler does not properly
3815 # handle '-M -o', and we need to detect this. Also, some Intel
3816 # versions had trouble with output in subdirs.
3817 am__obj=sub/conftest.${OBJEXT-o}
3818 am__minus_obj="-o $am__obj"
3819 case $depmode in
3820 gcc)
3821 # This depmode causes a compiler race in universal mode.
3822 test "$am__universal" = false || continue
3823 ;;
3824 nosideeffect)
3825 # After this tag, mechanisms are not by side-effect, so they'll
3826 # only be used when explicitly requested.
3827 if test "x$enable_dependency_tracking" = xyes; then
3828 continue
3829 else
3830 break
3831 fi
3832 ;;
3833 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3834 # This compiler won't grok '-c -o', but also, the minuso test has
3835 # not run yet. These depmodes are late enough in the game, and
3836 # so weak that their functioning should not be impacted.
3837 am__obj=conftest.${OBJEXT-o}
3838 am__minus_obj=
3839 ;;
3840 none) break ;;
3841 esac
3842 if depmode=$depmode \
3843 source=sub/conftest.c object=$am__obj \
3844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3845 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3846 >/dev/null 2>conftest.err &&
3847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3849 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3851 # icc doesn't choke on unknown options, it will just issue warnings
3852 # or remarks (even with -Werror). So we grep stderr for any message
3853 # that says an option was ignored or not supported.
3854 # When given -MP, icc 7.0 and 7.1 complain thusly:
3855 # icc: Command line warning: ignoring option '-M'; no argument required
3856 # The diagnosis changed in icc 8.0:
3857 # icc: Command line remark: option '-MP' not supported
3858 if (grep 'ignoring option' conftest.err ||
3859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3860 am_cv_CC_dependencies_compiler_type=$depmode
3861 break
3862 fi
3863 fi
3864 done
3865
3866 cd ..
3867 rm -rf conftest.dir
3868 else
3869 am_cv_CC_dependencies_compiler_type=none
3870 fi
3871
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3874 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3875 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3876
3877 if
3878 test "x$enable_dependency_tracking" != xno \
3879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3880 am__fastdepCC_TRUE=
3881 am__fastdepCC_FALSE='#'
3882 else
3883 am__fastdepCC_TRUE='#'
3884 am__fastdepCC_FALSE=
3885 fi
3886
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3890 if ${ac_cv_prog_cc_c99+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 ac_cv_prog_cc_c99=no
3894 ac_save_CC=$CC
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <stdarg.h>
3898 #include <stdbool.h>
3899 #include <stdlib.h>
3900 #include <wchar.h>
3901 #include <stdio.h>
3902
3903 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3904 #define debug(...) fprintf (stderr, __VA_ARGS__)
3905 #define showlist(...) puts (#__VA_ARGS__)
3906 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3907 static void
3908 test_varargs_macros (void)
3909 {
3910 int x = 1234;
3911 int y = 5678;
3912 debug ("Flag");
3913 debug ("X = %d\n", x);
3914 showlist (The first, second, and third items.);
3915 report (x>y, "x is %d but y is %d", x, y);
3916 }
3917
3918 // Check long long types.
3919 #define BIG64 18446744073709551615ull
3920 #define BIG32 4294967295ul
3921 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3922 #if !BIG_OK
3923 your preprocessor is broken;
3924 #endif
3925 #if BIG_OK
3926 #else
3927 your preprocessor is broken;
3928 #endif
3929 static long long int bignum = -9223372036854775807LL;
3930 static unsigned long long int ubignum = BIG64;
3931
3932 struct incomplete_array
3933 {
3934 int datasize;
3935 double data[];
3936 };
3937
3938 struct named_init {
3939 int number;
3940 const wchar_t *name;
3941 double average;
3942 };
3943
3944 typedef const char *ccp;
3945
3946 static inline int
3947 test_restrict (ccp restrict text)
3948 {
3949 // See if C++-style comments work.
3950 // Iterate through items via the restricted pointer.
3951 // Also check for declarations in for loops.
3952 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3953 continue;
3954 return 0;
3955 }
3956
3957 // Check varargs and va_copy.
3958 static void
3959 test_varargs (const char *format, ...)
3960 {
3961 va_list args;
3962 va_start (args, format);
3963 va_list args_copy;
3964 va_copy (args_copy, args);
3965
3966 const char *str;
3967 int number;
3968 float fnumber;
3969
3970 while (*format)
3971 {
3972 switch (*format++)
3973 {
3974 case 's': // string
3975 str = va_arg (args_copy, const char *);
3976 break;
3977 case 'd': // int
3978 number = va_arg (args_copy, int);
3979 break;
3980 case 'f': // float
3981 fnumber = va_arg (args_copy, double);
3982 break;
3983 default:
3984 break;
3985 }
3986 }
3987 va_end (args_copy);
3988 va_end (args);
3989 }
3990
3991 int
3992 main ()
3993 {
3994
3995 // Check bool.
3996 _Bool success = false;
3997
3998 // Check restrict.
3999 if (test_restrict ("String literal") == 0)
4000 success = true;
4001 char *restrict newvar = "Another string";
4002
4003 // Check varargs.
4004 test_varargs ("s, d' f .", "string", 65, 34.234);
4005 test_varargs_macros ();
4006
4007 // Check flexible array members.
4008 struct incomplete_array *ia =
4009 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4010 ia->datasize = 10;
4011 for (int i = 0; i < ia->datasize; ++i)
4012 ia->data[i] = i * 1.234;
4013
4014 // Check named initializers.
4015 struct named_init ni = {
4016 .number = 34,
4017 .name = L"Test wide string",
4018 .average = 543.34343,
4019 };
4020
4021 ni.number = 58;
4022
4023 int dynamic_array[ni.number];
4024 dynamic_array[ni.number - 1] = 543;
4025
4026 // work around unused variable warnings
4027 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4028 || dynamic_array[ni.number - 1] != 543);
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4035 do
4036 CC="$ac_save_CC $ac_arg"
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_c99=$ac_arg
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext
4041 test "x$ac_cv_prog_cc_c99" != "xno" && break
4042 done
4043 rm -f conftest.$ac_ext
4044 CC=$ac_save_CC
4045
4046 fi
4047 # AC_CACHE_VAL
4048 case "x$ac_cv_prog_cc_c99" in
4049 x)
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4051 $as_echo "none needed" >&6; } ;;
4052 xno)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4054 $as_echo "unsupported" >&6; } ;;
4055 *)
4056 CC="$CC $ac_cv_prog_cc_c99"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4058 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4059 esac
4060 if test "x$ac_cv_prog_cc_c99" != xno; then :
4061
4062 fi
4063
4064
4065
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4072 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4073 # On Suns, sometimes $CPP names a directory.
4074 if test -n "$CPP" && test -d "$CPP"; then
4075 CPP=
4076 fi
4077 if test -z "$CPP"; then
4078 if ${ac_cv_prog_CPP+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 # Double quotes because CPP needs to be expanded
4082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 do
4084 ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4086 do
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100 Syntax error
4101 _ACEOF
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104 else
4105 # Broken: fails on valid input.
4106 continue
4107 fi
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118 continue
4119 else
4120 # Passes both tests.
4121 ac_preproc_ok=:
4122 break
4123 fi
4124 rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.i conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4130 break
4131 fi
4132
4133 done
4134 ac_cv_prog_CPP=$CPP
4135
4136 fi
4137 CPP=$ac_cv_prog_CPP
4138 else
4139 ac_cv_prog_CPP=$CPP
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4142 $as_echo "$CPP" >&6; }
4143 ac_preproc_ok=false
4144 for ac_c_preproc_warn_flag in '' yes
4145 do
4146 # Use a header file that comes with gcc, so configuring glibc
4147 # with a fresh cross-compiler works.
4148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149 # <limits.h> exists even on freestanding compilers.
4150 # On the NeXT, cc -E runs the code through the compiler's parser,
4151 # not just through cpp. "Syntax error" is here to catch this case.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #ifdef __STDC__
4155 # include <limits.h>
4156 #else
4157 # include <assert.h>
4158 #endif
4159 Syntax error
4160 _ACEOF
4161 if ac_fn_c_try_cpp "$LINENO"; then :
4162
4163 else
4164 # Broken: fails on valid input.
4165 continue
4166 fi
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <ac_nonexistent.h>
4174 _ACEOF
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: success on invalid input.
4177 continue
4178 else
4179 # Passes both tests.
4180 ac_preproc_ok=:
4181 break
4182 fi
4183 rm -f conftest.err conftest.i conftest.$ac_ext
4184
4185 done
4186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187 rm -f conftest.i conftest.err conftest.$ac_ext
4188 if $ac_preproc_ok; then :
4189
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4194 See \`config.log' for more details" "$LINENO" 5; }
4195 fi
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if ${ac_cv_path_GREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 as_fn_executable_p "$ac_path_GREP" || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 *)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4248
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253 IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
4255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
4257 else
4258 ac_cv_path_GREP=$GREP
4259 fi
4260
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263 $as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268 $as_echo_n "checking for egrep... " >&6; }
4269 if ${ac_cv_path_EGREP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286 as_fn_executable_p "$ac_path_EGREP" || continue
4287 # Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289 case `"$ac_path_EGREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 *)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_EGREP"; then
4321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 fi
4323 else
4324 ac_cv_path_EGREP=$EGREP
4325 fi
4326
4327 fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330 $as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4332
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4335 $as_echo_n "checking for ANSI C header files... " >&6; }
4336 if ${ac_cv_header_stdc+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <stdlib.h>
4342 #include <stdarg.h>
4343 #include <string.h>
4344 #include <float.h>
4345
4346 int
4347 main ()
4348 {
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_cv_header_stdc=yes
4356 else
4357 ac_cv_header_stdc=no
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360
4361 if test $ac_cv_header_stdc = yes; then
4362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <string.h>
4366
4367 _ACEOF
4368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369 $EGREP "memchr" >/dev/null 2>&1; then :
4370
4371 else
4372 ac_cv_header_stdc=no
4373 fi
4374 rm -f conftest*
4375
4376 fi
4377
4378 if test $ac_cv_header_stdc = yes; then
4379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <stdlib.h>
4383
4384 _ACEOF
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 $EGREP "free" >/dev/null 2>&1; then :
4387
4388 else
4389 ac_cv_header_stdc=no
4390 fi
4391 rm -f conftest*
4392
4393 fi
4394
4395 if test $ac_cv_header_stdc = yes; then
4396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4397 if test "$cross_compiling" = yes; then :
4398 :
4399 else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <ctype.h>
4403 #include <stdlib.h>
4404 #if ((' ' & 0x0FF) == 0x020)
4405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407 #else
4408 # define ISLOWER(c) \
4409 (('a' <= (c) && (c) <= 'i') \
4410 || ('j' <= (c) && (c) <= 'r') \
4411 || ('s' <= (c) && (c) <= 'z'))
4412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413 #endif
4414
4415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416 int
4417 main ()
4418 {
4419 int i;
4420 for (i = 0; i < 256; i++)
4421 if (XOR (islower (i), ISLOWER (i))
4422 || toupper (i) != TOUPPER (i))
4423 return 2;
4424 return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_c_try_run "$LINENO"; then :
4428
4429 else
4430 ac_cv_header_stdc=no
4431 fi
4432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4433 conftest.$ac_objext conftest.beam conftest.$ac_ext
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4439 $as_echo "$ac_cv_header_stdc" >&6; }
4440 if test $ac_cv_header_stdc = yes; then
4441
4442 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443
4444 fi
4445
4446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
4449 do :
4450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4452 "
4453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4454 cat >>confdefs.h <<_ACEOF
4455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4456 _ACEOF
4457
4458 fi
4459
4460 done
4461
4462
4463
4464
4465
4466
4467 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4468 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4469 CLANGCC="yes"
4470 else
4471 CLANGCC="no"
4472 fi
4473
4474 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4475 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4476 INTELCC="yes"
4477 else
4478 INTELCC="no"
4479 fi
4480
4481 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4482 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4483 SUNCC="yes"
4484 else
4485 SUNCC="no"
4486 fi
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4497 if test -n "$ac_tool_prefix"; then
4498 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4499 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 case $PKG_CONFIG in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4508 ;;
4509 *)
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 ;;
4526 esac
4527 fi
4528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4529 if test -n "$PKG_CONFIG"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4531 $as_echo "$PKG_CONFIG" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537
4538 fi
4539 if test -z "$ac_cv_path_PKG_CONFIG"; then
4540 ac_pt_PKG_CONFIG=$PKG_CONFIG
4541 # Extract the first word of "pkg-config", so it can be a program name with args.
4542 set dummy pkg-config; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 case $ac_pt_PKG_CONFIG in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 ;;
4569 esac
4570 fi
4571 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4572 if test -n "$ac_pt_PKG_CONFIG"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4574 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580 if test "x$ac_pt_PKG_CONFIG" = x; then
4581 PKG_CONFIG=""
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 PKG_CONFIG=$ac_pt_PKG_CONFIG
4590 fi
4591 else
4592 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4593 fi
4594
4595 fi
4596 if test -n "$PKG_CONFIG"; then
4597 _pkg_min_version=0.9.0
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4599 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4600 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 PKG_CONFIG=""
4607 fi
4608 fi
4609 # Make sure we can run config.sub.
4610 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4611 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4614 $as_echo_n "checking build system type... " >&6; }
4615 if ${ac_cv_build+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 ac_build_alias=$build_alias
4619 test "x$ac_build_alias" = x &&
4620 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4621 test "x$ac_build_alias" = x &&
4622 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4623 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4628 $as_echo "$ac_cv_build" >&6; }
4629 case $ac_cv_build in
4630 *-*-*) ;;
4631 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4632 esac
4633 build=$ac_cv_build
4634 ac_save_IFS=$IFS; IFS='-'
4635 set x $ac_cv_build
4636 shift
4637 build_cpu=$1
4638 build_vendor=$2
4639 shift; shift
4640 # Remember, the first character of IFS is used to create $*,
4641 # except with old shells:
4642 build_os=$*
4643 IFS=$ac_save_IFS
4644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4648 $as_echo_n "checking host system type... " >&6; }
4649 if ${ac_cv_host+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test "x$host_alias" = x; then
4653 ac_cv_host=$ac_cv_build
4654 else
4655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4657 fi
4658
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4661 $as_echo "$ac_cv_host" >&6; }
4662 case $ac_cv_host in
4663 *-*-*) ;;
4664 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4665 esac
4666 host=$ac_cv_host
4667 ac_save_IFS=$IFS; IFS='-'
4668 set x $ac_cv_host
4669 shift
4670 host_cpu=$1
4671 host_vendor=$2
4672 shift; shift
4673 # Remember, the first character of IFS is used to create $*,
4674 # except with old shells:
4675 host_os=$*
4676 IFS=$ac_save_IFS
4677 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4682 if ${ac_cv_path_SED+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4686 for ac_i in 1 2 3 4 5 6 7; do
4687 ac_script="$ac_script$as_nl$ac_script"
4688 done
4689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4690 { ac_script=; unset ac_script;}
4691 if test -z "$SED"; then
4692 ac_path_SED_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in sed gsed; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4702 as_fn_executable_p "$ac_path_SED" || continue
4703 # Check for GNU ac_path_SED and select it if it is found.
4704 # Check for GNU $ac_path_SED
4705 case `"$ac_path_SED" --version 2>&1` in
4706 *GNU*)
4707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4708 *)
4709 ac_count=0
4710 $as_echo_n 0123456789 >"conftest.in"
4711 while :
4712 do
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo '' >> "conftest.nl"
4717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_SED_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_SED="$ac_path_SED"
4723 ac_path_SED_max=$ac_count
4724 fi
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4727 done
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731 $ac_path_SED_found && break 3
4732 done
4733 done
4734 done
4735 IFS=$as_save_IFS
4736 if test -z "$ac_cv_path_SED"; then
4737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4738 fi
4739 else
4740 ac_cv_path_SED=$SED
4741 fi
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4745 $as_echo "$ac_cv_path_SED" >&6; }
4746 SED="$ac_cv_path_SED"
4747 rm -f conftest.sed
4748
4749
4750
4751
4752
4753
4754 # Check whether --enable-selective-werror was given.
4755 if test "${enable_selective_werror+set}" = set; then :
4756 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4757 else
4758 SELECTIVE_WERROR=yes
4759 fi
4760
4761
4762
4763
4764
4765 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4766 if test "x$SUNCC" = "xyes"; then
4767 BASE_CFLAGS="-v"
4768 else
4769 BASE_CFLAGS=""
4770 fi
4771
4772 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786 xorg_testset_save_CFLAGS="$CFLAGS"
4787
4788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 int i;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 xorg_cv_cc_flag_unknown_warning_option=yes
4801 else
4802 xorg_cv_cc_flag_unknown_warning_option=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4809 CFLAGS="$xorg_testset_save_CFLAGS"
4810 fi
4811
4812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4815 fi
4816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 int i;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 xorg_cv_cc_flag_unused_command_line_argument=yes
4828 else
4829 xorg_cv_cc_flag_unused_command_line_argument=no
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4836 CFLAGS="$xorg_testset_save_CFLAGS"
4837 fi
4838
4839 found="no"
4840
4841 if test $found = "no" ; then
4842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4844 fi
4845
4846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4848 fi
4849
4850 CFLAGS="$CFLAGS -Wall"
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4853 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4854 cacheid=xorg_cv_cc_flag__Wall
4855 if eval \${$cacheid+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 int i;
4861 int
4862 main ()
4863 {
4864
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_link "$LINENO"; then :
4870 eval $cacheid=yes
4871 else
4872 eval $cacheid=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext \
4875 conftest$ac_exeext conftest.$ac_ext
4876 fi
4877
4878
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4880
4881 eval supported=\$$cacheid
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4883 $as_echo "$supported" >&6; }
4884 if test "$supported" = "yes" ; then
4885 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4886 found="yes"
4887 fi
4888 fi
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904 xorg_testset_save_CFLAGS="$CFLAGS"
4905
4906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 xorg_cv_cc_flag_unknown_warning_option=yes
4919 else
4920 xorg_cv_cc_flag_unknown_warning_option=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928 fi
4929
4930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933 fi
4934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 int i;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 xorg_cv_cc_flag_unused_command_line_argument=yes
4946 else
4947 xorg_cv_cc_flag_unused_command_line_argument=no
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4954 CFLAGS="$xorg_testset_save_CFLAGS"
4955 fi
4956
4957 found="no"
4958
4959 if test $found = "no" ; then
4960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4962 fi
4963
4964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966 fi
4967
4968 CFLAGS="$CFLAGS -Wpointer-arith"
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4971 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4972 cacheid=xorg_cv_cc_flag__Wpointer_arith
4973 if eval \${$cacheid+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 int i;
4979 int
4980 main ()
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_link "$LINENO"; then :
4988 eval $cacheid=yes
4989 else
4990 eval $cacheid=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext \
4993 conftest$ac_exeext conftest.$ac_ext
4994 fi
4995
4996
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998
4999 eval supported=\$$cacheid
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001 $as_echo "$supported" >&6; }
5002 if test "$supported" = "yes" ; then
5003 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5004 found="yes"
5005 fi
5006 fi
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 xorg_testset_save_CFLAGS="$CFLAGS"
5023
5024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 int i;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 xorg_cv_cc_flag_unknown_warning_option=yes
5037 else
5038 xorg_cv_cc_flag_unknown_warning_option=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5045 CFLAGS="$xorg_testset_save_CFLAGS"
5046 fi
5047
5048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051 fi
5052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 int i;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 xorg_cv_cc_flag_unused_command_line_argument=yes
5064 else
5065 xorg_cv_cc_flag_unused_command_line_argument=no
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5072 CFLAGS="$xorg_testset_save_CFLAGS"
5073 fi
5074
5075 found="no"
5076
5077 if test $found = "no" ; then
5078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080 fi
5081
5082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5084 fi
5085
5086 CFLAGS="$CFLAGS -Wmissing-declarations"
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5089 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5090 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5091 if eval \${$cacheid+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int i;
5097 int
5098 main ()
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
5106 eval $cacheid=yes
5107 else
5108 eval $cacheid=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 fi
5113
5114
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116
5117 eval supported=\$$cacheid
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5119 $as_echo "$supported" >&6; }
5120 if test "$supported" = "yes" ; then
5121 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5122 found="yes"
5123 fi
5124 fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 xorg_testset_save_CFLAGS="$CFLAGS"
5141
5142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 int i;
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 xorg_cv_cc_flag_unknown_warning_option=yes
5155 else
5156 xorg_cv_cc_flag_unknown_warning_option=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5164 fi
5165
5166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169 fi
5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 xorg_cv_cc_flag_unused_command_line_argument=yes
5182 else
5183 xorg_cv_cc_flag_unused_command_line_argument=no
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5190 CFLAGS="$xorg_testset_save_CFLAGS"
5191 fi
5192
5193 found="no"
5194
5195 if test $found = "no" ; then
5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199
5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202 fi
5203
5204 CFLAGS="$CFLAGS -Wformat=2"
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5207 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5208 cacheid=xorg_cv_cc_flag__Wformat_2
5209 if eval \${$cacheid+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 int i;
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 eval $cacheid=yes
5225 else
5226 eval $cacheid=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 $as_echo "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5240 found="yes"
5241 fi
5242 fi
5243
5244 if test $found = "no" ; then
5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 fi
5248
5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251 fi
5252
5253 CFLAGS="$CFLAGS -Wformat"
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5256 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5257 cacheid=xorg_cv_cc_flag__Wformat
5258 if eval \${$cacheid+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 int i;
5264 int
5265 main ()
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_link "$LINENO"; then :
5273 eval $cacheid=yes
5274 else
5275 eval $cacheid=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext \
5278 conftest$ac_exeext conftest.$ac_ext
5279 fi
5280
5281
5282 CFLAGS="$xorg_testset_save_CFLAGS"
5283
5284 eval supported=\$$cacheid
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5286 $as_echo "$supported" >&6; }
5287 if test "$supported" = "yes" ; then
5288 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5289 found="yes"
5290 fi
5291 fi
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 xorg_testset_save_CFLAGS="$CFLAGS"
5310
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 int i;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 xorg_cv_cc_flag_unknown_warning_option=yes
5324 else
5325 xorg_cv_cc_flag_unknown_warning_option=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333 fi
5334
5335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338 fi
5339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 int i;
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 xorg_cv_cc_flag_unused_command_line_argument=yes
5351 else
5352 xorg_cv_cc_flag_unused_command_line_argument=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5359 CFLAGS="$xorg_testset_save_CFLAGS"
5360 fi
5361
5362 found="no"
5363
5364 if test $found = "no" ; then
5365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5367 fi
5368
5369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371 fi
5372
5373 CFLAGS="$CFLAGS -Wstrict-prototypes"
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5376 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5377 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5378 if eval \${$cacheid+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 int i;
5384 int
5385 main ()
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_link "$LINENO"; then :
5393 eval $cacheid=yes
5394 else
5395 eval $cacheid=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 fi
5400
5401
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403
5404 eval supported=\$$cacheid
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5406 $as_echo "$supported" >&6; }
5407 if test "$supported" = "yes" ; then
5408 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5409 found="yes"
5410 fi
5411 fi
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 xorg_testset_save_CFLAGS="$CFLAGS"
5428
5429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 xorg_cv_cc_flag_unknown_warning_option=yes
5442 else
5443 xorg_cv_cc_flag_unknown_warning_option=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 fi
5457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 int i;
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 xorg_cv_cc_flag_unused_command_line_argument=yes
5469 else
5470 xorg_cv_cc_flag_unused_command_line_argument=no
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5477 CFLAGS="$xorg_testset_save_CFLAGS"
5478 fi
5479
5480 found="no"
5481
5482 if test $found = "no" ; then
5483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5485 fi
5486
5487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5489 fi
5490
5491 CFLAGS="$CFLAGS -Wmissing-prototypes"
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5494 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5495 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5496 if eval \${$cacheid+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 int i;
5502 int
5503 main ()
5504 {
5505
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 if ac_fn_c_try_link "$LINENO"; then :
5511 eval $cacheid=yes
5512 else
5513 eval $cacheid=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext \
5516 conftest$ac_exeext conftest.$ac_ext
5517 fi
5518
5519
5520 CFLAGS="$xorg_testset_save_CFLAGS"
5521
5522 eval supported=\$$cacheid
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5524 $as_echo "$supported" >&6; }
5525 if test "$supported" = "yes" ; then
5526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5527 found="yes"
5528 fi
5529 fi
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 xorg_testset_save_CFLAGS="$CFLAGS"
5546
5547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 int i;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 xorg_cv_cc_flag_unknown_warning_option=yes
5560 else
5561 xorg_cv_cc_flag_unknown_warning_option=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574 fi
5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 int i;
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 xorg_cv_cc_flag_unused_command_line_argument=yes
5587 else
5588 xorg_cv_cc_flag_unused_command_line_argument=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5595 CFLAGS="$xorg_testset_save_CFLAGS"
5596 fi
5597
5598 found="no"
5599
5600 if test $found = "no" ; then
5601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5603 fi
5604
5605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5607 fi
5608
5609 CFLAGS="$CFLAGS -Wnested-externs"
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5612 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5613 cacheid=xorg_cv_cc_flag__Wnested_externs
5614 if eval \${$cacheid+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 int
5621 main ()
5622 {
5623
5624 ;
5625 return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_c_try_link "$LINENO"; then :
5629 eval $cacheid=yes
5630 else
5631 eval $cacheid=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext \
5634 conftest$ac_exeext conftest.$ac_ext
5635 fi
5636
5637
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639
5640 eval supported=\$$cacheid
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642 $as_echo "$supported" >&6; }
5643 if test "$supported" = "yes" ; then
5644 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5645 found="yes"
5646 fi
5647 fi
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 xorg_testset_save_CFLAGS="$CFLAGS"
5664
5665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int i;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 xorg_cv_cc_flag_unknown_warning_option=yes
5678 else
5679 xorg_cv_cc_flag_unknown_warning_option=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687 fi
5688
5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692 fi
5693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 int i;
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 xorg_cv_cc_flag_unused_command_line_argument=yes
5705 else
5706 xorg_cv_cc_flag_unused_command_line_argument=no
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5713 CFLAGS="$xorg_testset_save_CFLAGS"
5714 fi
5715
5716 found="no"
5717
5718 if test $found = "no" ; then
5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721 fi
5722
5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725 fi
5726
5727 CFLAGS="$CFLAGS -Wbad-function-cast"
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5730 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5731 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5732 if eval \${$cacheid+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 int i;
5738 int
5739 main ()
5740 {
5741
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 if ac_fn_c_try_link "$LINENO"; then :
5747 eval $cacheid=yes
5748 else
5749 eval $cacheid=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 fi
5754
5755
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757
5758 eval supported=\$$cacheid
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5760 $as_echo "$supported" >&6; }
5761 if test "$supported" = "yes" ; then
5762 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5763 found="yes"
5764 fi
5765 fi
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781 xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5786 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5787 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 int i;
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"; then :
5795 xorg_cv_cc_flag_unknown_warning_option=yes
5796 else
5797 xorg_cv_cc_flag_unknown_warning_option=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5802 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5804 CFLAGS="$xorg_testset_save_CFLAGS"
5805 fi
5806
5807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 fi
5811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5814 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 xorg_cv_cc_flag_unused_command_line_argument=yes
5823 else
5824 xorg_cv_cc_flag_unused_command_line_argument=no
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5829 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5831 CFLAGS="$xorg_testset_save_CFLAGS"
5832 fi
5833
5834 found="no"
5835
5836 if test $found = "no" ; then
5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839 fi
5840
5841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843 fi
5844
5845 CFLAGS="$CFLAGS -Wold-style-definition"
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5848 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5849 cacheid=xorg_cv_cc_flag__Wold_style_definition
5850 if eval \${$cacheid+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 int
5857 main ()
5858 {
5859
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_link "$LINENO"; then :
5865 eval $cacheid=yes
5866 else
5867 eval $cacheid=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext conftest.$ac_ext
5871 fi
5872
5873
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876 eval supported=\$$cacheid
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878 $as_echo "$supported" >&6; }
5879 if test "$supported" = "yes" ; then
5880 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5881 found="yes"
5882 fi
5883 fi
5884
5885 if test $found = "no" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889
5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 fi
5893
5894 CFLAGS="$CFLAGS -fd"
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5897 $as_echo_n "checking if $CC supports -fd... " >&6; }
5898 cacheid=xorg_cv_cc_flag__fd
5899 if eval \${$cacheid+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 int i;
5905 int
5906 main ()
5907 {
5908
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_link "$LINENO"; then :
5914 eval $cacheid=yes
5915 else
5916 eval $cacheid=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
5920 fi
5921
5922
5923 CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925 eval supported=\$$cacheid
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927 $as_echo "$supported" >&6; }
5928 if test "$supported" = "yes" ; then
5929 BASE_CFLAGS="$BASE_CFLAGS -fd"
5930 found="yes"
5931 fi
5932 fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int i;
5960 _ACEOF
5961 if ac_fn_c_try_compile "$LINENO"; then :
5962 xorg_cv_cc_flag_unknown_warning_option=yes
5963 else
5964 xorg_cv_cc_flag_unknown_warning_option=no
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5969 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5971 CFLAGS="$xorg_testset_save_CFLAGS"
5972 fi
5973
5974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 fi
5978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5980 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5981 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 int i;
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 xorg_cv_cc_flag_unused_command_line_argument=yes
5990 else
5991 xorg_cv_cc_flag_unused_command_line_argument=no
5992 fi
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5996 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5998 CFLAGS="$xorg_testset_save_CFLAGS"
5999 fi
6000
6001 found="no"
6002
6003 if test $found = "no" ; then
6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006 fi
6007
6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6010 fi
6011
6012 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6015 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6016 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6017 if eval \${$cacheid+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 int i;
6023 int
6024 main ()
6025 {
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_link "$LINENO"; then :
6032 eval $cacheid=yes
6033 else
6034 eval $cacheid=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6038 fi
6039
6040
6041 CFLAGS="$xorg_testset_save_CFLAGS"
6042
6043 eval supported=\$$cacheid
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6045 $as_echo "$supported" >&6; }
6046 if test "$supported" = "yes" ; then
6047 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6048 found="yes"
6049 fi
6050 fi
6051
6052
6053
6054
6055
6056 # This chunk adds additional warnings that could catch undesired effects.
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070 xorg_testset_save_CFLAGS="$CFLAGS"
6071
6072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 int i;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 xorg_cv_cc_flag_unknown_warning_option=yes
6085 else
6086 xorg_cv_cc_flag_unknown_warning_option=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 fi
6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 int i;
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 xorg_cv_cc_flag_unused_command_line_argument=yes
6112 else
6113 xorg_cv_cc_flag_unused_command_line_argument=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6120 CFLAGS="$xorg_testset_save_CFLAGS"
6121 fi
6122
6123 found="no"
6124
6125 if test $found = "no" ; then
6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128 fi
6129
6130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132 fi
6133
6134 CFLAGS="$CFLAGS -Wunused"
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6137 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6138 cacheid=xorg_cv_cc_flag__Wunused
6139 if eval \${$cacheid+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 int i;
6145 int
6146 main ()
6147 {
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 if ac_fn_c_try_link "$LINENO"; then :
6154 eval $cacheid=yes
6155 else
6156 eval $cacheid=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6160 fi
6161
6162
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165 eval supported=\$$cacheid
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167 $as_echo "$supported" >&6; }
6168 if test "$supported" = "yes" ; then
6169 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6170 found="yes"
6171 fi
6172 fi
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 xorg_testset_save_CFLAGS="$CFLAGS"
6189
6190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 int i;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 xorg_cv_cc_flag_unknown_warning_option=yes
6203 else
6204 xorg_cv_cc_flag_unknown_warning_option=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 fi
6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 xorg_cv_cc_flag_unused_command_line_argument=yes
6230 else
6231 xorg_cv_cc_flag_unused_command_line_argument=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6238 CFLAGS="$xorg_testset_save_CFLAGS"
6239 fi
6240
6241 found="no"
6242
6243 if test $found = "no" ; then
6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246 fi
6247
6248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250 fi
6251
6252 CFLAGS="$CFLAGS -Wuninitialized"
6253
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6255 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6256 cacheid=xorg_cv_cc_flag__Wuninitialized
6257 if eval \${$cacheid+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 int i;
6263 int
6264 main ()
6265 {
6266
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"; then :
6272 eval $cacheid=yes
6273 else
6274 eval $cacheid=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278 fi
6279
6280
6281 CFLAGS="$xorg_testset_save_CFLAGS"
6282
6283 eval supported=\$$cacheid
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6285 $as_echo "$supported" >&6; }
6286 if test "$supported" = "yes" ; then
6287 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6288 found="yes"
6289 fi
6290 fi
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 xorg_testset_save_CFLAGS="$CFLAGS"
6307
6308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6311 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6312 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 int i;
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 xorg_cv_cc_flag_unknown_warning_option=yes
6321 else
6322 xorg_cv_cc_flag_unknown_warning_option=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330 fi
6331
6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 fi
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 int i;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 xorg_cv_cc_flag_unused_command_line_argument=yes
6348 else
6349 xorg_cv_cc_flag_unused_command_line_argument=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6354 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6356 CFLAGS="$xorg_testset_save_CFLAGS"
6357 fi
6358
6359 found="no"
6360
6361 if test $found = "no" ; then
6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364 fi
6365
6366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368 fi
6369
6370 CFLAGS="$CFLAGS -Wshadow"
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6373 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6374 cacheid=xorg_cv_cc_flag__Wshadow
6375 if eval \${$cacheid+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 int i;
6381 int
6382 main ()
6383 {
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_link "$LINENO"; then :
6390 eval $cacheid=yes
6391 else
6392 eval $cacheid=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6396 fi
6397
6398
6399 CFLAGS="$xorg_testset_save_CFLAGS"
6400
6401 eval supported=\$$cacheid
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6403 $as_echo "$supported" >&6; }
6404 if test "$supported" = "yes" ; then
6405 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6406 found="yes"
6407 fi
6408 fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424 xorg_testset_save_CFLAGS="$CFLAGS"
6425
6426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6429 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6430 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 xorg_cv_cc_flag_unknown_warning_option=yes
6439 else
6440 xorg_cv_cc_flag_unknown_warning_option=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6445 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448 fi
6449
6450 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453 fi
6454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6456 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6457 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 int i;
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465 xorg_cv_cc_flag_unused_command_line_argument=yes
6466 else
6467 xorg_cv_cc_flag_unused_command_line_argument=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 fi
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6472 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475 fi
6476
6477 found="no"
6478
6479 if test $found = "no" ; then
6480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486 fi
6487
6488 CFLAGS="$CFLAGS -Wmissing-noreturn"
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6491 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6492 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6493 if eval \${$cacheid+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 int i;
6499 int
6500 main ()
6501 {
6502
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_c_try_link "$LINENO"; then :
6508 eval $cacheid=yes
6509 else
6510 eval $cacheid=no
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext conftest.$ac_ext
6514 fi
6515
6516
6517 CFLAGS="$xorg_testset_save_CFLAGS"
6518
6519 eval supported=\$$cacheid
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6521 $as_echo "$supported" >&6; }
6522 if test "$supported" = "yes" ; then
6523 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6524 found="yes"
6525 fi
6526 fi
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 xorg_testset_save_CFLAGS="$CFLAGS"
6543
6544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6547 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6548 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 int i;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 xorg_cv_cc_flag_unknown_warning_option=yes
6557 else
6558 xorg_cv_cc_flag_unknown_warning_option=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6563 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566 fi
6567
6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 fi
6572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6574 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6575 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 xorg_cv_cc_flag_unused_command_line_argument=yes
6584 else
6585 xorg_cv_cc_flag_unused_command_line_argument=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6590 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6592 CFLAGS="$xorg_testset_save_CFLAGS"
6593 fi
6594
6595 found="no"
6596
6597 if test $found = "no" ; then
6598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600 fi
6601
6602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604 fi
6605
6606 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6609 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6610 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6611 if eval \${$cacheid+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 int i;
6617 int
6618 main ()
6619 {
6620
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 if ac_fn_c_try_link "$LINENO"; then :
6626 eval $cacheid=yes
6627 else
6628 eval $cacheid=no
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 fi
6633
6634
6635 CFLAGS="$xorg_testset_save_CFLAGS"
6636
6637 eval supported=\$$cacheid
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6639 $as_echo "$supported" >&6; }
6640 if test "$supported" = "yes" ; then
6641 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6642 found="yes"
6643 fi
6644 fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 xorg_testset_save_CFLAGS="$CFLAGS"
6661
6662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6665 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6666 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int i;
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"; then :
6674 xorg_cv_cc_flag_unknown_warning_option=yes
6675 else
6676 xorg_cv_cc_flag_unknown_warning_option=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6681 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684 fi
6685
6686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 fi
6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6692 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6693 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int i;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 xorg_cv_cc_flag_unused_command_line_argument=yes
6702 else
6703 xorg_cv_cc_flag_unused_command_line_argument=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6708 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6710 CFLAGS="$xorg_testset_save_CFLAGS"
6711 fi
6712
6713 found="no"
6714
6715 if test $found = "no" ; then
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 fi
6719
6720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722 fi
6723
6724 CFLAGS="$CFLAGS -Wredundant-decls"
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6727 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6728 cacheid=xorg_cv_cc_flag__Wredundant_decls
6729 if eval \${$cacheid+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 int i;
6735 int
6736 main ()
6737 {
6738
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 if ac_fn_c_try_link "$LINENO"; then :
6744 eval $cacheid=yes
6745 else
6746 eval $cacheid=no
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
6750 fi
6751
6752
6753 CFLAGS="$xorg_testset_save_CFLAGS"
6754
6755 eval supported=\$$cacheid
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6757 $as_echo "$supported" >&6; }
6758 if test "$supported" = "yes" ; then
6759 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6760 found="yes"
6761 fi
6762 fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 xorg_testset_save_CFLAGS="$CFLAGS"
6779
6780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6783 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6784 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 int i;
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 xorg_cv_cc_flag_unknown_warning_option=yes
6793 else
6794 xorg_cv_cc_flag_unknown_warning_option=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6799 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802 fi
6803
6804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 fi
6808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6810 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6811 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 xorg_cv_cc_flag_unused_command_line_argument=yes
6820 else
6821 xorg_cv_cc_flag_unused_command_line_argument=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6826 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829 fi
6830
6831 found="no"
6832
6833 if test $found = "no" ; then
6834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 fi
6837
6838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 fi
6841
6842 CFLAGS="$CFLAGS -Wlogical-op"
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6845 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6846 cacheid=xorg_cv_cc_flag__Wlogical_op
6847 if eval \${$cacheid+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int i;
6853 int
6854 main ()
6855 {
6856
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 if ac_fn_c_try_link "$LINENO"; then :
6862 eval $cacheid=yes
6863 else
6864 eval $cacheid=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
6868 fi
6869
6870
6871 CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873 eval supported=\$$cacheid
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875 $as_echo "$supported" >&6; }
6876 if test "$supported" = "yes" ; then
6877 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6878 found="yes"
6879 fi
6880 fi
6881
6882
6883
6884 # These are currently disabled because they are noisy. They will be enabled
6885 # in the future once the codebase is sufficiently modernized to silence
6886 # them. For now, I don't want them to drown out the other warnings.
6887 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6888 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6889 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6890
6891 # Turn some warnings into errors, so we don't accidently get successful builds
6892 # when there are problems that should be fixed.
6893
6894 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908 xorg_testset_save_CFLAGS="$CFLAGS"
6909
6910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6913 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6914 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int i;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 xorg_cv_cc_flag_unknown_warning_option=yes
6923 else
6924 xorg_cv_cc_flag_unknown_warning_option=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6929 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6931 CFLAGS="$xorg_testset_save_CFLAGS"
6932 fi
6933
6934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 fi
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6940 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6941 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 xorg_cv_cc_flag_unused_command_line_argument=yes
6950 else
6951 xorg_cv_cc_flag_unused_command_line_argument=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6956 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6958 CFLAGS="$xorg_testset_save_CFLAGS"
6959 fi
6960
6961 found="no"
6962
6963 if test $found = "no" ; then
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 fi
6967
6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970 fi
6971
6972 CFLAGS="$CFLAGS -Werror=implicit"
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6975 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6976 cacheid=xorg_cv_cc_flag__Werror_implicit
6977 if eval \${$cacheid+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 int i;
6983 int
6984 main ()
6985 {
6986
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 eval $cacheid=yes
6993 else
6994 eval $cacheid=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 fi
6999
7000
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003 eval supported=\$$cacheid
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005 $as_echo "$supported" >&6; }
7006 if test "$supported" = "yes" ; then
7007 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7008 found="yes"
7009 fi
7010 fi
7011
7012 if test $found = "no" ; then
7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015 fi
7016
7017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019 fi
7020
7021 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7024 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7025 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7026 if eval \${$cacheid+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 int
7033 main ()
7034 {
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_link "$LINENO"; then :
7041 eval $cacheid=yes
7042 else
7043 eval $cacheid=no
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 fi
7048
7049
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051
7052 eval supported=\$$cacheid
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054 $as_echo "$supported" >&6; }
7055 if test "$supported" = "yes" ; then
7056 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7057 found="yes"
7058 fi
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int i;
7087 _ACEOF
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 xorg_cv_cc_flag_unknown_warning_option=yes
7090 else
7091 xorg_cv_cc_flag_unknown_warning_option=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7096 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7098 CFLAGS="$xorg_testset_save_CFLAGS"
7099 fi
7100
7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104 fi
7105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7107 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7108 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 int i;
7114 _ACEOF
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 xorg_cv_cc_flag_unused_command_line_argument=yes
7117 else
7118 xorg_cv_cc_flag_unused_command_line_argument=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7123 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7125 CFLAGS="$xorg_testset_save_CFLAGS"
7126 fi
7127
7128 found="no"
7129
7130 if test $found = "no" ; then
7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133 fi
7134
7135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 fi
7138
7139 CFLAGS="$CFLAGS -Werror=nonnull"
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7142 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7143 cacheid=xorg_cv_cc_flag__Werror_nonnull
7144 if eval \${$cacheid+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 int i;
7150 int
7151 main ()
7152 {
7153
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 if ac_fn_c_try_link "$LINENO"; then :
7159 eval $cacheid=yes
7160 else
7161 eval $cacheid=no
7162 fi
7163 rm -f core conftest.err conftest.$ac_objext \
7164 conftest$ac_exeext conftest.$ac_ext
7165 fi
7166
7167
7168 CFLAGS="$xorg_testset_save_CFLAGS"
7169
7170 eval supported=\$$cacheid
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7172 $as_echo "$supported" >&6; }
7173 if test "$supported" = "yes" ; then
7174 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7175 found="yes"
7176 fi
7177 fi
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 xorg_testset_save_CFLAGS="$CFLAGS"
7194
7195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 int i;
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"; then :
7207 xorg_cv_cc_flag_unknown_warning_option=yes
7208 else
7209 xorg_cv_cc_flag_unknown_warning_option=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217 fi
7218
7219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222 fi
7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 int i;
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"; then :
7234 xorg_cv_cc_flag_unused_command_line_argument=yes
7235 else
7236 xorg_cv_cc_flag_unused_command_line_argument=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7243 CFLAGS="$xorg_testset_save_CFLAGS"
7244 fi
7245
7246 found="no"
7247
7248 if test $found = "no" ; then
7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251 fi
7252
7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255 fi
7256
7257 CFLAGS="$CFLAGS -Werror=init-self"
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7260 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7261 cacheid=xorg_cv_cc_flag__Werror_init_self
7262 if eval \${$cacheid+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 int i;
7268 int
7269 main ()
7270 {
7271
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_link "$LINENO"; then :
7277 eval $cacheid=yes
7278 else
7279 eval $cacheid=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283 fi
7284
7285
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288 eval supported=\$$cacheid
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290 $as_echo "$supported" >&6; }
7291 if test "$supported" = "yes" ; then
7292 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7293 found="yes"
7294 fi
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311 xorg_testset_save_CFLAGS="$CFLAGS"
7312
7313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7316 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7317 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 xorg_cv_cc_flag_unknown_warning_option=yes
7326 else
7327 xorg_cv_cc_flag_unknown_warning_option=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7332 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335 fi
7336
7337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 fi
7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7343 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7344 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 int i;
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"; then :
7352 xorg_cv_cc_flag_unused_command_line_argument=yes
7353 else
7354 xorg_cv_cc_flag_unused_command_line_argument=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7359 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7361 CFLAGS="$xorg_testset_save_CFLAGS"
7362 fi
7363
7364 found="no"
7365
7366 if test $found = "no" ; then
7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369 fi
7370
7371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373 fi
7374
7375 CFLAGS="$CFLAGS -Werror=main"
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7378 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7379 cacheid=xorg_cv_cc_flag__Werror_main
7380 if eval \${$cacheid+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 int i;
7386 int
7387 main ()
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_link "$LINENO"; then :
7395 eval $cacheid=yes
7396 else
7397 eval $cacheid=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
7401 fi
7402
7403
7404 CFLAGS="$xorg_testset_save_CFLAGS"
7405
7406 eval supported=\$$cacheid
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7408 $as_echo "$supported" >&6; }
7409 if test "$supported" = "yes" ; then
7410 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7411 found="yes"
7412 fi
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 xorg_testset_save_CFLAGS="$CFLAGS"
7430
7431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7434 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7435 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 int i;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 xorg_cv_cc_flag_unknown_warning_option=yes
7444 else
7445 xorg_cv_cc_flag_unknown_warning_option=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7450 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453 fi
7454
7455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458 fi
7459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7461 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7462 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 int i;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 xorg_cv_cc_flag_unused_command_line_argument=yes
7471 else
7472 xorg_cv_cc_flag_unused_command_line_argument=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7477 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7479 CFLAGS="$xorg_testset_save_CFLAGS"
7480 fi
7481
7482 found="no"
7483
7484 if test $found = "no" ; then
7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487 fi
7488
7489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491 fi
7492
7493 CFLAGS="$CFLAGS -Werror=missing-braces"
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7496 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7497 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7498 if eval \${$cacheid+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 int i;
7504 int
7505 main ()
7506 {
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"; then :
7513 eval $cacheid=yes
7514 else
7515 eval $cacheid=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 fi
7520
7521
7522 CFLAGS="$xorg_testset_save_CFLAGS"
7523
7524 eval supported=\$$cacheid
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7526 $as_echo "$supported" >&6; }
7527 if test "$supported" = "yes" ; then
7528 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7529 found="yes"
7530 fi
7531 fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 xorg_testset_save_CFLAGS="$CFLAGS"
7548
7549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561 xorg_cv_cc_flag_unknown_warning_option=yes
7562 else
7563 xorg_cv_cc_flag_unknown_warning_option=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571 fi
7572
7573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576 fi
7577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 xorg_cv_cc_flag_unused_command_line_argument=yes
7589 else
7590 xorg_cv_cc_flag_unused_command_line_argument=no
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7597 CFLAGS="$xorg_testset_save_CFLAGS"
7598 fi
7599
7600 found="no"
7601
7602 if test $found = "no" ; then
7603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605 fi
7606
7607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609 fi
7610
7611 CFLAGS="$CFLAGS -Werror=sequence-point"
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7614 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7615 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7616 if eval \${$cacheid+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 int i;
7622 int
7623 main ()
7624 {
7625
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_link "$LINENO"; then :
7631 eval $cacheid=yes
7632 else
7633 eval $cacheid=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext \
7636 conftest$ac_exeext conftest.$ac_ext
7637 fi
7638
7639
7640 CFLAGS="$xorg_testset_save_CFLAGS"
7641
7642 eval supported=\$$cacheid
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7644 $as_echo "$supported" >&6; }
7645 if test "$supported" = "yes" ; then
7646 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7647 found="yes"
7648 fi
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665 xorg_testset_save_CFLAGS="$CFLAGS"
7666
7667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 xorg_cv_cc_flag_unknown_warning_option=yes
7680 else
7681 xorg_cv_cc_flag_unknown_warning_option=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689 fi
7690
7691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 fi
7695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 int i;
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 xorg_cv_cc_flag_unused_command_line_argument=yes
7707 else
7708 xorg_cv_cc_flag_unused_command_line_argument=no
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7715 CFLAGS="$xorg_testset_save_CFLAGS"
7716 fi
7717
7718 found="no"
7719
7720 if test $found = "no" ; then
7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727 fi
7728
7729 CFLAGS="$CFLAGS -Werror=return-type"
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7732 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7733 cacheid=xorg_cv_cc_flag__Werror_return_type
7734 if eval \${$cacheid+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 int i;
7740 int
7741 main ()
7742 {
7743
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_link "$LINENO"; then :
7749 eval $cacheid=yes
7750 else
7751 eval $cacheid=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7755 fi
7756
7757
7758 CFLAGS="$xorg_testset_save_CFLAGS"
7759
7760 eval supported=\$$cacheid
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7762 $as_echo "$supported" >&6; }
7763 if test "$supported" = "yes" ; then
7764 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7765 found="yes"
7766 fi
7767 fi
7768
7769 if test $found = "no" ; then
7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773
7774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776 fi
7777
7778 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7781 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7782 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7783 if eval \${$cacheid+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 int i;
7789 int
7790 main ()
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 eval $cacheid=yes
7799 else
7800 eval $cacheid=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 fi
7805
7806
7807 CFLAGS="$xorg_testset_save_CFLAGS"
7808
7809 eval supported=\$$cacheid
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7811 $as_echo "$supported" >&6; }
7812 if test "$supported" = "yes" ; then
7813 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7814 found="yes"
7815 fi
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832 xorg_testset_save_CFLAGS="$CFLAGS"
7833
7834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846 xorg_cv_cc_flag_unknown_warning_option=yes
7847 else
7848 xorg_cv_cc_flag_unknown_warning_option=no
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7855 CFLAGS="$xorg_testset_save_CFLAGS"
7856 fi
7857
7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861 fi
7862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 int i;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873 xorg_cv_cc_flag_unused_command_line_argument=yes
7874 else
7875 xorg_cv_cc_flag_unused_command_line_argument=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7882 CFLAGS="$xorg_testset_save_CFLAGS"
7883 fi
7884
7885 found="no"
7886
7887 if test $found = "no" ; then
7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890 fi
7891
7892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894 fi
7895
7896 CFLAGS="$CFLAGS -Werror=trigraphs"
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7899 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7900 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7901 if eval \${$cacheid+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int i;
7907 int
7908 main ()
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_link "$LINENO"; then :
7916 eval $cacheid=yes
7917 else
7918 eval $cacheid=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext \
7921 conftest$ac_exeext conftest.$ac_ext
7922 fi
7923
7924
7925 CFLAGS="$xorg_testset_save_CFLAGS"
7926
7927 eval supported=\$$cacheid
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7929 $as_echo "$supported" >&6; }
7930 if test "$supported" = "yes" ; then
7931 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7932 found="yes"
7933 fi
7934 fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 xorg_testset_save_CFLAGS="$CFLAGS"
7951
7952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7955 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7956 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 xorg_cv_cc_flag_unknown_warning_option=yes
7965 else
7966 xorg_cv_cc_flag_unknown_warning_option=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7971 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974 fi
7975
7976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979 fi
7980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7982 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7983 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 xorg_cv_cc_flag_unused_command_line_argument=yes
7992 else
7993 xorg_cv_cc_flag_unused_command_line_argument=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7998 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8001 fi
8002
8003 found="no"
8004
8005 if test $found = "no" ; then
8006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008 fi
8009
8010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012 fi
8013
8014 CFLAGS="$CFLAGS -Werror=array-bounds"
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8017 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8018 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8019 if eval \${$cacheid+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int i;
8025 int
8026 main ()
8027 {
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_link "$LINENO"; then :
8034 eval $cacheid=yes
8035 else
8036 eval $cacheid=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040 fi
8041
8042
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8044
8045 eval supported=\$$cacheid
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8047 $as_echo "$supported" >&6; }
8048 if test "$supported" = "yes" ; then
8049 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8050 found="yes"
8051 fi
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068 xorg_testset_save_CFLAGS="$CFLAGS"
8069
8070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8073 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8074 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 int i;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 xorg_cv_cc_flag_unknown_warning_option=yes
8083 else
8084 xorg_cv_cc_flag_unknown_warning_option=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8089 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8091 CFLAGS="$xorg_testset_save_CFLAGS"
8092 fi
8093
8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 fi
8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8100 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8101 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 int i;
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109 xorg_cv_cc_flag_unused_command_line_argument=yes
8110 else
8111 xorg_cv_cc_flag_unused_command_line_argument=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8116 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8118 CFLAGS="$xorg_testset_save_CFLAGS"
8119 fi
8120
8121 found="no"
8122
8123 if test $found = "no" ; then
8124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126 fi
8127
8128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130 fi
8131
8132 CFLAGS="$CFLAGS -Werror=write-strings"
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8135 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8136 cacheid=xorg_cv_cc_flag__Werror_write_strings
8137 if eval \${$cacheid+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 int i;
8143 int
8144 main ()
8145 {
8146
8147 ;
8148 return 0;
8149 }
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 eval $cacheid=yes
8153 else
8154 eval $cacheid=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 fi
8159
8160
8161 CFLAGS="$xorg_testset_save_CFLAGS"
8162
8163 eval supported=\$$cacheid
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8165 $as_echo "$supported" >&6; }
8166 if test "$supported" = "yes" ; then
8167 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8168 found="yes"
8169 fi
8170 fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 xorg_testset_save_CFLAGS="$CFLAGS"
8187
8188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8191 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8192 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int i;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 xorg_cv_cc_flag_unknown_warning_option=yes
8201 else
8202 xorg_cv_cc_flag_unknown_warning_option=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8207 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210 fi
8211
8212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 fi
8216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8218 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8219 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int i;
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 xorg_cv_cc_flag_unused_command_line_argument=yes
8228 else
8229 xorg_cv_cc_flag_unused_command_line_argument=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8234 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8236 CFLAGS="$xorg_testset_save_CFLAGS"
8237 fi
8238
8239 found="no"
8240
8241 if test $found = "no" ; then
8242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244 fi
8245
8246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248 fi
8249
8250 CFLAGS="$CFLAGS -Werror=address"
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8253 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8254 cacheid=xorg_cv_cc_flag__Werror_address
8255 if eval \${$cacheid+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 int i;
8261 int
8262 main ()
8263 {
8264
8265 ;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_link "$LINENO"; then :
8270 eval $cacheid=yes
8271 else
8272 eval $cacheid=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext \
8275 conftest$ac_exeext conftest.$ac_ext
8276 fi
8277
8278
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280
8281 eval supported=\$$cacheid
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8283 $as_echo "$supported" >&6; }
8284 if test "$supported" = "yes" ; then
8285 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8286 found="yes"
8287 fi
8288 fi
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304 xorg_testset_save_CFLAGS="$CFLAGS"
8305
8306 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8309 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8310 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315 int i;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 xorg_cv_cc_flag_unknown_warning_option=yes
8319 else
8320 xorg_cv_cc_flag_unknown_warning_option=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8325 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8327 CFLAGS="$xorg_testset_save_CFLAGS"
8328 fi
8329
8330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333 fi
8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8336 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8337 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 int i;
8343 _ACEOF
8344 if ac_fn_c_try_compile "$LINENO"; then :
8345 xorg_cv_cc_flag_unused_command_line_argument=yes
8346 else
8347 xorg_cv_cc_flag_unused_command_line_argument=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8352 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8354 CFLAGS="$xorg_testset_save_CFLAGS"
8355 fi
8356
8357 found="no"
8358
8359 if test $found = "no" ; then
8360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362 fi
8363
8364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366 fi
8367
8368 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8371 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8372 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8373 if eval \${$cacheid+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int i;
8379 int
8380 main ()
8381 {
8382
8383 ;
8384 return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 eval $cacheid=yes
8389 else
8390 eval $cacheid=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 fi
8395
8396
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399 eval supported=\$$cacheid
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401 $as_echo "$supported" >&6; }
8402 if test "$supported" = "yes" ; then
8403 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8404 found="yes"
8405 fi
8406 fi
8407
8408 if test $found = "no" ; then
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 fi
8412
8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415 fi
8416
8417 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8418
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8420 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8421 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8422 if eval \${$cacheid+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 int i;
8428 int
8429 main ()
8430 {
8431
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_link "$LINENO"; then :
8437 eval $cacheid=yes
8438 else
8439 eval $cacheid=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 fi
8444
8445
8446 CFLAGS="$xorg_testset_save_CFLAGS"
8447
8448 eval supported=\$$cacheid
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8450 $as_echo "$supported" >&6; }
8451 if test "$supported" = "yes" ; then
8452 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8453 found="yes"
8454 fi
8455 fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 xorg_testset_save_CFLAGS="$CFLAGS"
8472
8473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 xorg_cv_cc_flag_unknown_warning_option=yes
8486 else
8487 xorg_cv_cc_flag_unknown_warning_option=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 fi
8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 int i;
8510 _ACEOF
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512 xorg_cv_cc_flag_unused_command_line_argument=yes
8513 else
8514 xorg_cv_cc_flag_unused_command_line_argument=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8522 fi
8523
8524 found="no"
8525
8526 if test $found = "no" ; then
8527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529 fi
8530
8531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8533 fi
8534
8535 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8538 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8539 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8540 if eval \${$cacheid+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 int i;
8546 int
8547 main ()
8548 {
8549
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 if ac_fn_c_try_link "$LINENO"; then :
8555 eval $cacheid=yes
8556 else
8557 eval $cacheid=no
8558 fi
8559 rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 fi
8562
8563
8564 CFLAGS="$xorg_testset_save_CFLAGS"
8565
8566 eval supported=\$$cacheid
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8568 $as_echo "$supported" >&6; }
8569 if test "$supported" = "yes" ; then
8570 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8571 found="yes"
8572 fi
8573 fi
8574
8575 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8576 else
8577 { $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
8578 $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;}
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592 xorg_testset_save_CFLAGS="$CFLAGS"
8593
8594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8597 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8598 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 int i;
8604 _ACEOF
8605 if ac_fn_c_try_compile "$LINENO"; then :
8606 xorg_cv_cc_flag_unknown_warning_option=yes
8607 else
8608 xorg_cv_cc_flag_unknown_warning_option=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8613 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8615 CFLAGS="$xorg_testset_save_CFLAGS"
8616 fi
8617
8618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621 fi
8622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8624 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8625 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 int i;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 xorg_cv_cc_flag_unused_command_line_argument=yes
8634 else
8635 xorg_cv_cc_flag_unused_command_line_argument=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8640 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8642 CFLAGS="$xorg_testset_save_CFLAGS"
8643 fi
8644
8645 found="no"
8646
8647 if test $found = "no" ; then
8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650 fi
8651
8652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654 fi
8655
8656 CFLAGS="$CFLAGS -Wimplicit"
8657
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8659 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8660 cacheid=xorg_cv_cc_flag__Wimplicit
8661 if eval \${$cacheid+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 int
8668 main ()
8669 {
8670
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_link "$LINENO"; then :
8676 eval $cacheid=yes
8677 else
8678 eval $cacheid=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8682 fi
8683
8684
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686
8687 eval supported=\$$cacheid
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8689 $as_echo "$supported" >&6; }
8690 if test "$supported" = "yes" ; then
8691 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8692 found="yes"
8693 fi
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710 xorg_testset_save_CFLAGS="$CFLAGS"
8711
8712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8715 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8716 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 int i;
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724 xorg_cv_cc_flag_unknown_warning_option=yes
8725 else
8726 xorg_cv_cc_flag_unknown_warning_option=no
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8731 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8733 CFLAGS="$xorg_testset_save_CFLAGS"
8734 fi
8735
8736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739 fi
8740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8743 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 int i;
8749 _ACEOF
8750 if ac_fn_c_try_compile "$LINENO"; then :
8751 xorg_cv_cc_flag_unused_command_line_argument=yes
8752 else
8753 xorg_cv_cc_flag_unused_command_line_argument=no
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8758 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8760 CFLAGS="$xorg_testset_save_CFLAGS"
8761 fi
8762
8763 found="no"
8764
8765 if test $found = "no" ; then
8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768 fi
8769
8770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772 fi
8773
8774 CFLAGS="$CFLAGS -Wnonnull"
8775
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8777 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8778 cacheid=xorg_cv_cc_flag__Wnonnull
8779 if eval \${$cacheid+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 int i;
8785 int
8786 main ()
8787 {
8788
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 if ac_fn_c_try_link "$LINENO"; then :
8794 eval $cacheid=yes
8795 else
8796 eval $cacheid=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800 fi
8801
8802
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804
8805 eval supported=\$$cacheid
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8807 $as_echo "$supported" >&6; }
8808 if test "$supported" = "yes" ; then
8809 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8810 found="yes"
8811 fi
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828 xorg_testset_save_CFLAGS="$CFLAGS"
8829
8830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8833 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8834 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 int i;
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842 xorg_cv_cc_flag_unknown_warning_option=yes
8843 else
8844 xorg_cv_cc_flag_unknown_warning_option=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8849 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8851 CFLAGS="$xorg_testset_save_CFLAGS"
8852 fi
8853
8854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857 fi
8858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8860 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8861 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 int i;
8867 _ACEOF
8868 if ac_fn_c_try_compile "$LINENO"; then :
8869 xorg_cv_cc_flag_unused_command_line_argument=yes
8870 else
8871 xorg_cv_cc_flag_unused_command_line_argument=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8876 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8878 CFLAGS="$xorg_testset_save_CFLAGS"
8879 fi
8880
8881 found="no"
8882
8883 if test $found = "no" ; then
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887
8888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 fi
8891
8892 CFLAGS="$CFLAGS -Winit-self"
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8895 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8896 cacheid=xorg_cv_cc_flag__Winit_self
8897 if eval \${$cacheid+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 int
8904 main ()
8905 {
8906
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 eval $cacheid=yes
8913 else
8914 eval $cacheid=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 fi
8919
8920
8921 CFLAGS="$xorg_testset_save_CFLAGS"
8922
8923 eval supported=\$$cacheid
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8925 $as_echo "$supported" >&6; }
8926 if test "$supported" = "yes" ; then
8927 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8928 found="yes"
8929 fi
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946 xorg_testset_save_CFLAGS="$CFLAGS"
8947
8948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8951 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8952 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 int i;
8958 _ACEOF
8959 if ac_fn_c_try_compile "$LINENO"; then :
8960 xorg_cv_cc_flag_unknown_warning_option=yes
8961 else
8962 xorg_cv_cc_flag_unknown_warning_option=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8967 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970 fi
8971
8972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975 fi
8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8978 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8979 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 int i;
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"; then :
8987 xorg_cv_cc_flag_unused_command_line_argument=yes
8988 else
8989 xorg_cv_cc_flag_unused_command_line_argument=no
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8994 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8996 CFLAGS="$xorg_testset_save_CFLAGS"
8997 fi
8998
8999 found="no"
9000
9001 if test $found = "no" ; then
9002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 fi
9005
9006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008 fi
9009
9010 CFLAGS="$CFLAGS -Wmain"
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9013 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9014 cacheid=xorg_cv_cc_flag__Wmain
9015 if eval \${$cacheid+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 int i;
9021 int
9022 main ()
9023 {
9024
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_link "$LINENO"; then :
9030 eval $cacheid=yes
9031 else
9032 eval $cacheid=no
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
9036 fi
9037
9038
9039 CFLAGS="$xorg_testset_save_CFLAGS"
9040
9041 eval supported=\$$cacheid
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9043 $as_echo "$supported" >&6; }
9044 if test "$supported" = "yes" ; then
9045 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9046 found="yes"
9047 fi
9048 fi
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 xorg_testset_save_CFLAGS="$CFLAGS"
9065
9066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9069 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9070 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 int i;
9076 _ACEOF
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 xorg_cv_cc_flag_unknown_warning_option=yes
9079 else
9080 xorg_cv_cc_flag_unknown_warning_option=no
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9085 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9087 CFLAGS="$xorg_testset_save_CFLAGS"
9088 fi
9089
9090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093 fi
9094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9096 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9097 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 xorg_cv_cc_flag_unused_command_line_argument=yes
9106 else
9107 xorg_cv_cc_flag_unused_command_line_argument=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9112 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115 fi
9116
9117 found="no"
9118
9119 if test $found = "no" ; then
9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122 fi
9123
9124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126 fi
9127
9128 CFLAGS="$CFLAGS -Wmissing-braces"
9129
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9131 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9132 cacheid=xorg_cv_cc_flag__Wmissing_braces
9133 if eval \${$cacheid+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 int i;
9139 int
9140 main ()
9141 {
9142
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 if ac_fn_c_try_link "$LINENO"; then :
9148 eval $cacheid=yes
9149 else
9150 eval $cacheid=no
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 fi
9155
9156
9157 CFLAGS="$xorg_testset_save_CFLAGS"
9158
9159 eval supported=\$$cacheid
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9161 $as_echo "$supported" >&6; }
9162 if test "$supported" = "yes" ; then
9163 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9164 found="yes"
9165 fi
9166 fi
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 xorg_testset_save_CFLAGS="$CFLAGS"
9183
9184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9187 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9188 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 xorg_cv_cc_flag_unknown_warning_option=yes
9197 else
9198 xorg_cv_cc_flag_unknown_warning_option=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9203 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9205 CFLAGS="$xorg_testset_save_CFLAGS"
9206 fi
9207
9208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211 fi
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9215 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220 int i;
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"; then :
9223 xorg_cv_cc_flag_unused_command_line_argument=yes
9224 else
9225 xorg_cv_cc_flag_unused_command_line_argument=no
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9230 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9232 CFLAGS="$xorg_testset_save_CFLAGS"
9233 fi
9234
9235 found="no"
9236
9237 if test $found = "no" ; then
9238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240 fi
9241
9242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244 fi
9245
9246 CFLAGS="$CFLAGS -Wsequence-point"
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9249 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9250 cacheid=xorg_cv_cc_flag__Wsequence_point
9251 if eval \${$cacheid+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 int i;
9257 int
9258 main ()
9259 {
9260
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 eval $cacheid=yes
9267 else
9268 eval $cacheid=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 fi
9273
9274
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276
9277 eval supported=\$$cacheid
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9279 $as_echo "$supported" >&6; }
9280 if test "$supported" = "yes" ; then
9281 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9282 found="yes"
9283 fi
9284 fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300 xorg_testset_save_CFLAGS="$CFLAGS"
9301
9302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9306 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 int i;
9312 _ACEOF
9313 if ac_fn_c_try_compile "$LINENO"; then :
9314 xorg_cv_cc_flag_unknown_warning_option=yes
9315 else
9316 xorg_cv_cc_flag_unknown_warning_option=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9321 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9323 CFLAGS="$xorg_testset_save_CFLAGS"
9324 fi
9325
9326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329 fi
9330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9332 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9333 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 int i;
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"; then :
9341 xorg_cv_cc_flag_unused_command_line_argument=yes
9342 else
9343 xorg_cv_cc_flag_unused_command_line_argument=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9348 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9350 CFLAGS="$xorg_testset_save_CFLAGS"
9351 fi
9352
9353 found="no"
9354
9355 if test $found = "no" ; then
9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358 fi
9359
9360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362 fi
9363
9364 CFLAGS="$CFLAGS -Wreturn-type"
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9367 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9368 cacheid=xorg_cv_cc_flag__Wreturn_type
9369 if eval \${$cacheid+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 int
9376 main ()
9377 {
9378
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_link "$LINENO"; then :
9384 eval $cacheid=yes
9385 else
9386 eval $cacheid=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 fi
9391
9392
9393 CFLAGS="$xorg_testset_save_CFLAGS"
9394
9395 eval supported=\$$cacheid
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9397 $as_echo "$supported" >&6; }
9398 if test "$supported" = "yes" ; then
9399 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9400 found="yes"
9401 fi
9402 fi
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418 xorg_testset_save_CFLAGS="$CFLAGS"
9419
9420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9423 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9424 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 int i;
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"; then :
9432 xorg_cv_cc_flag_unknown_warning_option=yes
9433 else
9434 xorg_cv_cc_flag_unknown_warning_option=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9439 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442 fi
9443
9444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 fi
9448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9450 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9451 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 xorg_cv_cc_flag_unused_command_line_argument=yes
9460 else
9461 xorg_cv_cc_flag_unused_command_line_argument=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468 CFLAGS="$xorg_testset_save_CFLAGS"
9469 fi
9470
9471 found="no"
9472
9473 if test $found = "no" ; then
9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476 fi
9477
9478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480 fi
9481
9482 CFLAGS="$CFLAGS -Wtrigraphs"
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9485 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9486 cacheid=xorg_cv_cc_flag__Wtrigraphs
9487 if eval \${$cacheid+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int i;
9493 int
9494 main ()
9495 {
9496
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502 eval $cacheid=yes
9503 else
9504 eval $cacheid=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 fi
9509
9510
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512
9513 eval supported=\$$cacheid
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9515 $as_echo "$supported" >&6; }
9516 if test "$supported" = "yes" ; then
9517 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9518 found="yes"
9519 fi
9520 fi
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536 xorg_testset_save_CFLAGS="$CFLAGS"
9537
9538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547 int i;
9548 _ACEOF
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550 xorg_cv_cc_flag_unknown_warning_option=yes
9551 else
9552 xorg_cv_cc_flag_unknown_warning_option=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560 fi
9561
9562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 fi
9566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 int i;
9575 _ACEOF
9576 if ac_fn_c_try_compile "$LINENO"; then :
9577 xorg_cv_cc_flag_unused_command_line_argument=yes
9578 else
9579 xorg_cv_cc_flag_unused_command_line_argument=no
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9586 CFLAGS="$xorg_testset_save_CFLAGS"
9587 fi
9588
9589 found="no"
9590
9591 if test $found = "no" ; then
9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594 fi
9595
9596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598 fi
9599
9600 CFLAGS="$CFLAGS -Warray-bounds"
9601
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9603 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9604 cacheid=xorg_cv_cc_flag__Warray_bounds
9605 if eval \${$cacheid+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 int i;
9611 int
9612 main ()
9613 {
9614
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 if ac_fn_c_try_link "$LINENO"; then :
9620 eval $cacheid=yes
9621 else
9622 eval $cacheid=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 fi
9627
9628
9629 CFLAGS="$xorg_testset_save_CFLAGS"
9630
9631 eval supported=\$$cacheid
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9633 $as_echo "$supported" >&6; }
9634 if test "$supported" = "yes" ; then
9635 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9636 found="yes"
9637 fi
9638 fi
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654 xorg_testset_save_CFLAGS="$CFLAGS"
9655
9656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9660 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9665 int i;
9666 _ACEOF
9667 if ac_fn_c_try_compile "$LINENO"; then :
9668 xorg_cv_cc_flag_unknown_warning_option=yes
9669 else
9670 xorg_cv_cc_flag_unknown_warning_option=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678 fi
9679
9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 fi
9684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9687 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int i;
9693 _ACEOF
9694 if ac_fn_c_try_compile "$LINENO"; then :
9695 xorg_cv_cc_flag_unused_command_line_argument=yes
9696 else
9697 xorg_cv_cc_flag_unused_command_line_argument=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705 fi
9706
9707 found="no"
9708
9709 if test $found = "no" ; then
9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712 fi
9713
9714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716 fi
9717
9718 CFLAGS="$CFLAGS -Wwrite-strings"
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9721 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9722 cacheid=xorg_cv_cc_flag__Wwrite_strings
9723 if eval \${$cacheid+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 int i;
9729 int
9730 main ()
9731 {
9732
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 eval $cacheid=yes
9739 else
9740 eval $cacheid=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 fi
9745
9746
9747 CFLAGS="$xorg_testset_save_CFLAGS"
9748
9749 eval supported=\$$cacheid
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9751 $as_echo "$supported" >&6; }
9752 if test "$supported" = "yes" ; then
9753 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9754 found="yes"
9755 fi
9756 fi
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772 xorg_testset_save_CFLAGS="$CFLAGS"
9773
9774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int i;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"; then :
9786 xorg_cv_cc_flag_unknown_warning_option=yes
9787 else
9788 xorg_cv_cc_flag_unknown_warning_option=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801 fi
9802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 int i;
9811 _ACEOF
9812 if ac_fn_c_try_compile "$LINENO"; then :
9813 xorg_cv_cc_flag_unused_command_line_argument=yes
9814 else
9815 xorg_cv_cc_flag_unused_command_line_argument=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9822 CFLAGS="$xorg_testset_save_CFLAGS"
9823 fi
9824
9825 found="no"
9826
9827 if test $found = "no" ; then
9828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830 fi
9831
9832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834 fi
9835
9836 CFLAGS="$CFLAGS -Waddress"
9837
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9839 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9840 cacheid=xorg_cv_cc_flag__Waddress
9841 if eval \${$cacheid+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int i;
9847 int
9848 main ()
9849 {
9850
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 eval $cacheid=yes
9857 else
9858 eval $cacheid=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 fi
9863
9864
9865 CFLAGS="$xorg_testset_save_CFLAGS"
9866
9867 eval supported=\$$cacheid
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9869 $as_echo "$supported" >&6; }
9870 if test "$supported" = "yes" ; then
9871 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9872 found="yes"
9873 fi
9874 fi
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890 xorg_testset_save_CFLAGS="$CFLAGS"
9891
9892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 int i;
9902 _ACEOF
9903 if ac_fn_c_try_compile "$LINENO"; then :
9904 xorg_cv_cc_flag_unknown_warning_option=yes
9905 else
9906 xorg_cv_cc_flag_unknown_warning_option=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914 fi
9915
9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919 fi
9920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 int i;
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 xorg_cv_cc_flag_unused_command_line_argument=yes
9932 else
9933 xorg_cv_cc_flag_unused_command_line_argument=no
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9940 CFLAGS="$xorg_testset_save_CFLAGS"
9941 fi
9942
9943 found="no"
9944
9945 if test $found = "no" ; then
9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 fi
9949
9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952 fi
9953
9954 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9957 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9958 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9959 if eval \${$cacheid+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 int i;
9965 int
9966 main ()
9967 {
9968
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 eval $cacheid=yes
9975 else
9976 eval $cacheid=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 fi
9981
9982
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984
9985 eval supported=\$$cacheid
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9987 $as_echo "$supported" >&6; }
9988 if test "$supported" = "yes" ; then
9989 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9990 found="yes"
9991 fi
9992 fi
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 xorg_testset_save_CFLAGS="$CFLAGS"
10009
10010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10019 int i;
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022 xorg_cv_cc_flag_unknown_warning_option=yes
10023 else
10024 xorg_cv_cc_flag_unknown_warning_option=no
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 fi
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10031 CFLAGS="$xorg_testset_save_CFLAGS"
10032 fi
10033
10034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037 fi
10038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 _ACEOF
10048 if ac_fn_c_try_compile "$LINENO"; then :
10049 xorg_cv_cc_flag_unused_command_line_argument=yes
10050 else
10051 xorg_cv_cc_flag_unused_command_line_argument=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10058 CFLAGS="$xorg_testset_save_CFLAGS"
10059 fi
10060
10061 found="no"
10062
10063 if test $found = "no" ; then
10064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066 fi
10067
10068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10070 fi
10071
10072 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10075 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10076 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10077 if eval \${$cacheid+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 int i;
10083 int
10084 main ()
10085 {
10086
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092 eval $cacheid=yes
10093 else
10094 eval $cacheid=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 fi
10099
10100
10101 CFLAGS="$xorg_testset_save_CFLAGS"
10102
10103 eval supported=\$$cacheid
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10105 $as_echo "$supported" >&6; }
10106 if test "$supported" = "yes" ; then
10107 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10108 found="yes"
10109 fi
10110 fi
10111
10112
10113 fi
10114
10115
10116
10117
10118
10119
10120
10121 CWARNFLAGS="$BASE_CFLAGS"
10122 if test "x$GCC" = xyes ; then
10123 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132
10133 # Check whether --enable-strict-compilation was given.
10134 if test "${enable_strict_compilation+set}" = set; then :
10135 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10136 else
10137 STRICT_COMPILE=no
10138 fi
10139
10140
10141
10142
10143
10144
10145 STRICT_CFLAGS=""
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159 xorg_testset_save_CFLAGS="$CFLAGS"
10160
10161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173 xorg_cv_cc_flag_unknown_warning_option=yes
10174 else
10175 xorg_cv_cc_flag_unknown_warning_option=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183 fi
10184
10185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188 fi
10189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 int i;
10198 _ACEOF
10199 if ac_fn_c_try_compile "$LINENO"; then :
10200 xorg_cv_cc_flag_unused_command_line_argument=yes
10201 else
10202 xorg_cv_cc_flag_unused_command_line_argument=no
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 fi
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10209 CFLAGS="$xorg_testset_save_CFLAGS"
10210 fi
10211
10212 found="no"
10213
10214 if test $found = "no" ; then
10215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217 fi
10218
10219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221 fi
10222
10223 CFLAGS="$CFLAGS -pedantic"
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10226 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10227 cacheid=xorg_cv_cc_flag__pedantic
10228 if eval \${$cacheid+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 int i;
10234 int
10235 main ()
10236 {
10237
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 eval $cacheid=yes
10244 else
10245 eval $cacheid=no
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 fi
10250
10251
10252 CFLAGS="$xorg_testset_save_CFLAGS"
10253
10254 eval supported=\$$cacheid
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10256 $as_echo "$supported" >&6; }
10257 if test "$supported" = "yes" ; then
10258 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10259 found="yes"
10260 fi
10261 fi
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277 xorg_testset_save_CFLAGS="$CFLAGS"
10278
10279 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 _ACEOF
10290 if ac_fn_c_try_compile "$LINENO"; then :
10291 xorg_cv_cc_flag_unknown_warning_option=yes
10292 else
10293 xorg_cv_cc_flag_unknown_warning_option=no
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10300 CFLAGS="$xorg_testset_save_CFLAGS"
10301 fi
10302
10303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306 fi
10307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315 int i;
10316 _ACEOF
10317 if ac_fn_c_try_compile "$LINENO"; then :
10318 xorg_cv_cc_flag_unused_command_line_argument=yes
10319 else
10320 xorg_cv_cc_flag_unused_command_line_argument=no
10321 fi
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10327 CFLAGS="$xorg_testset_save_CFLAGS"
10328 fi
10329
10330 found="no"
10331
10332 if test $found = "no" ; then
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 fi
10336
10337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339 fi
10340
10341 CFLAGS="$CFLAGS -Werror"
10342
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10344 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10345 cacheid=xorg_cv_cc_flag__Werror
10346 if eval \${$cacheid+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int i;
10352 int
10353 main ()
10354 {
10355
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 eval $cacheid=yes
10362 else
10363 eval $cacheid=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 fi
10368
10369
10370 CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372 eval supported=\$$cacheid
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374 $as_echo "$supported" >&6; }
10375 if test "$supported" = "yes" ; then
10376 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10377 found="yes"
10378 fi
10379 fi
10380
10381 if test $found = "no" ; then
10382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384 fi
10385
10386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388 fi
10389
10390 CFLAGS="$CFLAGS -errwarn"
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10393 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10394 cacheid=xorg_cv_cc_flag__errwarn
10395 if eval \${$cacheid+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 int i;
10401 int
10402 main ()
10403 {
10404
10405 ;
10406 return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"; then :
10410 eval $cacheid=yes
10411 else
10412 eval $cacheid=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416 fi
10417
10418
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420
10421 eval supported=\$$cacheid
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10423 $as_echo "$supported" >&6; }
10424 if test "$supported" = "yes" ; then
10425 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10426 found="yes"
10427 fi
10428 fi
10429
10430
10431
10432 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10433 # activate it with -Werror, so we add it here explicitly.
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 xorg_testset_save_CFLAGS="$CFLAGS"
10448
10449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 int i;
10459 _ACEOF
10460 if ac_fn_c_try_compile "$LINENO"; then :
10461 xorg_cv_cc_flag_unknown_warning_option=yes
10462 else
10463 xorg_cv_cc_flag_unknown_warning_option=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 fi
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471 fi
10472
10473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476 fi
10477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 int i;
10486 _ACEOF
10487 if ac_fn_c_try_compile "$LINENO"; then :
10488 xorg_cv_cc_flag_unused_command_line_argument=yes
10489 else
10490 xorg_cv_cc_flag_unused_command_line_argument=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10497 CFLAGS="$xorg_testset_save_CFLAGS"
10498 fi
10499
10500 found="no"
10501
10502 if test $found = "no" ; then
10503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505 fi
10506
10507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10509 fi
10510
10511 CFLAGS="$CFLAGS -Werror=attributes"
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10514 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10515 cacheid=xorg_cv_cc_flag__Werror_attributes
10516 if eval \${$cacheid+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int i;
10522 int
10523 main ()
10524 {
10525
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 eval $cacheid=yes
10532 else
10533 eval $cacheid=no
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537 fi
10538
10539
10540 CFLAGS="$xorg_testset_save_CFLAGS"
10541
10542 eval supported=\$$cacheid
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10544 $as_echo "$supported" >&6; }
10545 if test "$supported" = "yes" ; then
10546 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10547 found="yes"
10548 fi
10549 fi
10550
10551
10552
10553 if test "x$STRICT_COMPILE" = "xyes"; then
10554 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10555 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10556 fi
10557
10558
10559
10560
10561
10562
10563 cat >>confdefs.h <<_ACEOF
10564 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10565 _ACEOF
10566
10567 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10568 if test "x$PVM" = "x"; then
10569 PVM="0"
10570 fi
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define PACKAGE_VERSION_MINOR $PVM
10574 _ACEOF
10575
10576 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10577 if test "x$PVP" = "x"; then
10578 PVP="0"
10579 fi
10580
10581 cat >>confdefs.h <<_ACEOF
10582 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10583 _ACEOF
10584
10585
10586
10587 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10588 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10589 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10590 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10591
10592
10593
10594
10595 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10596 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10597 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10598 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10599 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10600
10601
10602
10603
10604
10605
10606 if test x$APP_MAN_SUFFIX = x ; then
10607 APP_MAN_SUFFIX=1
10608 fi
10609 if test x$APP_MAN_DIR = x ; then
10610 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10611 fi
10612
10613 if test x$LIB_MAN_SUFFIX = x ; then
10614 LIB_MAN_SUFFIX=3
10615 fi
10616 if test x$LIB_MAN_DIR = x ; then
10617 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10618 fi
10619
10620 if test x$FILE_MAN_SUFFIX = x ; then
10621 case $host_os in
10622 solaris*) FILE_MAN_SUFFIX=4 ;;
10623 *) FILE_MAN_SUFFIX=5 ;;
10624 esac
10625 fi
10626 if test x$FILE_MAN_DIR = x ; then
10627 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10628 fi
10629
10630 if test x$MISC_MAN_SUFFIX = x ; then
10631 case $host_os in
10632 solaris*) MISC_MAN_SUFFIX=5 ;;
10633 *) MISC_MAN_SUFFIX=7 ;;
10634 esac
10635 fi
10636 if test x$MISC_MAN_DIR = x ; then
10637 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10638 fi
10639
10640 if test x$DRIVER_MAN_SUFFIX = x ; then
10641 case $host_os in
10642 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10643 *) DRIVER_MAN_SUFFIX=4 ;;
10644 esac
10645 fi
10646 if test x$DRIVER_MAN_DIR = x ; then
10647 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10648 fi
10649
10650 if test x$ADMIN_MAN_SUFFIX = x ; then
10651 case $host_os in
10652 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10653 *) ADMIN_MAN_SUFFIX=8 ;;
10654 esac
10655 fi
10656 if test x$ADMIN_MAN_DIR = x ; then
10657 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10658 fi
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674 XORG_MAN_PAGE="X Version 11"
10675
10676 MAN_SUBSTS="\
10677 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10678 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10679 -e 's|__xservername__|Xorg|g' \
10680 -e 's|__xconfigfile__|xorg.conf|g' \
10681 -e 's|__projectroot__|\$(prefix)|g' \
10682 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10683 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10684 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10685 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10686 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10687 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10688 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10689
10690
10691
10692 # Check whether --enable-silent-rules was given.
10693 if test "${enable_silent_rules+set}" = set; then :
10694 enableval=$enable_silent_rules;
10695 fi
10696
10697 case $enable_silent_rules in # (((
10698 yes) AM_DEFAULT_VERBOSITY=0;;
10699 no) AM_DEFAULT_VERBOSITY=1;;
10700 *) AM_DEFAULT_VERBOSITY=0;;
10701 esac
10702 am_make=${MAKE-make}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10705 if ${am_cv_make_support_nested_variables+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 if $as_echo 'TRUE=$(BAR$(V))
10709 BAR0=false
10710 BAR1=true
10711 V=1
10712 am__doit:
10713 @$(TRUE)
10714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10715 am_cv_make_support_nested_variables=yes
10716 else
10717 am_cv_make_support_nested_variables=no
10718 fi
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10722 if test $am_cv_make_support_nested_variables = yes; then
10723 AM_V='$(V)'
10724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10725 else
10726 AM_V=$AM_DEFAULT_VERBOSITY
10727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10728 fi
10729 AM_BACKSLASH='\'
10730
10731
10732
10733 # Initialize libtool
10734 # Check whether --enable-static was given.
10735 if test "${enable_static+set}" = set; then :
10736 enableval=$enable_static; p=${PACKAGE-default}
10737 case $enableval in
10738 yes) enable_static=yes ;;
10739 no) enable_static=no ;;
10740 *)
10741 enable_static=no
10742 # Look at the argument we got. We use all the common list separators.
10743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10744 for pkg in $enableval; do
10745 IFS="$lt_save_ifs"
10746 if test "X$pkg" = "X$p"; then
10747 enable_static=yes
10748 fi
10749 done
10750 IFS="$lt_save_ifs"
10751 ;;
10752 esac
10753 else
10754 enable_static=no
10755 fi
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765 case `pwd` in
10766 *\ * | *\ *)
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10768 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10769 esac
10770
10771
10772
10773 macro_version='2.4.2'
10774 macro_revision='1.3337'
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 ltmain="$ac_aux_dir/ltmain.sh"
10789
10790 # Backslashify metacharacters that are still active within
10791 # double-quoted strings.
10792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10793
10794 # Same as above, but do not quote variable references.
10795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10796
10797 # Sed substitution to delay expansion of an escaped shell variable in a
10798 # double_quote_subst'ed string.
10799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10800
10801 # Sed substitution to delay expansion of an escaped single quote.
10802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10803
10804 # Sed substitution to avoid accidental globbing in evaled expressions
10805 no_glob_subst='s/\*/\\\*/g'
10806
10807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10810
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10812 $as_echo_n "checking how to print strings... " >&6; }
10813 # Test print first, because it will be a builtin if present.
10814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10816 ECHO='print -r --'
10817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10818 ECHO='printf %s\n'
10819 else
10820 # Use this function as a fallback that always works.
10821 func_fallback_echo ()
10822 {
10823 eval 'cat <<_LTECHO_EOF
10824 $1
10825 _LTECHO_EOF'
10826 }
10827 ECHO='func_fallback_echo'
10828 fi
10829
10830 # func_echo_all arg...
10831 # Invoke $ECHO with all args, space-separated.
10832 func_echo_all ()
10833 {
10834 $ECHO ""
10835 }
10836
10837 case "$ECHO" in
10838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10839 $as_echo "printf" >&6; } ;;
10840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10841 $as_echo "print -r" >&6; } ;;
10842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10843 $as_echo "cat" >&6; } ;;
10844 esac
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10861 if ${ac_cv_path_SED+:} false; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10865 for ac_i in 1 2 3 4 5 6 7; do
10866 ac_script="$ac_script$as_nl$ac_script"
10867 done
10868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10869 { ac_script=; unset ac_script;}
10870 if test -z "$SED"; then
10871 ac_path_SED_found=false
10872 # Loop through the user's path and test for each of PROGNAME-LIST
10873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874 for as_dir in $PATH
10875 do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_prog in sed gsed; do
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10881 as_fn_executable_p "$ac_path_SED" || continue
10882 # Check for GNU ac_path_SED and select it if it is found.
10883 # Check for GNU $ac_path_SED
10884 case `"$ac_path_SED" --version 2>&1` in
10885 *GNU*)
10886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10887 *)
10888 ac_count=0
10889 $as_echo_n 0123456789 >"conftest.in"
10890 while :
10891 do
10892 cat "conftest.in" "conftest.in" >"conftest.tmp"
10893 mv "conftest.tmp" "conftest.in"
10894 cp "conftest.in" "conftest.nl"
10895 $as_echo '' >> "conftest.nl"
10896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10898 as_fn_arith $ac_count + 1 && ac_count=$as_val
10899 if test $ac_count -gt ${ac_path_SED_max-0}; then
10900 # Best one so far, save it but keep looking for a better one
10901 ac_cv_path_SED="$ac_path_SED"
10902 ac_path_SED_max=$ac_count
10903 fi
10904 # 10*(2^10) chars as input seems more than enough
10905 test $ac_count -gt 10 && break
10906 done
10907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10908 esac
10909
10910 $ac_path_SED_found && break 3
10911 done
10912 done
10913 done
10914 IFS=$as_save_IFS
10915 if test -z "$ac_cv_path_SED"; then
10916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10917 fi
10918 else
10919 ac_cv_path_SED=$SED
10920 fi
10921
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10924 $as_echo "$ac_cv_path_SED" >&6; }
10925 SED="$ac_cv_path_SED"
10926 rm -f conftest.sed
10927
10928 test -z "$SED" && SED=sed
10929 Xsed="$SED -e 1s/^X//"
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10942 $as_echo_n "checking for fgrep... " >&6; }
10943 if ${ac_cv_path_FGREP+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10947 then ac_cv_path_FGREP="$GREP -F"
10948 else
10949 if test -z "$FGREP"; then
10950 ac_path_FGREP_found=false
10951 # Loop through the user's path and test for each of PROGNAME-LIST
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10954 do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_prog in fgrep; do
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10960 as_fn_executable_p "$ac_path_FGREP" || continue
10961 # Check for GNU ac_path_FGREP and select it if it is found.
10962 # Check for GNU $ac_path_FGREP
10963 case `"$ac_path_FGREP" --version 2>&1` in
10964 *GNU*)
10965 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10966 *)
10967 ac_count=0
10968 $as_echo_n 0123456789 >"conftest.in"
10969 while :
10970 do
10971 cat "conftest.in" "conftest.in" >"conftest.tmp"
10972 mv "conftest.tmp" "conftest.in"
10973 cp "conftest.in" "conftest.nl"
10974 $as_echo 'FGREP' >> "conftest.nl"
10975 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10977 as_fn_arith $ac_count + 1 && ac_count=$as_val
10978 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10979 # Best one so far, save it but keep looking for a better one
10980 ac_cv_path_FGREP="$ac_path_FGREP"
10981 ac_path_FGREP_max=$ac_count
10982 fi
10983 # 10*(2^10) chars as input seems more than enough
10984 test $ac_count -gt 10 && break
10985 done
10986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10987 esac
10988
10989 $ac_path_FGREP_found && break 3
10990 done
10991 done
10992 done
10993 IFS=$as_save_IFS
10994 if test -z "$ac_cv_path_FGREP"; then
10995 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10996 fi
10997 else
10998 ac_cv_path_FGREP=$FGREP
10999 fi
11000
11001 fi
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11004 $as_echo "$ac_cv_path_FGREP" >&6; }
11005 FGREP="$ac_cv_path_FGREP"
11006
11007
11008 test -z "$GREP" && GREP=grep
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028 # Check whether --with-gnu-ld was given.
11029 if test "${with_gnu_ld+set}" = set; then :
11030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11031 else
11032 with_gnu_ld=no
11033 fi
11034
11035 ac_prog=ld
11036 if test "$GCC" = yes; then
11037 # Check if gcc -print-prog-name=ld gives a path.
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11039 $as_echo_n "checking for ld used by $CC... " >&6; }
11040 case $host in
11041 *-*-mingw*)
11042 # gcc leaves a trailing carriage return which upsets mingw
11043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11044 *)
11045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11046 esac
11047 case $ac_prog in
11048 # Accept absolute paths.
11049 [\\/]* | ?:[\\/]*)
11050 re_direlt='/[^/][^/]*/\.\./'
11051 # Canonicalize the pathname of ld
11052 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11053 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11054 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11055 done
11056 test -z "$LD" && LD="$ac_prog"
11057 ;;
11058 "")
11059 # If it fails, then pretend we aren't using GCC.
11060 ac_prog=ld
11061 ;;
11062 *)
11063 # If it is relative, then search for the first ld in PATH.
11064 with_gnu_ld=unknown
11065 ;;
11066 esac
11067 elif test "$with_gnu_ld" = yes; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11069 $as_echo_n "checking for GNU ld... " >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11072 $as_echo_n "checking for non-GNU ld... " >&6; }
11073 fi
11074 if ${lt_cv_path_LD+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 if test -z "$LD"; then
11078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11079 for ac_dir in $PATH; do
11080 IFS="$lt_save_ifs"
11081 test -z "$ac_dir" && ac_dir=.
11082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11083 lt_cv_path_LD="$ac_dir/$ac_prog"
11084 # Check to see if the program is GNU ld. I'd rather use --version,
11085 # but apparently some variants of GNU ld only accept -v.
11086 # Break only if it was the GNU/non-GNU ld that we prefer.
11087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11088 *GNU* | *'with BFD'*)
11089 test "$with_gnu_ld" != no && break
11090 ;;
11091 *)
11092 test "$with_gnu_ld" != yes && break
11093 ;;
11094 esac
11095 fi
11096 done
11097 IFS="$lt_save_ifs"
11098 else
11099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11100 fi
11101 fi
11102
11103 LD="$lt_cv_path_LD"
11104 if test -n "$LD"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11106 $as_echo "$LD" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11114 if ${lt_cv_prog_gnu_ld+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11118 case `$LD -v 2>&1 </dev/null` in
11119 *GNU* | *'with BFD'*)
11120 lt_cv_prog_gnu_ld=yes
11121 ;;
11122 *)
11123 lt_cv_prog_gnu_ld=no
11124 ;;
11125 esac
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11128 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11129 with_gnu_ld=$lt_cv_prog_gnu_ld
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11140 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11141 if ${lt_cv_path_NM+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 if test -n "$NM"; then
11145 # Let the user override the test.
11146 lt_cv_path_NM="$NM"
11147 else
11148 lt_nm_to_check="${ac_tool_prefix}nm"
11149 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11150 lt_nm_to_check="$lt_nm_to_check nm"
11151 fi
11152 for lt_tmp_nm in $lt_nm_to_check; do
11153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11154 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11155 IFS="$lt_save_ifs"
11156 test -z "$ac_dir" && ac_dir=.
11157 tmp_nm="$ac_dir/$lt_tmp_nm"
11158 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11159 # Check to see if the nm accepts a BSD-compat flag.
11160 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11161 # nm: unknown option "B" ignored
11162 # Tru64's nm complains that /dev/null is an invalid object file
11163 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11164 */dev/null* | *'Invalid file or object type'*)
11165 lt_cv_path_NM="$tmp_nm -B"
11166 break
11167 ;;
11168 *)
11169 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11170 */dev/null*)
11171 lt_cv_path_NM="$tmp_nm -p"
11172 break
11173 ;;
11174 *)
11175 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11176 continue # so that we can try to find one that supports BSD flags
11177 ;;
11178 esac
11179 ;;
11180 esac
11181 fi
11182 done
11183 IFS="$lt_save_ifs"
11184 done
11185 : ${lt_cv_path_NM=no}
11186 fi
11187 fi
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11189 $as_echo "$lt_cv_path_NM" >&6; }
11190 if test "$lt_cv_path_NM" != "no"; then
11191 NM="$lt_cv_path_NM"
11192 else
11193 # Didn't find any BSD compatible name lister, look for dumpbin.
11194 if test -n "$DUMPBIN"; then :
11195 # Let the user override the test.
11196 else
11197 if test -n "$ac_tool_prefix"; then
11198 for ac_prog in dumpbin "link -dump"
11199 do
11200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_prog_DUMPBIN+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test -n "$DUMPBIN"; then
11208 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11209 else
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11212 do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11220 fi
11221 done
11222 done
11223 IFS=$as_save_IFS
11224
11225 fi
11226 fi
11227 DUMPBIN=$ac_cv_prog_DUMPBIN
11228 if test -n "$DUMPBIN"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11230 $as_echo "$DUMPBIN" >&6; }
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11234 fi
11235
11236
11237 test -n "$DUMPBIN" && break
11238 done
11239 fi
11240 if test -z "$DUMPBIN"; then
11241 ac_ct_DUMPBIN=$DUMPBIN
11242 for ac_prog in dumpbin "link -dump"
11243 do
11244 # Extract the first word of "$ac_prog", so it can be a program name with args.
11245 set dummy $ac_prog; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test -n "$ac_ct_DUMPBIN"; then
11252 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11256 do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265 done
11266 done
11267 IFS=$as_save_IFS
11268
11269 fi
11270 fi
11271 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11272 if test -n "$ac_ct_DUMPBIN"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11274 $as_echo "$ac_ct_DUMPBIN" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278 fi
11279
11280
11281 test -n "$ac_ct_DUMPBIN" && break
11282 done
11283
11284 if test "x$ac_ct_DUMPBIN" = x; then
11285 DUMPBIN=":"
11286 else
11287 case $cross_compiling:$ac_tool_warned in
11288 yes:)
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11291 ac_tool_warned=yes ;;
11292 esac
11293 DUMPBIN=$ac_ct_DUMPBIN
11294 fi
11295 fi
11296
11297 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11298 *COFF*)
11299 DUMPBIN="$DUMPBIN -symbols"
11300 ;;
11301 *)
11302 DUMPBIN=:
11303 ;;
11304 esac
11305 fi
11306
11307 if test "$DUMPBIN" != ":"; then
11308 NM="$DUMPBIN"
11309 fi
11310 fi
11311 test -z "$NM" && NM=nm
11312
11313
11314
11315
11316
11317
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11319 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11320 if ${lt_cv_nm_interface+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 lt_cv_nm_interface="BSD nm"
11324 echo "int some_variable = 0;" > conftest.$ac_ext
11325 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11326 (eval "$ac_compile" 2>conftest.err)
11327 cat conftest.err >&5
11328 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11329 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11330 cat conftest.err >&5
11331 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11332 cat conftest.out >&5
11333 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11334 lt_cv_nm_interface="MS dumpbin"
11335 fi
11336 rm -f conftest*
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11339 $as_echo "$lt_cv_nm_interface" >&6; }
11340
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11342 $as_echo_n "checking whether ln -s works... " >&6; }
11343 LN_S=$as_ln_s
11344 if test "$LN_S" = "ln -s"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346 $as_echo "yes" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11349 $as_echo "no, using $LN_S" >&6; }
11350 fi
11351
11352 # find the maximum length of command line arguments
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11354 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11355 if ${lt_cv_sys_max_cmd_len+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 i=0
11359 teststring="ABCD"
11360
11361 case $build_os in
11362 msdosdjgpp*)
11363 # On DJGPP, this test can blow up pretty badly due to problems in libc
11364 # (any single argument exceeding 2000 bytes causes a buffer overrun
11365 # during glob expansion). Even if it were fixed, the result of this
11366 # check would be larger than it should be.
11367 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11368 ;;
11369
11370 gnu*)
11371 # Under GNU Hurd, this test is not required because there is
11372 # no limit to the length of command line arguments.
11373 # Libtool will interpret -1 as no limit whatsoever
11374 lt_cv_sys_max_cmd_len=-1;
11375 ;;
11376
11377 cygwin* | mingw* | cegcc*)
11378 # On Win9x/ME, this test blows up -- it succeeds, but takes
11379 # about 5 minutes as the teststring grows exponentially.
11380 # Worse, since 9x/ME are not pre-emptively multitasking,
11381 # you end up with a "frozen" computer, even though with patience
11382 # the test eventually succeeds (with a max line length of 256k).
11383 # Instead, let's just punt: use the minimum linelength reported by
11384 # all of the supported platforms: 8192 (on NT/2K/XP).
11385 lt_cv_sys_max_cmd_len=8192;
11386 ;;
11387
11388 mint*)
11389 # On MiNT this can take a long time and run out of memory.
11390 lt_cv_sys_max_cmd_len=8192;
11391 ;;
11392
11393 amigaos*)
11394 # On AmigaOS with pdksh, this test takes hours, literally.
11395 # So we just punt and use a minimum line length of 8192.
11396 lt_cv_sys_max_cmd_len=8192;
11397 ;;
11398
11399 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11400 # This has been around since 386BSD, at least. Likely further.
11401 if test -x /sbin/sysctl; then
11402 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11403 elif test -x /usr/sbin/sysctl; then
11404 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11405 else
11406 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11407 fi
11408 # And add a safety zone
11409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11411 ;;
11412
11413 interix*)
11414 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11415 lt_cv_sys_max_cmd_len=196608
11416 ;;
11417
11418 os2*)
11419 # The test takes a long time on OS/2.
11420 lt_cv_sys_max_cmd_len=8192
11421 ;;
11422
11423 osf*)
11424 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11425 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11426 # nice to cause kernel panics so lets avoid the loop below.
11427 # First set a reasonable default.
11428 lt_cv_sys_max_cmd_len=16384
11429 #
11430 if test -x /sbin/sysconfig; then
11431 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11432 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11433 esac
11434 fi
11435 ;;
11436 sco3.2v5*)
11437 lt_cv_sys_max_cmd_len=102400
11438 ;;
11439 sysv5* | sco5v6* | sysv4.2uw2*)
11440 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11441 if test -n "$kargmax"; then
11442 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11443 else
11444 lt_cv_sys_max_cmd_len=32768
11445 fi
11446 ;;
11447 *)
11448 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11449 if test -n "$lt_cv_sys_max_cmd_len"; then
11450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11452 else
11453 # Make teststring a little bigger before we do anything with it.
11454 # a 1K string should be a reasonable start.
11455 for i in 1 2 3 4 5 6 7 8 ; do
11456 teststring=$teststring$teststring
11457 done
11458 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11459 # If test is not a shell built-in, we'll probably end up computing a
11460 # maximum length that is only half of the actual maximum length, but
11461 # we can't tell.
11462 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11463 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11464 test $i != 17 # 1/2 MB should be enough
11465 do
11466 i=`expr $i + 1`
11467 teststring=$teststring$teststring
11468 done
11469 # Only check the string length outside the loop.
11470 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11471 teststring=
11472 # Add a significant safety factor because C++ compilers can tack on
11473 # massive amounts of additional arguments before passing them to the
11474 # linker. It appears as though 1/2 is a usable value.
11475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11476 fi
11477 ;;
11478 esac
11479
11480 fi
11481
11482 if test -n $lt_cv_sys_max_cmd_len ; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11484 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11487 $as_echo "none" >&6; }
11488 fi
11489 max_cmd_len=$lt_cv_sys_max_cmd_len
11490
11491
11492
11493
11494
11495
11496 : ${CP="cp -f"}
11497 : ${MV="mv -f"}
11498 : ${RM="rm -f"}
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11501 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11502 # Try some XSI features
11503 xsi_shell=no
11504 ( _lt_dummy="a/b/c"
11505 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11506 = c,a/b,b/c, \
11507 && eval 'test $(( 1 + 1 )) -eq 2 \
11508 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11509 && xsi_shell=yes
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11511 $as_echo "$xsi_shell" >&6; }
11512
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11515 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11516 lt_shell_append=no
11517 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11518 >/dev/null 2>&1 \
11519 && lt_shell_append=yes
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11521 $as_echo "$lt_shell_append" >&6; }
11522
11523
11524 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11525 lt_unset=unset
11526 else
11527 lt_unset=false
11528 fi
11529
11530
11531
11532
11533
11534 # test EBCDIC or ASCII
11535 case `echo X|tr X '\101'` in
11536 A) # ASCII based system
11537 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11538 lt_SP2NL='tr \040 \012'
11539 lt_NL2SP='tr \015\012 \040\040'
11540 ;;
11541 *) # EBCDIC based system
11542 lt_SP2NL='tr \100 \n'
11543 lt_NL2SP='tr \r\n \100\100'
11544 ;;
11545 esac
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11556 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11557 if ${lt_cv_to_host_file_cmd+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 case $host in
11561 *-*-mingw* )
11562 case $build in
11563 *-*-mingw* ) # actually msys
11564 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11565 ;;
11566 *-*-cygwin* )
11567 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11568 ;;
11569 * ) # otherwise, assume *nix
11570 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11571 ;;
11572 esac
11573 ;;
11574 *-*-cygwin* )
11575 case $build in
11576 *-*-mingw* ) # actually msys
11577 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11578 ;;
11579 *-*-cygwin* )
11580 lt_cv_to_host_file_cmd=func_convert_file_noop
11581 ;;
11582 * ) # otherwise, assume *nix
11583 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11584 ;;
11585 esac
11586 ;;
11587 * ) # unhandled hosts (and "normal" native builds)
11588 lt_cv_to_host_file_cmd=func_convert_file_noop
11589 ;;
11590 esac
11591
11592 fi
11593
11594 to_host_file_cmd=$lt_cv_to_host_file_cmd
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11596 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11597
11598
11599
11600
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11603 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11604 if ${lt_cv_to_tool_file_cmd+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 #assume ordinary cross tools, or native build.
11608 lt_cv_to_tool_file_cmd=func_convert_file_noop
11609 case $host in
11610 *-*-mingw* )
11611 case $build in
11612 *-*-mingw* ) # actually msys
11613 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11614 ;;
11615 esac
11616 ;;
11617 esac
11618
11619 fi
11620
11621 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11623 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11624
11625
11626
11627
11628
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11630 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11631 if ${lt_cv_ld_reload_flag+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 lt_cv_ld_reload_flag='-r'
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11637 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11638 reload_flag=$lt_cv_ld_reload_flag
11639 case $reload_flag in
11640 "" | " "*) ;;
11641 *) reload_flag=" $reload_flag" ;;
11642 esac
11643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11644 case $host_os in
11645 cygwin* | mingw* | pw32* | cegcc*)
11646 if test "$GCC" != yes; then
11647 reload_cmds=false
11648 fi
11649 ;;
11650 darwin*)
11651 if test "$GCC" = yes; then
11652 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11653 else
11654 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11655 fi
11656 ;;
11657 esac
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667 if test -n "$ac_tool_prefix"; then
11668 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11669 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671 $as_echo_n "checking for $ac_word... " >&6; }
11672 if ${ac_cv_prog_OBJDUMP+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 if test -n "$OBJDUMP"; then
11676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11677 else
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11688 fi
11689 done
11690 done
11691 IFS=$as_save_IFS
11692
11693 fi
11694 fi
11695 OBJDUMP=$ac_cv_prog_OBJDUMP
11696 if test -n "$OBJDUMP"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11698 $as_echo "$OBJDUMP" >&6; }
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702 fi
11703
11704
11705 fi
11706 if test -z "$ac_cv_prog_OBJDUMP"; then
11707 ac_ct_OBJDUMP=$OBJDUMP
11708 # Extract the first word of "objdump", so it can be a program name with args.
11709 set dummy objdump; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 if test -n "$ac_ct_OBJDUMP"; then
11716 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11717 else
11718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719 for as_dir in $PATH
11720 do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11725 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 break 2
11728 fi
11729 done
11730 done
11731 IFS=$as_save_IFS
11732
11733 fi
11734 fi
11735 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11736 if test -n "$ac_ct_OBJDUMP"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11738 $as_echo "$ac_ct_OBJDUMP" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743
11744 if test "x$ac_ct_OBJDUMP" = x; then
11745 OBJDUMP="false"
11746 else
11747 case $cross_compiling:$ac_tool_warned in
11748 yes:)
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11751 ac_tool_warned=yes ;;
11752 esac
11753 OBJDUMP=$ac_ct_OBJDUMP
11754 fi
11755 else
11756 OBJDUMP="$ac_cv_prog_OBJDUMP"
11757 fi
11758
11759 test -z "$OBJDUMP" && OBJDUMP=objdump
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11770 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11771 if ${lt_cv_deplibs_check_method+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 lt_cv_file_magic_cmd='$MAGIC_CMD'
11775 lt_cv_file_magic_test_file=
11776 lt_cv_deplibs_check_method='unknown'
11777 # Need to set the preceding variable on all platforms that support
11778 # interlibrary dependencies.
11779 # 'none' -- dependencies not supported.
11780 # `unknown' -- same as none, but documents that we really don't know.
11781 # 'pass_all' -- all dependencies passed with no checks.
11782 # 'test_compile' -- check by making test program.
11783 # 'file_magic [[regex]]' -- check by looking for files in library path
11784 # which responds to the $file_magic_cmd with a given extended regex.
11785 # If you have `file' or equivalent on your system and you're not sure
11786 # whether `pass_all' will *always* work, you probably want this one.
11787
11788 case $host_os in
11789 aix[4-9]*)
11790 lt_cv_deplibs_check_method=pass_all
11791 ;;
11792
11793 beos*)
11794 lt_cv_deplibs_check_method=pass_all
11795 ;;
11796
11797 bsdi[45]*)
11798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11799 lt_cv_file_magic_cmd='/usr/bin/file -L'
11800 lt_cv_file_magic_test_file=/shlib/libc.so
11801 ;;
11802
11803 cygwin*)
11804 # func_win32_libid is a shell function defined in ltmain.sh
11805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11806 lt_cv_file_magic_cmd='func_win32_libid'
11807 ;;
11808
11809 mingw* | pw32*)
11810 # Base MSYS/MinGW do not provide the 'file' command needed by
11811 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11812 # unless we find 'file', for example because we are cross-compiling.
11813 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11814 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11816 lt_cv_file_magic_cmd='func_win32_libid'
11817 else
11818 # Keep this pattern in sync with the one in func_win32_libid.
11819 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11820 lt_cv_file_magic_cmd='$OBJDUMP -f'
11821 fi
11822 ;;
11823
11824 cegcc*)
11825 # use the weaker test based on 'objdump'. See mingw*.
11826 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11827 lt_cv_file_magic_cmd='$OBJDUMP -f'
11828 ;;
11829
11830 darwin* | rhapsody*)
11831 lt_cv_deplibs_check_method=pass_all
11832 ;;
11833
11834 freebsd* | dragonfly*)
11835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11836 case $host_cpu in
11837 i*86 )
11838 # Not sure whether the presence of OpenBSD here was a mistake.
11839 # Let's accept both of them until this is cleared up.
11840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11841 lt_cv_file_magic_cmd=/usr/bin/file
11842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11843 ;;
11844 esac
11845 else
11846 lt_cv_deplibs_check_method=pass_all
11847 fi
11848 ;;
11849
11850 gnu*)
11851 lt_cv_deplibs_check_method=pass_all
11852 ;;
11853
11854 haiku*)
11855 lt_cv_deplibs_check_method=pass_all
11856 ;;
11857
11858 hpux10.20* | hpux11*)
11859 lt_cv_file_magic_cmd=/usr/bin/file
11860 case $host_cpu in
11861 ia64*)
11862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11863 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11864 ;;
11865 hppa*64*)
11866 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]'
11867 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11868 ;;
11869 *)
11870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11871 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11872 ;;
11873 esac
11874 ;;
11875
11876 interix[3-9]*)
11877 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11879 ;;
11880
11881 irix5* | irix6* | nonstopux*)
11882 case $LD in
11883 *-32|*"-32 ") libmagic=32-bit;;
11884 *-n32|*"-n32 ") libmagic=N32;;
11885 *-64|*"-64 ") libmagic=64-bit;;
11886 *) libmagic=never-match;;
11887 esac
11888 lt_cv_deplibs_check_method=pass_all
11889 ;;
11890
11891 # This must be glibc/ELF.
11892 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11893 lt_cv_deplibs_check_method=pass_all
11894 ;;
11895
11896 netbsd*)
11897 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11899 else
11900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11901 fi
11902 ;;
11903
11904 newos6*)
11905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11906 lt_cv_file_magic_cmd=/usr/bin/file
11907 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11908 ;;
11909
11910 *nto* | *qnx*)
11911 lt_cv_deplibs_check_method=pass_all
11912 ;;
11913
11914 openbsd*)
11915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11917 else
11918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11919 fi
11920 ;;
11921
11922 osf3* | osf4* | osf5*)
11923 lt_cv_deplibs_check_method=pass_all
11924 ;;
11925
11926 rdos*)
11927 lt_cv_deplibs_check_method=pass_all
11928 ;;
11929
11930 solaris*)
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933
11934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935 lt_cv_deplibs_check_method=pass_all
11936 ;;
11937
11938 sysv4 | sysv4.3*)
11939 case $host_vendor in
11940 motorola)
11941 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]'
11942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11943 ;;
11944 ncr)
11945 lt_cv_deplibs_check_method=pass_all
11946 ;;
11947 sequent)
11948 lt_cv_file_magic_cmd='/bin/file'
11949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11950 ;;
11951 sni)
11952 lt_cv_file_magic_cmd='/bin/file'
11953 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11954 lt_cv_file_magic_test_file=/lib/libc.so
11955 ;;
11956 siemens)
11957 lt_cv_deplibs_check_method=pass_all
11958 ;;
11959 pc)
11960 lt_cv_deplibs_check_method=pass_all
11961 ;;
11962 esac
11963 ;;
11964
11965 tpf*)
11966 lt_cv_deplibs_check_method=pass_all
11967 ;;
11968 esac
11969
11970 fi
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11972 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11973
11974 file_magic_glob=
11975 want_nocaseglob=no
11976 if test "$build" = "$host"; then
11977 case $host_os in
11978 mingw* | pw32*)
11979 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11980 want_nocaseglob=yes
11981 else
11982 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11983 fi
11984 ;;
11985 esac
11986 fi
11987
11988 file_magic_cmd=$lt_cv_file_magic_cmd
11989 deplibs_check_method=$lt_cv_deplibs_check_method
11990 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 if test -n "$ac_tool_prefix"; then
12014 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_prog_DLLTOOL+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -n "$DLLTOOL"; then
12022 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
12041 DLLTOOL=$ac_cv_prog_DLLTOOL
12042 if test -n "$DLLTOOL"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12044 $as_echo "$DLLTOOL" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 fi
12052 if test -z "$ac_cv_prog_DLLTOOL"; then
12053 ac_ct_DLLTOOL=$DLLTOOL
12054 # Extract the first word of "dlltool", so it can be a program name with args.
12055 set dummy dlltool; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test -n "$ac_ct_DLLTOOL"; then
12062 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12063 else
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075 done
12076 done
12077 IFS=$as_save_IFS
12078
12079 fi
12080 fi
12081 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12082 if test -n "$ac_ct_DLLTOOL"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12084 $as_echo "$ac_ct_DLLTOOL" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088 fi
12089
12090 if test "x$ac_ct_DLLTOOL" = x; then
12091 DLLTOOL="false"
12092 else
12093 case $cross_compiling:$ac_tool_warned in
12094 yes:)
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12097 ac_tool_warned=yes ;;
12098 esac
12099 DLLTOOL=$ac_ct_DLLTOOL
12100 fi
12101 else
12102 DLLTOOL="$ac_cv_prog_DLLTOOL"
12103 fi
12104
12105 test -z "$DLLTOOL" && DLLTOOL=dlltool
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12117 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12118 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 lt_cv_sharedlib_from_linklib_cmd='unknown'
12122
12123 case $host_os in
12124 cygwin* | mingw* | pw32* | cegcc*)
12125 # two different shell functions defined in ltmain.sh
12126 # decide which to use based on capabilities of $DLLTOOL
12127 case `$DLLTOOL --help 2>&1` in
12128 *--identify-strict*)
12129 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12130 ;;
12131 *)
12132 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12133 ;;
12134 esac
12135 ;;
12136 *)
12137 # fallback: assume linklib IS sharedlib
12138 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12139 ;;
12140 esac
12141
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12144 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12145 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12146 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12147
12148
12149
12150
12151
12152
12153
12154 if test -n "$ac_tool_prefix"; then
12155 for ac_prog in ar
12156 do
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_prog_AR+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 if test -n "$AR"; then
12165 ac_cv_prog_AR="$AR" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12177 fi
12178 done
12179 done
12180 IFS=$as_save_IFS
12181
12182 fi
12183 fi
12184 AR=$ac_cv_prog_AR
12185 if test -n "$AR"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12187 $as_echo "$AR" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192
12193
12194 test -n "$AR" && break
12195 done
12196 fi
12197 if test -z "$AR"; then
12198 ac_ct_AR=$AR
12199 for ac_prog in ar
12200 do
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$ac_ct_AR"; then
12209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_ac_ct_AR="$ac_prog"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12229 if test -n "$ac_ct_AR"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12231 $as_echo "$ac_ct_AR" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 test -n "$ac_ct_AR" && break
12239 done
12240
12241 if test "x$ac_ct_AR" = x; then
12242 AR="false"
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250 AR=$ac_ct_AR
12251 fi
12252 fi
12253
12254 : ${AR=ar}
12255 : ${AR_FLAGS=cru}
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12268 $as_echo_n "checking for archiver @FILE support... " >&6; }
12269 if ${lt_cv_ar_at_file+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 lt_cv_ar_at_file=no
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275
12276 int
12277 main ()
12278 {
12279
12280 ;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_compile "$LINENO"; then :
12285 echo conftest.$ac_objext > conftest.lst
12286 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12288 (eval $lt_ar_try) 2>&5
12289 ac_status=$?
12290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12291 test $ac_status = 0; }
12292 if test "$ac_status" -eq 0; then
12293 # Ensure the archiver fails upon bogus file names.
12294 rm -f conftest.$ac_objext libconftest.a
12295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12296 (eval $lt_ar_try) 2>&5
12297 ac_status=$?
12298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 test $ac_status = 0; }
12300 if test "$ac_status" -ne 0; then
12301 lt_cv_ar_at_file=@
12302 fi
12303 fi
12304 rm -f conftest.* libconftest.a
12305
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12311 $as_echo "$lt_cv_ar_at_file" >&6; }
12312
12313 if test "x$lt_cv_ar_at_file" = xno; then
12314 archiver_list_spec=
12315 else
12316 archiver_list_spec=$lt_cv_ar_at_file
12317 fi
12318
12319
12320
12321
12322
12323
12324
12325 if test -n "$ac_tool_prefix"; then
12326 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12327 set dummy ${ac_tool_prefix}strip; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_prog_STRIP+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test -n "$STRIP"; then
12334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347 done
12348 done
12349 IFS=$as_save_IFS
12350
12351 fi
12352 fi
12353 STRIP=$ac_cv_prog_STRIP
12354 if test -n "$STRIP"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12356 $as_echo "$STRIP" >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12360 fi
12361
12362
12363 fi
12364 if test -z "$ac_cv_prog_STRIP"; then
12365 ac_ct_STRIP=$STRIP
12366 # Extract the first word of "strip", so it can be a program name with args.
12367 set dummy strip; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 if test -n "$ac_ct_STRIP"; then
12374 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12375 else
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12378 do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_ac_ct_STRIP="strip"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12386 fi
12387 done
12388 done
12389 IFS=$as_save_IFS
12390
12391 fi
12392 fi
12393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12394 if test -n "$ac_ct_STRIP"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12396 $as_echo "$ac_ct_STRIP" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401
12402 if test "x$ac_ct_STRIP" = x; then
12403 STRIP=":"
12404 else
12405 case $cross_compiling:$ac_tool_warned in
12406 yes:)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12409 ac_tool_warned=yes ;;
12410 esac
12411 STRIP=$ac_ct_STRIP
12412 fi
12413 else
12414 STRIP="$ac_cv_prog_STRIP"
12415 fi
12416
12417 test -z "$STRIP" && STRIP=:
12418
12419
12420
12421
12422
12423
12424 if test -n "$ac_tool_prefix"; then
12425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_prog_RANLIB+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test -n "$RANLIB"; then
12433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12437 do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12445 fi
12446 done
12447 done
12448 IFS=$as_save_IFS
12449
12450 fi
12451 fi
12452 RANLIB=$ac_cv_prog_RANLIB
12453 if test -n "$RANLIB"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12455 $as_echo "$RANLIB" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462 fi
12463 if test -z "$ac_cv_prog_RANLIB"; then
12464 ac_ct_RANLIB=$RANLIB
12465 # Extract the first word of "ranlib", so it can be a program name with args.
12466 set dummy ranlib; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$ac_ct_RANLIB"; then
12473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12477 do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12482 ac_cv_prog_ac_ct_RANLIB="ranlib"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12485 fi
12486 done
12487 done
12488 IFS=$as_save_IFS
12489
12490 fi
12491 fi
12492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12493 if test -n "$ac_ct_RANLIB"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12495 $as_echo "$ac_ct_RANLIB" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 fi
12500
12501 if test "x$ac_ct_RANLIB" = x; then
12502 RANLIB=":"
12503 else
12504 case $cross_compiling:$ac_tool_warned in
12505 yes:)
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12508 ac_tool_warned=yes ;;
12509 esac
12510 RANLIB=$ac_ct_RANLIB
12511 fi
12512 else
12513 RANLIB="$ac_cv_prog_RANLIB"
12514 fi
12515
12516 test -z "$RANLIB" && RANLIB=:
12517
12518
12519
12520
12521
12522
12523 # Determine commands to create old-style static archives.
12524 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12525 old_postinstall_cmds='chmod 644 $oldlib'
12526 old_postuninstall_cmds=
12527
12528 if test -n "$RANLIB"; then
12529 case $host_os in
12530 openbsd*)
12531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12532 ;;
12533 *)
12534 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12535 ;;
12536 esac
12537 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12538 fi
12539
12540 case $host_os in
12541 darwin*)
12542 lock_old_archive_extraction=yes ;;
12543 *)
12544 lock_old_archive_extraction=no ;;
12545 esac
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585 # If no C compiler was specified, use CC.
12586 LTCC=${LTCC-"$CC"}
12587
12588 # If no C compiler flags were specified, use CFLAGS.
12589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12590
12591 # Allow CC to be a program name with arguments.
12592 compiler=$CC
12593
12594
12595 # Check for command to grab the raw symbol name followed by C symbol from nm.
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12597 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12598 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601
12602 # These are sane defaults that work on at least a few old systems.
12603 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12604
12605 # Character class describing NM global symbol codes.
12606 symcode='[BCDEGRST]'
12607
12608 # Regexp to match symbols that can be accessed directly from C.
12609 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12610
12611 # Define system-specific variables.
12612 case $host_os in
12613 aix*)
12614 symcode='[BCDT]'
12615 ;;
12616 cygwin* | mingw* | pw32* | cegcc*)
12617 symcode='[ABCDGISTW]'
12618 ;;
12619 hpux*)
12620 if test "$host_cpu" = ia64; then
12621 symcode='[ABCDEGRST]'
12622 fi
12623 ;;
12624 irix* | nonstopux*)
12625 symcode='[BCDEGRST]'
12626 ;;
12627 osf*)
12628 symcode='[BCDEGQRST]'
12629 ;;
12630 solaris*)
12631 symcode='[BDRT]'
12632 ;;
12633 sco3.2v5*)
12634 symcode='[DT]'
12635 ;;
12636 sysv4.2uw2*)
12637 symcode='[DT]'
12638 ;;
12639 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12640 symcode='[ABDT]'
12641 ;;
12642 sysv4)
12643 symcode='[DFNSTU]'
12644 ;;
12645 esac
12646
12647 # If we're using GNU nm, then use its standard symbol codes.
12648 case `$NM -V 2>&1` in
12649 *GNU* | *'with BFD'*)
12650 symcode='[ABCDGIRSTW]' ;;
12651 esac
12652
12653 # Transform an extracted symbol line into a proper C declaration.
12654 # Some systems (esp. on ia64) link data and code symbols differently,
12655 # so use this general approach.
12656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12657
12658 # Transform an extracted symbol line into symbol name and symbol address
12659 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12660 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12661
12662 # Handle CRLF in mingw tool chain
12663 opt_cr=
12664 case $build_os in
12665 mingw*)
12666 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12667 ;;
12668 esac
12669
12670 # Try without a prefix underscore, then with it.
12671 for ac_symprfx in "" "_"; do
12672
12673 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12674 symxfrm="\\1 $ac_symprfx\\2 \\2"
12675
12676 # Write the raw and C identifiers.
12677 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12678 # Fake it for dumpbin and say T for any non-static function
12679 # and D for any global variable.
12680 # Also find C++ and __fastcall symbols from MSVC++,
12681 # which start with @ or ?.
12682 lt_cv_sys_global_symbol_pipe="$AWK '"\
12683 " {last_section=section; section=\$ 3};"\
12684 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12685 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12686 " \$ 0!~/External *\|/{next};"\
12687 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12688 " {if(hide[section]) next};"\
12689 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12690 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12691 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12692 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12693 " ' prfx=^$ac_symprfx"
12694 else
12695 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12696 fi
12697 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12698
12699 # Check to see that the pipe works correctly.
12700 pipe_works=no
12701
12702 rm -f conftest*
12703 cat > conftest.$ac_ext <<_LT_EOF
12704 #ifdef __cplusplus
12705 extern "C" {
12706 #endif
12707 char nm_test_var;
12708 void nm_test_func(void);
12709 void nm_test_func(void){}
12710 #ifdef __cplusplus
12711 }
12712 #endif
12713 int main(){nm_test_var='a';nm_test_func();return(0);}
12714 _LT_EOF
12715
12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12717 (eval $ac_compile) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 # Now try to grab the symbols.
12722 nlist=conftest.nm
12723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12724 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; } && test -s "$nlist"; then
12728 # Try sorting and uniquifying the output.
12729 if sort "$nlist" | uniq > "$nlist"T; then
12730 mv -f "$nlist"T "$nlist"
12731 else
12732 rm -f "$nlist"T
12733 fi
12734
12735 # Make sure that we snagged all the symbols we need.
12736 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12737 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12738 cat <<_LT_EOF > conftest.$ac_ext
12739 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12740 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12741 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12742 relocations are performed -- see ld's documentation on pseudo-relocs. */
12743 # define LT_DLSYM_CONST
12744 #elif defined(__osf__)
12745 /* This system does not cope well with relocations in const data. */
12746 # define LT_DLSYM_CONST
12747 #else
12748 # define LT_DLSYM_CONST const
12749 #endif
12750
12751 #ifdef __cplusplus
12752 extern "C" {
12753 #endif
12754
12755 _LT_EOF
12756 # Now generate the symbol file.
12757 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12758
12759 cat <<_LT_EOF >> conftest.$ac_ext
12760
12761 /* The mapping between symbol names and symbols. */
12762 LT_DLSYM_CONST struct {
12763 const char *name;
12764 void *address;
12765 }
12766 lt__PROGRAM__LTX_preloaded_symbols[] =
12767 {
12768 { "@PROGRAM@", (void *) 0 },
12769 _LT_EOF
12770 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12771 cat <<\_LT_EOF >> conftest.$ac_ext
12772 {0, (void *) 0}
12773 };
12774
12775 /* This works around a problem in FreeBSD linker */
12776 #ifdef FREEBSD_WORKAROUND
12777 static const void *lt_preloaded_setup() {
12778 return lt__PROGRAM__LTX_preloaded_symbols;
12779 }
12780 #endif
12781
12782 #ifdef __cplusplus
12783 }
12784 #endif
12785 _LT_EOF
12786 # Now try linking the two files.
12787 mv conftest.$ac_objext conftstm.$ac_objext
12788 lt_globsym_save_LIBS=$LIBS
12789 lt_globsym_save_CFLAGS=$CFLAGS
12790 LIBS="conftstm.$ac_objext"
12791 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12793 (eval $ac_link) 2>&5
12794 ac_status=$?
12795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12796 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12797 pipe_works=yes
12798 fi
12799 LIBS=$lt_globsym_save_LIBS
12800 CFLAGS=$lt_globsym_save_CFLAGS
12801 else
12802 echo "cannot find nm_test_func in $nlist" >&5
12803 fi
12804 else
12805 echo "cannot find nm_test_var in $nlist" >&5
12806 fi
12807 else
12808 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12809 fi
12810 else
12811 echo "$progname: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12813 fi
12814 rm -rf conftest* conftst*
12815
12816 # Do not use the global_symbol_pipe unless it works.
12817 if test "$pipe_works" = yes; then
12818 break
12819 else
12820 lt_cv_sys_global_symbol_pipe=
12821 fi
12822 done
12823
12824 fi
12825
12826 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12827 lt_cv_sys_global_symbol_to_cdecl=
12828 fi
12829 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12831 $as_echo "failed" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12834 $as_echo "ok" >&6; }
12835 fi
12836
12837 # Response file support.
12838 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12839 nm_file_list_spec='@'
12840 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12841 nm_file_list_spec='@'
12842 fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12871 $as_echo_n "checking for sysroot... " >&6; }
12872
12873 # Check whether --with-sysroot was given.
12874 if test "${with_sysroot+set}" = set; then :
12875 withval=$with_sysroot;
12876 else
12877 with_sysroot=no
12878 fi
12879
12880
12881 lt_sysroot=
12882 case ${with_sysroot} in #(
12883 yes)
12884 if test "$GCC" = yes; then
12885 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12886 fi
12887 ;; #(
12888 /*)
12889 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12890 ;; #(
12891 no|'')
12892 ;; #(
12893 *)
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12895 $as_echo "${with_sysroot}" >&6; }
12896 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12897 ;;
12898 esac
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12901 $as_echo "${lt_sysroot:-no}" >&6; }
12902
12903
12904
12905
12906
12907 # Check whether --enable-libtool-lock was given.
12908 if test "${enable_libtool_lock+set}" = set; then :
12909 enableval=$enable_libtool_lock;
12910 fi
12911
12912 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12913
12914 # Some flags need to be propagated to the compiler or linker for good
12915 # libtool support.
12916 case $host in
12917 ia64-*-hpux*)
12918 # Find out which ABI we are using.
12919 echo 'int i;' > conftest.$ac_ext
12920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12921 (eval $ac_compile) 2>&5
12922 ac_status=$?
12923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12924 test $ac_status = 0; }; then
12925 case `/usr/bin/file conftest.$ac_objext` in
12926 *ELF-32*)
12927 HPUX_IA64_MODE="32"
12928 ;;
12929 *ELF-64*)
12930 HPUX_IA64_MODE="64"
12931 ;;
12932 esac
12933 fi
12934 rm -rf conftest*
12935 ;;
12936 *-*-irix6*)
12937 # Find out which ABI we are using.
12938 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12940 (eval $ac_compile) 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; }; then
12944 if test "$lt_cv_prog_gnu_ld" = yes; then
12945 case `/usr/bin/file conftest.$ac_objext` in
12946 *32-bit*)
12947 LD="${LD-ld} -melf32bsmip"
12948 ;;
12949 *N32*)
12950 LD="${LD-ld} -melf32bmipn32"
12951 ;;
12952 *64-bit*)
12953 LD="${LD-ld} -melf64bmip"
12954 ;;
12955 esac
12956 else
12957 case `/usr/bin/file conftest.$ac_objext` in
12958 *32-bit*)
12959 LD="${LD-ld} -32"
12960 ;;
12961 *N32*)
12962 LD="${LD-ld} -n32"
12963 ;;
12964 *64-bit*)
12965 LD="${LD-ld} -64"
12966 ;;
12967 esac
12968 fi
12969 fi
12970 rm -rf conftest*
12971 ;;
12972
12973 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12974 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12975 # Find out which ABI we are using.
12976 echo 'int i;' > conftest.$ac_ext
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12978 (eval $ac_compile) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; }; then
12982 case `/usr/bin/file conftest.o` in
12983 *32-bit*)
12984 case $host in
12985 x86_64-*kfreebsd*-gnu)
12986 LD="${LD-ld} -m elf_i386_fbsd"
12987 ;;
12988 x86_64-*linux*)
12989 LD="${LD-ld} -m elf_i386"
12990 ;;
12991 powerpc64le-*linux*)
12992 LD="${LD-ld} -m elf32lppclinux"
12993 ;;
12994 powerpc64-*linux*)
12995 LD="${LD-ld} -m elf32ppclinux"
12996 ;;
12997 s390x-*linux*)
12998 LD="${LD-ld} -m elf_s390"
12999 ;;
13000 sparc64-*linux*)
13001 LD="${LD-ld} -m elf32_sparc"
13002 ;;
13003 esac
13004 ;;
13005 *64-bit*)
13006 case $host in
13007 x86_64-*kfreebsd*-gnu)
13008 LD="${LD-ld} -m elf_x86_64_fbsd"
13009 ;;
13010 x86_64-*linux*)
13011 LD="${LD-ld} -m elf_x86_64"
13012 ;;
13013 powerpcle-*linux*)
13014 LD="${LD-ld} -m elf64lppc"
13015 ;;
13016 powerpc-*linux*)
13017 LD="${LD-ld} -m elf64ppc"
13018 ;;
13019 s390*-*linux*|s390*-*tpf*)
13020 LD="${LD-ld} -m elf64_s390"
13021 ;;
13022 sparc*-*linux*)
13023 LD="${LD-ld} -m elf64_sparc"
13024 ;;
13025 esac
13026 ;;
13027 esac
13028 fi
13029 rm -rf conftest*
13030 ;;
13031
13032 *-*-sco3.2v5*)
13033 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13034 SAVE_CFLAGS="$CFLAGS"
13035 CFLAGS="$CFLAGS -belf"
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13037 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13038 if ${lt_cv_cc_needs_belf+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 ac_ext=c
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049
13050 int
13051 main ()
13052 {
13053
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 lt_cv_cc_needs_belf=yes
13060 else
13061 lt_cv_cc_needs_belf=no
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065 ac_ext=c
13066 ac_cpp='$CPP $CPPFLAGS'
13067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13070
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13073 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13074 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13075 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13076 CFLAGS="$SAVE_CFLAGS"
13077 fi
13078 ;;
13079 *-*solaris*)
13080 # Find out which ABI we are using.
13081 echo 'int i;' > conftest.$ac_ext
13082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13083 (eval $ac_compile) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }; then
13087 case `/usr/bin/file conftest.o` in
13088 *64-bit*)
13089 case $lt_cv_prog_gnu_ld in
13090 yes*)
13091 case $host in
13092 i?86-*-solaris*)
13093 LD="${LD-ld} -m elf_x86_64"
13094 ;;
13095 sparc*-*-solaris*)
13096 LD="${LD-ld} -m elf64_sparc"
13097 ;;
13098 esac
13099 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13100 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13101 LD="${LD-ld}_sol2"
13102 fi
13103 ;;
13104 *)
13105 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13106 LD="${LD-ld} -64"
13107 fi
13108 ;;
13109 esac
13110 ;;
13111 esac
13112 fi
13113 rm -rf conftest*
13114 ;;
13115 esac
13116
13117 need_locks="$enable_libtool_lock"
13118
13119 if test -n "$ac_tool_prefix"; then
13120 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13121 set dummy ${ac_tool_prefix}mt; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test -n "$MANIFEST_TOOL"; then
13128 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13140 fi
13141 done
13142 done
13143 IFS=$as_save_IFS
13144
13145 fi
13146 fi
13147 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13148 if test -n "$MANIFEST_TOOL"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13150 $as_echo "$MANIFEST_TOOL" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156
13157 fi
13158 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13159 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13160 # Extract the first word of "mt", so it can be a program name with args.
13161 set dummy mt; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$ac_ct_MANIFEST_TOOL"; then
13168 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13180 fi
13181 done
13182 done
13183 IFS=$as_save_IFS
13184
13185 fi
13186 fi
13187 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13188 if test -n "$ac_ct_MANIFEST_TOOL"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13190 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 fi
13195
13196 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13197 MANIFEST_TOOL=":"
13198 else
13199 case $cross_compiling:$ac_tool_warned in
13200 yes:)
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13203 ac_tool_warned=yes ;;
13204 esac
13205 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13206 fi
13207 else
13208 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13209 fi
13210
13211 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13213 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13214 if ${lt_cv_path_mainfest_tool+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 lt_cv_path_mainfest_tool=no
13218 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13219 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13220 cat conftest.err >&5
13221 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13222 lt_cv_path_mainfest_tool=yes
13223 fi
13224 rm -f conftest*
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13227 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13228 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13229 MANIFEST_TOOL=:
13230 fi
13231
13232
13233
13234
13235
13236
13237 case $host_os in
13238 rhapsody* | darwin*)
13239 if test -n "$ac_tool_prefix"; then
13240 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13241 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 if test -n "$DSYMUTIL"; then
13248 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13249 else
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13252 do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13257 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13260 fi
13261 done
13262 done
13263 IFS=$as_save_IFS
13264
13265 fi
13266 fi
13267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13268 if test -n "$DSYMUTIL"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13270 $as_echo "$DSYMUTIL" >&6; }
13271 else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13274 fi
13275
13276
13277 fi
13278 if test -z "$ac_cv_prog_DSYMUTIL"; then
13279 ac_ct_DSYMUTIL=$DSYMUTIL
13280 # Extract the first word of "dsymutil", so it can be a program name with args.
13281 set dummy dsymutil; ac_word=$2
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283 $as_echo_n "checking for $ac_word... " >&6; }
13284 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 if test -n "$ac_ct_DSYMUTIL"; then
13288 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13289 else
13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13292 do
13293 IFS=$as_save_IFS
13294 test -z "$as_dir" && as_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13297 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299 break 2
13300 fi
13301 done
13302 done
13303 IFS=$as_save_IFS
13304
13305 fi
13306 fi
13307 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13308 if test -n "$ac_ct_DSYMUTIL"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13310 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13311 else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
13314 fi
13315
13316 if test "x$ac_ct_DSYMUTIL" = x; then
13317 DSYMUTIL=":"
13318 else
13319 case $cross_compiling:$ac_tool_warned in
13320 yes:)
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13323 ac_tool_warned=yes ;;
13324 esac
13325 DSYMUTIL=$ac_ct_DSYMUTIL
13326 fi
13327 else
13328 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13329 fi
13330
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_prog_NMEDIT+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -n "$NMEDIT"; then
13340 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13349 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13352 fi
13353 done
13354 done
13355 IFS=$as_save_IFS
13356
13357 fi
13358 fi
13359 NMEDIT=$ac_cv_prog_NMEDIT
13360 if test -n "$NMEDIT"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13362 $as_echo "$NMEDIT" >&6; }
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366 fi
13367
13368
13369 fi
13370 if test -z "$ac_cv_prog_NMEDIT"; then
13371 ac_ct_NMEDIT=$NMEDIT
13372 # Extract the first word of "nmedit", so it can be a program name with args.
13373 set dummy nmedit; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$ac_ct_NMEDIT"; then
13380 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393 done
13394 done
13395 IFS=$as_save_IFS
13396
13397 fi
13398 fi
13399 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13400 if test -n "$ac_ct_NMEDIT"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13402 $as_echo "$ac_ct_NMEDIT" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408 if test "x$ac_ct_NMEDIT" = x; then
13409 NMEDIT=":"
13410 else
13411 case $cross_compiling:$ac_tool_warned in
13412 yes:)
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13415 ac_tool_warned=yes ;;
13416 esac
13417 NMEDIT=$ac_ct_NMEDIT
13418 fi
13419 else
13420 NMEDIT="$ac_cv_prog_NMEDIT"
13421 fi
13422
13423 if test -n "$ac_tool_prefix"; then
13424 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13425 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if ${ac_cv_prog_LIPO+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 if test -n "$LIPO"; then
13432 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13436 do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13444 fi
13445 done
13446 done
13447 IFS=$as_save_IFS
13448
13449 fi
13450 fi
13451 LIPO=$ac_cv_prog_LIPO
13452 if test -n "$LIPO"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13454 $as_echo "$LIPO" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460
13461 fi
13462 if test -z "$ac_cv_prog_LIPO"; then
13463 ac_ct_LIPO=$LIPO
13464 # Extract the first word of "lipo", so it can be a program name with args.
13465 set dummy lipo; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test -n "$ac_ct_LIPO"; then
13472 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13476 do
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13481 ac_cv_prog_ac_ct_LIPO="lipo"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13484 fi
13485 done
13486 done
13487 IFS=$as_save_IFS
13488
13489 fi
13490 fi
13491 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13492 if test -n "$ac_ct_LIPO"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13494 $as_echo "$ac_ct_LIPO" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498 fi
13499
13500 if test "x$ac_ct_LIPO" = x; then
13501 LIPO=":"
13502 else
13503 case $cross_compiling:$ac_tool_warned in
13504 yes:)
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13507 ac_tool_warned=yes ;;
13508 esac
13509 LIPO=$ac_ct_LIPO
13510 fi
13511 else
13512 LIPO="$ac_cv_prog_LIPO"
13513 fi
13514
13515 if test -n "$ac_tool_prefix"; then
13516 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13517 set dummy ${ac_tool_prefix}otool; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if ${ac_cv_prog_OTOOL+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 if test -n "$OTOOL"; then
13524 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13525 else
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537 done
13538 done
13539 IFS=$as_save_IFS
13540
13541 fi
13542 fi
13543 OTOOL=$ac_cv_prog_OTOOL
13544 if test -n "$OTOOL"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13546 $as_echo "$OTOOL" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_prog_OTOOL"; then
13555 ac_ct_OTOOL=$OTOOL
13556 # Extract the first word of "otool", so it can be a program name with args.
13557 set dummy otool; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559 $as_echo_n "checking for $ac_word... " >&6; }
13560 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 if test -n "$ac_ct_OTOOL"; then
13564 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13565 else
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13568 do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_prog_ac_ct_OTOOL="otool"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 break 2
13576 fi
13577 done
13578 done
13579 IFS=$as_save_IFS
13580
13581 fi
13582 fi
13583 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13584 if test -n "$ac_ct_OTOOL"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13586 $as_echo "$ac_ct_OTOOL" >&6; }
13587 else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13590 fi
13591
13592 if test "x$ac_ct_OTOOL" = x; then
13593 OTOOL=":"
13594 else
13595 case $cross_compiling:$ac_tool_warned in
13596 yes:)
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13599 ac_tool_warned=yes ;;
13600 esac
13601 OTOOL=$ac_ct_OTOOL
13602 fi
13603 else
13604 OTOOL="$ac_cv_prog_OTOOL"
13605 fi
13606
13607 if test -n "$ac_tool_prefix"; then
13608 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13609 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_OTOOL64+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -n "$OTOOL64"; then
13616 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 OTOOL64=$ac_cv_prog_OTOOL64
13636 if test -n "$OTOOL64"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13638 $as_echo "$OTOOL64" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 if test -z "$ac_cv_prog_OTOOL64"; then
13647 ac_ct_OTOOL64=$OTOOL64
13648 # Extract the first word of "otool64", so it can be a program name with args.
13649 set dummy otool64; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 if test -n "$ac_ct_OTOOL64"; then
13656 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661 IFS=$as_save_IFS
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_ac_ct_OTOOL64="otool64"
13666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667 break 2
13668 fi
13669 done
13670 done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13676 if test -n "$ac_ct_OTOOL64"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13678 $as_echo "$ac_ct_OTOOL64" >&6; }
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13682 fi
13683
13684 if test "x$ac_ct_OTOOL64" = x; then
13685 OTOOL64=":"
13686 else
13687 case $cross_compiling:$ac_tool_warned in
13688 yes:)
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13691 ac_tool_warned=yes ;;
13692 esac
13693 OTOOL64=$ac_ct_OTOOL64
13694 fi
13695 else
13696 OTOOL64="$ac_cv_prog_OTOOL64"
13697 fi
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13726 $as_echo_n "checking for -single_module linker flag... " >&6; }
13727 if ${lt_cv_apple_cc_single_mod+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 lt_cv_apple_cc_single_mod=no
13731 if test -z "${LT_MULTI_MODULE}"; then
13732 # By default we will add the -single_module flag. You can override
13733 # by either setting the environment variable LT_MULTI_MODULE
13734 # non-empty at configure time, or by adding -multi_module to the
13735 # link flags.
13736 rm -rf libconftest.dylib*
13737 echo "int foo(void){return 1;}" > conftest.c
13738 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13739 -dynamiclib -Wl,-single_module conftest.c" >&5
13740 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13741 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13742 _lt_result=$?
13743 # If there is a non-empty error log, and "single_module"
13744 # appears in it, assume the flag caused a linker warning
13745 if test -s conftest.err && $GREP single_module conftest.err; then
13746 cat conftest.err >&5
13747 # Otherwise, if the output was created with a 0 exit code from
13748 # the compiler, it worked.
13749 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13750 lt_cv_apple_cc_single_mod=yes
13751 else
13752 cat conftest.err >&5
13753 fi
13754 rm -rf libconftest.dylib*
13755 rm -f conftest.*
13756 fi
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13762 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13763 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 lt_cv_ld_exported_symbols_list=no
13767 save_LDFLAGS=$LDFLAGS
13768 echo "_main" > conftest.sym
13769 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772
13773 int
13774 main ()
13775 {
13776
13777 ;
13778 return 0;
13779 }
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 lt_cv_ld_exported_symbols_list=yes
13783 else
13784 lt_cv_ld_exported_symbols_list=no
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LDFLAGS="$save_LDFLAGS"
13789
13790 fi
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13792 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13795 $as_echo_n "checking for -force_load linker flag... " >&6; }
13796 if ${lt_cv_ld_force_load+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 lt_cv_ld_force_load=no
13800 cat > conftest.c << _LT_EOF
13801 int forced_loaded() { return 2;}
13802 _LT_EOF
13803 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13804 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13805 echo "$AR cru libconftest.a conftest.o" >&5
13806 $AR cru libconftest.a conftest.o 2>&5
13807 echo "$RANLIB libconftest.a" >&5
13808 $RANLIB libconftest.a 2>&5
13809 cat > conftest.c << _LT_EOF
13810 int main() { return 0;}
13811 _LT_EOF
13812 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13813 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13814 _lt_result=$?
13815 if test -s conftest.err && $GREP force_load conftest.err; then
13816 cat conftest.err >&5
13817 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13818 lt_cv_ld_force_load=yes
13819 else
13820 cat conftest.err >&5
13821 fi
13822 rm -f conftest.err libconftest.a conftest conftest.c
13823 rm -rf conftest.dSYM
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13827 $as_echo "$lt_cv_ld_force_load" >&6; }
13828 case $host_os in
13829 rhapsody* | darwin1.[012])
13830 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13831 darwin1.*)
13832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13833 darwin*) # darwin 5.x on
13834 # if running on 10.5 or later, the deployment target defaults
13835 # to the OS version, if on x86, and 10.4, the deployment
13836 # target defaults to 10.4. Don't you love it?
13837 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13838 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13840 10.[012]*)
13841 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13842 10.*)
13843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13844 esac
13845 ;;
13846 esac
13847 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13848 _lt_dar_single_mod='$single_module'
13849 fi
13850 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13851 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13852 else
13853 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13854 fi
13855 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13856 _lt_dsymutil='~$DSYMUTIL $lib || :'
13857 else
13858 _lt_dsymutil=
13859 fi
13860 ;;
13861 esac
13862
13863 for ac_header in dlfcn.h
13864 do :
13865 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13866 "
13867 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_DLFCN_H 1
13870 _ACEOF
13871
13872 fi
13873
13874 done
13875
13876
13877
13878
13879
13880 # Set options
13881
13882
13883
13884 enable_dlopen=no
13885
13886
13887 enable_win32_dll=no
13888
13889
13890 # Check whether --enable-shared was given.
13891 if test "${enable_shared+set}" = set; then :
13892 enableval=$enable_shared; p=${PACKAGE-default}
13893 case $enableval in
13894 yes) enable_shared=yes ;;
13895 no) enable_shared=no ;;
13896 *)
13897 enable_shared=no
13898 # Look at the argument we got. We use all the common list separators.
13899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13900 for pkg in $enableval; do
13901 IFS="$lt_save_ifs"
13902 if test "X$pkg" = "X$p"; then
13903 enable_shared=yes
13904 fi
13905 done
13906 IFS="$lt_save_ifs"
13907 ;;
13908 esac
13909 else
13910 enable_shared=yes
13911 fi
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923 # Check whether --with-pic was given.
13924 if test "${with_pic+set}" = set; then :
13925 withval=$with_pic; lt_p=${PACKAGE-default}
13926 case $withval in
13927 yes|no) pic_mode=$withval ;;
13928 *)
13929 pic_mode=default
13930 # Look at the argument we got. We use all the common list separators.
13931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13932 for lt_pkg in $withval; do
13933 IFS="$lt_save_ifs"
13934 if test "X$lt_pkg" = "X$lt_p"; then
13935 pic_mode=yes
13936 fi
13937 done
13938 IFS="$lt_save_ifs"
13939 ;;
13940 esac
13941 else
13942 pic_mode=default
13943 fi
13944
13945
13946 test -z "$pic_mode" && pic_mode=default
13947
13948
13949
13950
13951
13952
13953
13954 # Check whether --enable-fast-install was given.
13955 if test "${enable_fast_install+set}" = set; then :
13956 enableval=$enable_fast_install; p=${PACKAGE-default}
13957 case $enableval in
13958 yes) enable_fast_install=yes ;;
13959 no) enable_fast_install=no ;;
13960 *)
13961 enable_fast_install=no
13962 # Look at the argument we got. We use all the common list separators.
13963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13964 for pkg in $enableval; do
13965 IFS="$lt_save_ifs"
13966 if test "X$pkg" = "X$p"; then
13967 enable_fast_install=yes
13968 fi
13969 done
13970 IFS="$lt_save_ifs"
13971 ;;
13972 esac
13973 else
13974 enable_fast_install=yes
13975 fi
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987 # This can be used to rebuild libtool when needed
13988 LIBTOOL_DEPS="$ltmain"
13989
13990 # Always use our own libtool.
13991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 test -z "$LN_S" && LN_S="ln -s"
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037 if test -n "${ZSH_VERSION+set}" ; then
14038 setopt NO_GLOB_SUBST
14039 fi
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14042 $as_echo_n "checking for objdir... " >&6; }
14043 if ${lt_cv_objdir+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 rm -f .libs 2>/dev/null
14047 mkdir .libs 2>/dev/null
14048 if test -d .libs; then
14049 lt_cv_objdir=.libs
14050 else
14051 # MS-DOS does not allow filenames that begin with a dot.
14052 lt_cv_objdir=_libs
14053 fi
14054 rmdir .libs 2>/dev/null
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14057 $as_echo "$lt_cv_objdir" >&6; }
14058 objdir=$lt_cv_objdir
14059
14060
14061
14062
14063
14064 cat >>confdefs.h <<_ACEOF
14065 #define LT_OBJDIR "$lt_cv_objdir/"
14066 _ACEOF
14067
14068
14069
14070
14071 case $host_os in
14072 aix3*)
14073 # AIX sometimes has problems with the GCC collect2 program. For some
14074 # reason, if we set the COLLECT_NAMES environment variable, the problems
14075 # vanish in a puff of smoke.
14076 if test "X${COLLECT_NAMES+set}" != Xset; then
14077 COLLECT_NAMES=
14078 export COLLECT_NAMES
14079 fi
14080 ;;
14081 esac
14082
14083 # Global variables:
14084 ofile=libtool
14085 can_build_shared=yes
14086
14087 # All known linkers require a `.a' archive for static linking (except MSVC,
14088 # which needs '.lib').
14089 libext=a
14090
14091 with_gnu_ld="$lt_cv_prog_gnu_ld"
14092
14093 old_CC="$CC"
14094 old_CFLAGS="$CFLAGS"
14095
14096 # Set sane defaults for various variables
14097 test -z "$CC" && CC=cc
14098 test -z "$LTCC" && LTCC=$CC
14099 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14100 test -z "$LD" && LD=ld
14101 test -z "$ac_objext" && ac_objext=o
14102
14103 for cc_temp in $compiler""; do
14104 case $cc_temp in
14105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14107 \-*) ;;
14108 *) break;;
14109 esac
14110 done
14111 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14112
14113
14114 # Only perform the check for file, if the check method requires it
14115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14116 case $deplibs_check_method in
14117 file_magic*)
14118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14120 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 case $MAGIC_CMD in
14125 [\\/*] | ?:[\\/]*)
14126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14127 ;;
14128 *)
14129 lt_save_MAGIC_CMD="$MAGIC_CMD"
14130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14132 for ac_dir in $ac_dummy; do
14133 IFS="$lt_save_ifs"
14134 test -z "$ac_dir" && ac_dir=.
14135 if test -f $ac_dir/${ac_tool_prefix}file; then
14136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14137 if test -n "$file_magic_test_file"; then
14138 case $deplibs_check_method in
14139 "file_magic "*)
14140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14143 $EGREP "$file_magic_regex" > /dev/null; then
14144 :
14145 else
14146 cat <<_LT_EOF 1>&2
14147
14148 *** Warning: the command libtool uses to detect shared libraries,
14149 *** $file_magic_cmd, produces output that libtool cannot recognize.
14150 *** The result is that libtool may fail to recognize shared libraries
14151 *** as such. This will affect the creation of libtool libraries that
14152 *** depend on shared libraries, but programs linked with such libtool
14153 *** libraries will work regardless of this problem. Nevertheless, you
14154 *** may want to report the problem to your system manager and/or to
14155 *** bug-libtool@gnu.org
14156
14157 _LT_EOF
14158 fi ;;
14159 esac
14160 fi
14161 break
14162 fi
14163 done
14164 IFS="$lt_save_ifs"
14165 MAGIC_CMD="$lt_save_MAGIC_CMD"
14166 ;;
14167 esac
14168 fi
14169
14170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14171 if test -n "$MAGIC_CMD"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14173 $as_echo "$MAGIC_CMD" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14177 fi
14178
14179
14180
14181
14182
14183 if test -z "$lt_cv_path_MAGIC_CMD"; then
14184 if test -n "$ac_tool_prefix"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14186 $as_echo_n "checking for file... " >&6; }
14187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 case $MAGIC_CMD in
14191 [\\/*] | ?:[\\/]*)
14192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14193 ;;
14194 *)
14195 lt_save_MAGIC_CMD="$MAGIC_CMD"
14196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14198 for ac_dir in $ac_dummy; do
14199 IFS="$lt_save_ifs"
14200 test -z "$ac_dir" && ac_dir=.
14201 if test -f $ac_dir/file; then
14202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14203 if test -n "$file_magic_test_file"; then
14204 case $deplibs_check_method in
14205 "file_magic "*)
14206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14209 $EGREP "$file_magic_regex" > /dev/null; then
14210 :
14211 else
14212 cat <<_LT_EOF 1>&2
14213
14214 *** Warning: the command libtool uses to detect shared libraries,
14215 *** $file_magic_cmd, produces output that libtool cannot recognize.
14216 *** The result is that libtool may fail to recognize shared libraries
14217 *** as such. This will affect the creation of libtool libraries that
14218 *** depend on shared libraries, but programs linked with such libtool
14219 *** libraries will work regardless of this problem. Nevertheless, you
14220 *** may want to report the problem to your system manager and/or to
14221 *** bug-libtool@gnu.org
14222
14223 _LT_EOF
14224 fi ;;
14225 esac
14226 fi
14227 break
14228 fi
14229 done
14230 IFS="$lt_save_ifs"
14231 MAGIC_CMD="$lt_save_MAGIC_CMD"
14232 ;;
14233 esac
14234 fi
14235
14236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237 if test -n "$MAGIC_CMD"; then
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14239 $as_echo "$MAGIC_CMD" >&6; }
14240 else
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14243 fi
14244
14245
14246 else
14247 MAGIC_CMD=:
14248 fi
14249 fi
14250
14251 fi
14252 ;;
14253 esac
14254
14255 # Use C for the default configuration in the libtool script
14256
14257 lt_save_CC="$CC"
14258 ac_ext=c
14259 ac_cpp='$CPP $CPPFLAGS'
14260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14263
14264
14265 # Source file extension for C test sources.
14266 ac_ext=c
14267
14268 # Object file extension for compiled C test sources.
14269 objext=o
14270 objext=$objext
14271
14272 # Code to be used in simple compile tests
14273 lt_simple_compile_test_code="int some_variable = 0;"
14274
14275 # Code to be used in simple link tests
14276 lt_simple_link_test_code='int main(){return(0);}'
14277
14278
14279
14280
14281
14282
14283
14284 # If no C compiler was specified, use CC.
14285 LTCC=${LTCC-"$CC"}
14286
14287 # If no C compiler flags were specified, use CFLAGS.
14288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14289
14290 # Allow CC to be a program name with arguments.
14291 compiler=$CC
14292
14293 # Save the default compiler, since it gets overwritten when the other
14294 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14295 compiler_DEFAULT=$CC
14296
14297 # save warnings/boilerplate of simple test code
14298 ac_outfile=conftest.$ac_objext
14299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14301 _lt_compiler_boilerplate=`cat conftest.err`
14302 $RM conftest*
14303
14304 ac_outfile=conftest.$ac_objext
14305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14307 _lt_linker_boilerplate=`cat conftest.err`
14308 $RM -r conftest*
14309
14310
14311 if test -n "$compiler"; then
14312
14313 lt_prog_compiler_no_builtin_flag=
14314
14315 if test "$GCC" = yes; then
14316 case $cc_basename in
14317 nvcc*)
14318 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14319 *)
14320 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14321 esac
14322
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14324 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14325 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 lt_cv_prog_compiler_rtti_exceptions=no
14329 ac_outfile=conftest.$ac_objext
14330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14331 lt_compiler_flag="-fno-rtti -fno-exceptions"
14332 # Insert the option either (1) after the last *FLAGS variable, or
14333 # (2) before a word containing "conftest.", or (3) at the end.
14334 # Note that $ac_compile itself does not contain backslashes and begins
14335 # with a dollar sign (not a hyphen), so the echo should work correctly.
14336 # The option is referenced via a variable to avoid confusing sed.
14337 lt_compile=`echo "$ac_compile" | $SED \
14338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14340 -e 's:$: $lt_compiler_flag:'`
14341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14342 (eval "$lt_compile" 2>conftest.err)
14343 ac_status=$?
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 if (exit $ac_status) && test -s "$ac_outfile"; then
14347 # The compiler can only warn and ignore the option if not recognized
14348 # So say no if there are warnings other than the usual output.
14349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14352 lt_cv_prog_compiler_rtti_exceptions=yes
14353 fi
14354 fi
14355 $RM conftest*
14356
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14359 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14360
14361 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14362 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14363 else
14364 :
14365 fi
14366
14367 fi
14368
14369
14370
14371
14372
14373
14374 lt_prog_compiler_wl=
14375 lt_prog_compiler_pic=
14376 lt_prog_compiler_static=
14377
14378
14379 if test "$GCC" = yes; then
14380 lt_prog_compiler_wl='-Wl,'
14381 lt_prog_compiler_static='-static'
14382
14383 case $host_os in
14384 aix*)
14385 # All AIX code is PIC.
14386 if test "$host_cpu" = ia64; then
14387 # AIX 5 now supports IA64 processor
14388 lt_prog_compiler_static='-Bstatic'
14389 fi
14390 ;;
14391
14392 amigaos*)
14393 case $host_cpu in
14394 powerpc)
14395 # see comment about AmigaOS4 .so support
14396 lt_prog_compiler_pic='-fPIC'
14397 ;;
14398 m68k)
14399 # FIXME: we need at least 68020 code to build shared libraries, but
14400 # adding the `-m68020' flag to GCC prevents building anything better,
14401 # like `-m68040'.
14402 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14403 ;;
14404 esac
14405 ;;
14406
14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408 # PIC is the default for these OSes.
14409 ;;
14410
14411 mingw* | cygwin* | pw32* | os2* | cegcc*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14415 # (--disable-auto-import) libraries
14416 lt_prog_compiler_pic='-DDLL_EXPORT'
14417 ;;
14418
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic='-fno-common'
14423 ;;
14424
14425 haiku*)
14426 # PIC is the default for Haiku.
14427 # The "-static" flag exists, but is broken.
14428 lt_prog_compiler_static=
14429 ;;
14430
14431 hpux*)
14432 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14433 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14434 # sets the default TLS model and affects inlining.
14435 case $host_cpu in
14436 hppa*64*)
14437 # +Z the default
14438 ;;
14439 *)
14440 lt_prog_compiler_pic='-fPIC'
14441 ;;
14442 esac
14443 ;;
14444
14445 interix[3-9]*)
14446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14447 # Instead, we relocate shared libraries at runtime.
14448 ;;
14449
14450 msdosdjgpp*)
14451 # Just because we use GCC doesn't mean we suddenly get shared libraries
14452 # on systems that don't support them.
14453 lt_prog_compiler_can_build_shared=no
14454 enable_shared=no
14455 ;;
14456
14457 *nto* | *qnx*)
14458 # QNX uses GNU C++, but need to define -shared option too, otherwise
14459 # it will coredump.
14460 lt_prog_compiler_pic='-fPIC -shared'
14461 ;;
14462
14463 sysv4*MP*)
14464 if test -d /usr/nec; then
14465 lt_prog_compiler_pic=-Kconform_pic
14466 fi
14467 ;;
14468
14469 *)
14470 lt_prog_compiler_pic='-fPIC'
14471 ;;
14472 esac
14473
14474 case $cc_basename in
14475 nvcc*) # Cuda Compiler Driver 2.2
14476 lt_prog_compiler_wl='-Xlinker '
14477 if test -n "$lt_prog_compiler_pic"; then
14478 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14479 fi
14480 ;;
14481 esac
14482 else
14483 # PORTME Check for flag to pass linker flags through the system compiler.
14484 case $host_os in
14485 aix*)
14486 lt_prog_compiler_wl='-Wl,'
14487 if test "$host_cpu" = ia64; then
14488 # AIX 5 now supports IA64 processor
14489 lt_prog_compiler_static='-Bstatic'
14490 else
14491 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14492 fi
14493 ;;
14494
14495 mingw* | cygwin* | pw32* | os2* | cegcc*)
14496 # This hack is so that the source file can tell whether it is being
14497 # built for inclusion in a dll (and should export symbols for example).
14498 lt_prog_compiler_pic='-DDLL_EXPORT'
14499 ;;
14500
14501 hpux9* | hpux10* | hpux11*)
14502 lt_prog_compiler_wl='-Wl,'
14503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14504 # not for PA HP-UX.
14505 case $host_cpu in
14506 hppa*64*|ia64*)
14507 # +Z the default
14508 ;;
14509 *)
14510 lt_prog_compiler_pic='+Z'
14511 ;;
14512 esac
14513 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14514 lt_prog_compiler_static='${wl}-a ${wl}archive'
14515 ;;
14516
14517 irix5* | irix6* | nonstopux*)
14518 lt_prog_compiler_wl='-Wl,'
14519 # PIC (with -KPIC) is the default.
14520 lt_prog_compiler_static='-non_shared'
14521 ;;
14522
14523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14524 case $cc_basename in
14525 # old Intel for x86_64 which still supported -KPIC.
14526 ecc*)
14527 lt_prog_compiler_wl='-Wl,'
14528 lt_prog_compiler_pic='-KPIC'
14529 lt_prog_compiler_static='-static'
14530 ;;
14531 # icc used to be incompatible with GCC.
14532 # ICC 10 doesn't accept -KPIC any more.
14533 icc* | ifort*)
14534 lt_prog_compiler_wl='-Wl,'
14535 lt_prog_compiler_pic='-fPIC'
14536 lt_prog_compiler_static='-static'
14537 ;;
14538 # Lahey Fortran 8.1.
14539 lf95*)
14540 lt_prog_compiler_wl='-Wl,'
14541 lt_prog_compiler_pic='--shared'
14542 lt_prog_compiler_static='--static'
14543 ;;
14544 nagfor*)
14545 # NAG Fortran compiler
14546 lt_prog_compiler_wl='-Wl,-Wl,,'
14547 lt_prog_compiler_pic='-PIC'
14548 lt_prog_compiler_static='-Bstatic'
14549 ;;
14550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14551 # Portland Group compilers (*not* the Pentium gcc compiler,
14552 # which looks to be a dead project)
14553 lt_prog_compiler_wl='-Wl,'
14554 lt_prog_compiler_pic='-fpic'
14555 lt_prog_compiler_static='-Bstatic'
14556 ;;
14557 ccc*)
14558 lt_prog_compiler_wl='-Wl,'
14559 # All Alpha code is PIC.
14560 lt_prog_compiler_static='-non_shared'
14561 ;;
14562 xl* | bgxl* | bgf* | mpixl*)
14563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14564 lt_prog_compiler_wl='-Wl,'
14565 lt_prog_compiler_pic='-qpic'
14566 lt_prog_compiler_static='-qstaticlink'
14567 ;;
14568 *)
14569 case `$CC -V 2>&1 | sed 5q` in
14570 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14572 lt_prog_compiler_pic='-KPIC'
14573 lt_prog_compiler_static='-Bstatic'
14574 lt_prog_compiler_wl=''
14575 ;;
14576 *Sun\ F* | *Sun*Fortran*)
14577 lt_prog_compiler_pic='-KPIC'
14578 lt_prog_compiler_static='-Bstatic'
14579 lt_prog_compiler_wl='-Qoption ld '
14580 ;;
14581 *Sun\ C*)
14582 # Sun C 5.9
14583 lt_prog_compiler_pic='-KPIC'
14584 lt_prog_compiler_static='-Bstatic'
14585 lt_prog_compiler_wl='-Wl,'
14586 ;;
14587 *Intel*\ [CF]*Compiler*)
14588 lt_prog_compiler_wl='-Wl,'
14589 lt_prog_compiler_pic='-fPIC'
14590 lt_prog_compiler_static='-static'
14591 ;;
14592 *Portland\ Group*)
14593 lt_prog_compiler_wl='-Wl,'
14594 lt_prog_compiler_pic='-fpic'
14595 lt_prog_compiler_static='-Bstatic'
14596 ;;
14597 esac
14598 ;;
14599 esac
14600 ;;
14601
14602 newsos6)
14603 lt_prog_compiler_pic='-KPIC'
14604 lt_prog_compiler_static='-Bstatic'
14605 ;;
14606
14607 *nto* | *qnx*)
14608 # QNX uses GNU C++, but need to define -shared option too, otherwise
14609 # it will coredump.
14610 lt_prog_compiler_pic='-fPIC -shared'
14611 ;;
14612
14613 osf3* | osf4* | osf5*)
14614 lt_prog_compiler_wl='-Wl,'
14615 # All OSF/1 code is PIC.
14616 lt_prog_compiler_static='-non_shared'
14617 ;;
14618
14619 rdos*)
14620 lt_prog_compiler_static='-non_shared'
14621 ;;
14622
14623 solaris*)
14624 lt_prog_compiler_pic='-KPIC'
14625 lt_prog_compiler_static='-Bstatic'
14626 case $cc_basename in
14627 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14628 lt_prog_compiler_wl='-Qoption ld ';;
14629 *)
14630 lt_prog_compiler_wl='-Wl,';;
14631 esac
14632 ;;
14633
14634 sunos4*)
14635 lt_prog_compiler_wl='-Qoption ld '
14636 lt_prog_compiler_pic='-PIC'
14637 lt_prog_compiler_static='-Bstatic'
14638 ;;
14639
14640 sysv4 | sysv4.2uw2* | sysv4.3*)
14641 lt_prog_compiler_wl='-Wl,'
14642 lt_prog_compiler_pic='-KPIC'
14643 lt_prog_compiler_static='-Bstatic'
14644 ;;
14645
14646 sysv4*MP*)
14647 if test -d /usr/nec ;then
14648 lt_prog_compiler_pic='-Kconform_pic'
14649 lt_prog_compiler_static='-Bstatic'
14650 fi
14651 ;;
14652
14653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14654 lt_prog_compiler_wl='-Wl,'
14655 lt_prog_compiler_pic='-KPIC'
14656 lt_prog_compiler_static='-Bstatic'
14657 ;;
14658
14659 unicos*)
14660 lt_prog_compiler_wl='-Wl,'
14661 lt_prog_compiler_can_build_shared=no
14662 ;;
14663
14664 uts4*)
14665 lt_prog_compiler_pic='-pic'
14666 lt_prog_compiler_static='-Bstatic'
14667 ;;
14668
14669 *)
14670 lt_prog_compiler_can_build_shared=no
14671 ;;
14672 esac
14673 fi
14674
14675 case $host_os in
14676 # For platforms which do not support PIC, -DPIC is meaningless:
14677 *djgpp*)
14678 lt_prog_compiler_pic=
14679 ;;
14680 *)
14681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14682 ;;
14683 esac
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14686 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14687 if ${lt_cv_prog_compiler_pic+:} false; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14691 fi
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14693 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14694 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14695
14696 #
14697 # Check to make sure the PIC flag actually works.
14698 #
14699 if test -n "$lt_prog_compiler_pic"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14701 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14702 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 lt_cv_prog_compiler_pic_works=no
14706 ac_outfile=conftest.$ac_objext
14707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14708 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14709 # Insert the option either (1) after the last *FLAGS variable, or
14710 # (2) before a word containing "conftest.", or (3) at the end.
14711 # Note that $ac_compile itself does not contain backslashes and begins
14712 # with a dollar sign (not a hyphen), so the echo should work correctly.
14713 # The option is referenced via a variable to avoid confusing sed.
14714 lt_compile=`echo "$ac_compile" | $SED \
14715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14717 -e 's:$: $lt_compiler_flag:'`
14718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14719 (eval "$lt_compile" 2>conftest.err)
14720 ac_status=$?
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 if (exit $ac_status) && test -s "$ac_outfile"; then
14724 # The compiler can only warn and ignore the option if not recognized
14725 # So say no if there are warnings other than the usual output.
14726 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14729 lt_cv_prog_compiler_pic_works=yes
14730 fi
14731 fi
14732 $RM conftest*
14733
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14736 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14737
14738 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14739 case $lt_prog_compiler_pic in
14740 "" | " "*) ;;
14741 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14742 esac
14743 else
14744 lt_prog_compiler_pic=
14745 lt_prog_compiler_can_build_shared=no
14746 fi
14747
14748 fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 #
14761 # Check to make sure the static flag actually works.
14762 #
14763 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14765 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14766 if ${lt_cv_prog_compiler_static_works+:} false; then :
14767 $as_echo_n "(cached) " >&6
14768 else
14769 lt_cv_prog_compiler_static_works=no
14770 save_LDFLAGS="$LDFLAGS"
14771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14774 # The linker can only warn and ignore the option if not recognized
14775 # So say no if there are warnings
14776 if test -s conftest.err; then
14777 # Append any errors to the config.log.
14778 cat conftest.err 1>&5
14779 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14781 if diff conftest.exp conftest.er2 >/dev/null; then
14782 lt_cv_prog_compiler_static_works=yes
14783 fi
14784 else
14785 lt_cv_prog_compiler_static_works=yes
14786 fi
14787 fi
14788 $RM -r conftest*
14789 LDFLAGS="$save_LDFLAGS"
14790
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14793 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14794
14795 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14796 :
14797 else
14798 lt_prog_compiler_static=
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14809 if ${lt_cv_prog_compiler_c_o+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 lt_cv_prog_compiler_c_o=no
14813 $RM -r conftest 2>/dev/null
14814 mkdir conftest
14815 cd conftest
14816 mkdir out
14817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818
14819 lt_compiler_flag="-o out/conftest2.$ac_objext"
14820 # Insert the option either (1) after the last *FLAGS variable, or
14821 # (2) before a word containing "conftest.", or (3) at the end.
14822 # Note that $ac_compile itself does not contain backslashes and begins
14823 # with a dollar sign (not a hyphen), so the echo should work correctly.
14824 lt_compile=`echo "$ac_compile" | $SED \
14825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14827 -e 's:$: $lt_compiler_flag:'`
14828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14829 (eval "$lt_compile" 2>out/conftest.err)
14830 ac_status=$?
14831 cat out/conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834 then
14835 # The compiler can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14840 lt_cv_prog_compiler_c_o=yes
14841 fi
14842 fi
14843 chmod u+w . 2>&5
14844 $RM conftest*
14845 # SGI C++ compiler will create directory out/ii_files/ for
14846 # template instantiation
14847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14848 $RM out/* && rmdir out
14849 cd ..
14850 $RM -r conftest
14851 $RM conftest*
14852
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14855 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14856
14857
14858
14859
14860
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14864 if ${lt_cv_prog_compiler_c_o+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 lt_cv_prog_compiler_c_o=no
14868 $RM -r conftest 2>/dev/null
14869 mkdir conftest
14870 cd conftest
14871 mkdir out
14872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873
14874 lt_compiler_flag="-o out/conftest2.$ac_objext"
14875 # Insert the option either (1) after the last *FLAGS variable, or
14876 # (2) before a word containing "conftest.", or (3) at the end.
14877 # Note that $ac_compile itself does not contain backslashes and begins
14878 # with a dollar sign (not a hyphen), so the echo should work correctly.
14879 lt_compile=`echo "$ac_compile" | $SED \
14880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882 -e 's:$: $lt_compiler_flag:'`
14883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14884 (eval "$lt_compile" 2>out/conftest.err)
14885 ac_status=$?
14886 cat out/conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14889 then
14890 # The compiler can only warn and ignore the option if not recognized
14891 # So say no if there are warnings
14892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14895 lt_cv_prog_compiler_c_o=yes
14896 fi
14897 fi
14898 chmod u+w . 2>&5
14899 $RM conftest*
14900 # SGI C++ compiler will create directory out/ii_files/ for
14901 # template instantiation
14902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14903 $RM out/* && rmdir out
14904 cd ..
14905 $RM -r conftest
14906 $RM conftest*
14907
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14911
14912
14913
14914
14915 hard_links="nottested"
14916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14917 # do not overwrite the value of need_locks provided by the user
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14919 $as_echo_n "checking if we can lock with hard links... " >&6; }
14920 hard_links=yes
14921 $RM conftest*
14922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14923 touch conftest.a
14924 ln conftest.a conftest.b 2>&5 || hard_links=no
14925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14927 $as_echo "$hard_links" >&6; }
14928 if test "$hard_links" = no; then
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14931 need_locks=warn
14932 fi
14933 else
14934 need_locks=no
14935 fi
14936
14937
14938
14939
14940
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14944
14945 runpath_var=
14946 allow_undefined_flag=
14947 always_export_symbols=no
14948 archive_cmds=
14949 archive_expsym_cmds=
14950 compiler_needs_object=no
14951 enable_shared_with_static_runtimes=no
14952 export_dynamic_flag_spec=
14953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954 hardcode_automatic=no
14955 hardcode_direct=no
14956 hardcode_direct_absolute=no
14957 hardcode_libdir_flag_spec=
14958 hardcode_libdir_separator=
14959 hardcode_minus_L=no
14960 hardcode_shlibpath_var=unsupported
14961 inherit_rpath=no
14962 link_all_deplibs=unknown
14963 module_cmds=
14964 module_expsym_cmds=
14965 old_archive_from_new_cmds=
14966 old_archive_from_expsyms_cmds=
14967 thread_safe_flag_spec=
14968 whole_archive_flag_spec=
14969 # include_expsyms should be a list of space-separated symbols to be *always*
14970 # included in the symbol list
14971 include_expsyms=
14972 # exclude_expsyms can be an extended regexp of symbols to exclude
14973 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14975 # as well as any symbol that contains `d'.
14976 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14978 # platforms (ab)use it in PIC code, but their linkers get confused if
14979 # the symbol is explicitly referenced. Since portable code cannot
14980 # rely on this symbol name, it's probably fine to never include it in
14981 # preloaded symbol tables.
14982 # Exclude shared library initialization/finalization symbols.
14983 extract_expsyms_cmds=
14984
14985 case $host_os in
14986 cygwin* | mingw* | pw32* | cegcc*)
14987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14988 # When not using gcc, we currently assume that we are using
14989 # Microsoft Visual C++.
14990 if test "$GCC" != yes; then
14991 with_gnu_ld=no
14992 fi
14993 ;;
14994 interix*)
14995 # we just hope/assume this is gcc and not c89 (= MSVC++)
14996 with_gnu_ld=yes
14997 ;;
14998 openbsd*)
14999 with_gnu_ld=no
15000 ;;
15001 esac
15002
15003 ld_shlibs=yes
15004
15005 # On some targets, GNU ld is compatible enough with the native linker
15006 # that we're better off using the native interface for both.
15007 lt_use_gnu_ld_interface=no
15008 if test "$with_gnu_ld" = yes; then
15009 case $host_os in
15010 aix*)
15011 # The AIX port of GNU ld has always aspired to compatibility
15012 # with the native linker. However, as the warning in the GNU ld
15013 # block says, versions before 2.19.5* couldn't really create working
15014 # shared libraries, regardless of the interface used.
15015 case `$LD -v 2>&1` in
15016 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15017 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15018 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15019 *)
15020 lt_use_gnu_ld_interface=yes
15021 ;;
15022 esac
15023 ;;
15024 *)
15025 lt_use_gnu_ld_interface=yes
15026 ;;
15027 esac
15028 fi
15029
15030 if test "$lt_use_gnu_ld_interface" = yes; then
15031 # If archive_cmds runs LD, not CC, wlarc should be empty
15032 wlarc='${wl}'
15033
15034 # Set some defaults for GNU ld with shared library support. These
15035 # are reset later if shared libraries are not supported. Putting them
15036 # here allows them to be overridden if necessary.
15037 runpath_var=LD_RUN_PATH
15038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15039 export_dynamic_flag_spec='${wl}--export-dynamic'
15040 # ancient GNU ld didn't support --whole-archive et. al.
15041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15042 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15043 else
15044 whole_archive_flag_spec=
15045 fi
15046 supports_anon_versioning=no
15047 case `$LD -v 2>&1` in
15048 *GNU\ gold*) supports_anon_versioning=yes ;;
15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15052 *\ 2.11.*) ;; # other 2.11 versions
15053 *) supports_anon_versioning=yes ;;
15054 esac
15055
15056 # See if GNU ld supports shared libraries.
15057 case $host_os in
15058 aix[3-9]*)
15059 # On AIX/PPC, the GNU linker is very broken
15060 if test "$host_cpu" != ia64; then
15061 ld_shlibs=no
15062 cat <<_LT_EOF 1>&2
15063
15064 *** Warning: the GNU linker, at least up to release 2.19, is reported
15065 *** to be unable to reliably create shared libraries on AIX.
15066 *** Therefore, libtool is disabling shared libraries support. If you
15067 *** really care for shared libraries, you may want to install binutils
15068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15069 *** You will then need to restart the configuration process.
15070
15071 _LT_EOF
15072 fi
15073 ;;
15074
15075 amigaos*)
15076 case $host_cpu in
15077 powerpc)
15078 # see comment about AmigaOS4 .so support
15079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 archive_expsym_cmds=''
15081 ;;
15082 m68k)
15083 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)'
15084 hardcode_libdir_flag_spec='-L$libdir'
15085 hardcode_minus_L=yes
15086 ;;
15087 esac
15088 ;;
15089
15090 beos*)
15091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15092 allow_undefined_flag=unsupported
15093 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15094 # support --undefined. This deserves some investigation. FIXME
15095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15096 else
15097 ld_shlibs=no
15098 fi
15099 ;;
15100
15101 cygwin* | mingw* | pw32* | cegcc*)
15102 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15103 # as there is no search path for DLLs.
15104 hardcode_libdir_flag_spec='-L$libdir'
15105 export_dynamic_flag_spec='${wl}--export-all-symbols'
15106 allow_undefined_flag=unsupported
15107 always_export_symbols=no
15108 enable_shared_with_static_runtimes=yes
15109 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'
15110 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15111
15112 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15114 # If the export-symbols file already is a .def file (1st line
15115 # is EXPORTS), use it as is; otherwise, prepend...
15116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15117 cp $export_symbols $output_objdir/$soname.def;
15118 else
15119 echo EXPORTS > $output_objdir/$soname.def;
15120 cat $export_symbols >> $output_objdir/$soname.def;
15121 fi~
15122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15123 else
15124 ld_shlibs=no
15125 fi
15126 ;;
15127
15128 haiku*)
15129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130 link_all_deplibs=yes
15131 ;;
15132
15133 interix[3-9]*)
15134 hardcode_direct=no
15135 hardcode_shlibpath_var=no
15136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15137 export_dynamic_flag_spec='${wl}-E'
15138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15139 # Instead, shared libraries are loaded at an image base (0x10000000 by
15140 # default) and relocated if they conflict, which is a slow very memory
15141 # consuming and fragmenting process. To avoid this, we pick a random,
15142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15145 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'
15146 ;;
15147
15148 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15149 tmp_diet=no
15150 if test "$host_os" = linux-dietlibc; then
15151 case $cc_basename in
15152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15153 esac
15154 fi
15155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15156 && test "$tmp_diet" = no
15157 then
15158 tmp_addflag=' $pic_flag'
15159 tmp_sharedflag='-shared'
15160 case $cc_basename,$host_cpu in
15161 pgcc*) # Portland Group C compiler
15162 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'
15163 tmp_addflag=' $pic_flag'
15164 ;;
15165 pgf77* | pgf90* | pgf95* | pgfortran*)
15166 # Portland Group f77 and f90 compilers
15167 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'
15168 tmp_addflag=' $pic_flag -Mnomain' ;;
15169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15170 tmp_addflag=' -i_dynamic' ;;
15171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15172 tmp_addflag=' -i_dynamic -nofor_main' ;;
15173 ifc* | ifort*) # Intel Fortran compiler
15174 tmp_addflag=' -nofor_main' ;;
15175 lf95*) # Lahey Fortran 8.1
15176 whole_archive_flag_spec=
15177 tmp_sharedflag='--shared' ;;
15178 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15179 tmp_sharedflag='-qmkshrobj'
15180 tmp_addflag= ;;
15181 nvcc*) # Cuda Compiler Driver 2.2
15182 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'
15183 compiler_needs_object=yes
15184 ;;
15185 esac
15186 case `$CC -V 2>&1 | sed 5q` in
15187 *Sun\ C*) # Sun C 5.9
15188 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'
15189 compiler_needs_object=yes
15190 tmp_sharedflag='-G' ;;
15191 *Sun\ F*) # Sun Fortran 8.3
15192 tmp_sharedflag='-G' ;;
15193 esac
15194 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195
15196 if test "x$supports_anon_versioning" = xyes; then
15197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15199 echo "local: *; };" >> $output_objdir/$libname.ver~
15200 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15201 fi
15202
15203 case $cc_basename in
15204 xlf* | bgf* | bgxlf* | mpixlf*)
15205 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15206 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15208 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15209 if test "x$supports_anon_versioning" = xyes; then
15210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15212 echo "local: *; };" >> $output_objdir/$libname.ver~
15213 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15214 fi
15215 ;;
15216 esac
15217 else
15218 ld_shlibs=no
15219 fi
15220 ;;
15221
15222 netbsd*)
15223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15225 wlarc=
15226 else
15227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15229 fi
15230 ;;
15231
15232 solaris*)
15233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15234 ld_shlibs=no
15235 cat <<_LT_EOF 1>&2
15236
15237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15238 *** create shared libraries on Solaris systems. Therefore, libtool
15239 *** is disabling shared libraries support. We urge you to upgrade GNU
15240 *** binutils to release 2.9.1 or newer. Another option is to modify
15241 *** your PATH or compiler configuration so that the native linker is
15242 *** used, and then restart.
15243
15244 _LT_EOF
15245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15247 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15248 else
15249 ld_shlibs=no
15250 fi
15251 ;;
15252
15253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15254 case `$LD -v 2>&1` in
15255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15256 ld_shlibs=no
15257 cat <<_LT_EOF 1>&2
15258
15259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15260 *** reliably create shared libraries on SCO systems. Therefore, libtool
15261 *** is disabling shared libraries support. We urge you to upgrade GNU
15262 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15263 *** your PATH or compiler configuration so that the native linker is
15264 *** used, and then restart.
15265
15266 _LT_EOF
15267 ;;
15268 *)
15269 # For security reasons, it is highly recommended that you always
15270 # use absolute paths for naming shared libraries, and exclude the
15271 # DT_RUNPATH tag from executables and libraries. But doing so
15272 # requires that you compile everything twice, which is a pain.
15273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15277 else
15278 ld_shlibs=no
15279 fi
15280 ;;
15281 esac
15282 ;;
15283
15284 sunos4*)
15285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286 wlarc=
15287 hardcode_direct=yes
15288 hardcode_shlibpath_var=no
15289 ;;
15290
15291 *)
15292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15295 else
15296 ld_shlibs=no
15297 fi
15298 ;;
15299 esac
15300
15301 if test "$ld_shlibs" = no; then
15302 runpath_var=
15303 hardcode_libdir_flag_spec=
15304 export_dynamic_flag_spec=
15305 whole_archive_flag_spec=
15306 fi
15307 else
15308 # PORTME fill in a description of your system's linker (not GNU ld)
15309 case $host_os in
15310 aix3*)
15311 allow_undefined_flag=unsupported
15312 always_export_symbols=yes
15313 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'
15314 # Note: this linker hardcodes the directories in LIBPATH if there
15315 # are no directories specified by -L.
15316 hardcode_minus_L=yes
15317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15318 # Neither direct hardcoding nor static linking is supported with a
15319 # broken collect2.
15320 hardcode_direct=unsupported
15321 fi
15322 ;;
15323
15324 aix[4-9]*)
15325 if test "$host_cpu" = ia64; then
15326 # On IA64, the linker does run time linking by default, so we don't
15327 # have to do anything special.
15328 aix_use_runtimelinking=no
15329 exp_sym_flag='-Bexport'
15330 no_entry_flag=""
15331 else
15332 # If we're using GNU nm, then we don't want the "-C" option.
15333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15334 # Also, AIX nm treats weak defined symbols like other global
15335 # defined symbols, whereas GNU nm marks them as "W".
15336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15337 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15338 else
15339 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15340 fi
15341 aix_use_runtimelinking=no
15342
15343 # Test if we are trying to use run time linking or normal
15344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345 # need to do runtime linking.
15346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15347 for ld_flag in $LDFLAGS; do
15348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15349 aix_use_runtimelinking=yes
15350 break
15351 fi
15352 done
15353 ;;
15354 esac
15355
15356 exp_sym_flag='-bexport'
15357 no_entry_flag='-bnoentry'
15358 fi
15359
15360 # When large executables or shared objects are built, AIX ld can
15361 # have problems creating the table of contents. If linking a library
15362 # or program results in "error TOC overflow" add -mminimal-toc to
15363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15365
15366 archive_cmds=''
15367 hardcode_direct=yes
15368 hardcode_direct_absolute=yes
15369 hardcode_libdir_separator=':'
15370 link_all_deplibs=yes
15371 file_list_spec='${wl}-f,'
15372
15373 if test "$GCC" = yes; then
15374 case $host_os in aix4.[012]|aix4.[012].*)
15375 # We only want to do this on AIX 4.2 and lower, the check
15376 # below for broken collect2 doesn't work under 4.3+
15377 collect2name=`${CC} -print-prog-name=collect2`
15378 if test -f "$collect2name" &&
15379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15380 then
15381 # We have reworked collect2
15382 :
15383 else
15384 # We have old collect2
15385 hardcode_direct=unsupported
15386 # It fails to find uninstalled libraries when the uninstalled
15387 # path is not listed in the libpath. Setting hardcode_minus_L
15388 # to unsupported forces relinking
15389 hardcode_minus_L=yes
15390 hardcode_libdir_flag_spec='-L$libdir'
15391 hardcode_libdir_separator=
15392 fi
15393 ;;
15394 esac
15395 shared_flag='-shared'
15396 if test "$aix_use_runtimelinking" = yes; then
15397 shared_flag="$shared_flag "'${wl}-G'
15398 fi
15399 else
15400 # not using gcc
15401 if test "$host_cpu" = ia64; then
15402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15403 # chokes on -Wl,-G. The following line is correct:
15404 shared_flag='-G'
15405 else
15406 if test "$aix_use_runtimelinking" = yes; then
15407 shared_flag='${wl}-G'
15408 else
15409 shared_flag='${wl}-bM:SRE'
15410 fi
15411 fi
15412 fi
15413
15414 export_dynamic_flag_spec='${wl}-bexpall'
15415 # It seems that -bexpall does not export symbols beginning with
15416 # underscore (_), so it is better to generate a list of symbols to export.
15417 always_export_symbols=yes
15418 if test "$aix_use_runtimelinking" = yes; then
15419 # Warning - without using the other runtime loading flags (-brtl),
15420 # -berok will link without error, but may produce a broken library.
15421 allow_undefined_flag='-berok'
15422 # Determine the default libpath from the value encoded in an
15423 # empty executable.
15424 if test "${lt_cv_aix_libpath+set}" = set; then
15425 aix_libpath=$lt_cv_aix_libpath
15426 else
15427 if ${lt_cv_aix_libpath_+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432
15433 int
15434 main ()
15435 {
15436
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 if ac_fn_c_try_link "$LINENO"; then :
15442
15443 lt_aix_libpath_sed='
15444 /Import File Strings/,/^$/ {
15445 /^0/ {
15446 s/^0 *\([^ ]*\) *$/\1/
15447 p
15448 }
15449 }'
15450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15451 # Check for a 64-bit object if we didn't find anything.
15452 if test -z "$lt_cv_aix_libpath_"; then
15453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15454 fi
15455 fi
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 if test -z "$lt_cv_aix_libpath_"; then
15459 lt_cv_aix_libpath_="/usr/lib:/lib"
15460 fi
15461
15462 fi
15463
15464 aix_libpath=$lt_cv_aix_libpath_
15465 fi
15466
15467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15468 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15469 else
15470 if test "$host_cpu" = ia64; then
15471 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15472 allow_undefined_flag="-z nodefs"
15473 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"
15474 else
15475 # Determine the default libpath from the value encoded in an
15476 # empty executable.
15477 if test "${lt_cv_aix_libpath+set}" = set; then
15478 aix_libpath=$lt_cv_aix_libpath
15479 else
15480 if ${lt_cv_aix_libpath_+:} false; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485
15486 int
15487 main ()
15488 {
15489
15490 ;
15491 return 0;
15492 }
15493 _ACEOF
15494 if ac_fn_c_try_link "$LINENO"; then :
15495
15496 lt_aix_libpath_sed='
15497 /Import File Strings/,/^$/ {
15498 /^0/ {
15499 s/^0 *\([^ ]*\) *$/\1/
15500 p
15501 }
15502 }'
15503 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15504 # Check for a 64-bit object if we didn't find anything.
15505 if test -z "$lt_cv_aix_libpath_"; then
15506 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15507 fi
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511 if test -z "$lt_cv_aix_libpath_"; then
15512 lt_cv_aix_libpath_="/usr/lib:/lib"
15513 fi
15514
15515 fi
15516
15517 aix_libpath=$lt_cv_aix_libpath_
15518 fi
15519
15520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15521 # Warning - without using the other run time loading flags,
15522 # -berok will link without error, but may produce a broken library.
15523 no_undefined_flag=' ${wl}-bernotok'
15524 allow_undefined_flag=' ${wl}-berok'
15525 if test "$with_gnu_ld" = yes; then
15526 # We only use this code for GNU lds that support --whole-archive.
15527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15528 else
15529 # Exported symbols can be pulled into shared objects from archives
15530 whole_archive_flag_spec='$convenience'
15531 fi
15532 archive_cmds_need_lc=yes
15533 # This is similar to how AIX traditionally builds its shared libraries.
15534 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15535 fi
15536 fi
15537 ;;
15538
15539 amigaos*)
15540 case $host_cpu in
15541 powerpc)
15542 # see comment about AmigaOS4 .so support
15543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds=''
15545 ;;
15546 m68k)
15547 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)'
15548 hardcode_libdir_flag_spec='-L$libdir'
15549 hardcode_minus_L=yes
15550 ;;
15551 esac
15552 ;;
15553
15554 bsdi[45]*)
15555 export_dynamic_flag_spec=-rdynamic
15556 ;;
15557
15558 cygwin* | mingw* | pw32* | cegcc*)
15559 # When not using gcc, we currently assume that we are using
15560 # Microsoft Visual C++.
15561 # hardcode_libdir_flag_spec is actually meaningless, as there is
15562 # no search path for DLLs.
15563 case $cc_basename in
15564 cl*)
15565 # Native MSVC
15566 hardcode_libdir_flag_spec=' '
15567 allow_undefined_flag=unsupported
15568 always_export_symbols=yes
15569 file_list_spec='@'
15570 # Tell ltmain to make .lib files, not .a files.
15571 libext=lib
15572 # Tell ltmain to make .dll files, not .so files.
15573 shrext_cmds=".dll"
15574 # FIXME: Setting linknames here is a bad hack.
15575 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15576 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15578 else
15579 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15580 fi~
15581 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15582 linknames='
15583 # The linker will not automatically build a static lib if we build a DLL.
15584 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15585 enable_shared_with_static_runtimes=yes
15586 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15588 # Don't use ranlib
15589 old_postinstall_cmds='chmod 644 $oldlib'
15590 postlink_cmds='lt_outputfile="@OUTPUT@"~
15591 lt_tool_outputfile="@TOOL_OUTPUT@"~
15592 case $lt_outputfile in
15593 *.exe|*.EXE) ;;
15594 *)
15595 lt_outputfile="$lt_outputfile.exe"
15596 lt_tool_outputfile="$lt_tool_outputfile.exe"
15597 ;;
15598 esac~
15599 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15601 $RM "$lt_outputfile.manifest";
15602 fi'
15603 ;;
15604 *)
15605 # Assume MSVC wrapper
15606 hardcode_libdir_flag_spec=' '
15607 allow_undefined_flag=unsupported
15608 # Tell ltmain to make .lib files, not .a files.
15609 libext=lib
15610 # Tell ltmain to make .dll files, not .so files.
15611 shrext_cmds=".dll"
15612 # FIXME: Setting linknames here is a bad hack.
15613 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15614 # The linker will automatically build a .lib file if we build a DLL.
15615 old_archive_from_new_cmds='true'
15616 # FIXME: Should let the user specify the lib program.
15617 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15618 enable_shared_with_static_runtimes=yes
15619 ;;
15620 esac
15621 ;;
15622
15623 darwin* | rhapsody*)
15624
15625
15626 archive_cmds_need_lc=no
15627 hardcode_direct=no
15628 hardcode_automatic=yes
15629 hardcode_shlibpath_var=unsupported
15630 if test "$lt_cv_ld_force_load" = "yes"; then
15631 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\"`'
15632
15633 else
15634 whole_archive_flag_spec=''
15635 fi
15636 link_all_deplibs=yes
15637 allow_undefined_flag="$_lt_dar_allow_undefined"
15638 case $cc_basename in
15639 ifort*) _lt_dar_can_shared=yes ;;
15640 *) _lt_dar_can_shared=$GCC ;;
15641 esac
15642 if test "$_lt_dar_can_shared" = "yes"; then
15643 output_verbose_link_cmd=func_echo_all
15644 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15645 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15646 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}"
15647 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}"
15648
15649 else
15650 ld_shlibs=no
15651 fi
15652
15653 ;;
15654
15655 dgux*)
15656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657 hardcode_libdir_flag_spec='-L$libdir'
15658 hardcode_shlibpath_var=no
15659 ;;
15660
15661 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15662 # support. Future versions do this automatically, but an explicit c++rt0.o
15663 # does not break anything, and helps significantly (at the cost of a little
15664 # extra space).
15665 freebsd2.2*)
15666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15667 hardcode_libdir_flag_spec='-R$libdir'
15668 hardcode_direct=yes
15669 hardcode_shlibpath_var=no
15670 ;;
15671
15672 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15673 freebsd2.*)
15674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_direct=yes
15676 hardcode_minus_L=yes
15677 hardcode_shlibpath_var=no
15678 ;;
15679
15680 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15681 freebsd* | dragonfly*)
15682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15683 hardcode_libdir_flag_spec='-R$libdir'
15684 hardcode_direct=yes
15685 hardcode_shlibpath_var=no
15686 ;;
15687
15688 hpux9*)
15689 if test "$GCC" = yes; then
15690 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15691 else
15692 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15693 fi
15694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15695 hardcode_libdir_separator=:
15696 hardcode_direct=yes
15697
15698 # hardcode_minus_L: Not really in the search PATH,
15699 # but as the default location of the library.
15700 hardcode_minus_L=yes
15701 export_dynamic_flag_spec='${wl}-E'
15702 ;;
15703
15704 hpux10*)
15705 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15706 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15707 else
15708 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15709 fi
15710 if test "$with_gnu_ld" = no; then
15711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15712 hardcode_libdir_separator=:
15713 hardcode_direct=yes
15714 hardcode_direct_absolute=yes
15715 export_dynamic_flag_spec='${wl}-E'
15716 # hardcode_minus_L: Not really in the search PATH,
15717 # but as the default location of the library.
15718 hardcode_minus_L=yes
15719 fi
15720 ;;
15721
15722 hpux11*)
15723 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15724 case $host_cpu in
15725 hppa*64*)
15726 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 ;;
15728 ia64*)
15729 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15730 ;;
15731 *)
15732 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15733 ;;
15734 esac
15735 else
15736 case $host_cpu in
15737 hppa*64*)
15738 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739 ;;
15740 ia64*)
15741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15742 ;;
15743 *)
15744
15745 # Older versions of the 11.00 compiler do not understand -b yet
15746 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15748 $as_echo_n "checking if $CC understands -b... " >&6; }
15749 if ${lt_cv_prog_compiler__b+:} false; then :
15750 $as_echo_n "(cached) " >&6
15751 else
15752 lt_cv_prog_compiler__b=no
15753 save_LDFLAGS="$LDFLAGS"
15754 LDFLAGS="$LDFLAGS -b"
15755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15757 # The linker can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 if test -s conftest.err; then
15760 # Append any errors to the config.log.
15761 cat conftest.err 1>&5
15762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15764 if diff conftest.exp conftest.er2 >/dev/null; then
15765 lt_cv_prog_compiler__b=yes
15766 fi
15767 else
15768 lt_cv_prog_compiler__b=yes
15769 fi
15770 fi
15771 $RM -r conftest*
15772 LDFLAGS="$save_LDFLAGS"
15773
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15776 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15777
15778 if test x"$lt_cv_prog_compiler__b" = xyes; then
15779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15780 else
15781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15782 fi
15783
15784 ;;
15785 esac
15786 fi
15787 if test "$with_gnu_ld" = no; then
15788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15789 hardcode_libdir_separator=:
15790
15791 case $host_cpu in
15792 hppa*64*|ia64*)
15793 hardcode_direct=no
15794 hardcode_shlibpath_var=no
15795 ;;
15796 *)
15797 hardcode_direct=yes
15798 hardcode_direct_absolute=yes
15799 export_dynamic_flag_spec='${wl}-E'
15800
15801 # hardcode_minus_L: Not really in the search PATH,
15802 # but as the default location of the library.
15803 hardcode_minus_L=yes
15804 ;;
15805 esac
15806 fi
15807 ;;
15808
15809 irix5* | irix6* | nonstopux*)
15810 if test "$GCC" = yes; then
15811 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'
15812 # Try to use the -exported_symbol ld option, if it does not
15813 # work, assume that -exports_file does not work either and
15814 # implicitly export all symbols.
15815 # This should be the same for all languages, so no per-tag cache variable.
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15817 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15818 if ${lt_cv_irix_exported_symbol+:} false; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 save_LDFLAGS="$LDFLAGS"
15822 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 int foo (void) { return 0; }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828 lt_cv_irix_exported_symbol=yes
15829 else
15830 lt_cv_irix_exported_symbol=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LDFLAGS="$save_LDFLAGS"
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15837 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15838 if test "$lt_cv_irix_exported_symbol" = yes; then
15839 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'
15840 fi
15841 else
15842 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'
15843 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'
15844 fi
15845 archive_cmds_need_lc='no'
15846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15847 hardcode_libdir_separator=:
15848 inherit_rpath=yes
15849 link_all_deplibs=yes
15850 ;;
15851
15852 netbsd*)
15853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15855 else
15856 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15857 fi
15858 hardcode_libdir_flag_spec='-R$libdir'
15859 hardcode_direct=yes
15860 hardcode_shlibpath_var=no
15861 ;;
15862
15863 newsos6)
15864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_direct=yes
15866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15867 hardcode_libdir_separator=:
15868 hardcode_shlibpath_var=no
15869 ;;
15870
15871 *nto* | *qnx*)
15872 ;;
15873
15874 openbsd*)
15875 if test -f /usr/libexec/ld.so; then
15876 hardcode_direct=yes
15877 hardcode_shlibpath_var=no
15878 hardcode_direct_absolute=yes
15879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15883 export_dynamic_flag_spec='${wl}-E'
15884 else
15885 case $host_os in
15886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_libdir_flag_spec='-R$libdir'
15889 ;;
15890 *)
15891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15893 ;;
15894 esac
15895 fi
15896 else
15897 ld_shlibs=no
15898 fi
15899 ;;
15900
15901 os2*)
15902 hardcode_libdir_flag_spec='-L$libdir'
15903 hardcode_minus_L=yes
15904 allow_undefined_flag=unsupported
15905 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15907 ;;
15908
15909 osf3*)
15910 if test "$GCC" = yes; then
15911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15912 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'
15913 else
15914 allow_undefined_flag=' -expect_unresolved \*'
15915 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'
15916 fi
15917 archive_cmds_need_lc='no'
15918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15919 hardcode_libdir_separator=:
15920 ;;
15921
15922 osf4* | osf5*) # as osf3* with the addition of -msym flag
15923 if test "$GCC" = yes; then
15924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15925 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'
15926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15927 else
15928 allow_undefined_flag=' -expect_unresolved \*'
15929 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'
15930 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~
15931 $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'
15932
15933 # Both c and cxx compiler support -rpath directly
15934 hardcode_libdir_flag_spec='-rpath $libdir'
15935 fi
15936 archive_cmds_need_lc='no'
15937 hardcode_libdir_separator=:
15938 ;;
15939
15940 solaris*)
15941 no_undefined_flag=' -z defs'
15942 if test "$GCC" = yes; then
15943 wlarc='${wl}'
15944 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15946 $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'
15947 else
15948 case `$CC -V 2>&1` in
15949 *"Compilers 5.0"*)
15950 wlarc=''
15951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15954 ;;
15955 *)
15956 wlarc='${wl}'
15957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15960 ;;
15961 esac
15962 fi
15963 hardcode_libdir_flag_spec='-R$libdir'
15964 hardcode_shlibpath_var=no
15965 case $host_os in
15966 solaris2.[0-5] | solaris2.[0-5].*) ;;
15967 *)
15968 # The compiler driver will combine and reorder linker options,
15969 # but understands `-z linker_flag'. GCC discards it without `$wl',
15970 # but is careful enough not to reorder.
15971 # Supported since Solaris 2.6 (maybe 2.5.1?)
15972 if test "$GCC" = yes; then
15973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15974 else
15975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15976 fi
15977 ;;
15978 esac
15979 link_all_deplibs=yes
15980 ;;
15981
15982 sunos4*)
15983 if test "x$host_vendor" = xsequent; then
15984 # Use $CC to link under sequent, because it throws in some extra .o
15985 # files that make .init and .fini sections work.
15986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15987 else
15988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15989 fi
15990 hardcode_libdir_flag_spec='-L$libdir'
15991 hardcode_direct=yes
15992 hardcode_minus_L=yes
15993 hardcode_shlibpath_var=no
15994 ;;
15995
15996 sysv4)
15997 case $host_vendor in
15998 sni)
15999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000 hardcode_direct=yes # is this really true???
16001 ;;
16002 siemens)
16003 ## LD is ld it makes a PLAMLIB
16004 ## CC just makes a GrossModule.
16005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16006 reload_cmds='$CC -r -o $output$reload_objs'
16007 hardcode_direct=no
16008 ;;
16009 motorola)
16010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16012 ;;
16013 esac
16014 runpath_var='LD_RUN_PATH'
16015 hardcode_shlibpath_var=no
16016 ;;
16017
16018 sysv4.3*)
16019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_shlibpath_var=no
16021 export_dynamic_flag_spec='-Bexport'
16022 ;;
16023
16024 sysv4*MP*)
16025 if test -d /usr/nec; then
16026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027 hardcode_shlibpath_var=no
16028 runpath_var=LD_RUN_PATH
16029 hardcode_runpath_var=yes
16030 ld_shlibs=yes
16031 fi
16032 ;;
16033
16034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16035 no_undefined_flag='${wl}-z,text'
16036 archive_cmds_need_lc=no
16037 hardcode_shlibpath_var=no
16038 runpath_var='LD_RUN_PATH'
16039
16040 if test "$GCC" = yes; then
16041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16043 else
16044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16046 fi
16047 ;;
16048
16049 sysv5* | sco3.2v5* | sco5v6*)
16050 # Note: We can NOT use -z defs as we might desire, because we do not
16051 # link with -lc, and that would cause any symbols used from libc to
16052 # always be unresolved, which means just about no library would
16053 # ever link correctly. If we're not using GNU ld we use -z text
16054 # though, which does catch some bad symbols but isn't as heavy-handed
16055 # as -z defs.
16056 no_undefined_flag='${wl}-z,text'
16057 allow_undefined_flag='${wl}-z,nodefs'
16058 archive_cmds_need_lc=no
16059 hardcode_shlibpath_var=no
16060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16061 hardcode_libdir_separator=':'
16062 link_all_deplibs=yes
16063 export_dynamic_flag_spec='${wl}-Bexport'
16064 runpath_var='LD_RUN_PATH'
16065
16066 if test "$GCC" = yes; then
16067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069 else
16070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16072 fi
16073 ;;
16074
16075 uts4*)
16076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_libdir_flag_spec='-L$libdir'
16078 hardcode_shlibpath_var=no
16079 ;;
16080
16081 *)
16082 ld_shlibs=no
16083 ;;
16084 esac
16085
16086 if test x$host_vendor = xsni; then
16087 case $host in
16088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16089 export_dynamic_flag_spec='${wl}-Blargedynsym'
16090 ;;
16091 esac
16092 fi
16093 fi
16094
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16096 $as_echo "$ld_shlibs" >&6; }
16097 test "$ld_shlibs" = no && can_build_shared=no
16098
16099 with_gnu_ld=$with_gnu_ld
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115 #
16116 # Do we need to explicitly link libc?
16117 #
16118 case "x$archive_cmds_need_lc" in
16119 x|xyes)
16120 # Assume -lc should be added
16121 archive_cmds_need_lc=yes
16122
16123 if test "$enable_shared" = yes && test "$GCC" = yes; then
16124 case $archive_cmds in
16125 *'~'*)
16126 # FIXME: we may have to deal with multi-command sequences.
16127 ;;
16128 '$CC '*)
16129 # Test whether the compiler implicitly links with -lc since on some
16130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16131 # to ld, don't add -lc before -lgcc.
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16133 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16134 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137 $RM conftest*
16138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16139
16140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16141 (eval $ac_compile) 2>&5
16142 ac_status=$?
16143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144 test $ac_status = 0; } 2>conftest.err; then
16145 soname=conftest
16146 lib=conftest
16147 libobjs=conftest.$ac_objext
16148 deplibs=
16149 wl=$lt_prog_compiler_wl
16150 pic_flag=$lt_prog_compiler_pic
16151 compiler_flags=-v
16152 linker_flags=-v
16153 verstring=
16154 output_objdir=.
16155 libname=conftest
16156 lt_save_allow_undefined_flag=$allow_undefined_flag
16157 allow_undefined_flag=
16158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16159 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16160 ac_status=$?
16161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16162 test $ac_status = 0; }
16163 then
16164 lt_cv_archive_cmds_need_lc=no
16165 else
16166 lt_cv_archive_cmds_need_lc=yes
16167 fi
16168 allow_undefined_flag=$lt_save_allow_undefined_flag
16169 else
16170 cat conftest.err 1>&5
16171 fi
16172 $RM conftest*
16173
16174 fi
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16176 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16177 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16178 ;;
16179 esac
16180 fi
16181 ;;
16182 esac
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16337
16338 if test "$GCC" = yes; then
16339 case $host_os in
16340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16341 *) lt_awk_arg="/^libraries:/" ;;
16342 esac
16343 case $host_os in
16344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16345 *) lt_sed_strip_eq="s,=/,/,g" ;;
16346 esac
16347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16348 case $lt_search_path_spec in
16349 *\;*)
16350 # if the path contains ";" then we assume it to be the separator
16351 # otherwise default to the standard path separator (i.e. ":") - it is
16352 # assumed that no part of a normal pathname contains ";" but that should
16353 # okay in the real world where ";" in dirpaths is itself problematic.
16354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16355 ;;
16356 *)
16357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16358 ;;
16359 esac
16360 # Ok, now we have the path, separated by spaces, we can step through it
16361 # and add multilib dir if necessary.
16362 lt_tmp_lt_search_path_spec=
16363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16364 for lt_sys_path in $lt_search_path_spec; do
16365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16367 else
16368 test -d "$lt_sys_path" && \
16369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16370 fi
16371 done
16372 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16373 BEGIN {RS=" "; FS="/|\n";} {
16374 lt_foo="";
16375 lt_count=0;
16376 for (lt_i = NF; lt_i > 0; lt_i--) {
16377 if ($lt_i != "" && $lt_i != ".") {
16378 if ($lt_i == "..") {
16379 lt_count++;
16380 } else {
16381 if (lt_count == 0) {
16382 lt_foo="/" $lt_i lt_foo;
16383 } else {
16384 lt_count--;
16385 }
16386 }
16387 }
16388 }
16389 if (lt_foo != "") { lt_freq[lt_foo]++; }
16390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16391 }'`
16392 # AWK program above erroneously prepends '/' to C:/dos/paths
16393 # for these hosts.
16394 case $host_os in
16395 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16397 esac
16398 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16399 else
16400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16401 fi
16402 library_names_spec=
16403 libname_spec='lib$name'
16404 soname_spec=
16405 shrext_cmds=".so"
16406 postinstall_cmds=
16407 postuninstall_cmds=
16408 finish_cmds=
16409 finish_eval=
16410 shlibpath_var=
16411 shlibpath_overrides_runpath=unknown
16412 version_type=none
16413 dynamic_linker="$host_os ld.so"
16414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16415 need_lib_prefix=unknown
16416 hardcode_into_libs=no
16417
16418 # when you set need_version to no, make sure it does not cause -set_version
16419 # flags to be left without arguments
16420 need_version=unknown
16421
16422 case $host_os in
16423 aix3*)
16424 version_type=linux # correct to gnu/linux during the next big refactor
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16426 shlibpath_var=LIBPATH
16427
16428 # AIX 3 has no versioning support, so we append a major version to the name.
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 ;;
16431
16432 aix[4-9]*)
16433 version_type=linux # correct to gnu/linux during the next big refactor
16434 need_lib_prefix=no
16435 need_version=no
16436 hardcode_into_libs=yes
16437 if test "$host_cpu" = ia64; then
16438 # AIX 5 supports IA64
16439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 else
16442 # With GCC up to 2.95.x, collect2 would create an import file
16443 # for dependence libraries. The import file would start with
16444 # the line `#! .'. This would cause the generated library to
16445 # depend on `.', always an invalid library. This was fixed in
16446 # development snapshots of GCC prior to 3.0.
16447 case $host_os in
16448 aix4 | aix4.[01] | aix4.[01].*)
16449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16450 echo ' yes '
16451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16452 :
16453 else
16454 can_build_shared=no
16455 fi
16456 ;;
16457 esac
16458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459 # soname into executable. Probably we can add versioning support to
16460 # collect2, so additional links can be useful in future.
16461 if test "$aix_use_runtimelinking" = yes; then
16462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463 # instead of lib<name>.a to let people know that these are not
16464 # typical AIX shared libraries.
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 else
16467 # We preserve .a as extension for shared libraries through AIX4.2
16468 # and later when we are not doing run time linking.
16469 library_names_spec='${libname}${release}.a $libname.a'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 fi
16472 shlibpath_var=LIBPATH
16473 fi
16474 ;;
16475
16476 amigaos*)
16477 case $host_cpu in
16478 powerpc)
16479 # Since July 2007 AmigaOS4 officially supports .so libraries.
16480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 ;;
16483 m68k)
16484 library_names_spec='$libname.ixlibrary $libname.a'
16485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16486 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16487 ;;
16488 esac
16489 ;;
16490
16491 beos*)
16492 library_names_spec='${libname}${shared_ext}'
16493 dynamic_linker="$host_os ld.so"
16494 shlibpath_var=LIBRARY_PATH
16495 ;;
16496
16497 bsdi[45]*)
16498 version_type=linux # correct to gnu/linux during the next big refactor
16499 need_version=no
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16506 # the default ld.so.conf also contains /usr/contrib/lib and
16507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16508 # libtool to hard-code these into programs
16509 ;;
16510
16511 cygwin* | mingw* | pw32* | cegcc*)
16512 version_type=windows
16513 shrext_cmds=".dll"
16514 need_version=no
16515 need_lib_prefix=no
16516
16517 case $GCC,$cc_basename in
16518 yes,*)
16519 # gcc
16520 library_names_spec='$libname.dll.a'
16521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16522 postinstall_cmds='base_file=`basename \${file}`~
16523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16524 dldir=$destdir/`dirname \$dlpath`~
16525 test -d \$dldir || mkdir -p \$dldir~
16526 $install_prog $dir/$dlname \$dldir/$dlname~
16527 chmod a+x \$dldir/$dlname~
16528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16530 fi'
16531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16532 dlpath=$dir/\$dldll~
16533 $RM \$dlpath'
16534 shlibpath_overrides_runpath=yes
16535
16536 case $host_os in
16537 cygwin*)
16538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540
16541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16542 ;;
16543 mingw* | cegcc*)
16544 # MinGW DLLs use traditional 'lib' prefix
16545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546 ;;
16547 pw32*)
16548 # pw32 DLLs use 'pw' prefix rather than 'lib'
16549 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16550 ;;
16551 esac
16552 dynamic_linker='Win32 ld.exe'
16553 ;;
16554
16555 *,cl*)
16556 # Native MSVC
16557 libname_spec='$name'
16558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16559 library_names_spec='${libname}.dll.lib'
16560
16561 case $build_os in
16562 mingw*)
16563 sys_lib_search_path_spec=
16564 lt_save_ifs=$IFS
16565 IFS=';'
16566 for lt_path in $LIB
16567 do
16568 IFS=$lt_save_ifs
16569 # Let DOS variable expansion print the short 8.3 style file name.
16570 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16571 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16572 done
16573 IFS=$lt_save_ifs
16574 # Convert to MSYS style.
16575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16576 ;;
16577 cygwin*)
16578 # Convert to unix form, then to dos form, then back to unix form
16579 # but this time dos style (no spaces!) so that the unix form looks
16580 # like /cygdrive/c/PROGRA~1:/cygdr...
16581 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16582 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16583 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16584 ;;
16585 *)
16586 sys_lib_search_path_spec="$LIB"
16587 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16588 # It is most probably a Windows format PATH.
16589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16590 else
16591 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16592 fi
16593 # FIXME: find the short name or the path components, as spaces are
16594 # common. (e.g. "Program Files" -> "PROGRA~1")
16595 ;;
16596 esac
16597
16598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599 postinstall_cmds='base_file=`basename \${file}`~
16600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16601 dldir=$destdir/`dirname \$dlpath`~
16602 test -d \$dldir || mkdir -p \$dldir~
16603 $install_prog $dir/$dlname \$dldir/$dlname'
16604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16605 dlpath=$dir/\$dldll~
16606 $RM \$dlpath'
16607 shlibpath_overrides_runpath=yes
16608 dynamic_linker='Win32 link.exe'
16609 ;;
16610
16611 *)
16612 # Assume MSVC wrapper
16613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16614 dynamic_linker='Win32 ld.exe'
16615 ;;
16616 esac
16617 # FIXME: first we should search . and the directory the executable is in
16618 shlibpath_var=PATH
16619 ;;
16620
16621 darwin* | rhapsody*)
16622 dynamic_linker="$host_os dyld"
16623 version_type=darwin
16624 need_lib_prefix=no
16625 need_version=no
16626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16627 soname_spec='${libname}${release}${major}$shared_ext'
16628 shlibpath_overrides_runpath=yes
16629 shlibpath_var=DYLD_LIBRARY_PATH
16630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16631
16632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16634 ;;
16635
16636 dgux*)
16637 version_type=linux # correct to gnu/linux during the next big refactor
16638 need_lib_prefix=no
16639 need_version=no
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 ;;
16644
16645 freebsd* | dragonfly*)
16646 # DragonFly does not have aout. When/if they implement a new
16647 # versioning mechanism, adjust this.
16648 if test -x /usr/bin/objformat; then
16649 objformat=`/usr/bin/objformat`
16650 else
16651 case $host_os in
16652 freebsd[23].*) objformat=aout ;;
16653 *) objformat=elf ;;
16654 esac
16655 fi
16656 version_type=freebsd-$objformat
16657 case $version_type in
16658 freebsd-elf*)
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660 need_version=no
16661 need_lib_prefix=no
16662 ;;
16663 freebsd-*)
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16665 need_version=yes
16666 ;;
16667 esac
16668 shlibpath_var=LD_LIBRARY_PATH
16669 case $host_os in
16670 freebsd2.*)
16671 shlibpath_overrides_runpath=yes
16672 ;;
16673 freebsd3.[01]* | freebsdelf3.[01]*)
16674 shlibpath_overrides_runpath=yes
16675 hardcode_into_libs=yes
16676 ;;
16677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16679 shlibpath_overrides_runpath=no
16680 hardcode_into_libs=yes
16681 ;;
16682 *) # from 4.6 on, and DragonFly
16683 shlibpath_overrides_runpath=yes
16684 hardcode_into_libs=yes
16685 ;;
16686 esac
16687 ;;
16688
16689 gnu*)
16690 version_type=linux # correct to gnu/linux during the next big refactor
16691 need_lib_prefix=no
16692 need_version=no
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=no
16697 hardcode_into_libs=yes
16698 ;;
16699
16700 haiku*)
16701 version_type=linux # correct to gnu/linux during the next big refactor
16702 need_lib_prefix=no
16703 need_version=no
16704 dynamic_linker="$host_os runtime_loader"
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 shlibpath_var=LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16710 hardcode_into_libs=yes
16711 ;;
16712
16713 hpux9* | hpux10* | hpux11*)
16714 # Give a soname corresponding to the major version so that dld.sl refuses to
16715 # link against other versions.
16716 version_type=sunos
16717 need_lib_prefix=no
16718 need_version=no
16719 case $host_cpu in
16720 ia64*)
16721 shrext_cmds='.so'
16722 hardcode_into_libs=yes
16723 dynamic_linker="$host_os dld.so"
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 if test "X$HPUX_IA64_MODE" = X32; then
16729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16730 else
16731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16732 fi
16733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16734 ;;
16735 hppa*64*)
16736 shrext_cmds='.sl'
16737 hardcode_into_libs=yes
16738 dynamic_linker="$host_os dld.sl"
16739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16745 ;;
16746 *)
16747 shrext_cmds='.sl'
16748 dynamic_linker="$host_os dld.sl"
16749 shlibpath_var=SHLIB_PATH
16750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 ;;
16754 esac
16755 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16756 postinstall_cmds='chmod 555 $lib'
16757 # or fails outright, so override atomically:
16758 install_override_mode=555
16759 ;;
16760
16761 interix[3-9]*)
16762 version_type=linux # correct to gnu/linux during the next big refactor
16763 need_lib_prefix=no
16764 need_version=no
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=no
16770 hardcode_into_libs=yes
16771 ;;
16772
16773 irix5* | irix6* | nonstopux*)
16774 case $host_os in
16775 nonstopux*) version_type=nonstopux ;;
16776 *)
16777 if test "$lt_cv_prog_gnu_ld" = yes; then
16778 version_type=linux # correct to gnu/linux during the next big refactor
16779 else
16780 version_type=irix
16781 fi ;;
16782 esac
16783 need_lib_prefix=no
16784 need_version=no
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16787 case $host_os in
16788 irix5* | nonstopux*)
16789 libsuff= shlibsuff=
16790 ;;
16791 *)
16792 case $LD in # libtool.m4 will add one of these switches to LD
16793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16794 libsuff= shlibsuff= libmagic=32-bit;;
16795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16796 libsuff=32 shlibsuff=N32 libmagic=N32;;
16797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16798 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16799 *) libsuff= shlibsuff= libmagic=never-match;;
16800 esac
16801 ;;
16802 esac
16803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16804 shlibpath_overrides_runpath=no
16805 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16806 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16807 hardcode_into_libs=yes
16808 ;;
16809
16810 # No shared lib support for Linux oldld, aout, or coff.
16811 linux*oldld* | linux*aout* | linux*coff*)
16812 dynamic_linker=no
16813 ;;
16814
16815 # This must be glibc/ELF.
16816 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16817 version_type=linux # correct to gnu/linux during the next big refactor
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 shlibpath_overrides_runpath=no
16825
16826 # Some binutils ld are patched to set DT_RUNPATH
16827 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 lt_cv_shlibpath_overrides_runpath=no
16831 save_LDFLAGS=$LDFLAGS
16832 save_libdir=$libdir
16833 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16834 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837
16838 int
16839 main ()
16840 {
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_link "$LINENO"; then :
16847 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16848 lt_cv_shlibpath_overrides_runpath=yes
16849 fi
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LDFLAGS=$save_LDFLAGS
16854 libdir=$save_libdir
16855
16856 fi
16857
16858 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16859
16860 # This implies no fast_install, which is unacceptable.
16861 # Some rework will be needed to allow for fast_install
16862 # before this can be enabled.
16863 hardcode_into_libs=yes
16864
16865 # Add ABI-specific directories to the system library path.
16866 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16867
16868 # Append ld.so.conf contents to the search path
16869 if test -f /etc/ld.so.conf; then
16870 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' ' '`
16871 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16872
16873 fi
16874
16875 # We used to test for /lib/ld.so.1 and disable shared libraries on
16876 # powerpc, because MkLinux only supported shared libraries with the
16877 # GNU dynamic linker. Since this was broken with cross compilers,
16878 # most powerpc-linux boxes support dynamic linking these days and
16879 # people can always --disable-shared, the test was removed, and we
16880 # assume the GNU/Linux dynamic linker is in use.
16881 dynamic_linker='GNU/Linux ld.so'
16882 ;;
16883
16884 netbsd*)
16885 version_type=sunos
16886 need_lib_prefix=no
16887 need_version=no
16888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16891 dynamic_linker='NetBSD (a.out) ld.so'
16892 else
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 dynamic_linker='NetBSD ld.elf_so'
16896 fi
16897 shlibpath_var=LD_LIBRARY_PATH
16898 shlibpath_overrides_runpath=yes
16899 hardcode_into_libs=yes
16900 ;;
16901
16902 newsos6)
16903 version_type=linux # correct to gnu/linux during the next big refactor
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=yes
16907 ;;
16908
16909 *nto* | *qnx*)
16910 version_type=qnx
16911 need_lib_prefix=no
16912 need_version=no
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 shlibpath_overrides_runpath=no
16917 hardcode_into_libs=yes
16918 dynamic_linker='ldqnx.so'
16919 ;;
16920
16921 openbsd*)
16922 version_type=sunos
16923 sys_lib_dlsearch_path_spec="/usr/lib"
16924 need_lib_prefix=no
16925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16926 case $host_os in
16927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16928 *) need_version=no ;;
16929 esac
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16934 case $host_os in
16935 openbsd2.[89] | openbsd2.[89].*)
16936 shlibpath_overrides_runpath=no
16937 ;;
16938 *)
16939 shlibpath_overrides_runpath=yes
16940 ;;
16941 esac
16942 else
16943 shlibpath_overrides_runpath=yes
16944 fi
16945 ;;
16946
16947 os2*)
16948 libname_spec='$name'
16949 shrext_cmds=".dll"
16950 need_lib_prefix=no
16951 library_names_spec='$libname${shared_ext} $libname.a'
16952 dynamic_linker='OS/2 ld.exe'
16953 shlibpath_var=LIBPATH
16954 ;;
16955
16956 osf3* | osf4* | osf5*)
16957 version_type=osf
16958 need_lib_prefix=no
16959 need_version=no
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16965 ;;
16966
16967 rdos*)
16968 dynamic_linker=no
16969 ;;
16970
16971 solaris*)
16972 version_type=linux # correct to gnu/linux during the next big refactor
16973 need_lib_prefix=no
16974 need_version=no
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath=yes
16979 hardcode_into_libs=yes
16980 # ldd complains unless libraries are executable
16981 postinstall_cmds='chmod +x $lib'
16982 ;;
16983
16984 sunos4*)
16985 version_type=sunos
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes
16990 if test "$with_gnu_ld" = yes; then
16991 need_lib_prefix=no
16992 fi
16993 need_version=yes
16994 ;;
16995
16996 sysv4 | sysv4.3*)
16997 version_type=linux # correct to gnu/linux during the next big refactor
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 case $host_vendor in
17002 sni)
17003 shlibpath_overrides_runpath=no
17004 need_lib_prefix=no
17005 runpath_var=LD_RUN_PATH
17006 ;;
17007 siemens)
17008 need_lib_prefix=no
17009 ;;
17010 motorola)
17011 need_lib_prefix=no
17012 need_version=no
17013 shlibpath_overrides_runpath=no
17014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17015 ;;
17016 esac
17017 ;;
17018
17019 sysv4*MP*)
17020 if test -d /usr/nec ;then
17021 version_type=linux # correct to gnu/linux during the next big refactor
17022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17023 soname_spec='$libname${shared_ext}.$major'
17024 shlibpath_var=LD_LIBRARY_PATH
17025 fi
17026 ;;
17027
17028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17029 version_type=freebsd-elf
17030 need_lib_prefix=no
17031 need_version=no
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 shlibpath_overrides_runpath=yes
17036 hardcode_into_libs=yes
17037 if test "$with_gnu_ld" = yes; then
17038 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17039 else
17040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17041 case $host_os in
17042 sco3.2v5*)
17043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17044 ;;
17045 esac
17046 fi
17047 sys_lib_dlsearch_path_spec='/usr/lib'
17048 ;;
17049
17050 tpf*)
17051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17052 version_type=linux # correct to gnu/linux during the next big refactor
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 shlibpath_overrides_runpath=no
17058 hardcode_into_libs=yes
17059 ;;
17060
17061 uts4*)
17062 version_type=linux # correct to gnu/linux during the next big refactor
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 ;;
17067
17068 *)
17069 dynamic_linker=no
17070 ;;
17071 esac
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17073 $as_echo "$dynamic_linker" >&6; }
17074 test "$dynamic_linker" = no && can_build_shared=no
17075
17076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17077 if test "$GCC" = yes; then
17078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17079 fi
17080
17081 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17082 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17083 fi
17084 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17085 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17086 fi
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17180 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17181 hardcode_action=
17182 if test -n "$hardcode_libdir_flag_spec" ||
17183 test -n "$runpath_var" ||
17184 test "X$hardcode_automatic" = "Xyes" ; then
17185
17186 # We can hardcode non-existent directories.
17187 if test "$hardcode_direct" != no &&
17188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17189 # have to relink, otherwise we might link with an installed library
17190 # when we should be linking with a yet-to-be-installed one
17191 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17192 test "$hardcode_minus_L" != no; then
17193 # Linking always hardcodes the temporary library directory.
17194 hardcode_action=relink
17195 else
17196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17197 hardcode_action=immediate
17198 fi
17199 else
17200 # We cannot hardcode anything, or else we can only hardcode existing
17201 # directories.
17202 hardcode_action=unsupported
17203 fi
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17205 $as_echo "$hardcode_action" >&6; }
17206
17207 if test "$hardcode_action" = relink ||
17208 test "$inherit_rpath" = yes; then
17209 # Fast installation is not supported
17210 enable_fast_install=no
17211 elif test "$shlibpath_overrides_runpath" = yes ||
17212 test "$enable_shared" = no; then
17213 # Fast installation is not necessary
17214 enable_fast_install=needless
17215 fi
17216
17217
17218
17219
17220
17221
17222 if test "x$enable_dlopen" != xyes; then
17223 enable_dlopen=unknown
17224 enable_dlopen_self=unknown
17225 enable_dlopen_self_static=unknown
17226 else
17227 lt_cv_dlopen=no
17228 lt_cv_dlopen_libs=
17229
17230 case $host_os in
17231 beos*)
17232 lt_cv_dlopen="load_add_on"
17233 lt_cv_dlopen_libs=
17234 lt_cv_dlopen_self=yes
17235 ;;
17236
17237 mingw* | pw32* | cegcc*)
17238 lt_cv_dlopen="LoadLibrary"
17239 lt_cv_dlopen_libs=
17240 ;;
17241
17242 cygwin*)
17243 lt_cv_dlopen="dlopen"
17244 lt_cv_dlopen_libs=
17245 ;;
17246
17247 darwin*)
17248 # if libdl is installed we need to link against it
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17251 if ${ac_cv_lib_dl_dlopen+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253 else
17254 ac_check_lib_save_LIBS=$LIBS
17255 LIBS="-ldl $LIBS"
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258
17259 /* Override any GCC internal prototype to avoid an error.
17260 Use char because int might match the return type of a GCC
17261 builtin and then its argument prototype would still apply. */
17262 #ifdef __cplusplus
17263 extern "C"
17264 #endif
17265 char dlopen ();
17266 int
17267 main ()
17268 {
17269 return dlopen ();
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 ac_cv_lib_dl_dlopen=yes
17276 else
17277 ac_cv_lib_dl_dlopen=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_lib_save_LIBS
17282 fi
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17287 else
17288
17289 lt_cv_dlopen="dyld"
17290 lt_cv_dlopen_libs=
17291 lt_cv_dlopen_self=yes
17292
17293 fi
17294
17295 ;;
17296
17297 *)
17298 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17299 if test "x$ac_cv_func_shl_load" = xyes; then :
17300 lt_cv_dlopen="shl_load"
17301 else
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17303 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17304 if ${ac_cv_lib_dld_shl_load+:} false; then :
17305 $as_echo_n "(cached) " >&6
17306 else
17307 ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-ldld $LIBS"
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char shl_load ();
17319 int
17320 main ()
17321 {
17322 return shl_load ();
17323 ;
17324 return 0;
17325 }
17326 _ACEOF
17327 if ac_fn_c_try_link "$LINENO"; then :
17328 ac_cv_lib_dld_shl_load=yes
17329 else
17330 ac_cv_lib_dld_shl_load=no
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17337 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17338 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17339 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17340 else
17341 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17342 if test "x$ac_cv_func_dlopen" = xyes; then :
17343 lt_cv_dlopen="dlopen"
17344 else
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17346 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17347 if ${ac_cv_lib_dl_dlopen+:} false; then :
17348 $as_echo_n "(cached) " >&6
17349 else
17350 ac_check_lib_save_LIBS=$LIBS
17351 LIBS="-ldl $LIBS"
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354
17355 /* Override any GCC internal prototype to avoid an error.
17356 Use char because int might match the return type of a GCC
17357 builtin and then its argument prototype would still apply. */
17358 #ifdef __cplusplus
17359 extern "C"
17360 #endif
17361 char dlopen ();
17362 int
17363 main ()
17364 {
17365 return dlopen ();
17366 ;
17367 return 0;
17368 }
17369 _ACEOF
17370 if ac_fn_c_try_link "$LINENO"; then :
17371 ac_cv_lib_dl_dlopen=yes
17372 else
17373 ac_cv_lib_dl_dlopen=no
17374 fi
17375 rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 LIBS=$ac_check_lib_save_LIBS
17378 fi
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17380 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17381 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383 else
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17385 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17386 if ${ac_cv_lib_svld_dlopen+:} false; then :
17387 $as_echo_n "(cached) " >&6
17388 else
17389 ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lsvld $LIBS"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17397 #ifdef __cplusplus
17398 extern "C"
17399 #endif
17400 char dlopen ();
17401 int
17402 main ()
17403 {
17404 return dlopen ();
17405 ;
17406 return 0;
17407 }
17408 _ACEOF
17409 if ac_fn_c_try_link "$LINENO"; then :
17410 ac_cv_lib_svld_dlopen=yes
17411 else
17412 ac_cv_lib_svld_dlopen=no
17413 fi
17414 rm -f core conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17419 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17420 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17422 else
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17424 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17425 if ${ac_cv_lib_dld_dld_link+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 ac_check_lib_save_LIBS=$LIBS
17429 LIBS="-ldld $LIBS"
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17432
17433 /* Override any GCC internal prototype to avoid an error.
17434 Use char because int might match the return type of a GCC
17435 builtin and then its argument prototype would still apply. */
17436 #ifdef __cplusplus
17437 extern "C"
17438 #endif
17439 char dld_link ();
17440 int
17441 main ()
17442 {
17443 return dld_link ();
17444 ;
17445 return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_link "$LINENO"; then :
17449 ac_cv_lib_dld_dld_link=yes
17450 else
17451 ac_cv_lib_dld_dld_link=no
17452 fi
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17458 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17459 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17460 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17461 fi
17462
17463
17464 fi
17465
17466
17467 fi
17468
17469
17470 fi
17471
17472
17473 fi
17474
17475
17476 fi
17477
17478 ;;
17479 esac
17480
17481 if test "x$lt_cv_dlopen" != xno; then
17482 enable_dlopen=yes
17483 else
17484 enable_dlopen=no
17485 fi
17486
17487 case $lt_cv_dlopen in
17488 dlopen)
17489 save_CPPFLAGS="$CPPFLAGS"
17490 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17491
17492 save_LDFLAGS="$LDFLAGS"
17493 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17494
17495 save_LIBS="$LIBS"
17496 LIBS="$lt_cv_dlopen_libs $LIBS"
17497
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17499 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17500 if ${lt_cv_dlopen_self+:} false; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 if test "$cross_compiling" = yes; then :
17504 lt_cv_dlopen_self=cross
17505 else
17506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17507 lt_status=$lt_dlunknown
17508 cat > conftest.$ac_ext <<_LT_EOF
17509 #line $LINENO "configure"
17510 #include "confdefs.h"
17511
17512 #if HAVE_DLFCN_H
17513 #include <dlfcn.h>
17514 #endif
17515
17516 #include <stdio.h>
17517
17518 #ifdef RTLD_GLOBAL
17519 # define LT_DLGLOBAL RTLD_GLOBAL
17520 #else
17521 # ifdef DL_GLOBAL
17522 # define LT_DLGLOBAL DL_GLOBAL
17523 # else
17524 # define LT_DLGLOBAL 0
17525 # endif
17526 #endif
17527
17528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17529 find out it does not work in some platform. */
17530 #ifndef LT_DLLAZY_OR_NOW
17531 # ifdef RTLD_LAZY
17532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17533 # else
17534 # ifdef DL_LAZY
17535 # define LT_DLLAZY_OR_NOW DL_LAZY
17536 # else
17537 # ifdef RTLD_NOW
17538 # define LT_DLLAZY_OR_NOW RTLD_NOW
17539 # else
17540 # ifdef DL_NOW
17541 # define LT_DLLAZY_OR_NOW DL_NOW
17542 # else
17543 # define LT_DLLAZY_OR_NOW 0
17544 # endif
17545 # endif
17546 # endif
17547 # endif
17548 #endif
17549
17550 /* When -fvisbility=hidden is used, assume the code has been annotated
17551 correspondingly for the symbols needed. */
17552 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17553 int fnord () __attribute__((visibility("default")));
17554 #endif
17555
17556 int fnord () { return 42; }
17557 int main ()
17558 {
17559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17560 int status = $lt_dlunknown;
17561
17562 if (self)
17563 {
17564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17565 else
17566 {
17567 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17568 else puts (dlerror ());
17569 }
17570 /* dlclose (self); */
17571 }
17572 else
17573 puts (dlerror ());
17574
17575 return status;
17576 }
17577 _LT_EOF
17578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17579 (eval $ac_link) 2>&5
17580 ac_status=$?
17581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17583 (./conftest; exit; ) >&5 2>/dev/null
17584 lt_status=$?
17585 case x$lt_status in
17586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17589 esac
17590 else :
17591 # compilation failed
17592 lt_cv_dlopen_self=no
17593 fi
17594 fi
17595 rm -fr conftest*
17596
17597
17598 fi
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17600 $as_echo "$lt_cv_dlopen_self" >&6; }
17601
17602 if test "x$lt_cv_dlopen_self" = xyes; then
17603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17605 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17606 if ${lt_cv_dlopen_self_static+:} false; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 if test "$cross_compiling" = yes; then :
17610 lt_cv_dlopen_self_static=cross
17611 else
17612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17613 lt_status=$lt_dlunknown
17614 cat > conftest.$ac_ext <<_LT_EOF
17615 #line $LINENO "configure"
17616 #include "confdefs.h"
17617
17618 #if HAVE_DLFCN_H
17619 #include <dlfcn.h>
17620 #endif
17621
17622 #include <stdio.h>
17623
17624 #ifdef RTLD_GLOBAL
17625 # define LT_DLGLOBAL RTLD_GLOBAL
17626 #else
17627 # ifdef DL_GLOBAL
17628 # define LT_DLGLOBAL DL_GLOBAL
17629 # else
17630 # define LT_DLGLOBAL 0
17631 # endif
17632 #endif
17633
17634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17635 find out it does not work in some platform. */
17636 #ifndef LT_DLLAZY_OR_NOW
17637 # ifdef RTLD_LAZY
17638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17639 # else
17640 # ifdef DL_LAZY
17641 # define LT_DLLAZY_OR_NOW DL_LAZY
17642 # else
17643 # ifdef RTLD_NOW
17644 # define LT_DLLAZY_OR_NOW RTLD_NOW
17645 # else
17646 # ifdef DL_NOW
17647 # define LT_DLLAZY_OR_NOW DL_NOW
17648 # else
17649 # define LT_DLLAZY_OR_NOW 0
17650 # endif
17651 # endif
17652 # endif
17653 # endif
17654 #endif
17655
17656 /* When -fvisbility=hidden is used, assume the code has been annotated
17657 correspondingly for the symbols needed. */
17658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17659 int fnord () __attribute__((visibility("default")));
17660 #endif
17661
17662 int fnord () { return 42; }
17663 int main ()
17664 {
17665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666 int status = $lt_dlunknown;
17667
17668 if (self)
17669 {
17670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17671 else
17672 {
17673 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17674 else puts (dlerror ());
17675 }
17676 /* dlclose (self); */
17677 }
17678 else
17679 puts (dlerror ());
17680
17681 return status;
17682 }
17683 _LT_EOF
17684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17688 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17689 (./conftest; exit; ) >&5 2>/dev/null
17690 lt_status=$?
17691 case x$lt_status in
17692 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17693 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17694 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17695 esac
17696 else :
17697 # compilation failed
17698 lt_cv_dlopen_self_static=no
17699 fi
17700 fi
17701 rm -fr conftest*
17702
17703
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17706 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17707 fi
17708
17709 CPPFLAGS="$save_CPPFLAGS"
17710 LDFLAGS="$save_LDFLAGS"
17711 LIBS="$save_LIBS"
17712 ;;
17713 esac
17714
17715 case $lt_cv_dlopen_self in
17716 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17717 *) enable_dlopen_self=unknown ;;
17718 esac
17719
17720 case $lt_cv_dlopen_self_static in
17721 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17722 *) enable_dlopen_self_static=unknown ;;
17723 esac
17724 fi
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742 striplib=
17743 old_striplib=
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17745 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17746 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17747 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17748 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17750 $as_echo "yes" >&6; }
17751 else
17752 # FIXME - insert some real tests, host_os isn't really good enough
17753 case $host_os in
17754 darwin*)
17755 if test -n "$STRIP" ; then
17756 striplib="$STRIP -x"
17757 old_striplib="$STRIP -S"
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759 $as_echo "yes" >&6; }
17760 else
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763 fi
17764 ;;
17765 *)
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767 $as_echo "no" >&6; }
17768 ;;
17769 esac
17770 fi
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783 # Report which library types will actually be built
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17785 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17787 $as_echo "$can_build_shared" >&6; }
17788
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17790 $as_echo_n "checking whether to build shared libraries... " >&6; }
17791 test "$can_build_shared" = "no" && enable_shared=no
17792
17793 # On AIX, shared libraries and static libraries use the same namespace, and
17794 # are all built from PIC.
17795 case $host_os in
17796 aix3*)
17797 test "$enable_shared" = yes && enable_static=no
17798 if test -n "$RANLIB"; then
17799 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17800 postinstall_cmds='$RANLIB $lib'
17801 fi
17802 ;;
17803
17804 aix[4-9]*)
17805 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17806 test "$enable_shared" = yes && enable_static=no
17807 fi
17808 ;;
17809 esac
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17811 $as_echo "$enable_shared" >&6; }
17812
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17814 $as_echo_n "checking whether to build static libraries... " >&6; }
17815 # Make sure either enable_shared or enable_static is yes.
17816 test "$enable_shared" = yes || enable_static=yes
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17818 $as_echo "$enable_static" >&6; }
17819
17820
17821
17822
17823 fi
17824 ac_ext=c
17825 ac_cpp='$CPP $CPPFLAGS'
17826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17829
17830 CC="$lt_save_CC"
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846 ac_config_commands="$ac_config_commands libtool"
17847
17848
17849
17850
17851 # Only expand once:
17852
17853
17854
17855
17856
17857 # Define a configure option for an alternate module directory
17858
17859 # Check whether --with-xorg-module-dir was given.
17860 if test "${with_xorg_module_dir+set}" = set; then :
17861 withval=$with_xorg_module_dir; moduledir="$withval"
17862 else
17863 moduledir="$libdir/xorg/modules"
17864 fi
17865
17866
17867
17868 # Store the list of server defined optional extensions in REQUIRED_MODULES
17869
17870
17871 SAVE_CFLAGS="$CFLAGS"
17872 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875
17876 #include "xorg-server.h"
17877 #if !defined RANDR
17878 #error RANDR not defined
17879 #endif
17880
17881 int
17882 main ()
17883 {
17884
17885 ;
17886 return 0;
17887 }
17888 _ACEOF
17889 if ac_fn_c_try_compile "$LINENO"; then :
17890 _EXT_CHECK=yes
17891 else
17892 _EXT_CHECK=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 CFLAGS="$SAVE_CFLAGS"
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17897 $as_echo_n "checking if RANDR is defined... " >&6; }
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17899 $as_echo "$_EXT_CHECK" >&6; }
17900 if test "$_EXT_CHECK" != no; then
17901 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17902 fi
17903
17904
17905
17906 SAVE_CFLAGS="$CFLAGS"
17907 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910
17911 #include "xorg-server.h"
17912 #if !defined RENDER
17913 #error RENDER not defined
17914 #endif
17915
17916 int
17917 main ()
17918 {
17919
17920 ;
17921 return 0;
17922 }
17923 _ACEOF
17924 if ac_fn_c_try_compile "$LINENO"; then :
17925 _EXT_CHECK=yes
17926 else
17927 _EXT_CHECK=no
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930 CFLAGS="$SAVE_CFLAGS"
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17932 $as_echo_n "checking if RENDER is defined... " >&6; }
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17934 $as_echo "$_EXT_CHECK" >&6; }
17935 if test "$_EXT_CHECK" != no; then
17936 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17937 fi
17938
17939
17940
17941 SAVE_CFLAGS="$CFLAGS"
17942 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17945
17946 #include "xorg-server.h"
17947 #if !defined DPMSExtension
17948 #error DPMSExtension not defined
17949 #endif
17950
17951 int
17952 main ()
17953 {
17954
17955 ;
17956 return 0;
17957 }
17958 _ACEOF
17959 if ac_fn_c_try_compile "$LINENO"; then :
17960 _EXT_CHECK=yes
17961 else
17962 _EXT_CHECK=no
17963 fi
17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17965 CFLAGS="$SAVE_CFLAGS"
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17967 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17969 $as_echo "$_EXT_CHECK" >&6; }
17970 if test "$_EXT_CHECK" != no; then
17971 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17972 fi
17973
17974
17975 # Obtain compiler/linker options for the driver dependencies
17976
17977 pkg_failed=no
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17979 $as_echo_n "checking for XORG... " >&6; }
17980
17981 if test -n "$XORG_CFLAGS"; then
17982 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17983 elif test -n "$PKG_CONFIG"; then
17984 if test -n "$PKG_CONFIG" && \
17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17986 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
17987 ac_status=$?
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; }; then
17990 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17991 test "x$?" != "x0" && pkg_failed=yes
17992 else
17993 pkg_failed=yes
17994 fi
17995 else
17996 pkg_failed=untried
17997 fi
17998 if test -n "$XORG_LIBS"; then
17999 pkg_cv_XORG_LIBS="$XORG_LIBS"
18000 elif test -n "$PKG_CONFIG"; then
18001 if test -n "$PKG_CONFIG" && \
18002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18003 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18004 ac_status=$?
18005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18006 test $ac_status = 0; }; then
18007 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18008 test "x$?" != "x0" && pkg_failed=yes
18009 else
18010 pkg_failed=yes
18011 fi
18012 else
18013 pkg_failed=untried
18014 fi
18015
18016
18017
18018 if test $pkg_failed = yes; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18020 $as_echo "no" >&6; }
18021
18022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18023 _pkg_short_errors_supported=yes
18024 else
18025 _pkg_short_errors_supported=no
18026 fi
18027 if test $_pkg_short_errors_supported = yes; then
18028 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18029 else
18030 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18031 fi
18032 # Put the nasty error message in config.log where it belongs
18033 echo "$XORG_PKG_ERRORS" >&5
18034
18035 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18036
18037 $XORG_PKG_ERRORS
18038
18039 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18040 installed software in a non-standard prefix.
18041
18042 Alternatively, you may set the environment variables XORG_CFLAGS
18043 and XORG_LIBS to avoid the need to call pkg-config.
18044 See the pkg-config man page for more details." "$LINENO" 5
18045 elif test $pkg_failed = untried; then
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047 $as_echo "no" >&6; }
18048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18050 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18051 is in your PATH or set the PKG_CONFIG environment variable to the full
18052 path to pkg-config.
18053
18054 Alternatively, you may set the environment variables XORG_CFLAGS
18055 and XORG_LIBS to avoid the need to call pkg-config.
18056 See the pkg-config man page for more details.
18057
18058 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18059 See \`config.log' for more details" "$LINENO" 5; }
18060 else
18061 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18062 XORG_LIBS=$pkg_cv_XORG_LIBS
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18064 $as_echo "yes" >&6; }
18065
18066 fi
18067
18068 pkg_failed=no
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18070 $as_echo_n "checking for XEXT... " >&6; }
18071
18072 if test -n "$XEXT_CFLAGS"; then
18073 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18074 elif test -n "$PKG_CONFIG"; then
18075 if test -n "$PKG_CONFIG" && \
18076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18077 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18078 ac_status=$?
18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080 test $ac_status = 0; }; then
18081 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18082 test "x$?" != "x0" && pkg_failed=yes
18083 else
18084 pkg_failed=yes
18085 fi
18086 else
18087 pkg_failed=untried
18088 fi
18089 if test -n "$XEXT_LIBS"; then
18090 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18091 elif test -n "$PKG_CONFIG"; then
18092 if test -n "$PKG_CONFIG" && \
18093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18094 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18095 ac_status=$?
18096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097 test $ac_status = 0; }; then
18098 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18099 test "x$?" != "x0" && pkg_failed=yes
18100 else
18101 pkg_failed=yes
18102 fi
18103 else
18104 pkg_failed=untried
18105 fi
18106
18107
18108
18109 if test $pkg_failed = yes; then
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 $as_echo "no" >&6; }
18112
18113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18114 _pkg_short_errors_supported=yes
18115 else
18116 _pkg_short_errors_supported=no
18117 fi
18118 if test $_pkg_short_errors_supported = yes; then
18119 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18120 else
18121 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18122 fi
18123 # Put the nasty error message in config.log where it belongs
18124 echo "$XEXT_PKG_ERRORS" >&5
18125
18126 HAVE_XEXTPROTO_71="no"
18127 elif test $pkg_failed = untried; then
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 $as_echo "no" >&6; }
18130 HAVE_XEXTPROTO_71="no"
18131 else
18132 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18133 XEXT_LIBS=$pkg_cv_XEXT_LIBS
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135 $as_echo "yes" >&6; }
18136 HAVE_XEXTPROTO_71="yes"
18137 fi
18138
18139 if test "x$HAVE_XEXTPROTO_71" = xyes; then
18140
18141 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18142
18143 fi
18144
18145 save_CFLAGS="$CFLAGS"
18146 CFLAGS="$XORG_CFLAGS"
18147 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18148 "
18149 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18150
18151 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18152
18153 fi
18154
18155 CFLAGS="$save_CFLAGS"
18156
18157 save_CFLAGS="$CFLAGS"
18158 CFLAGS="$XORG_CFLAGS"
18159 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18160 "
18161 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18162 XSERVER_LIBPCIACCESS=yes
18163 else
18164 XSERVER_LIBPCIACCESS=no
18165 fi
18166
18167 CFLAGS="$save_CFLAGS"
18168
18169 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18170
18171 pkg_failed=no
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18173 $as_echo_n "checking for PCIACCESS... " >&6; }
18174
18175 if test -n "$PCIACCESS_CFLAGS"; then
18176 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18177 elif test -n "$PKG_CONFIG"; then
18178 if test -n "$PKG_CONFIG" && \
18179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18180 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18181 ac_status=$?
18182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183 test $ac_status = 0; }; then
18184 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18185 test "x$?" != "x0" && pkg_failed=yes
18186 else
18187 pkg_failed=yes
18188 fi
18189 else
18190 pkg_failed=untried
18191 fi
18192 if test -n "$PCIACCESS_LIBS"; then
18193 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18194 elif test -n "$PKG_CONFIG"; then
18195 if test -n "$PKG_CONFIG" && \
18196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18197 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18198 ac_status=$?
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; }; then
18201 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18202 test "x$?" != "x0" && pkg_failed=yes
18203 else
18204 pkg_failed=yes
18205 fi
18206 else
18207 pkg_failed=untried
18208 fi
18209
18210
18211
18212 if test $pkg_failed = yes; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214 $as_echo "no" >&6; }
18215
18216 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18217 _pkg_short_errors_supported=yes
18218 else
18219 _pkg_short_errors_supported=no
18220 fi
18221 if test $_pkg_short_errors_supported = yes; then
18222 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18223 else
18224 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18225 fi
18226 # Put the nasty error message in config.log where it belongs
18227 echo "$PCIACCESS_PKG_ERRORS" >&5
18228
18229 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18230
18231 $PCIACCESS_PKG_ERRORS
18232
18233 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18234 installed software in a non-standard prefix.
18235
18236 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18237 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18238 See the pkg-config man page for more details." "$LINENO" 5
18239 elif test $pkg_failed = untried; then
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18244 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18245 is in your PATH or set the PKG_CONFIG environment variable to the full
18246 path to pkg-config.
18247
18248 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18249 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18250 See the pkg-config man page for more details.
18251
18252 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18253 See \`config.log' for more details" "$LINENO" 5; }
18254 else
18255 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18256 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18258 $as_echo "yes" >&6; }
18259
18260 fi
18261 fi
18262
18263 # Checks for libraries.
18264
18265 DRIVER_NAME=vesa
18266
18267
18268 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18269
18270 cat >confcache <<\_ACEOF
18271 # This file is a shell script that caches the results of configure
18272 # tests run on this system so they can be shared between configure
18273 # scripts and configure runs, see configure's option --config-cache.
18274 # It is not useful on other systems. If it contains results you don't
18275 # want to keep, you may remove or edit it.
18276 #
18277 # config.status only pays attention to the cache file if you give it
18278 # the --recheck option to rerun configure.
18279 #
18280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18282 # following values.
18283
18284 _ACEOF
18285
18286 # The following way of writing the cache mishandles newlines in values,
18287 # but we know of no workaround that is simple, portable, and efficient.
18288 # So, we kill variables containing newlines.
18289 # Ultrix sh set writes to stderr and can't be redirected directly,
18290 # and sets the high bit in the cache file unless we assign to the vars.
18291 (
18292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18293 eval ac_val=\$$ac_var
18294 case $ac_val in #(
18295 *${as_nl}*)
18296 case $ac_var in #(
18297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18299 esac
18300 case $ac_var in #(
18301 _ | IFS | as_nl) ;; #(
18302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18303 *) { eval $ac_var=; unset $ac_var;} ;;
18304 esac ;;
18305 esac
18306 done
18307
18308 (set) 2>&1 |
18309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18310 *${as_nl}ac_space=\ *)
18311 # `set' does not quote correctly, so add quotes: double-quote
18312 # substitution turns \\\\ into \\, and sed turns \\ into \.
18313 sed -n \
18314 "s/'/'\\\\''/g;
18315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18316 ;; #(
18317 *)
18318 # `set' quotes correctly as required by POSIX, so do not add quotes.
18319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18320 ;;
18321 esac |
18322 sort
18323 ) |
18324 sed '
18325 /^ac_cv_env_/b end
18326 t clear
18327 :clear
18328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18329 t end
18330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18331 :end' >>confcache
18332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18333 if test -w "$cache_file"; then
18334 if test "x$cache_file" != "x/dev/null"; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18336 $as_echo "$as_me: updating cache $cache_file" >&6;}
18337 if test ! -f "$cache_file" || test -h "$cache_file"; then
18338 cat confcache >"$cache_file"
18339 else
18340 case $cache_file in #(
18341 */* | ?:*)
18342 mv -f confcache "$cache_file"$$ &&
18343 mv -f "$cache_file"$$ "$cache_file" ;; #(
18344 *)
18345 mv -f confcache "$cache_file" ;;
18346 esac
18347 fi
18348 fi
18349 else
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18351 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18352 fi
18353 fi
18354 rm -f confcache
18355
18356 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18357 # Let make expand exec_prefix.
18358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18359
18360 DEFS=-DHAVE_CONFIG_H
18361
18362 ac_libobjs=
18363 ac_ltlibobjs=
18364 U=
18365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18366 # 1. Remove the extension, and $U if already installed.
18367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18368 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18370 # will be set to the directory where LIBOBJS objects are built.
18371 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18372 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18373 done
18374 LIBOBJS=$ac_libobjs
18375
18376 LTLIBOBJS=$ac_ltlibobjs
18377
18378
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18380 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18381 if test -n "$am_sleep_pid"; then
18382 # Hide warnings about reused PIDs.
18383 wait $am_sleep_pid 2>/dev/null
18384 fi
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18386 $as_echo "done" >&6; }
18387 if test -n "$EXEEXT"; then
18388 am__EXEEXT_TRUE=
18389 am__EXEEXT_FALSE='#'
18390 else
18391 am__EXEEXT_TRUE='#'
18392 am__EXEEXT_FALSE=
18393 fi
18394
18395 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18396 as_fn_error $? "conditional \"AMDEP\" was never defined.
18397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18398 fi
18399 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18400 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18402 fi
18403
18404 : "${CONFIG_STATUS=./config.status}"
18405 ac_write_fail=0
18406 ac_clean_files_save=$ac_clean_files
18407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18409 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18410 as_write_fail=0
18411 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18412 #! $SHELL
18413 # Generated by $as_me.
18414 # Run this file to recreate the current configuration.
18415 # Compiler output produced by configure, useful for debugging
18416 # configure, is in config.log if it exists.
18417
18418 debug=false
18419 ac_cs_recheck=false
18420 ac_cs_silent=false
18421
18422 SHELL=\${CONFIG_SHELL-$SHELL}
18423 export SHELL
18424 _ASEOF
18425 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18426 ## -------------------- ##
18427 ## M4sh Initialization. ##
18428 ## -------------------- ##
18429
18430 # Be more Bourne compatible
18431 DUALCASE=1; export DUALCASE # for MKS sh
18432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18433 emulate sh
18434 NULLCMD=:
18435 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18436 # is contrary to our usage. Disable this feature.
18437 alias -g '${1+"$@"}'='"$@"'
18438 setopt NO_GLOB_SUBST
18439 else
18440 case `(set -o) 2>/dev/null` in #(
18441 *posix*) :
18442 set -o posix ;; #(
18443 *) :
18444 ;;
18445 esac
18446 fi
18447
18448
18449 as_nl='
18450 '
18451 export as_nl
18452 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18453 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18456 # Prefer a ksh shell builtin over an external printf program on Solaris,
18457 # but without wasting forks for bash or zsh.
18458 if test -z "$BASH_VERSION$ZSH_VERSION" \
18459 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18460 as_echo='print -r --'
18461 as_echo_n='print -rn --'
18462 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18463 as_echo='printf %s\n'
18464 as_echo_n='printf %s'
18465 else
18466 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18467 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18468 as_echo_n='/usr/ucb/echo -n'
18469 else
18470 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18471 as_echo_n_body='eval
18472 arg=$1;
18473 case $arg in #(
18474 *"$as_nl"*)
18475 expr "X$arg" : "X\\(.*\\)$as_nl";
18476 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18477 esac;
18478 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18479 '
18480 export as_echo_n_body
18481 as_echo_n='sh -c $as_echo_n_body as_echo'
18482 fi
18483 export as_echo_body
18484 as_echo='sh -c $as_echo_body as_echo'
18485 fi
18486
18487 # The user is always right.
18488 if test "${PATH_SEPARATOR+set}" != set; then
18489 PATH_SEPARATOR=:
18490 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18491 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18492 PATH_SEPARATOR=';'
18493 }
18494 fi
18495
18496
18497 # IFS
18498 # We need space, tab and new line, in precisely that order. Quoting is
18499 # there to prevent editors from complaining about space-tab.
18500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18501 # splitting by setting IFS to empty value.)
18502 IFS=" "" $as_nl"
18503
18504 # Find who we are. Look in the path if we contain no directory separator.
18505 as_myself=
18506 case $0 in #((
18507 *[\\/]* ) as_myself=$0 ;;
18508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509 for as_dir in $PATH
18510 do
18511 IFS=$as_save_IFS
18512 test -z "$as_dir" && as_dir=.
18513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18514 done
18515 IFS=$as_save_IFS
18516
18517 ;;
18518 esac
18519 # We did not find ourselves, most probably we were run as `sh COMMAND'
18520 # in which case we are not to be found in the path.
18521 if test "x$as_myself" = x; then
18522 as_myself=$0
18523 fi
18524 if test ! -f "$as_myself"; then
18525 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18526 exit 1
18527 fi
18528
18529 # Unset variables that we do not need and which cause bugs (e.g. in
18530 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18531 # suppresses any "Segmentation fault" message there. '((' could
18532 # trigger a bug in pdksh 5.2.14.
18533 for as_var in BASH_ENV ENV MAIL MAILPATH
18534 do eval test x\${$as_var+set} = xset \
18535 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18536 done
18537 PS1='$ '
18538 PS2='> '
18539 PS4='+ '
18540
18541 # NLS nuisances.
18542 LC_ALL=C
18543 export LC_ALL
18544 LANGUAGE=C
18545 export LANGUAGE
18546
18547 # CDPATH.
18548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18549
18550
18551 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18552 # ----------------------------------------
18553 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18554 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18555 # script with STATUS, using 1 if that was 0.
18556 as_fn_error ()
18557 {
18558 as_status=$1; test $as_status -eq 0 && as_status=1
18559 if test "$4"; then
18560 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18561 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18562 fi
18563 $as_echo "$as_me: error: $2" >&2
18564 as_fn_exit $as_status
18565 } # as_fn_error
18566
18567
18568 # as_fn_set_status STATUS
18569 # -----------------------
18570 # Set $? to STATUS, without forking.
18571 as_fn_set_status ()
18572 {
18573 return $1
18574 } # as_fn_set_status
18575
18576 # as_fn_exit STATUS
18577 # -----------------
18578 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18579 as_fn_exit ()
18580 {
18581 set +e
18582 as_fn_set_status $1
18583 exit $1
18584 } # as_fn_exit
18585
18586 # as_fn_unset VAR
18587 # ---------------
18588 # Portably unset VAR.
18589 as_fn_unset ()
18590 {
18591 { eval $1=; unset $1;}
18592 }
18593 as_unset=as_fn_unset
18594 # as_fn_append VAR VALUE
18595 # ----------------------
18596 # Append the text in VALUE to the end of the definition contained in VAR. Take
18597 # advantage of any shell optimizations that allow amortized linear growth over
18598 # repeated appends, instead of the typical quadratic growth present in naive
18599 # implementations.
18600 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18601 eval 'as_fn_append ()
18602 {
18603 eval $1+=\$2
18604 }'
18605 else
18606 as_fn_append ()
18607 {
18608 eval $1=\$$1\$2
18609 }
18610 fi # as_fn_append
18611
18612 # as_fn_arith ARG...
18613 # ------------------
18614 # Perform arithmetic evaluation on the ARGs, and store the result in the
18615 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18616 # must be portable across $(()) and expr.
18617 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18618 eval 'as_fn_arith ()
18619 {
18620 as_val=$(( $* ))
18621 }'
18622 else
18623 as_fn_arith ()
18624 {
18625 as_val=`expr "$@" || test $? -eq 1`
18626 }
18627 fi # as_fn_arith
18628
18629
18630 if expr a : '\(a\)' >/dev/null 2>&1 &&
18631 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18632 as_expr=expr
18633 else
18634 as_expr=false
18635 fi
18636
18637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18638 as_basename=basename
18639 else
18640 as_basename=false
18641 fi
18642
18643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18644 as_dirname=dirname
18645 else
18646 as_dirname=false
18647 fi
18648
18649 as_me=`$as_basename -- "$0" ||
18650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18651 X"$0" : 'X\(//\)$' \| \
18652 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18653 $as_echo X/"$0" |
18654 sed '/^.*\/\([^/][^/]*\)\/*$/{
18655 s//\1/
18656 q
18657 }
18658 /^X\/\(\/\/\)$/{
18659 s//\1/
18660 q
18661 }
18662 /^X\/\(\/\).*/{
18663 s//\1/
18664 q
18665 }
18666 s/.*/./; q'`
18667
18668 # Avoid depending upon Character Ranges.
18669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18672 as_cr_digits='0123456789'
18673 as_cr_alnum=$as_cr_Letters$as_cr_digits
18674
18675 ECHO_C= ECHO_N= ECHO_T=
18676 case `echo -n x` in #(((((
18677 -n*)
18678 case `echo 'xy\c'` in
18679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18680 xy) ECHO_C='\c';;
18681 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18682 ECHO_T=' ';;
18683 esac;;
18684 *)
18685 ECHO_N='-n';;
18686 esac
18687
18688 rm -f conf$$ conf$$.exe conf$$.file
18689 if test -d conf$$.dir; then
18690 rm -f conf$$.dir/conf$$.file
18691 else
18692 rm -f conf$$.dir
18693 mkdir conf$$.dir 2>/dev/null
18694 fi
18695 if (echo >conf$$.file) 2>/dev/null; then
18696 if ln -s conf$$.file conf$$ 2>/dev/null; then
18697 as_ln_s='ln -s'
18698 # ... but there are two gotchas:
18699 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18700 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18701 # In both cases, we have to default to `cp -pR'.
18702 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18703 as_ln_s='cp -pR'
18704 elif ln conf$$.file conf$$ 2>/dev/null; then
18705 as_ln_s=ln
18706 else
18707 as_ln_s='cp -pR'
18708 fi
18709 else
18710 as_ln_s='cp -pR'
18711 fi
18712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18713 rmdir conf$$.dir 2>/dev/null
18714
18715
18716 # as_fn_mkdir_p
18717 # -------------
18718 # Create "$as_dir" as a directory, including parents if necessary.
18719 as_fn_mkdir_p ()
18720 {
18721
18722 case $as_dir in #(
18723 -*) as_dir=./$as_dir;;
18724 esac
18725 test -d "$as_dir" || eval $as_mkdir_p || {
18726 as_dirs=
18727 while :; do
18728 case $as_dir in #(
18729 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18730 *) as_qdir=$as_dir;;
18731 esac
18732 as_dirs="'$as_qdir' $as_dirs"
18733 as_dir=`$as_dirname -- "$as_dir" ||
18734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735 X"$as_dir" : 'X\(//\)[^/]' \| \
18736 X"$as_dir" : 'X\(//\)$' \| \
18737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18738 $as_echo X"$as_dir" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18740 s//\1/
18741 q
18742 }
18743 /^X\(\/\/\)[^/].*/{
18744 s//\1/
18745 q
18746 }
18747 /^X\(\/\/\)$/{
18748 s//\1/
18749 q
18750 }
18751 /^X\(\/\).*/{
18752 s//\1/
18753 q
18754 }
18755 s/.*/./; q'`
18756 test -d "$as_dir" && break
18757 done
18758 test -z "$as_dirs" || eval "mkdir $as_dirs"
18759 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18760
18761
18762 } # as_fn_mkdir_p
18763 if mkdir -p . 2>/dev/null; then
18764 as_mkdir_p='mkdir -p "$as_dir"'
18765 else
18766 test -d ./-p && rmdir ./-p
18767 as_mkdir_p=false
18768 fi
18769
18770
18771 # as_fn_executable_p FILE
18772 # -----------------------
18773 # Test if FILE is an executable regular file.
18774 as_fn_executable_p ()
18775 {
18776 test -f "$1" && test -x "$1"
18777 } # as_fn_executable_p
18778 as_test_x='test -x'
18779 as_executable_p=as_fn_executable_p
18780
18781 # Sed expression to map a string onto a valid CPP name.
18782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18783
18784 # Sed expression to map a string onto a valid variable name.
18785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18786
18787
18788 exec 6>&1
18789 ## ----------------------------------- ##
18790 ## Main body of $CONFIG_STATUS script. ##
18791 ## ----------------------------------- ##
18792 _ASEOF
18793 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18794
18795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18796 # Save the log message, to keep $0 and so on meaningful, and to
18797 # report actual input values of CONFIG_FILES etc. instead of their
18798 # values after options handling.
18799 ac_log="
18800 This file was extended by xf86-video-vesa $as_me 2.3.4, which was
18801 generated by GNU Autoconf 2.69. Invocation command line was
18802
18803 CONFIG_FILES = $CONFIG_FILES
18804 CONFIG_HEADERS = $CONFIG_HEADERS
18805 CONFIG_LINKS = $CONFIG_LINKS
18806 CONFIG_COMMANDS = $CONFIG_COMMANDS
18807 $ $0 $@
18808
18809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18810 "
18811
18812 _ACEOF
18813
18814 case $ac_config_files in *"
18815 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18816 esac
18817
18818 case $ac_config_headers in *"
18819 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18820 esac
18821
18822
18823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18824 # Files that config.status was made for.
18825 config_files="$ac_config_files"
18826 config_headers="$ac_config_headers"
18827 config_commands="$ac_config_commands"
18828
18829 _ACEOF
18830
18831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18832 ac_cs_usage="\
18833 \`$as_me' instantiates files and other configuration actions
18834 from templates according to the current configuration. Unless the files
18835 and actions are specified as TAGs, all are instantiated by default.
18836
18837 Usage: $0 [OPTION]... [TAG]...
18838
18839 -h, --help print this help, then exit
18840 -V, --version print version number and configuration settings, then exit
18841 --config print configuration, then exit
18842 -q, --quiet, --silent
18843 do not print progress messages
18844 -d, --debug don't remove temporary files
18845 --recheck update $as_me by reconfiguring in the same conditions
18846 --file=FILE[:TEMPLATE]
18847 instantiate the configuration file FILE
18848 --header=FILE[:TEMPLATE]
18849 instantiate the configuration header FILE
18850
18851 Configuration files:
18852 $config_files
18853
18854 Configuration headers:
18855 $config_headers
18856
18857 Configuration commands:
18858 $config_commands
18859
18860 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18861
18862 _ACEOF
18863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18864 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18865 ac_cs_version="\\
18866 xf86-video-vesa config.status 2.3.4
18867 configured by $0, generated by GNU Autoconf 2.69,
18868 with options \\"\$ac_cs_config\\"
18869
18870 Copyright (C) 2012 Free Software Foundation, Inc.
18871 This config.status script is free software; the Free Software Foundation
18872 gives unlimited permission to copy, distribute and modify it."
18873
18874 ac_pwd='$ac_pwd'
18875 srcdir='$srcdir'
18876 INSTALL='$INSTALL'
18877 MKDIR_P='$MKDIR_P'
18878 AWK='$AWK'
18879 test -n "\$AWK" || AWK=awk
18880 _ACEOF
18881
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 # The default lists apply if the user does not specify any file.
18884 ac_need_defaults=:
18885 while test $# != 0
18886 do
18887 case $1 in
18888 --*=?*)
18889 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18890 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18891 ac_shift=:
18892 ;;
18893 --*=)
18894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18895 ac_optarg=
18896 ac_shift=:
18897 ;;
18898 *)
18899 ac_option=$1
18900 ac_optarg=$2
18901 ac_shift=shift
18902 ;;
18903 esac
18904
18905 case $ac_option in
18906 # Handling of the options.
18907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18908 ac_cs_recheck=: ;;
18909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18910 $as_echo "$ac_cs_version"; exit ;;
18911 --config | --confi | --conf | --con | --co | --c )
18912 $as_echo "$ac_cs_config"; exit ;;
18913 --debug | --debu | --deb | --de | --d | -d )
18914 debug=: ;;
18915 --file | --fil | --fi | --f )
18916 $ac_shift
18917 case $ac_optarg in
18918 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18919 '') as_fn_error $? "missing file argument" ;;
18920 esac
18921 as_fn_append CONFIG_FILES " '$ac_optarg'"
18922 ac_need_defaults=false;;
18923 --header | --heade | --head | --hea )
18924 $ac_shift
18925 case $ac_optarg in
18926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18927 esac
18928 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18929 ac_need_defaults=false;;
18930 --he | --h)
18931 # Conflict between --help and --header
18932 as_fn_error $? "ambiguous option: \`$1'
18933 Try \`$0 --help' for more information.";;
18934 --help | --hel | -h )
18935 $as_echo "$ac_cs_usage"; exit ;;
18936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18938 ac_cs_silent=: ;;
18939
18940 # This is an error.
18941 -*) as_fn_error $? "unrecognized option: \`$1'
18942 Try \`$0 --help' for more information." ;;
18943
18944 *) as_fn_append ac_config_targets " $1"
18945 ac_need_defaults=false ;;
18946
18947 esac
18948 shift
18949 done
18950
18951 ac_configure_extra_args=
18952
18953 if $ac_cs_silent; then
18954 exec 6>/dev/null
18955 ac_configure_extra_args="$ac_configure_extra_args --silent"
18956 fi
18957
18958 _ACEOF
18959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18960 if \$ac_cs_recheck; then
18961 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18962 shift
18963 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18964 CONFIG_SHELL='$SHELL'
18965 export CONFIG_SHELL
18966 exec "\$@"
18967 fi
18968
18969 _ACEOF
18970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18971 exec 5>>config.log
18972 {
18973 echo
18974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18975 ## Running $as_me. ##
18976 _ASBOX
18977 $as_echo "$ac_log"
18978 } >&5
18979
18980 _ACEOF
18981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 #
18983 # INIT-COMMANDS
18984 #
18985 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18986
18987
18988 # The HP-UX ksh and POSIX shell print the target directory to stdout
18989 # if CDPATH is set.
18990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18991
18992 sed_quote_subst='$sed_quote_subst'
18993 double_quote_subst='$double_quote_subst'
18994 delay_variable_subst='$delay_variable_subst'
18995 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18996 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18997 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18998 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18999 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19000 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19001 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19002 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19003 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19024 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19025 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19026 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19027 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19028 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19029 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19030 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19031 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19032 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19033 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19034 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19035 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19036 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19037 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19038 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19039 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19040 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19041 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19042 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19043 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19044 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19045 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19046 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19047 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19048 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19049 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19050 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19051 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"`'
19052 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19053 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19054 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19055 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19056 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19057 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19058 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19059 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19060 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19061 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19062 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19063 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19064 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19065 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19066 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19067 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19068 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19069 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19070 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19071 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19072 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19073 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19074 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19075 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19076 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19077 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19078 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19079 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19080 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19081 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19082 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19083 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19084 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19085 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19086 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19087 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19088 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19089 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19090 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19091 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19092 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19093 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19094 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19095 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19096 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19097 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19098 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19099 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19100 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19101 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19102 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19103 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19104 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19105 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19106 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19107 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19108 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19109 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19110 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19111 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19112 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19113 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19114 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19115 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19116 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19117 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19118 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19119 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19120 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19121 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19122 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19123 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19124 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19125
19126 LTCC='$LTCC'
19127 LTCFLAGS='$LTCFLAGS'
19128 compiler='$compiler_DEFAULT'
19129
19130 # A function that is used when there is no print builtin or printf.
19131 func_fallback_echo ()
19132 {
19133 eval 'cat <<_LTECHO_EOF
19134 \$1
19135 _LTECHO_EOF'
19136 }
19137
19138 # Quote evaled strings.
19139 for var in SHELL \
19140 ECHO \
19141 PATH_SEPARATOR \
19142 SED \
19143 GREP \
19144 EGREP \
19145 FGREP \
19146 LD \
19147 NM \
19148 LN_S \
19149 lt_SP2NL \
19150 lt_NL2SP \
19151 reload_flag \
19152 OBJDUMP \
19153 deplibs_check_method \
19154 file_magic_cmd \
19155 file_magic_glob \
19156 want_nocaseglob \
19157 DLLTOOL \
19158 sharedlib_from_linklib_cmd \
19159 AR \
19160 AR_FLAGS \
19161 archiver_list_spec \
19162 STRIP \
19163 RANLIB \
19164 CC \
19165 CFLAGS \
19166 compiler \
19167 lt_cv_sys_global_symbol_pipe \
19168 lt_cv_sys_global_symbol_to_cdecl \
19169 lt_cv_sys_global_symbol_to_c_name_address \
19170 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19171 nm_file_list_spec \
19172 lt_prog_compiler_no_builtin_flag \
19173 lt_prog_compiler_pic \
19174 lt_prog_compiler_wl \
19175 lt_prog_compiler_static \
19176 lt_cv_prog_compiler_c_o \
19177 need_locks \
19178 MANIFEST_TOOL \
19179 DSYMUTIL \
19180 NMEDIT \
19181 LIPO \
19182 OTOOL \
19183 OTOOL64 \
19184 shrext_cmds \
19185 export_dynamic_flag_spec \
19186 whole_archive_flag_spec \
19187 compiler_needs_object \
19188 with_gnu_ld \
19189 allow_undefined_flag \
19190 no_undefined_flag \
19191 hardcode_libdir_flag_spec \
19192 hardcode_libdir_separator \
19193 exclude_expsyms \
19194 include_expsyms \
19195 file_list_spec \
19196 variables_saved_for_relink \
19197 libname_spec \
19198 library_names_spec \
19199 soname_spec \
19200 install_override_mode \
19201 finish_eval \
19202 old_striplib \
19203 striplib; do
19204 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19205 *[\\\\\\\`\\"\\\$]*)
19206 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19207 ;;
19208 *)
19209 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19210 ;;
19211 esac
19212 done
19213
19214 # Double-quote double-evaled strings.
19215 for var in reload_cmds \
19216 old_postinstall_cmds \
19217 old_postuninstall_cmds \
19218 old_archive_cmds \
19219 extract_expsyms_cmds \
19220 old_archive_from_new_cmds \
19221 old_archive_from_expsyms_cmds \
19222 archive_cmds \
19223 archive_expsym_cmds \
19224 module_cmds \
19225 module_expsym_cmds \
19226 export_symbols_cmds \
19227 prelink_cmds \
19228 postlink_cmds \
19229 postinstall_cmds \
19230 postuninstall_cmds \
19231 finish_cmds \
19232 sys_lib_search_path_spec \
19233 sys_lib_dlsearch_path_spec; do
19234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19235 *[\\\\\\\`\\"\\\$]*)
19236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19237 ;;
19238 *)
19239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19240 ;;
19241 esac
19242 done
19243
19244 ac_aux_dir='$ac_aux_dir'
19245 xsi_shell='$xsi_shell'
19246 lt_shell_append='$lt_shell_append'
19247
19248 # See if we are running on zsh, and set the options which allow our
19249 # commands through without removal of \ escapes INIT.
19250 if test -n "\${ZSH_VERSION+set}" ; then
19251 setopt NO_GLOB_SUBST
19252 fi
19253
19254
19255 PACKAGE='$PACKAGE'
19256 VERSION='$VERSION'
19257 TIMESTAMP='$TIMESTAMP'
19258 RM='$RM'
19259 ofile='$ofile'
19260
19261
19262
19263
19264 _ACEOF
19265
19266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267
19268 # Handling of arguments.
19269 for ac_config_target in $ac_config_targets
19270 do
19271 case $ac_config_target in
19272 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19274 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19276 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19277 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19278
19279 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19280 esac
19281 done
19282
19283
19284 # If the user did not use the arguments to specify the items to instantiate,
19285 # then the envvar interface is used. Set only those that are not.
19286 # We use the long form for the default assignment because of an extremely
19287 # bizarre bug on SunOS 4.1.3.
19288 if $ac_need_defaults; then
19289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19292 fi
19293
19294 # Have a temporary directory for convenience. Make it in the build tree
19295 # simply because there is no reason against having it here, and in addition,
19296 # creating and moving files from /tmp can sometimes cause problems.
19297 # Hook for its removal unless debugging.
19298 # Note that there is a small window in which the directory will not be cleaned:
19299 # after its creation but before its name has been assigned to `$tmp'.
19300 $debug ||
19301 {
19302 tmp= ac_tmp=
19303 trap 'exit_status=$?
19304 : "${ac_tmp:=$tmp}"
19305 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19306 ' 0
19307 trap 'as_fn_exit 1' 1 2 13 15
19308 }
19309 # Create a (secure) tmp directory for tmp files.
19310
19311 {
19312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19313 test -d "$tmp"
19314 } ||
19315 {
19316 tmp=./conf$$-$RANDOM
19317 (umask 077 && mkdir "$tmp")
19318 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19319 ac_tmp=$tmp
19320
19321 # Set up the scripts for CONFIG_FILES section.
19322 # No need to generate them if there are no CONFIG_FILES.
19323 # This happens for instance with `./config.status config.h'.
19324 if test -n "$CONFIG_FILES"; then
19325
19326
19327 ac_cr=`echo X | tr X '\015'`
19328 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19329 # But we know of no other shell where ac_cr would be empty at this
19330 # point, so we can use a bashism as a fallback.
19331 if test "x$ac_cr" = x; then
19332 eval ac_cr=\$\'\\r\'
19333 fi
19334 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19335 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19336 ac_cs_awk_cr='\\r'
19337 else
19338 ac_cs_awk_cr=$ac_cr
19339 fi
19340
19341 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19342 _ACEOF
19343
19344
19345 {
19346 echo "cat >conf$$subs.awk <<_ACEOF" &&
19347 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19348 echo "_ACEOF"
19349 } >conf$$subs.sh ||
19350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19351 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19352 ac_delim='%!_!# '
19353 for ac_last_try in false false false false false :; do
19354 . ./conf$$subs.sh ||
19355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19356
19357 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19358 if test $ac_delim_n = $ac_delim_num; then
19359 break
19360 elif $ac_last_try; then
19361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19362 else
19363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19364 fi
19365 done
19366 rm -f conf$$subs.sh
19367
19368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19369 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19370 _ACEOF
19371 sed -n '
19372 h
19373 s/^/S["/; s/!.*/"]=/
19374 p
19375 g
19376 s/^[^!]*!//
19377 :repl
19378 t repl
19379 s/'"$ac_delim"'$//
19380 t delim
19381 :nl
19382 h
19383 s/\(.\{148\}\)..*/\1/
19384 t more1
19385 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19386 p
19387 n
19388 b repl
19389 :more1
19390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19391 p
19392 g
19393 s/.\{148\}//
19394 t nl
19395 :delim
19396 h
19397 s/\(.\{148\}\)..*/\1/
19398 t more2
19399 s/["\\]/\\&/g; s/^/"/; s/$/"/
19400 p
19401 b
19402 :more2
19403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19404 p
19405 g
19406 s/.\{148\}//
19407 t delim
19408 ' <conf$$subs.awk | sed '
19409 /^[^""]/{
19410 N
19411 s/\n//
19412 }
19413 ' >>$CONFIG_STATUS || ac_write_fail=1
19414 rm -f conf$$subs.awk
19415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19416 _ACAWK
19417 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19418 for (key in S) S_is_set[key] = 1
19419 FS = ""
19420
19421 }
19422 {
19423 line = $ 0
19424 nfields = split(line, field, "@")
19425 substed = 0
19426 len = length(field[1])
19427 for (i = 2; i < nfields; i++) {
19428 key = field[i]
19429 keylen = length(key)
19430 if (S_is_set[key]) {
19431 value = S[key]
19432 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19433 len += length(value) + length(field[++i])
19434 substed = 1
19435 } else
19436 len += 1 + keylen
19437 }
19438
19439 print line
19440 }
19441
19442 _ACAWK
19443 _ACEOF
19444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19446 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19447 else
19448 cat
19449 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19450 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19451 _ACEOF
19452
19453 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19454 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19455 # trailing colons and then remove the whole line if VPATH becomes empty
19456 # (actually we leave an empty line to preserve line numbers).
19457 if test "x$srcdir" = x.; then
19458 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19459 h
19460 s///
19461 s/^/:/
19462 s/[ ]*$/:/
19463 s/:\$(srcdir):/:/g
19464 s/:\${srcdir}:/:/g
19465 s/:@srcdir@:/:/g
19466 s/^:*//
19467 s/:*$//
19468 x
19469 s/\(=[ ]*\).*/\1/
19470 G
19471 s/\n//
19472 s/^[^=]*=[ ]*$//
19473 }'
19474 fi
19475
19476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19477 fi # test -n "$CONFIG_FILES"
19478
19479 # Set up the scripts for CONFIG_HEADERS section.
19480 # No need to generate them if there are no CONFIG_HEADERS.
19481 # This happens for instance with `./config.status Makefile'.
19482 if test -n "$CONFIG_HEADERS"; then
19483 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19484 BEGIN {
19485 _ACEOF
19486
19487 # Transform confdefs.h into an awk script `defines.awk', embedded as
19488 # here-document in config.status, that substitutes the proper values into
19489 # config.h.in to produce config.h.
19490
19491 # Create a delimiter string that does not exist in confdefs.h, to ease
19492 # handling of long lines.
19493 ac_delim='%!_!# '
19494 for ac_last_try in false false :; do
19495 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19496 if test -z "$ac_tt"; then
19497 break
19498 elif $ac_last_try; then
19499 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19500 else
19501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19502 fi
19503 done
19504
19505 # For the awk script, D is an array of macro values keyed by name,
19506 # likewise P contains macro parameters if any. Preserve backslash
19507 # newline sequences.
19508
19509 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19510 sed -n '
19511 s/.\{148\}/&'"$ac_delim"'/g
19512 t rset
19513 :rset
19514 s/^[ ]*#[ ]*define[ ][ ]*/ /
19515 t def
19516 d
19517 :def
19518 s/\\$//
19519 t bsnl
19520 s/["\\]/\\&/g
19521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19522 D["\1"]=" \3"/p
19523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19524 d
19525 :bsnl
19526 s/["\\]/\\&/g
19527 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19528 D["\1"]=" \3\\\\\\n"\\/p
19529 t cont
19530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19531 t cont
19532 d
19533 :cont
19534 n
19535 s/.\{148\}/&'"$ac_delim"'/g
19536 t clear
19537 :clear
19538 s/\\$//
19539 t bsnlc
19540 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19541 d
19542 :bsnlc
19543 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19544 b cont
19545 ' <confdefs.h | sed '
19546 s/'"$ac_delim"'/"\\\
19547 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19548
19549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19550 for (key in D) D_is_set[key] = 1
19551 FS = ""
19552 }
19553 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19554 line = \$ 0
19555 split(line, arg, " ")
19556 if (arg[1] == "#") {
19557 defundef = arg[2]
19558 mac1 = arg[3]
19559 } else {
19560 defundef = substr(arg[1], 2)
19561 mac1 = arg[2]
19562 }
19563 split(mac1, mac2, "(") #)
19564 macro = mac2[1]
19565 prefix = substr(line, 1, index(line, defundef) - 1)
19566 if (D_is_set[macro]) {
19567 # Preserve the white space surrounding the "#".
19568 print prefix "define", macro P[macro] D[macro]
19569 next
19570 } else {
19571 # Replace #undef with comments. This is necessary, for example,
19572 # in the case of _POSIX_SOURCE, which is predefined and required
19573 # on some systems where configure will not decide to define it.
19574 if (defundef == "undef") {
19575 print "/*", prefix defundef, macro, "*/"
19576 next
19577 }
19578 }
19579 }
19580 { print }
19581 _ACAWK
19582 _ACEOF
19583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19585 fi # test -n "$CONFIG_HEADERS"
19586
19587
19588 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19589 shift
19590 for ac_tag
19591 do
19592 case $ac_tag in
19593 :[FHLC]) ac_mode=$ac_tag; continue;;
19594 esac
19595 case $ac_mode$ac_tag in
19596 :[FHL]*:*);;
19597 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19598 :[FH]-) ac_tag=-:-;;
19599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19600 esac
19601 ac_save_IFS=$IFS
19602 IFS=:
19603 set x $ac_tag
19604 IFS=$ac_save_IFS
19605 shift
19606 ac_file=$1
19607 shift
19608
19609 case $ac_mode in
19610 :L) ac_source=$1;;
19611 :[FH])
19612 ac_file_inputs=
19613 for ac_f
19614 do
19615 case $ac_f in
19616 -) ac_f="$ac_tmp/stdin";;
19617 *) # Look for the file first in the build tree, then in the source tree
19618 # (if the path is not absolute). The absolute path cannot be DOS-style,
19619 # because $ac_f cannot contain `:'.
19620 test -f "$ac_f" ||
19621 case $ac_f in
19622 [\\/$]*) false;;
19623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19624 esac ||
19625 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19626 esac
19627 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19628 as_fn_append ac_file_inputs " '$ac_f'"
19629 done
19630
19631 # Let's still pretend it is `configure' which instantiates (i.e., don't
19632 # use $as_me), people would be surprised to read:
19633 # /* config.h. Generated by config.status. */
19634 configure_input='Generated from '`
19635 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19636 `' by configure.'
19637 if test x"$ac_file" != x-; then
19638 configure_input="$ac_file. $configure_input"
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19640 $as_echo "$as_me: creating $ac_file" >&6;}
19641 fi
19642 # Neutralize special characters interpreted by sed in replacement strings.
19643 case $configure_input in #(
19644 *\&* | *\|* | *\\* )
19645 ac_sed_conf_input=`$as_echo "$configure_input" |
19646 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19647 *) ac_sed_conf_input=$configure_input;;
19648 esac
19649
19650 case $ac_tag in
19651 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19653 esac
19654 ;;
19655 esac
19656
19657 ac_dir=`$as_dirname -- "$ac_file" ||
19658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19659 X"$ac_file" : 'X\(//\)[^/]' \| \
19660 X"$ac_file" : 'X\(//\)$' \| \
19661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19662 $as_echo X"$ac_file" |
19663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19664 s//\1/
19665 q
19666 }
19667 /^X\(\/\/\)[^/].*/{
19668 s//\1/
19669 q
19670 }
19671 /^X\(\/\/\)$/{
19672 s//\1/
19673 q
19674 }
19675 /^X\(\/\).*/{
19676 s//\1/
19677 q
19678 }
19679 s/.*/./; q'`
19680 as_dir="$ac_dir"; as_fn_mkdir_p
19681 ac_builddir=.
19682
19683 case "$ac_dir" in
19684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19685 *)
19686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19687 # A ".." for each directory in $ac_dir_suffix.
19688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19689 case $ac_top_builddir_sub in
19690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19692 esac ;;
19693 esac
19694 ac_abs_top_builddir=$ac_pwd
19695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19696 # for backward compatibility:
19697 ac_top_builddir=$ac_top_build_prefix
19698
19699 case $srcdir in
19700 .) # We are building in place.
19701 ac_srcdir=.
19702 ac_top_srcdir=$ac_top_builddir_sub
19703 ac_abs_top_srcdir=$ac_pwd ;;
19704 [\\/]* | ?:[\\/]* ) # Absolute name.
19705 ac_srcdir=$srcdir$ac_dir_suffix;
19706 ac_top_srcdir=$srcdir
19707 ac_abs_top_srcdir=$srcdir ;;
19708 *) # Relative name.
19709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19710 ac_top_srcdir=$ac_top_build_prefix$srcdir
19711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19712 esac
19713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19714
19715
19716 case $ac_mode in
19717 :F)
19718 #
19719 # CONFIG_FILE
19720 #
19721
19722 case $INSTALL in
19723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19724 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19725 esac
19726 ac_MKDIR_P=$MKDIR_P
19727 case $MKDIR_P in
19728 [\\/$]* | ?:[\\/]* ) ;;
19729 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19730 esac
19731 _ACEOF
19732
19733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19734 # If the template does not know about datarootdir, expand it.
19735 # FIXME: This hack should be removed a few years after 2.60.
19736 ac_datarootdir_hack=; ac_datarootdir_seen=
19737 ac_sed_dataroot='
19738 /datarootdir/ {
19739 p
19740 q
19741 }
19742 /@datadir@/p
19743 /@docdir@/p
19744 /@infodir@/p
19745 /@localedir@/p
19746 /@mandir@/p'
19747 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19748 *datarootdir*) ac_datarootdir_seen=yes;;
19749 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19751 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19752 _ACEOF
19753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19754 ac_datarootdir_hack='
19755 s&@datadir@&$datadir&g
19756 s&@docdir@&$docdir&g
19757 s&@infodir@&$infodir&g
19758 s&@localedir@&$localedir&g
19759 s&@mandir@&$mandir&g
19760 s&\\\${datarootdir}&$datarootdir&g' ;;
19761 esac
19762 _ACEOF
19763
19764 # Neutralize VPATH when `$srcdir' = `.'.
19765 # Shell code in configure.ac might set extrasub.
19766 # FIXME: do we really want to maintain this feature?
19767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19768 ac_sed_extra="$ac_vpsub
19769 $extrasub
19770 _ACEOF
19771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19772 :t
19773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19774 s|@configure_input@|$ac_sed_conf_input|;t t
19775 s&@top_builddir@&$ac_top_builddir_sub&;t t
19776 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19777 s&@srcdir@&$ac_srcdir&;t t
19778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19779 s&@top_srcdir@&$ac_top_srcdir&;t t
19780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19781 s&@builddir@&$ac_builddir&;t t
19782 s&@abs_builddir@&$ac_abs_builddir&;t t
19783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19784 s&@INSTALL@&$ac_INSTALL&;t t
19785 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19786 $ac_datarootdir_hack
19787 "
19788 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19789 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19790
19791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19792 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19794 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19796 which seems to be undefined. Please make sure it is defined" >&5
19797 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19798 which seems to be undefined. Please make sure it is defined" >&2;}
19799
19800 rm -f "$ac_tmp/stdin"
19801 case $ac_file in
19802 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19803 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19804 esac \
19805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19806 ;;
19807 :H)
19808 #
19809 # CONFIG_HEADER
19810 #
19811 if test x"$ac_file" != x-; then
19812 {
19813 $as_echo "/* $configure_input */" \
19814 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19815 } >"$ac_tmp/config.h" \
19816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19817 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19819 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19820 else
19821 rm -f "$ac_file"
19822 mv "$ac_tmp/config.h" "$ac_file" \
19823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19824 fi
19825 else
19826 $as_echo "/* $configure_input */" \
19827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19828 || as_fn_error $? "could not create -" "$LINENO" 5
19829 fi
19830 # Compute "$ac_file"'s index in $config_headers.
19831 _am_arg="$ac_file"
19832 _am_stamp_count=1
19833 for _am_header in $config_headers :; do
19834 case $_am_header in
19835 $_am_arg | $_am_arg:* )
19836 break ;;
19837 * )
19838 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19839 esac
19840 done
19841 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19842 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843 X"$_am_arg" : 'X\(//\)[^/]' \| \
19844 X"$_am_arg" : 'X\(//\)$' \| \
19845 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19846 $as_echo X"$_am_arg" |
19847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19848 s//\1/
19849 q
19850 }
19851 /^X\(\/\/\)[^/].*/{
19852 s//\1/
19853 q
19854 }
19855 /^X\(\/\/\)$/{
19856 s//\1/
19857 q
19858 }
19859 /^X\(\/\).*/{
19860 s//\1/
19861 q
19862 }
19863 s/.*/./; q'`/stamp-h$_am_stamp_count
19864 ;;
19865
19866 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19867 $as_echo "$as_me: executing $ac_file commands" >&6;}
19868 ;;
19869 esac
19870
19871
19872 case $ac_file$ac_mode in
19873 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19874 # Older Autoconf quotes --file arguments for eval, but not when files
19875 # are listed without --file. Let's play safe and only enable the eval
19876 # if we detect the quoting.
19877 case $CONFIG_FILES in
19878 *\'*) eval set x "$CONFIG_FILES" ;;
19879 *) set x $CONFIG_FILES ;;
19880 esac
19881 shift
19882 for mf
19883 do
19884 # Strip MF so we end up with the name of the file.
19885 mf=`echo "$mf" | sed -e 's/:.*$//'`
19886 # Check whether this is an Automake generated Makefile or not.
19887 # We used to match only the files named 'Makefile.in', but
19888 # some people rename them; so instead we look at the file content.
19889 # Grep'ing the first line is not enough: some people post-process
19890 # each Makefile.in and add a new line on top of each file to say so.
19891 # Grep'ing the whole file is not good either: AIX grep has a line
19892 # limit of 2048, but all sed's we know have understand at least 4000.
19893 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19894 dirpart=`$as_dirname -- "$mf" ||
19895 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19896 X"$mf" : 'X\(//\)[^/]' \| \
19897 X"$mf" : 'X\(//\)$' \| \
19898 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19899 $as_echo X"$mf" |
19900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19901 s//\1/
19902 q
19903 }
19904 /^X\(\/\/\)[^/].*/{
19905 s//\1/
19906 q
19907 }
19908 /^X\(\/\/\)$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\(\/\).*/{
19913 s//\1/
19914 q
19915 }
19916 s/.*/./; q'`
19917 else
19918 continue
19919 fi
19920 # Extract the definition of DEPDIR, am__include, and am__quote
19921 # from the Makefile without running 'make'.
19922 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19923 test -z "$DEPDIR" && continue
19924 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19925 test -z "$am__include" && continue
19926 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19927 # Find all dependency output files, they are included files with
19928 # $(DEPDIR) in their names. We invoke sed twice because it is the
19929 # simplest approach to changing $(DEPDIR) to its actual value in the
19930 # expansion.
19931 for file in `sed -n "
19932 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19933 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19934 # Make sure the directory exists.
19935 test -f "$dirpart/$file" && continue
19936 fdir=`$as_dirname -- "$file" ||
19937 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19938 X"$file" : 'X\(//\)[^/]' \| \
19939 X"$file" : 'X\(//\)$' \| \
19940 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19941 $as_echo X"$file" |
19942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19943 s//\1/
19944 q
19945 }
19946 /^X\(\/\/\)[^/].*/{
19947 s//\1/
19948 q
19949 }
19950 /^X\(\/\/\)$/{
19951 s//\1/
19952 q
19953 }
19954 /^X\(\/\).*/{
19955 s//\1/
19956 q
19957 }
19958 s/.*/./; q'`
19959 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19960 # echo "creating $dirpart/$file"
19961 echo '# dummy' > "$dirpart/$file"
19962 done
19963 done
19964 }
19965 ;;
19966 "libtool":C)
19967
19968 # See if we are running on zsh, and set the options which allow our
19969 # commands through without removal of \ escapes.
19970 if test -n "${ZSH_VERSION+set}" ; then
19971 setopt NO_GLOB_SUBST
19972 fi
19973
19974 cfgfile="${ofile}T"
19975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19976 $RM "$cfgfile"
19977
19978 cat <<_LT_EOF >> "$cfgfile"
19979 #! $SHELL
19980
19981 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19982 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19984 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19985 #
19986 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19987 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19988 # Foundation, Inc.
19989 # Written by Gordon Matzigkeit, 1996
19990 #
19991 # This file is part of GNU Libtool.
19992 #
19993 # GNU Libtool is free software; you can redistribute it and/or
19994 # modify it under the terms of the GNU General Public License as
19995 # published by the Free Software Foundation; either version 2 of
19996 # the License, or (at your option) any later version.
19997 #
19998 # As a special exception to the GNU General Public License,
19999 # if you distribute this file as part of a program or library that
20000 # is built using GNU Libtool, you may include this file under the
20001 # same distribution terms that you use for the rest of that program.
20002 #
20003 # GNU Libtool is distributed in the hope that it will be useful,
20004 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20005 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20006 # GNU General Public License for more details.
20007 #
20008 # You should have received a copy of the GNU General Public License
20009 # along with GNU Libtool; see the file COPYING. If not, a copy
20010 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20011 # obtained by writing to the Free Software Foundation, Inc.,
20012 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20013
20014
20015 # The names of the tagged configurations supported by this script.
20016 available_tags=""
20017
20018 # ### BEGIN LIBTOOL CONFIG
20019
20020 # Whether or not to build static libraries.
20021 build_old_libs=$enable_static
20022
20023 # Which release of libtool.m4 was used?
20024 macro_version=$macro_version
20025 macro_revision=$macro_revision
20026
20027 # Whether or not to build shared libraries.
20028 build_libtool_libs=$enable_shared
20029
20030 # What type of objects to build.
20031 pic_mode=$pic_mode
20032
20033 # Whether or not to optimize for fast installation.
20034 fast_install=$enable_fast_install
20035
20036 # Shell to use when invoking shell scripts.
20037 SHELL=$lt_SHELL
20038
20039 # An echo program that protects backslashes.
20040 ECHO=$lt_ECHO
20041
20042 # The PATH separator for the build system.
20043 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20044
20045 # The host system.
20046 host_alias=$host_alias
20047 host=$host
20048 host_os=$host_os
20049
20050 # The build system.
20051 build_alias=$build_alias
20052 build=$build
20053 build_os=$build_os
20054
20055 # A sed program that does not truncate output.
20056 SED=$lt_SED
20057
20058 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20059 Xsed="\$SED -e 1s/^X//"
20060
20061 # A grep program that handles long lines.
20062 GREP=$lt_GREP
20063
20064 # An ERE matcher.
20065 EGREP=$lt_EGREP
20066
20067 # A literal string matcher.
20068 FGREP=$lt_FGREP
20069
20070 # A BSD- or MS-compatible name lister.
20071 NM=$lt_NM
20072
20073 # Whether we need soft or hard links.
20074 LN_S=$lt_LN_S
20075
20076 # What is the maximum length of a command?
20077 max_cmd_len=$max_cmd_len
20078
20079 # Object file suffix (normally "o").
20080 objext=$ac_objext
20081
20082 # Executable file suffix (normally "").
20083 exeext=$exeext
20084
20085 # whether the shell understands "unset".
20086 lt_unset=$lt_unset
20087
20088 # turn spaces into newlines.
20089 SP2NL=$lt_lt_SP2NL
20090
20091 # turn newlines into spaces.
20092 NL2SP=$lt_lt_NL2SP
20093
20094 # convert \$build file names to \$host format.
20095 to_host_file_cmd=$lt_cv_to_host_file_cmd
20096
20097 # convert \$build files to toolchain format.
20098 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20099
20100 # An object symbol dumper.
20101 OBJDUMP=$lt_OBJDUMP
20102
20103 # Method to check whether dependent libraries are shared objects.
20104 deplibs_check_method=$lt_deplibs_check_method
20105
20106 # Command to use when deplibs_check_method = "file_magic".
20107 file_magic_cmd=$lt_file_magic_cmd
20108
20109 # How to find potential files when deplibs_check_method = "file_magic".
20110 file_magic_glob=$lt_file_magic_glob
20111
20112 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20113 want_nocaseglob=$lt_want_nocaseglob
20114
20115 # DLL creation program.
20116 DLLTOOL=$lt_DLLTOOL
20117
20118 # Command to associate shared and link libraries.
20119 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20120
20121 # The archiver.
20122 AR=$lt_AR
20123
20124 # Flags to create an archive.
20125 AR_FLAGS=$lt_AR_FLAGS
20126
20127 # How to feed a file listing to the archiver.
20128 archiver_list_spec=$lt_archiver_list_spec
20129
20130 # A symbol stripping program.
20131 STRIP=$lt_STRIP
20132
20133 # Commands used to install an old-style archive.
20134 RANLIB=$lt_RANLIB
20135 old_postinstall_cmds=$lt_old_postinstall_cmds
20136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20137
20138 # Whether to use a lock for old archive extraction.
20139 lock_old_archive_extraction=$lock_old_archive_extraction
20140
20141 # A C compiler.
20142 LTCC=$lt_CC
20143
20144 # LTCC compiler flags.
20145 LTCFLAGS=$lt_CFLAGS
20146
20147 # Take the output of nm and produce a listing of raw symbols and C names.
20148 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20149
20150 # Transform the output of nm in a proper C declaration.
20151 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20152
20153 # Transform the output of nm in a C name address pair.
20154 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20155
20156 # Transform the output of nm in a C name address pair when lib prefix is needed.
20157 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20158
20159 # Specify filename containing input files for \$NM.
20160 nm_file_list_spec=$lt_nm_file_list_spec
20161
20162 # The root where to search for dependent libraries,and in which our libraries should be installed.
20163 lt_sysroot=$lt_sysroot
20164
20165 # The name of the directory that contains temporary libtool files.
20166 objdir=$objdir
20167
20168 # Used to examine libraries when file_magic_cmd begins with "file".
20169 MAGIC_CMD=$MAGIC_CMD
20170
20171 # Must we lock files when doing compilation?
20172 need_locks=$lt_need_locks
20173
20174 # Manifest tool.
20175 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20176
20177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20178 DSYMUTIL=$lt_DSYMUTIL
20179
20180 # Tool to change global to local symbols on Mac OS X.
20181 NMEDIT=$lt_NMEDIT
20182
20183 # Tool to manipulate fat objects and archives on Mac OS X.
20184 LIPO=$lt_LIPO
20185
20186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20187 OTOOL=$lt_OTOOL
20188
20189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20190 OTOOL64=$lt_OTOOL64
20191
20192 # Old archive suffix (normally "a").
20193 libext=$libext
20194
20195 # Shared library suffix (normally ".so").
20196 shrext_cmds=$lt_shrext_cmds
20197
20198 # The commands to extract the exported symbol list from a shared archive.
20199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20200
20201 # Variables whose values should be saved in libtool wrapper scripts and
20202 # restored at link time.
20203 variables_saved_for_relink=$lt_variables_saved_for_relink
20204
20205 # Do we need the "lib" prefix for modules?
20206 need_lib_prefix=$need_lib_prefix
20207
20208 # Do we need a version for libraries?
20209 need_version=$need_version
20210
20211 # Library versioning type.
20212 version_type=$version_type
20213
20214 # Shared library runtime path variable.
20215 runpath_var=$runpath_var
20216
20217 # Shared library path variable.
20218 shlibpath_var=$shlibpath_var
20219
20220 # Is shlibpath searched before the hard-coded library search path?
20221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20222
20223 # Format of library name prefix.
20224 libname_spec=$lt_libname_spec
20225
20226 # List of archive names. First name is the real one, the rest are links.
20227 # The last name is the one that the linker finds with -lNAME
20228 library_names_spec=$lt_library_names_spec
20229
20230 # The coded name of the library, if different from the real name.
20231 soname_spec=$lt_soname_spec
20232
20233 # Permission mode override for installation of shared libraries.
20234 install_override_mode=$lt_install_override_mode
20235
20236 # Command to use after installation of a shared archive.
20237 postinstall_cmds=$lt_postinstall_cmds
20238
20239 # Command to use after uninstallation of a shared archive.
20240 postuninstall_cmds=$lt_postuninstall_cmds
20241
20242 # Commands used to finish a libtool library installation in a directory.
20243 finish_cmds=$lt_finish_cmds
20244
20245 # As "finish_cmds", except a single script fragment to be evaled but
20246 # not shown.
20247 finish_eval=$lt_finish_eval
20248
20249 # Whether we should hardcode library paths into libraries.
20250 hardcode_into_libs=$hardcode_into_libs
20251
20252 # Compile-time system search path for libraries.
20253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20254
20255 # Run-time system search path for libraries.
20256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20257
20258 # Whether dlopen is supported.
20259 dlopen_support=$enable_dlopen
20260
20261 # Whether dlopen of programs is supported.
20262 dlopen_self=$enable_dlopen_self
20263
20264 # Whether dlopen of statically linked programs is supported.
20265 dlopen_self_static=$enable_dlopen_self_static
20266
20267 # Commands to strip libraries.
20268 old_striplib=$lt_old_striplib
20269 striplib=$lt_striplib
20270
20271
20272 # The linker used to build libraries.
20273 LD=$lt_LD
20274
20275 # How to create reloadable object files.
20276 reload_flag=$lt_reload_flag
20277 reload_cmds=$lt_reload_cmds
20278
20279 # Commands used to build an old-style archive.
20280 old_archive_cmds=$lt_old_archive_cmds
20281
20282 # A language specific compiler.
20283 CC=$lt_compiler
20284
20285 # Is the compiler the GNU compiler?
20286 with_gcc=$GCC
20287
20288 # Compiler flag to turn off builtin functions.
20289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20290
20291 # Additional compiler flags for building library objects.
20292 pic_flag=$lt_lt_prog_compiler_pic
20293
20294 # How to pass a linker flag through the compiler.
20295 wl=$lt_lt_prog_compiler_wl
20296
20297 # Compiler flag to prevent dynamic linking.
20298 link_static_flag=$lt_lt_prog_compiler_static
20299
20300 # Does compiler simultaneously support -c and -o options?
20301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20302
20303 # Whether or not to add -lc for building shared libraries.
20304 build_libtool_need_lc=$archive_cmds_need_lc
20305
20306 # Whether or not to disallow shared libs when runtime libs are static.
20307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20308
20309 # Compiler flag to allow reflexive dlopens.
20310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20311
20312 # Compiler flag to generate shared objects directly from archives.
20313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20314
20315 # Whether the compiler copes with passing no objects directly.
20316 compiler_needs_object=$lt_compiler_needs_object
20317
20318 # Create an old-style archive from a shared archive.
20319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20320
20321 # Create a temporary old-style archive to link instead of a shared archive.
20322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20323
20324 # Commands used to build a shared archive.
20325 archive_cmds=$lt_archive_cmds
20326 archive_expsym_cmds=$lt_archive_expsym_cmds
20327
20328 # Commands used to build a loadable module if different from building
20329 # a shared archive.
20330 module_cmds=$lt_module_cmds
20331 module_expsym_cmds=$lt_module_expsym_cmds
20332
20333 # Whether we are building with GNU ld or not.
20334 with_gnu_ld=$lt_with_gnu_ld
20335
20336 # Flag that allows shared libraries with undefined symbols to be built.
20337 allow_undefined_flag=$lt_allow_undefined_flag
20338
20339 # Flag that enforces no undefined symbols.
20340 no_undefined_flag=$lt_no_undefined_flag
20341
20342 # Flag to hardcode \$libdir into a binary during linking.
20343 # This must work even if \$libdir does not exist
20344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20345
20346 # Whether we need a single "-rpath" flag with a separated argument.
20347 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20348
20349 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20350 # DIR into the resulting binary.
20351 hardcode_direct=$hardcode_direct
20352
20353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20354 # DIR into the resulting binary and the resulting library dependency is
20355 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20356 # library is relocated.
20357 hardcode_direct_absolute=$hardcode_direct_absolute
20358
20359 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20360 # into the resulting binary.
20361 hardcode_minus_L=$hardcode_minus_L
20362
20363 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20364 # into the resulting binary.
20365 hardcode_shlibpath_var=$hardcode_shlibpath_var
20366
20367 # Set to "yes" if building a shared library automatically hardcodes DIR
20368 # into the library and all subsequent libraries and executables linked
20369 # against it.
20370 hardcode_automatic=$hardcode_automatic
20371
20372 # Set to yes if linker adds runtime paths of dependent libraries
20373 # to runtime path list.
20374 inherit_rpath=$inherit_rpath
20375
20376 # Whether libtool must link a program against all its dependency libraries.
20377 link_all_deplibs=$link_all_deplibs
20378
20379 # Set to "yes" if exported symbols are required.
20380 always_export_symbols=$always_export_symbols
20381
20382 # The commands to list exported symbols.
20383 export_symbols_cmds=$lt_export_symbols_cmds
20384
20385 # Symbols that should not be listed in the preloaded symbols.
20386 exclude_expsyms=$lt_exclude_expsyms
20387
20388 # Symbols that must always be exported.
20389 include_expsyms=$lt_include_expsyms
20390
20391 # Commands necessary for linking programs (against libraries) with templates.
20392 prelink_cmds=$lt_prelink_cmds
20393
20394 # Commands necessary for finishing linking programs.
20395 postlink_cmds=$lt_postlink_cmds
20396
20397 # Specify filename containing input files.
20398 file_list_spec=$lt_file_list_spec
20399
20400 # How to hardcode a shared library path into an executable.
20401 hardcode_action=$hardcode_action
20402
20403 # ### END LIBTOOL CONFIG
20404
20405 _LT_EOF
20406
20407 case $host_os in
20408 aix3*)
20409 cat <<\_LT_EOF >> "$cfgfile"
20410 # AIX sometimes has problems with the GCC collect2 program. For some
20411 # reason, if we set the COLLECT_NAMES environment variable, the problems
20412 # vanish in a puff of smoke.
20413 if test "X${COLLECT_NAMES+set}" != Xset; then
20414 COLLECT_NAMES=
20415 export COLLECT_NAMES
20416 fi
20417 _LT_EOF
20418 ;;
20419 esac
20420
20421
20422 ltmain="$ac_aux_dir/ltmain.sh"
20423
20424
20425 # We use sed instead of cat because bash on DJGPP gets confused if
20426 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20427 # text mode, it properly converts lines to CR/LF. This bash problem
20428 # is reportedly fixed, but why not run on old versions too?
20429 sed '$q' "$ltmain" >> "$cfgfile" \
20430 || (rm -f "$cfgfile"; exit 1)
20431
20432 if test x"$xsi_shell" = xyes; then
20433 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20434 func_dirname ()\
20435 {\
20436 \ case ${1} in\
20437 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20438 \ * ) func_dirname_result="${3}" ;;\
20439 \ esac\
20440 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20441 && mv -f "$cfgfile.tmp" "$cfgfile" \
20442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20443 test 0 -eq $? || _lt_function_replace_fail=:
20444
20445
20446 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20447 func_basename ()\
20448 {\
20449 \ func_basename_result="${1##*/}"\
20450 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20451 && mv -f "$cfgfile.tmp" "$cfgfile" \
20452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20453 test 0 -eq $? || _lt_function_replace_fail=:
20454
20455
20456 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20457 func_dirname_and_basename ()\
20458 {\
20459 \ case ${1} in\
20460 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20461 \ * ) func_dirname_result="${3}" ;;\
20462 \ esac\
20463 \ func_basename_result="${1##*/}"\
20464 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20465 && mv -f "$cfgfile.tmp" "$cfgfile" \
20466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20467 test 0 -eq $? || _lt_function_replace_fail=:
20468
20469
20470 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20471 func_stripname ()\
20472 {\
20473 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20474 \ # positional parameters, so assign one to ordinary parameter first.\
20475 \ func_stripname_result=${3}\
20476 \ func_stripname_result=${func_stripname_result#"${1}"}\
20477 \ func_stripname_result=${func_stripname_result%"${2}"}\
20478 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20479 && mv -f "$cfgfile.tmp" "$cfgfile" \
20480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20481 test 0 -eq $? || _lt_function_replace_fail=:
20482
20483
20484 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20485 func_split_long_opt ()\
20486 {\
20487 \ func_split_long_opt_name=${1%%=*}\
20488 \ func_split_long_opt_arg=${1#*=}\
20489 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20490 && mv -f "$cfgfile.tmp" "$cfgfile" \
20491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20492 test 0 -eq $? || _lt_function_replace_fail=:
20493
20494
20495 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20496 func_split_short_opt ()\
20497 {\
20498 \ func_split_short_opt_arg=${1#??}\
20499 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20500 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20501 && mv -f "$cfgfile.tmp" "$cfgfile" \
20502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20503 test 0 -eq $? || _lt_function_replace_fail=:
20504
20505
20506 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20507 func_lo2o ()\
20508 {\
20509 \ case ${1} in\
20510 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20511 \ *) func_lo2o_result=${1} ;;\
20512 \ esac\
20513 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20514 && mv -f "$cfgfile.tmp" "$cfgfile" \
20515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20516 test 0 -eq $? || _lt_function_replace_fail=:
20517
20518
20519 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20520 func_xform ()\
20521 {\
20522 func_xform_result=${1%.*}.lo\
20523 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20524 && mv -f "$cfgfile.tmp" "$cfgfile" \
20525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20526 test 0 -eq $? || _lt_function_replace_fail=:
20527
20528
20529 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20530 func_arith ()\
20531 {\
20532 func_arith_result=$(( $* ))\
20533 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20534 && mv -f "$cfgfile.tmp" "$cfgfile" \
20535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20536 test 0 -eq $? || _lt_function_replace_fail=:
20537
20538
20539 sed -e '/^func_len ()$/,/^} # func_len /c\
20540 func_len ()\
20541 {\
20542 func_len_result=${#1}\
20543 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20544 && mv -f "$cfgfile.tmp" "$cfgfile" \
20545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20546 test 0 -eq $? || _lt_function_replace_fail=:
20547
20548 fi
20549
20550 if test x"$lt_shell_append" = xyes; then
20551 sed -e '/^func_append ()$/,/^} # func_append /c\
20552 func_append ()\
20553 {\
20554 eval "${1}+=\\${2}"\
20555 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20556 && mv -f "$cfgfile.tmp" "$cfgfile" \
20557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20558 test 0 -eq $? || _lt_function_replace_fail=:
20559
20560
20561 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20562 func_append_quoted ()\
20563 {\
20564 \ func_quote_for_eval "${2}"\
20565 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20566 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20567 && mv -f "$cfgfile.tmp" "$cfgfile" \
20568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20569 test 0 -eq $? || _lt_function_replace_fail=:
20570
20571
20572 # Save a `func_append' function call where possible by direct use of '+='
20573 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20574 && mv -f "$cfgfile.tmp" "$cfgfile" \
20575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20576 test 0 -eq $? || _lt_function_replace_fail=:
20577 else
20578 # Save a `func_append' function call even when '+=' is not available
20579 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20580 && mv -f "$cfgfile.tmp" "$cfgfile" \
20581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20582 test 0 -eq $? || _lt_function_replace_fail=:
20583 fi
20584
20585 if test x"$_lt_function_replace_fail" = x":"; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20587 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20588 fi
20589
20590
20591 mv -f "$cfgfile" "$ofile" ||
20592 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20593 chmod +x "$ofile"
20594
20595 ;;
20596
20597 esac
20598 done # for ac_tag
20599
20600
20601 as_fn_exit 0
20602 _ACEOF
20603 ac_clean_files=$ac_clean_files_save
20604
20605 test $ac_write_fail = 0 ||
20606 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20607
20608
20609 # configure is writing to config.log, and then calls config.status.
20610 # config.status does its own redirection, appending to config.log.
20611 # Unfortunately, on DOS this fails, as config.log is still kept open
20612 # by configure, so config.status won't be able to write to it; its
20613 # output is simply discarded. So we exec the FD to /dev/null,
20614 # effectively closing config.log, so it can be properly (re)opened and
20615 # appended to by config.status. When coming back to configure, we
20616 # need to make the FD available again.
20617 if test "$no_create" != yes; then
20618 ac_cs_success=:
20619 ac_config_status_args=
20620 test "$silent" = yes &&
20621 ac_config_status_args="$ac_config_status_args --quiet"
20622 exec 5>/dev/null
20623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20624 exec 5>>config.log
20625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20626 # would make configure fail if this is the last instruction.
20627 $ac_cs_success || as_fn_exit 1
20628 fi
20629 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20631 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20632 fi
20633
20634