Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-fbdev 0.5.0.
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 [email protected] 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-fbdev'
593 PACKAGE_TARNAME='xf86-video-fbdev'
594 PACKAGE_VERSION='0.5.0'
595 PACKAGE_STRING='xf86-video-fbdev 0.5.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DRIVER_NAME
641 moduledir
642 PCIACCESS_LIBS
643 PCIACCESS_CFLAGS
644 PCIACCESS_FALSE
645 PCIACCESS_TRUE
646 XORG_LIBS
647 XORG_CFLAGS
648 LT_SYS_LIBRARY_PATH
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 LIBTOOL
667 MAN_SUBSTS
668 XORG_MAN_PAGE
669 ADMIN_MAN_DIR
670 DRIVER_MAN_DIR
671 MISC_MAN_DIR
672 FILE_MAN_DIR
673 LIB_MAN_DIR
674 APP_MAN_DIR
675 ADMIN_MAN_SUFFIX
676 DRIVER_MAN_SUFFIX
677 MISC_MAN_SUFFIX
678 FILE_MAN_SUFFIX
679 LIB_MAN_SUFFIX
680 APP_MAN_SUFFIX
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 EGREP
699 GREP
700 CPP
701 am__fastdepCC_FALSE
702 am__fastdepCC_TRUE
703 CCDEPMODE
704 am__nodep
705 AMDEPBACKSLASH
706 AMDEP_FALSE
707 AMDEP_TRUE
708 am__quote
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_dependency_tracking
788 enable_selective_werror
789 enable_strict_compilation
790 enable_static
791 enable_shared
792 with_pic
793 enable_fast_install
794 with_aix_soname
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 with_xorg_module_dir
799 enable_pciaccess
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 PKG_CONFIG
811 PKG_CONFIG_PATH
812 PKG_CONFIG_LIBDIR
813 LT_SYS_LIBRARY_PATH
814 XORG_CFLAGS
815 XORG_LIBS
816 PCIACCESS_CFLAGS
817 PCIACCESS_LIBS'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *=) ac_optarg= ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1202
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205 ;;
1206
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1216
1217 *)
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 ;;
1224
1225 esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1246 do
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures xf86-video-fbdev 0.5.0 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root
1407 [DATAROOTDIR/doc/xf86-video-fbdev]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of xf86-video-fbdev 0.5.0:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --disable-selective-werror
1444 Turn off selective compiler errors. (default:
1445 enabled)
1446 --enable-strict-compilation
1447 Enable all warnings from compiler and make them
1448 errors (default: disabled)
1449 --enable-static[=PKGS] build static libraries [default=no]
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-pciaccess Enable use of libpciaccess (default: disabled)
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-aix-soname=aix|svr4|both
1462 shared library versioning (aka "SONAME") variant to
1463 provide on AIX, [default=aix].
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1466 compiler's sysroot if not specified).
1467 --with-xorg-module-dir=DIR
1468 Default xorg module directory
1469 [[default=$libdir/xorg/modules]]
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 PKG_CONFIG path to pkg-config utility
1481 PKG_CONFIG_PATH
1482 directories to add to pkg-config's search path
1483 PKG_CONFIG_LIBDIR
1484 path overriding pkg-config's built-in search path
1485 LT_SYS_LIBRARY_PATH
1486 User-defined run-time library search path.
1487 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1488 XORG_LIBS linker flags for XORG, overriding pkg-config
1489 PCIACCESS_CFLAGS
1490 C compiler flags for PCIACCESS, overriding pkg-config
1491 PCIACCESS_LIBS
1492 linker flags for PCIACCESS, overriding pkg-config
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 xf86-video-fbdev configure 0.5.0
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1613 # ---------------------------------------------
1614 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1615 # accordingly.
1616 ac_fn_c_check_decl ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 as_decl_name=`echo $2|sed 's/ *(.*//'`
1620 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1622 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1628 $4
1629 int
1630 main ()
1631 {
1632 #ifndef $as_decl_name
1633 #ifdef __cplusplus
1634 (void) $as_decl_use;
1635 #else
1636 (void) $as_decl_name;
1637 #endif
1638 #endif
1639
1640 ;
1641 return 0;
1642 }
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_decl
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } > conftest.i && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1883
1884 It was created by xf86-video-fbdev $as_me 0.5.0, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1886
1887 $ $0 $@
1888
1889 _ACEOF
1890 exec 5>>config.log
1891 {
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1896
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913
1914 _ASUNAME
1915
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948 for ac_arg
1949 do
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 2)
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1973 ;;
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1976 fi
1977 as_fn_append ac_configure_args " '$ac_arg'"
1978 ;;
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1992 {
1993 echo
1994
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065 echo
2066 cat confdefs.h
2067 echo
2068 fi
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 $as_echo "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2124 esac
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file" \
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213 done
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233 ac_config_headers="$ac_config_headers config.h"
2234
2235 ac_aux_dir=
2236 for ac_dir in . "$srcdir"/.; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2249 fi
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2253 fi
2254
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2262
2263
2264
2265 # Initialize Automake
2266 am__api_version='1.15'
2267
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2299 *)
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2309 :
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2313 :
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2326 fi
2327 fi
2328 fi
2329 done
2330 done
2331 ;;
2332 esac
2333
2334 done
2335 IFS=$as_save_IFS
2336
2337 rm -rf conftest.one conftest.two conftest.dir
2338
2339 fi
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2348 fi
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2352
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Reject unsafe characters in $srcdir or the absolute working directory
2364 # name. Accept space and tab only in the latter.
2365 am_lf='
2366 '
2367 case `pwd` in
2368 *[\\\"\#\$\&\'\`$am_lf]*)
2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370 esac
2371 case $srcdir in
2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374 esac
2375
2376 # Do 'set' in a subshell so we don't clobber the current shell's
2377 # arguments. Must try -L first in case configure is actually a
2378 # symlink; some systems play weird games with the mod time of symlinks
2379 # (eg FreeBSD returns the mod time of the symlink's containing
2380 # directory).
2381 if (
2382 am_has_slept=no
2383 for am_try in 1 2; do
2384 echo "timestamp, slept: $am_has_slept" > conftest.file
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2389 fi
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2399 fi
2400 if test "$2" = conftest.file || test $am_try -eq 2; then
2401 break
2402 fi
2403 # Just in case.
2404 sleep 1
2405 am_has_slept=yes
2406 done
2407 test "$2" = conftest.file
2408 )
2409 then
2410 # Ok.
2411 :
2412 else
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 # If we didn't sleep, we still need to ensure time stamps of config.status and
2419 # generated files are strictly newer.
2420 am_sleep_pid=
2421 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422 ( sleep 1 ) &
2423 am_sleep_pid=$!
2424 fi
2425
2426 rm -f conftest.file
2427
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438 # Expand $ac_aux_dir to an absolute path.
2439 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2440
2441 if test x"${MISSING+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445 *)
2446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 esac
2448 fi
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --is-lightweight"; then
2451 am_missing_run="$MISSING "
2452 else
2453 am_missing_run=
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2456 fi
2457
2458 if test x"${install_sh+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462 *)
2463 install_sh="\${SHELL} $am_aux_dir/install-sh"
2464 esac
2465 fi
2466
2467 # Installed binaries are usually stripped using 'strip' when the user
2468 # run "make install-strip". However 'strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the 'STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2559 fi
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570 if ${ac_cv_path_mkdir+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_prog in mkdir gmkdir; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582 'mkdir (GNU coreutils) '* | \
2583 'mkdir (coreutils) '* | \
2584 'mkdir (fileutils) '4.1*)
2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 break 3;;
2587 esac
2588 done
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594
2595 test -d ./--version && rmdir ./--version
2596 if test "${ac_cv_path_mkdir+set}" = set; then
2597 MKDIR_P="$ac_cv_path_mkdir -p"
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for MKDIR_P within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 MKDIR_P="$ac_install_sh -d"
2604 fi
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 test -n "$AWK" && break
2649 done
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 *)
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2671 fi
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2680 fi
2681
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2688 fi
2689 rmdir .tst 2>/dev/null
2690
2691 # Check whether --enable-silent-rules was given.
2692 if test "${enable_silent_rules+set}" = set; then :
2693 enableval=$enable_silent_rules;
2694 fi
2695
2696 case $enable_silent_rules in # (((
2697 yes) AM_DEFAULT_VERBOSITY=0;;
2698 no) AM_DEFAULT_VERBOSITY=1;;
2699 *) AM_DEFAULT_VERBOSITY=1;;
2700 esac
2701 am_make=${MAKE-make}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704 if ${am_cv_make_support_nested_variables+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if $as_echo 'TRUE=$(BAR$(V))
2708 BAR0=false
2709 BAR1=true
2710 V=1
2711 am__doit:
2712 @$(TRUE)
2713 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714 am_cv_make_support_nested_variables=yes
2715 else
2716 am_cv_make_support_nested_variables=no
2717 fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2721 if test $am_cv_make_support_nested_variables = yes; then
2722 AM_V='$(V)'
2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724 else
2725 AM_V=$AM_DEFAULT_VERBOSITY
2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2727 fi
2728 AM_BACKSLASH='\'
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737 fi
2738 fi
2739
2740 # test whether we have cygpath
2741 if test -z "$CYGPATH_W"; then
2742 if (cygpath --version) >/dev/null 2>/dev/null; then
2743 CYGPATH_W='cygpath -w'
2744 else
2745 CYGPATH_W=echo
2746 fi
2747 fi
2748
2749
2750 # Define the identity of the package.
2751 PACKAGE='xf86-video-fbdev'
2752 VERSION='0.5.0'
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE "$PACKAGE"
2757 _ACEOF
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define VERSION "$VERSION"
2762 _ACEOF
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # For better backward compatibility. To be removed once Automake 1.9.x
2781 # dies out for good. For more background, see:
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784 mkdir_p='$(MKDIR_P)'
2785
2786 # We need awk for the "check" target (and possibly the TAP driver). The
2787 # system "awk" is bad on some platforms.
2788 # Always define AMTAR for backward compatibility. Yes, it's still used
2789 # in the wild :-( We should find a proper way to deprecate it ...
2790 AMTAR='$${TAR-tar}'
2791
2792
2793 # We'll loop over all known methods to create a tar archive until one works.
2794 _am_tools='gnutar pax cpio none'
2795
2796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803 # POSIX will say in a future version that running "rm -f" with no argument
2804 # is OK; and we want to be able to make that assumption in our Makefile
2805 # recipes. So use an aggressive probe to check that the usage we want is
2806 # actually supported "in the wild" to an acceptable degree.
2807 # See automake bug#10828.
2808 # To make any issue more visible, cause the running configure to be aborted
2809 # by default if the 'rm' program in use doesn't match our expectations; the
2810 # user can still override this though.
2811 if rm -f && rm -fr && rm -rf; then : OK; else
2812 cat >&2 <<'END'
2813 Oops!
2814
2815 Your 'rm' program seems unable to run without file operands specified
2816 on the command line, even when the '-f' option is present. This is contrary
2817 to the behaviour of most rm programs out there, and not conforming with
2818 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820 Please tell [email protected] about your system, including the value
2821 of your $PATH and any error possibly output before this message. This
2822 can help us improve future automake versions.
2823
2824 END
2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826 echo 'Configuration will proceed anyway, since you have set the' >&2
2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828 echo >&2
2829 else
2830 cat >&2 <<'END'
2831 Aborting the configuration process, to ensure you take notice of the issue.
2832
2833 You can download and install GNU coreutils to get an 'rm' implementation
2834 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836 If you want to complete the configuration process using your problematic
2837 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838 to "yes", and re-run configure.
2839
2840 END
2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842 fi
2843 fi
2844
2845
2846 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858 DEPDIR="${am__leading_dot}deps"
2859
2860 ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863 am_make=${MAKE-make}
2864 cat > confinc << 'END'
2865 am__doit:
2866 @echo this is the am__doit target
2867 .PHONY: am__doit
2868 END
2869 # If we don't find an include directive, just comment out the code.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2872 am__include="#"
2873 am__quote=
2874 _am_result=none
2875 # First try GNU make style include.
2876 echo "include confinc" > confmf
2877 # Ignore all kinds of additional output from 'make'.
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=include
2881 am__quote=
2882 _am_result=GNU
2883 ;;
2884 esac
2885 # Now try BSD make style include.
2886 if test "$am__include" = "#"; then
2887 echo '.include "confinc"' > confmf
2888 case `$am_make -s -f confmf 2> /dev/null` in #(
2889 *the\ am__doit\ target*)
2890 am__include=.include
2891 am__quote="\""
2892 _am_result=BSD
2893 ;;
2894 esac
2895 fi
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899 $as_echo "$_am_result" >&6; }
2900 rm -f confinc confmf
2901
2902 # Check whether --enable-dependency-tracking was given.
2903 if test "${enable_dependency_tracking+set}" = set; then :
2904 enableval=$enable_dependency_tracking;
2905 fi
2906
2907 if test "x$enable_dependency_tracking" != xno; then
2908 am_depcomp="$ac_aux_dir/depcomp"
2909 AMDEPBACKSLASH='\'
2910 am__nodep='_no'
2911 fi
2912 if test "x$enable_dependency_tracking" != xno; then
2913 AMDEP_TRUE=
2914 AMDEP_FALSE='#'
2915 else
2916 AMDEP_TRUE='#'
2917 AMDEP_FALSE=
2918 fi
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966 ac_ct_CC=$CC
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 else
3015 CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 fi
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3080 continue
3081 fi
3082 ac_cv_prog_CC="cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3093 shift
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3098 shift
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$CC" && break
3157 done
3158 fi
3159 if test -z "$CC"; then
3160 ac_ct_CC=$CC
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$ac_ct_CC" && break
3201 done
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 ac_status=$?
3238 if test -s conftest.err; then
3239 sed '10a\
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3243 fi
3244 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300 test -f "$ac_file" || continue
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303 ;;
3304 [ab].out )
3305 # We found the default executable, but exeext='' is most
3306 # certainly right.
3307 break;;
3308 *.* )
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 then :; else
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 fi
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3317 # actually working.
3318 break;;
3319 * )
3320 break;;
3321 esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326 ac_file=''
3327 fi
3328 if test -z "$ac_file"; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 break;;
3373 * ) break;;
3374 esac
3375 done
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391 #include <stdio.h>
3392 int
3393 main ()
3394 {
3395 FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408 { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 if { ac_try='./conftest$ac_cv_exeext'
3420 { { case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_try") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; }; then
3430 cross_compiling=no
3431 else
3432 if test "$cross_compiling" = maybe; then
3433 cross_compiling=yes
3434 else
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3445
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compile") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 break;;
3482 esac
3483 done
3484 else
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3498 ac_objext=$OBJEXT
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_compiler_gnu=yes
3520 else
3521 ac_compiler_gnu=no
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3530 GCC=yes
3531 else
3532 GCC=
3533 fi
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_save_c_werror_flag=$ac_c_werror_flag
3542 ac_c_werror_flag=yes
3543 ac_cv_prog_cc_g=no
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_g=yes
3558 else
3559 CFLAGS=""
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572
3573 else
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O2"
3604 else
3605 CFLAGS="-g"
3606 fi
3607 else
3608 if test "$GCC" = yes; then
3609 CFLAGS="-O2"
3610 else
3611 CFLAGS=
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdarg.h>
3624 #include <stdio.h>
3625 struct stat;
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3632 {
3633 return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689 x)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695 *)
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717 if ${am_cv_prog_cc_c_o+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 # Make sure it works both with $CC and with simple cc.
3732 # Following AC_PROG_CC_C_O, we do the test twice because some
3733 # compilers refuse to overwrite an existing .o file with -o,
3734 # though they will create one.
3735 am_cv_prog_cc_c_o=yes
3736 for am_i in 1 2; do
3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } \
3742 && test -f conftest2.$ac_objext; then
3743 : OK
3744 else
3745 am_cv_prog_cc_c_o=no
3746 break
3747 fi
3748 done
3749 rm -f core conftest*
3750 unset am_i
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3754 if test "$am_cv_prog_cc_c_o" != yes; then
3755 # Losing compiler, so override with the script.
3756 # FIXME: It is wrong to rewrite CC.
3757 # But if we don't then we get into trouble of one sort or another.
3758 # A longer-term fix would be to have automake use am__CC in this case,
3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760 CC="$am_aux_dir/compile $CC"
3761 fi
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named 'D' -- because '-MD' means "put the output
3781 # in D".
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817 # Solaris 10 /bin/sh.
3818 echo '/* dummy */' > sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle '-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs.
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # After this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested.
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok '-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899 if ${ac_cv_prog_cc_c99+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_cv_prog_cc_c99=no
3903 ac_save_CC=$CC
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdarg.h>
3907 #include <stdbool.h>
3908 #include <stdlib.h>
3909 #include <wchar.h>
3910 #include <stdio.h>
3911
3912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3913 #define debug(...) fprintf (stderr, __VA_ARGS__)
3914 #define showlist(...) puts (#__VA_ARGS__)
3915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916 static void
3917 test_varargs_macros (void)
3918 {
3919 int x = 1234;
3920 int y = 5678;
3921 debug ("Flag");
3922 debug ("X = %d\n", x);
3923 showlist (The first, second, and third items.);
3924 report (x>y, "x is %d but y is %d", x, y);
3925 }
3926
3927 // Check long long types.
3928 #define BIG64 18446744073709551615ull
3929 #define BIG32 4294967295ul
3930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931 #if !BIG_OK
3932 your preprocessor is broken;
3933 #endif
3934 #if BIG_OK
3935 #else
3936 your preprocessor is broken;
3937 #endif
3938 static long long int bignum = -9223372036854775807LL;
3939 static unsigned long long int ubignum = BIG64;
3940
3941 struct incomplete_array
3942 {
3943 int datasize;
3944 double data[];
3945 };
3946
3947 struct named_init {
3948 int number;
3949 const wchar_t *name;
3950 double average;
3951 };
3952
3953 typedef const char *ccp;
3954
3955 static inline int
3956 test_restrict (ccp restrict text)
3957 {
3958 // See if C++-style comments work.
3959 // Iterate through items via the restricted pointer.
3960 // Also check for declarations in for loops.
3961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962 continue;
3963 return 0;
3964 }
3965
3966 // Check varargs and va_copy.
3967 static void
3968 test_varargs (const char *format, ...)
3969 {
3970 va_list args;
3971 va_start (args, format);
3972 va_list args_copy;
3973 va_copy (args_copy, args);
3974
3975 const char *str;
3976 int number;
3977 float fnumber;
3978
3979 while (*format)
3980 {
3981 switch (*format++)
3982 {
3983 case 's': // string
3984 str = va_arg (args_copy, const char *);
3985 break;
3986 case 'd': // int
3987 number = va_arg (args_copy, int);
3988 break;
3989 case 'f': // float
3990 fnumber = va_arg (args_copy, double);
3991 break;
3992 default:
3993 break;
3994 }
3995 }
3996 va_end (args_copy);
3997 va_end (args);
3998 }
3999
4000 int
4001 main ()
4002 {
4003
4004 // Check bool.
4005 _Bool success = false;
4006
4007 // Check restrict.
4008 if (test_restrict ("String literal") == 0)
4009 success = true;
4010 char *restrict newvar = "Another string";
4011
4012 // Check varargs.
4013 test_varargs ("s, d' f .", "string", 65, 34.234);
4014 test_varargs_macros ();
4015
4016 // Check flexible array members.
4017 struct incomplete_array *ia =
4018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019 ia->datasize = 10;
4020 for (int i = 0; i < ia->datasize; ++i)
4021 ia->data[i] = i * 1.234;
4022
4023 // Check named initializers.
4024 struct named_init ni = {
4025 .number = 34,
4026 .name = L"Test wide string",
4027 .average = 543.34343,
4028 };
4029
4030 ni.number = 58;
4031
4032 int dynamic_array[ni.number];
4033 dynamic_array[ni.number - 1] = 543;
4034
4035 // work around unused variable warnings
4036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037 || dynamic_array[ni.number - 1] != 543);
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4044 do
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c99=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c99" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c99" in
4058 x)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061 xno)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064 *)
4065 CC="$CC $ac_cv_prog_cc_c99"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c99" != xno; then :
4070
4071 fi
4072
4073
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4081 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4082 # On Suns, sometimes $CPP names a directory.
4083 if test -n "$CPP" && test -d "$CPP"; then
4084 CPP=
4085 fi
4086 if test -z "$CPP"; then
4087 if ${ac_cv_prog_CPP+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 # Double quotes because CPP needs to be expanded
4091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092 do
4093 ac_preproc_ok=false
4094 for ac_c_preproc_warn_flag in '' yes
4095 do
4096 # Use a header file that comes with gcc, so configuring glibc
4097 # with a fresh cross-compiler works.
4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 # <limits.h> exists even on freestanding compilers.
4100 # On the NeXT, cc -E runs the code through the compiler's parser,
4101 # not just through cpp. "Syntax error" is here to catch this case.
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #ifdef __STDC__
4105 # include <limits.h>
4106 #else
4107 # include <assert.h>
4108 #endif
4109 Syntax error
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112
4113 else
4114 # Broken: fails on valid input.
4115 continue
4116 fi
4117 rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4126 # Broken: success on invalid input.
4127 continue
4128 else
4129 # Passes both tests.
4130 ac_preproc_ok=:
4131 break
4132 fi
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135 done
4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137 rm -f conftest.i conftest.err conftest.$ac_ext
4138 if $ac_preproc_ok; then :
4139 break
4140 fi
4141
4142 done
4143 ac_cv_prog_CPP=$CPP
4144
4145 fi
4146 CPP=$ac_cv_prog_CPP
4147 else
4148 ac_cv_prog_CPP=$CPP
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4151 $as_echo "$CPP" >&6; }
4152 ac_preproc_ok=false
4153 for ac_c_preproc_warn_flag in '' yes
4154 do
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168 Syntax error
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171
4172 else
4173 # Broken: fails on valid input.
4174 continue
4175 fi
4176 rm -f conftest.err conftest.i conftest.$ac_ext
4177
4178 # OK, works on sane cases. Now check whether nonexistent headers
4179 # can be detected and how.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <ac_nonexistent.h>
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185 # Broken: success on invalid input.
4186 continue
4187 else
4188 # Passes both tests.
4189 ac_preproc_ok=:
4190 break
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194 done
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.i conftest.err conftest.$ac_ext
4197 if $ac_preproc_ok; then :
4198
4199 else
4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4203 See \`config.log' for more details" "$LINENO" 5; }
4204 fi
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if ${ac_cv_path_GREP+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 as_fn_executable_p "$ac_path_GREP" || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_GREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_GREP"; then
4264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_GREP=$GREP
4268 fi
4269
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272 $as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277 $as_echo_n "checking for egrep... " >&6; }
4278 if ${ac_cv_path_EGREP+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282 then ac_cv_path_EGREP="$GREP -E"
4283 else
4284 if test -z "$EGREP"; then
4285 ac_path_EGREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in egrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295 as_fn_executable_p "$ac_path_EGREP" || continue
4296 # Check for GNU ac_path_EGREP and select it if it is found.
4297 # Check for GNU $ac_path_EGREP
4298 case `"$ac_path_EGREP" --version 2>&1` in
4299 *GNU*)
4300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301 *)
4302 ac_count=0
4303 $as_echo_n 0123456789 >"conftest.in"
4304 while :
4305 do
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'EGREP' >> "conftest.nl"
4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 as_fn_arith $ac_count + 1 && ac_count=$as_val
4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_EGREP="$ac_path_EGREP"
4316 ac_path_EGREP_max=$ac_count
4317 fi
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4323
4324 $ac_path_EGREP_found && break 3
4325 done
4326 done
4327 done
4328 IFS=$as_save_IFS
4329 if test -z "$ac_cv_path_EGREP"; then
4330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 fi
4332 else
4333 ac_cv_path_EGREP=$EGREP
4334 fi
4335
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339 $as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344 $as_echo_n "checking for ANSI C header files... " >&6; }
4345 if ${ac_cv_header_stdc+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdlib.h>
4351 #include <stdarg.h>
4352 #include <string.h>
4353 #include <float.h>
4354
4355 int
4356 main ()
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_header_stdc=yes
4365 else
4366 ac_cv_header_stdc=no
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369
4370 if test $ac_cv_header_stdc = yes; then
4371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <string.h>
4375
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "memchr" >/dev/null 2>&1; then :
4379
4380 else
4381 ac_cv_header_stdc=no
4382 fi
4383 rm -f conftest*
4384
4385 fi
4386
4387 if test $ac_cv_header_stdc = yes; then
4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <stdlib.h>
4392
4393 _ACEOF
4394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395 $EGREP "free" >/dev/null 2>&1; then :
4396
4397 else
4398 ac_cv_header_stdc=no
4399 fi
4400 rm -f conftest*
4401
4402 fi
4403
4404 if test $ac_cv_header_stdc = yes; then
4405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406 if test "$cross_compiling" = yes; then :
4407 :
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ctype.h>
4412 #include <stdlib.h>
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416 #else
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #endif
4423
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425 int
4426 main ()
4427 {
4428 int i;
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4432 return 2;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_c_try_run "$LINENO"; then :
4437
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4442 conftest.$ac_objext conftest.beam conftest.$ac_ext
4443 fi
4444
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448 $as_echo "$ac_cv_header_stdc" >&6; }
4449 if test $ac_cv_header_stdc = yes; then
4450
4451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4452
4453 fi
4454
4455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4457 inttypes.h stdint.h unistd.h
4458 do :
4459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4461 "
4462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4463 cat >>confdefs.h <<_ACEOF
4464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4466
4467 fi
4468
4469 done
4470
4471
4472
4473
4474
4475
4476 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4477 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4478 CLANGCC="yes"
4479 else
4480 CLANGCC="no"
4481 fi
4482
4483 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4484 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4485 INTELCC="yes"
4486 else
4487 INTELCC="no"
4488 fi
4489
4490 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4491 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4492 SUNCC="yes"
4493 else
4494 SUNCC="no"
4495 fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4508 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 case $PKG_CONFIG in
4515 [\\/]* | ?:[\\/]*)
4516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4517 ;;
4518 *)
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 ;;
4535 esac
4536 fi
4537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4538 if test -n "$PKG_CONFIG"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4540 $as_echo "$PKG_CONFIG" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547 fi
4548 if test -z "$ac_cv_path_PKG_CONFIG"; then
4549 ac_pt_PKG_CONFIG=$PKG_CONFIG
4550 # Extract the first word of "pkg-config", so it can be a program name with args.
4551 set dummy pkg-config; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 case $ac_pt_PKG_CONFIG in
4558 [\\/]* | ?:[\\/]*)
4559 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4560 ;;
4561 *)
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 ;;
4578 esac
4579 fi
4580 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4581 if test -n "$ac_pt_PKG_CONFIG"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4583 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589 if test "x$ac_pt_PKG_CONFIG" = x; then
4590 PKG_CONFIG=""
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598 PKG_CONFIG=$ac_pt_PKG_CONFIG
4599 fi
4600 else
4601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4602 fi
4603
4604 fi
4605 if test -n "$PKG_CONFIG"; then
4606 _pkg_min_version=0.9.0
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4608 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4609 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 PKG_CONFIG=""
4616 fi
4617 fi
4618 # Make sure we can run config.sub.
4619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4623 $as_echo_n "checking build system type... " >&6; }
4624 if ${ac_cv_build+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_build_alias=$build_alias
4628 test "x$ac_build_alias" = x &&
4629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4630 test "x$ac_build_alias" = x &&
4631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4637 $as_echo "$ac_cv_build" >&6; }
4638 case $ac_cv_build in
4639 *-*-*) ;;
4640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4641 esac
4642 build=$ac_cv_build
4643 ac_save_IFS=$IFS; IFS='-'
4644 set x $ac_cv_build
4645 shift
4646 build_cpu=$1
4647 build_vendor=$2
4648 shift; shift
4649 # Remember, the first character of IFS is used to create $*,
4650 # except with old shells:
4651 build_os=$*
4652 IFS=$ac_save_IFS
4653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4657 $as_echo_n "checking host system type... " >&6; }
4658 if ${ac_cv_host+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test "x$host_alias" = x; then
4662 ac_cv_host=$ac_cv_build
4663 else
4664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4666 fi
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4670 $as_echo "$ac_cv_host" >&6; }
4671 case $ac_cv_host in
4672 *-*-*) ;;
4673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4674 esac
4675 host=$ac_cv_host
4676 ac_save_IFS=$IFS; IFS='-'
4677 set x $ac_cv_host
4678 shift
4679 host_cpu=$1
4680 host_vendor=$2
4681 shift; shift
4682 # Remember, the first character of IFS is used to create $*,
4683 # except with old shells:
4684 host_os=$*
4685 IFS=$ac_save_IFS
4686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4690 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4691 if ${ac_cv_path_SED+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4695 for ac_i in 1 2 3 4 5 6 7; do
4696 ac_script="$ac_script$as_nl$ac_script"
4697 done
4698 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4699 { ac_script=; unset ac_script;}
4700 if test -z "$SED"; then
4701 ac_path_SED_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in sed gsed; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_SED" || continue
4712 # Check for GNU ac_path_SED and select it if it is found.
4713 # Check for GNU $ac_path_SED
4714 case `"$ac_path_SED" --version 2>&1` in
4715 *GNU*)
4716 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4717 *)
4718 ac_count=0
4719 $as_echo_n 0123456789 >"conftest.in"
4720 while :
4721 do
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo '' >> "conftest.nl"
4726 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_SED_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_SED="$ac_path_SED"
4732 ac_path_SED_max=$ac_count
4733 fi
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4736 done
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 esac
4739
4740 $ac_path_SED_found && break 3
4741 done
4742 done
4743 done
4744 IFS=$as_save_IFS
4745 if test -z "$ac_cv_path_SED"; then
4746 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4747 fi
4748 else
4749 ac_cv_path_SED=$SED
4750 fi
4751
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4754 $as_echo "$ac_cv_path_SED" >&6; }
4755 SED="$ac_cv_path_SED"
4756 rm -f conftest.sed
4757
4758
4759
4760
4761
4762
4763 # Check whether --enable-selective-werror was given.
4764 if test "${enable_selective_werror+set}" = set; then :
4765 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4766 else
4767 SELECTIVE_WERROR=yes
4768 fi
4769
4770
4771
4772
4773
4774 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4775 if test "x$SUNCC" = "xyes"; then
4776 BASE_CFLAGS="-v"
4777 else
4778 BASE_CFLAGS=""
4779 fi
4780
4781 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 xorg_testset_save_CFLAGS="$CFLAGS"
4796
4797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 int i;
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 xorg_cv_cc_flag_unknown_warning_option=yes
4810 else
4811 xorg_cv_cc_flag_unknown_warning_option=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4819 fi
4820
4821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4824 fi
4825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 int i;
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 xorg_cv_cc_flag_unused_command_line_argument=yes
4837 else
4838 xorg_cv_cc_flag_unused_command_line_argument=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4845 CFLAGS="$xorg_testset_save_CFLAGS"
4846 fi
4847
4848 found="no"
4849
4850 if test $found = "no" ; then
4851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4853 fi
4854
4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4857 fi
4858
4859 CFLAGS="$CFLAGS -Wall"
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4862 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4863 cacheid=xorg_cv_cc_flag__Wall
4864 if eval \${$cacheid+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 int i;
4870 int
4871 main ()
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_link "$LINENO"; then :
4879 eval $cacheid=yes
4880 else
4881 eval $cacheid=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext \
4884 conftest$ac_exeext conftest.$ac_ext
4885 fi
4886
4887
4888 CFLAGS="$xorg_testset_save_CFLAGS"
4889
4890 eval supported=\$$cacheid
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4892 $as_echo "$supported" >&6; }
4893 if test "$supported" = "yes" ; then
4894 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4895 found="yes"
4896 fi
4897 fi
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913 xorg_testset_save_CFLAGS="$CFLAGS"
4914
4915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 int i;
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 xorg_cv_cc_flag_unknown_warning_option=yes
4928 else
4929 xorg_cv_cc_flag_unknown_warning_option=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4937 fi
4938
4939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4942 fi
4943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int i;
4952 _ACEOF
4953 if ac_fn_c_try_compile "$LINENO"; then :
4954 xorg_cv_cc_flag_unused_command_line_argument=yes
4955 else
4956 xorg_cv_cc_flag_unused_command_line_argument=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4963 CFLAGS="$xorg_testset_save_CFLAGS"
4964 fi
4965
4966 found="no"
4967
4968 if test $found = "no" ; then
4969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971 fi
4972
4973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4975 fi
4976
4977 CFLAGS="$CFLAGS -Wpointer-arith"
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4980 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4981 cacheid=xorg_cv_cc_flag__Wpointer_arith
4982 if eval \${$cacheid+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 int i;
4988 int
4989 main ()
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_link "$LINENO"; then :
4997 eval $cacheid=yes
4998 else
4999 eval $cacheid=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5003 fi
5004
5005
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008 eval supported=\$$cacheid
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010 $as_echo "$supported" >&6; }
5011 if test "$supported" = "yes" ; then
5012 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5013 found="yes"
5014 fi
5015 fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 xorg_testset_save_CFLAGS="$CFLAGS"
5032
5033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5036 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5037 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 xorg_cv_cc_flag_unknown_warning_option=yes
5046 else
5047 xorg_cv_cc_flag_unknown_warning_option=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5052 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5055 fi
5056
5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5060 fi
5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5063 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5064 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 int i;
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072 xorg_cv_cc_flag_unused_command_line_argument=yes
5073 else
5074 xorg_cv_cc_flag_unused_command_line_argument=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082 fi
5083
5084 found="no"
5085
5086 if test $found = "no" ; then
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093 fi
5094
5095 CFLAGS="$CFLAGS -Wmissing-declarations"
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5098 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5099 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5100 if eval \${$cacheid+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 int i;
5106 int
5107 main ()
5108 {
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_c_try_link "$LINENO"; then :
5115 eval $cacheid=yes
5116 else
5117 eval $cacheid=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5121 fi
5122
5123
5124 CFLAGS="$xorg_testset_save_CFLAGS"
5125
5126 eval supported=\$$cacheid
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5128 $as_echo "$supported" >&6; }
5129 if test "$supported" = "yes" ; then
5130 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5131 found="yes"
5132 fi
5133 fi
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 xorg_cv_cc_flag_unknown_warning_option=yes
5164 else
5165 xorg_cv_cc_flag_unknown_warning_option=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178 fi
5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 xorg_cv_cc_flag_unused_command_line_argument=yes
5191 else
5192 xorg_cv_cc_flag_unused_command_line_argument=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200 fi
5201
5202 found="no"
5203
5204 if test $found = "no" ; then
5205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207 fi
5208
5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211 fi
5212
5213 CFLAGS="$CFLAGS -Wformat=2"
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5216 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5217 cacheid=xorg_cv_cc_flag__Wformat_2
5218 if eval \${$cacheid+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int i;
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 eval $cacheid=yes
5234 else
5235 eval $cacheid=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 fi
5240
5241
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244 eval supported=\$$cacheid
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246 $as_echo "$supported" >&6; }
5247 if test "$supported" = "yes" ; then
5248 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5249 found="yes"
5250 fi
5251 fi
5252
5253 if test $found = "no" ; then
5254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256 fi
5257
5258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260 fi
5261
5262 CFLAGS="$CFLAGS -Wformat"
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5265 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5266 cacheid=xorg_cv_cc_flag__Wformat
5267 if eval \${$cacheid+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 int
5274 main ()
5275 {
5276
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_link "$LINENO"; then :
5282 eval $cacheid=yes
5283 else
5284 eval $cacheid=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 fi
5289
5290
5291 CFLAGS="$xorg_testset_save_CFLAGS"
5292
5293 eval supported=\$$cacheid
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5295 $as_echo "$supported" >&6; }
5296 if test "$supported" = "yes" ; then
5297 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5298 found="yes"
5299 fi
5300 fi
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 xorg_testset_save_CFLAGS="$CFLAGS"
5319
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 xorg_cv_cc_flag_unknown_warning_option=yes
5333 else
5334 xorg_cv_cc_flag_unknown_warning_option=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342 fi
5343
5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5347 fi
5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 int i;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 xorg_cv_cc_flag_unused_command_line_argument=yes
5360 else
5361 xorg_cv_cc_flag_unused_command_line_argument=no
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5368 CFLAGS="$xorg_testset_save_CFLAGS"
5369 fi
5370
5371 found="no"
5372
5373 if test $found = "no" ; then
5374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376 fi
5377
5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5380 fi
5381
5382 CFLAGS="$CFLAGS -Wstrict-prototypes"
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5385 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5386 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5387 if eval \${$cacheid+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 int i;
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_link "$LINENO"; then :
5402 eval $cacheid=yes
5403 else
5404 eval $cacheid=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 fi
5409
5410
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412
5413 eval supported=\$$cacheid
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5415 $as_echo "$supported" >&6; }
5416 if test "$supported" = "yes" ; then
5417 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5418 found="yes"
5419 fi
5420 fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 xorg_testset_save_CFLAGS="$CFLAGS"
5437
5438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 int i;
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 xorg_cv_cc_flag_unknown_warning_option=yes
5451 else
5452 xorg_cv_cc_flag_unknown_warning_option=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460 fi
5461
5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465 fi
5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 xorg_cv_cc_flag_unused_command_line_argument=yes
5478 else
5479 xorg_cv_cc_flag_unused_command_line_argument=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5486 CFLAGS="$xorg_testset_save_CFLAGS"
5487 fi
5488
5489 found="no"
5490
5491 if test $found = "no" ; then
5492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494 fi
5495
5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5498 fi
5499
5500 CFLAGS="$CFLAGS -Wmissing-prototypes"
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5503 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5504 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5505 if eval \${$cacheid+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 int i;
5511 int
5512 main ()
5513 {
5514
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"; then :
5520 eval $cacheid=yes
5521 else
5522 eval $cacheid=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5526 fi
5527
5528
5529 CFLAGS="$xorg_testset_save_CFLAGS"
5530
5531 eval supported=\$$cacheid
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5533 $as_echo "$supported" >&6; }
5534 if test "$supported" = "yes" ; then
5535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5536 found="yes"
5537 fi
5538 fi
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 xorg_testset_save_CFLAGS="$CFLAGS"
5555
5556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 xorg_cv_cc_flag_unknown_warning_option=yes
5569 else
5570 xorg_cv_cc_flag_unknown_warning_option=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5578 fi
5579
5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583 fi
5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 int i;
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595 xorg_cv_cc_flag_unused_command_line_argument=yes
5596 else
5597 xorg_cv_cc_flag_unused_command_line_argument=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605 fi
5606
5607 found="no"
5608
5609 if test $found = "no" ; then
5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612 fi
5613
5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5616 fi
5617
5618 CFLAGS="$CFLAGS -Wnested-externs"
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5621 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5622 cacheid=xorg_cv_cc_flag__Wnested_externs
5623 if eval \${$cacheid+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 int i;
5629 int
5630 main ()
5631 {
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 eval $cacheid=yes
5639 else
5640 eval $cacheid=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 fi
5645
5646
5647 CFLAGS="$xorg_testset_save_CFLAGS"
5648
5649 eval supported=\$$cacheid
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5651 $as_echo "$supported" >&6; }
5652 if test "$supported" = "yes" ; then
5653 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5654 found="yes"
5655 fi
5656 fi
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 xorg_testset_save_CFLAGS="$CFLAGS"
5673
5674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 int i;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 xorg_cv_cc_flag_unknown_warning_option=yes
5687 else
5688 xorg_cv_cc_flag_unknown_warning_option=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696 fi
5697
5698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701 fi
5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 int i;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 xorg_cv_cc_flag_unused_command_line_argument=yes
5714 else
5715 xorg_cv_cc_flag_unused_command_line_argument=no
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723 fi
5724
5725 found="no"
5726
5727 if test $found = "no" ; then
5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730 fi
5731
5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5734 fi
5735
5736 CFLAGS="$CFLAGS -Wbad-function-cast"
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5739 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5740 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5741 if eval \${$cacheid+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 eval $cacheid=yes
5757 else
5758 eval $cacheid=no
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762 fi
5763
5764
5765 CFLAGS="$xorg_testset_save_CFLAGS"
5766
5767 eval supported=\$$cacheid
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5769 $as_echo "$supported" >&6; }
5770 if test "$supported" = "yes" ; then
5771 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5772 found="yes"
5773 fi
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 xorg_testset_save_CFLAGS="$CFLAGS"
5791
5792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5795 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5796 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 xorg_cv_cc_flag_unknown_warning_option=yes
5805 else
5806 xorg_cv_cc_flag_unknown_warning_option=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5811 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814 fi
5815
5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5819 fi
5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5822 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5823 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 _ACEOF
5830 if ac_fn_c_try_compile "$LINENO"; then :
5831 xorg_cv_cc_flag_unused_command_line_argument=yes
5832 else
5833 xorg_cv_cc_flag_unused_command_line_argument=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5838 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841 fi
5842
5843 found="no"
5844
5845 if test $found = "no" ; then
5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5848 fi
5849
5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5852 fi
5853
5854 CFLAGS="$CFLAGS -Wold-style-definition"
5855
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5857 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5858 cacheid=xorg_cv_cc_flag__Wold_style_definition
5859 if eval \${$cacheid+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 int i;
5865 int
5866 main ()
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_link "$LINENO"; then :
5874 eval $cacheid=yes
5875 else
5876 eval $cacheid=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880 fi
5881
5882
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884
5885 eval supported=\$$cacheid
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5887 $as_echo "$supported" >&6; }
5888 if test "$supported" = "yes" ; then
5889 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5890 found="yes"
5891 fi
5892 fi
5893
5894 if test $found = "no" ; then
5895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 fi
5898
5899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 fi
5902
5903 CFLAGS="$CFLAGS -fd"
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5906 $as_echo_n "checking if $CC supports -fd... " >&6; }
5907 cacheid=xorg_cv_cc_flag__fd
5908 if eval \${$cacheid+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 int i;
5914 int
5915 main ()
5916 {
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 eval $cacheid=yes
5924 else
5925 eval $cacheid=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929 fi
5930
5931
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933
5934 eval supported=\$$cacheid
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5936 $as_echo "$supported" >&6; }
5937 if test "$supported" = "yes" ; then
5938 BASE_CFLAGS="$BASE_CFLAGS -fd"
5939 found="yes"
5940 fi
5941 fi
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 xorg_testset_save_CFLAGS="$CFLAGS"
5958
5959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 int i;
5969 _ACEOF
5970 if ac_fn_c_try_compile "$LINENO"; then :
5971 xorg_cv_cc_flag_unknown_warning_option=yes
5972 else
5973 xorg_cv_cc_flag_unknown_warning_option=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 fi
5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 int i;
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 xorg_cv_cc_flag_unused_command_line_argument=yes
5999 else
6000 xorg_cv_cc_flag_unused_command_line_argument=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008 fi
6009
6010 found="no"
6011
6012 if test $found = "no" ; then
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015 fi
6016
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 fi
6020
6021 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6024 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6025 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6026 if eval \${$cacheid+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 int i;
6032 int
6033 main ()
6034 {
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 eval $cacheid=yes
6042 else
6043 eval $cacheid=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6047 fi
6048
6049
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051
6052 eval supported=\$$cacheid
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6054 $as_echo "$supported" >&6; }
6055 if test "$supported" = "yes" ; then
6056 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6057 found="yes"
6058 fi
6059 fi
6060
6061
6062
6063
6064
6065 # This chunk adds additional warnings that could catch undesired effects.
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 xorg_testset_save_CFLAGS="$CFLAGS"
6080
6081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 int i;
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 xorg_cv_cc_flag_unknown_warning_option=yes
6094 else
6095 xorg_cv_cc_flag_unknown_warning_option=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6103 fi
6104
6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 fi
6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 int i;
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120 xorg_cv_cc_flag_unused_command_line_argument=yes
6121 else
6122 xorg_cv_cc_flag_unused_command_line_argument=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130 fi
6131
6132 found="no"
6133
6134 if test $found = "no" ; then
6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137 fi
6138
6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141 fi
6142
6143 CFLAGS="$CFLAGS -Wunused"
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6146 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6147 cacheid=xorg_cv_cc_flag__Wunused
6148 if eval \${$cacheid+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 int i;
6154 int
6155 main ()
6156 {
6157
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"; then :
6163 eval $cacheid=yes
6164 else
6165 eval $cacheid=no
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 fi
6170
6171
6172 CFLAGS="$xorg_testset_save_CFLAGS"
6173
6174 eval supported=\$$cacheid
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6176 $as_echo "$supported" >&6; }
6177 if test "$supported" = "yes" ; then
6178 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6179 found="yes"
6180 fi
6181 fi
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 xorg_testset_save_CFLAGS="$CFLAGS"
6198
6199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 xorg_cv_cc_flag_unknown_warning_option=yes
6212 else
6213 xorg_cv_cc_flag_unknown_warning_option=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221 fi
6222
6223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 fi
6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 int i;
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"; then :
6238 xorg_cv_cc_flag_unused_command_line_argument=yes
6239 else
6240 xorg_cv_cc_flag_unused_command_line_argument=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248 fi
6249
6250 found="no"
6251
6252 if test $found = "no" ; then
6253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255 fi
6256
6257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259 fi
6260
6261 CFLAGS="$CFLAGS -Wuninitialized"
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6264 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6265 cacheid=xorg_cv_cc_flag__Wuninitialized
6266 if eval \${$cacheid+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 int i;
6272 int
6273 main ()
6274 {
6275
6276 ;
6277 return 0;
6278 }
6279 _ACEOF
6280 if ac_fn_c_try_link "$LINENO"; then :
6281 eval $cacheid=yes
6282 else
6283 eval $cacheid=no
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 fi
6288
6289
6290 CFLAGS="$xorg_testset_save_CFLAGS"
6291
6292 eval supported=\$$cacheid
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6294 $as_echo "$supported" >&6; }
6295 if test "$supported" = "yes" ; then
6296 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6297 found="yes"
6298 fi
6299 fi
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 int i;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 xorg_cv_cc_flag_unknown_warning_option=yes
6330 else
6331 xorg_cv_cc_flag_unknown_warning_option=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6338 CFLAGS="$xorg_testset_save_CFLAGS"
6339 fi
6340
6341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344 fi
6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 int i;
6354 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356 xorg_cv_cc_flag_unused_command_line_argument=yes
6357 else
6358 xorg_cv_cc_flag_unused_command_line_argument=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366 fi
6367
6368 found="no"
6369
6370 if test $found = "no" ; then
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 fi
6374
6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377 fi
6378
6379 CFLAGS="$CFLAGS -Wshadow"
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6382 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6383 cacheid=xorg_cv_cc_flag__Wshadow
6384 if eval \${$cacheid+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 int i;
6390 int
6391 main ()
6392 {
6393
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 eval $cacheid=yes
6400 else
6401 eval $cacheid=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 fi
6406
6407
6408 CFLAGS="$xorg_testset_save_CFLAGS"
6409
6410 eval supported=\$$cacheid
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6412 $as_echo "$supported" >&6; }
6413 if test "$supported" = "yes" ; then
6414 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6415 found="yes"
6416 fi
6417 fi
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 xorg_testset_save_CFLAGS="$CFLAGS"
6434
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 xorg_cv_cc_flag_unknown_warning_option=yes
6448 else
6449 xorg_cv_cc_flag_unknown_warning_option=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457 fi
6458
6459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 int i;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 xorg_cv_cc_flag_unused_command_line_argument=yes
6475 else
6476 xorg_cv_cc_flag_unused_command_line_argument=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484 fi
6485
6486 found="no"
6487
6488 if test $found = "no" ; then
6489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491 fi
6492
6493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495 fi
6496
6497 CFLAGS="$CFLAGS -Wmissing-noreturn"
6498
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6500 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6501 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6502 if eval \${$cacheid+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_link "$LINENO"; then :
6517 eval $cacheid=yes
6518 else
6519 eval $cacheid=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 fi
6524
6525
6526 CFLAGS="$xorg_testset_save_CFLAGS"
6527
6528 eval supported=\$$cacheid
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6530 $as_echo "$supported" >&6; }
6531 if test "$supported" = "yes" ; then
6532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6533 found="yes"
6534 fi
6535 fi
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 xorg_testset_save_CFLAGS="$CFLAGS"
6552
6553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 int i;
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565 xorg_cv_cc_flag_unknown_warning_option=yes
6566 else
6567 xorg_cv_cc_flag_unknown_warning_option=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575 fi
6576
6577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 fi
6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 int i;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 xorg_cv_cc_flag_unused_command_line_argument=yes
6593 else
6594 xorg_cv_cc_flag_unused_command_line_argument=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602 fi
6603
6604 found="no"
6605
6606 if test $found = "no" ; then
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 fi
6610
6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 fi
6614
6615 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6618 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6619 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6620 if eval \${$cacheid+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 int i;
6626 int
6627 main ()
6628 {
6629
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"; then :
6635 eval $cacheid=yes
6636 else
6637 eval $cacheid=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 fi
6642
6643
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645
6646 eval supported=\$$cacheid
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6648 $as_echo "$supported" >&6; }
6649 if test "$supported" = "yes" ; then
6650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6651 found="yes"
6652 fi
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 xorg_testset_save_CFLAGS="$CFLAGS"
6670
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 xorg_cv_cc_flag_unknown_warning_option=yes
6684 else
6685 xorg_cv_cc_flag_unknown_warning_option=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693 fi
6694
6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 fi
6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 xorg_cv_cc_flag_unused_command_line_argument=yes
6711 else
6712 xorg_cv_cc_flag_unused_command_line_argument=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 found="no"
6723
6724 if test $found = "no" ; then
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731 fi
6732
6733 CFLAGS="$CFLAGS -Wredundant-decls"
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6736 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6737 cacheid=xorg_cv_cc_flag__Wredundant_decls
6738 if eval \${$cacheid+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int i;
6744 int
6745 main ()
6746 {
6747
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 eval $cacheid=yes
6754 else
6755 eval $cacheid=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 fi
6760
6761
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763
6764 eval supported=\$$cacheid
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6766 $as_echo "$supported" >&6; }
6767 if test "$supported" = "yes" ; then
6768 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6769 found="yes"
6770 fi
6771 fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787 xorg_testset_save_CFLAGS="$CFLAGS"
6788
6789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 xorg_cv_cc_flag_unknown_warning_option=yes
6802 else
6803 xorg_cv_cc_flag_unknown_warning_option=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6810 CFLAGS="$xorg_testset_save_CFLAGS"
6811 fi
6812
6813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816 fi
6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 int i;
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 xorg_cv_cc_flag_unused_command_line_argument=yes
6829 else
6830 xorg_cv_cc_flag_unused_command_line_argument=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838 fi
6839
6840 found="no"
6841
6842 if test $found = "no" ; then
6843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845 fi
6846
6847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849 fi
6850
6851 CFLAGS="$CFLAGS -Wlogical-op"
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6854 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6855 cacheid=xorg_cv_cc_flag__Wlogical_op
6856 if eval \${$cacheid+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 int i;
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871 eval $cacheid=yes
6872 else
6873 eval $cacheid=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext conftest.$ac_ext
6877 fi
6878
6879
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881
6882 eval supported=\$$cacheid
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6884 $as_echo "$supported" >&6; }
6885 if test "$supported" = "yes" ; then
6886 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6887 found="yes"
6888 fi
6889 fi
6890
6891
6892
6893 # These are currently disabled because they are noisy. They will be enabled
6894 # in the future once the codebase is sufficiently modernized to silence
6895 # them. For now, I don't want them to drown out the other warnings.
6896 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6897 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6898 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6899
6900 # Turn some warnings into errors, so we don't accidently get successful builds
6901 # when there are problems that should be fixed.
6902
6903 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 xorg_testset_save_CFLAGS="$CFLAGS"
6918
6919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 xorg_cv_cc_flag_unknown_warning_option=yes
6932 else
6933 xorg_cv_cc_flag_unknown_warning_option=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6941 fi
6942
6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 fi
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 xorg_cv_cc_flag_unused_command_line_argument=yes
6959 else
6960 xorg_cv_cc_flag_unused_command_line_argument=no
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6967 CFLAGS="$xorg_testset_save_CFLAGS"
6968 fi
6969
6970 found="no"
6971
6972 if test $found = "no" ; then
6973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975 fi
6976
6977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6979 fi
6980
6981 CFLAGS="$CFLAGS -Werror=implicit"
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6984 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6985 cacheid=xorg_cv_cc_flag__Werror_implicit
6986 if eval \${$cacheid+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 int i;
6992 int
6993 main ()
6994 {
6995
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 if ac_fn_c_try_link "$LINENO"; then :
7001 eval $cacheid=yes
7002 else
7003 eval $cacheid=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007 fi
7008
7009
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011
7012 eval supported=\$$cacheid
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7014 $as_echo "$supported" >&6; }
7015 if test "$supported" = "yes" ; then
7016 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7017 found="yes"
7018 fi
7019 fi
7020
7021 if test $found = "no" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 fi
7029
7030 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7033 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7034 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7035 if eval \${$cacheid+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 int i;
7041 int
7042 main ()
7043 {
7044
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050 eval $cacheid=yes
7051 else
7052 eval $cacheid=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 fi
7057
7058
7059 CFLAGS="$xorg_testset_save_CFLAGS"
7060
7061 eval supported=\$$cacheid
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7063 $as_echo "$supported" >&6; }
7064 if test "$supported" = "yes" ; then
7065 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7066 found="yes"
7067 fi
7068 fi
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 xorg_testset_save_CFLAGS="$CFLAGS"
7085
7086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"; then :
7098 xorg_cv_cc_flag_unknown_warning_option=yes
7099 else
7100 xorg_cv_cc_flag_unknown_warning_option=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7107 CFLAGS="$xorg_testset_save_CFLAGS"
7108 fi
7109
7110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 fi
7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 int i;
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 xorg_cv_cc_flag_unused_command_line_argument=yes
7126 else
7127 xorg_cv_cc_flag_unused_command_line_argument=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135 fi
7136
7137 found="no"
7138
7139 if test $found = "no" ; then
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 fi
7143
7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146 fi
7147
7148 CFLAGS="$CFLAGS -Werror=nonnull"
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7151 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7152 cacheid=xorg_cv_cc_flag__Werror_nonnull
7153 if eval \${$cacheid+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int i;
7159 int
7160 main ()
7161 {
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 eval $cacheid=yes
7169 else
7170 eval $cacheid=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 fi
7175
7176
7177 CFLAGS="$xorg_testset_save_CFLAGS"
7178
7179 eval supported=\$$cacheid
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7181 $as_echo "$supported" >&6; }
7182 if test "$supported" = "yes" ; then
7183 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7184 found="yes"
7185 fi
7186 fi
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 xorg_testset_save_CFLAGS="$CFLAGS"
7203
7204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 int i;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 xorg_cv_cc_flag_unknown_warning_option=yes
7217 else
7218 xorg_cv_cc_flag_unknown_warning_option=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226 fi
7227
7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231 fi
7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 int i;
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 xorg_cv_cc_flag_unused_command_line_argument=yes
7244 else
7245 xorg_cv_cc_flag_unused_command_line_argument=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7253 fi
7254
7255 found="no"
7256
7257 if test $found = "no" ; then
7258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260 fi
7261
7262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264 fi
7265
7266 CFLAGS="$CFLAGS -Werror=init-self"
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7269 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7270 cacheid=xorg_cv_cc_flag__Werror_init_self
7271 if eval \${$cacheid+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 int
7278 main ()
7279 {
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_link "$LINENO"; then :
7286 eval $cacheid=yes
7287 else
7288 eval $cacheid=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 fi
7293
7294
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296
7297 eval supported=\$$cacheid
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299 $as_echo "$supported" >&6; }
7300 if test "$supported" = "yes" ; then
7301 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7302 found="yes"
7303 fi
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 xorg_testset_save_CFLAGS="$CFLAGS"
7321
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 xorg_cv_cc_flag_unknown_warning_option=yes
7335 else
7336 xorg_cv_cc_flag_unknown_warning_option=no
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344 fi
7345
7346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349 fi
7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 int i;
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"; then :
7361 xorg_cv_cc_flag_unused_command_line_argument=yes
7362 else
7363 xorg_cv_cc_flag_unused_command_line_argument=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371 fi
7372
7373 found="no"
7374
7375 if test $found = "no" ; then
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 fi
7379
7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382 fi
7383
7384 CFLAGS="$CFLAGS -Werror=main"
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7387 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7388 cacheid=xorg_cv_cc_flag__Werror_main
7389 if eval \${$cacheid+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 int i;
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 eval $cacheid=yes
7405 else
7406 eval $cacheid=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 fi
7411
7412
7413 CFLAGS="$xorg_testset_save_CFLAGS"
7414
7415 eval supported=\$$cacheid
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7417 $as_echo "$supported" >&6; }
7418 if test "$supported" = "yes" ; then
7419 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7420 found="yes"
7421 fi
7422 fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 xorg_testset_save_CFLAGS="$CFLAGS"
7439
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 xorg_cv_cc_flag_unknown_warning_option=yes
7453 else
7454 xorg_cv_cc_flag_unknown_warning_option=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7462 fi
7463
7464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7467 fi
7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 xorg_cv_cc_flag_unused_command_line_argument=yes
7480 else
7481 xorg_cv_cc_flag_unused_command_line_argument=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489 fi
7490
7491 found="no"
7492
7493 if test $found = "no" ; then
7494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496 fi
7497
7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 fi
7501
7502 CFLAGS="$CFLAGS -Werror=missing-braces"
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7505 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7506 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7507 if eval \${$cacheid+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 int i;
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 eval $cacheid=yes
7523 else
7524 eval $cacheid=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 fi
7529
7530
7531 CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533 eval supported=\$$cacheid
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535 $as_echo "$supported" >&6; }
7536 if test "$supported" = "yes" ; then
7537 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7538 found="yes"
7539 fi
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 int i;
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 xorg_cv_cc_flag_unknown_warning_option=yes
7571 else
7572 xorg_cv_cc_flag_unknown_warning_option=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 fi
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 xorg_cv_cc_flag_unused_command_line_argument=yes
7598 else
7599 xorg_cv_cc_flag_unused_command_line_argument=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607 fi
7608
7609 found="no"
7610
7611 if test $found = "no" ; then
7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 fi
7615
7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 fi
7619
7620 CFLAGS="$CFLAGS -Werror=sequence-point"
7621
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7623 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7624 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7625 if eval \${$cacheid+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 int i;
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 eval $cacheid=yes
7641 else
7642 eval $cacheid=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 fi
7647
7648
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7650
7651 eval supported=\$$cacheid
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7653 $as_echo "$supported" >&6; }
7654 if test "$supported" = "yes" ; then
7655 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7656 found="yes"
7657 fi
7658 fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 xorg_testset_save_CFLAGS="$CFLAGS"
7675
7676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 int i;
7686 _ACEOF
7687 if ac_fn_c_try_compile "$LINENO"; then :
7688 xorg_cv_cc_flag_unknown_warning_option=yes
7689 else
7690 xorg_cv_cc_flag_unknown_warning_option=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698 fi
7699
7700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 fi
7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 int i;
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"; then :
7715 xorg_cv_cc_flag_unused_command_line_argument=yes
7716 else
7717 xorg_cv_cc_flag_unused_command_line_argument=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725 fi
7726
7727 found="no"
7728
7729 if test $found = "no" ; then
7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 fi
7737
7738 CFLAGS="$CFLAGS -Werror=return-type"
7739
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7741 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7742 cacheid=xorg_cv_cc_flag__Werror_return_type
7743 if eval \${$cacheid+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 int i;
7749 int
7750 main ()
7751 {
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 eval $cacheid=yes
7759 else
7760 eval $cacheid=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 fi
7765
7766
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768
7769 eval supported=\$$cacheid
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7771 $as_echo "$supported" >&6; }
7772 if test "$supported" = "yes" ; then
7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7774 found="yes"
7775 fi
7776 fi
7777
7778 if test $found = "no" ; then
7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781 fi
7782
7783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785 fi
7786
7787 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7790 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7791 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7792 if eval \${$cacheid+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 int i;
7798 int
7799 main ()
7800 {
7801
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807 eval $cacheid=yes
7808 else
7809 eval $cacheid=no
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 fi
7814
7815
7816 CFLAGS="$xorg_testset_save_CFLAGS"
7817
7818 eval supported=\$$cacheid
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7820 $as_echo "$supported" >&6; }
7821 if test "$supported" = "yes" ; then
7822 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7823 found="yes"
7824 fi
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841 xorg_testset_save_CFLAGS="$CFLAGS"
7842
7843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 int i;
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 xorg_cv_cc_flag_unknown_warning_option=yes
7856 else
7857 xorg_cv_cc_flag_unknown_warning_option=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7864 CFLAGS="$xorg_testset_save_CFLAGS"
7865 fi
7866
7867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870 fi
7871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 int i;
7880 _ACEOF
7881 if ac_fn_c_try_compile "$LINENO"; then :
7882 xorg_cv_cc_flag_unused_command_line_argument=yes
7883 else
7884 xorg_cv_cc_flag_unused_command_line_argument=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892 fi
7893
7894 found="no"
7895
7896 if test $found = "no" ; then
7897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899 fi
7900
7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903 fi
7904
7905 CFLAGS="$CFLAGS -Werror=trigraphs"
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7908 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7909 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7910 if eval \${$cacheid+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7925 eval $cacheid=yes
7926 else
7927 eval $cacheid=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 fi
7932
7933
7934 CFLAGS="$xorg_testset_save_CFLAGS"
7935
7936 eval supported=\$$cacheid
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7938 $as_echo "$supported" >&6; }
7939 if test "$supported" = "yes" ; then
7940 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7941 found="yes"
7942 fi
7943 fi
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 xorg_testset_save_CFLAGS="$CFLAGS"
7960
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int i;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 xorg_cv_cc_flag_unknown_warning_option=yes
7974 else
7975 xorg_cv_cc_flag_unknown_warning_option=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983 fi
7984
7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 fi
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 int i;
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 xorg_cv_cc_flag_unused_command_line_argument=yes
8001 else
8002 xorg_cv_cc_flag_unused_command_line_argument=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010 fi
8011
8012 found="no"
8013
8014 if test $found = "no" ; then
8015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017 fi
8018
8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021 fi
8022
8023 CFLAGS="$CFLAGS -Werror=array-bounds"
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8026 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8027 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8028 if eval \${$cacheid+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 int
8035 main ()
8036 {
8037
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_link "$LINENO"; then :
8043 eval $cacheid=yes
8044 else
8045 eval $cacheid=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8049 fi
8050
8051
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053
8054 eval supported=\$$cacheid
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056 $as_echo "$supported" >&6; }
8057 if test "$supported" = "yes" ; then
8058 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8059 found="yes"
8060 fi
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 xorg_testset_save_CFLAGS="$CFLAGS"
8078
8079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 int i;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 xorg_cv_cc_flag_unknown_warning_option=yes
8092 else
8093 xorg_cv_cc_flag_unknown_warning_option=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101 fi
8102
8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106 fi
8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 int i;
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 xorg_cv_cc_flag_unused_command_line_argument=yes
8119 else
8120 xorg_cv_cc_flag_unused_command_line_argument=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128 fi
8129
8130 found="no"
8131
8132 if test $found = "no" ; then
8133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135 fi
8136
8137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139 fi
8140
8141 CFLAGS="$CFLAGS -Werror=write-strings"
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8144 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8145 cacheid=xorg_cv_cc_flag__Werror_write_strings
8146 if eval \${$cacheid+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 int i;
8152 int
8153 main ()
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"; then :
8161 eval $cacheid=yes
8162 else
8163 eval $cacheid=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 fi
8168
8169
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171
8172 eval supported=\$$cacheid
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8174 $as_echo "$supported" >&6; }
8175 if test "$supported" = "yes" ; then
8176 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8177 found="yes"
8178 fi
8179 fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 xorg_testset_save_CFLAGS="$CFLAGS"
8196
8197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int i;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 xorg_cv_cc_flag_unknown_warning_option=yes
8210 else
8211 xorg_cv_cc_flag_unknown_warning_option=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219 fi
8220
8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224 fi
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"; then :
8236 xorg_cv_cc_flag_unused_command_line_argument=yes
8237 else
8238 xorg_cv_cc_flag_unused_command_line_argument=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8245 CFLAGS="$xorg_testset_save_CFLAGS"
8246 fi
8247
8248 found="no"
8249
8250 if test $found = "no" ; then
8251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253 fi
8254
8255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257 fi
8258
8259 CFLAGS="$CFLAGS -Werror=address"
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8262 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8263 cacheid=xorg_cv_cc_flag__Werror_address
8264 if eval \${$cacheid+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8269 int i;
8270 int
8271 main ()
8272 {
8273
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 eval $cacheid=yes
8280 else
8281 eval $cacheid=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285 fi
8286
8287
8288 CFLAGS="$xorg_testset_save_CFLAGS"
8289
8290 eval supported=\$$cacheid
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8292 $as_echo "$supported" >&6; }
8293 if test "$supported" = "yes" ; then
8294 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8295 found="yes"
8296 fi
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313 xorg_testset_save_CFLAGS="$CFLAGS"
8314
8315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 int i;
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 xorg_cv_cc_flag_unknown_warning_option=yes
8328 else
8329 xorg_cv_cc_flag_unknown_warning_option=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8337 fi
8338
8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342 fi
8343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 xorg_cv_cc_flag_unused_command_line_argument=yes
8355 else
8356 xorg_cv_cc_flag_unused_command_line_argument=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364 fi
8365
8366 found="no"
8367
8368 if test $found = "no" ; then
8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375 fi
8376
8377 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8378
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8380 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8381 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8382 if eval \${$cacheid+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 int i;
8388 int
8389 main ()
8390 {
8391
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"; then :
8397 eval $cacheid=yes
8398 else
8399 eval $cacheid=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 fi
8404
8405
8406 CFLAGS="$xorg_testset_save_CFLAGS"
8407
8408 eval supported=\$$cacheid
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8410 $as_echo "$supported" >&6; }
8411 if test "$supported" = "yes" ; then
8412 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8413 found="yes"
8414 fi
8415 fi
8416
8417 if test $found = "no" ; then
8418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420 fi
8421
8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8424 fi
8425
8426 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8427
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8429 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8430 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8431 if eval \${$cacheid+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 int i;
8437 int
8438 main ()
8439 {
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_link "$LINENO"; then :
8446 eval $cacheid=yes
8447 else
8448 eval $cacheid=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 fi
8453
8454
8455 CFLAGS="$xorg_testset_save_CFLAGS"
8456
8457 eval supported=\$$cacheid
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8459 $as_echo "$supported" >&6; }
8460 if test "$supported" = "yes" ; then
8461 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8462 found="yes"
8463 fi
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480 xorg_testset_save_CFLAGS="$CFLAGS"
8481
8482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 int i;
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"; then :
8494 xorg_cv_cc_flag_unknown_warning_option=yes
8495 else
8496 xorg_cv_cc_flag_unknown_warning_option=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504 fi
8505
8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 fi
8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 int i;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 xorg_cv_cc_flag_unused_command_line_argument=yes
8522 else
8523 xorg_cv_cc_flag_unused_command_line_argument=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531 fi
8532
8533 found="no"
8534
8535 if test $found = "no" ; then
8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 fi
8539
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8542 fi
8543
8544 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8547 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8548 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8549 if eval \${$cacheid+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 int
8556 main ()
8557 {
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 eval $cacheid=yes
8565 else
8566 eval $cacheid=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 fi
8571
8572
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8574
8575 eval supported=\$$cacheid
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8577 $as_echo "$supported" >&6; }
8578 if test "$supported" = "yes" ; then
8579 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8580 found="yes"
8581 fi
8582 fi
8583
8584 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8585 else
8586 { $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
8587 $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;}
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601 xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else
8617 xorg_cv_cc_flag_unknown_warning_option=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 else
8644 xorg_cv_cc_flag_unused_command_line_argument=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 found="no"
8655
8656 if test $found = "no" ; then
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 fi
8664
8665 CFLAGS="$CFLAGS -Wimplicit"
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8668 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8669 cacheid=xorg_cv_cc_flag__Wimplicit
8670 if eval \${$cacheid+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 int i;
8676 int
8677 main ()
8678 {
8679
8680 ;
8681 return 0;
8682 }
8683 _ACEOF
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 eval $cacheid=yes
8686 else
8687 eval $cacheid=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 fi
8692
8693
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695
8696 eval supported=\$$cacheid
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8698 $as_echo "$supported" >&6; }
8699 if test "$supported" = "yes" ; then
8700 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8701 found="yes"
8702 fi
8703 fi
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 xorg_testset_save_CFLAGS="$CFLAGS"
8720
8721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 int i;
8731 _ACEOF
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 xorg_cv_cc_flag_unknown_warning_option=yes
8734 else
8735 xorg_cv_cc_flag_unknown_warning_option=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748 fi
8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760 xorg_cv_cc_flag_unused_command_line_argument=yes
8761 else
8762 xorg_cv_cc_flag_unused_command_line_argument=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770 fi
8771
8772 found="no"
8773
8774 if test $found = "no" ; then
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 fi
8778
8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781 fi
8782
8783 CFLAGS="$CFLAGS -Wnonnull"
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8786 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8787 cacheid=xorg_cv_cc_flag__Wnonnull
8788 if eval \${$cacheid+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 int i;
8794 int
8795 main ()
8796 {
8797
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 eval $cacheid=yes
8804 else
8805 eval $cacheid=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 fi
8810
8811
8812 CFLAGS="$xorg_testset_save_CFLAGS"
8813
8814 eval supported=\$$cacheid
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8816 $as_echo "$supported" >&6; }
8817 if test "$supported" = "yes" ; then
8818 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8819 found="yes"
8820 fi
8821 fi
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 xorg_testset_save_CFLAGS="$CFLAGS"
8838
8839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 int i;
8849 _ACEOF
8850 if ac_fn_c_try_compile "$LINENO"; then :
8851 xorg_cv_cc_flag_unknown_warning_option=yes
8852 else
8853 xorg_cv_cc_flag_unknown_warning_option=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 fi
8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 xorg_cv_cc_flag_unused_command_line_argument=yes
8879 else
8880 xorg_cv_cc_flag_unused_command_line_argument=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 found="no"
8891
8892 if test $found = "no" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896
8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899 fi
8900
8901 CFLAGS="$CFLAGS -Winit-self"
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8904 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8905 cacheid=xorg_cv_cc_flag__Winit_self
8906 if eval \${$cacheid+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 int
8913 main ()
8914 {
8915
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_link "$LINENO"; then :
8921 eval $cacheid=yes
8922 else
8923 eval $cacheid=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 fi
8928
8929
8930 CFLAGS="$xorg_testset_save_CFLAGS"
8931
8932 eval supported=\$$cacheid
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8934 $as_echo "$supported" >&6; }
8935 if test "$supported" = "yes" ; then
8936 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8937 found="yes"
8938 fi
8939 fi
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 xorg_testset_save_CFLAGS="$CFLAGS"
8956
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 xorg_cv_cc_flag_unknown_warning_option=yes
8970 else
8971 xorg_cv_cc_flag_unknown_warning_option=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979 fi
8980
8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 fi
8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 int i;
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"; then :
8996 xorg_cv_cc_flag_unused_command_line_argument=yes
8997 else
8998 xorg_cv_cc_flag_unused_command_line_argument=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006 fi
9007
9008 found="no"
9009
9010 if test $found = "no" ; then
9011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013 fi
9014
9015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017 fi
9018
9019 CFLAGS="$CFLAGS -Wmain"
9020
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9022 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9023 cacheid=xorg_cv_cc_flag__Wmain
9024 if eval \${$cacheid+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 int i;
9030 int
9031 main ()
9032 {
9033
9034 ;
9035 return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039 eval $cacheid=yes
9040 else
9041 eval $cacheid=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 fi
9046
9047
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050 eval supported=\$$cacheid
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052 $as_echo "$supported" >&6; }
9053 if test "$supported" = "yes" ; then
9054 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9055 found="yes"
9056 fi
9057 fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073 xorg_testset_save_CFLAGS="$CFLAGS"
9074
9075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 int i;
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087 xorg_cv_cc_flag_unknown_warning_option=yes
9088 else
9089 xorg_cv_cc_flag_unknown_warning_option=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097 fi
9098
9099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 fi
9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int i;
9112 _ACEOF
9113 if ac_fn_c_try_compile "$LINENO"; then :
9114 xorg_cv_cc_flag_unused_command_line_argument=yes
9115 else
9116 xorg_cv_cc_flag_unused_command_line_argument=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124 fi
9125
9126 found="no"
9127
9128 if test $found = "no" ; then
9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 fi
9132
9133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135 fi
9136
9137 CFLAGS="$CFLAGS -Wmissing-braces"
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9140 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9141 cacheid=xorg_cv_cc_flag__Wmissing_braces
9142 if eval \${$cacheid+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 int i;
9148 int
9149 main ()
9150 {
9151
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 eval $cacheid=yes
9158 else
9159 eval $cacheid=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 fi
9164
9165
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168 eval supported=\$$cacheid
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170 $as_echo "$supported" >&6; }
9171 if test "$supported" = "yes" ; then
9172 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9173 found="yes"
9174 fi
9175 fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int i;
9203 _ACEOF
9204 if ac_fn_c_try_compile "$LINENO"; then :
9205 xorg_cv_cc_flag_unknown_warning_option=yes
9206 else
9207 xorg_cv_cc_flag_unknown_warning_option=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9214 CFLAGS="$xorg_testset_save_CFLAGS"
9215 fi
9216
9217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 fi
9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 xorg_cv_cc_flag_unused_command_line_argument=yes
9233 else
9234 xorg_cv_cc_flag_unused_command_line_argument=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242 fi
9243
9244 found="no"
9245
9246 if test $found = "no" ; then
9247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249 fi
9250
9251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253 fi
9254
9255 CFLAGS="$CFLAGS -Wsequence-point"
9256
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9258 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9259 cacheid=xorg_cv_cc_flag__Wsequence_point
9260 if eval \${$cacheid+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int i;
9266 int
9267 main ()
9268 {
9269
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 eval $cacheid=yes
9276 else
9277 eval $cacheid=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 fi
9282
9283
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285
9286 eval supported=\$$cacheid
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9288 $as_echo "$supported" >&6; }
9289 if test "$supported" = "yes" ; then
9290 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9291 found="yes"
9292 fi
9293 fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309 xorg_testset_save_CFLAGS="$CFLAGS"
9310
9311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 int i;
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323 xorg_cv_cc_flag_unknown_warning_option=yes
9324 else
9325 xorg_cv_cc_flag_unknown_warning_option=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333 fi
9334
9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 fi
9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"; then :
9350 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 else
9352 xorg_cv_cc_flag_unused_command_line_argument=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360 fi
9361
9362 found="no"
9363
9364 if test $found = "no" ; then
9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367 fi
9368
9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 fi
9372
9373 CFLAGS="$CFLAGS -Wreturn-type"
9374
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9376 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9377 cacheid=xorg_cv_cc_flag__Wreturn_type
9378 if eval \${$cacheid+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 int i;
9384 int
9385 main ()
9386 {
9387
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 eval $cacheid=yes
9394 else
9395 eval $cacheid=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 fi
9400
9401
9402 CFLAGS="$xorg_testset_save_CFLAGS"
9403
9404 eval supported=\$$cacheid
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9406 $as_echo "$supported" >&6; }
9407 if test "$supported" = "yes" ; then
9408 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9409 found="yes"
9410 fi
9411 fi
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 xorg_testset_save_CFLAGS="$CFLAGS"
9428
9429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 int i;
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"; then :
9441 xorg_cv_cc_flag_unknown_warning_option=yes
9442 else
9443 xorg_cv_cc_flag_unknown_warning_option=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9450 CFLAGS="$xorg_testset_save_CFLAGS"
9451 fi
9452
9453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456 fi
9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int i;
9466 _ACEOF
9467 if ac_fn_c_try_compile "$LINENO"; then :
9468 xorg_cv_cc_flag_unused_command_line_argument=yes
9469 else
9470 xorg_cv_cc_flag_unused_command_line_argument=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478 fi
9479
9480 found="no"
9481
9482 if test $found = "no" ; then
9483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485 fi
9486
9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489 fi
9490
9491 CFLAGS="$CFLAGS -Wtrigraphs"
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9494 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9495 cacheid=xorg_cv_cc_flag__Wtrigraphs
9496 if eval \${$cacheid+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int i;
9502 int
9503 main ()
9504 {
9505
9506 ;
9507 return 0;
9508 }
9509 _ACEOF
9510 if ac_fn_c_try_link "$LINENO"; then :
9511 eval $cacheid=yes
9512 else
9513 eval $cacheid=no
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 fi
9518
9519
9520 CFLAGS="$xorg_testset_save_CFLAGS"
9521
9522 eval supported=\$$cacheid
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9524 $as_echo "$supported" >&6; }
9525 if test "$supported" = "yes" ; then
9526 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9527 found="yes"
9528 fi
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545 xorg_testset_save_CFLAGS="$CFLAGS"
9546
9547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 int i;
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 xorg_cv_cc_flag_unknown_warning_option=yes
9560 else
9561 xorg_cv_cc_flag_unknown_warning_option=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568 CFLAGS="$xorg_testset_save_CFLAGS"
9569 fi
9570
9571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 fi
9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 int i;
9584 _ACEOF
9585 if ac_fn_c_try_compile "$LINENO"; then :
9586 xorg_cv_cc_flag_unused_command_line_argument=yes
9587 else
9588 xorg_cv_cc_flag_unused_command_line_argument=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596 fi
9597
9598 found="no"
9599
9600 if test $found = "no" ; then
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 fi
9604
9605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 fi
9608
9609 CFLAGS="$CFLAGS -Warray-bounds"
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9612 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9613 cacheid=xorg_cv_cc_flag__Warray_bounds
9614 if eval \${$cacheid+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 int
9621 main ()
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629 eval $cacheid=yes
9630 else
9631 eval $cacheid=no
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9635 fi
9636
9637
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639
9640 eval supported=\$$cacheid
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642 $as_echo "$supported" >&6; }
9643 if test "$supported" = "yes" ; then
9644 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9645 found="yes"
9646 fi
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 xorg_testset_save_CFLAGS="$CFLAGS"
9664
9665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 xorg_cv_cc_flag_unknown_warning_option=yes
9678 else
9679 xorg_cv_cc_flag_unknown_warning_option=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9686 CFLAGS="$xorg_testset_save_CFLAGS"
9687 fi
9688
9689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692 fi
9693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int i;
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704 xorg_cv_cc_flag_unused_command_line_argument=yes
9705 else
9706 xorg_cv_cc_flag_unused_command_line_argument=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9713 CFLAGS="$xorg_testset_save_CFLAGS"
9714 fi
9715
9716 found="no"
9717
9718 if test $found = "no" ; then
9719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721 fi
9722
9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 fi
9726
9727 CFLAGS="$CFLAGS -Wwrite-strings"
9728
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9730 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9731 cacheid=xorg_cv_cc_flag__Wwrite_strings
9732 if eval \${$cacheid+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 int
9739 main ()
9740 {
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 eval $cacheid=yes
9748 else
9749 eval $cacheid=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 fi
9754
9755
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757
9758 eval supported=\$$cacheid
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9760 $as_echo "$supported" >&6; }
9761 if test "$supported" = "yes" ; then
9762 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9763 found="yes"
9764 fi
9765 fi
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781 xorg_testset_save_CFLAGS="$CFLAGS"
9782
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9786 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9787 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 xorg_cv_cc_flag_unknown_warning_option=yes
9796 else
9797 xorg_cv_cc_flag_unknown_warning_option=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9802 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810 fi
9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9814 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 int i;
9820 _ACEOF
9821 if ac_fn_c_try_compile "$LINENO"; then :
9822 xorg_cv_cc_flag_unused_command_line_argument=yes
9823 else
9824 xorg_cv_cc_flag_unused_command_line_argument=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9829 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832 fi
9833
9834 found="no"
9835
9836 if test $found = "no" ; then
9837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839 fi
9840
9841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843 fi
9844
9845 CFLAGS="$CFLAGS -Waddress"
9846
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9848 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9849 cacheid=xorg_cv_cc_flag__Waddress
9850 if eval \${$cacheid+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 int i;
9856 int
9857 main ()
9858 {
9859
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865 eval $cacheid=yes
9866 else
9867 eval $cacheid=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 fi
9872
9873
9874 CFLAGS="$xorg_testset_save_CFLAGS"
9875
9876 eval supported=\$$cacheid
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9878 $as_echo "$supported" >&6; }
9879 if test "$supported" = "yes" ; then
9880 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9881 found="yes"
9882 fi
9883 fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 xorg_testset_save_CFLAGS="$CFLAGS"
9900
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"; then :
9913 xorg_cv_cc_flag_unknown_warning_option=yes
9914 else
9915 xorg_cv_cc_flag_unknown_warning_option=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923 fi
9924
9925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928 fi
9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 xorg_cv_cc_flag_unused_command_line_argument=yes
9941 else
9942 xorg_cv_cc_flag_unused_command_line_argument=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950 fi
9951
9952 found="no"
9953
9954 if test $found = "no" ; then
9955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957 fi
9958
9959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961 fi
9962
9963 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9966 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9967 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9968 if eval \${$cacheid+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 int i;
9974 int
9975 main ()
9976 {
9977
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 eval $cacheid=yes
9984 else
9985 eval $cacheid=no
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990
9991
9992 CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994 eval supported=\$$cacheid
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996 $as_echo "$supported" >&6; }
9997 if test "$supported" = "yes" ; then
9998 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9999 found="yes"
10000 fi
10001 fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017 xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"; then :
10031 xorg_cv_cc_flag_unknown_warning_option=yes
10032 else
10033 xorg_cv_cc_flag_unknown_warning_option=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 fi
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 xorg_cv_cc_flag_unused_command_line_argument=yes
10059 else
10060 xorg_cv_cc_flag_unused_command_line_argument=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 found="no"
10071
10072 if test $found = "no" ; then
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 fi
10080
10081 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10082
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10084 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10085 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10086 if eval \${$cacheid+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 int
10093 main ()
10094 {
10095
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 eval $cacheid=yes
10102 else
10103 eval $cacheid=no
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 fi
10108
10109
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111
10112 eval supported=\$$cacheid
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10114 $as_echo "$supported" >&6; }
10115 if test "$supported" = "yes" ; then
10116 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10117 found="yes"
10118 fi
10119 fi
10120
10121
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130 CWARNFLAGS="$BASE_CFLAGS"
10131 if test "x$GCC" = xyes ; then
10132 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141
10142 # Check whether --enable-strict-compilation was given.
10143 if test "${enable_strict_compilation+set}" = set; then :
10144 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10145 else
10146 STRICT_COMPILE=no
10147 fi
10148
10149
10150
10151
10152
10153
10154 STRICT_CFLAGS=""
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168 xorg_testset_save_CFLAGS="$CFLAGS"
10169
10170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int i;
10180 _ACEOF
10181 if ac_fn_c_try_compile "$LINENO"; then :
10182 xorg_cv_cc_flag_unknown_warning_option=yes
10183 else
10184 xorg_cv_cc_flag_unknown_warning_option=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10191 CFLAGS="$xorg_testset_save_CFLAGS"
10192 fi
10193
10194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197 fi
10198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 int i;
10207 _ACEOF
10208 if ac_fn_c_try_compile "$LINENO"; then :
10209 xorg_cv_cc_flag_unused_command_line_argument=yes
10210 else
10211 xorg_cv_cc_flag_unused_command_line_argument=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218 CFLAGS="$xorg_testset_save_CFLAGS"
10219 fi
10220
10221 found="no"
10222
10223 if test $found = "no" ; then
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 fi
10227
10228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230 fi
10231
10232 CFLAGS="$CFLAGS -pedantic"
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10235 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10236 cacheid=xorg_cv_cc_flag__pedantic
10237 if eval \${$cacheid+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 int i;
10243 int
10244 main ()
10245 {
10246
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 eval $cacheid=yes
10253 else
10254 eval $cacheid=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 fi
10259
10260
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262
10263 eval supported=\$$cacheid
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10265 $as_echo "$supported" >&6; }
10266 if test "$supported" = "yes" ; then
10267 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10268 found="yes"
10269 fi
10270 fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286 xorg_testset_save_CFLAGS="$CFLAGS"
10287
10288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 int i;
10298 _ACEOF
10299 if ac_fn_c_try_compile "$LINENO"; then :
10300 xorg_cv_cc_flag_unknown_warning_option=yes
10301 else
10302 xorg_cv_cc_flag_unknown_warning_option=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 int i;
10325 _ACEOF
10326 if ac_fn_c_try_compile "$LINENO"; then :
10327 xorg_cv_cc_flag_unused_command_line_argument=yes
10328 else
10329 xorg_cv_cc_flag_unused_command_line_argument=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337 fi
10338
10339 found="no"
10340
10341 if test $found = "no" ; then
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 fi
10345
10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348 fi
10349
10350 CFLAGS="$CFLAGS -Werror"
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10353 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10354 cacheid=xorg_cv_cc_flag__Werror
10355 if eval \${$cacheid+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 int
10362 main ()
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 eval $cacheid=yes
10371 else
10372 eval $cacheid=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 fi
10377
10378
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380
10381 eval supported=\$$cacheid
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10383 $as_echo "$supported" >&6; }
10384 if test "$supported" = "yes" ; then
10385 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10386 found="yes"
10387 fi
10388 fi
10389
10390 if test $found = "no" ; then
10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393 fi
10394
10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397 fi
10398
10399 CFLAGS="$CFLAGS -errwarn"
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10402 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10403 cacheid=xorg_cv_cc_flag__errwarn
10404 if eval \${$cacheid+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 int i;
10410 int
10411 main ()
10412 {
10413
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 if ac_fn_c_try_link "$LINENO"; then :
10419 eval $cacheid=yes
10420 else
10421 eval $cacheid=no
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 fi
10426
10427
10428 CFLAGS="$xorg_testset_save_CFLAGS"
10429
10430 eval supported=\$$cacheid
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10432 $as_echo "$supported" >&6; }
10433 if test "$supported" = "yes" ; then
10434 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10435 found="yes"
10436 fi
10437 fi
10438
10439
10440
10441 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10442 # activate it with -Werror, so we add it here explicitly.
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456 xorg_testset_save_CFLAGS="$CFLAGS"
10457
10458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 int i;
10468 _ACEOF
10469 if ac_fn_c_try_compile "$LINENO"; then :
10470 xorg_cv_cc_flag_unknown_warning_option=yes
10471 else
10472 xorg_cv_cc_flag_unknown_warning_option=no
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10479 CFLAGS="$xorg_testset_save_CFLAGS"
10480 fi
10481
10482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10485 fi
10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 int i;
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 xorg_cv_cc_flag_unused_command_line_argument=yes
10498 else
10499 xorg_cv_cc_flag_unused_command_line_argument=no
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10506 CFLAGS="$xorg_testset_save_CFLAGS"
10507 fi
10508
10509 found="no"
10510
10511 if test $found = "no" ; then
10512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514 fi
10515
10516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10518 fi
10519
10520 CFLAGS="$CFLAGS -Werror=attributes"
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10523 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10524 cacheid=xorg_cv_cc_flag__Werror_attributes
10525 if eval \${$cacheid+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 int
10532 main ()
10533 {
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 eval $cacheid=yes
10541 else
10542 eval $cacheid=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 fi
10547
10548
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551 eval supported=\$$cacheid
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553 $as_echo "$supported" >&6; }
10554 if test "$supported" = "yes" ; then
10555 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10556 found="yes"
10557 fi
10558 fi
10559
10560
10561
10562 if test "x$STRICT_COMPILE" = "xyes"; then
10563 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10564 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10565 fi
10566
10567
10568
10569
10570
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10574 _ACEOF
10575
10576 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10577 if test "x$PVM" = "x"; then
10578 PVM="0"
10579 fi
10580
10581 cat >>confdefs.h <<_ACEOF
10582 #define PACKAGE_VERSION_MINOR $PVM
10583 _ACEOF
10584
10585 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10586 if test "x$PVP" = "x"; then
10587 PVP="0"
10588 fi
10589
10590 cat >>confdefs.h <<_ACEOF
10591 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10592 _ACEOF
10593
10594
10595
10596 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10597 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10598 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10599 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10600
10601
10602
10603
10604 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10605 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10606 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10607 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10608 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10609
10610
10611
10612
10613
10614
10615 if test x$APP_MAN_SUFFIX = x ; then
10616 APP_MAN_SUFFIX=1
10617 fi
10618 if test x$APP_MAN_DIR = x ; then
10619 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10620 fi
10621
10622 if test x$LIB_MAN_SUFFIX = x ; then
10623 LIB_MAN_SUFFIX=3
10624 fi
10625 if test x$LIB_MAN_DIR = x ; then
10626 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10627 fi
10628
10629 if test x$FILE_MAN_SUFFIX = x ; then
10630 case $host_os in
10631 solaris*) FILE_MAN_SUFFIX=4 ;;
10632 *) FILE_MAN_SUFFIX=5 ;;
10633 esac
10634 fi
10635 if test x$FILE_MAN_DIR = x ; then
10636 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10637 fi
10638
10639 if test x$MISC_MAN_SUFFIX = x ; then
10640 case $host_os in
10641 solaris*) MISC_MAN_SUFFIX=5 ;;
10642 *) MISC_MAN_SUFFIX=7 ;;
10643 esac
10644 fi
10645 if test x$MISC_MAN_DIR = x ; then
10646 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10647 fi
10648
10649 if test x$DRIVER_MAN_SUFFIX = x ; then
10650 case $host_os in
10651 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10652 *) DRIVER_MAN_SUFFIX=4 ;;
10653 esac
10654 fi
10655 if test x$DRIVER_MAN_DIR = x ; then
10656 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10657 fi
10658
10659 if test x$ADMIN_MAN_SUFFIX = x ; then
10660 case $host_os in
10661 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10662 *) ADMIN_MAN_SUFFIX=8 ;;
10663 esac
10664 fi
10665 if test x$ADMIN_MAN_DIR = x ; then
10666 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10667 fi
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 XORG_MAN_PAGE="X Version 11"
10684
10685 MAN_SUBSTS="\
10686 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10687 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10688 -e 's|__xservername__|Xorg|g' \
10689 -e 's|__xconfigfile__|xorg.conf|g' \
10690 -e 's|__projectroot__|\$(prefix)|g' \
10691 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10692 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10693 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10694 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10695 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10696 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10697 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10698
10699
10700
10701 # Check whether --enable-silent-rules was given.
10702 if test "${enable_silent_rules+set}" = set; then :
10703 enableval=$enable_silent_rules;
10704 fi
10705
10706 case $enable_silent_rules in # (((
10707 yes) AM_DEFAULT_VERBOSITY=0;;
10708 no) AM_DEFAULT_VERBOSITY=1;;
10709 *) AM_DEFAULT_VERBOSITY=0;;
10710 esac
10711 am_make=${MAKE-make}
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10713 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10714 if ${am_cv_make_support_nested_variables+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if $as_echo 'TRUE=$(BAR$(V))
10718 BAR0=false
10719 BAR1=true
10720 V=1
10721 am__doit:
10722 @$(TRUE)
10723 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10724 am_cv_make_support_nested_variables=yes
10725 else
10726 am_cv_make_support_nested_variables=no
10727 fi
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10730 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10731 if test $am_cv_make_support_nested_variables = yes; then
10732 AM_V='$(V)'
10733 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10734 else
10735 AM_V=$AM_DEFAULT_VERBOSITY
10736 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10737 fi
10738 AM_BACKSLASH='\'
10739
10740
10741
10742 # Initialize libtool
10743 # Check whether --enable-static was given.
10744 if test "${enable_static+set}" = set; then :
10745 enableval=$enable_static; p=${PACKAGE-default}
10746 case $enableval in
10747 yes) enable_static=yes ;;
10748 no) enable_static=no ;;
10749 *)
10750 enable_static=no
10751 # Look at the argument we got. We use all the common list separators.
10752 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10753 for pkg in $enableval; do
10754 IFS=$lt_save_ifs
10755 if test "X$pkg" = "X$p"; then
10756 enable_static=yes
10757 fi
10758 done
10759 IFS=$lt_save_ifs
10760 ;;
10761 esac
10762 else
10763 enable_static=no
10764 fi
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774 case `pwd` in
10775 *\ * | *\ *)
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10777 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10778 esac
10779
10780
10781
10782 macro_version='2.4.6'
10783 macro_revision='2.4.6'
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797 ltmain=$ac_aux_dir/ltmain.sh
10798
10799 # Backslashify metacharacters that are still active within
10800 # double-quoted strings.
10801 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10802
10803 # Same as above, but do not quote variable references.
10804 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10805
10806 # Sed substitution to delay expansion of an escaped shell variable in a
10807 # double_quote_subst'ed string.
10808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10809
10810 # Sed substitution to delay expansion of an escaped single quote.
10811 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10812
10813 # Sed substitution to avoid accidental globbing in evaled expressions
10814 no_glob_subst='s/\*/\\\*/g'
10815
10816 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10818 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10819
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10821 $as_echo_n "checking how to print strings... " >&6; }
10822 # Test print first, because it will be a builtin if present.
10823 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10824 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10825 ECHO='print -r --'
10826 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10827 ECHO='printf %s\n'
10828 else
10829 # Use this function as a fallback that always works.
10830 func_fallback_echo ()
10831 {
10832 eval 'cat <<_LTECHO_EOF
10833 $1
10834 _LTECHO_EOF'
10835 }
10836 ECHO='func_fallback_echo'
10837 fi
10838
10839 # func_echo_all arg...
10840 # Invoke $ECHO with all args, space-separated.
10841 func_echo_all ()
10842 {
10843 $ECHO ""
10844 }
10845
10846 case $ECHO in
10847 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10848 $as_echo "printf" >&6; } ;;
10849 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10850 $as_echo "print -r" >&6; } ;;
10851 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10852 $as_echo "cat" >&6; } ;;
10853 esac
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10869 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10870 if ${ac_cv_path_SED+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10874 for ac_i in 1 2 3 4 5 6 7; do
10875 ac_script="$ac_script$as_nl$ac_script"
10876 done
10877 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10878 { ac_script=; unset ac_script;}
10879 if test -z "$SED"; then
10880 ac_path_SED_found=false
10881 # Loop through the user's path and test for each of PROGNAME-LIST
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10884 do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_prog in sed gsed; do
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10890 as_fn_executable_p "$ac_path_SED" || continue
10891 # Check for GNU ac_path_SED and select it if it is found.
10892 # Check for GNU $ac_path_SED
10893 case `"$ac_path_SED" --version 2>&1` in
10894 *GNU*)
10895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10896 *)
10897 ac_count=0
10898 $as_echo_n 0123456789 >"conftest.in"
10899 while :
10900 do
10901 cat "conftest.in" "conftest.in" >"conftest.tmp"
10902 mv "conftest.tmp" "conftest.in"
10903 cp "conftest.in" "conftest.nl"
10904 $as_echo '' >> "conftest.nl"
10905 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10907 as_fn_arith $ac_count + 1 && ac_count=$as_val
10908 if test $ac_count -gt ${ac_path_SED_max-0}; then
10909 # Best one so far, save it but keep looking for a better one
10910 ac_cv_path_SED="$ac_path_SED"
10911 ac_path_SED_max=$ac_count
10912 fi
10913 # 10*(2^10) chars as input seems more than enough
10914 test $ac_count -gt 10 && break
10915 done
10916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10917 esac
10918
10919 $ac_path_SED_found && break 3
10920 done
10921 done
10922 done
10923 IFS=$as_save_IFS
10924 if test -z "$ac_cv_path_SED"; then
10925 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10926 fi
10927 else
10928 ac_cv_path_SED=$SED
10929 fi
10930
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10933 $as_echo "$ac_cv_path_SED" >&6; }
10934 SED="$ac_cv_path_SED"
10935 rm -f conftest.sed
10936
10937 test -z "$SED" && SED=sed
10938 Xsed="$SED -e 1s/^X//"
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10951 $as_echo_n "checking for fgrep... " >&6; }
10952 if ${ac_cv_path_FGREP+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10956 then ac_cv_path_FGREP="$GREP -F"
10957 else
10958 if test -z "$FGREP"; then
10959 ac_path_FGREP_found=false
10960 # Loop through the user's path and test for each of PROGNAME-LIST
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10963 do
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_prog in fgrep; do
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10969 as_fn_executable_p "$ac_path_FGREP" || continue
10970 # Check for GNU ac_path_FGREP and select it if it is found.
10971 # Check for GNU $ac_path_FGREP
10972 case `"$ac_path_FGREP" --version 2>&1` in
10973 *GNU*)
10974 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10975 *)
10976 ac_count=0
10977 $as_echo_n 0123456789 >"conftest.in"
10978 while :
10979 do
10980 cat "conftest.in" "conftest.in" >"conftest.tmp"
10981 mv "conftest.tmp" "conftest.in"
10982 cp "conftest.in" "conftest.nl"
10983 $as_echo 'FGREP' >> "conftest.nl"
10984 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10986 as_fn_arith $ac_count + 1 && ac_count=$as_val
10987 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10988 # Best one so far, save it but keep looking for a better one
10989 ac_cv_path_FGREP="$ac_path_FGREP"
10990 ac_path_FGREP_max=$ac_count
10991 fi
10992 # 10*(2^10) chars as input seems more than enough
10993 test $ac_count -gt 10 && break
10994 done
10995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10996 esac
10997
10998 $ac_path_FGREP_found && break 3
10999 done
11000 done
11001 done
11002 IFS=$as_save_IFS
11003 if test -z "$ac_cv_path_FGREP"; then
11004 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11005 fi
11006 else
11007 ac_cv_path_FGREP=$FGREP
11008 fi
11009
11010 fi
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11013 $as_echo "$ac_cv_path_FGREP" >&6; }
11014 FGREP="$ac_cv_path_FGREP"
11015
11016
11017 test -z "$GREP" && GREP=grep
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 # Check whether --with-gnu-ld was given.
11038 if test "${with_gnu_ld+set}" = set; then :
11039 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11040 else
11041 with_gnu_ld=no
11042 fi
11043
11044 ac_prog=ld
11045 if test yes = "$GCC"; then
11046 # Check if gcc -print-prog-name=ld gives a path.
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11048 $as_echo_n "checking for ld used by $CC... " >&6; }
11049 case $host in
11050 *-*-mingw*)
11051 # gcc leaves a trailing carriage return, which upsets mingw
11052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11053 *)
11054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11055 esac
11056 case $ac_prog in
11057 # Accept absolute paths.
11058 [\\/]* | ?:[\\/]*)
11059 re_direlt='/[^/][^/]*/\.\./'
11060 # Canonicalize the pathname of ld
11061 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11062 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11063 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11064 done
11065 test -z "$LD" && LD=$ac_prog
11066 ;;
11067 "")
11068 # If it fails, then pretend we aren't using GCC.
11069 ac_prog=ld
11070 ;;
11071 *)
11072 # If it is relative, then search for the first ld in PATH.
11073 with_gnu_ld=unknown
11074 ;;
11075 esac
11076 elif test yes = "$with_gnu_ld"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11078 $as_echo_n "checking for GNU ld... " >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11081 $as_echo_n "checking for non-GNU ld... " >&6; }
11082 fi
11083 if ${lt_cv_path_LD+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 if test -z "$LD"; then
11087 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11088 for ac_dir in $PATH; do
11089 IFS=$lt_save_ifs
11090 test -z "$ac_dir" && ac_dir=.
11091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11092 lt_cv_path_LD=$ac_dir/$ac_prog
11093 # Check to see if the program is GNU ld. I'd rather use --version,
11094 # but apparently some variants of GNU ld only accept -v.
11095 # Break only if it was the GNU/non-GNU ld that we prefer.
11096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11097 *GNU* | *'with BFD'*)
11098 test no != "$with_gnu_ld" && break
11099 ;;
11100 *)
11101 test yes != "$with_gnu_ld" && break
11102 ;;
11103 esac
11104 fi
11105 done
11106 IFS=$lt_save_ifs
11107 else
11108 lt_cv_path_LD=$LD # Let the user override the test with a path.
11109 fi
11110 fi
11111
11112 LD=$lt_cv_path_LD
11113 if test -n "$LD"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11115 $as_echo "$LD" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11122 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11123 if ${lt_cv_prog_gnu_ld+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11127 case `$LD -v 2>&1 </dev/null` in
11128 *GNU* | *'with BFD'*)
11129 lt_cv_prog_gnu_ld=yes
11130 ;;
11131 *)
11132 lt_cv_prog_gnu_ld=no
11133 ;;
11134 esac
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11137 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11138 with_gnu_ld=$lt_cv_prog_gnu_ld
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11149 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11150 if ${lt_cv_path_NM+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test -n "$NM"; then
11154 # Let the user override the test.
11155 lt_cv_path_NM=$NM
11156 else
11157 lt_nm_to_check=${ac_tool_prefix}nm
11158 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11159 lt_nm_to_check="$lt_nm_to_check nm"
11160 fi
11161 for lt_tmp_nm in $lt_nm_to_check; do
11162 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11163 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11164 IFS=$lt_save_ifs
11165 test -z "$ac_dir" && ac_dir=.
11166 tmp_nm=$ac_dir/$lt_tmp_nm
11167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11168 # Check to see if the nm accepts a BSD-compat flag.
11169 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11170 # nm: unknown option "B" ignored
11171 # Tru64's nm complains that /dev/null is an invalid object file
11172 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11173 case $build_os in
11174 mingw*) lt_bad_file=conftest.nm/nofile ;;
11175 *) lt_bad_file=/dev/null ;;
11176 esac
11177 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11178 *$lt_bad_file* | *'Invalid file or object type'*)
11179 lt_cv_path_NM="$tmp_nm -B"
11180 break 2
11181 ;;
11182 *)
11183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11184 */dev/null*)
11185 lt_cv_path_NM="$tmp_nm -p"
11186 break 2
11187 ;;
11188 *)
11189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11190 continue # so that we can try to find one that supports BSD flags
11191 ;;
11192 esac
11193 ;;
11194 esac
11195 fi
11196 done
11197 IFS=$lt_save_ifs
11198 done
11199 : ${lt_cv_path_NM=no}
11200 fi
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11203 $as_echo "$lt_cv_path_NM" >&6; }
11204 if test no != "$lt_cv_path_NM"; then
11205 NM=$lt_cv_path_NM
11206 else
11207 # Didn't find any BSD compatible name lister, look for dumpbin.
11208 if test -n "$DUMPBIN"; then :
11209 # Let the user override the test.
11210 else
11211 if test -n "$ac_tool_prefix"; then
11212 for ac_prog in dumpbin "link -dump"
11213 do
11214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_prog_DUMPBIN+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -n "$DUMPBIN"; then
11222 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235 done
11236 done
11237 IFS=$as_save_IFS
11238
11239 fi
11240 fi
11241 DUMPBIN=$ac_cv_prog_DUMPBIN
11242 if test -n "$DUMPBIN"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11244 $as_echo "$DUMPBIN" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251 test -n "$DUMPBIN" && break
11252 done
11253 fi
11254 if test -z "$DUMPBIN"; then
11255 ac_ct_DUMPBIN=$DUMPBIN
11256 for ac_prog in dumpbin "link -dump"
11257 do
11258 # Extract the first word of "$ac_prog", so it can be a program name with args.
11259 set dummy $ac_prog; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test -n "$ac_ct_DUMPBIN"; then
11266 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11270 do
11271 IFS=$as_save_IFS
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11275 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 break 2
11278 fi
11279 done
11280 done
11281 IFS=$as_save_IFS
11282
11283 fi
11284 fi
11285 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11286 if test -n "$ac_ct_DUMPBIN"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11288 $as_echo "$ac_ct_DUMPBIN" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 fi
11293
11294
11295 test -n "$ac_ct_DUMPBIN" && break
11296 done
11297
11298 if test "x$ac_ct_DUMPBIN" = x; then
11299 DUMPBIN=":"
11300 else
11301 case $cross_compiling:$ac_tool_warned in
11302 yes:)
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11305 ac_tool_warned=yes ;;
11306 esac
11307 DUMPBIN=$ac_ct_DUMPBIN
11308 fi
11309 fi
11310
11311 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11312 *COFF*)
11313 DUMPBIN="$DUMPBIN -symbols -headers"
11314 ;;
11315 *)
11316 DUMPBIN=:
11317 ;;
11318 esac
11319 fi
11320
11321 if test : != "$DUMPBIN"; then
11322 NM=$DUMPBIN
11323 fi
11324 fi
11325 test -z "$NM" && NM=nm
11326
11327
11328
11329
11330
11331
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11333 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11334 if ${lt_cv_nm_interface+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 lt_cv_nm_interface="BSD nm"
11338 echo "int some_variable = 0;" > conftest.$ac_ext
11339 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11340 (eval "$ac_compile" 2>conftest.err)
11341 cat conftest.err >&5
11342 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11343 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11344 cat conftest.err >&5
11345 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11346 cat conftest.out >&5
11347 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11348 lt_cv_nm_interface="MS dumpbin"
11349 fi
11350 rm -f conftest*
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11353 $as_echo "$lt_cv_nm_interface" >&6; }
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11356 $as_echo_n "checking whether ln -s works... " >&6; }
11357 LN_S=$as_ln_s
11358 if test "$LN_S" = "ln -s"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11363 $as_echo "no, using $LN_S" >&6; }
11364 fi
11365
11366 # find the maximum length of command line arguments
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11368 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11369 if ${lt_cv_sys_max_cmd_len+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 i=0
11373 teststring=ABCD
11374
11375 case $build_os in
11376 msdosdjgpp*)
11377 # On DJGPP, this test can blow up pretty badly due to problems in libc
11378 # (any single argument exceeding 2000 bytes causes a buffer overrun
11379 # during glob expansion). Even if it were fixed, the result of this
11380 # check would be larger than it should be.
11381 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11382 ;;
11383
11384 gnu*)
11385 # Under GNU Hurd, this test is not required because there is
11386 # no limit to the length of command line arguments.
11387 # Libtool will interpret -1 as no limit whatsoever
11388 lt_cv_sys_max_cmd_len=-1;
11389 ;;
11390
11391 cygwin* | mingw* | cegcc*)
11392 # On Win9x/ME, this test blows up -- it succeeds, but takes
11393 # about 5 minutes as the teststring grows exponentially.
11394 # Worse, since 9x/ME are not pre-emptively multitasking,
11395 # you end up with a "frozen" computer, even though with patience
11396 # the test eventually succeeds (with a max line length of 256k).
11397 # Instead, let's just punt: use the minimum linelength reported by
11398 # all of the supported platforms: 8192 (on NT/2K/XP).
11399 lt_cv_sys_max_cmd_len=8192;
11400 ;;
11401
11402 mint*)
11403 # On MiNT this can take a long time and run out of memory.
11404 lt_cv_sys_max_cmd_len=8192;
11405 ;;
11406
11407 amigaos*)
11408 # On AmigaOS with pdksh, this test takes hours, literally.
11409 # So we just punt and use a minimum line length of 8192.
11410 lt_cv_sys_max_cmd_len=8192;
11411 ;;
11412
11413 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11414 # This has been around since 386BSD, at least. Likely further.
11415 if test -x /sbin/sysctl; then
11416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11417 elif test -x /usr/sbin/sysctl; then
11418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11419 else
11420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11421 fi
11422 # And add a safety zone
11423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11425 ;;
11426
11427 interix*)
11428 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11429 lt_cv_sys_max_cmd_len=196608
11430 ;;
11431
11432 os2*)
11433 # The test takes a long time on OS/2.
11434 lt_cv_sys_max_cmd_len=8192
11435 ;;
11436
11437 osf*)
11438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11440 # nice to cause kernel panics so lets avoid the loop below.
11441 # First set a reasonable default.
11442 lt_cv_sys_max_cmd_len=16384
11443 #
11444 if test -x /sbin/sysconfig; then
11445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11447 esac
11448 fi
11449 ;;
11450 sco3.2v5*)
11451 lt_cv_sys_max_cmd_len=102400
11452 ;;
11453 sysv5* | sco5v6* | sysv4.2uw2*)
11454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11455 if test -n "$kargmax"; then
11456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11457 else
11458 lt_cv_sys_max_cmd_len=32768
11459 fi
11460 ;;
11461 *)
11462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11463 if test -n "$lt_cv_sys_max_cmd_len" && \
11464 test undefined != "$lt_cv_sys_max_cmd_len"; then
11465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11467 else
11468 # Make teststring a little bigger before we do anything with it.
11469 # a 1K string should be a reasonable start.
11470 for i in 1 2 3 4 5 6 7 8; do
11471 teststring=$teststring$teststring
11472 done
11473 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11474 # If test is not a shell built-in, we'll probably end up computing a
11475 # maximum length that is only half of the actual maximum length, but
11476 # we can't tell.
11477 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11478 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11479 test 17 != "$i" # 1/2 MB should be enough
11480 do
11481 i=`expr $i + 1`
11482 teststring=$teststring$teststring
11483 done
11484 # Only check the string length outside the loop.
11485 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11486 teststring=
11487 # Add a significant safety factor because C++ compilers can tack on
11488 # massive amounts of additional arguments before passing them to the
11489 # linker. It appears as though 1/2 is a usable value.
11490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11491 fi
11492 ;;
11493 esac
11494
11495 fi
11496
11497 if test -n "$lt_cv_sys_max_cmd_len"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11499 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11502 $as_echo "none" >&6; }
11503 fi
11504 max_cmd_len=$lt_cv_sys_max_cmd_len
11505
11506
11507
11508
11509
11510
11511 : ${CP="cp -f"}
11512 : ${MV="mv -f"}
11513 : ${RM="rm -f"}
11514
11515 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11516 lt_unset=unset
11517 else
11518 lt_unset=false
11519 fi
11520
11521
11522
11523
11524
11525 # test EBCDIC or ASCII
11526 case `echo X|tr X '\101'` in
11527 A) # ASCII based system
11528 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11529 lt_SP2NL='tr \040 \012'
11530 lt_NL2SP='tr \015\012 \040\040'
11531 ;;
11532 *) # EBCDIC based system
11533 lt_SP2NL='tr \100 \n'
11534 lt_NL2SP='tr \r\n \100\100'
11535 ;;
11536 esac
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11547 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11548 if ${lt_cv_to_host_file_cmd+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 case $host in
11552 *-*-mingw* )
11553 case $build in
11554 *-*-mingw* ) # actually msys
11555 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11556 ;;
11557 *-*-cygwin* )
11558 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11559 ;;
11560 * ) # otherwise, assume *nix
11561 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11562 ;;
11563 esac
11564 ;;
11565 *-*-cygwin* )
11566 case $build in
11567 *-*-mingw* ) # actually msys
11568 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11569 ;;
11570 *-*-cygwin* )
11571 lt_cv_to_host_file_cmd=func_convert_file_noop
11572 ;;
11573 * ) # otherwise, assume *nix
11574 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11575 ;;
11576 esac
11577 ;;
11578 * ) # unhandled hosts (and "normal" native builds)
11579 lt_cv_to_host_file_cmd=func_convert_file_noop
11580 ;;
11581 esac
11582
11583 fi
11584
11585 to_host_file_cmd=$lt_cv_to_host_file_cmd
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11587 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11588
11589
11590
11591
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11594 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11595 if ${lt_cv_to_tool_file_cmd+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 #assume ordinary cross tools, or native build.
11599 lt_cv_to_tool_file_cmd=func_convert_file_noop
11600 case $host in
11601 *-*-mingw* )
11602 case $build in
11603 *-*-mingw* ) # actually msys
11604 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11605 ;;
11606 esac
11607 ;;
11608 esac
11609
11610 fi
11611
11612 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11614 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11615
11616
11617
11618
11619
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11621 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11622 if ${lt_cv_ld_reload_flag+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 lt_cv_ld_reload_flag='-r'
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11628 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11629 reload_flag=$lt_cv_ld_reload_flag
11630 case $reload_flag in
11631 "" | " "*) ;;
11632 *) reload_flag=" $reload_flag" ;;
11633 esac
11634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11635 case $host_os in
11636 cygwin* | mingw* | pw32* | cegcc*)
11637 if test yes != "$GCC"; then
11638 reload_cmds=false
11639 fi
11640 ;;
11641 darwin*)
11642 if test yes = "$GCC"; then
11643 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11644 else
11645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11646 fi
11647 ;;
11648 esac
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658 if test -n "$ac_tool_prefix"; then
11659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_prog_OBJDUMP+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 if test -n "$OBJDUMP"; then
11667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11668 else
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11671 do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 break 2
11679 fi
11680 done
11681 done
11682 IFS=$as_save_IFS
11683
11684 fi
11685 fi
11686 OBJDUMP=$ac_cv_prog_OBJDUMP
11687 if test -n "$OBJDUMP"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11689 $as_echo "$OBJDUMP" >&6; }
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11693 fi
11694
11695
11696 fi
11697 if test -z "$ac_cv_prog_OBJDUMP"; then
11698 ac_ct_OBJDUMP=$OBJDUMP
11699 # Extract the first word of "objdump", so it can be a program name with args.
11700 set dummy objdump; ac_word=$2
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702 $as_echo_n "checking for $ac_word... " >&6; }
11703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 if test -n "$ac_ct_OBJDUMP"; then
11707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11708 else
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11711 do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11719 fi
11720 done
11721 done
11722 IFS=$as_save_IFS
11723
11724 fi
11725 fi
11726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11727 if test -n "$ac_ct_OBJDUMP"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11729 $as_echo "$ac_ct_OBJDUMP" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735 if test "x$ac_ct_OBJDUMP" = x; then
11736 OBJDUMP="false"
11737 else
11738 case $cross_compiling:$ac_tool_warned in
11739 yes:)
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11742 ac_tool_warned=yes ;;
11743 esac
11744 OBJDUMP=$ac_ct_OBJDUMP
11745 fi
11746 else
11747 OBJDUMP="$ac_cv_prog_OBJDUMP"
11748 fi
11749
11750 test -z "$OBJDUMP" && OBJDUMP=objdump
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11761 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11762 if ${lt_cv_deplibs_check_method+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 lt_cv_file_magic_cmd='$MAGIC_CMD'
11766 lt_cv_file_magic_test_file=
11767 lt_cv_deplibs_check_method='unknown'
11768 # Need to set the preceding variable on all platforms that support
11769 # interlibrary dependencies.
11770 # 'none' -- dependencies not supported.
11771 # 'unknown' -- same as none, but documents that we really don't know.
11772 # 'pass_all' -- all dependencies passed with no checks.
11773 # 'test_compile' -- check by making test program.
11774 # 'file_magic [[regex]]' -- check by looking for files in library path
11775 # that responds to the $file_magic_cmd with a given extended regex.
11776 # If you have 'file' or equivalent on your system and you're not sure
11777 # whether 'pass_all' will *always* work, you probably want this one.
11778
11779 case $host_os in
11780 aix[4-9]*)
11781 lt_cv_deplibs_check_method=pass_all
11782 ;;
11783
11784 beos*)
11785 lt_cv_deplibs_check_method=pass_all
11786 ;;
11787
11788 bsdi[45]*)
11789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11790 lt_cv_file_magic_cmd='/usr/bin/file -L'
11791 lt_cv_file_magic_test_file=/shlib/libc.so
11792 ;;
11793
11794 cygwin*)
11795 # func_win32_libid is a shell function defined in ltmain.sh
11796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11797 lt_cv_file_magic_cmd='func_win32_libid'
11798 ;;
11799
11800 mingw* | pw32*)
11801 # Base MSYS/MinGW do not provide the 'file' command needed by
11802 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11803 # unless we find 'file', for example because we are cross-compiling.
11804 if ( file / ) >/dev/null 2>&1; then
11805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11806 lt_cv_file_magic_cmd='func_win32_libid'
11807 else
11808 # Keep this pattern in sync with the one in func_win32_libid.
11809 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11810 lt_cv_file_magic_cmd='$OBJDUMP -f'
11811 fi
11812 ;;
11813
11814 cegcc*)
11815 # use the weaker test based on 'objdump'. See mingw*.
11816 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11817 lt_cv_file_magic_cmd='$OBJDUMP -f'
11818 ;;
11819
11820 darwin* | rhapsody*)
11821 lt_cv_deplibs_check_method=pass_all
11822 ;;
11823
11824 freebsd* | dragonfly*)
11825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11826 case $host_cpu in
11827 i*86 )
11828 # Not sure whether the presence of OpenBSD here was a mistake.
11829 # Let's accept both of them until this is cleared up.
11830 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11831 lt_cv_file_magic_cmd=/usr/bin/file
11832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11833 ;;
11834 esac
11835 else
11836 lt_cv_deplibs_check_method=pass_all
11837 fi
11838 ;;
11839
11840 haiku*)
11841 lt_cv_deplibs_check_method=pass_all
11842 ;;
11843
11844 hpux10.20* | hpux11*)
11845 lt_cv_file_magic_cmd=/usr/bin/file
11846 case $host_cpu in
11847 ia64*)
11848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11849 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11850 ;;
11851 hppa*64*)
11852 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]'
11853 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11854 ;;
11855 *)
11856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11857 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11858 ;;
11859 esac
11860 ;;
11861
11862 interix[3-9]*)
11863 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11865 ;;
11866
11867 irix5* | irix6* | nonstopux*)
11868 case $LD in
11869 *-32|*"-32 ") libmagic=32-bit;;
11870 *-n32|*"-n32 ") libmagic=N32;;
11871 *-64|*"-64 ") libmagic=64-bit;;
11872 *) libmagic=never-match;;
11873 esac
11874 lt_cv_deplibs_check_method=pass_all
11875 ;;
11876
11877 # This must be glibc/ELF.
11878 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11879 lt_cv_deplibs_check_method=pass_all
11880 ;;
11881
11882 netbsd*)
11883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11885 else
11886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11887 fi
11888 ;;
11889
11890 newos6*)
11891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11892 lt_cv_file_magic_cmd=/usr/bin/file
11893 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11894 ;;
11895
11896 *nto* | *qnx*)
11897 lt_cv_deplibs_check_method=pass_all
11898 ;;
11899
11900 openbsd* | bitrig*)
11901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11903 else
11904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11905 fi
11906 ;;
11907
11908 osf3* | osf4* | osf5*)
11909 lt_cv_deplibs_check_method=pass_all
11910 ;;
11911
11912 rdos*)
11913 lt_cv_deplibs_check_method=pass_all
11914 ;;
11915
11916 solaris*)
11917 lt_cv_deplibs_check_method=pass_all
11918 ;;
11919
11920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921 lt_cv_deplibs_check_method=pass_all
11922 ;;
11923
11924 sysv4 | sysv4.3*)
11925 case $host_vendor in
11926 motorola)
11927 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]'
11928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11929 ;;
11930 ncr)
11931 lt_cv_deplibs_check_method=pass_all
11932 ;;
11933 sequent)
11934 lt_cv_file_magic_cmd='/bin/file'
11935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11936 ;;
11937 sni)
11938 lt_cv_file_magic_cmd='/bin/file'
11939 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11940 lt_cv_file_magic_test_file=/lib/libc.so
11941 ;;
11942 siemens)
11943 lt_cv_deplibs_check_method=pass_all
11944 ;;
11945 pc)
11946 lt_cv_deplibs_check_method=pass_all
11947 ;;
11948 esac
11949 ;;
11950
11951 tpf*)
11952 lt_cv_deplibs_check_method=pass_all
11953 ;;
11954 os2*)
11955 lt_cv_deplibs_check_method=pass_all
11956 ;;
11957 esac
11958
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11961 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11962
11963 file_magic_glob=
11964 want_nocaseglob=no
11965 if test "$build" = "$host"; then
11966 case $host_os in
11967 mingw* | pw32*)
11968 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11969 want_nocaseglob=yes
11970 else
11971 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11972 fi
11973 ;;
11974 esac
11975 fi
11976
11977 file_magic_cmd=$lt_cv_file_magic_cmd
11978 deplibs_check_method=$lt_cv_deplibs_check_method
11979 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 if test -n "$ac_tool_prefix"; then
12003 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12004 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_DLLTOOL+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$DLLTOOL"; then
12011 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 DLLTOOL=$ac_cv_prog_DLLTOOL
12031 if test -n "$DLLTOOL"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12033 $as_echo "$DLLTOOL" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 fi
12041 if test -z "$ac_cv_prog_DLLTOOL"; then
12042 ac_ct_DLLTOOL=$DLLTOOL
12043 # Extract the first word of "dlltool", so it can be a program name with args.
12044 set dummy dlltool; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 if test -n "$ac_ct_DLLTOOL"; then
12051 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12052 else
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12063 fi
12064 done
12065 done
12066 IFS=$as_save_IFS
12067
12068 fi
12069 fi
12070 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12071 if test -n "$ac_ct_DLLTOOL"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12073 $as_echo "$ac_ct_DLLTOOL" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079 if test "x$ac_ct_DLLTOOL" = x; then
12080 DLLTOOL="false"
12081 else
12082 case $cross_compiling:$ac_tool_warned in
12083 yes:)
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12086 ac_tool_warned=yes ;;
12087 esac
12088 DLLTOOL=$ac_ct_DLLTOOL
12089 fi
12090 else
12091 DLLTOOL="$ac_cv_prog_DLLTOOL"
12092 fi
12093
12094 test -z "$DLLTOOL" && DLLTOOL=dlltool
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12106 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12107 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 lt_cv_sharedlib_from_linklib_cmd='unknown'
12111
12112 case $host_os in
12113 cygwin* | mingw* | pw32* | cegcc*)
12114 # two different shell functions defined in ltmain.sh;
12115 # decide which one to use based on capabilities of $DLLTOOL
12116 case `$DLLTOOL --help 2>&1` in
12117 *--identify-strict*)
12118 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12119 ;;
12120 *)
12121 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12122 ;;
12123 esac
12124 ;;
12125 *)
12126 # fallback: assume linklib IS sharedlib
12127 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12128 ;;
12129 esac
12130
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12133 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12134 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12135 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12136
12137
12138
12139
12140
12141
12142
12143 if test -n "$ac_tool_prefix"; then
12144 for ac_prog in ar
12145 do
12146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_prog_AR+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 if test -n "$AR"; then
12154 ac_cv_prog_AR="$AR" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169 IFS=$as_save_IFS
12170
12171 fi
12172 fi
12173 AR=$ac_cv_prog_AR
12174 if test -n "$AR"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12176 $as_echo "$AR" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181
12182
12183 test -n "$AR" && break
12184 done
12185 fi
12186 if test -z "$AR"; then
12187 ac_ct_AR=$AR
12188 for ac_prog in ar
12189 do
12190 # Extract the first word of "$ac_prog", so it can be a program name with args.
12191 set dummy $ac_prog; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 if test -n "$ac_ct_AR"; then
12198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12199 else
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12202 do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_ac_ct_AR="$ac_prog"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211 done
12212 done
12213 IFS=$as_save_IFS
12214
12215 fi
12216 fi
12217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12218 if test -n "$ac_ct_AR"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12220 $as_echo "$ac_ct_AR" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225
12226
12227 test -n "$ac_ct_AR" && break
12228 done
12229
12230 if test "x$ac_ct_AR" = x; then
12231 AR="false"
12232 else
12233 case $cross_compiling:$ac_tool_warned in
12234 yes:)
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12237 ac_tool_warned=yes ;;
12238 esac
12239 AR=$ac_ct_AR
12240 fi
12241 fi
12242
12243 : ${AR=ar}
12244 : ${AR_FLAGS=cru}
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12257 $as_echo_n "checking for archiver @FILE support... " >&6; }
12258 if ${lt_cv_ar_at_file+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 lt_cv_ar_at_file=no
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 int
12266 main ()
12267 {
12268
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274 echo conftest.$ac_objext > conftest.lst
12275 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12277 (eval $lt_ar_try) 2>&5
12278 ac_status=$?
12279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280 test $ac_status = 0; }
12281 if test 0 -eq "$ac_status"; then
12282 # Ensure the archiver fails upon bogus file names.
12283 rm -f conftest.$ac_objext libconftest.a
12284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12285 (eval $lt_ar_try) 2>&5
12286 ac_status=$?
12287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288 test $ac_status = 0; }
12289 if test 0 -ne "$ac_status"; then
12290 lt_cv_ar_at_file=@
12291 fi
12292 fi
12293 rm -f conftest.* libconftest.a
12294
12295 fi
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12300 $as_echo "$lt_cv_ar_at_file" >&6; }
12301
12302 if test no = "$lt_cv_ar_at_file"; then
12303 archiver_list_spec=
12304 else
12305 archiver_list_spec=$lt_cv_ar_at_file
12306 fi
12307
12308
12309
12310
12311
12312
12313
12314 if test -n "$ac_tool_prefix"; then
12315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12316 set dummy ${ac_tool_prefix}strip; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_prog_STRIP+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -n "$STRIP"; then
12323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12324 else
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 fi
12341 fi
12342 STRIP=$ac_cv_prog_STRIP
12343 if test -n "$STRIP"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12345 $as_echo "$STRIP" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350
12351
12352 fi
12353 if test -z "$ac_cv_prog_STRIP"; then
12354 ac_ct_STRIP=$STRIP
12355 # Extract the first word of "strip", so it can be a program name with args.
12356 set dummy strip; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 if test -n "$ac_ct_STRIP"; then
12363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12364 else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372 ac_cv_prog_ac_ct_STRIP="strip"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12375 fi
12376 done
12377 done
12378 IFS=$as_save_IFS
12379
12380 fi
12381 fi
12382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12383 if test -n "$ac_ct_STRIP"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12385 $as_echo "$ac_ct_STRIP" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 fi
12390
12391 if test "x$ac_ct_STRIP" = x; then
12392 STRIP=":"
12393 else
12394 case $cross_compiling:$ac_tool_warned in
12395 yes:)
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12398 ac_tool_warned=yes ;;
12399 esac
12400 STRIP=$ac_ct_STRIP
12401 fi
12402 else
12403 STRIP="$ac_cv_prog_STRIP"
12404 fi
12405
12406 test -z "$STRIP" && STRIP=:
12407
12408
12409
12410
12411
12412
12413 if test -n "$ac_tool_prefix"; then
12414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417 $as_echo_n "checking for $ac_word... " >&6; }
12418 if ${ac_cv_prog_RANLIB+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 if test -n "$RANLIB"; then
12422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12423 else
12424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12426 do
12427 IFS=$as_save_IFS
12428 test -z "$as_dir" && as_dir=.
12429 for ac_exec_ext in '' $ac_executable_extensions; do
12430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12434 fi
12435 done
12436 done
12437 IFS=$as_save_IFS
12438
12439 fi
12440 fi
12441 RANLIB=$ac_cv_prog_RANLIB
12442 if test -n "$RANLIB"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12444 $as_echo "$RANLIB" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 fi
12449
12450
12451 fi
12452 if test -z "$ac_cv_prog_RANLIB"; then
12453 ac_ct_RANLIB=$RANLIB
12454 # Extract the first word of "ranlib", so it can be a program name with args.
12455 set dummy ranlib; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 if test -n "$ac_ct_RANLIB"; then
12462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12463 else
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12471 ac_cv_prog_ac_ct_RANLIB="ranlib"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475 done
12476 done
12477 IFS=$as_save_IFS
12478
12479 fi
12480 fi
12481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12482 if test -n "$ac_ct_RANLIB"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12484 $as_echo "$ac_ct_RANLIB" >&6; }
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490 if test "x$ac_ct_RANLIB" = x; then
12491 RANLIB=":"
12492 else
12493 case $cross_compiling:$ac_tool_warned in
12494 yes:)
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12497 ac_tool_warned=yes ;;
12498 esac
12499 RANLIB=$ac_ct_RANLIB
12500 fi
12501 else
12502 RANLIB="$ac_cv_prog_RANLIB"
12503 fi
12504
12505 test -z "$RANLIB" && RANLIB=:
12506
12507
12508
12509
12510
12511
12512 # Determine commands to create old-style static archives.
12513 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12514 old_postinstall_cmds='chmod 644 $oldlib'
12515 old_postuninstall_cmds=
12516
12517 if test -n "$RANLIB"; then
12518 case $host_os in
12519 bitrig* | openbsd*)
12520 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12521 ;;
12522 *)
12523 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12524 ;;
12525 esac
12526 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12527 fi
12528
12529 case $host_os in
12530 darwin*)
12531 lock_old_archive_extraction=yes ;;
12532 *)
12533 lock_old_archive_extraction=no ;;
12534 esac
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
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 # If no C compiler was specified, use CC.
12575 LTCC=${LTCC-"$CC"}
12576
12577 # If no C compiler flags were specified, use CFLAGS.
12578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12579
12580 # Allow CC to be a program name with arguments.
12581 compiler=$CC
12582
12583
12584 # Check for command to grab the raw symbol name followed by C symbol from nm.
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12586 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12587 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590
12591 # These are sane defaults that work on at least a few old systems.
12592 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12593
12594 # Character class describing NM global symbol codes.
12595 symcode='[BCDEGRST]'
12596
12597 # Regexp to match symbols that can be accessed directly from C.
12598 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12599
12600 # Define system-specific variables.
12601 case $host_os in
12602 aix*)
12603 symcode='[BCDT]'
12604 ;;
12605 cygwin* | mingw* | pw32* | cegcc*)
12606 symcode='[ABCDGISTW]'
12607 ;;
12608 hpux*)
12609 if test ia64 = "$host_cpu"; then
12610 symcode='[ABCDEGRST]'
12611 fi
12612 ;;
12613 irix* | nonstopux*)
12614 symcode='[BCDEGRST]'
12615 ;;
12616 osf*)
12617 symcode='[BCDEGQRST]'
12618 ;;
12619 solaris*)
12620 symcode='[BDRT]'
12621 ;;
12622 sco3.2v5*)
12623 symcode='[DT]'
12624 ;;
12625 sysv4.2uw2*)
12626 symcode='[DT]'
12627 ;;
12628 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12629 symcode='[ABDT]'
12630 ;;
12631 sysv4)
12632 symcode='[DFNSTU]'
12633 ;;
12634 esac
12635
12636 # If we're using GNU nm, then use its standard symbol codes.
12637 case `$NM -V 2>&1` in
12638 *GNU* | *'with BFD'*)
12639 symcode='[ABCDGIRSTW]' ;;
12640 esac
12641
12642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12643 # Gets list of data symbols to import.
12644 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12645 # Adjust the below global symbol transforms to fixup imported variables.
12646 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12647 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12648 lt_c_name_lib_hook="\
12649 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12650 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12651 else
12652 # Disable hooks by default.
12653 lt_cv_sys_global_symbol_to_import=
12654 lt_cdecl_hook=
12655 lt_c_name_hook=
12656 lt_c_name_lib_hook=
12657 fi
12658
12659 # Transform an extracted symbol line into a proper C declaration.
12660 # Some systems (esp. on ia64) link data and code symbols differently,
12661 # so use this general approach.
12662 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12663 $lt_cdecl_hook\
12664 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12665 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12666
12667 # Transform an extracted symbol line into symbol name and symbol address
12668 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12669 $lt_c_name_hook\
12670 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12671 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12672
12673 # Transform an extracted symbol line into symbol name with lib prefix and
12674 # symbol address.
12675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12676 $lt_c_name_lib_hook\
12677 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12678 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12679 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12680
12681 # Handle CRLF in mingw tool chain
12682 opt_cr=
12683 case $build_os in
12684 mingw*)
12685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12686 ;;
12687 esac
12688
12689 # Try without a prefix underscore, then with it.
12690 for ac_symprfx in "" "_"; do
12691
12692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12693 symxfrm="\\1 $ac_symprfx\\2 \\2"
12694
12695 # Write the raw and C identifiers.
12696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12697 # Fake it for dumpbin and say T for any non-static function,
12698 # D for any global variable and I for any imported variable.
12699 # Also find C++ and __fastcall symbols from MSVC++,
12700 # which start with @ or ?.
12701 lt_cv_sys_global_symbol_pipe="$AWK '"\
12702 " {last_section=section; section=\$ 3};"\
12703 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12704 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12705 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12706 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12707 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12708 " \$ 0!~/External *\|/{next};"\
12709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12710 " {if(hide[section]) next};"\
12711 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12712 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12713 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12714 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12715 " ' prfx=^$ac_symprfx"
12716 else
12717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12718 fi
12719 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12720
12721 # Check to see that the pipe works correctly.
12722 pipe_works=no
12723
12724 rm -f conftest*
12725 cat > conftest.$ac_ext <<_LT_EOF
12726 #ifdef __cplusplus
12727 extern "C" {
12728 #endif
12729 char nm_test_var;
12730 void nm_test_func(void);
12731 void nm_test_func(void){}
12732 #ifdef __cplusplus
12733 }
12734 #endif
12735 int main(){nm_test_var='a';nm_test_func();return(0);}
12736 _LT_EOF
12737
12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12739 (eval $ac_compile) 2>&5
12740 ac_status=$?
12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; }; then
12743 # Now try to grab the symbols.
12744 nlist=conftest.nm
12745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12747 ac_status=$?
12748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12749 test $ac_status = 0; } && test -s "$nlist"; then
12750 # Try sorting and uniquifying the output.
12751 if sort "$nlist" | uniq > "$nlist"T; then
12752 mv -f "$nlist"T "$nlist"
12753 else
12754 rm -f "$nlist"T
12755 fi
12756
12757 # Make sure that we snagged all the symbols we need.
12758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12760 cat <<_LT_EOF > conftest.$ac_ext
12761 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12762 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12763 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12764 relocations are performed -- see ld's documentation on pseudo-relocs. */
12765 # define LT_DLSYM_CONST
12766 #elif defined __osf__
12767 /* This system does not cope well with relocations in const data. */
12768 # define LT_DLSYM_CONST
12769 #else
12770 # define LT_DLSYM_CONST const
12771 #endif
12772
12773 #ifdef __cplusplus
12774 extern "C" {
12775 #endif
12776
12777 _LT_EOF
12778 # Now generate the symbol file.
12779 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12780
12781 cat <<_LT_EOF >> conftest.$ac_ext
12782
12783 /* The mapping between symbol names and symbols. */
12784 LT_DLSYM_CONST struct {
12785 const char *name;
12786 void *address;
12787 }
12788 lt__PROGRAM__LTX_preloaded_symbols[] =
12789 {
12790 { "@PROGRAM@", (void *) 0 },
12791 _LT_EOF
12792 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12793 cat <<\_LT_EOF >> conftest.$ac_ext
12794 {0, (void *) 0}
12795 };
12796
12797 /* This works around a problem in FreeBSD linker */
12798 #ifdef FREEBSD_WORKAROUND
12799 static const void *lt_preloaded_setup() {
12800 return lt__PROGRAM__LTX_preloaded_symbols;
12801 }
12802 #endif
12803
12804 #ifdef __cplusplus
12805 }
12806 #endif
12807 _LT_EOF
12808 # Now try linking the two files.
12809 mv conftest.$ac_objext conftstm.$ac_objext
12810 lt_globsym_save_LIBS=$LIBS
12811 lt_globsym_save_CFLAGS=$CFLAGS
12812 LIBS=conftstm.$ac_objext
12813 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12815 (eval $ac_link) 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12819 pipe_works=yes
12820 fi
12821 LIBS=$lt_globsym_save_LIBS
12822 CFLAGS=$lt_globsym_save_CFLAGS
12823 else
12824 echo "cannot find nm_test_func in $nlist" >&5
12825 fi
12826 else
12827 echo "cannot find nm_test_var in $nlist" >&5
12828 fi
12829 else
12830 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12831 fi
12832 else
12833 echo "$progname: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 fi
12836 rm -rf conftest* conftst*
12837
12838 # Do not use the global_symbol_pipe unless it works.
12839 if test yes = "$pipe_works"; then
12840 break
12841 else
12842 lt_cv_sys_global_symbol_pipe=
12843 fi
12844 done
12845
12846 fi
12847
12848 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12849 lt_cv_sys_global_symbol_to_cdecl=
12850 fi
12851 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12853 $as_echo "failed" >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12856 $as_echo "ok" >&6; }
12857 fi
12858
12859 # Response file support.
12860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12861 nm_file_list_spec='@'
12862 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12863 nm_file_list_spec='@'
12864 fi
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12903 $as_echo_n "checking for sysroot... " >&6; }
12904
12905 # Check whether --with-sysroot was given.
12906 if test "${with_sysroot+set}" = set; then :
12907 withval=$with_sysroot;
12908 else
12909 with_sysroot=no
12910 fi
12911
12912
12913 lt_sysroot=
12914 case $with_sysroot in #(
12915 yes)
12916 if test yes = "$GCC"; then
12917 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12918 fi
12919 ;; #(
12920 /*)
12921 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12922 ;; #(
12923 no|'')
12924 ;; #(
12925 *)
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12927 $as_echo "$with_sysroot" >&6; }
12928 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12929 ;;
12930 esac
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12933 $as_echo "${lt_sysroot:-no}" >&6; }
12934
12935
12936
12937
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12940 $as_echo_n "checking for a working dd... " >&6; }
12941 if ${ac_cv_path_lt_DD+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 printf 0123456789abcdef0123456789abcdef >conftest.i
12945 cat conftest.i conftest.i >conftest2.i
12946 : ${lt_DD:=$DD}
12947 if test -z "$lt_DD"; then
12948 ac_path_lt_DD_found=false
12949 # Loop through the user's path and test for each of PROGNAME-LIST
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_prog in dd; do
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12958 as_fn_executable_p "$ac_path_lt_DD" || continue
12959 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12960 cmp -s conftest.i conftest.out \
12961 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12962 fi
12963 $ac_path_lt_DD_found && break 3
12964 done
12965 done
12966 done
12967 IFS=$as_save_IFS
12968 if test -z "$ac_cv_path_lt_DD"; then
12969 :
12970 fi
12971 else
12972 ac_cv_path_lt_DD=$lt_DD
12973 fi
12974
12975 rm -f conftest.i conftest2.i conftest.out
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12978 $as_echo "$ac_cv_path_lt_DD" >&6; }
12979
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12982 $as_echo_n "checking how to truncate binary pipes... " >&6; }
12983 if ${lt_cv_truncate_bin+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 printf 0123456789abcdef0123456789abcdef >conftest.i
12987 cat conftest.i conftest.i >conftest2.i
12988 lt_cv_truncate_bin=
12989 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12990 cmp -s conftest.i conftest.out \
12991 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12992 fi
12993 rm -f conftest.i conftest2.i conftest.out
12994 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12997 $as_echo "$lt_cv_truncate_bin" >&6; }
12998
12999
13000
13001
13002
13003
13004
13005 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13006 func_cc_basename ()
13007 {
13008 for cc_temp in $*""; do
13009 case $cc_temp in
13010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13012 \-*) ;;
13013 *) break;;
13014 esac
13015 done
13016 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13017 }
13018
13019 # Check whether --enable-libtool-lock was given.
13020 if test "${enable_libtool_lock+set}" = set; then :
13021 enableval=$enable_libtool_lock;
13022 fi
13023
13024 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13025
13026 # Some flags need to be propagated to the compiler or linker for good
13027 # libtool support.
13028 case $host in
13029 ia64-*-hpux*)
13030 # Find out what ABI is being produced by ac_compile, and set mode
13031 # options accordingly.
13032 echo 'int i;' > conftest.$ac_ext
13033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13034 (eval $ac_compile) 2>&5
13035 ac_status=$?
13036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13037 test $ac_status = 0; }; then
13038 case `/usr/bin/file conftest.$ac_objext` in
13039 *ELF-32*)
13040 HPUX_IA64_MODE=32
13041 ;;
13042 *ELF-64*)
13043 HPUX_IA64_MODE=64
13044 ;;
13045 esac
13046 fi
13047 rm -rf conftest*
13048 ;;
13049 *-*-irix6*)
13050 # Find out what ABI is being produced by ac_compile, and set linker
13051 # options accordingly.
13052 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13054 (eval $ac_compile) 2>&5
13055 ac_status=$?
13056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057 test $ac_status = 0; }; then
13058 if test yes = "$lt_cv_prog_gnu_ld"; then
13059 case `/usr/bin/file conftest.$ac_objext` in
13060 *32-bit*)
13061 LD="${LD-ld} -melf32bsmip"
13062 ;;
13063 *N32*)
13064 LD="${LD-ld} -melf32bmipn32"
13065 ;;
13066 *64-bit*)
13067 LD="${LD-ld} -melf64bmip"
13068 ;;
13069 esac
13070 else
13071 case `/usr/bin/file conftest.$ac_objext` in
13072 *32-bit*)
13073 LD="${LD-ld} -32"
13074 ;;
13075 *N32*)
13076 LD="${LD-ld} -n32"
13077 ;;
13078 *64-bit*)
13079 LD="${LD-ld} -64"
13080 ;;
13081 esac
13082 fi
13083 fi
13084 rm -rf conftest*
13085 ;;
13086
13087 mips64*-*linux*)
13088 # Find out what ABI is being produced by ac_compile, and set linker
13089 # options accordingly.
13090 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092 (eval $ac_compile) 2>&5
13093 ac_status=$?
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 emul=elf
13097 case `/usr/bin/file conftest.$ac_objext` in
13098 *32-bit*)
13099 emul="${emul}32"
13100 ;;
13101 *64-bit*)
13102 emul="${emul}64"
13103 ;;
13104 esac
13105 case `/usr/bin/file conftest.$ac_objext` in
13106 *MSB*)
13107 emul="${emul}btsmip"
13108 ;;
13109 *LSB*)
13110 emul="${emul}ltsmip"
13111 ;;
13112 esac
13113 case `/usr/bin/file conftest.$ac_objext` in
13114 *N32*)
13115 emul="${emul}n32"
13116 ;;
13117 esac
13118 LD="${LD-ld} -m $emul"
13119 fi
13120 rm -rf conftest*
13121 ;;
13122
13123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13125 # Find out what ABI is being produced by ac_compile, and set linker
13126 # options accordingly. Note that the listed cases only cover the
13127 # situations where additional linker options are needed (such as when
13128 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13129 # vice versa); the common cases where no linker options are needed do
13130 # not appear in the list.
13131 echo 'int i;' > conftest.$ac_ext
13132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13133 (eval $ac_compile) 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }; then
13137 case `/usr/bin/file conftest.o` in
13138 *32-bit*)
13139 case $host in
13140 x86_64-*kfreebsd*-gnu)
13141 LD="${LD-ld} -m elf_i386_fbsd"
13142 ;;
13143 x86_64-*linux*)
13144 case `/usr/bin/file conftest.o` in
13145 *x86-64*)
13146 LD="${LD-ld} -m elf32_x86_64"
13147 ;;
13148 *)
13149 LD="${LD-ld} -m elf_i386"
13150 ;;
13151 esac
13152 ;;
13153 powerpc64le-*linux*)
13154 LD="${LD-ld} -m elf32lppclinux"
13155 ;;
13156 powerpc64-*linux*)
13157 LD="${LD-ld} -m elf32ppclinux"
13158 ;;
13159 s390x-*linux*)
13160 LD="${LD-ld} -m elf_s390"
13161 ;;
13162 sparc64-*linux*)
13163 LD="${LD-ld} -m elf32_sparc"
13164 ;;
13165 esac
13166 ;;
13167 *64-bit*)
13168 case $host in
13169 x86_64-*kfreebsd*-gnu)
13170 LD="${LD-ld} -m elf_x86_64_fbsd"
13171 ;;
13172 x86_64-*linux*)
13173 LD="${LD-ld} -m elf_x86_64"
13174 ;;
13175 powerpcle-*linux*)
13176 LD="${LD-ld} -m elf64lppc"
13177 ;;
13178 powerpc-*linux*)
13179 LD="${LD-ld} -m elf64ppc"
13180 ;;
13181 s390*-*linux*|s390*-*tpf*)
13182 LD="${LD-ld} -m elf64_s390"
13183 ;;
13184 sparc*-*linux*)
13185 LD="${LD-ld} -m elf64_sparc"
13186 ;;
13187 esac
13188 ;;
13189 esac
13190 fi
13191 rm -rf conftest*
13192 ;;
13193
13194 *-*-sco3.2v5*)
13195 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13196 SAVE_CFLAGS=$CFLAGS
13197 CFLAGS="$CFLAGS -belf"
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13199 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13200 if ${lt_cv_cc_needs_belf+:} false; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 ac_ext=c
13204 ac_cpp='$CPP $CPPFLAGS'
13205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13208
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211
13212 int
13213 main ()
13214 {
13215
13216 ;
13217 return 0;
13218 }
13219 _ACEOF
13220 if ac_fn_c_try_link "$LINENO"; then :
13221 lt_cv_cc_needs_belf=yes
13222 else
13223 lt_cv_cc_needs_belf=no
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 ac_ext=c
13228 ac_cpp='$CPP $CPPFLAGS'
13229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13232
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13235 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13236 if test yes != "$lt_cv_cc_needs_belf"; then
13237 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13238 CFLAGS=$SAVE_CFLAGS
13239 fi
13240 ;;
13241 *-*solaris*)
13242 # Find out what ABI is being produced by ac_compile, and set linker
13243 # options accordingly.
13244 echo 'int i;' > conftest.$ac_ext
13245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13246 (eval $ac_compile) 2>&5
13247 ac_status=$?
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }; then
13250 case `/usr/bin/file conftest.o` in
13251 *64-bit*)
13252 case $lt_cv_prog_gnu_ld in
13253 yes*)
13254 case $host in
13255 i?86-*-solaris*|x86_64-*-solaris*)
13256 LD="${LD-ld} -m elf_x86_64"
13257 ;;
13258 sparc*-*-solaris*)
13259 LD="${LD-ld} -m elf64_sparc"
13260 ;;
13261 esac
13262 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13263 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13264 LD=${LD-ld}_sol2
13265 fi
13266 ;;
13267 *)
13268 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13269 LD="${LD-ld} -64"
13270 fi
13271 ;;
13272 esac
13273 ;;
13274 esac
13275 fi
13276 rm -rf conftest*
13277 ;;
13278 esac
13279
13280 need_locks=$enable_libtool_lock
13281
13282 if test -n "$ac_tool_prefix"; then
13283 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13284 set dummy ${ac_tool_prefix}mt; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 if test -n "$MANIFEST_TOOL"; then
13291 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13292 else
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $PATH
13295 do
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13300 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13303 fi
13304 done
13305 done
13306 IFS=$as_save_IFS
13307
13308 fi
13309 fi
13310 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13311 if test -n "$MANIFEST_TOOL"; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13313 $as_echo "$MANIFEST_TOOL" >&6; }
13314 else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317 fi
13318
13319
13320 fi
13321 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13322 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13323 # Extract the first word of "mt", so it can be a program name with args.
13324 set dummy mt; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test -n "$ac_ct_MANIFEST_TOOL"; then
13331 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13335 do
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13343 fi
13344 done
13345 done
13346 IFS=$as_save_IFS
13347
13348 fi
13349 fi
13350 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13351 if test -n "$ac_ct_MANIFEST_TOOL"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13353 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358
13359 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13360 MANIFEST_TOOL=":"
13361 else
13362 case $cross_compiling:$ac_tool_warned in
13363 yes:)
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13366 ac_tool_warned=yes ;;
13367 esac
13368 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13369 fi
13370 else
13371 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13372 fi
13373
13374 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13376 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13377 if ${lt_cv_path_mainfest_tool+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 lt_cv_path_mainfest_tool=no
13381 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13382 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13383 cat conftest.err >&5
13384 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13385 lt_cv_path_mainfest_tool=yes
13386 fi
13387 rm -f conftest*
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13390 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13391 if test yes != "$lt_cv_path_mainfest_tool"; then
13392 MANIFEST_TOOL=:
13393 fi
13394
13395
13396
13397
13398
13399
13400 case $host_os in
13401 rhapsody* | darwin*)
13402 if test -n "$ac_tool_prefix"; then
13403 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13404 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13406 $as_echo_n "checking for $ac_word... " >&6; }
13407 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if test -n "$DSYMUTIL"; then
13411 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13412 else
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13415 do
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13423 fi
13424 done
13425 done
13426 IFS=$as_save_IFS
13427
13428 fi
13429 fi
13430 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13431 if test -n "$DSYMUTIL"; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13433 $as_echo "$DSYMUTIL" >&6; }
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13437 fi
13438
13439
13440 fi
13441 if test -z "$ac_cv_prog_DSYMUTIL"; then
13442 ac_ct_DSYMUTIL=$DSYMUTIL
13443 # Extract the first word of "dsymutil", so it can be a program name with args.
13444 set dummy dsymutil; ac_word=$2
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13446 $as_echo_n "checking for $ac_word... " >&6; }
13447 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 if test -n "$ac_ct_DSYMUTIL"; then
13451 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13452 else
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13455 do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13460 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13463 fi
13464 done
13465 done
13466 IFS=$as_save_IFS
13467
13468 fi
13469 fi
13470 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13471 if test -n "$ac_ct_DSYMUTIL"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13473 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13474 else
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13477 fi
13478
13479 if test "x$ac_ct_DSYMUTIL" = x; then
13480 DSYMUTIL=":"
13481 else
13482 case $cross_compiling:$ac_tool_warned in
13483 yes:)
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13486 ac_tool_warned=yes ;;
13487 esac
13488 DSYMUTIL=$ac_ct_DSYMUTIL
13489 fi
13490 else
13491 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13492 fi
13493
13494 if test -n "$ac_tool_prefix"; then
13495 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13496 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_prog_NMEDIT+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 if test -n "$NMEDIT"; then
13503 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13504 else
13505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506 for as_dir in $PATH
13507 do
13508 IFS=$as_save_IFS
13509 test -z "$as_dir" && as_dir=.
13510 for ac_exec_ext in '' $ac_executable_extensions; do
13511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514 break 2
13515 fi
13516 done
13517 done
13518 IFS=$as_save_IFS
13519
13520 fi
13521 fi
13522 NMEDIT=$ac_cv_prog_NMEDIT
13523 if test -n "$NMEDIT"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13525 $as_echo "$NMEDIT" >&6; }
13526 else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13529 fi
13530
13531
13532 fi
13533 if test -z "$ac_cv_prog_NMEDIT"; then
13534 ac_ct_NMEDIT=$NMEDIT
13535 # Extract the first word of "nmedit", so it can be a program name with args.
13536 set dummy nmedit; ac_word=$2
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538 $as_echo_n "checking for $ac_word... " >&6; }
13539 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 if test -n "$ac_ct_NMEDIT"; then
13543 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13544 else
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546 for as_dir in $PATH
13547 do
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13552 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 break 2
13555 fi
13556 done
13557 done
13558 IFS=$as_save_IFS
13559
13560 fi
13561 fi
13562 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13563 if test -n "$ac_ct_NMEDIT"; then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13565 $as_echo "$ac_ct_NMEDIT" >&6; }
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13569 fi
13570
13571 if test "x$ac_ct_NMEDIT" = x; then
13572 NMEDIT=":"
13573 else
13574 case $cross_compiling:$ac_tool_warned in
13575 yes:)
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13578 ac_tool_warned=yes ;;
13579 esac
13580 NMEDIT=$ac_ct_NMEDIT
13581 fi
13582 else
13583 NMEDIT="$ac_cv_prog_NMEDIT"
13584 fi
13585
13586 if test -n "$ac_tool_prefix"; then
13587 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13588 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590 $as_echo_n "checking for $ac_word... " >&6; }
13591 if ${ac_cv_prog_LIPO+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 if test -n "$LIPO"; then
13595 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13596 else
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13599 do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13604 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13607 fi
13608 done
13609 done
13610 IFS=$as_save_IFS
13611
13612 fi
13613 fi
13614 LIPO=$ac_cv_prog_LIPO
13615 if test -n "$LIPO"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13617 $as_echo "$LIPO" >&6; }
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13621 fi
13622
13623
13624 fi
13625 if test -z "$ac_cv_prog_LIPO"; then
13626 ac_ct_LIPO=$LIPO
13627 # Extract the first word of "lipo", so it can be a program name with args.
13628 set dummy lipo; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$ac_ct_LIPO"; then
13635 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13639 do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_prog_ac_ct_LIPO="lipo"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648 done
13649 done
13650 IFS=$as_save_IFS
13651
13652 fi
13653 fi
13654 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13655 if test -n "$ac_ct_LIPO"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13657 $as_echo "$ac_ct_LIPO" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13661 fi
13662
13663 if test "x$ac_ct_LIPO" = x; then
13664 LIPO=":"
13665 else
13666 case $cross_compiling:$ac_tool_warned in
13667 yes:)
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13670 ac_tool_warned=yes ;;
13671 esac
13672 LIPO=$ac_ct_LIPO
13673 fi
13674 else
13675 LIPO="$ac_cv_prog_LIPO"
13676 fi
13677
13678 if test -n "$ac_tool_prefix"; then
13679 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13680 set dummy ${ac_tool_prefix}otool; ac_word=$2
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13682 $as_echo_n "checking for $ac_word... " >&6; }
13683 if ${ac_cv_prog_OTOOL+:} false; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 if test -n "$OTOOL"; then
13687 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13688 else
13689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690 for as_dir in $PATH
13691 do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
13695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13696 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 break 2
13699 fi
13700 done
13701 done
13702 IFS=$as_save_IFS
13703
13704 fi
13705 fi
13706 OTOOL=$ac_cv_prog_OTOOL
13707 if test -n "$OTOOL"; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13709 $as_echo "$OTOOL" >&6; }
13710 else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713 fi
13714
13715
13716 fi
13717 if test -z "$ac_cv_prog_OTOOL"; then
13718 ac_ct_OTOOL=$OTOOL
13719 # Extract the first word of "otool", so it can be a program name with args.
13720 set dummy otool; ac_word=$2
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722 $as_echo_n "checking for $ac_word... " >&6; }
13723 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 if test -n "$ac_ct_OTOOL"; then
13727 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13728 else
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736 ac_cv_prog_ac_ct_OTOOL="otool"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 break 2
13739 fi
13740 done
13741 done
13742 IFS=$as_save_IFS
13743
13744 fi
13745 fi
13746 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13747 if test -n "$ac_ct_OTOOL"; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13749 $as_echo "$ac_ct_OTOOL" >&6; }
13750 else
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13753 fi
13754
13755 if test "x$ac_ct_OTOOL" = x; then
13756 OTOOL=":"
13757 else
13758 case $cross_compiling:$ac_tool_warned in
13759 yes:)
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13762 ac_tool_warned=yes ;;
13763 esac
13764 OTOOL=$ac_ct_OTOOL
13765 fi
13766 else
13767 OTOOL="$ac_cv_prog_OTOOL"
13768 fi
13769
13770 if test -n "$ac_tool_prefix"; then
13771 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13772 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if ${ac_cv_prog_OTOOL64+:} false; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 if test -n "$OTOOL64"; then
13779 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13783 do
13784 IFS=$as_save_IFS
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13788 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 break 2
13791 fi
13792 done
13793 done
13794 IFS=$as_save_IFS
13795
13796 fi
13797 fi
13798 OTOOL64=$ac_cv_prog_OTOOL64
13799 if test -n "$OTOOL64"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13801 $as_echo "$OTOOL64" >&6; }
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805 fi
13806
13807
13808 fi
13809 if test -z "$ac_cv_prog_OTOOL64"; then
13810 ac_ct_OTOOL64=$OTOOL64
13811 # Extract the first word of "otool64", so it can be a program name with args.
13812 set dummy otool64; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -n "$ac_ct_OTOOL64"; then
13819 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13823 do
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_prog_ac_ct_OTOOL64="otool64"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13831 fi
13832 done
13833 done
13834 IFS=$as_save_IFS
13835
13836 fi
13837 fi
13838 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13839 if test -n "$ac_ct_OTOOL64"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13841 $as_echo "$ac_ct_OTOOL64" >&6; }
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13845 fi
13846
13847 if test "x$ac_ct_OTOOL64" = x; then
13848 OTOOL64=":"
13849 else
13850 case $cross_compiling:$ac_tool_warned in
13851 yes:)
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13854 ac_tool_warned=yes ;;
13855 esac
13856 OTOOL64=$ac_ct_OTOOL64
13857 fi
13858 else
13859 OTOOL64="$ac_cv_prog_OTOOL64"
13860 fi
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13889 $as_echo_n "checking for -single_module linker flag... " >&6; }
13890 if ${lt_cv_apple_cc_single_mod+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 lt_cv_apple_cc_single_mod=no
13894 if test -z "$LT_MULTI_MODULE"; then
13895 # By default we will add the -single_module flag. You can override
13896 # by either setting the environment variable LT_MULTI_MODULE
13897 # non-empty at configure time, or by adding -multi_module to the
13898 # link flags.
13899 rm -rf libconftest.dylib*
13900 echo "int foo(void){return 1;}" > conftest.c
13901 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13902 -dynamiclib -Wl,-single_module conftest.c" >&5
13903 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13904 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13905 _lt_result=$?
13906 # If there is a non-empty error log, and "single_module"
13907 # appears in it, assume the flag caused a linker warning
13908 if test -s conftest.err && $GREP single_module conftest.err; then
13909 cat conftest.err >&5
13910 # Otherwise, if the output was created with a 0 exit code from
13911 # the compiler, it worked.
13912 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13913 lt_cv_apple_cc_single_mod=yes
13914 else
13915 cat conftest.err >&5
13916 fi
13917 rm -rf libconftest.dylib*
13918 rm -f conftest.*
13919 fi
13920 fi
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13922 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13925 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13926 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 lt_cv_ld_exported_symbols_list=no
13930 save_LDFLAGS=$LDFLAGS
13931 echo "_main" > conftest.sym
13932 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935
13936 int
13937 main ()
13938 {
13939
13940 ;
13941 return 0;
13942 }
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 lt_cv_ld_exported_symbols_list=yes
13946 else
13947 lt_cv_ld_exported_symbols_list=no
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 LDFLAGS=$save_LDFLAGS
13952
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13955 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13958 $as_echo_n "checking for -force_load linker flag... " >&6; }
13959 if ${lt_cv_ld_force_load+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 lt_cv_ld_force_load=no
13963 cat > conftest.c << _LT_EOF
13964 int forced_loaded() { return 2;}
13965 _LT_EOF
13966 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13967 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13968 echo "$AR cru libconftest.a conftest.o" >&5
13969 $AR cru libconftest.a conftest.o 2>&5
13970 echo "$RANLIB libconftest.a" >&5
13971 $RANLIB libconftest.a 2>&5
13972 cat > conftest.c << _LT_EOF
13973 int main() { return 0;}
13974 _LT_EOF
13975 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13976 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13977 _lt_result=$?
13978 if test -s conftest.err && $GREP force_load conftest.err; then
13979 cat conftest.err >&5
13980 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13981 lt_cv_ld_force_load=yes
13982 else
13983 cat conftest.err >&5
13984 fi
13985 rm -f conftest.err libconftest.a conftest conftest.c
13986 rm -rf conftest.dSYM
13987
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13990 $as_echo "$lt_cv_ld_force_load" >&6; }
13991 case $host_os in
13992 rhapsody* | darwin1.[012])
13993 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13994 darwin1.*)
13995 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13996 darwin*) # darwin 5.x on
13997 # if running on 10.5 or later, the deployment target defaults
13998 # to the OS version, if on x86, and 10.4, the deployment
13999 # target defaults to 10.4. Don't you love it?
14000 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14001 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14002 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14003 10.[012][,.]*)
14004 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14005 10.*)
14006 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14007 esac
14008 ;;
14009 esac
14010 if test yes = "$lt_cv_apple_cc_single_mod"; then
14011 _lt_dar_single_mod='$single_module'
14012 fi
14013 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14014 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14015 else
14016 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14017 fi
14018 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14019 _lt_dsymutil='~$DSYMUTIL $lib || :'
14020 else
14021 _lt_dsymutil=
14022 fi
14023 ;;
14024 esac
14025
14026 # func_munge_path_list VARIABLE PATH
14027 # -----------------------------------
14028 # VARIABLE is name of variable containing _space_ separated list of
14029 # directories to be munged by the contents of PATH, which is string
14030 # having a format:
14031 # "DIR[:DIR]:"
14032 # string "DIR[ DIR]" will be prepended to VARIABLE
14033 # ":DIR[:DIR]"
14034 # string "DIR[ DIR]" will be appended to VARIABLE
14035 # "DIRP[:DIRP]::[DIRA:]DIRA"
14036 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14037 # "DIRA[ DIRA]" will be appended to VARIABLE
14038 # "DIR[:DIR]"
14039 # VARIABLE will be replaced by "DIR[ DIR]"
14040 func_munge_path_list ()
14041 {
14042 case x$2 in
14043 x)
14044 ;;
14045 *:)
14046 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14047 ;;
14048 x:*)
14049 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14050 ;;
14051 *::*)
14052 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14053 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14054 ;;
14055 *)
14056 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14057 ;;
14058 esac
14059 }
14060
14061 for ac_header in dlfcn.h
14062 do :
14063 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14064 "
14065 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_DLFCN_H 1
14068 _ACEOF
14069
14070 fi
14071
14072 done
14073
14074
14075
14076
14077
14078 # Set options
14079
14080
14081
14082 enable_dlopen=no
14083
14084
14085 enable_win32_dll=no
14086
14087
14088 # Check whether --enable-shared was given.
14089 if test "${enable_shared+set}" = set; then :
14090 enableval=$enable_shared; p=${PACKAGE-default}
14091 case $enableval in
14092 yes) enable_shared=yes ;;
14093 no) enable_shared=no ;;
14094 *)
14095 enable_shared=no
14096 # Look at the argument we got. We use all the common list separators.
14097 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14098 for pkg in $enableval; do
14099 IFS=$lt_save_ifs
14100 if test "X$pkg" = "X$p"; then
14101 enable_shared=yes
14102 fi
14103 done
14104 IFS=$lt_save_ifs
14105 ;;
14106 esac
14107 else
14108 enable_shared=yes
14109 fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121 # Check whether --with-pic was given.
14122 if test "${with_pic+set}" = set; then :
14123 withval=$with_pic; lt_p=${PACKAGE-default}
14124 case $withval in
14125 yes|no) pic_mode=$withval ;;
14126 *)
14127 pic_mode=default
14128 # Look at the argument we got. We use all the common list separators.
14129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14130 for lt_pkg in $withval; do
14131 IFS=$lt_save_ifs
14132 if test "X$lt_pkg" = "X$lt_p"; then
14133 pic_mode=yes
14134 fi
14135 done
14136 IFS=$lt_save_ifs
14137 ;;
14138 esac
14139 else
14140 pic_mode=default
14141 fi
14142
14143
14144
14145
14146
14147
14148
14149
14150 # Check whether --enable-fast-install was given.
14151 if test "${enable_fast_install+set}" = set; then :
14152 enableval=$enable_fast_install; p=${PACKAGE-default}
14153 case $enableval in
14154 yes) enable_fast_install=yes ;;
14155 no) enable_fast_install=no ;;
14156 *)
14157 enable_fast_install=no
14158 # Look at the argument we got. We use all the common list separators.
14159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14160 for pkg in $enableval; do
14161 IFS=$lt_save_ifs
14162 if test "X$pkg" = "X$p"; then
14163 enable_fast_install=yes
14164 fi
14165 done
14166 IFS=$lt_save_ifs
14167 ;;
14168 esac
14169 else
14170 enable_fast_install=yes
14171 fi
14172
14173
14174
14175
14176
14177
14178
14179
14180 shared_archive_member_spec=
14181 case $host,$enable_shared in
14182 power*-*-aix[5-9]*,yes)
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14184 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14185
14186 # Check whether --with-aix-soname was given.
14187 if test "${with_aix_soname+set}" = set; then :
14188 withval=$with_aix_soname; case $withval in
14189 aix|svr4|both)
14190 ;;
14191 *)
14192 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14193 ;;
14194 esac
14195 lt_cv_with_aix_soname=$with_aix_soname
14196 else
14197 if ${lt_cv_with_aix_soname+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 lt_cv_with_aix_soname=aix
14201 fi
14202
14203 with_aix_soname=$lt_cv_with_aix_soname
14204 fi
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14207 $as_echo "$with_aix_soname" >&6; }
14208 if test aix != "$with_aix_soname"; then
14209 # For the AIX way of multilib, we name the shared archive member
14210 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14211 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14212 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14213 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14214 if test 64 = "${OBJECT_MODE-32}"; then
14215 shared_archive_member_spec=shr_64
14216 else
14217 shared_archive_member_spec=shr
14218 fi
14219 fi
14220 ;;
14221 *)
14222 with_aix_soname=aix
14223 ;;
14224 esac
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235 # This can be used to rebuild libtool when needed
14236 LIBTOOL_DEPS=$ltmain
14237
14238 # Always use our own libtool.
14239 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270 test -z "$LN_S" && LN_S="ln -s"
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285 if test -n "${ZSH_VERSION+set}"; then
14286 setopt NO_GLOB_SUBST
14287 fi
14288
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14290 $as_echo_n "checking for objdir... " >&6; }
14291 if ${lt_cv_objdir+:} false; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 rm -f .libs 2>/dev/null
14295 mkdir .libs 2>/dev/null
14296 if test -d .libs; then
14297 lt_cv_objdir=.libs
14298 else
14299 # MS-DOS does not allow filenames that begin with a dot.
14300 lt_cv_objdir=_libs
14301 fi
14302 rmdir .libs 2>/dev/null
14303 fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14305 $as_echo "$lt_cv_objdir" >&6; }
14306 objdir=$lt_cv_objdir
14307
14308
14309
14310
14311
14312 cat >>confdefs.h <<_ACEOF
14313 #define LT_OBJDIR "$lt_cv_objdir/"
14314 _ACEOF
14315
14316
14317
14318
14319 case $host_os in
14320 aix3*)
14321 # AIX sometimes has problems with the GCC collect2 program. For some
14322 # reason, if we set the COLLECT_NAMES environment variable, the problems
14323 # vanish in a puff of smoke.
14324 if test set != "${COLLECT_NAMES+set}"; then
14325 COLLECT_NAMES=
14326 export COLLECT_NAMES
14327 fi
14328 ;;
14329 esac
14330
14331 # Global variables:
14332 ofile=libtool
14333 can_build_shared=yes
14334
14335 # All known linkers require a '.a' archive for static linking (except MSVC,
14336 # which needs '.lib').
14337 libext=a
14338
14339 with_gnu_ld=$lt_cv_prog_gnu_ld
14340
14341 old_CC=$CC
14342 old_CFLAGS=$CFLAGS
14343
14344 # Set sane defaults for various variables
14345 test -z "$CC" && CC=cc
14346 test -z "$LTCC" && LTCC=$CC
14347 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14348 test -z "$LD" && LD=ld
14349 test -z "$ac_objext" && ac_objext=o
14350
14351 func_cc_basename $compiler
14352 cc_basename=$func_cc_basename_result
14353
14354
14355 # Only perform the check for file, if the check method requires it
14356 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14357 case $deplibs_check_method in
14358 file_magic*)
14359 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14361 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14362 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 case $MAGIC_CMD in
14366 [\\/*] | ?:[\\/]*)
14367 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14368 ;;
14369 *)
14370 lt_save_MAGIC_CMD=$MAGIC_CMD
14371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14373 for ac_dir in $ac_dummy; do
14374 IFS=$lt_save_ifs
14375 test -z "$ac_dir" && ac_dir=.
14376 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14377 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14378 if test -n "$file_magic_test_file"; then
14379 case $deplibs_check_method in
14380 "file_magic "*)
14381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14384 $EGREP "$file_magic_regex" > /dev/null; then
14385 :
14386 else
14387 cat <<_LT_EOF 1>&2
14388
14389 *** Warning: the command libtool uses to detect shared libraries,
14390 *** $file_magic_cmd, produces output that libtool cannot recognize.
14391 *** The result is that libtool may fail to recognize shared libraries
14392 *** as such. This will affect the creation of libtool libraries that
14393 *** depend on shared libraries, but programs linked with such libtool
14394 *** libraries will work regardless of this problem. Nevertheless, you
14395 *** may want to report the problem to your system manager and/or to
14396 *** [email protected]
14397
14398 _LT_EOF
14399 fi ;;
14400 esac
14401 fi
14402 break
14403 fi
14404 done
14405 IFS=$lt_save_ifs
14406 MAGIC_CMD=$lt_save_MAGIC_CMD
14407 ;;
14408 esac
14409 fi
14410
14411 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14412 if test -n "$MAGIC_CMD"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14414 $as_echo "$MAGIC_CMD" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421
14422
14423
14424 if test -z "$lt_cv_path_MAGIC_CMD"; then
14425 if test -n "$ac_tool_prefix"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14427 $as_echo_n "checking for file... " >&6; }
14428 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 case $MAGIC_CMD in
14432 [\\/*] | ?:[\\/]*)
14433 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14434 ;;
14435 *)
14436 lt_save_MAGIC_CMD=$MAGIC_CMD
14437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14439 for ac_dir in $ac_dummy; do
14440 IFS=$lt_save_ifs
14441 test -z "$ac_dir" && ac_dir=.
14442 if test -f "$ac_dir/file"; then
14443 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14444 if test -n "$file_magic_test_file"; then
14445 case $deplibs_check_method in
14446 "file_magic "*)
14447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14448 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14450 $EGREP "$file_magic_regex" > /dev/null; then
14451 :
14452 else
14453 cat <<_LT_EOF 1>&2
14454
14455 *** Warning: the command libtool uses to detect shared libraries,
14456 *** $file_magic_cmd, produces output that libtool cannot recognize.
14457 *** The result is that libtool may fail to recognize shared libraries
14458 *** as such. This will affect the creation of libtool libraries that
14459 *** depend on shared libraries, but programs linked with such libtool
14460 *** libraries will work regardless of this problem. Nevertheless, you
14461 *** may want to report the problem to your system manager and/or to
14462 *** [email protected]
14463
14464 _LT_EOF
14465 fi ;;
14466 esac
14467 fi
14468 break
14469 fi
14470 done
14471 IFS=$lt_save_ifs
14472 MAGIC_CMD=$lt_save_MAGIC_CMD
14473 ;;
14474 esac
14475 fi
14476
14477 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14478 if test -n "$MAGIC_CMD"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14480 $as_echo "$MAGIC_CMD" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485
14486
14487 else
14488 MAGIC_CMD=:
14489 fi
14490 fi
14491
14492 fi
14493 ;;
14494 esac
14495
14496 # Use C for the default configuration in the libtool script
14497
14498 lt_save_CC=$CC
14499 ac_ext=c
14500 ac_cpp='$CPP $CPPFLAGS'
14501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14504
14505
14506 # Source file extension for C test sources.
14507 ac_ext=c
14508
14509 # Object file extension for compiled C test sources.
14510 objext=o
14511 objext=$objext
14512
14513 # Code to be used in simple compile tests
14514 lt_simple_compile_test_code="int some_variable = 0;"
14515
14516 # Code to be used in simple link tests
14517 lt_simple_link_test_code='int main(){return(0);}'
14518
14519
14520
14521
14522
14523
14524
14525 # If no C compiler was specified, use CC.
14526 LTCC=${LTCC-"$CC"}
14527
14528 # If no C compiler flags were specified, use CFLAGS.
14529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14530
14531 # Allow CC to be a program name with arguments.
14532 compiler=$CC
14533
14534 # Save the default compiler, since it gets overwritten when the other
14535 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14536 compiler_DEFAULT=$CC
14537
14538 # save warnings/boilerplate of simple test code
14539 ac_outfile=conftest.$ac_objext
14540 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14541 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14542 _lt_compiler_boilerplate=`cat conftest.err`
14543 $RM conftest*
14544
14545 ac_outfile=conftest.$ac_objext
14546 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14547 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14548 _lt_linker_boilerplate=`cat conftest.err`
14549 $RM -r conftest*
14550
14551
14552 if test -n "$compiler"; then
14553
14554 lt_prog_compiler_no_builtin_flag=
14555
14556 if test yes = "$GCC"; then
14557 case $cc_basename in
14558 nvcc*)
14559 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14560 *)
14561 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14562 esac
14563
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_prog_compiler_rtti_exceptions=no
14570 ac_outfile=conftest.$ac_objext
14571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 # The option is referenced via a variable to avoid confusing sed.
14578 lt_compile=`echo "$ac_compile" | $SED \
14579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581 -e 's:$: $lt_compiler_flag:'`
14582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14583 (eval "$lt_compile" 2>conftest.err)
14584 ac_status=$?
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 if (exit $ac_status) && test -s "$ac_outfile"; then
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings other than the usual output.
14590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_rtti_exceptions=yes
14594 fi
14595 fi
14596 $RM conftest*
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14601
14602 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14603 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14604 else
14605 :
14606 fi
14607
14608 fi
14609
14610
14611
14612
14613
14614
14615 lt_prog_compiler_wl=
14616 lt_prog_compiler_pic=
14617 lt_prog_compiler_static=
14618
14619
14620 if test yes = "$GCC"; then
14621 lt_prog_compiler_wl='-Wl,'
14622 lt_prog_compiler_static='-static'
14623
14624 case $host_os in
14625 aix*)
14626 # All AIX code is PIC.
14627 if test ia64 = "$host_cpu"; then
14628 # AIX 5 now supports IA64 processor
14629 lt_prog_compiler_static='-Bstatic'
14630 fi
14631 lt_prog_compiler_pic='-fPIC'
14632 ;;
14633
14634 amigaos*)
14635 case $host_cpu in
14636 powerpc)
14637 # see comment about AmigaOS4 .so support
14638 lt_prog_compiler_pic='-fPIC'
14639 ;;
14640 m68k)
14641 # FIXME: we need at least 68020 code to build shared libraries, but
14642 # adding the '-m68020' flag to GCC prevents building anything better,
14643 # like '-m68040'.
14644 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14645 ;;
14646 esac
14647 ;;
14648
14649 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650 # PIC is the default for these OSes.
14651 ;;
14652
14653 mingw* | cygwin* | pw32* | os2* | cegcc*)
14654 # This hack is so that the source file can tell whether it is being
14655 # built for inclusion in a dll (and should export symbols for example).
14656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14657 # (--disable-auto-import) libraries
14658 lt_prog_compiler_pic='-DDLL_EXPORT'
14659 case $host_os in
14660 os2*)
14661 lt_prog_compiler_static='$wl-static'
14662 ;;
14663 esac
14664 ;;
14665
14666 darwin* | rhapsody*)
14667 # PIC is the default on this platform
14668 # Common symbols not allowed in MH_DYLIB files
14669 lt_prog_compiler_pic='-fno-common'
14670 ;;
14671
14672 haiku*)
14673 # PIC is the default for Haiku.
14674 # The "-static" flag exists, but is broken.
14675 lt_prog_compiler_static=
14676 ;;
14677
14678 hpux*)
14679 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14680 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14681 # sets the default TLS model and affects inlining.
14682 case $host_cpu in
14683 hppa*64*)
14684 # +Z the default
14685 ;;
14686 *)
14687 lt_prog_compiler_pic='-fPIC'
14688 ;;
14689 esac
14690 ;;
14691
14692 interix[3-9]*)
14693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14694 # Instead, we relocate shared libraries at runtime.
14695 ;;
14696
14697 msdosdjgpp*)
14698 # Just because we use GCC doesn't mean we suddenly get shared libraries
14699 # on systems that don't support them.
14700 lt_prog_compiler_can_build_shared=no
14701 enable_shared=no
14702 ;;
14703
14704 *nto* | *qnx*)
14705 # QNX uses GNU C++, but need to define -shared option too, otherwise
14706 # it will coredump.
14707 lt_prog_compiler_pic='-fPIC -shared'
14708 ;;
14709
14710 sysv4*MP*)
14711 if test -d /usr/nec; then
14712 lt_prog_compiler_pic=-Kconform_pic
14713 fi
14714 ;;
14715
14716 *)
14717 lt_prog_compiler_pic='-fPIC'
14718 ;;
14719 esac
14720
14721 case $cc_basename in
14722 nvcc*) # Cuda Compiler Driver 2.2
14723 lt_prog_compiler_wl='-Xlinker '
14724 if test -n "$lt_prog_compiler_pic"; then
14725 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14726 fi
14727 ;;
14728 esac
14729 else
14730 # PORTME Check for flag to pass linker flags through the system compiler.
14731 case $host_os in
14732 aix*)
14733 lt_prog_compiler_wl='-Wl,'
14734 if test ia64 = "$host_cpu"; then
14735 # AIX 5 now supports IA64 processor
14736 lt_prog_compiler_static='-Bstatic'
14737 else
14738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14739 fi
14740 ;;
14741
14742 darwin* | rhapsody*)
14743 # PIC is the default on this platform
14744 # Common symbols not allowed in MH_DYLIB files
14745 lt_prog_compiler_pic='-fno-common'
14746 case $cc_basename in
14747 nagfor*)
14748 # NAG Fortran compiler
14749 lt_prog_compiler_wl='-Wl,-Wl,,'
14750 lt_prog_compiler_pic='-PIC'
14751 lt_prog_compiler_static='-Bstatic'
14752 ;;
14753 esac
14754 ;;
14755
14756 mingw* | cygwin* | pw32* | os2* | cegcc*)
14757 # This hack is so that the source file can tell whether it is being
14758 # built for inclusion in a dll (and should export symbols for example).
14759 lt_prog_compiler_pic='-DDLL_EXPORT'
14760 case $host_os in
14761 os2*)
14762 lt_prog_compiler_static='$wl-static'
14763 ;;
14764 esac
14765 ;;
14766
14767 hpux9* | hpux10* | hpux11*)
14768 lt_prog_compiler_wl='-Wl,'
14769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14770 # not for PA HP-UX.
14771 case $host_cpu in
14772 hppa*64*|ia64*)
14773 # +Z the default
14774 ;;
14775 *)
14776 lt_prog_compiler_pic='+Z'
14777 ;;
14778 esac
14779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14780 lt_prog_compiler_static='$wl-a ${wl}archive'
14781 ;;
14782
14783 irix5* | irix6* | nonstopux*)
14784 lt_prog_compiler_wl='-Wl,'
14785 # PIC (with -KPIC) is the default.
14786 lt_prog_compiler_static='-non_shared'
14787 ;;
14788
14789 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14790 case $cc_basename in
14791 # old Intel for x86_64, which still supported -KPIC.
14792 ecc*)
14793 lt_prog_compiler_wl='-Wl,'
14794 lt_prog_compiler_pic='-KPIC'
14795 lt_prog_compiler_static='-static'
14796 ;;
14797 # icc used to be incompatible with GCC.
14798 # ICC 10 doesn't accept -KPIC any more.
14799 icc* | ifort*)
14800 lt_prog_compiler_wl='-Wl,'
14801 lt_prog_compiler_pic='-fPIC'
14802 lt_prog_compiler_static='-static'
14803 ;;
14804 # Lahey Fortran 8.1.
14805 lf95*)
14806 lt_prog_compiler_wl='-Wl,'
14807 lt_prog_compiler_pic='--shared'
14808 lt_prog_compiler_static='--static'
14809 ;;
14810 nagfor*)
14811 # NAG Fortran compiler
14812 lt_prog_compiler_wl='-Wl,-Wl,,'
14813 lt_prog_compiler_pic='-PIC'
14814 lt_prog_compiler_static='-Bstatic'
14815 ;;
14816 tcc*)
14817 # Fabrice Bellard et al's Tiny C Compiler
14818 lt_prog_compiler_wl='-Wl,'
14819 lt_prog_compiler_pic='-fPIC'
14820 lt_prog_compiler_static='-static'
14821 ;;
14822 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14823 # Portland Group compilers (*not* the Pentium gcc compiler,
14824 # which looks to be a dead project)
14825 lt_prog_compiler_wl='-Wl,'
14826 lt_prog_compiler_pic='-fpic'
14827 lt_prog_compiler_static='-Bstatic'
14828 ;;
14829 ccc*)
14830 lt_prog_compiler_wl='-Wl,'
14831 # All Alpha code is PIC.
14832 lt_prog_compiler_static='-non_shared'
14833 ;;
14834 xl* | bgxl* | bgf* | mpixl*)
14835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14836 lt_prog_compiler_wl='-Wl,'
14837 lt_prog_compiler_pic='-qpic'
14838 lt_prog_compiler_static='-qstaticlink'
14839 ;;
14840 *)
14841 case `$CC -V 2>&1 | sed 5q` in
14842 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14844 lt_prog_compiler_pic='-KPIC'
14845 lt_prog_compiler_static='-Bstatic'
14846 lt_prog_compiler_wl=''
14847 ;;
14848 *Sun\ F* | *Sun*Fortran*)
14849 lt_prog_compiler_pic='-KPIC'
14850 lt_prog_compiler_static='-Bstatic'
14851 lt_prog_compiler_wl='-Qoption ld '
14852 ;;
14853 *Sun\ C*)
14854 # Sun C 5.9
14855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
14857 lt_prog_compiler_wl='-Wl,'
14858 ;;
14859 *Intel*\ [CF]*Compiler*)
14860 lt_prog_compiler_wl='-Wl,'
14861 lt_prog_compiler_pic='-fPIC'
14862 lt_prog_compiler_static='-static'
14863 ;;
14864 *Portland\ Group*)
14865 lt_prog_compiler_wl='-Wl,'
14866 lt_prog_compiler_pic='-fpic'
14867 lt_prog_compiler_static='-Bstatic'
14868 ;;
14869 esac
14870 ;;
14871 esac
14872 ;;
14873
14874 newsos6)
14875 lt_prog_compiler_pic='-KPIC'
14876 lt_prog_compiler_static='-Bstatic'
14877 ;;
14878
14879 *nto* | *qnx*)
14880 # QNX uses GNU C++, but need to define -shared option too, otherwise
14881 # it will coredump.
14882 lt_prog_compiler_pic='-fPIC -shared'
14883 ;;
14884
14885 osf3* | osf4* | osf5*)
14886 lt_prog_compiler_wl='-Wl,'
14887 # All OSF/1 code is PIC.
14888 lt_prog_compiler_static='-non_shared'
14889 ;;
14890
14891 rdos*)
14892 lt_prog_compiler_static='-non_shared'
14893 ;;
14894
14895 solaris*)
14896 lt_prog_compiler_pic='-KPIC'
14897 lt_prog_compiler_static='-Bstatic'
14898 case $cc_basename in
14899 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14900 lt_prog_compiler_wl='-Qoption ld ';;
14901 *)
14902 lt_prog_compiler_wl='-Wl,';;
14903 esac
14904 ;;
14905
14906 sunos4*)
14907 lt_prog_compiler_wl='-Qoption ld '
14908 lt_prog_compiler_pic='-PIC'
14909 lt_prog_compiler_static='-Bstatic'
14910 ;;
14911
14912 sysv4 | sysv4.2uw2* | sysv4.3*)
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_pic='-KPIC'
14915 lt_prog_compiler_static='-Bstatic'
14916 ;;
14917
14918 sysv4*MP*)
14919 if test -d /usr/nec; then
14920 lt_prog_compiler_pic='-Kconform_pic'
14921 lt_prog_compiler_static='-Bstatic'
14922 fi
14923 ;;
14924
14925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14926 lt_prog_compiler_wl='-Wl,'
14927 lt_prog_compiler_pic='-KPIC'
14928 lt_prog_compiler_static='-Bstatic'
14929 ;;
14930
14931 unicos*)
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_can_build_shared=no
14934 ;;
14935
14936 uts4*)
14937 lt_prog_compiler_pic='-pic'
14938 lt_prog_compiler_static='-Bstatic'
14939 ;;
14940
14941 *)
14942 lt_prog_compiler_can_build_shared=no
14943 ;;
14944 esac
14945 fi
14946
14947 case $host_os in
14948 # For platforms that do not support PIC, -DPIC is meaningless:
14949 *djgpp*)
14950 lt_prog_compiler_pic=
14951 ;;
14952 *)
14953 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14954 ;;
14955 esac
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14959 if ${lt_cv_prog_compiler_pic+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14963 fi
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14967
14968 #
14969 # Check to make sure the PIC flag actually works.
14970 #
14971 if test -n "$lt_prog_compiler_pic"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14974 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 lt_cv_prog_compiler_pic_works=no
14978 ac_outfile=conftest.$ac_objext
14979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14981 # Insert the option either (1) after the last *FLAGS variable, or
14982 # (2) before a word containing "conftest.", or (3) at the end.
14983 # Note that $ac_compile itself does not contain backslashes and begins
14984 # with a dollar sign (not a hyphen), so the echo should work correctly.
14985 # The option is referenced via a variable to avoid confusing sed.
14986 lt_compile=`echo "$ac_compile" | $SED \
14987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14989 -e 's:$: $lt_compiler_flag:'`
14990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14991 (eval "$lt_compile" 2>conftest.err)
14992 ac_status=$?
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 if (exit $ac_status) && test -s "$ac_outfile"; then
14996 # The compiler can only warn and ignore the option if not recognized
14997 # So say no if there are warnings other than the usual output.
14998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15001 lt_cv_prog_compiler_pic_works=yes
15002 fi
15003 fi
15004 $RM conftest*
15005
15006 fi
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15009
15010 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15011 case $lt_prog_compiler_pic in
15012 "" | " "*) ;;
15013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15014 esac
15015 else
15016 lt_prog_compiler_pic=
15017 lt_prog_compiler_can_build_shared=no
15018 fi
15019
15020 fi
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032 #
15033 # Check to make sure the static flag actually works.
15034 #
15035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15038 if ${lt_cv_prog_compiler_static_works+:} false; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 lt_cv_prog_compiler_static_works=no
15042 save_LDFLAGS=$LDFLAGS
15043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15046 # The linker can only warn and ignore the option if not recognized
15047 # So say no if there are warnings
15048 if test -s conftest.err; then
15049 # Append any errors to the config.log.
15050 cat conftest.err 1>&5
15051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15053 if diff conftest.exp conftest.er2 >/dev/null; then
15054 lt_cv_prog_compiler_static_works=yes
15055 fi
15056 else
15057 lt_cv_prog_compiler_static_works=yes
15058 fi
15059 fi
15060 $RM -r conftest*
15061 LDFLAGS=$save_LDFLAGS
15062
15063 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15066
15067 if test yes = "$lt_cv_prog_compiler_static_works"; then
15068 :
15069 else
15070 lt_prog_compiler_static=
15071 fi
15072
15073
15074
15075
15076
15077
15078
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15081 if ${lt_cv_prog_compiler_c_o+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 lt_cv_prog_compiler_c_o=no
15085 $RM -r conftest 2>/dev/null
15086 mkdir conftest
15087 cd conftest
15088 mkdir out
15089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15090
15091 lt_compiler_flag="-o out/conftest2.$ac_objext"
15092 # Insert the option either (1) after the last *FLAGS variable, or
15093 # (2) before a word containing "conftest.", or (3) at the end.
15094 # Note that $ac_compile itself does not contain backslashes and begins
15095 # with a dollar sign (not a hyphen), so the echo should work correctly.
15096 lt_compile=`echo "$ac_compile" | $SED \
15097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15099 -e 's:$: $lt_compiler_flag:'`
15100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15101 (eval "$lt_compile" 2>out/conftest.err)
15102 ac_status=$?
15103 cat out/conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15106 then
15107 # The compiler can only warn and ignore the option if not recognized
15108 # So say no if there are warnings
15109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15112 lt_cv_prog_compiler_c_o=yes
15113 fi
15114 fi
15115 chmod u+w . 2>&5
15116 $RM conftest*
15117 # SGI C++ compiler will create directory out/ii_files/ for
15118 # template instantiation
15119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15120 $RM out/* && rmdir out
15121 cd ..
15122 $RM -r conftest
15123 $RM conftest*
15124
15125 fi
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15128
15129
15130
15131
15132
15133
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15136 if ${lt_cv_prog_compiler_c_o+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 lt_cv_prog_compiler_c_o=no
15140 $RM -r conftest 2>/dev/null
15141 mkdir conftest
15142 cd conftest
15143 mkdir out
15144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15145
15146 lt_compiler_flag="-o out/conftest2.$ac_objext"
15147 # Insert the option either (1) after the last *FLAGS variable, or
15148 # (2) before a word containing "conftest.", or (3) at the end.
15149 # Note that $ac_compile itself does not contain backslashes and begins
15150 # with a dollar sign (not a hyphen), so the echo should work correctly.
15151 lt_compile=`echo "$ac_compile" | $SED \
15152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15154 -e 's:$: $lt_compiler_flag:'`
15155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15156 (eval "$lt_compile" 2>out/conftest.err)
15157 ac_status=$?
15158 cat out/conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15161 then
15162 # The compiler can only warn and ignore the option if not recognized
15163 # So say no if there are warnings
15164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15167 lt_cv_prog_compiler_c_o=yes
15168 fi
15169 fi
15170 chmod u+w . 2>&5
15171 $RM conftest*
15172 # SGI C++ compiler will create directory out/ii_files/ for
15173 # template instantiation
15174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15175 $RM out/* && rmdir out
15176 cd ..
15177 $RM -r conftest
15178 $RM conftest*
15179
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15183
15184
15185
15186
15187 hard_links=nottested
15188 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15189 # do not overwrite the value of need_locks provided by the user
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15191 $as_echo_n "checking if we can lock with hard links... " >&6; }
15192 hard_links=yes
15193 $RM conftest*
15194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15195 touch conftest.a
15196 ln conftest.a conftest.b 2>&5 || hard_links=no
15197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15199 $as_echo "$hard_links" >&6; }
15200 if test no = "$hard_links"; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15202 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15203 need_locks=warn
15204 fi
15205 else
15206 need_locks=no
15207 fi
15208
15209
15210
15211
15212
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15216
15217 runpath_var=
15218 allow_undefined_flag=
15219 always_export_symbols=no
15220 archive_cmds=
15221 archive_expsym_cmds=
15222 compiler_needs_object=no
15223 enable_shared_with_static_runtimes=no
15224 export_dynamic_flag_spec=
15225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15226 hardcode_automatic=no
15227 hardcode_direct=no
15228 hardcode_direct_absolute=no
15229 hardcode_libdir_flag_spec=
15230 hardcode_libdir_separator=
15231 hardcode_minus_L=no
15232 hardcode_shlibpath_var=unsupported
15233 inherit_rpath=no
15234 link_all_deplibs=unknown
15235 module_cmds=
15236 module_expsym_cmds=
15237 old_archive_from_new_cmds=
15238 old_archive_from_expsyms_cmds=
15239 thread_safe_flag_spec=
15240 whole_archive_flag_spec=
15241 # include_expsyms should be a list of space-separated symbols to be *always*
15242 # included in the symbol list
15243 include_expsyms=
15244 # exclude_expsyms can be an extended regexp of symbols to exclude
15245 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15246 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15247 # as well as any symbol that contains 'd'.
15248 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15250 # platforms (ab)use it in PIC code, but their linkers get confused if
15251 # the symbol is explicitly referenced. Since portable code cannot
15252 # rely on this symbol name, it's probably fine to never include it in
15253 # preloaded symbol tables.
15254 # Exclude shared library initialization/finalization symbols.
15255 extract_expsyms_cmds=
15256
15257 case $host_os in
15258 cygwin* | mingw* | pw32* | cegcc*)
15259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15260 # When not using gcc, we currently assume that we are using
15261 # Microsoft Visual C++.
15262 if test yes != "$GCC"; then
15263 with_gnu_ld=no
15264 fi
15265 ;;
15266 interix*)
15267 # we just hope/assume this is gcc and not c89 (= MSVC++)
15268 with_gnu_ld=yes
15269 ;;
15270 openbsd* | bitrig*)
15271 with_gnu_ld=no
15272 ;;
15273 esac
15274
15275 ld_shlibs=yes
15276
15277 # On some targets, GNU ld is compatible enough with the native linker
15278 # that we're better off using the native interface for both.
15279 lt_use_gnu_ld_interface=no
15280 if test yes = "$with_gnu_ld"; then
15281 case $host_os in
15282 aix*)
15283 # The AIX port of GNU ld has always aspired to compatibility
15284 # with the native linker. However, as the warning in the GNU ld
15285 # block says, versions before 2.19.5* couldn't really create working
15286 # shared libraries, regardless of the interface used.
15287 case `$LD -v 2>&1` in
15288 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15289 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15290 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15291 *)
15292 lt_use_gnu_ld_interface=yes
15293 ;;
15294 esac
15295 ;;
15296 *)
15297 lt_use_gnu_ld_interface=yes
15298 ;;
15299 esac
15300 fi
15301
15302 if test yes = "$lt_use_gnu_ld_interface"; then
15303 # If archive_cmds runs LD, not CC, wlarc should be empty
15304 wlarc='$wl'
15305
15306 # Set some defaults for GNU ld with shared library support. These
15307 # are reset later if shared libraries are not supported. Putting them
15308 # here allows them to be overridden if necessary.
15309 runpath_var=LD_RUN_PATH
15310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15311 export_dynamic_flag_spec='$wl--export-dynamic'
15312 # ancient GNU ld didn't support --whole-archive et. al.
15313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15314 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15315 else
15316 whole_archive_flag_spec=
15317 fi
15318 supports_anon_versioning=no
15319 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15320 *GNU\ gold*) supports_anon_versioning=yes ;;
15321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15324 *\ 2.11.*) ;; # other 2.11 versions
15325 *) supports_anon_versioning=yes ;;
15326 esac
15327
15328 # See if GNU ld supports shared libraries.
15329 case $host_os in
15330 aix[3-9]*)
15331 # On AIX/PPC, the GNU linker is very broken
15332 if test ia64 != "$host_cpu"; then
15333 ld_shlibs=no
15334 cat <<_LT_EOF 1>&2
15335
15336 *** Warning: the GNU linker, at least up to release 2.19, is reported
15337 *** to be unable to reliably create shared libraries on AIX.
15338 *** Therefore, libtool is disabling shared libraries support. If you
15339 *** really care for shared libraries, you may want to install binutils
15340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15341 *** You will then need to restart the configuration process.
15342
15343 _LT_EOF
15344 fi
15345 ;;
15346
15347 amigaos*)
15348 case $host_cpu in
15349 powerpc)
15350 # see comment about AmigaOS4 .so support
15351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15352 archive_expsym_cmds=''
15353 ;;
15354 m68k)
15355 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)'
15356 hardcode_libdir_flag_spec='-L$libdir'
15357 hardcode_minus_L=yes
15358 ;;
15359 esac
15360 ;;
15361
15362 beos*)
15363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15364 allow_undefined_flag=unsupported
15365 # Joseph Beckenbach <[email protected]> says some releases of gcc
15366 # support --undefined. This deserves some investigation. FIXME
15367 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15368 else
15369 ld_shlibs=no
15370 fi
15371 ;;
15372
15373 cygwin* | mingw* | pw32* | cegcc*)
15374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15375 # as there is no search path for DLLs.
15376 hardcode_libdir_flag_spec='-L$libdir'
15377 export_dynamic_flag_spec='$wl--export-all-symbols'
15378 allow_undefined_flag=unsupported
15379 always_export_symbols=no
15380 enable_shared_with_static_runtimes=yes
15381 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'
15382 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15383
15384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15386 # If the export-symbols file already is a .def file, use it as
15387 # is; otherwise, prepend EXPORTS...
15388 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15389 cp $export_symbols $output_objdir/$soname.def;
15390 else
15391 echo EXPORTS > $output_objdir/$soname.def;
15392 cat $export_symbols >> $output_objdir/$soname.def;
15393 fi~
15394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15395 else
15396 ld_shlibs=no
15397 fi
15398 ;;
15399
15400 haiku*)
15401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15402 link_all_deplibs=yes
15403 ;;
15404
15405 os2*)
15406 hardcode_libdir_flag_spec='-L$libdir'
15407 hardcode_minus_L=yes
15408 allow_undefined_flag=unsupported
15409 shrext_cmds=.dll
15410 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15413 $ECHO EXPORTS >> $output_objdir/$libname.def~
15414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15416 emximp -o $lib $output_objdir/$libname.def'
15417 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15420 $ECHO EXPORTS >> $output_objdir/$libname.def~
15421 prefix_cmds="$SED"~
15422 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15423 prefix_cmds="$prefix_cmds -e 1d";
15424 fi~
15425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15428 emximp -o $lib $output_objdir/$libname.def'
15429 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15430 enable_shared_with_static_runtimes=yes
15431 ;;
15432
15433 interix[3-9]*)
15434 hardcode_direct=no
15435 hardcode_shlibpath_var=no
15436 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15437 export_dynamic_flag_spec='$wl-E'
15438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15439 # Instead, shared libraries are loaded at an image base (0x10000000 by
15440 # default) and relocated if they conflict, which is a slow very memory
15441 # consuming and fragmenting process. To avoid this, we pick a random,
15442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15445 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'
15446 ;;
15447
15448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15449 tmp_diet=no
15450 if test linux-dietlibc = "$host_os"; then
15451 case $cc_basename in
15452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15453 esac
15454 fi
15455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15456 && test no = "$tmp_diet"
15457 then
15458 tmp_addflag=' $pic_flag'
15459 tmp_sharedflag='-shared'
15460 case $cc_basename,$host_cpu in
15461 pgcc*) # Portland Group C compiler
15462 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'
15463 tmp_addflag=' $pic_flag'
15464 ;;
15465 pgf77* | pgf90* | pgf95* | pgfortran*)
15466 # Portland Group f77 and f90 compilers
15467 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'
15468 tmp_addflag=' $pic_flag -Mnomain' ;;
15469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15470 tmp_addflag=' -i_dynamic' ;;
15471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15472 tmp_addflag=' -i_dynamic -nofor_main' ;;
15473 ifc* | ifort*) # Intel Fortran compiler
15474 tmp_addflag=' -nofor_main' ;;
15475 lf95*) # Lahey Fortran 8.1
15476 whole_archive_flag_spec=
15477 tmp_sharedflag='--shared' ;;
15478 nagfor*) # NAGFOR 5.3
15479 tmp_sharedflag='-Wl,-shared' ;;
15480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15481 tmp_sharedflag='-qmkshrobj'
15482 tmp_addflag= ;;
15483 nvcc*) # Cuda Compiler Driver 2.2
15484 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'
15485 compiler_needs_object=yes
15486 ;;
15487 esac
15488 case `$CC -V 2>&1 | sed 5q` in
15489 *Sun\ C*) # Sun C 5.9
15490 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'
15491 compiler_needs_object=yes
15492 tmp_sharedflag='-G' ;;
15493 *Sun\ F*) # Sun Fortran 8.3
15494 tmp_sharedflag='-G' ;;
15495 esac
15496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15497
15498 if test yes = "$supports_anon_versioning"; then
15499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15501 echo "local: *; };" >> $output_objdir/$libname.ver~
15502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15503 fi
15504
15505 case $cc_basename in
15506 tcc*)
15507 export_dynamic_flag_spec='-rdynamic'
15508 ;;
15509 xlf* | bgf* | bgxlf* | mpixlf*)
15510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15511 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15512 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15513 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15514 if test yes = "$supports_anon_versioning"; then
15515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15517 echo "local: *; };" >> $output_objdir/$libname.ver~
15518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15519 fi
15520 ;;
15521 esac
15522 else
15523 ld_shlibs=no
15524 fi
15525 ;;
15526
15527 netbsd*)
15528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15530 wlarc=
15531 else
15532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15534 fi
15535 ;;
15536
15537 solaris*)
15538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15539 ld_shlibs=no
15540 cat <<_LT_EOF 1>&2
15541
15542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15543 *** create shared libraries on Solaris systems. Therefore, libtool
15544 *** is disabling shared libraries support. We urge you to upgrade GNU
15545 *** binutils to release 2.9.1 or newer. Another option is to modify
15546 *** your PATH or compiler configuration so that the native linker is
15547 *** used, and then restart.
15548
15549 _LT_EOF
15550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15553 else
15554 ld_shlibs=no
15555 fi
15556 ;;
15557
15558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15559 case `$LD -v 2>&1` in
15560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15561 ld_shlibs=no
15562 cat <<_LT_EOF 1>&2
15563
15564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15565 *** reliably create shared libraries on SCO systems. Therefore, libtool
15566 *** is disabling shared libraries support. We urge you to upgrade GNU
15567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15568 *** your PATH or compiler configuration so that the native linker is
15569 *** used, and then restart.
15570
15571 _LT_EOF
15572 ;;
15573 *)
15574 # For security reasons, it is highly recommended that you always
15575 # use absolute paths for naming shared libraries, and exclude the
15576 # DT_RUNPATH tag from executables and libraries. But doing so
15577 # requires that you compile everything twice, which is a pain.
15578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15582 else
15583 ld_shlibs=no
15584 fi
15585 ;;
15586 esac
15587 ;;
15588
15589 sunos4*)
15590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15591 wlarc=
15592 hardcode_direct=yes
15593 hardcode_shlibpath_var=no
15594 ;;
15595
15596 *)
15597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15600 else
15601 ld_shlibs=no
15602 fi
15603 ;;
15604 esac
15605
15606 if test no = "$ld_shlibs"; then
15607 runpath_var=
15608 hardcode_libdir_flag_spec=
15609 export_dynamic_flag_spec=
15610 whole_archive_flag_spec=
15611 fi
15612 else
15613 # PORTME fill in a description of your system's linker (not GNU ld)
15614 case $host_os in
15615 aix3*)
15616 allow_undefined_flag=unsupported
15617 always_export_symbols=yes
15618 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'
15619 # Note: this linker hardcodes the directories in LIBPATH if there
15620 # are no directories specified by -L.
15621 hardcode_minus_L=yes
15622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15623 # Neither direct hardcoding nor static linking is supported with a
15624 # broken collect2.
15625 hardcode_direct=unsupported
15626 fi
15627 ;;
15628
15629 aix[4-9]*)
15630 if test ia64 = "$host_cpu"; then
15631 # On IA64, the linker does run time linking by default, so we don't
15632 # have to do anything special.
15633 aix_use_runtimelinking=no
15634 exp_sym_flag='-Bexport'
15635 no_entry_flag=
15636 else
15637 # If we're using GNU nm, then we don't want the "-C" option.
15638 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15639 # Without the "-l" option, or with the "-B" option, AIX nm treats
15640 # weak defined symbols like other global defined symbols, whereas
15641 # GNU nm marks them as "W".
15642 # While the 'weak' keyword is ignored in the Export File, we need
15643 # it in the Import File for the 'aix-soname' feature, so we have
15644 # to replace the "-B" option with "-P" for AIX nm.
15645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15646 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15647 else
15648 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15649 fi
15650 aix_use_runtimelinking=no
15651
15652 # Test if we are trying to use run time linking or normal
15653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15654 # have runtime linking enabled, and use it for executables.
15655 # For shared libraries, we enable/disable runtime linking
15656 # depending on the kind of the shared library created -
15657 # when "with_aix_soname,aix_use_runtimelinking" is:
15658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15659 # "aix,yes" lib.so shared, rtl:yes, for executables
15660 # lib.a static archive
15661 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15662 # lib.a(lib.so.V) shared, rtl:no, for executables
15663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15664 # lib.a(lib.so.V) shared, rtl:no
15665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15666 # lib.a static archive
15667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15668 for ld_flag in $LDFLAGS; do
15669 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15670 aix_use_runtimelinking=yes
15671 break
15672 fi
15673 done
15674 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15675 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15676 # so we don't have lib.a shared libs to link our executables.
15677 # We have to force runtime linking in this case.
15678 aix_use_runtimelinking=yes
15679 LDFLAGS="$LDFLAGS -Wl,-brtl"
15680 fi
15681 ;;
15682 esac
15683
15684 exp_sym_flag='-bexport'
15685 no_entry_flag='-bnoentry'
15686 fi
15687
15688 # When large executables or shared objects are built, AIX ld can
15689 # have problems creating the table of contents. If linking a library
15690 # or program results in "error TOC overflow" add -mminimal-toc to
15691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15693
15694 archive_cmds=''
15695 hardcode_direct=yes
15696 hardcode_direct_absolute=yes
15697 hardcode_libdir_separator=':'
15698 link_all_deplibs=yes
15699 file_list_spec='$wl-f,'
15700 case $with_aix_soname,$aix_use_runtimelinking in
15701 aix,*) ;; # traditional, no import file
15702 svr4,* | *,yes) # use import file
15703 # The Import File defines what to hardcode.
15704 hardcode_direct=no
15705 hardcode_direct_absolute=no
15706 ;;
15707 esac
15708
15709 if test yes = "$GCC"; then
15710 case $host_os in aix4.[012]|aix4.[012].*)
15711 # We only want to do this on AIX 4.2 and lower, the check
15712 # below for broken collect2 doesn't work under 4.3+
15713 collect2name=`$CC -print-prog-name=collect2`
15714 if test -f "$collect2name" &&
15715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15716 then
15717 # We have reworked collect2
15718 :
15719 else
15720 # We have old collect2
15721 hardcode_direct=unsupported
15722 # It fails to find uninstalled libraries when the uninstalled
15723 # path is not listed in the libpath. Setting hardcode_minus_L
15724 # to unsupported forces relinking
15725 hardcode_minus_L=yes
15726 hardcode_libdir_flag_spec='-L$libdir'
15727 hardcode_libdir_separator=
15728 fi
15729 ;;
15730 esac
15731 shared_flag='-shared'
15732 if test yes = "$aix_use_runtimelinking"; then
15733 shared_flag="$shared_flag "'$wl-G'
15734 fi
15735 # Need to ensure runtime linking is disabled for the traditional
15736 # shared library, or the linker may eventually find shared libraries
15737 # /with/ Import File - we do not want to mix them.
15738 shared_flag_aix='-shared'
15739 shared_flag_svr4='-shared $wl-G'
15740 else
15741 # not using gcc
15742 if test ia64 = "$host_cpu"; then
15743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15744 # chokes on -Wl,-G. The following line is correct:
15745 shared_flag='-G'
15746 else
15747 if test yes = "$aix_use_runtimelinking"; then
15748 shared_flag='$wl-G'
15749 else
15750 shared_flag='$wl-bM:SRE'
15751 fi
15752 shared_flag_aix='$wl-bM:SRE'
15753 shared_flag_svr4='$wl-G'
15754 fi
15755 fi
15756
15757 export_dynamic_flag_spec='$wl-bexpall'
15758 # It seems that -bexpall does not export symbols beginning with
15759 # underscore (_), so it is better to generate a list of symbols to export.
15760 always_export_symbols=yes
15761 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15762 # Warning - without using the other runtime loading flags (-brtl),
15763 # -berok will link without error, but may produce a broken library.
15764 allow_undefined_flag='-berok'
15765 # Determine the default libpath from the value encoded in an
15766 # empty executable.
15767 if test set = "${lt_cv_aix_libpath+set}"; then
15768 aix_libpath=$lt_cv_aix_libpath
15769 else
15770 if ${lt_cv_aix_libpath_+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775
15776 int
15777 main ()
15778 {
15779
15780 ;
15781 return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"; then :
15785
15786 lt_aix_libpath_sed='
15787 /Import File Strings/,/^$/ {
15788 /^0/ {
15789 s/^0 *\([^ ]*\) *$/\1/
15790 p
15791 }
15792 }'
15793 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15794 # Check for a 64-bit object if we didn't find anything.
15795 if test -z "$lt_cv_aix_libpath_"; then
15796 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15797 fi
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 if test -z "$lt_cv_aix_libpath_"; then
15802 lt_cv_aix_libpath_=/usr/lib:/lib
15803 fi
15804
15805 fi
15806
15807 aix_libpath=$lt_cv_aix_libpath_
15808 fi
15809
15810 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15811 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15812 else
15813 if test ia64 = "$host_cpu"; then
15814 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15815 allow_undefined_flag="-z nodefs"
15816 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"
15817 else
15818 # Determine the default libpath from the value encoded in an
15819 # empty executable.
15820 if test set = "${lt_cv_aix_libpath+set}"; then
15821 aix_libpath=$lt_cv_aix_libpath
15822 else
15823 if ${lt_cv_aix_libpath_+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828
15829 int
15830 main ()
15831 {
15832
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"; then :
15838
15839 lt_aix_libpath_sed='
15840 /Import File Strings/,/^$/ {
15841 /^0/ {
15842 s/^0 *\([^ ]*\) *$/\1/
15843 p
15844 }
15845 }'
15846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15847 # Check for a 64-bit object if we didn't find anything.
15848 if test -z "$lt_cv_aix_libpath_"; then
15849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15850 fi
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext \
15853 conftest$ac_exeext conftest.$ac_ext
15854 if test -z "$lt_cv_aix_libpath_"; then
15855 lt_cv_aix_libpath_=/usr/lib:/lib
15856 fi
15857
15858 fi
15859
15860 aix_libpath=$lt_cv_aix_libpath_
15861 fi
15862
15863 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15864 # Warning - without using the other run time loading flags,
15865 # -berok will link without error, but may produce a broken library.
15866 no_undefined_flag=' $wl-bernotok'
15867 allow_undefined_flag=' $wl-berok'
15868 if test yes = "$with_gnu_ld"; then
15869 # We only use this code for GNU lds that support --whole-archive.
15870 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15871 else
15872 # Exported symbols can be pulled into shared objects from archives
15873 whole_archive_flag_spec='$convenience'
15874 fi
15875 archive_cmds_need_lc=yes
15876 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15877 # -brtl affects multiple linker settings, -berok does not and is overridden later
15878 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15879 if test svr4 != "$with_aix_soname"; then
15880 # This is similar to how AIX traditionally builds its shared libraries.
15881 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15882 fi
15883 if test aix != "$with_aix_soname"; then
15884 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15885 else
15886 # used by -dlpreopen to get the symbols
15887 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15888 fi
15889 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15890 fi
15891 fi
15892 ;;
15893
15894 amigaos*)
15895 case $host_cpu in
15896 powerpc)
15897 # see comment about AmigaOS4 .so support
15898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15899 archive_expsym_cmds=''
15900 ;;
15901 m68k)
15902 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)'
15903 hardcode_libdir_flag_spec='-L$libdir'
15904 hardcode_minus_L=yes
15905 ;;
15906 esac
15907 ;;
15908
15909 bsdi[45]*)
15910 export_dynamic_flag_spec=-rdynamic
15911 ;;
15912
15913 cygwin* | mingw* | pw32* | cegcc*)
15914 # When not using gcc, we currently assume that we are using
15915 # Microsoft Visual C++.
15916 # hardcode_libdir_flag_spec is actually meaningless, as there is
15917 # no search path for DLLs.
15918 case $cc_basename in
15919 cl*)
15920 # Native MSVC
15921 hardcode_libdir_flag_spec=' '
15922 allow_undefined_flag=unsupported
15923 always_export_symbols=yes
15924 file_list_spec='@'
15925 # Tell ltmain to make .lib files, not .a files.
15926 libext=lib
15927 # Tell ltmain to make .dll files, not .so files.
15928 shrext_cmds=.dll
15929 # FIXME: Setting linknames here is a bad hack.
15930 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15932 cp "$export_symbols" "$output_objdir/$soname.def";
15933 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15934 else
15935 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15936 fi~
15937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15938 linknames='
15939 # The linker will not automatically build a static lib if we build a DLL.
15940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15941 enable_shared_with_static_runtimes=yes
15942 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15944 # Don't use ranlib
15945 old_postinstall_cmds='chmod 644 $oldlib'
15946 postlink_cmds='lt_outputfile="@OUTPUT@"~
15947 lt_tool_outputfile="@TOOL_OUTPUT@"~
15948 case $lt_outputfile in
15949 *.exe|*.EXE) ;;
15950 *)
15951 lt_outputfile=$lt_outputfile.exe
15952 lt_tool_outputfile=$lt_tool_outputfile.exe
15953 ;;
15954 esac~
15955 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15957 $RM "$lt_outputfile.manifest";
15958 fi'
15959 ;;
15960 *)
15961 # Assume MSVC wrapper
15962 hardcode_libdir_flag_spec=' '
15963 allow_undefined_flag=unsupported
15964 # Tell ltmain to make .lib files, not .a files.
15965 libext=lib
15966 # Tell ltmain to make .dll files, not .so files.
15967 shrext_cmds=.dll
15968 # FIXME: Setting linknames here is a bad hack.
15969 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15970 # The linker will automatically build a .lib file if we build a DLL.
15971 old_archive_from_new_cmds='true'
15972 # FIXME: Should let the user specify the lib program.
15973 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15974 enable_shared_with_static_runtimes=yes
15975 ;;
15976 esac
15977 ;;
15978
15979 darwin* | rhapsody*)
15980
15981
15982 archive_cmds_need_lc=no
15983 hardcode_direct=no
15984 hardcode_automatic=yes
15985 hardcode_shlibpath_var=unsupported
15986 if test yes = "$lt_cv_ld_force_load"; then
15987 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\"`'
15988
15989 else
15990 whole_archive_flag_spec=''
15991 fi
15992 link_all_deplibs=yes
15993 allow_undefined_flag=$_lt_dar_allow_undefined
15994 case $cc_basename in
15995 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15996 *) _lt_dar_can_shared=$GCC ;;
15997 esac
15998 if test yes = "$_lt_dar_can_shared"; then
15999 output_verbose_link_cmd=func_echo_all
16000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16002 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"
16003 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"
16004
16005 else
16006 ld_shlibs=no
16007 fi
16008
16009 ;;
16010
16011 dgux*)
16012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013 hardcode_libdir_flag_spec='-L$libdir'
16014 hardcode_shlibpath_var=no
16015 ;;
16016
16017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16018 # support. Future versions do this automatically, but an explicit c++rt0.o
16019 # does not break anything, and helps significantly (at the cost of a little
16020 # extra space).
16021 freebsd2.2*)
16022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16023 hardcode_libdir_flag_spec='-R$libdir'
16024 hardcode_direct=yes
16025 hardcode_shlibpath_var=no
16026 ;;
16027
16028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16029 freebsd2.*)
16030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16031 hardcode_direct=yes
16032 hardcode_minus_L=yes
16033 hardcode_shlibpath_var=no
16034 ;;
16035
16036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16037 freebsd* | dragonfly*)
16038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16039 hardcode_libdir_flag_spec='-R$libdir'
16040 hardcode_direct=yes
16041 hardcode_shlibpath_var=no
16042 ;;
16043
16044 hpux9*)
16045 if test yes = "$GCC"; then
16046 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16047 else
16048 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16049 fi
16050 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16051 hardcode_libdir_separator=:
16052 hardcode_direct=yes
16053
16054 # hardcode_minus_L: Not really in the search PATH,
16055 # but as the default location of the library.
16056 hardcode_minus_L=yes
16057 export_dynamic_flag_spec='$wl-E'
16058 ;;
16059
16060 hpux10*)
16061 if test yes,no = "$GCC,$with_gnu_ld"; then
16062 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16063 else
16064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16065 fi
16066 if test no = "$with_gnu_ld"; then
16067 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16068 hardcode_libdir_separator=:
16069 hardcode_direct=yes
16070 hardcode_direct_absolute=yes
16071 export_dynamic_flag_spec='$wl-E'
16072 # hardcode_minus_L: Not really in the search PATH,
16073 # but as the default location of the library.
16074 hardcode_minus_L=yes
16075 fi
16076 ;;
16077
16078 hpux11*)
16079 if test yes,no = "$GCC,$with_gnu_ld"; then
16080 case $host_cpu in
16081 hppa*64*)
16082 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16083 ;;
16084 ia64*)
16085 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16086 ;;
16087 *)
16088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16089 ;;
16090 esac
16091 else
16092 case $host_cpu in
16093 hppa*64*)
16094 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 ;;
16096 ia64*)
16097 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16098 ;;
16099 *)
16100
16101 # Older versions of the 11.00 compiler do not understand -b yet
16102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16104 $as_echo_n "checking if $CC understands -b... " >&6; }
16105 if ${lt_cv_prog_compiler__b+:} false; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 lt_cv_prog_compiler__b=no
16109 save_LDFLAGS=$LDFLAGS
16110 LDFLAGS="$LDFLAGS -b"
16111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16113 # The linker can only warn and ignore the option if not recognized
16114 # So say no if there are warnings
16115 if test -s conftest.err; then
16116 # Append any errors to the config.log.
16117 cat conftest.err 1>&5
16118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16120 if diff conftest.exp conftest.er2 >/dev/null; then
16121 lt_cv_prog_compiler__b=yes
16122 fi
16123 else
16124 lt_cv_prog_compiler__b=yes
16125 fi
16126 fi
16127 $RM -r conftest*
16128 LDFLAGS=$save_LDFLAGS
16129
16130 fi
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16133
16134 if test yes = "$lt_cv_prog_compiler__b"; then
16135 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16136 else
16137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16138 fi
16139
16140 ;;
16141 esac
16142 fi
16143 if test no = "$with_gnu_ld"; then
16144 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16145 hardcode_libdir_separator=:
16146
16147 case $host_cpu in
16148 hppa*64*|ia64*)
16149 hardcode_direct=no
16150 hardcode_shlibpath_var=no
16151 ;;
16152 *)
16153 hardcode_direct=yes
16154 hardcode_direct_absolute=yes
16155 export_dynamic_flag_spec='$wl-E'
16156
16157 # hardcode_minus_L: Not really in the search PATH,
16158 # but as the default location of the library.
16159 hardcode_minus_L=yes
16160 ;;
16161 esac
16162 fi
16163 ;;
16164
16165 irix5* | irix6* | nonstopux*)
16166 if test yes = "$GCC"; then
16167 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'
16168 # Try to use the -exported_symbol ld option, if it does not
16169 # work, assume that -exports_file does not work either and
16170 # implicitly export all symbols.
16171 # This should be the same for all languages, so no per-tag cache variable.
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16174 if ${lt_cv_irix_exported_symbol+:} false; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16177 save_LDFLAGS=$LDFLAGS
16178 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 int foo (void) { return 0; }
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 lt_cv_irix_exported_symbol=yes
16185 else
16186 lt_cv_irix_exported_symbol=no
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 LDFLAGS=$save_LDFLAGS
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16194 if test yes = "$lt_cv_irix_exported_symbol"; then
16195 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'
16196 fi
16197 else
16198 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'
16199 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'
16200 fi
16201 archive_cmds_need_lc='no'
16202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16203 hardcode_libdir_separator=:
16204 inherit_rpath=yes
16205 link_all_deplibs=yes
16206 ;;
16207
16208 linux*)
16209 case $cc_basename in
16210 tcc*)
16211 # Fabrice Bellard et al's Tiny C Compiler
16212 ld_shlibs=yes
16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214 ;;
16215 esac
16216 ;;
16217
16218 netbsd*)
16219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16221 else
16222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16223 fi
16224 hardcode_libdir_flag_spec='-R$libdir'
16225 hardcode_direct=yes
16226 hardcode_shlibpath_var=no
16227 ;;
16228
16229 newsos6)
16230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16231 hardcode_direct=yes
16232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16233 hardcode_libdir_separator=:
16234 hardcode_shlibpath_var=no
16235 ;;
16236
16237 *nto* | *qnx*)
16238 ;;
16239
16240 openbsd* | bitrig*)
16241 if test -f /usr/libexec/ld.so; then
16242 hardcode_direct=yes
16243 hardcode_shlibpath_var=no
16244 hardcode_direct_absolute=yes
16245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16248 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16249 export_dynamic_flag_spec='$wl-E'
16250 else
16251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16252 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16253 fi
16254 else
16255 ld_shlibs=no
16256 fi
16257 ;;
16258
16259 os2*)
16260 hardcode_libdir_flag_spec='-L$libdir'
16261 hardcode_minus_L=yes
16262 allow_undefined_flag=unsupported
16263 shrext_cmds=.dll
16264 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16265 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16266 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16267 $ECHO EXPORTS >> $output_objdir/$libname.def~
16268 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16269 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16270 emximp -o $lib $output_objdir/$libname.def'
16271 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16272 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16273 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16274 $ECHO EXPORTS >> $output_objdir/$libname.def~
16275 prefix_cmds="$SED"~
16276 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16277 prefix_cmds="$prefix_cmds -e 1d";
16278 fi~
16279 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16280 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16282 emximp -o $lib $output_objdir/$libname.def'
16283 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16284 enable_shared_with_static_runtimes=yes
16285 ;;
16286
16287 osf3*)
16288 if test yes = "$GCC"; then
16289 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16290 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'
16291 else
16292 allow_undefined_flag=' -expect_unresolved \*'
16293 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'
16294 fi
16295 archive_cmds_need_lc='no'
16296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16297 hardcode_libdir_separator=:
16298 ;;
16299
16300 osf4* | osf5*) # as osf3* with the addition of -msym flag
16301 if test yes = "$GCC"; then
16302 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16303 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'
16304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16305 else
16306 allow_undefined_flag=' -expect_unresolved \*'
16307 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'
16308 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~
16309 $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'
16310
16311 # Both c and cxx compiler support -rpath directly
16312 hardcode_libdir_flag_spec='-rpath $libdir'
16313 fi
16314 archive_cmds_need_lc='no'
16315 hardcode_libdir_separator=:
16316 ;;
16317
16318 solaris*)
16319 no_undefined_flag=' -z defs'
16320 if test yes = "$GCC"; then
16321 wlarc='$wl'
16322 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16324 $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'
16325 else
16326 case `$CC -V 2>&1` in
16327 *"Compilers 5.0"*)
16328 wlarc=''
16329 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16331 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16332 ;;
16333 *)
16334 wlarc='$wl'
16335 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16337 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16338 ;;
16339 esac
16340 fi
16341 hardcode_libdir_flag_spec='-R$libdir'
16342 hardcode_shlibpath_var=no
16343 case $host_os in
16344 solaris2.[0-5] | solaris2.[0-5].*) ;;
16345 *)
16346 # The compiler driver will combine and reorder linker options,
16347 # but understands '-z linker_flag'. GCC discards it without '$wl',
16348 # but is careful enough not to reorder.
16349 # Supported since Solaris 2.6 (maybe 2.5.1?)
16350 if test yes = "$GCC"; then
16351 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16352 else
16353 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16354 fi
16355 ;;
16356 esac
16357 link_all_deplibs=yes
16358 ;;
16359
16360 sunos4*)
16361 if test sequent = "$host_vendor"; then
16362 # Use $CC to link under sequent, because it throws in some extra .o
16363 # files that make .init and .fini sections work.
16364 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16365 else
16366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16367 fi
16368 hardcode_libdir_flag_spec='-L$libdir'
16369 hardcode_direct=yes
16370 hardcode_minus_L=yes
16371 hardcode_shlibpath_var=no
16372 ;;
16373
16374 sysv4)
16375 case $host_vendor in
16376 sni)
16377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_direct=yes # is this really true???
16379 ;;
16380 siemens)
16381 ## LD is ld it makes a PLAMLIB
16382 ## CC just makes a GrossModule.
16383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16384 reload_cmds='$CC -r -o $output$reload_objs'
16385 hardcode_direct=no
16386 ;;
16387 motorola)
16388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16390 ;;
16391 esac
16392 runpath_var='LD_RUN_PATH'
16393 hardcode_shlibpath_var=no
16394 ;;
16395
16396 sysv4.3*)
16397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_shlibpath_var=no
16399 export_dynamic_flag_spec='-Bexport'
16400 ;;
16401
16402 sysv4*MP*)
16403 if test -d /usr/nec; then
16404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 hardcode_shlibpath_var=no
16406 runpath_var=LD_RUN_PATH
16407 hardcode_runpath_var=yes
16408 ld_shlibs=yes
16409 fi
16410 ;;
16411
16412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16413 no_undefined_flag='$wl-z,text'
16414 archive_cmds_need_lc=no
16415 hardcode_shlibpath_var=no
16416 runpath_var='LD_RUN_PATH'
16417
16418 if test yes = "$GCC"; then
16419 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 else
16422 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 fi
16425 ;;
16426
16427 sysv5* | sco3.2v5* | sco5v6*)
16428 # Note: We CANNOT use -z defs as we might desire, because we do not
16429 # link with -lc, and that would cause any symbols used from libc to
16430 # always be unresolved, which means just about no library would
16431 # ever link correctly. If we're not using GNU ld we use -z text
16432 # though, which does catch some bad symbols but isn't as heavy-handed
16433 # as -z defs.
16434 no_undefined_flag='$wl-z,text'
16435 allow_undefined_flag='$wl-z,nodefs'
16436 archive_cmds_need_lc=no
16437 hardcode_shlibpath_var=no
16438 hardcode_libdir_flag_spec='$wl-R,$libdir'
16439 hardcode_libdir_separator=':'
16440 link_all_deplibs=yes
16441 export_dynamic_flag_spec='$wl-Bexport'
16442 runpath_var='LD_RUN_PATH'
16443
16444 if test yes = "$GCC"; then
16445 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 else
16448 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16450 fi
16451 ;;
16452
16453 uts4*)
16454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455 hardcode_libdir_flag_spec='-L$libdir'
16456 hardcode_shlibpath_var=no
16457 ;;
16458
16459 *)
16460 ld_shlibs=no
16461 ;;
16462 esac
16463
16464 if test sni = "$host_vendor"; then
16465 case $host in
16466 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16467 export_dynamic_flag_spec='$wl-Blargedynsym'
16468 ;;
16469 esac
16470 fi
16471 fi
16472
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16474 $as_echo "$ld_shlibs" >&6; }
16475 test no = "$ld_shlibs" && can_build_shared=no
16476
16477 with_gnu_ld=$with_gnu_ld
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493 #
16494 # Do we need to explicitly link libc?
16495 #
16496 case "x$archive_cmds_need_lc" in
16497 x|xyes)
16498 # Assume -lc should be added
16499 archive_cmds_need_lc=yes
16500
16501 if test yes,yes = "$GCC,$enable_shared"; then
16502 case $archive_cmds in
16503 *'~'*)
16504 # FIXME: we may have to deal with multi-command sequences.
16505 ;;
16506 '$CC '*)
16507 # Test whether the compiler implicitly links with -lc since on some
16508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16509 # to ld, don't add -lc before -lgcc.
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16512 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 $RM conftest*
16516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16517
16518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16519 (eval $ac_compile) 2>&5
16520 ac_status=$?
16521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 test $ac_status = 0; } 2>conftest.err; then
16523 soname=conftest
16524 lib=conftest
16525 libobjs=conftest.$ac_objext
16526 deplibs=
16527 wl=$lt_prog_compiler_wl
16528 pic_flag=$lt_prog_compiler_pic
16529 compiler_flags=-v
16530 linker_flags=-v
16531 verstring=
16532 output_objdir=.
16533 libname=conftest
16534 lt_save_allow_undefined_flag=$allow_undefined_flag
16535 allow_undefined_flag=
16536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16537 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16538 ac_status=$?
16539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16540 test $ac_status = 0; }
16541 then
16542 lt_cv_archive_cmds_need_lc=no
16543 else
16544 lt_cv_archive_cmds_need_lc=yes
16545 fi
16546 allow_undefined_flag=$lt_save_allow_undefined_flag
16547 else
16548 cat conftest.err 1>&5
16549 fi
16550 $RM conftest*
16551
16552 fi
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16554 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16555 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16556 ;;
16557 esac
16558 fi
16559 ;;
16560 esac
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16714 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16715
16716 if test yes = "$GCC"; then
16717 case $host_os in
16718 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16719 *) lt_awk_arg='/^libraries:/' ;;
16720 esac
16721 case $host_os in
16722 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16723 *) lt_sed_strip_eq='s|=/|/|g' ;;
16724 esac
16725 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16726 case $lt_search_path_spec in
16727 *\;*)
16728 # if the path contains ";" then we assume it to be the separator
16729 # otherwise default to the standard path separator (i.e. ":") - it is
16730 # assumed that no part of a normal pathname contains ";" but that should
16731 # okay in the real world where ";" in dirpaths is itself problematic.
16732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16733 ;;
16734 *)
16735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16736 ;;
16737 esac
16738 # Ok, now we have the path, separated by spaces, we can step through it
16739 # and add multilib dir if necessary...
16740 lt_tmp_lt_search_path_spec=
16741 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16742 # ...but if some path component already ends with the multilib dir we assume
16743 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16744 case "$lt_multi_os_dir; $lt_search_path_spec " in
16745 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16746 lt_multi_os_dir=
16747 ;;
16748 esac
16749 for lt_sys_path in $lt_search_path_spec; do
16750 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16752 elif test -n "$lt_multi_os_dir"; then
16753 test -d "$lt_sys_path" && \
16754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16755 fi
16756 done
16757 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16758 BEGIN {RS = " "; FS = "/|\n";} {
16759 lt_foo = "";
16760 lt_count = 0;
16761 for (lt_i = NF; lt_i > 0; lt_i--) {
16762 if ($lt_i != "" && $lt_i != ".") {
16763 if ($lt_i == "..") {
16764 lt_count++;
16765 } else {
16766 if (lt_count == 0) {
16767 lt_foo = "/" $lt_i lt_foo;
16768 } else {
16769 lt_count--;
16770 }
16771 }
16772 }
16773 }
16774 if (lt_foo != "") { lt_freq[lt_foo]++; }
16775 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16776 }'`
16777 # AWK program above erroneously prepends '/' to C:/dos/paths
16778 # for these hosts.
16779 case $host_os in
16780 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16781 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16782 esac
16783 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16784 else
16785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16786 fi
16787 library_names_spec=
16788 libname_spec='lib$name'
16789 soname_spec=
16790 shrext_cmds=.so
16791 postinstall_cmds=
16792 postuninstall_cmds=
16793 finish_cmds=
16794 finish_eval=
16795 shlibpath_var=
16796 shlibpath_overrides_runpath=unknown
16797 version_type=none
16798 dynamic_linker="$host_os ld.so"
16799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16800 need_lib_prefix=unknown
16801 hardcode_into_libs=no
16802
16803 # when you set need_version to no, make sure it does not cause -set_version
16804 # flags to be left without arguments
16805 need_version=unknown
16806
16807
16808
16809 case $host_os in
16810 aix3*)
16811 version_type=linux # correct to gnu/linux during the next big refactor
16812 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16813 shlibpath_var=LIBPATH
16814
16815 # AIX 3 has no versioning support, so we append a major version to the name.
16816 soname_spec='$libname$release$shared_ext$major'
16817 ;;
16818
16819 aix[4-9]*)
16820 version_type=linux # correct to gnu/linux during the next big refactor
16821 need_lib_prefix=no
16822 need_version=no
16823 hardcode_into_libs=yes
16824 if test ia64 = "$host_cpu"; then
16825 # AIX 5 supports IA64
16826 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 else
16829 # With GCC up to 2.95.x, collect2 would create an import file
16830 # for dependence libraries. The import file would start with
16831 # the line '#! .'. This would cause the generated library to
16832 # depend on '.', always an invalid library. This was fixed in
16833 # development snapshots of GCC prior to 3.0.
16834 case $host_os in
16835 aix4 | aix4.[01] | aix4.[01].*)
16836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16837 echo ' yes '
16838 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16839 :
16840 else
16841 can_build_shared=no
16842 fi
16843 ;;
16844 esac
16845 # Using Import Files as archive members, it is possible to support
16846 # filename-based versioning of shared library archives on AIX. While
16847 # this would work for both with and without runtime linking, it will
16848 # prevent static linking of such archives. So we do filename-based
16849 # shared library versioning with .so extension only, which is used
16850 # when both runtime linking and shared linking is enabled.
16851 # Unfortunately, runtime linking may impact performance, so we do
16852 # not want this to be the default eventually. Also, we use the
16853 # versioned .so libs for executables only if there is the -brtl
16854 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16855 # To allow for filename-based versioning support, we need to create
16856 # libNAME.so.V as an archive file, containing:
16857 # *) an Import File, referring to the versioned filename of the
16858 # archive as well as the shared archive member, telling the
16859 # bitwidth (32 or 64) of that shared object, and providing the
16860 # list of exported symbols of that shared object, eventually
16861 # decorated with the 'weak' keyword
16862 # *) the shared object with the F_LOADONLY flag set, to really avoid
16863 # it being seen by the linker.
16864 # At run time we better use the real file rather than another symlink,
16865 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16866
16867 case $with_aix_soname,$aix_use_runtimelinking in
16868 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16869 # soname into executable. Probably we can add versioning support to
16870 # collect2, so additional links can be useful in future.
16871 aix,yes) # traditional libtool
16872 dynamic_linker='AIX unversionable lib.so'
16873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16874 # instead of lib<name>.a to let people know that these are not
16875 # typical AIX shared libraries.
16876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16877 ;;
16878 aix,no) # traditional AIX only
16879 dynamic_linker='AIX lib.a(lib.so.V)'
16880 # We preserve .a as extension for shared libraries through AIX4.2
16881 # and later when we are not doing run time linking.
16882 library_names_spec='$libname$release.a $libname.a'
16883 soname_spec='$libname$release$shared_ext$major'
16884 ;;
16885 svr4,*) # full svr4 only
16886 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16887 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16888 # We do not specify a path in Import Files, so LIBPATH fires.
16889 shlibpath_overrides_runpath=yes
16890 ;;
16891 *,yes) # both, prefer svr4
16892 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16893 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16894 # unpreferred sharedlib libNAME.a needs extra handling
16895 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16896 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16897 # We do not specify a path in Import Files, so LIBPATH fires.
16898 shlibpath_overrides_runpath=yes
16899 ;;
16900 *,no) # both, prefer aix
16901 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16902 library_names_spec='$libname$release.a $libname.a'
16903 soname_spec='$libname$release$shared_ext$major'
16904 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16905 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16906 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16907 ;;
16908 esac
16909 shlibpath_var=LIBPATH
16910 fi
16911 ;;
16912
16913 amigaos*)
16914 case $host_cpu in
16915 powerpc)
16916 # Since July 2007 AmigaOS4 officially supports .so libraries.
16917 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16919 ;;
16920 m68k)
16921 library_names_spec='$libname.ixlibrary $libname.a'
16922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16923 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16924 ;;
16925 esac
16926 ;;
16927
16928 beos*)
16929 library_names_spec='$libname$shared_ext'
16930 dynamic_linker="$host_os ld.so"
16931 shlibpath_var=LIBRARY_PATH
16932 ;;
16933
16934 bsdi[45]*)
16935 version_type=linux # correct to gnu/linux during the next big refactor
16936 need_version=no
16937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16938 soname_spec='$libname$release$shared_ext$major'
16939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16943 # the default ld.so.conf also contains /usr/contrib/lib and
16944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16945 # libtool to hard-code these into programs
16946 ;;
16947
16948 cygwin* | mingw* | pw32* | cegcc*)
16949 version_type=windows
16950 shrext_cmds=.dll
16951 need_version=no
16952 need_lib_prefix=no
16953
16954 case $GCC,$cc_basename in
16955 yes,*)
16956 # gcc
16957 library_names_spec='$libname.dll.a'
16958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16959 postinstall_cmds='base_file=`basename \$file`~
16960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16961 dldir=$destdir/`dirname \$dlpath`~
16962 test -d \$dldir || mkdir -p \$dldir~
16963 $install_prog $dir/$dlname \$dldir/$dlname~
16964 chmod a+x \$dldir/$dlname~
16965 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16966 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16967 fi'
16968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16969 dlpath=$dir/\$dldll~
16970 $RM \$dlpath'
16971 shlibpath_overrides_runpath=yes
16972
16973 case $host_os in
16974 cygwin*)
16975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16976 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16977
16978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16979 ;;
16980 mingw* | cegcc*)
16981 # MinGW DLLs use traditional 'lib' prefix
16982 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16983 ;;
16984 pw32*)
16985 # pw32 DLLs use 'pw' prefix rather than 'lib'
16986 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16987 ;;
16988 esac
16989 dynamic_linker='Win32 ld.exe'
16990 ;;
16991
16992 *,cl*)
16993 # Native MSVC
16994 libname_spec='$name'
16995 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16996 library_names_spec='$libname.dll.lib'
16997
16998 case $build_os in
16999 mingw*)
17000 sys_lib_search_path_spec=
17001 lt_save_ifs=$IFS
17002 IFS=';'
17003 for lt_path in $LIB
17004 do
17005 IFS=$lt_save_ifs
17006 # Let DOS variable expansion print the short 8.3 style file name.
17007 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17008 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17009 done
17010 IFS=$lt_save_ifs
17011 # Convert to MSYS style.
17012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17013 ;;
17014 cygwin*)
17015 # Convert to unix form, then to dos form, then back to unix form
17016 # but this time dos style (no spaces!) so that the unix form looks
17017 # like /cygdrive/c/PROGRA~1:/cygdr...
17018 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17019 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17020 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17021 ;;
17022 *)
17023 sys_lib_search_path_spec=$LIB
17024 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17025 # It is most probably a Windows format PATH.
17026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17027 else
17028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17029 fi
17030 # FIXME: find the short name or the path components, as spaces are
17031 # common. (e.g. "Program Files" -> "PROGRA~1")
17032 ;;
17033 esac
17034
17035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17036 postinstall_cmds='base_file=`basename \$file`~
17037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17038 dldir=$destdir/`dirname \$dlpath`~
17039 test -d \$dldir || mkdir -p \$dldir~
17040 $install_prog $dir/$dlname \$dldir/$dlname'
17041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17042 dlpath=$dir/\$dldll~
17043 $RM \$dlpath'
17044 shlibpath_overrides_runpath=yes
17045 dynamic_linker='Win32 link.exe'
17046 ;;
17047
17048 *)
17049 # Assume MSVC wrapper
17050 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17051 dynamic_linker='Win32 ld.exe'
17052 ;;
17053 esac
17054 # FIXME: first we should search . and the directory the executable is in
17055 shlibpath_var=PATH
17056 ;;
17057
17058 darwin* | rhapsody*)
17059 dynamic_linker="$host_os dyld"
17060 version_type=darwin
17061 need_lib_prefix=no
17062 need_version=no
17063 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17064 soname_spec='$libname$release$major$shared_ext'
17065 shlibpath_overrides_runpath=yes
17066 shlibpath_var=DYLD_LIBRARY_PATH
17067 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17068
17069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17070 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17071 ;;
17072
17073 dgux*)
17074 version_type=linux # correct to gnu/linux during the next big refactor
17075 need_lib_prefix=no
17076 need_version=no
17077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17078 soname_spec='$libname$release$shared_ext$major'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 ;;
17081
17082 freebsd* | dragonfly*)
17083 # DragonFly does not have aout. When/if they implement a new
17084 # versioning mechanism, adjust this.
17085 if test -x /usr/bin/objformat; then
17086 objformat=`/usr/bin/objformat`
17087 else
17088 case $host_os in
17089 freebsd[23].*) objformat=aout ;;
17090 *) objformat=elf ;;
17091 esac
17092 fi
17093 version_type=freebsd-$objformat
17094 case $version_type in
17095 freebsd-elf*)
17096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17097 soname_spec='$libname$release$shared_ext$major'
17098 need_version=no
17099 need_lib_prefix=no
17100 ;;
17101 freebsd-*)
17102 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17103 need_version=yes
17104 ;;
17105 esac
17106 shlibpath_var=LD_LIBRARY_PATH
17107 case $host_os in
17108 freebsd2.*)
17109 shlibpath_overrides_runpath=yes
17110 ;;
17111 freebsd3.[01]* | freebsdelf3.[01]*)
17112 shlibpath_overrides_runpath=yes
17113 hardcode_into_libs=yes
17114 ;;
17115 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17116 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17117 shlibpath_overrides_runpath=no
17118 hardcode_into_libs=yes
17119 ;;
17120 *) # from 4.6 on, and DragonFly
17121 shlibpath_overrides_runpath=yes
17122 hardcode_into_libs=yes
17123 ;;
17124 esac
17125 ;;
17126
17127 haiku*)
17128 version_type=linux # correct to gnu/linux during the next big refactor
17129 need_lib_prefix=no
17130 need_version=no
17131 dynamic_linker="$host_os runtime_loader"
17132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17133 soname_spec='$libname$release$shared_ext$major'
17134 shlibpath_var=LIBRARY_PATH
17135 shlibpath_overrides_runpath=no
17136 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17137 hardcode_into_libs=yes
17138 ;;
17139
17140 hpux9* | hpux10* | hpux11*)
17141 # Give a soname corresponding to the major version so that dld.sl refuses to
17142 # link against other versions.
17143 version_type=sunos
17144 need_lib_prefix=no
17145 need_version=no
17146 case $host_cpu in
17147 ia64*)
17148 shrext_cmds='.so'
17149 hardcode_into_libs=yes
17150 dynamic_linker="$host_os dld.so"
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17154 soname_spec='$libname$release$shared_ext$major'
17155 if test 32 = "$HPUX_IA64_MODE"; then
17156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17157 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17158 else
17159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17160 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17161 fi
17162 ;;
17163 hppa*64*)
17164 shrext_cmds='.sl'
17165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.sl"
17167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170 soname_spec='$libname$release$shared_ext$major'
17171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17173 ;;
17174 *)
17175 shrext_cmds='.sl'
17176 dynamic_linker="$host_os dld.sl"
17177 shlibpath_var=SHLIB_PATH
17178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17180 soname_spec='$libname$release$shared_ext$major'
17181 ;;
17182 esac
17183 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17184 postinstall_cmds='chmod 555 $lib'
17185 # or fails outright, so override atomically:
17186 install_override_mode=555
17187 ;;
17188
17189 interix[3-9]*)
17190 version_type=linux # correct to gnu/linux during the next big refactor
17191 need_lib_prefix=no
17192 need_version=no
17193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17194 soname_spec='$libname$release$shared_ext$major'
17195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=no
17198 hardcode_into_libs=yes
17199 ;;
17200
17201 irix5* | irix6* | nonstopux*)
17202 case $host_os in
17203 nonstopux*) version_type=nonstopux ;;
17204 *)
17205 if test yes = "$lt_cv_prog_gnu_ld"; then
17206 version_type=linux # correct to gnu/linux during the next big refactor
17207 else
17208 version_type=irix
17209 fi ;;
17210 esac
17211 need_lib_prefix=no
17212 need_version=no
17213 soname_spec='$libname$release$shared_ext$major'
17214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17215 case $host_os in
17216 irix5* | nonstopux*)
17217 libsuff= shlibsuff=
17218 ;;
17219 *)
17220 case $LD in # libtool.m4 will add one of these switches to LD
17221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17222 libsuff= shlibsuff= libmagic=32-bit;;
17223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17224 libsuff=32 shlibsuff=N32 libmagic=N32;;
17225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17227 *) libsuff= shlibsuff= libmagic=never-match;;
17228 esac
17229 ;;
17230 esac
17231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17232 shlibpath_overrides_runpath=no
17233 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17234 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17235 hardcode_into_libs=yes
17236 ;;
17237
17238 # No shared lib support for Linux oldld, aout, or coff.
17239 linux*oldld* | linux*aout* | linux*coff*)
17240 dynamic_linker=no
17241 ;;
17242
17243 linux*android*)
17244 version_type=none # Android doesn't support versioned libraries.
17245 need_lib_prefix=no
17246 need_version=no
17247 library_names_spec='$libname$release$shared_ext'
17248 soname_spec='$libname$release$shared_ext'
17249 finish_cmds=
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes
17252
17253 # This implies no fast_install, which is unacceptable.
17254 # Some rework will be needed to allow for fast_install
17255 # before this can be enabled.
17256 hardcode_into_libs=yes
17257
17258 dynamic_linker='Android linker'
17259 # Don't embed -rpath directories since the linker doesn't support them.
17260 hardcode_libdir_flag_spec='-L$libdir'
17261 ;;
17262
17263 # This must be glibc/ELF.
17264 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17265 version_type=linux # correct to gnu/linux during the next big refactor
17266 need_lib_prefix=no
17267 need_version=no
17268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17269 soname_spec='$libname$release$shared_ext$major'
17270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=no
17273
17274 # Some binutils ld are patched to set DT_RUNPATH
17275 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 lt_cv_shlibpath_overrides_runpath=no
17279 save_LDFLAGS=$LDFLAGS
17280 save_libdir=$libdir
17281 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17282 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285
17286 int
17287 main ()
17288 {
17289
17290 ;
17291 return 0;
17292 }
17293 _ACEOF
17294 if ac_fn_c_try_link "$LINENO"; then :
17295 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17296 lt_cv_shlibpath_overrides_runpath=yes
17297 fi
17298 fi
17299 rm -f core conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301 LDFLAGS=$save_LDFLAGS
17302 libdir=$save_libdir
17303
17304 fi
17305
17306 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17307
17308 # This implies no fast_install, which is unacceptable.
17309 # Some rework will be needed to allow for fast_install
17310 # before this can be enabled.
17311 hardcode_into_libs=yes
17312
17313 # Add ABI-specific directories to the system library path.
17314 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17315
17316 # Ideally, we could use ldconfig to report *all* directores which are
17317 # searched for libraries, however this is still not possible. Aside from not
17318 # being certain /sbin/ldconfig is available, command
17319 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17320 # even though it is searched at run-time. Try to do the best guess by
17321 # appending ld.so.conf contents (and includes) to the search path.
17322 if test -f /etc/ld.so.conf; then
17323 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' ' '`
17324 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17325 fi
17326
17327 # We used to test for /lib/ld.so.1 and disable shared libraries on
17328 # powerpc, because MkLinux only supported shared libraries with the
17329 # GNU dynamic linker. Since this was broken with cross compilers,
17330 # most powerpc-linux boxes support dynamic linking these days and
17331 # people can always --disable-shared, the test was removed, and we
17332 # assume the GNU/Linux dynamic linker is in use.
17333 dynamic_linker='GNU/Linux ld.so'
17334 ;;
17335
17336 netbsd*)
17337 version_type=sunos
17338 need_lib_prefix=no
17339 need_version=no
17340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17343 dynamic_linker='NetBSD (a.out) ld.so'
17344 else
17345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17346 soname_spec='$libname$release$shared_ext$major'
17347 dynamic_linker='NetBSD ld.elf_so'
17348 fi
17349 shlibpath_var=LD_LIBRARY_PATH
17350 shlibpath_overrides_runpath=yes
17351 hardcode_into_libs=yes
17352 ;;
17353
17354 newsos6)
17355 version_type=linux # correct to gnu/linux during the next big refactor
17356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath=yes
17359 ;;
17360
17361 *nto* | *qnx*)
17362 version_type=qnx
17363 need_lib_prefix=no
17364 need_version=no
17365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17366 soname_spec='$libname$release$shared_ext$major'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=no
17369 hardcode_into_libs=yes
17370 dynamic_linker='ldqnx.so'
17371 ;;
17372
17373 openbsd* | bitrig*)
17374 version_type=sunos
17375 sys_lib_dlsearch_path_spec=/usr/lib
17376 need_lib_prefix=no
17377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17378 need_version=no
17379 else
17380 need_version=yes
17381 fi
17382 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=yes
17386 ;;
17387
17388 os2*)
17389 libname_spec='$name'
17390 version_type=windows
17391 shrext_cmds=.dll
17392 need_version=no
17393 need_lib_prefix=no
17394 # OS/2 can only load a DLL with a base name of 8 characters or less.
17395 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17396 v=$($ECHO $release$versuffix | tr -d .-);
17397 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17398 $ECHO $n$v`$shared_ext'
17399 library_names_spec='${libname}_dll.$libext'
17400 dynamic_linker='OS/2 ld.exe'
17401 shlibpath_var=BEGINLIBPATH
17402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17404 postinstall_cmds='base_file=`basename \$file`~
17405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17406 dldir=$destdir/`dirname \$dlpath`~
17407 test -d \$dldir || mkdir -p \$dldir~
17408 $install_prog $dir/$dlname \$dldir/$dlname~
17409 chmod a+x \$dldir/$dlname~
17410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17412 fi'
17413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17414 dlpath=$dir/\$dldll~
17415 $RM \$dlpath'
17416 ;;
17417
17418 osf3* | osf4* | osf5*)
17419 version_type=osf
17420 need_lib_prefix=no
17421 need_version=no
17422 soname_spec='$libname$release$shared_ext$major'
17423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17427 ;;
17428
17429 rdos*)
17430 dynamic_linker=no
17431 ;;
17432
17433 solaris*)
17434 version_type=linux # correct to gnu/linux during the next big refactor
17435 need_lib_prefix=no
17436 need_version=no
17437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17438 soname_spec='$libname$release$shared_ext$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 shlibpath_overrides_runpath=yes
17441 hardcode_into_libs=yes
17442 # ldd complains unless libraries are executable
17443 postinstall_cmds='chmod +x $lib'
17444 ;;
17445
17446 sunos4*)
17447 version_type=sunos
17448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath=yes
17452 if test yes = "$with_gnu_ld"; then
17453 need_lib_prefix=no
17454 fi
17455 need_version=yes
17456 ;;
17457
17458 sysv4 | sysv4.3*)
17459 version_type=linux # correct to gnu/linux during the next big refactor
17460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17461 soname_spec='$libname$release$shared_ext$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 case $host_vendor in
17464 sni)
17465 shlibpath_overrides_runpath=no
17466 need_lib_prefix=no
17467 runpath_var=LD_RUN_PATH
17468 ;;
17469 siemens)
17470 need_lib_prefix=no
17471 ;;
17472 motorola)
17473 need_lib_prefix=no
17474 need_version=no
17475 shlibpath_overrides_runpath=no
17476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17477 ;;
17478 esac
17479 ;;
17480
17481 sysv4*MP*)
17482 if test -d /usr/nec; then
17483 version_type=linux # correct to gnu/linux during the next big refactor
17484 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17485 soname_spec='$libname$shared_ext.$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 fi
17488 ;;
17489
17490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17491 version_type=sco
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17495 soname_spec='$libname$release$shared_ext$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath=yes
17498 hardcode_into_libs=yes
17499 if test yes = "$with_gnu_ld"; then
17500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17501 else
17502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17503 case $host_os in
17504 sco3.2v5*)
17505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17506 ;;
17507 esac
17508 fi
17509 sys_lib_dlsearch_path_spec='/usr/lib'
17510 ;;
17511
17512 tpf*)
17513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17514 version_type=linux # correct to gnu/linux during the next big refactor
17515 need_lib_prefix=no
17516 need_version=no
17517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=no
17520 hardcode_into_libs=yes
17521 ;;
17522
17523 uts4*)
17524 version_type=linux # correct to gnu/linux during the next big refactor
17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17526 soname_spec='$libname$release$shared_ext$major'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 ;;
17529
17530 *)
17531 dynamic_linker=no
17532 ;;
17533 esac
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17535 $as_echo "$dynamic_linker" >&6; }
17536 test no = "$dynamic_linker" && can_build_shared=no
17537
17538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17539 if test yes = "$GCC"; then
17540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17541 fi
17542
17543 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17544 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17545 fi
17546
17547 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17548 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17549 fi
17550
17551 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17552 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17553
17554 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17555 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17556
17557 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17558 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17658 hardcode_action=
17659 if test -n "$hardcode_libdir_flag_spec" ||
17660 test -n "$runpath_var" ||
17661 test yes = "$hardcode_automatic"; then
17662
17663 # We can hardcode non-existent directories.
17664 if test no != "$hardcode_direct" &&
17665 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17666 # have to relink, otherwise we might link with an installed library
17667 # when we should be linking with a yet-to-be-installed one
17668 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17669 test no != "$hardcode_minus_L"; then
17670 # Linking always hardcodes the temporary library directory.
17671 hardcode_action=relink
17672 else
17673 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17674 hardcode_action=immediate
17675 fi
17676 else
17677 # We cannot hardcode anything, or else we can only hardcode existing
17678 # directories.
17679 hardcode_action=unsupported
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17682 $as_echo "$hardcode_action" >&6; }
17683
17684 if test relink = "$hardcode_action" ||
17685 test yes = "$inherit_rpath"; then
17686 # Fast installation is not supported
17687 enable_fast_install=no
17688 elif test yes = "$shlibpath_overrides_runpath" ||
17689 test no = "$enable_shared"; then
17690 # Fast installation is not necessary
17691 enable_fast_install=needless
17692 fi
17693
17694
17695
17696
17697
17698
17699 if test yes != "$enable_dlopen"; then
17700 enable_dlopen=unknown
17701 enable_dlopen_self=unknown
17702 enable_dlopen_self_static=unknown
17703 else
17704 lt_cv_dlopen=no
17705 lt_cv_dlopen_libs=
17706
17707 case $host_os in
17708 beos*)
17709 lt_cv_dlopen=load_add_on
17710 lt_cv_dlopen_libs=
17711 lt_cv_dlopen_self=yes
17712 ;;
17713
17714 mingw* | pw32* | cegcc*)
17715 lt_cv_dlopen=LoadLibrary
17716 lt_cv_dlopen_libs=
17717 ;;
17718
17719 cygwin*)
17720 lt_cv_dlopen=dlopen
17721 lt_cv_dlopen_libs=
17722 ;;
17723
17724 darwin*)
17725 # if libdl is installed we need to link against it
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17728 if ${ac_cv_lib_dl_dlopen+:} false; then :
17729 $as_echo_n "(cached) " >&6
17730 else
17731 ac_check_lib_save_LIBS=$LIBS
17732 LIBS="-ldl $LIBS"
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735
17736 /* Override any GCC internal prototype to avoid an error.
17737 Use char because int might match the return type of a GCC
17738 builtin and then its argument prototype would still apply. */
17739 #ifdef __cplusplus
17740 extern "C"
17741 #endif
17742 char dlopen ();
17743 int
17744 main ()
17745 {
17746 return dlopen ();
17747 ;
17748 return 0;
17749 }
17750 _ACEOF
17751 if ac_fn_c_try_link "$LINENO"; then :
17752 ac_cv_lib_dl_dlopen=yes
17753 else
17754 ac_cv_lib_dl_dlopen=no
17755 fi
17756 rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17758 LIBS=$ac_check_lib_save_LIBS
17759 fi
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17763 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17764 else
17765
17766 lt_cv_dlopen=dyld
17767 lt_cv_dlopen_libs=
17768 lt_cv_dlopen_self=yes
17769
17770 fi
17771
17772 ;;
17773
17774 tpf*)
17775 # Don't try to run any link tests for TPF. We know it's impossible
17776 # because TPF is a cross-compiler, and we know how we open DSOs.
17777 lt_cv_dlopen=dlopen
17778 lt_cv_dlopen_libs=
17779 lt_cv_dlopen_self=no
17780 ;;
17781
17782 *)
17783 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17784 if test "x$ac_cv_func_shl_load" = xyes; then :
17785 lt_cv_dlopen=shl_load
17786 else
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17788 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17789 if ${ac_cv_lib_dld_shl_load+:} false; then :
17790 $as_echo_n "(cached) " >&6
17791 else
17792 ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-ldld $LIBS"
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char shl_load ();
17804 int
17805 main ()
17806 {
17807 return shl_load ();
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_link "$LINENO"; then :
17813 ac_cv_lib_dld_shl_load=yes
17814 else
17815 ac_cv_lib_dld_shl_load=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17822 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17823 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17824 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17825 else
17826 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17827 if test "x$ac_cv_func_dlopen" = xyes; then :
17828 lt_cv_dlopen=dlopen
17829 else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17832 if ${ac_cv_lib_dl_dlopen+:} false; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-ldl $LIBS"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char dlopen ();
17847 int
17848 main ()
17849 {
17850 return dlopen ();
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"; then :
17856 ac_cv_lib_dl_dlopen=yes
17857 else
17858 ac_cv_lib_dl_dlopen=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17867 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17868 else
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17871 if ${ac_cv_lib_svld_dlopen+:} false; then :
17872 $as_echo_n "(cached) " >&6
17873 else
17874 ac_check_lib_save_LIBS=$LIBS
17875 LIBS="-lsvld $LIBS"
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878
17879 /* Override any GCC internal prototype to avoid an error.
17880 Use char because int might match the return type of a GCC
17881 builtin and then its argument prototype would still apply. */
17882 #ifdef __cplusplus
17883 extern "C"
17884 #endif
17885 char dlopen ();
17886 int
17887 main ()
17888 {
17889 return dlopen ();
17890 ;
17891 return 0;
17892 }
17893 _ACEOF
17894 if ac_fn_c_try_link "$LINENO"; then :
17895 ac_cv_lib_svld_dlopen=yes
17896 else
17897 ac_cv_lib_svld_dlopen=no
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17902 fi
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17904 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17905 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17906 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17907 else
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17909 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17910 if ${ac_cv_lib_dld_dld_link+:} false; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 ac_check_lib_save_LIBS=$LIBS
17914 LIBS="-ldld $LIBS"
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char dld_link ();
17925 int
17926 main ()
17927 {
17928 return dld_link ();
17929 ;
17930 return 0;
17931 }
17932 _ACEOF
17933 if ac_fn_c_try_link "$LINENO"; then :
17934 ac_cv_lib_dld_dld_link=yes
17935 else
17936 ac_cv_lib_dld_dld_link=no
17937 fi
17938 rm -f core conftest.err conftest.$ac_objext \
17939 conftest$ac_exeext conftest.$ac_ext
17940 LIBS=$ac_check_lib_save_LIBS
17941 fi
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17943 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17944 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17945 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17946 fi
17947
17948
17949 fi
17950
17951
17952 fi
17953
17954
17955 fi
17956
17957
17958 fi
17959
17960
17961 fi
17962
17963 ;;
17964 esac
17965
17966 if test no = "$lt_cv_dlopen"; then
17967 enable_dlopen=no
17968 else
17969 enable_dlopen=yes
17970 fi
17971
17972 case $lt_cv_dlopen in
17973 dlopen)
17974 save_CPPFLAGS=$CPPFLAGS
17975 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17976
17977 save_LDFLAGS=$LDFLAGS
17978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17979
17980 save_LIBS=$LIBS
17981 LIBS="$lt_cv_dlopen_libs $LIBS"
17982
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17984 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17985 if ${lt_cv_dlopen_self+:} false; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 if test yes = "$cross_compiling"; then :
17989 lt_cv_dlopen_self=cross
17990 else
17991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17992 lt_status=$lt_dlunknown
17993 cat > conftest.$ac_ext <<_LT_EOF
17994 #line $LINENO "configure"
17995 #include "confdefs.h"
17996
17997 #if HAVE_DLFCN_H
17998 #include <dlfcn.h>
17999 #endif
18000
18001 #include <stdio.h>
18002
18003 #ifdef RTLD_GLOBAL
18004 # define LT_DLGLOBAL RTLD_GLOBAL
18005 #else
18006 # ifdef DL_GLOBAL
18007 # define LT_DLGLOBAL DL_GLOBAL
18008 # else
18009 # define LT_DLGLOBAL 0
18010 # endif
18011 #endif
18012
18013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18014 find out it does not work in some platform. */
18015 #ifndef LT_DLLAZY_OR_NOW
18016 # ifdef RTLD_LAZY
18017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18018 # else
18019 # ifdef DL_LAZY
18020 # define LT_DLLAZY_OR_NOW DL_LAZY
18021 # else
18022 # ifdef RTLD_NOW
18023 # define LT_DLLAZY_OR_NOW RTLD_NOW
18024 # else
18025 # ifdef DL_NOW
18026 # define LT_DLLAZY_OR_NOW DL_NOW
18027 # else
18028 # define LT_DLLAZY_OR_NOW 0
18029 # endif
18030 # endif
18031 # endif
18032 # endif
18033 #endif
18034
18035 /* When -fvisibility=hidden is used, assume the code has been annotated
18036 correspondingly for the symbols needed. */
18037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18038 int fnord () __attribute__((visibility("default")));
18039 #endif
18040
18041 int fnord () { return 42; }
18042 int main ()
18043 {
18044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18045 int status = $lt_dlunknown;
18046
18047 if (self)
18048 {
18049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18050 else
18051 {
18052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18053 else puts (dlerror ());
18054 }
18055 /* dlclose (self); */
18056 }
18057 else
18058 puts (dlerror ());
18059
18060 return status;
18061 }
18062 _LT_EOF
18063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18064 (eval $ac_link) 2>&5
18065 ac_status=$?
18066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18068 (./conftest; exit; ) >&5 2>/dev/null
18069 lt_status=$?
18070 case x$lt_status in
18071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18074 esac
18075 else :
18076 # compilation failed
18077 lt_cv_dlopen_self=no
18078 fi
18079 fi
18080 rm -fr conftest*
18081
18082
18083 fi
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18085 $as_echo "$lt_cv_dlopen_self" >&6; }
18086
18087 if test yes = "$lt_cv_dlopen_self"; then
18088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18090 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18091 if ${lt_cv_dlopen_self_static+:} false; then :
18092 $as_echo_n "(cached) " >&6
18093 else
18094 if test yes = "$cross_compiling"; then :
18095 lt_cv_dlopen_self_static=cross
18096 else
18097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18098 lt_status=$lt_dlunknown
18099 cat > conftest.$ac_ext <<_LT_EOF
18100 #line $LINENO "configure"
18101 #include "confdefs.h"
18102
18103 #if HAVE_DLFCN_H
18104 #include <dlfcn.h>
18105 #endif
18106
18107 #include <stdio.h>
18108
18109 #ifdef RTLD_GLOBAL
18110 # define LT_DLGLOBAL RTLD_GLOBAL
18111 #else
18112 # ifdef DL_GLOBAL
18113 # define LT_DLGLOBAL DL_GLOBAL
18114 # else
18115 # define LT_DLGLOBAL 0
18116 # endif
18117 #endif
18118
18119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18120 find out it does not work in some platform. */
18121 #ifndef LT_DLLAZY_OR_NOW
18122 # ifdef RTLD_LAZY
18123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18124 # else
18125 # ifdef DL_LAZY
18126 # define LT_DLLAZY_OR_NOW DL_LAZY
18127 # else
18128 # ifdef RTLD_NOW
18129 # define LT_DLLAZY_OR_NOW RTLD_NOW
18130 # else
18131 # ifdef DL_NOW
18132 # define LT_DLLAZY_OR_NOW DL_NOW
18133 # else
18134 # define LT_DLLAZY_OR_NOW 0
18135 # endif
18136 # endif
18137 # endif
18138 # endif
18139 #endif
18140
18141 /* When -fvisibility=hidden is used, assume the code has been annotated
18142 correspondingly for the symbols needed. */
18143 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18144 int fnord () __attribute__((visibility("default")));
18145 #endif
18146
18147 int fnord () { return 42; }
18148 int main ()
18149 {
18150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18151 int status = $lt_dlunknown;
18152
18153 if (self)
18154 {
18155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18156 else
18157 {
18158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18159 else puts (dlerror ());
18160 }
18161 /* dlclose (self); */
18162 }
18163 else
18164 puts (dlerror ());
18165
18166 return status;
18167 }
18168 _LT_EOF
18169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18170 (eval $ac_link) 2>&5
18171 ac_status=$?
18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18174 (./conftest; exit; ) >&5 2>/dev/null
18175 lt_status=$?
18176 case x$lt_status in
18177 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18178 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18179 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18180 esac
18181 else :
18182 # compilation failed
18183 lt_cv_dlopen_self_static=no
18184 fi
18185 fi
18186 rm -fr conftest*
18187
18188
18189 fi
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18191 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18192 fi
18193
18194 CPPFLAGS=$save_CPPFLAGS
18195 LDFLAGS=$save_LDFLAGS
18196 LIBS=$save_LIBS
18197 ;;
18198 esac
18199
18200 case $lt_cv_dlopen_self in
18201 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18202 *) enable_dlopen_self=unknown ;;
18203 esac
18204
18205 case $lt_cv_dlopen_self_static in
18206 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18207 *) enable_dlopen_self_static=unknown ;;
18208 esac
18209 fi
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227 striplib=
18228 old_striplib=
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18230 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18231 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18232 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18233 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235 $as_echo "yes" >&6; }
18236 else
18237 # FIXME - insert some real tests, host_os isn't really good enough
18238 case $host_os in
18239 darwin*)
18240 if test -n "$STRIP"; then
18241 striplib="$STRIP -x"
18242 old_striplib="$STRIP -S"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244 $as_echo "yes" >&6; }
18245 else
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 $as_echo "no" >&6; }
18248 fi
18249 ;;
18250 *)
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18252 $as_echo "no" >&6; }
18253 ;;
18254 esac
18255 fi
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268 # Report what library types will actually be built
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18270 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18272 $as_echo "$can_build_shared" >&6; }
18273
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18275 $as_echo_n "checking whether to build shared libraries... " >&6; }
18276 test no = "$can_build_shared" && enable_shared=no
18277
18278 # On AIX, shared libraries and static libraries use the same namespace, and
18279 # are all built from PIC.
18280 case $host_os in
18281 aix3*)
18282 test yes = "$enable_shared" && enable_static=no
18283 if test -n "$RANLIB"; then
18284 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18285 postinstall_cmds='$RANLIB $lib'
18286 fi
18287 ;;
18288
18289 aix[4-9]*)
18290 if test ia64 != "$host_cpu"; then
18291 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18292 yes,aix,yes) ;; # shared object as lib.so file only
18293 yes,svr4,*) ;; # shared object as lib.so archive member only
18294 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18295 esac
18296 fi
18297 ;;
18298 esac
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18300 $as_echo "$enable_shared" >&6; }
18301
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18303 $as_echo_n "checking whether to build static libraries... " >&6; }
18304 # Make sure either enable_shared or enable_static is yes.
18305 test yes = "$enable_shared" || enable_static=yes
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18307 $as_echo "$enable_static" >&6; }
18308
18309
18310
18311
18312 fi
18313 ac_ext=c
18314 ac_cpp='$CPP $CPPFLAGS'
18315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18318
18319 CC=$lt_save_CC
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335 ac_config_commands="$ac_config_commands libtool"
18336
18337
18338
18339
18340 # Only expand once:
18341
18342
18343
18344
18345
18346 # Define a configure option for an alternate module directory
18347
18348 # Check whether --with-xorg-module-dir was given.
18349 if test "${with_xorg_module_dir+set}" = set; then :
18350 withval=$with_xorg_module_dir; moduledir="$withval"
18351 else
18352 moduledir="$libdir/xorg/modules"
18353 fi
18354
18355 # Check whether --enable-pciaccess was given.
18356 if test "${enable_pciaccess+set}" = set; then :
18357 enableval=$enable_pciaccess; PCIACCESS=$enableval
18358 else
18359 PCIACCESS=no
18360 fi
18361
18362
18363 # Store the list of server defined optional extensions in REQUIRED_MODULES
18364
18365
18366 SAVE_CFLAGS="$CFLAGS"
18367 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370
18371 #include "xorg-server.h"
18372 #if !defined RANDR
18373 #error RANDR not defined
18374 #endif
18375
18376 int
18377 main ()
18378 {
18379
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"; then :
18385 _EXT_CHECK=yes
18386 else
18387 _EXT_CHECK=no
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18390 CFLAGS="$SAVE_CFLAGS"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18392 $as_echo_n "checking if RANDR is defined... " >&6; }
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18394 $as_echo "$_EXT_CHECK" >&6; }
18395 if test "$_EXT_CHECK" != no; then
18396 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18397 fi
18398
18399
18400
18401 SAVE_CFLAGS="$CFLAGS"
18402 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405
18406 #include "xorg-server.h"
18407 #if !defined RENDER
18408 #error RENDER not defined
18409 #endif
18410
18411 int
18412 main ()
18413 {
18414
18415 ;
18416 return 0;
18417 }
18418 _ACEOF
18419 if ac_fn_c_try_compile "$LINENO"; then :
18420 _EXT_CHECK=yes
18421 else
18422 _EXT_CHECK=no
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18425 CFLAGS="$SAVE_CFLAGS"
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18427 $as_echo_n "checking if RENDER is defined... " >&6; }
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18429 $as_echo "$_EXT_CHECK" >&6; }
18430 if test "$_EXT_CHECK" != no; then
18431 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18432 fi
18433
18434
18435
18436 SAVE_CFLAGS="$CFLAGS"
18437 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18440
18441 #include "xorg-server.h"
18442 #if !defined XV
18443 #error XV not defined
18444 #endif
18445
18446 int
18447 main ()
18448 {
18449
18450 ;
18451 return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_compile "$LINENO"; then :
18455 _EXT_CHECK=yes
18456 else
18457 _EXT_CHECK=no
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 CFLAGS="$SAVE_CFLAGS"
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18462 $as_echo_n "checking if XV is defined... " >&6; }
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18464 $as_echo "$_EXT_CHECK" >&6; }
18465 if test "$_EXT_CHECK" != no; then
18466 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18467 fi
18468
18469
18470 # Obtain compiler/linker options for the driver dependencies
18471
18472 pkg_failed=no
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18474 $as_echo_n "checking for XORG... " >&6; }
18475
18476 if test -n "$XORG_CFLAGS"; then
18477 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18478 elif test -n "$PKG_CONFIG"; then
18479 if test -n "$PKG_CONFIG" && \
18480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18481 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18482 ac_status=$?
18483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18484 test $ac_status = 0; }; then
18485 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18486 test "x$?" != "x0" && pkg_failed=yes
18487 else
18488 pkg_failed=yes
18489 fi
18490 else
18491 pkg_failed=untried
18492 fi
18493 if test -n "$XORG_LIBS"; then
18494 pkg_cv_XORG_LIBS="$XORG_LIBS"
18495 elif test -n "$PKG_CONFIG"; then
18496 if test -n "$PKG_CONFIG" && \
18497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18498 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18499 ac_status=$?
18500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18501 test $ac_status = 0; }; then
18502 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18503 test "x$?" != "x0" && pkg_failed=yes
18504 else
18505 pkg_failed=yes
18506 fi
18507 else
18508 pkg_failed=untried
18509 fi
18510
18511
18512
18513 if test $pkg_failed = yes; then
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18515 $as_echo "no" >&6; }
18516
18517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18518 _pkg_short_errors_supported=yes
18519 else
18520 _pkg_short_errors_supported=no
18521 fi
18522 if test $_pkg_short_errors_supported = yes; then
18523 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18524 else
18525 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18526 fi
18527 # Put the nasty error message in config.log where it belongs
18528 echo "$XORG_PKG_ERRORS" >&5
18529
18530 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18531
18532 $XORG_PKG_ERRORS
18533
18534 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18535 installed software in a non-standard prefix.
18536
18537 Alternatively, you may set the environment variables XORG_CFLAGS
18538 and XORG_LIBS to avoid the need to call pkg-config.
18539 See the pkg-config man page for more details." "$LINENO" 5
18540 elif test $pkg_failed = untried; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18542 $as_echo "no" >&6; }
18543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18545 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18546 is in your PATH or set the PKG_CONFIG environment variable to the full
18547 path to pkg-config.
18548
18549 Alternatively, you may set the environment variables XORG_CFLAGS
18550 and XORG_LIBS to avoid the need to call pkg-config.
18551 See the pkg-config man page for more details.
18552
18553 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18554 See \`config.log' for more details" "$LINENO" 5; }
18555 else
18556 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18557 XORG_LIBS=$pkg_cv_XORG_LIBS
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18559 $as_echo "yes" >&6; }
18560
18561 fi
18562
18563 save_CFLAGS="$CFLAGS"
18564 CFLAGS="$XORG_CFLAGS"
18565 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18566 "
18567 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18568
18569 $as_echo "#define HAVE_ISA 1" >>confdefs.h
18570
18571 fi
18572
18573 CFLAGS="$save_CFLAGS"
18574
18575 if test "x$PCIACCESS" = xyes; then
18576 PCIACCESS_TRUE=
18577 PCIACCESS_FALSE='#'
18578 else
18579 PCIACCESS_TRUE='#'
18580 PCIACCESS_FALSE=
18581 fi
18582
18583 if test "x$PCIACCESS" = xyes; then
18584
18585 $as_echo "#define PCIACCESS 1" >>confdefs.h
18586
18587
18588 pkg_failed=no
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18590 $as_echo_n "checking for PCIACCESS... " >&6; }
18591
18592 if test -n "$PCIACCESS_CFLAGS"; then
18593 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18594 elif test -n "$PKG_CONFIG"; then
18595 if test -n "$PKG_CONFIG" && \
18596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18597 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18598 ac_status=$?
18599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18600 test $ac_status = 0; }; then
18601 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18602 test "x$?" != "x0" && pkg_failed=yes
18603 else
18604 pkg_failed=yes
18605 fi
18606 else
18607 pkg_failed=untried
18608 fi
18609 if test -n "$PCIACCESS_LIBS"; then
18610 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18611 elif test -n "$PKG_CONFIG"; then
18612 if test -n "$PKG_CONFIG" && \
18613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18614 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18615 ac_status=$?
18616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18617 test $ac_status = 0; }; then
18618 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18619 test "x$?" != "x0" && pkg_failed=yes
18620 else
18621 pkg_failed=yes
18622 fi
18623 else
18624 pkg_failed=untried
18625 fi
18626
18627
18628
18629 if test $pkg_failed = yes; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632
18633 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18634 _pkg_short_errors_supported=yes
18635 else
18636 _pkg_short_errors_supported=no
18637 fi
18638 if test $_pkg_short_errors_supported = yes; then
18639 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18640 else
18641 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18642 fi
18643 # Put the nasty error message in config.log where it belongs
18644 echo "$PCIACCESS_PKG_ERRORS" >&5
18645
18646 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18647
18648 $PCIACCESS_PKG_ERRORS
18649
18650 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18651 installed software in a non-standard prefix.
18652
18653 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18654 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18655 See the pkg-config man page for more details." "$LINENO" 5
18656 elif test $pkg_failed = untried; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18658 $as_echo "no" >&6; }
18659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18661 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18662 is in your PATH or set the PKG_CONFIG environment variable to the full
18663 path to pkg-config.
18664
18665 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18666 and PCIACCESS_LIBS to avoid the need to call pkg-config.
18667 See the pkg-config man page for more details.
18668
18669 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18670 See \`config.log' for more details" "$LINENO" 5; }
18671 else
18672 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18673 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675 $as_echo "yes" >&6; }
18676
18677 fi
18678 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18679 fi
18680
18681 # Checks for libraries.
18682
18683
18684
18685
18686 DRIVER_NAME=fbdev
18687
18688
18689 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18690
18691 cat >confcache <<\_ACEOF
18692 # This file is a shell script that caches the results of configure
18693 # tests run on this system so they can be shared between configure
18694 # scripts and configure runs, see configure's option --config-cache.
18695 # It is not useful on other systems. If it contains results you don't
18696 # want to keep, you may remove or edit it.
18697 #
18698 # config.status only pays attention to the cache file if you give it
18699 # the --recheck option to rerun configure.
18700 #
18701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18703 # following values.
18704
18705 _ACEOF
18706
18707 # The following way of writing the cache mishandles newlines in values,
18708 # but we know of no workaround that is simple, portable, and efficient.
18709 # So, we kill variables containing newlines.
18710 # Ultrix sh set writes to stderr and can't be redirected directly,
18711 # and sets the high bit in the cache file unless we assign to the vars.
18712 (
18713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18714 eval ac_val=\$$ac_var
18715 case $ac_val in #(
18716 *${as_nl}*)
18717 case $ac_var in #(
18718 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18720 esac
18721 case $ac_var in #(
18722 _ | IFS | as_nl) ;; #(
18723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18724 *) { eval $ac_var=; unset $ac_var;} ;;
18725 esac ;;
18726 esac
18727 done
18728
18729 (set) 2>&1 |
18730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18731 *${as_nl}ac_space=\ *)
18732 # `set' does not quote correctly, so add quotes: double-quote
18733 # substitution turns \\\\ into \\, and sed turns \\ into \.
18734 sed -n \
18735 "s/'/'\\\\''/g;
18736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18737 ;; #(
18738 *)
18739 # `set' quotes correctly as required by POSIX, so do not add quotes.
18740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18741 ;;
18742 esac |
18743 sort
18744 ) |
18745 sed '
18746 /^ac_cv_env_/b end
18747 t clear
18748 :clear
18749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18750 t end
18751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18752 :end' >>confcache
18753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18754 if test -w "$cache_file"; then
18755 if test "x$cache_file" != "x/dev/null"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18757 $as_echo "$as_me: updating cache $cache_file" >&6;}
18758 if test ! -f "$cache_file" || test -h "$cache_file"; then
18759 cat confcache >"$cache_file"
18760 else
18761 case $cache_file in #(
18762 */* | ?:*)
18763 mv -f confcache "$cache_file"$$ &&
18764 mv -f "$cache_file"$$ "$cache_file" ;; #(
18765 *)
18766 mv -f confcache "$cache_file" ;;
18767 esac
18768 fi
18769 fi
18770 else
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18772 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18773 fi
18774 fi
18775 rm -f confcache
18776
18777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18778 # Let make expand exec_prefix.
18779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18780
18781 DEFS=-DHAVE_CONFIG_H
18782
18783 ac_libobjs=
18784 ac_ltlibobjs=
18785 U=
18786 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18787 # 1. Remove the extension, and $U if already installed.
18788 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18789 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18790 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18791 # will be set to the directory where LIBOBJS objects are built.
18792 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18793 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18794 done
18795 LIBOBJS=$ac_libobjs
18796
18797 LTLIBOBJS=$ac_ltlibobjs
18798
18799
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18801 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18802 if test -n "$am_sleep_pid"; then
18803 # Hide warnings about reused PIDs.
18804 wait $am_sleep_pid 2>/dev/null
18805 fi
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18807 $as_echo "done" >&6; }
18808 if test -n "$EXEEXT"; then
18809 am__EXEEXT_TRUE=
18810 am__EXEEXT_FALSE='#'
18811 else
18812 am__EXEEXT_TRUE='#'
18813 am__EXEEXT_FALSE=
18814 fi
18815
18816 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18817 as_fn_error $? "conditional \"AMDEP\" was never defined.
18818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18819 fi
18820 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18821 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18823 fi
18824 if test -z "${PCIACCESS_TRUE}" && test -z "${PCIACCESS_FALSE}"; then
18825 as_fn_error $? "conditional \"PCIACCESS\" was never defined.
18826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18827 fi
18828
18829 : "${CONFIG_STATUS=./config.status}"
18830 ac_write_fail=0
18831 ac_clean_files_save=$ac_clean_files
18832 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18834 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18835 as_write_fail=0
18836 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18837 #! $SHELL
18838 # Generated by $as_me.
18839 # Run this file to recreate the current configuration.
18840 # Compiler output produced by configure, useful for debugging
18841 # configure, is in config.log if it exists.
18842
18843 debug=false
18844 ac_cs_recheck=false
18845 ac_cs_silent=false
18846
18847 SHELL=\${CONFIG_SHELL-$SHELL}
18848 export SHELL
18849 _ASEOF
18850 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18851 ## -------------------- ##
18852 ## M4sh Initialization. ##
18853 ## -------------------- ##
18854
18855 # Be more Bourne compatible
18856 DUALCASE=1; export DUALCASE # for MKS sh
18857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18858 emulate sh
18859 NULLCMD=:
18860 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18861 # is contrary to our usage. Disable this feature.
18862 alias -g '${1+"$@"}'='"$@"'
18863 setopt NO_GLOB_SUBST
18864 else
18865 case `(set -o) 2>/dev/null` in #(
18866 *posix*) :
18867 set -o posix ;; #(
18868 *) :
18869 ;;
18870 esac
18871 fi
18872
18873
18874 as_nl='
18875 '
18876 export as_nl
18877 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18878 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18881 # Prefer a ksh shell builtin over an external printf program on Solaris,
18882 # but without wasting forks for bash or zsh.
18883 if test -z "$BASH_VERSION$ZSH_VERSION" \
18884 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18885 as_echo='print -r --'
18886 as_echo_n='print -rn --'
18887 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18888 as_echo='printf %s\n'
18889 as_echo_n='printf %s'
18890 else
18891 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18892 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18893 as_echo_n='/usr/ucb/echo -n'
18894 else
18895 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18896 as_echo_n_body='eval
18897 arg=$1;
18898 case $arg in #(
18899 *"$as_nl"*)
18900 expr "X$arg" : "X\\(.*\\)$as_nl";
18901 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18902 esac;
18903 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18904 '
18905 export as_echo_n_body
18906 as_echo_n='sh -c $as_echo_n_body as_echo'
18907 fi
18908 export as_echo_body
18909 as_echo='sh -c $as_echo_body as_echo'
18910 fi
18911
18912 # The user is always right.
18913 if test "${PATH_SEPARATOR+set}" != set; then
18914 PATH_SEPARATOR=:
18915 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18916 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18917 PATH_SEPARATOR=';'
18918 }
18919 fi
18920
18921
18922 # IFS
18923 # We need space, tab and new line, in precisely that order. Quoting is
18924 # there to prevent editors from complaining about space-tab.
18925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18926 # splitting by setting IFS to empty value.)
18927 IFS=" "" $as_nl"
18928
18929 # Find who we are. Look in the path if we contain no directory separator.
18930 as_myself=
18931 case $0 in #((
18932 *[\\/]* ) as_myself=$0 ;;
18933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $PATH
18935 do
18936 IFS=$as_save_IFS
18937 test -z "$as_dir" && as_dir=.
18938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18939 done
18940 IFS=$as_save_IFS
18941
18942 ;;
18943 esac
18944 # We did not find ourselves, most probably we were run as `sh COMMAND'
18945 # in which case we are not to be found in the path.
18946 if test "x$as_myself" = x; then
18947 as_myself=$0
18948 fi
18949 if test ! -f "$as_myself"; then
18950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18951 exit 1
18952 fi
18953
18954 # Unset variables that we do not need and which cause bugs (e.g. in
18955 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18956 # suppresses any "Segmentation fault" message there. '((' could
18957 # trigger a bug in pdksh 5.2.14.
18958 for as_var in BASH_ENV ENV MAIL MAILPATH
18959 do eval test x\${$as_var+set} = xset \
18960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18961 done
18962 PS1='$ '
18963 PS2='> '
18964 PS4='+ '
18965
18966 # NLS nuisances.
18967 LC_ALL=C
18968 export LC_ALL
18969 LANGUAGE=C
18970 export LANGUAGE
18971
18972 # CDPATH.
18973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18974
18975
18976 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18977 # ----------------------------------------
18978 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18979 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18980 # script with STATUS, using 1 if that was 0.
18981 as_fn_error ()
18982 {
18983 as_status=$1; test $as_status -eq 0 && as_status=1
18984 if test "$4"; then
18985 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18987 fi
18988 $as_echo "$as_me: error: $2" >&2
18989 as_fn_exit $as_status
18990 } # as_fn_error
18991
18992
18993 # as_fn_set_status STATUS
18994 # -----------------------
18995 # Set $? to STATUS, without forking.
18996 as_fn_set_status ()
18997 {
18998 return $1
18999 } # as_fn_set_status
19000
19001 # as_fn_exit STATUS
19002 # -----------------
19003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19004 as_fn_exit ()
19005 {
19006 set +e
19007 as_fn_set_status $1
19008 exit $1
19009 } # as_fn_exit
19010
19011 # as_fn_unset VAR
19012 # ---------------
19013 # Portably unset VAR.
19014 as_fn_unset ()
19015 {
19016 { eval $1=; unset $1;}
19017 }
19018 as_unset=as_fn_unset
19019 # as_fn_append VAR VALUE
19020 # ----------------------
19021 # Append the text in VALUE to the end of the definition contained in VAR. Take
19022 # advantage of any shell optimizations that allow amortized linear growth over
19023 # repeated appends, instead of the typical quadratic growth present in naive
19024 # implementations.
19025 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19026 eval 'as_fn_append ()
19027 {
19028 eval $1+=\$2
19029 }'
19030 else
19031 as_fn_append ()
19032 {
19033 eval $1=\$$1\$2
19034 }
19035 fi # as_fn_append
19036
19037 # as_fn_arith ARG...
19038 # ------------------
19039 # Perform arithmetic evaluation on the ARGs, and store the result in the
19040 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19041 # must be portable across $(()) and expr.
19042 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19043 eval 'as_fn_arith ()
19044 {
19045 as_val=$(( $* ))
19046 }'
19047 else
19048 as_fn_arith ()
19049 {
19050 as_val=`expr "$@" || test $? -eq 1`
19051 }
19052 fi # as_fn_arith
19053
19054
19055 if expr a : '\(a\)' >/dev/null 2>&1 &&
19056 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19057 as_expr=expr
19058 else
19059 as_expr=false
19060 fi
19061
19062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19063 as_basename=basename
19064 else
19065 as_basename=false
19066 fi
19067
19068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19069 as_dirname=dirname
19070 else
19071 as_dirname=false
19072 fi
19073
19074 as_me=`$as_basename -- "$0" ||
19075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19076 X"$0" : 'X\(//\)$' \| \
19077 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19078 $as_echo X/"$0" |
19079 sed '/^.*\/\([^/][^/]*\)\/*$/{
19080 s//\1/
19081 q
19082 }
19083 /^X\/\(\/\/\)$/{
19084 s//\1/
19085 q
19086 }
19087 /^X\/\(\/\).*/{
19088 s//\1/
19089 q
19090 }
19091 s/.*/./; q'`
19092
19093 # Avoid depending upon Character Ranges.
19094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19097 as_cr_digits='0123456789'
19098 as_cr_alnum=$as_cr_Letters$as_cr_digits
19099
19100 ECHO_C= ECHO_N= ECHO_T=
19101 case `echo -n x` in #(((((
19102 -n*)
19103 case `echo 'xy\c'` in
19104 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19105 xy) ECHO_C='\c';;
19106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19107 ECHO_T=' ';;
19108 esac;;
19109 *)
19110 ECHO_N='-n';;
19111 esac
19112
19113 rm -f conf$$ conf$$.exe conf$$.file
19114 if test -d conf$$.dir; then
19115 rm -f conf$$.dir/conf$$.file
19116 else
19117 rm -f conf$$.dir
19118 mkdir conf$$.dir 2>/dev/null
19119 fi
19120 if (echo >conf$$.file) 2>/dev/null; then
19121 if ln -s conf$$.file conf$$ 2>/dev/null; then
19122 as_ln_s='ln -s'
19123 # ... but there are two gotchas:
19124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19126 # In both cases, we have to default to `cp -pR'.
19127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19128 as_ln_s='cp -pR'
19129 elif ln conf$$.file conf$$ 2>/dev/null; then
19130 as_ln_s=ln
19131 else
19132 as_ln_s='cp -pR'
19133 fi
19134 else
19135 as_ln_s='cp -pR'
19136 fi
19137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19138 rmdir conf$$.dir 2>/dev/null
19139
19140
19141 # as_fn_mkdir_p
19142 # -------------
19143 # Create "$as_dir" as a directory, including parents if necessary.
19144 as_fn_mkdir_p ()
19145 {
19146
19147 case $as_dir in #(
19148 -*) as_dir=./$as_dir;;
19149 esac
19150 test -d "$as_dir" || eval $as_mkdir_p || {
19151 as_dirs=
19152 while :; do
19153 case $as_dir in #(
19154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19155 *) as_qdir=$as_dir;;
19156 esac
19157 as_dirs="'$as_qdir' $as_dirs"
19158 as_dir=`$as_dirname -- "$as_dir" ||
19159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19160 X"$as_dir" : 'X\(//\)[^/]' \| \
19161 X"$as_dir" : 'X\(//\)$' \| \
19162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19163 $as_echo X"$as_dir" |
19164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19165 s//\1/
19166 q
19167 }
19168 /^X\(\/\/\)[^/].*/{
19169 s//\1/
19170 q
19171 }
19172 /^X\(\/\/\)$/{
19173 s//\1/
19174 q
19175 }
19176 /^X\(\/\).*/{
19177 s//\1/
19178 q
19179 }
19180 s/.*/./; q'`
19181 test -d "$as_dir" && break
19182 done
19183 test -z "$as_dirs" || eval "mkdir $as_dirs"
19184 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19185
19186
19187 } # as_fn_mkdir_p
19188 if mkdir -p . 2>/dev/null; then
19189 as_mkdir_p='mkdir -p "$as_dir"'
19190 else
19191 test -d ./-p && rmdir ./-p
19192 as_mkdir_p=false
19193 fi
19194
19195
19196 # as_fn_executable_p FILE
19197 # -----------------------
19198 # Test if FILE is an executable regular file.
19199 as_fn_executable_p ()
19200 {
19201 test -f "$1" && test -x "$1"
19202 } # as_fn_executable_p
19203 as_test_x='test -x'
19204 as_executable_p=as_fn_executable_p
19205
19206 # Sed expression to map a string onto a valid CPP name.
19207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19208
19209 # Sed expression to map a string onto a valid variable name.
19210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19211
19212
19213 exec 6>&1
19214 ## ----------------------------------- ##
19215 ## Main body of $CONFIG_STATUS script. ##
19216 ## ----------------------------------- ##
19217 _ASEOF
19218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19219
19220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19221 # Save the log message, to keep $0 and so on meaningful, and to
19222 # report actual input values of CONFIG_FILES etc. instead of their
19223 # values after options handling.
19224 ac_log="
19225 This file was extended by xf86-video-fbdev $as_me 0.5.0, which was
19226 generated by GNU Autoconf 2.69. Invocation command line was
19227
19228 CONFIG_FILES = $CONFIG_FILES
19229 CONFIG_HEADERS = $CONFIG_HEADERS
19230 CONFIG_LINKS = $CONFIG_LINKS
19231 CONFIG_COMMANDS = $CONFIG_COMMANDS
19232 $ $0 $@
19233
19234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19235 "
19236
19237 _ACEOF
19238
19239 case $ac_config_files in *"
19240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19241 esac
19242
19243 case $ac_config_headers in *"
19244 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19245 esac
19246
19247
19248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19249 # Files that config.status was made for.
19250 config_files="$ac_config_files"
19251 config_headers="$ac_config_headers"
19252 config_commands="$ac_config_commands"
19253
19254 _ACEOF
19255
19256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19257 ac_cs_usage="\
19258 \`$as_me' instantiates files and other configuration actions
19259 from templates according to the current configuration. Unless the files
19260 and actions are specified as TAGs, all are instantiated by default.
19261
19262 Usage: $0 [OPTION]... [TAG]...
19263
19264 -h, --help print this help, then exit
19265 -V, --version print version number and configuration settings, then exit
19266 --config print configuration, then exit
19267 -q, --quiet, --silent
19268 do not print progress messages
19269 -d, --debug don't remove temporary files
19270 --recheck update $as_me by reconfiguring in the same conditions
19271 --file=FILE[:TEMPLATE]
19272 instantiate the configuration file FILE
19273 --header=FILE[:TEMPLATE]
19274 instantiate the configuration header FILE
19275
19276 Configuration files:
19277 $config_files
19278
19279 Configuration headers:
19280 $config_headers
19281
19282 Configuration commands:
19283 $config_commands
19284
19285 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19286
19287 _ACEOF
19288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19289 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19290 ac_cs_version="\\
19291 xf86-video-fbdev config.status 0.5.0
19292 configured by $0, generated by GNU Autoconf 2.69,
19293 with options \\"\$ac_cs_config\\"
19294
19295 Copyright (C) 2012 Free Software Foundation, Inc.
19296 This config.status script is free software; the Free Software Foundation
19297 gives unlimited permission to copy, distribute and modify it."
19298
19299 ac_pwd='$ac_pwd'
19300 srcdir='$srcdir'
19301 INSTALL='$INSTALL'
19302 MKDIR_P='$MKDIR_P'
19303 AWK='$AWK'
19304 test -n "\$AWK" || AWK=awk
19305 _ACEOF
19306
19307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19308 # The default lists apply if the user does not specify any file.
19309 ac_need_defaults=:
19310 while test $# != 0
19311 do
19312 case $1 in
19313 --*=?*)
19314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19315 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19316 ac_shift=:
19317 ;;
19318 --*=)
19319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19320 ac_optarg=
19321 ac_shift=:
19322 ;;
19323 *)
19324 ac_option=$1
19325 ac_optarg=$2
19326 ac_shift=shift
19327 ;;
19328 esac
19329
19330 case $ac_option in
19331 # Handling of the options.
19332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19333 ac_cs_recheck=: ;;
19334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19335 $as_echo "$ac_cs_version"; exit ;;
19336 --config | --confi | --conf | --con | --co | --c )
19337 $as_echo "$ac_cs_config"; exit ;;
19338 --debug | --debu | --deb | --de | --d | -d )
19339 debug=: ;;
19340 --file | --fil | --fi | --f )
19341 $ac_shift
19342 case $ac_optarg in
19343 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19344 '') as_fn_error $? "missing file argument" ;;
19345 esac
19346 as_fn_append CONFIG_FILES " '$ac_optarg'"
19347 ac_need_defaults=false;;
19348 --header | --heade | --head | --hea )
19349 $ac_shift
19350 case $ac_optarg in
19351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19352 esac
19353 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19354 ac_need_defaults=false;;
19355 --he | --h)
19356 # Conflict between --help and --header
19357 as_fn_error $? "ambiguous option: \`$1'
19358 Try \`$0 --help' for more information.";;
19359 --help | --hel | -h )
19360 $as_echo "$ac_cs_usage"; exit ;;
19361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19363 ac_cs_silent=: ;;
19364
19365 # This is an error.
19366 -*) as_fn_error $? "unrecognized option: \`$1'
19367 Try \`$0 --help' for more information." ;;
19368
19369 *) as_fn_append ac_config_targets " $1"
19370 ac_need_defaults=false ;;
19371
19372 esac
19373 shift
19374 done
19375
19376 ac_configure_extra_args=
19377
19378 if $ac_cs_silent; then
19379 exec 6>/dev/null
19380 ac_configure_extra_args="$ac_configure_extra_args --silent"
19381 fi
19382
19383 _ACEOF
19384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19385 if \$ac_cs_recheck; then
19386 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19387 shift
19388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19389 CONFIG_SHELL='$SHELL'
19390 export CONFIG_SHELL
19391 exec "\$@"
19392 fi
19393
19394 _ACEOF
19395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19396 exec 5>>config.log
19397 {
19398 echo
19399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19400 ## Running $as_me. ##
19401 _ASBOX
19402 $as_echo "$ac_log"
19403 } >&5
19404
19405 _ACEOF
19406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19407 #
19408 # INIT-COMMANDS
19409 #
19410 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19411
19412
19413 # The HP-UX ksh and POSIX shell print the target directory to stdout
19414 # if CDPATH is set.
19415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19416
19417 sed_quote_subst='$sed_quote_subst'
19418 double_quote_subst='$double_quote_subst'
19419 delay_variable_subst='$delay_variable_subst'
19420 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19421 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19422 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19423 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19424 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19425 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19426 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19427 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19428 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19429 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19430 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19431 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19432 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19433 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19434 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19435 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19436 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19437 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19438 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19439 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19440 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19441 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19442 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19443 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19444 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19445 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19446 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19447 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19448 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19449 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19450 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19451 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19452 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19453 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19454 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19455 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19456 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19457 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19458 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19459 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19460 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19463 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19464 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19465 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19466 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19467 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19468 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19469 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19470 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19471 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19472 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19473 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19474 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19475 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19476 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19477 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19478 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"`'
19479 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19480 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19481 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19482 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19483 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19484 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19485 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19486 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19487 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19488 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19489 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19490 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19491 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19492 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19493 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19494 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19495 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19496 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19497 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19498 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19499 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19500 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19501 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19502 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19503 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19504 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19505 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19506 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19507 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19508 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19509 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19510 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19511 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19512 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19513 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19514 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19515 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19516 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19517 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19518 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19519 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19520 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19521 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19522 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19523 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19524 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19525 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19526 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19527 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19528 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19529 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19530 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19531 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19532 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19533 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19534 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19535 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19536 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19537 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19538 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19539 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19540 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19541 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19542 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19543 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19544 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19545 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19546 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19547 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19548 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19549 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19550 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19551 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19552 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19553 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19554 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19555
19556 LTCC='$LTCC'
19557 LTCFLAGS='$LTCFLAGS'
19558 compiler='$compiler_DEFAULT'
19559
19560 # A function that is used when there is no print builtin or printf.
19561 func_fallback_echo ()
19562 {
19563 eval 'cat <<_LTECHO_EOF
19564 \$1
19565 _LTECHO_EOF'
19566 }
19567
19568 # Quote evaled strings.
19569 for var in SHELL \
19570 ECHO \
19571 PATH_SEPARATOR \
19572 SED \
19573 GREP \
19574 EGREP \
19575 FGREP \
19576 LD \
19577 NM \
19578 LN_S \
19579 lt_SP2NL \
19580 lt_NL2SP \
19581 reload_flag \
19582 OBJDUMP \
19583 deplibs_check_method \
19584 file_magic_cmd \
19585 file_magic_glob \
19586 want_nocaseglob \
19587 DLLTOOL \
19588 sharedlib_from_linklib_cmd \
19589 AR \
19590 AR_FLAGS \
19591 archiver_list_spec \
19592 STRIP \
19593 RANLIB \
19594 CC \
19595 CFLAGS \
19596 compiler \
19597 lt_cv_sys_global_symbol_pipe \
19598 lt_cv_sys_global_symbol_to_cdecl \
19599 lt_cv_sys_global_symbol_to_import \
19600 lt_cv_sys_global_symbol_to_c_name_address \
19601 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19602 lt_cv_nm_interface \
19603 nm_file_list_spec \
19604 lt_cv_truncate_bin \
19605 lt_prog_compiler_no_builtin_flag \
19606 lt_prog_compiler_pic \
19607 lt_prog_compiler_wl \
19608 lt_prog_compiler_static \
19609 lt_cv_prog_compiler_c_o \
19610 need_locks \
19611 MANIFEST_TOOL \
19612 DSYMUTIL \
19613 NMEDIT \
19614 LIPO \
19615 OTOOL \
19616 OTOOL64 \
19617 shrext_cmds \
19618 export_dynamic_flag_spec \
19619 whole_archive_flag_spec \
19620 compiler_needs_object \
19621 with_gnu_ld \
19622 allow_undefined_flag \
19623 no_undefined_flag \
19624 hardcode_libdir_flag_spec \
19625 hardcode_libdir_separator \
19626 exclude_expsyms \
19627 include_expsyms \
19628 file_list_spec \
19629 variables_saved_for_relink \
19630 libname_spec \
19631 library_names_spec \
19632 soname_spec \
19633 install_override_mode \
19634 finish_eval \
19635 old_striplib \
19636 striplib; do
19637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19638 *[\\\\\\\`\\"\\\$]*)
19639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19640 ;;
19641 *)
19642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19643 ;;
19644 esac
19645 done
19646
19647 # Double-quote double-evaled strings.
19648 for var in reload_cmds \
19649 old_postinstall_cmds \
19650 old_postuninstall_cmds \
19651 old_archive_cmds \
19652 extract_expsyms_cmds \
19653 old_archive_from_new_cmds \
19654 old_archive_from_expsyms_cmds \
19655 archive_cmds \
19656 archive_expsym_cmds \
19657 module_cmds \
19658 module_expsym_cmds \
19659 export_symbols_cmds \
19660 prelink_cmds \
19661 postlink_cmds \
19662 postinstall_cmds \
19663 postuninstall_cmds \
19664 finish_cmds \
19665 sys_lib_search_path_spec \
19666 configure_time_dlsearch_path \
19667 configure_time_lt_sys_library_path; do
19668 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19669 *[\\\\\\\`\\"\\\$]*)
19670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19671 ;;
19672 *)
19673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19674 ;;
19675 esac
19676 done
19677
19678 ac_aux_dir='$ac_aux_dir'
19679
19680 # See if we are running on zsh, and set the options that allow our
19681 # commands through without removal of \ escapes INIT.
19682 if test -n "\${ZSH_VERSION+set}"; then
19683 setopt NO_GLOB_SUBST
19684 fi
19685
19686
19687 PACKAGE='$PACKAGE'
19688 VERSION='$VERSION'
19689 RM='$RM'
19690 ofile='$ofile'
19691
19692
19693
19694
19695 _ACEOF
19696
19697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19698
19699 # Handling of arguments.
19700 for ac_config_target in $ac_config_targets
19701 do
19702 case $ac_config_target in
19703 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19704 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19705 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19707 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19708 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19709
19710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19711 esac
19712 done
19713
19714
19715 # If the user did not use the arguments to specify the items to instantiate,
19716 # then the envvar interface is used. Set only those that are not.
19717 # We use the long form for the default assignment because of an extremely
19718 # bizarre bug on SunOS 4.1.3.
19719 if $ac_need_defaults; then
19720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19723 fi
19724
19725 # Have a temporary directory for convenience. Make it in the build tree
19726 # simply because there is no reason against having it here, and in addition,
19727 # creating and moving files from /tmp can sometimes cause problems.
19728 # Hook for its removal unless debugging.
19729 # Note that there is a small window in which the directory will not be cleaned:
19730 # after its creation but before its name has been assigned to `$tmp'.
19731 $debug ||
19732 {
19733 tmp= ac_tmp=
19734 trap 'exit_status=$?
19735 : "${ac_tmp:=$tmp}"
19736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19737 ' 0
19738 trap 'as_fn_exit 1' 1 2 13 15
19739 }
19740 # Create a (secure) tmp directory for tmp files.
19741
19742 {
19743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19744 test -d "$tmp"
19745 } ||
19746 {
19747 tmp=./conf$$-$RANDOM
19748 (umask 077 && mkdir "$tmp")
19749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19750 ac_tmp=$tmp
19751
19752 # Set up the scripts for CONFIG_FILES section.
19753 # No need to generate them if there are no CONFIG_FILES.
19754 # This happens for instance with `./config.status config.h'.
19755 if test -n "$CONFIG_FILES"; then
19756
19757
19758 ac_cr=`echo X | tr X '\015'`
19759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19760 # But we know of no other shell where ac_cr would be empty at this
19761 # point, so we can use a bashism as a fallback.
19762 if test "x$ac_cr" = x; then
19763 eval ac_cr=\$\'\\r\'
19764 fi
19765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19767 ac_cs_awk_cr='\\r'
19768 else
19769 ac_cs_awk_cr=$ac_cr
19770 fi
19771
19772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19773 _ACEOF
19774
19775
19776 {
19777 echo "cat >conf$$subs.awk <<_ACEOF" &&
19778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19779 echo "_ACEOF"
19780 } >conf$$subs.sh ||
19781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19783 ac_delim='%!_!# '
19784 for ac_last_try in false false false false false :; do
19785 . ./conf$$subs.sh ||
19786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19787
19788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19789 if test $ac_delim_n = $ac_delim_num; then
19790 break
19791 elif $ac_last_try; then
19792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19793 else
19794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19795 fi
19796 done
19797 rm -f conf$$subs.sh
19798
19799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19801 _ACEOF
19802 sed -n '
19803 h
19804 s/^/S["/; s/!.*/"]=/
19805 p
19806 g
19807 s/^[^!]*!//
19808 :repl
19809 t repl
19810 s/'"$ac_delim"'$//
19811 t delim
19812 :nl
19813 h
19814 s/\(.\{148\}\)..*/\1/
19815 t more1
19816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19817 p
19818 n
19819 b repl
19820 :more1
19821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19822 p
19823 g
19824 s/.\{148\}//
19825 t nl
19826 :delim
19827 h
19828 s/\(.\{148\}\)..*/\1/
19829 t more2
19830 s/["\\]/\\&/g; s/^/"/; s/$/"/
19831 p
19832 b
19833 :more2
19834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19835 p
19836 g
19837 s/.\{148\}//
19838 t delim
19839 ' <conf$$subs.awk | sed '
19840 /^[^""]/{
19841 N
19842 s/\n//
19843 }
19844 ' >>$CONFIG_STATUS || ac_write_fail=1
19845 rm -f conf$$subs.awk
19846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19847 _ACAWK
19848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19849 for (key in S) S_is_set[key] = 1
19850 FS = ""
19851
19852 }
19853 {
19854 line = $ 0
19855 nfields = split(line, field, "@")
19856 substed = 0
19857 len = length(field[1])
19858 for (i = 2; i < nfields; i++) {
19859 key = field[i]
19860 keylen = length(key)
19861 if (S_is_set[key]) {
19862 value = S[key]
19863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19864 len += length(value) + length(field[++i])
19865 substed = 1
19866 } else
19867 len += 1 + keylen
19868 }
19869
19870 print line
19871 }
19872
19873 _ACAWK
19874 _ACEOF
19875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19878 else
19879 cat
19880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19882 _ACEOF
19883
19884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19886 # trailing colons and then remove the whole line if VPATH becomes empty
19887 # (actually we leave an empty line to preserve line numbers).
19888 if test "x$srcdir" = x.; then
19889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19890 h
19891 s///
19892 s/^/:/
19893 s/[ ]*$/:/
19894 s/:\$(srcdir):/:/g
19895 s/:\${srcdir}:/:/g
19896 s/:@srcdir@:/:/g
19897 s/^:*//
19898 s/:*$//
19899 x
19900 s/\(=[ ]*\).*/\1/
19901 G
19902 s/\n//
19903 s/^[^=]*=[ ]*$//
19904 }'
19905 fi
19906
19907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19908 fi # test -n "$CONFIG_FILES"
19909
19910 # Set up the scripts for CONFIG_HEADERS section.
19911 # No need to generate them if there are no CONFIG_HEADERS.
19912 # This happens for instance with `./config.status Makefile'.
19913 if test -n "$CONFIG_HEADERS"; then
19914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19915 BEGIN {
19916 _ACEOF
19917
19918 # Transform confdefs.h into an awk script `defines.awk', embedded as
19919 # here-document in config.status, that substitutes the proper values into
19920 # config.h.in to produce config.h.
19921
19922 # Create a delimiter string that does not exist in confdefs.h, to ease
19923 # handling of long lines.
19924 ac_delim='%!_!# '
19925 for ac_last_try in false false :; do
19926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19927 if test -z "$ac_tt"; then
19928 break
19929 elif $ac_last_try; then
19930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19931 else
19932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19933 fi
19934 done
19935
19936 # For the awk script, D is an array of macro values keyed by name,
19937 # likewise P contains macro parameters if any. Preserve backslash
19938 # newline sequences.
19939
19940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19941 sed -n '
19942 s/.\{148\}/&'"$ac_delim"'/g
19943 t rset
19944 :rset
19945 s/^[ ]*#[ ]*define[ ][ ]*/ /
19946 t def
19947 d
19948 :def
19949 s/\\$//
19950 t bsnl
19951 s/["\\]/\\&/g
19952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19953 D["\1"]=" \3"/p
19954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19955 d
19956 :bsnl
19957 s/["\\]/\\&/g
19958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19959 D["\1"]=" \3\\\\\\n"\\/p
19960 t cont
19961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19962 t cont
19963 d
19964 :cont
19965 n
19966 s/.\{148\}/&'"$ac_delim"'/g
19967 t clear
19968 :clear
19969 s/\\$//
19970 t bsnlc
19971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19972 d
19973 :bsnlc
19974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19975 b cont
19976 ' <confdefs.h | sed '
19977 s/'"$ac_delim"'/"\\\
19978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19979
19980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19981 for (key in D) D_is_set[key] = 1
19982 FS = ""
19983 }
19984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19985 line = \$ 0
19986 split(line, arg, " ")
19987 if (arg[1] == "#") {
19988 defundef = arg[2]
19989 mac1 = arg[3]
19990 } else {
19991 defundef = substr(arg[1], 2)
19992 mac1 = arg[2]
19993 }
19994 split(mac1, mac2, "(") #)
19995 macro = mac2[1]
19996 prefix = substr(line, 1, index(line, defundef) - 1)
19997 if (D_is_set[macro]) {
19998 # Preserve the white space surrounding the "#".
19999 print prefix "define", macro P[macro] D[macro]
20000 next
20001 } else {
20002 # Replace #undef with comments. This is necessary, for example,
20003 # in the case of _POSIX_SOURCE, which is predefined and required
20004 # on some systems where configure will not decide to define it.
20005 if (defundef == "undef") {
20006 print "/*", prefix defundef, macro, "*/"
20007 next
20008 }
20009 }
20010 }
20011 { print }
20012 _ACAWK
20013 _ACEOF
20014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20016 fi # test -n "$CONFIG_HEADERS"
20017
20018
20019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20020 shift
20021 for ac_tag
20022 do
20023 case $ac_tag in
20024 :[FHLC]) ac_mode=$ac_tag; continue;;
20025 esac
20026 case $ac_mode$ac_tag in
20027 :[FHL]*:*);;
20028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20029 :[FH]-) ac_tag=-:-;;
20030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20031 esac
20032 ac_save_IFS=$IFS
20033 IFS=:
20034 set x $ac_tag
20035 IFS=$ac_save_IFS
20036 shift
20037 ac_file=$1
20038 shift
20039
20040 case $ac_mode in
20041 :L) ac_source=$1;;
20042 :[FH])
20043 ac_file_inputs=
20044 for ac_f
20045 do
20046 case $ac_f in
20047 -) ac_f="$ac_tmp/stdin";;
20048 *) # Look for the file first in the build tree, then in the source tree
20049 # (if the path is not absolute). The absolute path cannot be DOS-style,
20050 # because $ac_f cannot contain `:'.
20051 test -f "$ac_f" ||
20052 case $ac_f in
20053 [\\/$]*) false;;
20054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20055 esac ||
20056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20057 esac
20058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20059 as_fn_append ac_file_inputs " '$ac_f'"
20060 done
20061
20062 # Let's still pretend it is `configure' which instantiates (i.e., don't
20063 # use $as_me), people would be surprised to read:
20064 # /* config.h. Generated by config.status. */
20065 configure_input='Generated from '`
20066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20067 `' by configure.'
20068 if test x"$ac_file" != x-; then
20069 configure_input="$ac_file. $configure_input"
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20071 $as_echo "$as_me: creating $ac_file" >&6;}
20072 fi
20073 # Neutralize special characters interpreted by sed in replacement strings.
20074 case $configure_input in #(
20075 *\&* | *\|* | *\\* )
20076 ac_sed_conf_input=`$as_echo "$configure_input" |
20077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20078 *) ac_sed_conf_input=$configure_input;;
20079 esac
20080
20081 case $ac_tag in
20082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20084 esac
20085 ;;
20086 esac
20087
20088 ac_dir=`$as_dirname -- "$ac_file" ||
20089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20090 X"$ac_file" : 'X\(//\)[^/]' \| \
20091 X"$ac_file" : 'X\(//\)$' \| \
20092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20093 $as_echo X"$ac_file" |
20094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20095 s//\1/
20096 q
20097 }
20098 /^X\(\/\/\)[^/].*/{
20099 s//\1/
20100 q
20101 }
20102 /^X\(\/\/\)$/{
20103 s//\1/
20104 q
20105 }
20106 /^X\(\/\).*/{
20107 s//\1/
20108 q
20109 }
20110 s/.*/./; q'`
20111 as_dir="$ac_dir"; as_fn_mkdir_p
20112 ac_builddir=.
20113
20114 case "$ac_dir" in
20115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20116 *)
20117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20118 # A ".." for each directory in $ac_dir_suffix.
20119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20120 case $ac_top_builddir_sub in
20121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20123 esac ;;
20124 esac
20125 ac_abs_top_builddir=$ac_pwd
20126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20127 # for backward compatibility:
20128 ac_top_builddir=$ac_top_build_prefix
20129
20130 case $srcdir in
20131 .) # We are building in place.
20132 ac_srcdir=.
20133 ac_top_srcdir=$ac_top_builddir_sub
20134 ac_abs_top_srcdir=$ac_pwd ;;
20135 [\\/]* | ?:[\\/]* ) # Absolute name.
20136 ac_srcdir=$srcdir$ac_dir_suffix;
20137 ac_top_srcdir=$srcdir
20138 ac_abs_top_srcdir=$srcdir ;;
20139 *) # Relative name.
20140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20141 ac_top_srcdir=$ac_top_build_prefix$srcdir
20142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20143 esac
20144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20145
20146
20147 case $ac_mode in
20148 :F)
20149 #
20150 # CONFIG_FILE
20151 #
20152
20153 case $INSTALL in
20154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20156 esac
20157 ac_MKDIR_P=$MKDIR_P
20158 case $MKDIR_P in
20159 [\\/$]* | ?:[\\/]* ) ;;
20160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20161 esac
20162 _ACEOF
20163
20164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20165 # If the template does not know about datarootdir, expand it.
20166 # FIXME: This hack should be removed a few years after 2.60.
20167 ac_datarootdir_hack=; ac_datarootdir_seen=
20168 ac_sed_dataroot='
20169 /datarootdir/ {
20170 p
20171 q
20172 }
20173 /@datadir@/p
20174 /@docdir@/p
20175 /@infodir@/p
20176 /@localedir@/p
20177 /@mandir@/p'
20178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20179 *datarootdir*) ac_datarootdir_seen=yes;;
20180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20183 _ACEOF
20184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20185 ac_datarootdir_hack='
20186 s&@datadir@&$datadir&g
20187 s&@docdir@&$docdir&g
20188 s&@infodir@&$infodir&g
20189 s&@localedir@&$localedir&g
20190 s&@mandir@&$mandir&g
20191 s&\\\${datarootdir}&$datarootdir&g' ;;
20192 esac
20193 _ACEOF
20194
20195 # Neutralize VPATH when `$srcdir' = `.'.
20196 # Shell code in configure.ac might set extrasub.
20197 # FIXME: do we really want to maintain this feature?
20198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20199 ac_sed_extra="$ac_vpsub
20200 $extrasub
20201 _ACEOF
20202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20203 :t
20204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20205 s|@configure_input@|$ac_sed_conf_input|;t t
20206 s&@top_builddir@&$ac_top_builddir_sub&;t t
20207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20208 s&@srcdir@&$ac_srcdir&;t t
20209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20210 s&@top_srcdir@&$ac_top_srcdir&;t t
20211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20212 s&@builddir@&$ac_builddir&;t t
20213 s&@abs_builddir@&$ac_abs_builddir&;t t
20214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20215 s&@INSTALL@&$ac_INSTALL&;t t
20216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20217 $ac_datarootdir_hack
20218 "
20219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20221
20222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20227 which seems to be undefined. Please make sure it is defined" >&5
20228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20229 which seems to be undefined. Please make sure it is defined" >&2;}
20230
20231 rm -f "$ac_tmp/stdin"
20232 case $ac_file in
20233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20235 esac \
20236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20237 ;;
20238 :H)
20239 #
20240 # CONFIG_HEADER
20241 #
20242 if test x"$ac_file" != x-; then
20243 {
20244 $as_echo "/* $configure_input */" \
20245 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20246 } >"$ac_tmp/config.h" \
20247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20248 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20251 else
20252 rm -f "$ac_file"
20253 mv "$ac_tmp/config.h" "$ac_file" \
20254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20255 fi
20256 else
20257 $as_echo "/* $configure_input */" \
20258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20259 || as_fn_error $? "could not create -" "$LINENO" 5
20260 fi
20261 # Compute "$ac_file"'s index in $config_headers.
20262 _am_arg="$ac_file"
20263 _am_stamp_count=1
20264 for _am_header in $config_headers :; do
20265 case $_am_header in
20266 $_am_arg | $_am_arg:* )
20267 break ;;
20268 * )
20269 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20270 esac
20271 done
20272 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20273 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20274 X"$_am_arg" : 'X\(//\)[^/]' \| \
20275 X"$_am_arg" : 'X\(//\)$' \| \
20276 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20277 $as_echo X"$_am_arg" |
20278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20279 s//\1/
20280 q
20281 }
20282 /^X\(\/\/\)[^/].*/{
20283 s//\1/
20284 q
20285 }
20286 /^X\(\/\/\)$/{
20287 s//\1/
20288 q
20289 }
20290 /^X\(\/\).*/{
20291 s//\1/
20292 q
20293 }
20294 s/.*/./; q'`/stamp-h$_am_stamp_count
20295 ;;
20296
20297 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20298 $as_echo "$as_me: executing $ac_file commands" >&6;}
20299 ;;
20300 esac
20301
20302
20303 case $ac_file$ac_mode in
20304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20305 # Older Autoconf quotes --file arguments for eval, but not when files
20306 # are listed without --file. Let's play safe and only enable the eval
20307 # if we detect the quoting.
20308 case $CONFIG_FILES in
20309 *\'*) eval set x "$CONFIG_FILES" ;;
20310 *) set x $CONFIG_FILES ;;
20311 esac
20312 shift
20313 for mf
20314 do
20315 # Strip MF so we end up with the name of the file.
20316 mf=`echo "$mf" | sed -e 's/:.*$//'`
20317 # Check whether this is an Automake generated Makefile or not.
20318 # We used to match only the files named 'Makefile.in', but
20319 # some people rename them; so instead we look at the file content.
20320 # Grep'ing the first line is not enough: some people post-process
20321 # each Makefile.in and add a new line on top of each file to say so.
20322 # Grep'ing the whole file is not good either: AIX grep has a line
20323 # limit of 2048, but all sed's we know have understand at least 4000.
20324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20325 dirpart=`$as_dirname -- "$mf" ||
20326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20327 X"$mf" : 'X\(//\)[^/]' \| \
20328 X"$mf" : 'X\(//\)$' \| \
20329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20330 $as_echo X"$mf" |
20331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20332 s//\1/
20333 q
20334 }
20335 /^X\(\/\/\)[^/].*/{
20336 s//\1/
20337 q
20338 }
20339 /^X\(\/\/\)$/{
20340 s//\1/
20341 q
20342 }
20343 /^X\(\/\).*/{
20344 s//\1/
20345 q
20346 }
20347 s/.*/./; q'`
20348 else
20349 continue
20350 fi
20351 # Extract the definition of DEPDIR, am__include, and am__quote
20352 # from the Makefile without running 'make'.
20353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20354 test -z "$DEPDIR" && continue
20355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20356 test -z "$am__include" && continue
20357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20358 # Find all dependency output files, they are included files with
20359 # $(DEPDIR) in their names. We invoke sed twice because it is the
20360 # simplest approach to changing $(DEPDIR) to its actual value in the
20361 # expansion.
20362 for file in `sed -n "
20363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20365 # Make sure the directory exists.
20366 test -f "$dirpart/$file" && continue
20367 fdir=`$as_dirname -- "$file" ||
20368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20369 X"$file" : 'X\(//\)[^/]' \| \
20370 X"$file" : 'X\(//\)$' \| \
20371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20372 $as_echo X"$file" |
20373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20374 s//\1/
20375 q
20376 }
20377 /^X\(\/\/\)[^/].*/{
20378 s//\1/
20379 q
20380 }
20381 /^X\(\/\/\)$/{
20382 s//\1/
20383 q
20384 }
20385 /^X\(\/\).*/{
20386 s//\1/
20387 q
20388 }
20389 s/.*/./; q'`
20390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20391 # echo "creating $dirpart/$file"
20392 echo '# dummy' > "$dirpart/$file"
20393 done
20394 done
20395 }
20396 ;;
20397 "libtool":C)
20398
20399 # See if we are running on zsh, and set the options that allow our
20400 # commands through without removal of \ escapes.
20401 if test -n "${ZSH_VERSION+set}"; then
20402 setopt NO_GLOB_SUBST
20403 fi
20404
20405 cfgfile=${ofile}T
20406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20407 $RM "$cfgfile"
20408
20409 cat <<_LT_EOF >> "$cfgfile"
20410 #! $SHELL
20411 # Generated automatically by $as_me ($PACKAGE) $VERSION
20412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20414
20415 # Provide generalized library-building support services.
20416 # Written by Gordon Matzigkeit, 1996
20417
20418 # Copyright (C) 2014 Free Software Foundation, Inc.
20419 # This is free software; see the source for copying conditions. There is NO
20420 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20421
20422 # GNU Libtool is free software; you can redistribute it and/or modify
20423 # it under the terms of the GNU General Public License as published by
20424 # the Free Software Foundation; either version 2 of of the License, or
20425 # (at your option) any later version.
20426 #
20427 # As a special exception to the GNU General Public License, if you
20428 # distribute this file as part of a program or library that is built
20429 # using GNU Libtool, you may include this file under the same
20430 # distribution terms that you use for the rest of that program.
20431 #
20432 # GNU Libtool is distributed in the hope that it will be useful, but
20433 # WITHOUT ANY WARRANTY; without even the implied warranty of
20434 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20435 # GNU General Public License for more details.
20436 #
20437 # You should have received a copy of the GNU General Public License
20438 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20439
20440
20441 # The names of the tagged configurations supported by this script.
20442 available_tags=''
20443
20444 # Configured defaults for sys_lib_dlsearch_path munging.
20445 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20446
20447 # ### BEGIN LIBTOOL CONFIG
20448
20449 # Whether or not to build static libraries.
20450 build_old_libs=$enable_static
20451
20452 # Which release of libtool.m4 was used?
20453 macro_version=$macro_version
20454 macro_revision=$macro_revision
20455
20456 # Whether or not to build shared libraries.
20457 build_libtool_libs=$enable_shared
20458
20459 # What type of objects to build.
20460 pic_mode=$pic_mode
20461
20462 # Whether or not to optimize for fast installation.
20463 fast_install=$enable_fast_install
20464
20465 # Shared archive member basename,for filename based shared library versioning on AIX.
20466 shared_archive_member_spec=$shared_archive_member_spec
20467
20468 # Shell to use when invoking shell scripts.
20469 SHELL=$lt_SHELL
20470
20471 # An echo program that protects backslashes.
20472 ECHO=$lt_ECHO
20473
20474 # The PATH separator for the build system.
20475 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20476
20477 # The host system.
20478 host_alias=$host_alias
20479 host=$host
20480 host_os=$host_os
20481
20482 # The build system.
20483 build_alias=$build_alias
20484 build=$build
20485 build_os=$build_os
20486
20487 # A sed program that does not truncate output.
20488 SED=$lt_SED
20489
20490 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20491 Xsed="\$SED -e 1s/^X//"
20492
20493 # A grep program that handles long lines.
20494 GREP=$lt_GREP
20495
20496 # An ERE matcher.
20497 EGREP=$lt_EGREP
20498
20499 # A literal string matcher.
20500 FGREP=$lt_FGREP
20501
20502 # A BSD- or MS-compatible name lister.
20503 NM=$lt_NM
20504
20505 # Whether we need soft or hard links.
20506 LN_S=$lt_LN_S
20507
20508 # What is the maximum length of a command?
20509 max_cmd_len=$max_cmd_len
20510
20511 # Object file suffix (normally "o").
20512 objext=$ac_objext
20513
20514 # Executable file suffix (normally "").
20515 exeext=$exeext
20516
20517 # whether the shell understands "unset".
20518 lt_unset=$lt_unset
20519
20520 # turn spaces into newlines.
20521 SP2NL=$lt_lt_SP2NL
20522
20523 # turn newlines into spaces.
20524 NL2SP=$lt_lt_NL2SP
20525
20526 # convert \$build file names to \$host format.
20527 to_host_file_cmd=$lt_cv_to_host_file_cmd
20528
20529 # convert \$build files to toolchain format.
20530 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20531
20532 # An object symbol dumper.
20533 OBJDUMP=$lt_OBJDUMP
20534
20535 # Method to check whether dependent libraries are shared objects.
20536 deplibs_check_method=$lt_deplibs_check_method
20537
20538 # Command to use when deplibs_check_method = "file_magic".
20539 file_magic_cmd=$lt_file_magic_cmd
20540
20541 # How to find potential files when deplibs_check_method = "file_magic".
20542 file_magic_glob=$lt_file_magic_glob
20543
20544 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20545 want_nocaseglob=$lt_want_nocaseglob
20546
20547 # DLL creation program.
20548 DLLTOOL=$lt_DLLTOOL
20549
20550 # Command to associate shared and link libraries.
20551 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20552
20553 # The archiver.
20554 AR=$lt_AR
20555
20556 # Flags to create an archive.
20557 AR_FLAGS=$lt_AR_FLAGS
20558
20559 # How to feed a file listing to the archiver.
20560 archiver_list_spec=$lt_archiver_list_spec
20561
20562 # A symbol stripping program.
20563 STRIP=$lt_STRIP
20564
20565 # Commands used to install an old-style archive.
20566 RANLIB=$lt_RANLIB
20567 old_postinstall_cmds=$lt_old_postinstall_cmds
20568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20569
20570 # Whether to use a lock for old archive extraction.
20571 lock_old_archive_extraction=$lock_old_archive_extraction
20572
20573 # A C compiler.
20574 LTCC=$lt_CC
20575
20576 # LTCC compiler flags.
20577 LTCFLAGS=$lt_CFLAGS
20578
20579 # Take the output of nm and produce a listing of raw symbols and C names.
20580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20581
20582 # Transform the output of nm in a proper C declaration.
20583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20584
20585 # Transform the output of nm into a list of symbols to manually relocate.
20586 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20587
20588 # Transform the output of nm in a C name address pair.
20589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20590
20591 # Transform the output of nm in a C name address pair when lib prefix is needed.
20592 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20593
20594 # The name lister interface.
20595 nm_interface=$lt_lt_cv_nm_interface
20596
20597 # Specify filename containing input files for \$NM.
20598 nm_file_list_spec=$lt_nm_file_list_spec
20599
20600 # The root where to search for dependent libraries,and where our libraries should be installed.
20601 lt_sysroot=$lt_sysroot
20602
20603 # Command to truncate a binary pipe.
20604 lt_truncate_bin=$lt_lt_cv_truncate_bin
20605
20606 # The name of the directory that contains temporary libtool files.
20607 objdir=$objdir
20608
20609 # Used to examine libraries when file_magic_cmd begins with "file".
20610 MAGIC_CMD=$MAGIC_CMD
20611
20612 # Must we lock files when doing compilation?
20613 need_locks=$lt_need_locks
20614
20615 # Manifest tool.
20616 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20617
20618 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20619 DSYMUTIL=$lt_DSYMUTIL
20620
20621 # Tool to change global to local symbols on Mac OS X.
20622 NMEDIT=$lt_NMEDIT
20623
20624 # Tool to manipulate fat objects and archives on Mac OS X.
20625 LIPO=$lt_LIPO
20626
20627 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20628 OTOOL=$lt_OTOOL
20629
20630 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20631 OTOOL64=$lt_OTOOL64
20632
20633 # Old archive suffix (normally "a").
20634 libext=$libext
20635
20636 # Shared library suffix (normally ".so").
20637 shrext_cmds=$lt_shrext_cmds
20638
20639 # The commands to extract the exported symbol list from a shared archive.
20640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20641
20642 # Variables whose values should be saved in libtool wrapper scripts and
20643 # restored at link time.
20644 variables_saved_for_relink=$lt_variables_saved_for_relink
20645
20646 # Do we need the "lib" prefix for modules?
20647 need_lib_prefix=$need_lib_prefix
20648
20649 # Do we need a version for libraries?
20650 need_version=$need_version
20651
20652 # Library versioning type.
20653 version_type=$version_type
20654
20655 # Shared library runtime path variable.
20656 runpath_var=$runpath_var
20657
20658 # Shared library path variable.
20659 shlibpath_var=$shlibpath_var
20660
20661 # Is shlibpath searched before the hard-coded library search path?
20662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20663
20664 # Format of library name prefix.
20665 libname_spec=$lt_libname_spec
20666
20667 # List of archive names. First name is the real one, the rest are links.
20668 # The last name is the one that the linker finds with -lNAME
20669 library_names_spec=$lt_library_names_spec
20670
20671 # The coded name of the library, if different from the real name.
20672 soname_spec=$lt_soname_spec
20673
20674 # Permission mode override for installation of shared libraries.
20675 install_override_mode=$lt_install_override_mode
20676
20677 # Command to use after installation of a shared archive.
20678 postinstall_cmds=$lt_postinstall_cmds
20679
20680 # Command to use after uninstallation of a shared archive.
20681 postuninstall_cmds=$lt_postuninstall_cmds
20682
20683 # Commands used to finish a libtool library installation in a directory.
20684 finish_cmds=$lt_finish_cmds
20685
20686 # As "finish_cmds", except a single script fragment to be evaled but
20687 # not shown.
20688 finish_eval=$lt_finish_eval
20689
20690 # Whether we should hardcode library paths into libraries.
20691 hardcode_into_libs=$hardcode_into_libs
20692
20693 # Compile-time system search path for libraries.
20694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20695
20696 # Detected run-time system search path for libraries.
20697 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20698
20699 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20700 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20701
20702 # Whether dlopen is supported.
20703 dlopen_support=$enable_dlopen
20704
20705 # Whether dlopen of programs is supported.
20706 dlopen_self=$enable_dlopen_self
20707
20708 # Whether dlopen of statically linked programs is supported.
20709 dlopen_self_static=$enable_dlopen_self_static
20710
20711 # Commands to strip libraries.
20712 old_striplib=$lt_old_striplib
20713 striplib=$lt_striplib
20714
20715
20716 # The linker used to build libraries.
20717 LD=$lt_LD
20718
20719 # How to create reloadable object files.
20720 reload_flag=$lt_reload_flag
20721 reload_cmds=$lt_reload_cmds
20722
20723 # Commands used to build an old-style archive.
20724 old_archive_cmds=$lt_old_archive_cmds
20725
20726 # A language specific compiler.
20727 CC=$lt_compiler
20728
20729 # Is the compiler the GNU compiler?
20730 with_gcc=$GCC
20731
20732 # Compiler flag to turn off builtin functions.
20733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20734
20735 # Additional compiler flags for building library objects.
20736 pic_flag=$lt_lt_prog_compiler_pic
20737
20738 # How to pass a linker flag through the compiler.
20739 wl=$lt_lt_prog_compiler_wl
20740
20741 # Compiler flag to prevent dynamic linking.
20742 link_static_flag=$lt_lt_prog_compiler_static
20743
20744 # Does compiler simultaneously support -c and -o options?
20745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20746
20747 # Whether or not to add -lc for building shared libraries.
20748 build_libtool_need_lc=$archive_cmds_need_lc
20749
20750 # Whether or not to disallow shared libs when runtime libs are static.
20751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20752
20753 # Compiler flag to allow reflexive dlopens.
20754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20755
20756 # Compiler flag to generate shared objects directly from archives.
20757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20758
20759 # Whether the compiler copes with passing no objects directly.
20760 compiler_needs_object=$lt_compiler_needs_object
20761
20762 # Create an old-style archive from a shared archive.
20763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20764
20765 # Create a temporary old-style archive to link instead of a shared archive.
20766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20767
20768 # Commands used to build a shared archive.
20769 archive_cmds=$lt_archive_cmds
20770 archive_expsym_cmds=$lt_archive_expsym_cmds
20771
20772 # Commands used to build a loadable module if different from building
20773 # a shared archive.
20774 module_cmds=$lt_module_cmds
20775 module_expsym_cmds=$lt_module_expsym_cmds
20776
20777 # Whether we are building with GNU ld or not.
20778 with_gnu_ld=$lt_with_gnu_ld
20779
20780 # Flag that allows shared libraries with undefined symbols to be built.
20781 allow_undefined_flag=$lt_allow_undefined_flag
20782
20783 # Flag that enforces no undefined symbols.
20784 no_undefined_flag=$lt_no_undefined_flag
20785
20786 # Flag to hardcode \$libdir into a binary during linking.
20787 # This must work even if \$libdir does not exist
20788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20789
20790 # Whether we need a single "-rpath" flag with a separated argument.
20791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20792
20793 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20794 # DIR into the resulting binary.
20795 hardcode_direct=$hardcode_direct
20796
20797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20798 # DIR into the resulting binary and the resulting library dependency is
20799 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20800 # library is relocated.
20801 hardcode_direct_absolute=$hardcode_direct_absolute
20802
20803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20804 # into the resulting binary.
20805 hardcode_minus_L=$hardcode_minus_L
20806
20807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20808 # into the resulting binary.
20809 hardcode_shlibpath_var=$hardcode_shlibpath_var
20810
20811 # Set to "yes" if building a shared library automatically hardcodes DIR
20812 # into the library and all subsequent libraries and executables linked
20813 # against it.
20814 hardcode_automatic=$hardcode_automatic
20815
20816 # Set to yes if linker adds runtime paths of dependent libraries
20817 # to runtime path list.
20818 inherit_rpath=$inherit_rpath
20819
20820 # Whether libtool must link a program against all its dependency libraries.
20821 link_all_deplibs=$link_all_deplibs
20822
20823 # Set to "yes" if exported symbols are required.
20824 always_export_symbols=$always_export_symbols
20825
20826 # The commands to list exported symbols.
20827 export_symbols_cmds=$lt_export_symbols_cmds
20828
20829 # Symbols that should not be listed in the preloaded symbols.
20830 exclude_expsyms=$lt_exclude_expsyms
20831
20832 # Symbols that must always be exported.
20833 include_expsyms=$lt_include_expsyms
20834
20835 # Commands necessary for linking programs (against libraries) with templates.
20836 prelink_cmds=$lt_prelink_cmds
20837
20838 # Commands necessary for finishing linking programs.
20839 postlink_cmds=$lt_postlink_cmds
20840
20841 # Specify filename containing input files.
20842 file_list_spec=$lt_file_list_spec
20843
20844 # How to hardcode a shared library path into an executable.
20845 hardcode_action=$hardcode_action
20846
20847 # ### END LIBTOOL CONFIG
20848
20849 _LT_EOF
20850
20851 cat <<'_LT_EOF' >> "$cfgfile"
20852
20853 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20854
20855 # func_munge_path_list VARIABLE PATH
20856 # -----------------------------------
20857 # VARIABLE is name of variable containing _space_ separated list of
20858 # directories to be munged by the contents of PATH, which is string
20859 # having a format:
20860 # "DIR[:DIR]:"
20861 # string "DIR[ DIR]" will be prepended to VARIABLE
20862 # ":DIR[:DIR]"
20863 # string "DIR[ DIR]" will be appended to VARIABLE
20864 # "DIRP[:DIRP]::[DIRA:]DIRA"
20865 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20866 # "DIRA[ DIRA]" will be appended to VARIABLE
20867 # "DIR[:DIR]"
20868 # VARIABLE will be replaced by "DIR[ DIR]"
20869 func_munge_path_list ()
20870 {
20871 case x$2 in
20872 x)
20873 ;;
20874 *:)
20875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20876 ;;
20877 x:*)
20878 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20879 ;;
20880 *::*)
20881 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20882 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20883 ;;
20884 *)
20885 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20886 ;;
20887 esac
20888 }
20889
20890
20891 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20892 func_cc_basename ()
20893 {
20894 for cc_temp in $*""; do
20895 case $cc_temp in
20896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20898 \-*) ;;
20899 *) break;;
20900 esac
20901 done
20902 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20903 }
20904
20905
20906 # ### END FUNCTIONS SHARED WITH CONFIGURE
20907
20908 _LT_EOF
20909
20910 case $host_os in
20911 aix3*)
20912 cat <<\_LT_EOF >> "$cfgfile"
20913 # AIX sometimes has problems with the GCC collect2 program. For some
20914 # reason, if we set the COLLECT_NAMES environment variable, the problems
20915 # vanish in a puff of smoke.
20916 if test set != "${COLLECT_NAMES+set}"; then
20917 COLLECT_NAMES=
20918 export COLLECT_NAMES
20919 fi
20920 _LT_EOF
20921 ;;
20922 esac
20923
20924
20925 ltmain=$ac_aux_dir/ltmain.sh
20926
20927
20928 # We use sed instead of cat because bash on DJGPP gets confused if
20929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20930 # text mode, it properly converts lines to CR/LF. This bash problem
20931 # is reportedly fixed, but why not run on old versions too?
20932 sed '$q' "$ltmain" >> "$cfgfile" \
20933 || (rm -f "$cfgfile"; exit 1)
20934
20935 mv -f "$cfgfile" "$ofile" ||
20936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20937 chmod +x "$ofile"
20938
20939 ;;
20940
20941 esac
20942 done # for ac_tag
20943
20944
20945 as_fn_exit 0
20946 _ACEOF
20947 ac_clean_files=$ac_clean_files_save
20948
20949 test $ac_write_fail = 0 ||
20950 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20951
20952
20953 # configure is writing to config.log, and then calls config.status.
20954 # config.status does its own redirection, appending to config.log.
20955 # Unfortunately, on DOS this fails, as config.log is still kept open
20956 # by configure, so config.status won't be able to write to it; its
20957 # output is simply discarded. So we exec the FD to /dev/null,
20958 # effectively closing config.log, so it can be properly (re)opened and
20959 # appended to by config.status. When coming back to configure, we
20960 # need to make the FD available again.
20961 if test "$no_create" != yes; then
20962 ac_cs_success=:
20963 ac_config_status_args=
20964 test "$silent" = yes &&
20965 ac_config_status_args="$ac_config_status_args --quiet"
20966 exec 5>/dev/null
20967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20968 exec 5>>config.log
20969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20970 # would make configure fail if this is the last instruction.
20971 $ac_cs_success || as_fn_exit 1
20972 fi
20973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20976 fi
20977