configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-video-amdgpu 1.2.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 bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-amdgpu'
593 PACKAGE_TARNAME='xf86-video-amdgpu'
594 PACKAGE_VERSION='1.2.0'
595 PACKAGE_STRING='xf86-video-amdgpu 1.2.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 GLAMOR_FALSE
643 GLAMOR_TRUE
644 LIBGLAMOR_EGL_LIBS
645 LIBGLAMOR_EGL_CFLAGS
646 LIBGLAMOR_LIBS
647 LIBGLAMOR_CFLAGS
648 LIBGL_LIBS
649 LIBGL_CFLAGS
650 LIBUDEV_FALSE
651 LIBUDEV_TRUE
652 LIBUDEV_LIBS
653 LIBUDEV_CFLAGS
654 configdir
655 HAS_XORG_CONF_DIR_FALSE
656 HAS_XORG_CONF_DIR_TRUE
657 HAVE_XEXTPROTO_71_FALSE
658 HAVE_XEXTPROTO_71_TRUE
659 XEXT_LIBS
660 XEXT_CFLAGS
661 XORG_LIBS
662 XORG_CFLAGS
663 GBM_LIBS
664 GBM_CFLAGS
665 LIBDRM_AMDGPU_LIBS
666 LIBDRM_AMDGPU_CFLAGS
667 LIBDRM_LIBS
668 LIBDRM_CFLAGS
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 ac_ct_AR
678 AR
679 DLLTOOL
680 OBJDUMP
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 LIBTOOL
688 MAN_SUBSTS
689 XORG_MAN_PAGE
690 ADMIN_MAN_DIR
691 DRIVER_MAN_DIR
692 MISC_MAN_DIR
693 FILE_MAN_DIR
694 LIB_MAN_DIR
695 APP_MAN_DIR
696 ADMIN_MAN_SUFFIX
697 DRIVER_MAN_SUFFIX
698 MISC_MAN_SUFFIX
699 FILE_MAN_SUFFIX
700 LIB_MAN_SUFFIX
701 APP_MAN_SUFFIX
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 INSTALL_CMD
712 PKG_CONFIG_LIBDIR
713 PKG_CONFIG_PATH
714 PKG_CONFIG
715 CHANGELOG_CMD
716 STRICT_CFLAGS
717 CWARNFLAGS
718 BASE_CFLAGS
719 EGREP
720 GREP
721 CPP
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_largefile
810 enable_dependency_tracking
811 enable_selective_werror
812 enable_strict_compilation
813 enable_static
814 enable_shared
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 with_xorg_module_dir
822 with_xorg_conf_dir
823 enable_udev
824 enable_glamor
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CPP
835 PKG_CONFIG
836 PKG_CONFIG_PATH
837 PKG_CONFIG_LIBDIR
838 LT_SYS_LIBRARY_PATH
839 LIBDRM_CFLAGS
840 LIBDRM_LIBS
841 LIBDRM_AMDGPU_CFLAGS
842 LIBDRM_AMDGPU_LIBS
843 GBM_CFLAGS
844 GBM_LIBS
845 XORG_CFLAGS
846 XORG_LIBS
847 XEXT_CFLAGS
848 XEXT_LIBS
849 LIBUDEV_CFLAGS
850 LIBUDEV_LIBS
851 LIBGL_CFLAGS
852 LIBGL_LIBS
853 LIBGLAMOR_CFLAGS
854 LIBGLAMOR_LIBS
855 LIBGLAMOR_EGL_CFLAGS
856 LIBGLAMOR_EGL_LIBS'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 runstatedir='${localstatedir}/run'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -runstatedir | --runstatedir | --runstatedi | --runstated \
1149 | --runstate | --runstat | --runsta | --runst | --runs \
1150 | --run | --ru | --r)
1151 ac_prev=runstatedir ;;
1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154 | --run=* | --ru=* | --r=*)
1155 runstatedir=$ac_optarg ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir runstatedir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures xf86-video-amdgpu 1.2.0 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root
1457 [DATAROOTDIR/doc/xf86-video-amdgpu]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1463
1464 cat <<\_ACEOF
1465
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of xf86-video-amdgpu 1.2.0:";;
1480 esac
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --disable-largefile omit support for large files
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
1494 --disable-selective-werror
1495 Turn off selective compiler errors. (default:
1496 enabled)
1497 --enable-strict-compilation
1498 Enable all warnings from compiler and make them
1499 errors (default: disabled)
1500 --enable-static[=PKGS] build static libraries [default=no]
1501 --enable-shared[=PKGS] build shared libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --disable-udev Disable libudev support [default=auto]
1506 --disable-glamor Disable glamor, a new GL-based acceleration
1507 [default=enabled]
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-aix-soname=aix|svr4|both
1515 shared library versioning (aka "SONAME") variant to
1516 provide on AIX, [default=aix].
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1519 compiler's sysroot if not specified).
1520 --with-xorg-module-dir=DIR
1521 Default xorg module directory
1522 [[default=$libdir/xorg/modules]]
1523 --with-xorg-conf-dir=DIR
1524 Default xorg.conf.d directory
1525 [[default=${prefix}/share/X11/xorg.conf.d]]
1526
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CPP C preprocessor
1536 PKG_CONFIG path to pkg-config utility
1537 PKG_CONFIG_PATH
1538 directories to add to pkg-config's search path
1539 PKG_CONFIG_LIBDIR
1540 path overriding pkg-config's built-in search path
1541 LT_SYS_LIBRARY_PATH
1542 User-defined run-time library search path.
1543 LIBDRM_CFLAGS
1544 C compiler flags for LIBDRM, overriding pkg-config
1545 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1546 LIBDRM_AMDGPU_CFLAGS
1547 C compiler flags for LIBDRM_AMDGPU, overriding pkg-config
1548 LIBDRM_AMDGPU_LIBS
1549 linker flags for LIBDRM_AMDGPU, overriding pkg-config
1550 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config
1551 GBM_LIBS linker flags for GBM, overriding pkg-config
1552 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1553 XORG_LIBS linker flags for XORG, overriding pkg-config
1554 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1555 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1556 LIBUDEV_CFLAGS
1557 C compiler flags for LIBUDEV, overriding pkg-config
1558 LIBUDEV_LIBS
1559 linker flags for LIBUDEV, overriding pkg-config
1560 LIBGL_CFLAGS
1561 C compiler flags for LIBGL, overriding pkg-config
1562 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1563 LIBGLAMOR_CFLAGS
1564 C compiler flags for LIBGLAMOR, overriding pkg-config
1565 LIBGLAMOR_LIBS
1566 linker flags for LIBGLAMOR, overriding pkg-config
1567 LIBGLAMOR_EGL_CFLAGS
1568 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1569 LIBGLAMOR_EGL_LIBS
1570 linker flags for LIBGLAMOR_EGL, overriding pkg-config
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 xf86-video-amdgpu configure 1.2.0
1639 generated by GNU Autoconf 2.69
1640
1641 Copyright (C) 2012 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1646 fi
1647
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1651
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1691 # ---------------------------------------------
1692 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1693 # accordingly.
1694 ac_fn_c_check_decl ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 as_decl_name=`echo $2|sed 's/ *(.*//'`
1698 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1700 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 $4
1707 int
1708 main ()
1709 {
1710 #ifndef $as_decl_name
1711 #ifdef __cplusplus
1712 (void) $as_decl_use;
1713 #else
1714 (void) $as_decl_name;
1715 #endif
1716 #endif
1717
1718 ;
1719 return 0;
1720 }
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_decl
1735
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_cpp
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808 fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_header_compile
1845
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_link
1891
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907 #define $2 innocuous_$2
1908
1909 /* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (); below.
1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912 <limits.h> exists even on freestanding compilers. */
1913
1914 #ifdef __STDC__
1915 # include <limits.h>
1916 #else
1917 # include <assert.h>
1918 #endif
1919
1920 #undef $2
1921
1922 /* Override any GCC internal prototype to avoid an error.
1923 Use char because int might match the return type of a GCC
1924 builtin and then its argument prototype would still apply. */
1925 #ifdef __cplusplus
1926 extern "C"
1927 #endif
1928 char $2 ();
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined __stub_$2 || defined __stub___$2
1933 choke me
1934 #endif
1935
1936 int
1937 main ()
1938 {
1939 return $2 ();
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_link "$LINENO"; then :
1945 eval "$3=yes"
1946 else
1947 eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext \
1950 conftest$ac_exeext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_func
1958
1959 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1962 # the include files in INCLUDES and setting the cache variable VAR
1963 # accordingly.
1964 ac_fn_c_check_header_mongrel ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if eval \${$3+:} false; then :
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 fi
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 else
1977 # Is the header compilable?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1979 $as_echo_n "checking $2 usability... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_header_compiler=yes
1987 else
1988 ac_header_compiler=no
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1992 $as_echo "$ac_header_compiler" >&6; }
1993
1994 # Is the header present?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1996 $as_echo_n "checking $2 presence... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_cpp "$LINENO"; then :
2002 ac_header_preproc=yes
2003 else
2004 ac_header_preproc=no
2005 fi
2006 rm -f conftest.err conftest.i conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2008 $as_echo "$ac_header_preproc" >&6; }
2009
2010 # So? What about this header?
2011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2012 yes:no: )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2014 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 ;;
2018 no:yes:* )
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2020 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2022 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2024 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2026 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 ( $as_echo "## ---------------------------------------------------------------------- ##
2030 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2031 ## ---------------------------------------------------------------------- ##"
2032 ) | sed "s/^/$as_me: WARNING: /" >&2
2033 ;;
2034 esac
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 eval "$3=\$ac_header_compiler"
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 fi
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_header_mongrel
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2052
2053 It was created by xf86-video-amdgpu $as_me 1.2.0, which was
2054 generated by GNU Autoconf 2.69. Invocation command line was
2055
2056 $ $0 $@
2057
2058 _ACEOF
2059 exec 5>>config.log
2060 {
2061 cat <<_ASUNAME
2062 ## --------- ##
2063 ## Platform. ##
2064 ## --------- ##
2065
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2074
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2082
2083 _ASUNAME
2084
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 $as_echo "PATH: $as_dir"
2091 done
2092 IFS=$as_save_IFS
2093
2094 } >&5
2095
2096 cat >&5 <<_ACEOF
2097
2098
2099 ## ----------- ##
2100 ## Core tests. ##
2101 ## ----------- ##
2102
2103 _ACEOF
2104
2105
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2111 ac_configure_args=
2112 ac_configure_args0=
2113 ac_configure_args1=
2114 ac_must_keep_next=false
2115 for ac_pass in 1 2
2116 do
2117 for ac_arg
2118 do
2119 case $ac_arg in
2120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122 | -silent | --silent | --silen | --sile | --sil)
2123 continue ;;
2124 *\'*)
2125 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 esac
2127 case $ac_pass in
2128 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2129 2)
2130 as_fn_append ac_configure_args1 " '$ac_arg'"
2131 if test $ac_must_keep_next = true; then
2132 ac_must_keep_next=false # Got value, back to normal.
2133 else
2134 case $ac_arg in
2135 *=* | --config-cache | -C | -disable-* | --disable-* \
2136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138 | -with-* | --with-* | -without-* | --without-* | --x)
2139 case "$ac_configure_args0 " in
2140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141 esac
2142 ;;
2143 -* ) ac_must_keep_next=true ;;
2144 esac
2145 fi
2146 as_fn_append ac_configure_args " '$ac_arg'"
2147 ;;
2148 esac
2149 done
2150 done
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2153
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log. We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160 # Save into config.log some information that might help in debugging.
2161 {
2162 echo
2163
2164 $as_echo "## ---------------- ##
2165 ## Cache variables. ##
2166 ## ---------------- ##"
2167 echo
2168 # The following way of writing the cache mishandles newlines in values,
2169 (
2170 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in #(
2173 *${as_nl}*)
2174 case $ac_var in #(
2175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2177 esac
2178 case $ac_var in #(
2179 _ | IFS | as_nl) ;; #(
2180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2181 *) { eval $ac_var=; unset $ac_var;} ;;
2182 esac ;;
2183 esac
2184 done
2185 (set) 2>&1 |
2186 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2187 *${as_nl}ac_space=\ *)
2188 sed -n \
2189 "s/'\''/'\''\\\\'\'''\''/g;
2190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2191 ;; #(
2192 *)
2193 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194 ;;
2195 esac |
2196 sort
2197 )
2198 echo
2199
2200 $as_echo "## ----------------- ##
2201 ## Output variables. ##
2202 ## ----------------- ##"
2203 echo
2204 for ac_var in $ac_subst_vars
2205 do
2206 eval ac_val=\$$ac_var
2207 case $ac_val in
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 esac
2210 $as_echo "$ac_var='\''$ac_val'\''"
2211 done | sort
2212 echo
2213
2214 if test -n "$ac_subst_files"; then
2215 $as_echo "## ------------------- ##
2216 ## File substitutions. ##
2217 ## ------------------- ##"
2218 echo
2219 for ac_var in $ac_subst_files
2220 do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
2226 done | sort
2227 echo
2228 fi
2229
2230 if test -s confdefs.h; then
2231 $as_echo "## ----------- ##
2232 ## confdefs.h. ##
2233 ## ----------- ##"
2234 echo
2235 cat confdefs.h
2236 echo
2237 fi
2238 test "$ac_signal" != 0 &&
2239 $as_echo "$as_me: caught signal $ac_signal"
2240 $as_echo "$as_me: exit $exit_status"
2241 } >&5
2242 rm -f core *.core core.conftest.* &&
2243 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244 exit $exit_status
2245 ' 0
2246 for ac_signal in 1 2 13 15; do
2247 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248 done
2249 ac_signal=0
2250
2251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2252 rm -f -r conftest* confdefs.h
2253
2254 $as_echo "/* confdefs.h */" > confdefs.h
2255
2256 # Predefined preprocessor variables.
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_NAME "$PACKAGE_NAME"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_STRING "$PACKAGE_STRING"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_URL "$PACKAGE_URL"
2280 _ACEOF
2281
2282
2283 # Let the site file select an alternate cache file if it wants to.
2284 # Prefer an explicitly selected file to automatically selected ones.
2285 ac_site_file1=NONE
2286 ac_site_file2=NONE
2287 if test -n "$CONFIG_SITE"; then
2288 # We do not want a PATH search for config.site.
2289 case $CONFIG_SITE in #((
2290 -*) ac_site_file1=./$CONFIG_SITE;;
2291 */*) ac_site_file1=$CONFIG_SITE;;
2292 *) ac_site_file1=./$CONFIG_SITE;;
2293 esac
2294 elif test "x$prefix" != xNONE; then
2295 ac_site_file1=$prefix/share/config.site
2296 ac_site_file2=$prefix/etc/config.site
2297 else
2298 ac_site_file1=$ac_default_prefix/share/config.site
2299 ac_site_file2=$ac_default_prefix/etc/config.site
2300 fi
2301 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2302 do
2303 test "x$ac_site_file" = xNONE && continue
2304 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2306 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307 sed 's/^/| /' "$ac_site_file" >&5
2308 . "$ac_site_file" \
2309 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 as_fn_error $? "failed to load site script $ac_site_file
2312 See \`config.log' for more details" "$LINENO" 5; }
2313 fi
2314 done
2315
2316 if test -r "$cache_file"; then
2317 # Some versions of bash will fail to source /dev/null (special files
2318 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2319 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2321 $as_echo "$as_me: loading cache $cache_file" >&6;}
2322 case $cache_file in
2323 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2324 *) . "./$cache_file";;
2325 esac
2326 fi
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2329 $as_echo "$as_me: creating cache $cache_file" >&6;}
2330 >$cache_file
2331 fi
2332
2333 # Check that the precious variables saved in the cache have kept the same
2334 # value.
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338 eval ac_new_set=\$ac_env_${ac_var}_set
2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340 eval ac_new_val=\$ac_env_${ac_var}_value
2341 case $ac_old_set,$ac_new_set in
2342 set,)
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2346 ,set)
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2350 ,);;
2351 *)
2352 if test "x$ac_old_val" != "x$ac_new_val"; then
2353 # differences in whitespace do not lead to failure.
2354 ac_old_val_w=`echo x $ac_old_val`
2355 ac_new_val_w=`echo x $ac_new_val`
2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359 ac_cache_corrupted=:
2360 else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363 eval $ac_var=\$ac_old_val
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2366 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2369 fi;;
2370 esac
2371 # Pass precious variables to config.status.
2372 if test "$ac_new_set" = set; then
2373 case $ac_new_val in
2374 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 *) ac_arg=$ac_var=$ac_new_val ;;
2376 esac
2377 case " $ac_configure_args " in
2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380 esac
2381 fi
2382 done
2383 if $ac_cache_corrupted; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2389 fi
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2393
2394 ac_ext=c
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399
2400
2401
2402
2403 ac_config_headers="$ac_config_headers config.h"
2404
2405
2406 ac_aux_dir=
2407 for ac_dir in . "$srcdir"/.; do
2408 if test -f "$ac_dir/install-sh"; then
2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/install-sh -c"
2411 break
2412 elif test -f "$ac_dir/install.sh"; then
2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/install.sh -c"
2415 break
2416 elif test -f "$ac_dir/shtool"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 break
2420 fi
2421 done
2422 if test -z "$ac_aux_dir"; then
2423 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2424 fi
2425
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2431 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2432 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2433
2434
2435
2436 # Initialize Automake
2437 am__api_version='1.15'
2438
2439 # Find a good install program. We prefer a C program (faster),
2440 # so one script is as good as another. But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2445 # AIX /bin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if ${ac_cv_path_install+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466 ./ | .// | /[cC]/* | \
2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469 /usr/ucb/* ) ;;
2470 *)
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2473 # by default.
2474 for ac_prog in ginstall scoinst install; do
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2477 if test $ac_prog = install &&
2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # AIX install. It has an incompatible calling convention.
2480 :
2481 elif test $ac_prog = install &&
2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # program-specific install script used by HP pwplus--don't use.
2484 :
2485 else
2486 rm -rf conftest.one conftest.two conftest.dir
2487 echo one > conftest.one
2488 echo two > conftest.two
2489 mkdir conftest.dir
2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491 test -s conftest.one && test -s conftest.two &&
2492 test -s conftest.dir/conftest.one &&
2493 test -s conftest.dir/conftest.two
2494 then
2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496 break 3
2497 fi
2498 fi
2499 fi
2500 done
2501 done
2502 ;;
2503 esac
2504
2505 done
2506 IFS=$as_save_IFS
2507
2508 rm -rf conftest.one conftest.two conftest.dir
2509
2510 fi
2511 if test "${ac_cv_path_install+set}" = set; then
2512 INSTALL=$ac_cv_path_install
2513 else
2514 # As a last resort, use the slow shell script. Don't cache a
2515 # value for INSTALL within a source directory, because that will
2516 # break other packages using the cache if that directory is
2517 # removed, or if the value is a relative name.
2518 INSTALL=$ac_install_sh
2519 fi
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2523
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2533 $as_echo_n "checking whether build environment is sane... " >&6; }
2534 # Reject unsafe characters in $srcdir or the absolute working directory
2535 # name. Accept space and tab only in the latter.
2536 am_lf='
2537 '
2538 case `pwd` in
2539 *[\\\"\#\$\&\'\`$am_lf]*)
2540 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2541 esac
2542 case $srcdir in
2543 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2544 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2545 esac
2546
2547 # Do 'set' in a subshell so we don't clobber the current shell's
2548 # arguments. Must try -L first in case configure is actually a
2549 # symlink; some systems play weird games with the mod time of symlinks
2550 # (eg FreeBSD returns the mod time of the symlink's containing
2551 # directory).
2552 if (
2553 am_has_slept=no
2554 for am_try in 1 2; do
2555 echo "timestamp, slept: $am_has_slept" > conftest.file
2556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2557 if test "$*" = "X"; then
2558 # -L didn't work.
2559 set X `ls -t "$srcdir/configure" conftest.file`
2560 fi
2561 if test "$*" != "X $srcdir/configure conftest.file" \
2562 && test "$*" != "X conftest.file $srcdir/configure"; then
2563
2564 # If neither matched, then we have a broken ls. This can happen
2565 # if, for instance, CONFIG_SHELL is bash and it inherits a
2566 # broken ls alias from the environment. This has actually
2567 # happened. Such a system could not be considered "sane".
2568 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2569 alias in your environment" "$LINENO" 5
2570 fi
2571 if test "$2" = conftest.file || test $am_try -eq 2; then
2572 break
2573 fi
2574 # Just in case.
2575 sleep 1
2576 am_has_slept=yes
2577 done
2578 test "$2" = conftest.file
2579 )
2580 then
2581 # Ok.
2582 :
2583 else
2584 as_fn_error $? "newly created file is older than distributed files!
2585 Check your system clock" "$LINENO" 5
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 # If we didn't sleep, we still need to ensure time stamps of config.status and
2590 # generated files are strictly newer.
2591 am_sleep_pid=
2592 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2593 ( sleep 1 ) &
2594 am_sleep_pid=$!
2595 fi
2596
2597 rm -f conftest.file
2598
2599 test "$program_prefix" != NONE &&
2600 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2601 # Use a double $ so make ignores it.
2602 test "$program_suffix" != NONE &&
2603 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2604 # Double any \ or $.
2605 # By default was `s,x,x', remove it if useless.
2606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2608
2609 # Expand $ac_aux_dir to an absolute path.
2610 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2611
2612 if test x"${MISSING+set}" != xset; then
2613 case $am_aux_dir in
2614 *\ * | *\ *)
2615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2616 *)
2617 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2618 esac
2619 fi
2620 # Use eval to expand $SHELL
2621 if eval "$MISSING --is-lightweight"; then
2622 am_missing_run="$MISSING "
2623 else
2624 am_missing_run=
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2626 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2627 fi
2628
2629 if test x"${install_sh+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2633 *)
2634 install_sh="\${SHELL} $am_aux_dir/install-sh"
2635 esac
2636 fi
2637
2638 # Installed binaries are usually stripped using 'strip' when the user
2639 # run "make install-strip". However 'strip' might not be the right
2640 # tool to use in cross-compilation environments, therefore Automake
2641 # will honor the 'STRIP' environment variable to overrule this program.
2642 if test "$cross_compiling" != no; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_STRIP+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$STRIP"; then
2652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 STRIP=$ac_cv_prog_STRIP
2672 if test -n "$STRIP"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2674 $as_echo "$STRIP" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$ac_cv_prog_STRIP"; then
2683 ac_ct_STRIP=$STRIP
2684 # Extract the first word of "strip", so it can be a program name with args.
2685 set dummy strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$ac_ct_STRIP"; then
2692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_STRIP="strip"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2712 if test -n "$ac_ct_STRIP"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2714 $as_echo "$ac_ct_STRIP" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720 if test "x$ac_ct_STRIP" = x; then
2721 STRIP=":"
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 STRIP=$ac_ct_STRIP
2730 fi
2731 else
2732 STRIP="$ac_cv_prog_STRIP"
2733 fi
2734
2735 fi
2736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2740 if test -z "$MKDIR_P"; then
2741 if ${ac_cv_path_mkdir+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_prog in mkdir gmkdir; do
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2753 'mkdir (GNU coreutils) '* | \
2754 'mkdir (coreutils) '* | \
2755 'mkdir (fileutils) '4.1*)
2756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2757 break 3;;
2758 esac
2759 done
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765
2766 test -d ./--version && rmdir ./--version
2767 if test "${ac_cv_path_mkdir+set}" = set; then
2768 MKDIR_P="$ac_cv_path_mkdir -p"
2769 else
2770 # As a last resort, use the slow shell script. Don't cache a
2771 # value for MKDIR_P within a source directory, because that will
2772 # break other packages using the cache if that directory is
2773 # removed, or if the value is a relative name.
2774 MKDIR_P="$ac_install_sh -d"
2775 fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2778 $as_echo "$MKDIR_P" >&6; }
2779
2780 for ac_prog in gawk mawk nawk awk
2781 do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_AWK+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$AWK"; then
2790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_AWK="$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 AWK=$ac_cv_prog_AWK
2810 if test -n "$AWK"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2812 $as_echo "$AWK" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 test -n "$AWK" && break
2820 done
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2824 set x ${MAKE-make}
2825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 cat >conftest.make <<\_ACEOF
2830 SHELL = /bin/sh
2831 all:
2832 @echo '@@@%%%=$(MAKE)=@@@%%%'
2833 _ACEOF
2834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2836 *@@@%%%=?*=@@@%%%*)
2837 eval ac_cv_prog_make_${ac_make}_set=yes;;
2838 *)
2839 eval ac_cv_prog_make_${ac_make}_set=no;;
2840 esac
2841 rm -f conftest.make
2842 fi
2843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2846 SET_MAKE=
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 SET_MAKE="MAKE=${MAKE-make}"
2851 fi
2852
2853 rm -rf .tst 2>/dev/null
2854 mkdir .tst 2>/dev/null
2855 if test -d .tst; then
2856 am__leading_dot=.
2857 else
2858 am__leading_dot=_
2859 fi
2860 rmdir .tst 2>/dev/null
2861
2862 # Check whether --enable-silent-rules was given.
2863 if test "${enable_silent_rules+set}" = set; then :
2864 enableval=$enable_silent_rules;
2865 fi
2866
2867 case $enable_silent_rules in # (((
2868 yes) AM_DEFAULT_VERBOSITY=0;;
2869 no) AM_DEFAULT_VERBOSITY=1;;
2870 *) AM_DEFAULT_VERBOSITY=1;;
2871 esac
2872 am_make=${MAKE-make}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2875 if ${am_cv_make_support_nested_variables+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if $as_echo 'TRUE=$(BAR$(V))
2879 BAR0=false
2880 BAR1=true
2881 V=1
2882 am__doit:
2883 @$(TRUE)
2884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2885 am_cv_make_support_nested_variables=yes
2886 else
2887 am_cv_make_support_nested_variables=no
2888 fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2892 if test $am_cv_make_support_nested_variables = yes; then
2893 AM_V='$(V)'
2894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2895 else
2896 AM_V=$AM_DEFAULT_VERBOSITY
2897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2898 fi
2899 AM_BACKSLASH='\'
2900
2901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2903 # is not polluted with repeated "-I."
2904 am__isrc=' -I$(srcdir)'
2905 # test to see if srcdir already configured
2906 if test -f $srcdir/config.status; then
2907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908 fi
2909 fi
2910
2911 # test whether we have cygpath
2912 if test -z "$CYGPATH_W"; then
2913 if (cygpath --version) >/dev/null 2>/dev/null; then
2914 CYGPATH_W='cygpath -w'
2915 else
2916 CYGPATH_W=echo
2917 fi
2918 fi
2919
2920
2921 # Define the identity of the package.
2922 PACKAGE='xf86-video-amdgpu'
2923 VERSION='1.2.0'
2924
2925
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE "$PACKAGE"
2928 _ACEOF
2929
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define VERSION "$VERSION"
2933 _ACEOF
2934
2935 # Some tools Automake needs.
2936
2937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2938
2939
2940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2941
2942
2943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2944
2945
2946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2947
2948
2949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2950
2951 # For better backward compatibility. To be removed once Automake 1.9.x
2952 # dies out for good. For more background, see:
2953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2955 mkdir_p='$(MKDIR_P)'
2956
2957 # We need awk for the "check" target (and possibly the TAP driver). The
2958 # system "awk" is bad on some platforms.
2959 # Always define AMTAR for backward compatibility. Yes, it's still used
2960 # in the wild :-( We should find a proper way to deprecate it ...
2961 AMTAR='$${TAR-tar}'
2962
2963
2964 # We'll loop over all known methods to create a tar archive until one works.
2965 _am_tools='gnutar pax cpio none'
2966
2967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2968
2969
2970
2971
2972
2973
2974 # POSIX will say in a future version that running "rm -f" with no argument
2975 # is OK; and we want to be able to make that assumption in our Makefile
2976 # recipes. So use an aggressive probe to check that the usage we want is
2977 # actually supported "in the wild" to an acceptable degree.
2978 # See automake bug#10828.
2979 # To make any issue more visible, cause the running configure to be aborted
2980 # by default if the 'rm' program in use doesn't match our expectations; the
2981 # user can still override this though.
2982 if rm -f && rm -fr && rm -rf; then : OK; else
2983 cat >&2 <<'END'
2984 Oops!
2985
2986 Your 'rm' program seems unable to run without file operands specified
2987 on the command line, even when the '-f' option is present. This is contrary
2988 to the behaviour of most rm programs out there, and not conforming with
2989 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2990
2991 Please tell bug-automake@gnu.org about your system, including the value
2992 of your $PATH and any error possibly output before this message. This
2993 can help us improve future automake versions.
2994
2995 END
2996 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2997 echo 'Configuration will proceed anyway, since you have set the' >&2
2998 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2999 echo >&2
3000 else
3001 cat >&2 <<'END'
3002 Aborting the configuration process, to ensure you take notice of the issue.
3003
3004 You can download and install GNU coreutils to get an 'rm' implementation
3005 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3006
3007 If you want to complete the configuration process using your problematic
3008 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3009 to "yes", and re-run configure.
3010
3011 END
3012 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3013 fi
3014 fi
3015
3016 DEPDIR="${am__leading_dot}deps"
3017
3018 ac_config_commands="$ac_config_commands depfiles"
3019
3020
3021 am_make=${MAKE-make}
3022 cat > confinc << 'END'
3023 am__doit:
3024 @echo this is the am__doit target
3025 .PHONY: am__doit
3026 END
3027 # If we don't find an include directive, just comment out the code.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3030 am__include="#"
3031 am__quote=
3032 _am_result=none
3033 # First try GNU make style include.
3034 echo "include confinc" > confmf
3035 # Ignore all kinds of additional output from 'make'.
3036 case `$am_make -s -f confmf 2> /dev/null` in #(
3037 *the\ am__doit\ target*)
3038 am__include=include
3039 am__quote=
3040 _am_result=GNU
3041 ;;
3042 esac
3043 # Now try BSD make style include.
3044 if test "$am__include" = "#"; then
3045 echo '.include "confinc"' > confmf
3046 case `$am_make -s -f confmf 2> /dev/null` in #(
3047 *the\ am__doit\ target*)
3048 am__include=.include
3049 am__quote="\""
3050 _am_result=BSD
3051 ;;
3052 esac
3053 fi
3054
3055
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3057 $as_echo "$_am_result" >&6; }
3058 rm -f confinc confmf
3059
3060 # Check whether --enable-dependency-tracking was given.
3061 if test "${enable_dependency_tracking+set}" = set; then :
3062 enableval=$enable_dependency_tracking;
3063 fi
3064
3065 if test "x$enable_dependency_tracking" != xno; then
3066 am_depcomp="$ac_aux_dir/depcomp"
3067 AMDEPBACKSLASH='\'
3068 am__nodep='_no'
3069 fi
3070 if test "x$enable_dependency_tracking" != xno; then
3071 AMDEP_TRUE=
3072 AMDEP_FALSE='#'
3073 else
3074 AMDEP_TRUE='#'
3075 AMDEP_FALSE=
3076 fi
3077
3078
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 fi
3123 if test -z "$ac_cv_prog_CC"; then
3124 ac_ct_CC=$CC
3125 # Extract the first word of "gcc", so it can be a program name with args.
3126 set dummy gcc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_ac_ct_CC="gcc"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 CC=$ac_ct_CC
3171 fi
3172 else
3173 CC="$ac_cv_prog_CC"
3174 fi
3175
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}cc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_CC="${ac_tool_prefix}cc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215 fi
3216 fi
3217 if test -z "$CC"; then
3218 # Extract the first word of "cc", so it can be a program name with args.
3219 set dummy cc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 ac_prog_rejected=no
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3237 ac_prog_rejected=yes
3238 continue
3239 fi
3240 ac_cv_prog_CC="cc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3243 fi
3244 done
3245 done
3246 IFS=$as_save_IFS
3247
3248 if test $ac_prog_rejected = yes; then
3249 # We found a bogon in the path, so make sure we never use it.
3250 set dummy $ac_cv_prog_CC
3251 shift
3252 if test $# != 0; then
3253 # We chose a different compiler from the bogus one.
3254 # However, it has the same basename, so the bogon will be chosen
3255 # first if we set CC to just the basename; use the full file name.
3256 shift
3257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3258 fi
3259 fi
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 for ac_prog in cl.exe
3276 do
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314 test -n "$CC" && break
3315 done
3316 fi
3317 if test -z "$CC"; then
3318 ac_ct_CC=$CC
3319 for ac_prog in cl.exe
3320 do
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_ac_ct_CC="$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349 if test -n "$ac_ct_CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351 $as_echo "$ac_ct_CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358 test -n "$ac_ct_CC" && break
3359 done
3360
3361 if test "x$ac_ct_CC" = x; then
3362 CC=""
3363 else
3364 case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370 CC=$ac_ct_CC
3371 fi
3372 fi
3373
3374 fi
3375
3376
3377 test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
3380 See \`config.log' for more details" "$LINENO" 5; }
3381
3382 # Provide some information about the compiler.
3383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3384 set X $ac_compile
3385 ac_compiler=$2
3386 for ac_option in --version -v -V -qversion; do
3387 { { ac_try="$ac_compiler $ac_option >&5"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3395 ac_status=$?
3396 if test -s conftest.err; then
3397 sed '10a\
3398 ... rest of stderr output deleted ...
3399 10q' conftest.err >conftest.er1
3400 cat conftest.er1 >&5
3401 fi
3402 rm -f conftest.er1 conftest.err
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }
3405 done
3406
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413
3414 ;
3415 return 0;
3416 }
3417 _ACEOF
3418 ac_clean_files_save=$ac_clean_files
3419 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3420 # Try to create an executable without -o first, disregard a.out.
3421 # It will help us diagnose broken compilers, and finding out an intuition
3422 # of exeext.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3424 $as_echo_n "checking whether the C compiler works... " >&6; }
3425 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3426
3427 # The possible output files:
3428 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3429
3430 ac_rmfiles=
3431 for ac_file in $ac_files
3432 do
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3435 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3436 esac
3437 done
3438 rm -f $ac_rmfiles
3439
3440 if { { ac_try="$ac_link_default"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_link_default") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3454 # so that the user can short-circuit this test for compilers unknown to
3455 # Autoconf.
3456 for ac_file in $ac_files ''
3457 do
3458 test -f "$ac_file" || continue
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3461 ;;
3462 [ab].out )
3463 # We found the default executable, but exeext='' is most
3464 # certainly right.
3465 break;;
3466 *.* )
3467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3468 then :; else
3469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 fi
3471 # We set ac_cv_exeext here because the later test for it is not
3472 # safe: cross compilers may not add the suffix if given an `-o'
3473 # argument, so we may need to know it at that point already.
3474 # Even if this section looks crufty: it has the advantage of
3475 # actually working.
3476 break;;
3477 * )
3478 break;;
3479 esac
3480 done
3481 test "$ac_cv_exeext" = no && ac_cv_exeext=
3482
3483 else
3484 ac_file=''
3485 fi
3486 if test -z "$ac_file"; then :
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error 77 "C compiler cannot create executables
3495 See \`config.log' for more details" "$LINENO" 5; }
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3501 $as_echo_n "checking for C compiler default output file name... " >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3503 $as_echo "$ac_file" >&6; }
3504 ac_exeext=$ac_cv_exeext
3505
3506 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3507 ac_clean_files=$ac_clean_files_save
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3509 $as_echo_n "checking for suffix of executables... " >&6; }
3510 if { { ac_try="$ac_link"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3523 # work properly (i.e., refer to `conftest.exe'), while it won't with
3524 # `rm'.
3525 for ac_file in conftest.exe conftest conftest.*; do
3526 test -f "$ac_file" || continue
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3529 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3530 break;;
3531 * ) break;;
3532 esac
3533 done
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 fi
3540 rm -f conftest conftest$ac_cv_exeext
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3542 $as_echo "$ac_cv_exeext" >&6; }
3543
3544 rm -f conftest.$ac_ext
3545 EXEEXT=$ac_cv_exeext
3546 ac_exeext=$EXEEXT
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549 #include <stdio.h>
3550 int
3551 main ()
3552 {
3553 FILE *f = fopen ("conftest.out", "w");
3554 return ferror (f) || fclose (f) != 0;
3555
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 ac_clean_files="$ac_clean_files conftest.out"
3561 # Check that the compiler produces executables we can run. If not, either
3562 # the compiler is broken, or we cross compile.
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3564 $as_echo_n "checking whether we are cross compiling... " >&6; }
3565 if test "$cross_compiling" != yes; then
3566 { { ac_try="$ac_link"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3577 if { ac_try='./conftest$ac_cv_exeext'
3578 { { case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_try") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; }; then
3588 cross_compiling=no
3589 else
3590 if test "$cross_compiling" = maybe; then
3591 cross_compiling=yes
3592 else
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "cannot run C compiled programs.
3596 If you meant to cross compile, use \`--host'.
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 fi
3599 fi
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3602 $as_echo "$cross_compiling" >&6; }
3603
3604 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3605 ac_clean_files=$ac_clean_files_save
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3607 $as_echo_n "checking for suffix of object files... " >&6; }
3608 if ${ac_cv_objext+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.o conftest.obj
3623 if { { ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_compile") 2>&5
3631 ac_status=$?
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }; then :
3634 for ac_file in conftest.o conftest.obj conftest.*; do
3635 test -f "$ac_file" || continue;
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3639 break;;
3640 esac
3641 done
3642 else
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot compute suffix of object files: cannot compile
3649 See \`config.log' for more details" "$LINENO" 5; }
3650 fi
3651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3654 $as_echo "$ac_cv_objext" >&6; }
3655 OBJEXT=$ac_cv_objext
3656 ac_objext=$OBJEXT
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3658 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3659 if ${ac_cv_c_compiler_gnu+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668 #ifndef __GNUC__
3669 choke me
3670 #endif
3671
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_compiler_gnu=yes
3678 else
3679 ac_compiler_gnu=no
3680 fi
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3683
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3686 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3687 if test $ac_compiler_gnu = yes; then
3688 GCC=yes
3689 else
3690 GCC=
3691 fi
3692 ac_test_CFLAGS=${CFLAGS+set}
3693 ac_save_CFLAGS=$CFLAGS
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3695 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3696 if ${ac_cv_prog_cc_g+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 ac_save_c_werror_flag=$ac_c_werror_flag
3700 ac_c_werror_flag=yes
3701 ac_cv_prog_cc_g=no
3702 CFLAGS="-g"
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_g=yes
3716 else
3717 CFLAGS=""
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730
3731 else
3732 ac_c_werror_flag=$ac_save_c_werror_flag
3733 CFLAGS="-g"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_g=yes
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_c_werror_flag=$ac_save_c_werror_flag
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3756 $as_echo "$ac_cv_prog_cc_g" >&6; }
3757 if test "$ac_test_CFLAGS" = set; then
3758 CFLAGS=$ac_save_CFLAGS
3759 elif test $ac_cv_prog_cc_g = yes; then
3760 if test "$GCC" = yes; then
3761 CFLAGS="-g -O2"
3762 else
3763 CFLAGS="-g"
3764 fi
3765 else
3766 if test "$GCC" = yes; then
3767 CFLAGS="-O2"
3768 else
3769 CFLAGS=
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3773 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3774 if ${ac_cv_prog_cc_c89+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 ac_cv_prog_cc_c89=no
3778 ac_save_CC=$CC
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <stdarg.h>
3782 #include <stdio.h>
3783 struct stat;
3784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3785 struct buf { int x; };
3786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3787 static char *e (p, i)
3788 char **p;
3789 int i;
3790 {
3791 return p[i];
3792 }
3793 static char *f (char * (*g) (char **, int), char **p, ...)
3794 {
3795 char *s;
3796 va_list v;
3797 va_start (v,p);
3798 s = g (p, va_arg (v,int));
3799 va_end (v);
3800 return s;
3801 }
3802
3803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3804 function prototypes and stuff, but not '\xHH' hex character constants.
3805 These don't provoke an error unfortunately, instead are silently treated
3806 as 'x'. The following induces an error, until -std is added to get
3807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3808 array size at least. It's necessary to write '\x00'==0 to get something
3809 that's true only with -std. */
3810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3811
3812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3813 inside strings and character constants. */
3814 #define FOO(x) 'x'
3815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3816
3817 int test (int i, double x);
3818 struct s1 {int (*f) (int a);};
3819 struct s2 {int (*f) (double a);};
3820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3821 int argc;
3822 char **argv;
3823 int
3824 main ()
3825 {
3826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3833 do
3834 CC="$ac_save_CC $ac_arg"
3835 if ac_fn_c_try_compile "$LINENO"; then :
3836 ac_cv_prog_cc_c89=$ac_arg
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3843
3844 fi
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3847 x)
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850 xno)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3853 *)
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3858 if test "x$ac_cv_prog_cc_c89" != xno; then :
3859
3860 fi
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3874 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3875 if ${am_cv_prog_cc_c_o+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 # Make sure it works both with $CC and with simple cc.
3890 # Following AC_PROG_CC_C_O, we do the test twice because some
3891 # compilers refuse to overwrite an existing .o file with -o,
3892 # though they will create one.
3893 am_cv_prog_cc_c_o=yes
3894 for am_i in 1 2; do
3895 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3896 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } \
3900 && test -f conftest2.$ac_objext; then
3901 : OK
3902 else
3903 am_cv_prog_cc_c_o=no
3904 break
3905 fi
3906 done
3907 rm -f core conftest*
3908 unset am_i
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3911 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3912 if test "$am_cv_prog_cc_c_o" != yes; then
3913 # Losing compiler, so override with the script.
3914 # FIXME: It is wrong to rewrite CC.
3915 # But if we don't then we get into trouble of one sort or another.
3916 # A longer-term fix would be to have automake use am__CC in this case,
3917 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3918 CC="$am_aux_dir/compile $CC"
3919 fi
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925
3926
3927 depcc="$CC" am_compiler_list=
3928
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3930 $as_echo_n "checking dependency style of $depcc... " >&6; }
3931 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3935 # We make a subdir and do the tests there. Otherwise we can end up
3936 # making bogus files that we don't know about and never remove. For
3937 # instance it was reported that on HP-UX the gcc test will end up
3938 # making a dummy file named 'D' -- because '-MD' means "put the output
3939 # in D".
3940 rm -rf conftest.dir
3941 mkdir conftest.dir
3942 # Copy depcomp to subdir because otherwise we won't find it if we're
3943 # using a relative directory.
3944 cp "$am_depcomp" conftest.dir
3945 cd conftest.dir
3946 # We will build objects and dependencies in a subdirectory because
3947 # it helps to detect inapplicable dependency modes. For instance
3948 # both Tru64's cc and ICC support -MD to output dependencies as a
3949 # side effect of compilation, but ICC will put the dependencies in
3950 # the current directory while Tru64 will put them in the object
3951 # directory.
3952 mkdir sub
3953
3954 am_cv_CC_dependencies_compiler_type=none
3955 if test "$am_compiler_list" = ""; then
3956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957 fi
3958 am__universal=false
3959 case " $depcc " in #(
3960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961 esac
3962
3963 for depmode in $am_compiler_list; do
3964 # Setup a source with many dependencies, because some compilers
3965 # like to wrap large dependency lists on column 80 (with \), and
3966 # we should not choose a depcomp mode which is confused by this.
3967 #
3968 # We need to recreate these files for each test, as the compiler may
3969 # overwrite some of them when testing with obscure command lines.
3970 # This happens at least with the AIX C compiler.
3971 : > sub/conftest.c
3972 for i in 1 2 3 4 5 6; do
3973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3975 # Solaris 10 /bin/sh.
3976 echo '/* dummy */' > sub/conftst$i.h
3977 done
3978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3981 # mode. It turns out that the SunPro C++ compiler does not properly
3982 # handle '-M -o', and we need to detect this. Also, some Intel
3983 # versions had trouble with output in subdirs.
3984 am__obj=sub/conftest.${OBJEXT-o}
3985 am__minus_obj="-o $am__obj"
3986 case $depmode in
3987 gcc)
3988 # This depmode causes a compiler race in universal mode.
3989 test "$am__universal" = false || continue
3990 ;;
3991 nosideeffect)
3992 # After this tag, mechanisms are not by side-effect, so they'll
3993 # only be used when explicitly requested.
3994 if test "x$enable_dependency_tracking" = xyes; then
3995 continue
3996 else
3997 break
3998 fi
3999 ;;
4000 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4001 # This compiler won't grok '-c -o', but also, the minuso test has
4002 # not run yet. These depmodes are late enough in the game, and
4003 # so weak that their functioning should not be impacted.
4004 am__obj=conftest.${OBJEXT-o}
4005 am__minus_obj=
4006 ;;
4007 none) break ;;
4008 esac
4009 if depmode=$depmode \
4010 source=sub/conftest.c object=$am__obj \
4011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4013 >/dev/null 2>conftest.err &&
4014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4018 # icc doesn't choke on unknown options, it will just issue warnings
4019 # or remarks (even with -Werror). So we grep stderr for any message
4020 # that says an option was ignored or not supported.
4021 # When given -MP, icc 7.0 and 7.1 complain thusly:
4022 # icc: Command line warning: ignoring option '-M'; no argument required
4023 # The diagnosis changed in icc 8.0:
4024 # icc: Command line remark: option '-MP' not supported
4025 if (grep 'ignoring option' conftest.err ||
4026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4027 am_cv_CC_dependencies_compiler_type=$depmode
4028 break
4029 fi
4030 fi
4031 done
4032
4033 cd ..
4034 rm -rf conftest.dir
4035 else
4036 am_cv_CC_dependencies_compiler_type=none
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043
4044 if
4045 test "x$enable_dependency_tracking" != xno \
4046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047 am__fastdepCC_TRUE=
4048 am__fastdepCC_FALSE='#'
4049 else
4050 am__fastdepCC_TRUE='#'
4051 am__fastdepCC_FALSE=
4052 fi
4053
4054
4055
4056 # Check whether --enable-largefile was given.
4057 if test "${enable_largefile+set}" = set; then :
4058 enableval=$enable_largefile;
4059 fi
4060
4061 if test "$enable_largefile" != no; then
4062
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4064 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4065 if ${ac_cv_sys_largefile_CC+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 ac_cv_sys_largefile_CC=no
4069 if test "$GCC" != yes; then
4070 ac_save_CC=$CC
4071 while :; do
4072 # IRIX 6.2 and later do not support large files by default,
4073 # so use the C compiler's -n32 option if that helps.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <sys/types.h>
4077 /* Check that off_t can represent 2**63 - 1 correctly.
4078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4079 since some C++ compilers masquerading as C compilers
4080 incorrectly reject 9223372036854775807. */
4081 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4083 && LARGE_OFF_T % 2147483647 == 1)
4084 ? 1 : -1];
4085 int
4086 main ()
4087 {
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 break
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext
4097 CC="$CC -n32"
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_sys_largefile_CC=' -n32'; break
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext
4102 break
4103 done
4104 CC=$ac_save_CC
4105 rm -f conftest.$ac_ext
4106 fi
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4110 if test "$ac_cv_sys_largefile_CC" != no; then
4111 CC=$CC$ac_cv_sys_largefile_CC
4112 fi
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4116 if ${ac_cv_sys_file_offset_bits+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 while :; do
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 /* Check that off_t can represent 2**63 - 1 correctly.
4124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4125 since some C++ compilers masquerading as C compilers
4126 incorrectly reject 9223372036854775807. */
4127 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4129 && LARGE_OFF_T % 2147483647 == 1)
4130 ? 1 : -1];
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_sys_file_offset_bits=no; break
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #define _FILE_OFFSET_BITS 64
4146 #include <sys/types.h>
4147 /* Check that off_t can represent 2**63 - 1 correctly.
4148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4149 since some C++ compilers masquerading as C compilers
4150 incorrectly reject 9223372036854775807. */
4151 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4153 && LARGE_OFF_T % 2147483647 == 1)
4154 ? 1 : -1];
4155 int
4156 main ()
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_sys_file_offset_bits=64; break
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_cv_sys_file_offset_bits=unknown
4168 break
4169 done
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4172 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4173 case $ac_cv_sys_file_offset_bits in #(
4174 no | unknown) ;;
4175 *)
4176 cat >>confdefs.h <<_ACEOF
4177 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4178 _ACEOF
4179 ;;
4180 esac
4181 rm -rf conftest*
4182 if test $ac_cv_sys_file_offset_bits = unknown; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4184 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4185 if ${ac_cv_sys_large_files+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 while :; do
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <sys/types.h>
4192 /* Check that off_t can represent 2**63 - 1 correctly.
4193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4194 since some C++ compilers masquerading as C compilers
4195 incorrectly reject 9223372036854775807. */
4196 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4198 && LARGE_OFF_T % 2147483647 == 1)
4199 ? 1 : -1];
4200 int
4201 main ()
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_sys_large_files=no; break
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #define _LARGE_FILES 1
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4223 ? 1 : -1];
4224 int
4225 main ()
4226 {
4227
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_sys_large_files=1; break
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_sys_large_files=unknown
4237 break
4238 done
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4241 $as_echo "$ac_cv_sys_large_files" >&6; }
4242 case $ac_cv_sys_large_files in #(
4243 no | unknown) ;;
4244 *)
4245 cat >>confdefs.h <<_ACEOF
4246 #define _LARGE_FILES $ac_cv_sys_large_files
4247 _ACEOF
4248 ;;
4249 esac
4250 rm -rf conftest*
4251 fi
4252
4253
4254 fi
4255
4256
4257 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4270 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4271 if ${ac_cv_prog_cc_c99+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 ac_cv_prog_cc_c99=no
4275 ac_save_CC=$CC
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <stdarg.h>
4279 #include <stdbool.h>
4280 #include <stdlib.h>
4281 #include <wchar.h>
4282 #include <stdio.h>
4283
4284 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4285 #define debug(...) fprintf (stderr, __VA_ARGS__)
4286 #define showlist(...) puts (#__VA_ARGS__)
4287 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4288 static void
4289 test_varargs_macros (void)
4290 {
4291 int x = 1234;
4292 int y = 5678;
4293 debug ("Flag");
4294 debug ("X = %d\n", x);
4295 showlist (The first, second, and third items.);
4296 report (x>y, "x is %d but y is %d", x, y);
4297 }
4298
4299 // Check long long types.
4300 #define BIG64 18446744073709551615ull
4301 #define BIG32 4294967295ul
4302 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4303 #if !BIG_OK
4304 your preprocessor is broken;
4305 #endif
4306 #if BIG_OK
4307 #else
4308 your preprocessor is broken;
4309 #endif
4310 static long long int bignum = -9223372036854775807LL;
4311 static unsigned long long int ubignum = BIG64;
4312
4313 struct incomplete_array
4314 {
4315 int datasize;
4316 double data[];
4317 };
4318
4319 struct named_init {
4320 int number;
4321 const wchar_t *name;
4322 double average;
4323 };
4324
4325 typedef const char *ccp;
4326
4327 static inline int
4328 test_restrict (ccp restrict text)
4329 {
4330 // See if C++-style comments work.
4331 // Iterate through items via the restricted pointer.
4332 // Also check for declarations in for loops.
4333 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4334 continue;
4335 return 0;
4336 }
4337
4338 // Check varargs and va_copy.
4339 static void
4340 test_varargs (const char *format, ...)
4341 {
4342 va_list args;
4343 va_start (args, format);
4344 va_list args_copy;
4345 va_copy (args_copy, args);
4346
4347 const char *str;
4348 int number;
4349 float fnumber;
4350
4351 while (*format)
4352 {
4353 switch (*format++)
4354 {
4355 case 's': // string
4356 str = va_arg (args_copy, const char *);
4357 break;
4358 case 'd': // int
4359 number = va_arg (args_copy, int);
4360 break;
4361 case 'f': // float
4362 fnumber = va_arg (args_copy, double);
4363 break;
4364 default:
4365 break;
4366 }
4367 }
4368 va_end (args_copy);
4369 va_end (args);
4370 }
4371
4372 int
4373 main ()
4374 {
4375
4376 // Check bool.
4377 _Bool success = false;
4378
4379 // Check restrict.
4380 if (test_restrict ("String literal") == 0)
4381 success = true;
4382 char *restrict newvar = "Another string";
4383
4384 // Check varargs.
4385 test_varargs ("s, d' f .", "string", 65, 34.234);
4386 test_varargs_macros ();
4387
4388 // Check flexible array members.
4389 struct incomplete_array *ia =
4390 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4391 ia->datasize = 10;
4392 for (int i = 0; i < ia->datasize; ++i)
4393 ia->data[i] = i * 1.234;
4394
4395 // Check named initializers.
4396 struct named_init ni = {
4397 .number = 34,
4398 .name = L"Test wide string",
4399 .average = 543.34343,
4400 };
4401
4402 ni.number = 58;
4403
4404 int dynamic_array[ni.number];
4405 dynamic_array[ni.number - 1] = 543;
4406
4407 // work around unused variable warnings
4408 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4409 || dynamic_array[ni.number - 1] != 543);
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4416 do
4417 CC="$ac_save_CC $ac_arg"
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 ac_cv_prog_cc_c99=$ac_arg
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext
4422 test "x$ac_cv_prog_cc_c99" != "xno" && break
4423 done
4424 rm -f conftest.$ac_ext
4425 CC=$ac_save_CC
4426
4427 fi
4428 # AC_CACHE_VAL
4429 case "x$ac_cv_prog_cc_c99" in
4430 x)
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4432 $as_echo "none needed" >&6; } ;;
4433 xno)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4435 $as_echo "unsupported" >&6; } ;;
4436 *)
4437 CC="$CC $ac_cv_prog_cc_c99"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4439 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4440 esac
4441 if test "x$ac_cv_prog_cc_c99" != xno; then :
4442
4443 fi
4444
4445
4446 ac_ext=c
4447 ac_cpp='$CPP $CPPFLAGS'
4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4452 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4453 # On Suns, sometimes $CPP names a directory.
4454 if test -n "$CPP" && test -d "$CPP"; then
4455 CPP=
4456 fi
4457 if test -z "$CPP"; then
4458 if ${ac_cv_prog_CPP+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 # Double quotes because CPP needs to be expanded
4462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4463 do
4464 ac_preproc_ok=false
4465 for ac_c_preproc_warn_flag in '' yes
4466 do
4467 # Use a header file that comes with gcc, so configuring glibc
4468 # with a fresh cross-compiler works.
4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470 # <limits.h> exists even on freestanding compilers.
4471 # On the NeXT, cc -E runs the code through the compiler's parser,
4472 # not just through cpp. "Syntax error" is here to catch this case.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480 Syntax error
4481 _ACEOF
4482 if ac_fn_c_try_cpp "$LINENO"; then :
4483
4484 else
4485 # Broken: fails on valid input.
4486 continue
4487 fi
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4489
4490 # OK, works on sane cases. Now check whether nonexistent headers
4491 # can be detected and how.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <ac_nonexistent.h>
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497 # Broken: success on invalid input.
4498 continue
4499 else
4500 # Passes both tests.
4501 ac_preproc_ok=:
4502 break
4503 fi
4504 rm -f conftest.err conftest.i conftest.$ac_ext
4505
4506 done
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.i conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then :
4510 break
4511 fi
4512
4513 done
4514 ac_cv_prog_CPP=$CPP
4515
4516 fi
4517 CPP=$ac_cv_prog_CPP
4518 else
4519 ac_cv_prog_CPP=$CPP
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4522 $as_echo "$CPP" >&6; }
4523 ac_preproc_ok=false
4524 for ac_c_preproc_warn_flag in '' yes
4525 do
4526 # Use a header file that comes with gcc, so configuring glibc
4527 # with a fresh cross-compiler works.
4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 # <limits.h> exists even on freestanding compilers.
4530 # On the NeXT, cc -E runs the code through the compiler's parser,
4531 # not just through cpp. "Syntax error" is here to catch this case.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #ifdef __STDC__
4535 # include <limits.h>
4536 #else
4537 # include <assert.h>
4538 #endif
4539 Syntax error
4540 _ACEOF
4541 if ac_fn_c_try_cpp "$LINENO"; then :
4542
4543 else
4544 # Broken: fails on valid input.
4545 continue
4546 fi
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4548
4549 # OK, works on sane cases. Now check whether nonexistent headers
4550 # can be detected and how.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #include <ac_nonexistent.h>
4554 _ACEOF
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4556 # Broken: success on invalid input.
4557 continue
4558 else
4559 # Passes both tests.
4560 ac_preproc_ok=:
4561 break
4562 fi
4563 rm -f conftest.err conftest.i conftest.$ac_ext
4564
4565 done
4566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4567 rm -f conftest.i conftest.err conftest.$ac_ext
4568 if $ac_preproc_ok; then :
4569
4570 else
4571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4573 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4574 See \`config.log' for more details" "$LINENO" 5; }
4575 fi
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4585 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4586 if ${ac_cv_path_GREP+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -z "$GREP"; then
4590 ac_path_GREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in grep ggrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4600 as_fn_executable_p "$ac_path_GREP" || continue
4601 # Check for GNU ac_path_GREP and select it if it is found.
4602 # Check for GNU $ac_path_GREP
4603 case `"$ac_path_GREP" --version 2>&1` in
4604 *GNU*)
4605 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4606 *)
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4610 do
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'GREP' >> "conftest.nl"
4615 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_GREP="$ac_path_GREP"
4621 ac_path_GREP_max=$ac_count
4622 fi
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4625 done
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4628
4629 $ac_path_GREP_found && break 3
4630 done
4631 done
4632 done
4633 IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_GREP"; then
4635 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 fi
4637 else
4638 ac_cv_path_GREP=$GREP
4639 fi
4640
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4643 $as_echo "$ac_cv_path_GREP" >&6; }
4644 GREP="$ac_cv_path_GREP"
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4648 $as_echo_n "checking for egrep... " >&6; }
4649 if ${ac_cv_path_EGREP+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4653 then ac_cv_path_EGREP="$GREP -E"
4654 else
4655 if test -z "$EGREP"; then
4656 ac_path_EGREP_found=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_prog in egrep; do
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p "$ac_path_EGREP" || continue
4667 # Check for GNU ac_path_EGREP and select it if it is found.
4668 # Check for GNU $ac_path_EGREP
4669 case `"$ac_path_EGREP" --version 2>&1` in
4670 *GNU*)
4671 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4672 *)
4673 ac_count=0
4674 $as_echo_n 0123456789 >"conftest.in"
4675 while :
4676 do
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo 'EGREP' >> "conftest.nl"
4681 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683 as_fn_arith $ac_count + 1 && ac_count=$as_val
4684 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_EGREP="$ac_path_EGREP"
4687 ac_path_EGREP_max=$ac_count
4688 fi
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4691 done
4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4694
4695 $ac_path_EGREP_found && break 3
4696 done
4697 done
4698 done
4699 IFS=$as_save_IFS
4700 if test -z "$ac_cv_path_EGREP"; then
4701 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702 fi
4703 else
4704 ac_cv_path_EGREP=$EGREP
4705 fi
4706
4707 fi
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4710 $as_echo "$ac_cv_path_EGREP" >&6; }
4711 EGREP="$ac_cv_path_EGREP"
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4715 $as_echo_n "checking for ANSI C header files... " >&6; }
4716 if ${ac_cv_header_stdc+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <stdlib.h>
4722 #include <stdarg.h>
4723 #include <string.h>
4724 #include <float.h>
4725
4726 int
4727 main ()
4728 {
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_header_stdc=yes
4736 else
4737 ac_cv_header_stdc=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741 if test $ac_cv_header_stdc = yes; then
4742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <string.h>
4746
4747 _ACEOF
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "memchr" >/dev/null 2>&1; then :
4750
4751 else
4752 ac_cv_header_stdc=no
4753 fi
4754 rm -f conftest*
4755
4756 fi
4757
4758 if test $ac_cv_header_stdc = yes; then
4759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #include <stdlib.h>
4763
4764 _ACEOF
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "free" >/dev/null 2>&1; then :
4767
4768 else
4769 ac_cv_header_stdc=no
4770 fi
4771 rm -f conftest*
4772
4773 fi
4774
4775 if test $ac_cv_header_stdc = yes; then
4776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4777 if test "$cross_compiling" = yes; then :
4778 :
4779 else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <ctype.h>
4783 #include <stdlib.h>
4784 #if ((' ' & 0x0FF) == 0x020)
4785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4787 #else
4788 # define ISLOWER(c) \
4789 (('a' <= (c) && (c) <= 'i') \
4790 || ('j' <= (c) && (c) <= 'r') \
4791 || ('s' <= (c) && (c) <= 'z'))
4792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4793 #endif
4794
4795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4796 int
4797 main ()
4798 {
4799 int i;
4800 for (i = 0; i < 256; i++)
4801 if (XOR (islower (i), ISLOWER (i))
4802 || toupper (i) != TOUPPER (i))
4803 return 2;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_run "$LINENO"; then :
4808
4809 else
4810 ac_cv_header_stdc=no
4811 fi
4812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4813 conftest.$ac_objext conftest.beam conftest.$ac_ext
4814 fi
4815
4816 fi
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4819 $as_echo "$ac_cv_header_stdc" >&6; }
4820 if test $ac_cv_header_stdc = yes; then
4821
4822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4823
4824 fi
4825
4826 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4827 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4828 inttypes.h stdint.h unistd.h
4829 do :
4830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4832 "
4833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4834 cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4836 _ACEOF
4837
4838 fi
4839
4840 done
4841
4842
4843
4844
4845
4846
4847 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4848 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4849 CLANGCC="yes"
4850 else
4851 CLANGCC="no"
4852 fi
4853
4854 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4855 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4856 INTELCC="yes"
4857 else
4858 INTELCC="no"
4859 fi
4860
4861 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4862 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4863 SUNCC="yes"
4864 else
4865 SUNCC="no"
4866 fi
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 case $PKG_CONFIG in
4886 [\\/]* | ?:[\\/]*)
4887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4888 ;;
4889 *)
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 ;;
4906 esac
4907 fi
4908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4909 if test -n "$PKG_CONFIG"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4911 $as_echo "$PKG_CONFIG" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918 fi
4919 if test -z "$ac_cv_path_PKG_CONFIG"; then
4920 ac_pt_PKG_CONFIG=$PKG_CONFIG
4921 # Extract the first word of "pkg-config", so it can be a program name with args.
4922 set dummy pkg-config; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 case $ac_pt_PKG_CONFIG in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 ;;
4949 esac
4950 fi
4951 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4952 if test -n "$ac_pt_PKG_CONFIG"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4954 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960 if test "x$ac_pt_PKG_CONFIG" = x; then
4961 PKG_CONFIG=""
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969 PKG_CONFIG=$ac_pt_PKG_CONFIG
4970 fi
4971 else
4972 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4973 fi
4974
4975 fi
4976 if test -n "$PKG_CONFIG"; then
4977 _pkg_min_version=0.9.0
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4979 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4980 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4982 $as_echo "yes" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 PKG_CONFIG=""
4987 fi
4988 fi
4989 # Make sure we can run config.sub.
4990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4991 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4994 $as_echo_n "checking build system type... " >&6; }
4995 if ${ac_cv_build+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 ac_build_alias=$build_alias
4999 test "x$ac_build_alias" = x &&
5000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5001 test "x$ac_build_alias" = x &&
5002 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5008 $as_echo "$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5010 *-*-*) ;;
5011 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5012 esac
5013 build=$ac_cv_build
5014 ac_save_IFS=$IFS; IFS='-'
5015 set x $ac_cv_build
5016 shift
5017 build_cpu=$1
5018 build_vendor=$2
5019 shift; shift
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5022 build_os=$*
5023 IFS=$ac_save_IFS
5024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5028 $as_echo_n "checking host system type... " >&6; }
5029 if ${ac_cv_host+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test "x$host_alias" = x; then
5033 ac_cv_host=$ac_cv_build
5034 else
5035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5041 $as_echo "$ac_cv_host" >&6; }
5042 case $ac_cv_host in
5043 *-*-*) ;;
5044 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5045 esac
5046 host=$ac_cv_host
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_host
5049 shift
5050 host_cpu=$1
5051 host_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 host_os=$*
5056 IFS=$ac_save_IFS
5057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5061 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5062 if ${ac_cv_path_SED+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5066 for ac_i in 1 2 3 4 5 6 7; do
5067 ac_script="$ac_script$as_nl$ac_script"
5068 done
5069 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5070 { ac_script=; unset ac_script;}
5071 if test -z "$SED"; then
5072 ac_path_SED_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in sed gsed; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5082 as_fn_executable_p "$ac_path_SED" || continue
5083 # Check for GNU ac_path_SED and select it if it is found.
5084 # Check for GNU $ac_path_SED
5085 case `"$ac_path_SED" --version 2>&1` in
5086 *GNU*)
5087 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5088 *)
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5092 do
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo '' >> "conftest.nl"
5097 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_SED_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_SED="$ac_path_SED"
5103 ac_path_SED_max=$ac_count
5104 fi
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5110
5111 $ac_path_SED_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_SED"; then
5117 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5118 fi
5119 else
5120 ac_cv_path_SED=$SED
5121 fi
5122
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5125 $as_echo "$ac_cv_path_SED" >&6; }
5126 SED="$ac_cv_path_SED"
5127 rm -f conftest.sed
5128
5129
5130
5131
5132
5133
5134 # Check whether --enable-selective-werror was given.
5135 if test "${enable_selective_werror+set}" = set; then :
5136 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5137 else
5138 SELECTIVE_WERROR=yes
5139 fi
5140
5141
5142
5143
5144
5145 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5146 if test "x$SUNCC" = "xyes"; then
5147 BASE_CFLAGS="-v"
5148 else
5149 BASE_CFLAGS=""
5150 fi
5151
5152 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 xorg_testset_save_CFLAGS="$CFLAGS"
5167
5168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 int i;
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 xorg_cv_cc_flag_unknown_warning_option=yes
5181 else
5182 xorg_cv_cc_flag_unknown_warning_option=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190 fi
5191
5192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195 fi
5196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 int i;
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 xorg_cv_cc_flag_unused_command_line_argument=yes
5208 else
5209 xorg_cv_cc_flag_unused_command_line_argument=no
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5216 CFLAGS="$xorg_testset_save_CFLAGS"
5217 fi
5218
5219 found="no"
5220
5221 if test $found = "no" ; then
5222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5224 fi
5225
5226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5228 fi
5229
5230 CFLAGS="$CFLAGS -Wall"
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5233 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5234 cacheid=xorg_cv_cc_flag__Wall
5235 if eval \${$cacheid+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 int i;
5241 int
5242 main ()
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_link "$LINENO"; then :
5250 eval $cacheid=yes
5251 else
5252 eval $cacheid=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
5256 fi
5257
5258
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260
5261 eval supported=\$$cacheid
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5263 $as_echo "$supported" >&6; }
5264 if test "$supported" = "yes" ; then
5265 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5266 found="yes"
5267 fi
5268 fi
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 xorg_testset_save_CFLAGS="$CFLAGS"
5285
5286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 int i;
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 xorg_cv_cc_flag_unknown_warning_option=yes
5299 else
5300 xorg_cv_cc_flag_unknown_warning_option=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 int i;
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325 xorg_cv_cc_flag_unused_command_line_argument=yes
5326 else
5327 xorg_cv_cc_flag_unused_command_line_argument=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335 fi
5336
5337 found="no"
5338
5339 if test $found = "no" ; then
5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342 fi
5343
5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346 fi
5347
5348 CFLAGS="$CFLAGS -Wpointer-arith"
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5351 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5352 cacheid=xorg_cv_cc_flag__Wpointer_arith
5353 if eval \${$cacheid+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 int i;
5359 int
5360 main ()
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_link "$LINENO"; then :
5368 eval $cacheid=yes
5369 else
5370 eval $cacheid=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext \
5373 conftest$ac_exeext conftest.$ac_ext
5374 fi
5375
5376
5377 CFLAGS="$xorg_testset_save_CFLAGS"
5378
5379 eval supported=\$$cacheid
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5381 $as_echo "$supported" >&6; }
5382 if test "$supported" = "yes" ; then
5383 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5384 found="yes"
5385 fi
5386 fi
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 xorg_testset_save_CFLAGS="$CFLAGS"
5403
5404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 int i;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 xorg_cv_cc_flag_unknown_warning_option=yes
5417 else
5418 xorg_cv_cc_flag_unknown_warning_option=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426 fi
5427
5428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431 fi
5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 int i;
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 xorg_cv_cc_flag_unused_command_line_argument=yes
5444 else
5445 xorg_cv_cc_flag_unused_command_line_argument=no
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5452 CFLAGS="$xorg_testset_save_CFLAGS"
5453 fi
5454
5455 found="no"
5456
5457 if test $found = "no" ; then
5458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5460 fi
5461
5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5464 fi
5465
5466 CFLAGS="$CFLAGS -Wmissing-declarations"
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5469 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5470 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5471 if eval \${$cacheid+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 int i;
5477 int
5478 main ()
5479 {
5480
5481 ;
5482 return 0;
5483 }
5484 _ACEOF
5485 if ac_fn_c_try_link "$LINENO"; then :
5486 eval $cacheid=yes
5487 else
5488 eval $cacheid=no
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext \
5491 conftest$ac_exeext conftest.$ac_ext
5492 fi
5493
5494
5495 CFLAGS="$xorg_testset_save_CFLAGS"
5496
5497 eval supported=\$$cacheid
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5499 $as_echo "$supported" >&6; }
5500 if test "$supported" = "yes" ; then
5501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5502 found="yes"
5503 fi
5504 fi
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 xorg_testset_save_CFLAGS="$CFLAGS"
5521
5522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 xorg_cv_cc_flag_unknown_warning_option=yes
5535 else
5536 xorg_cv_cc_flag_unknown_warning_option=no
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544 fi
5545
5546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549 fi
5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 int i;
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 xorg_cv_cc_flag_unused_command_line_argument=yes
5562 else
5563 xorg_cv_cc_flag_unused_command_line_argument=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571 fi
5572
5573 found="no"
5574
5575 if test $found = "no" ; then
5576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5578 fi
5579
5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582 fi
5583
5584 CFLAGS="$CFLAGS -Wformat=2"
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5587 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5588 cacheid=xorg_cv_cc_flag__Wformat_2
5589 if eval \${$cacheid+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 int i;
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_link "$LINENO"; then :
5604 eval $cacheid=yes
5605 else
5606 eval $cacheid=no
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 fi
5611
5612
5613 CFLAGS="$xorg_testset_save_CFLAGS"
5614
5615 eval supported=\$$cacheid
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5617 $as_echo "$supported" >&6; }
5618 if test "$supported" = "yes" ; then
5619 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5620 found="yes"
5621 fi
5622 fi
5623
5624 if test $found = "no" ; then
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 fi
5628
5629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5631 fi
5632
5633 CFLAGS="$CFLAGS -Wformat"
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5636 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5637 cacheid=xorg_cv_cc_flag__Wformat
5638 if eval \${$cacheid+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 int i;
5644 int
5645 main ()
5646 {
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 eval $cacheid=yes
5654 else
5655 eval $cacheid=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 fi
5660
5661
5662 CFLAGS="$xorg_testset_save_CFLAGS"
5663
5664 eval supported=\$$cacheid
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5666 $as_echo "$supported" >&6; }
5667 if test "$supported" = "yes" ; then
5668 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5669 found="yes"
5670 fi
5671 fi
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 xorg_testset_save_CFLAGS="$CFLAGS"
5690
5691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 int i;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 xorg_cv_cc_flag_unknown_warning_option=yes
5704 else
5705 xorg_cv_cc_flag_unknown_warning_option=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5712 CFLAGS="$xorg_testset_save_CFLAGS"
5713 fi
5714
5715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5718 fi
5719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 int i;
5728 _ACEOF
5729 if ac_fn_c_try_compile "$LINENO"; then :
5730 xorg_cv_cc_flag_unused_command_line_argument=yes
5731 else
5732 xorg_cv_cc_flag_unused_command_line_argument=no
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5739 CFLAGS="$xorg_testset_save_CFLAGS"
5740 fi
5741
5742 found="no"
5743
5744 if test $found = "no" ; then
5745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747 fi
5748
5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751 fi
5752
5753 CFLAGS="$CFLAGS -Wstrict-prototypes"
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5756 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5757 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5758 if eval \${$cacheid+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"; then :
5773 eval $cacheid=yes
5774 else
5775 eval $cacheid=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 fi
5780
5781
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783
5784 eval supported=\$$cacheid
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5786 $as_echo "$supported" >&6; }
5787 if test "$supported" = "yes" ; then
5788 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5789 found="yes"
5790 fi
5791 fi
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 xorg_testset_save_CFLAGS="$CFLAGS"
5808
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 int i;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821 xorg_cv_cc_flag_unknown_warning_option=yes
5822 else
5823 xorg_cv_cc_flag_unknown_warning_option=no
5824 fi
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831 fi
5832
5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 fi
5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 int i;
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848 xorg_cv_cc_flag_unused_command_line_argument=yes
5849 else
5850 xorg_cv_cc_flag_unused_command_line_argument=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5857 CFLAGS="$xorg_testset_save_CFLAGS"
5858 fi
5859
5860 found="no"
5861
5862 if test $found = "no" ; then
5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865 fi
5866
5867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5869 fi
5870
5871 CFLAGS="$CFLAGS -Wmissing-prototypes"
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5874 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5875 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5876 if eval \${$cacheid+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 int
5883 main ()
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"; then :
5891 eval $cacheid=yes
5892 else
5893 eval $cacheid=no
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897 fi
5898
5899
5900 CFLAGS="$xorg_testset_save_CFLAGS"
5901
5902 eval supported=\$$cacheid
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5904 $as_echo "$supported" >&6; }
5905 if test "$supported" = "yes" ; then
5906 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5907 found="yes"
5908 fi
5909 fi
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 xorg_testset_save_CFLAGS="$CFLAGS"
5926
5927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 int i;
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939 xorg_cv_cc_flag_unknown_warning_option=yes
5940 else
5941 xorg_cv_cc_flag_unknown_warning_option=no
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949 fi
5950
5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 fi
5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 int i;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 xorg_cv_cc_flag_unused_command_line_argument=yes
5967 else
5968 xorg_cv_cc_flag_unused_command_line_argument=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976 fi
5977
5978 found="no"
5979
5980 if test $found = "no" ; then
5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 fi
5988
5989 CFLAGS="$CFLAGS -Wnested-externs"
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5992 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5993 cacheid=xorg_cv_cc_flag__Wnested_externs
5994 if eval \${$cacheid+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 int
6001 main ()
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 eval $cacheid=yes
6010 else
6011 eval $cacheid=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 fi
6016
6017
6018 CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020 eval supported=\$$cacheid
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022 $as_echo "$supported" >&6; }
6023 if test "$supported" = "yes" ; then
6024 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6025 found="yes"
6026 fi
6027 fi
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 xorg_testset_save_CFLAGS="$CFLAGS"
6044
6045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 int i;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 xorg_cv_cc_flag_unknown_warning_option=yes
6058 else
6059 xorg_cv_cc_flag_unknown_warning_option=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067 fi
6068
6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072 fi
6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 int i;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 else
6086 xorg_cv_cc_flag_unused_command_line_argument=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 found="no"
6097
6098 if test $found = "no" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105 fi
6106
6107 CFLAGS="$CFLAGS -Wbad-function-cast"
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6110 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6111 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6112 if eval \${$cacheid+:} 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 int
6119 main ()
6120 {
6121
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 if ac_fn_c_try_link "$LINENO"; then :
6127 eval $cacheid=yes
6128 else
6129 eval $cacheid=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 fi
6134
6135
6136 CFLAGS="$xorg_testset_save_CFLAGS"
6137
6138 eval supported=\$$cacheid
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6140 $as_echo "$supported" >&6; }
6141 if test "$supported" = "yes" ; then
6142 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6143 found="yes"
6144 fi
6145 fi
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 xorg_testset_save_CFLAGS="$CFLAGS"
6162
6163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 int i;
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 xorg_cv_cc_flag_unknown_warning_option=yes
6176 else
6177 xorg_cv_cc_flag_unknown_warning_option=no
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6184 CFLAGS="$xorg_testset_save_CFLAGS"
6185 fi
6186
6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190 fi
6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 int i;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 xorg_cv_cc_flag_unused_command_line_argument=yes
6203 else
6204 xorg_cv_cc_flag_unused_command_line_argument=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 found="no"
6215
6216 if test $found = "no" ; then
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223 fi
6224
6225 CFLAGS="$CFLAGS -Wold-style-definition"
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6228 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6229 cacheid=xorg_cv_cc_flag__Wold_style_definition
6230 if eval \${$cacheid+:} 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 int
6237 main ()
6238 {
6239
6240 ;
6241 return 0;
6242 }
6243 _ACEOF
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 eval $cacheid=yes
6246 else
6247 eval $cacheid=no
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 fi
6252
6253
6254 CFLAGS="$xorg_testset_save_CFLAGS"
6255
6256 eval supported=\$$cacheid
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6258 $as_echo "$supported" >&6; }
6259 if test "$supported" = "yes" ; then
6260 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6261 found="yes"
6262 fi
6263 fi
6264
6265 if test $found = "no" ; then
6266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268 fi
6269
6270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6272 fi
6273
6274 CFLAGS="$CFLAGS -fd"
6275
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6277 $as_echo_n "checking if $CC supports -fd... " >&6; }
6278 cacheid=xorg_cv_cc_flag__fd
6279 if eval \${$cacheid+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 int i;
6285 int
6286 main ()
6287 {
6288
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 eval $cacheid=yes
6295 else
6296 eval $cacheid=no
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300 fi
6301
6302
6303 CFLAGS="$xorg_testset_save_CFLAGS"
6304
6305 eval supported=\$$cacheid
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6307 $as_echo "$supported" >&6; }
6308 if test "$supported" = "yes" ; then
6309 BASE_CFLAGS="$BASE_CFLAGS -fd"
6310 found="yes"
6311 fi
6312 fi
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 xorg_testset_save_CFLAGS="$CFLAGS"
6329
6330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6339 int i;
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 xorg_cv_cc_flag_unknown_warning_option=yes
6343 else
6344 xorg_cv_cc_flag_unknown_warning_option=no
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6351 CFLAGS="$xorg_testset_save_CFLAGS"
6352 fi
6353
6354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357 fi
6358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6366 int i;
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 xorg_cv_cc_flag_unused_command_line_argument=yes
6370 else
6371 xorg_cv_cc_flag_unused_command_line_argument=no
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6378 CFLAGS="$xorg_testset_save_CFLAGS"
6379 fi
6380
6381 found="no"
6382
6383 if test $found = "no" ; then
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 fi
6387
6388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6390 fi
6391
6392 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6395 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6396 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6397 if eval \${$cacheid+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 int i;
6403 int
6404 main ()
6405 {
6406
6407 ;
6408 return 0;
6409 }
6410 _ACEOF
6411 if ac_fn_c_try_link "$LINENO"; then :
6412 eval $cacheid=yes
6413 else
6414 eval $cacheid=no
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext \
6417 conftest$ac_exeext conftest.$ac_ext
6418 fi
6419
6420
6421 CFLAGS="$xorg_testset_save_CFLAGS"
6422
6423 eval supported=\$$cacheid
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6425 $as_echo "$supported" >&6; }
6426 if test "$supported" = "yes" ; then
6427 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6428 found="yes"
6429 fi
6430 fi
6431
6432
6433
6434
6435
6436 # This chunk adds additional warnings that could catch undesired effects.
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 xorg_testset_save_CFLAGS="$CFLAGS"
6451
6452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 int i;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 xorg_cv_cc_flag_unknown_warning_option=yes
6465 else
6466 xorg_cv_cc_flag_unknown_warning_option=no
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474 fi
6475
6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6479 fi
6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 int i;
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 xorg_cv_cc_flag_unused_command_line_argument=yes
6492 else
6493 xorg_cv_cc_flag_unused_command_line_argument=no
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6500 CFLAGS="$xorg_testset_save_CFLAGS"
6501 fi
6502
6503 found="no"
6504
6505 if test $found = "no" ; then
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 fi
6509
6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 fi
6513
6514 CFLAGS="$CFLAGS -Wunused"
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6517 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6518 cacheid=xorg_cv_cc_flag__Wunused
6519 if eval \${$cacheid+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 int i;
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 eval $cacheid=yes
6535 else
6536 eval $cacheid=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 fi
6541
6542
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544
6545 eval supported=\$$cacheid
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6547 $as_echo "$supported" >&6; }
6548 if test "$supported" = "yes" ; then
6549 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6550 found="yes"
6551 fi
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 xorg_testset_save_CFLAGS="$CFLAGS"
6569
6570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int i;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 xorg_cv_cc_flag_unknown_warning_option=yes
6583 else
6584 xorg_cv_cc_flag_unknown_warning_option=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6591 CFLAGS="$xorg_testset_save_CFLAGS"
6592 fi
6593
6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597 fi
6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 int i;
6607 _ACEOF
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 xorg_cv_cc_flag_unused_command_line_argument=yes
6610 else
6611 xorg_cv_cc_flag_unused_command_line_argument=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6618 CFLAGS="$xorg_testset_save_CFLAGS"
6619 fi
6620
6621 found="no"
6622
6623 if test $found = "no" ; then
6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626 fi
6627
6628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6630 fi
6631
6632 CFLAGS="$CFLAGS -Wuninitialized"
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6635 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6636 cacheid=xorg_cv_cc_flag__Wuninitialized
6637 if eval \${$cacheid+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 int
6644 main ()
6645 {
6646
6647 ;
6648 return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"; then :
6652 eval $cacheid=yes
6653 else
6654 eval $cacheid=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 fi
6659
6660
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662
6663 eval supported=\$$cacheid
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6665 $as_echo "$supported" >&6; }
6666 if test "$supported" = "yes" ; then
6667 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6668 found="yes"
6669 fi
6670 fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 xorg_testset_save_CFLAGS="$CFLAGS"
6687
6688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int i;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 xorg_cv_cc_flag_unknown_warning_option=yes
6701 else
6702 xorg_cv_cc_flag_unknown_warning_option=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6709 CFLAGS="$xorg_testset_save_CFLAGS"
6710 fi
6711
6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715 fi
6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 int i;
6725 _ACEOF
6726 if ac_fn_c_try_compile "$LINENO"; then :
6727 xorg_cv_cc_flag_unused_command_line_argument=yes
6728 else
6729 xorg_cv_cc_flag_unused_command_line_argument=no
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6736 CFLAGS="$xorg_testset_save_CFLAGS"
6737 fi
6738
6739 found="no"
6740
6741 if test $found = "no" ; then
6742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744 fi
6745
6746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748 fi
6749
6750 CFLAGS="$CFLAGS -Wshadow"
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6753 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6754 cacheid=xorg_cv_cc_flag__Wshadow
6755 if eval \${$cacheid+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int i;
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 eval $cacheid=yes
6771 else
6772 eval $cacheid=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 fi
6777
6778
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780
6781 eval supported=\$$cacheid
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6783 $as_echo "$supported" >&6; }
6784 if test "$supported" = "yes" ; then
6785 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6786 found="yes"
6787 fi
6788 fi
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 xorg_testset_save_CFLAGS="$CFLAGS"
6805
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 int i;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 xorg_cv_cc_flag_unknown_warning_option=yes
6819 else
6820 xorg_cv_cc_flag_unknown_warning_option=no
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833 fi
6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 int i;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 xorg_cv_cc_flag_unused_command_line_argument=yes
6846 else
6847 xorg_cv_cc_flag_unused_command_line_argument=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854 CFLAGS="$xorg_testset_save_CFLAGS"
6855 fi
6856
6857 found="no"
6858
6859 if test $found = "no" ; then
6860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862 fi
6863
6864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6866 fi
6867
6868 CFLAGS="$CFLAGS -Wmissing-noreturn"
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6871 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6872 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6873 if eval \${$cacheid+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 int i;
6879 int
6880 main ()
6881 {
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888 eval $cacheid=yes
6889 else
6890 eval $cacheid=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 fi
6895
6896
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6898
6899 eval supported=\$$cacheid
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901 $as_echo "$supported" >&6; }
6902 if test "$supported" = "yes" ; then
6903 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6904 found="yes"
6905 fi
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 xorg_testset_save_CFLAGS="$CFLAGS"
6923
6924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 xorg_cv_cc_flag_unknown_warning_option=yes
6937 else
6938 xorg_cv_cc_flag_unknown_warning_option=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 fi
6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 int i;
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 xorg_cv_cc_flag_unused_command_line_argument=yes
6964 else
6965 xorg_cv_cc_flag_unused_command_line_argument=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6973 fi
6974
6975 found="no"
6976
6977 if test $found = "no" ; then
6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980 fi
6981
6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984 fi
6985
6986 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6989 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6990 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6991 if eval \${$cacheid+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int i;
6997 int
6998 main ()
6999 {
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 eval $cacheid=yes
7007 else
7008 eval $cacheid=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 fi
7013
7014
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7016
7017 eval supported=\$$cacheid
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020 if test "$supported" = "yes" ; then
7021 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7022 found="yes"
7023 fi
7024 fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 xorg_testset_save_CFLAGS="$CFLAGS"
7041
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 xorg_cv_cc_flag_unknown_warning_option=yes
7055 else
7056 xorg_cv_cc_flag_unknown_warning_option=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 fi
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 int i;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 xorg_cv_cc_flag_unused_command_line_argument=yes
7082 else
7083 xorg_cv_cc_flag_unused_command_line_argument=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7091 fi
7092
7093 found="no"
7094
7095 if test $found = "no" ; then
7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098 fi
7099
7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7102 fi
7103
7104 CFLAGS="$CFLAGS -Wredundant-decls"
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7107 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7108 cacheid=xorg_cv_cc_flag__Wredundant_decls
7109 if eval \${$cacheid+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 int
7116 main ()
7117 {
7118
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_link "$LINENO"; then :
7124 eval $cacheid=yes
7125 else
7126 eval $cacheid=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 fi
7131
7132
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7134
7135 eval supported=\$$cacheid
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138 if test "$supported" = "yes" ; then
7139 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7140 found="yes"
7141 fi
7142 fi
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 xorg_testset_save_CFLAGS="$CFLAGS"
7159
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 int i;
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 xorg_cv_cc_flag_unknown_warning_option=yes
7173 else
7174 xorg_cv_cc_flag_unknown_warning_option=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7181 CFLAGS="$xorg_testset_save_CFLAGS"
7182 fi
7183
7184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187 fi
7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 xorg_cv_cc_flag_unused_command_line_argument=yes
7200 else
7201 xorg_cv_cc_flag_unused_command_line_argument=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 found="no"
7212
7213 if test $found = "no" ; then
7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 fi
7217
7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7220 fi
7221
7222 CFLAGS="$CFLAGS -Wlogical-op"
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7225 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7226 cacheid=xorg_cv_cc_flag__Wlogical_op
7227 if eval \${$cacheid+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"; then :
7242 eval $cacheid=yes
7243 else
7244 eval $cacheid=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248 fi
7249
7250
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252
7253 eval supported=\$$cacheid
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7255 $as_echo "$supported" >&6; }
7256 if test "$supported" = "yes" ; then
7257 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7258 found="yes"
7259 fi
7260 fi
7261
7262
7263
7264 # These are currently disabled because they are noisy. They will be enabled
7265 # in the future once the codebase is sufficiently modernized to silence
7266 # them. For now, I don't want them to drown out the other warnings.
7267 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7268 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7269 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7270
7271 # Turn some warnings into errors, so we don't accidently get successful builds
7272 # when there are problems that should be fixed.
7273
7274 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288 xorg_testset_save_CFLAGS="$CFLAGS"
7289
7290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7293 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7294 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 int i;
7300 _ACEOF
7301 if ac_fn_c_try_compile "$LINENO"; then :
7302 xorg_cv_cc_flag_unknown_warning_option=yes
7303 else
7304 xorg_cv_cc_flag_unknown_warning_option=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7309 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312 fi
7313
7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 fi
7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7320 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7321 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 int i;
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 xorg_cv_cc_flag_unused_command_line_argument=yes
7330 else
7331 xorg_cv_cc_flag_unused_command_line_argument=no
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 fi
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7336 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7338 CFLAGS="$xorg_testset_save_CFLAGS"
7339 fi
7340
7341 found="no"
7342
7343 if test $found = "no" ; then
7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346 fi
7347
7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 fi
7351
7352 CFLAGS="$CFLAGS -Werror=implicit"
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7355 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7356 cacheid=xorg_cv_cc_flag__Werror_implicit
7357 if eval \${$cacheid+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 int i;
7363 int
7364 main ()
7365 {
7366
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"; then :
7372 eval $cacheid=yes
7373 else
7374 eval $cacheid=no
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 fi
7379
7380
7381 CFLAGS="$xorg_testset_save_CFLAGS"
7382
7383 eval supported=\$$cacheid
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7385 $as_echo "$supported" >&6; }
7386 if test "$supported" = "yes" ; then
7387 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7388 found="yes"
7389 fi
7390 fi
7391
7392 if test $found = "no" ; then
7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 fi
7396
7397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399 fi
7400
7401 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7404 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7405 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7406 if eval \${$cacheid+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 int
7413 main ()
7414 {
7415
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"; then :
7421 eval $cacheid=yes
7422 else
7423 eval $cacheid=no
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
7427 fi
7428
7429
7430 CFLAGS="$xorg_testset_save_CFLAGS"
7431
7432 eval supported=\$$cacheid
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7434 $as_echo "$supported" >&6; }
7435 if test "$supported" = "yes" ; then
7436 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7437 found="yes"
7438 fi
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 xorg_testset_save_CFLAGS="$CFLAGS"
7456
7457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7460 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7461 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 int i;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 xorg_cv_cc_flag_unknown_warning_option=yes
7470 else
7471 xorg_cv_cc_flag_unknown_warning_option=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7476 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7478 CFLAGS="$xorg_testset_save_CFLAGS"
7479 fi
7480
7481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484 fi
7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7487 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7488 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 int i;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 xorg_cv_cc_flag_unused_command_line_argument=yes
7497 else
7498 xorg_cv_cc_flag_unused_command_line_argument=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7503 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7505 CFLAGS="$xorg_testset_save_CFLAGS"
7506 fi
7507
7508 found="no"
7509
7510 if test $found = "no" ; then
7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513 fi
7514
7515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 fi
7518
7519 CFLAGS="$CFLAGS -Werror=nonnull"
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7522 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7523 cacheid=xorg_cv_cc_flag__Werror_nonnull
7524 if eval \${$cacheid+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 int i;
7530 int
7531 main ()
7532 {
7533
7534 ;
7535 return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_link "$LINENO"; then :
7539 eval $cacheid=yes
7540 else
7541 eval $cacheid=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545 fi
7546
7547
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549
7550 eval supported=\$$cacheid
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7552 $as_echo "$supported" >&6; }
7553 if test "$supported" = "yes" ; then
7554 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7555 found="yes"
7556 fi
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 xorg_testset_save_CFLAGS="$CFLAGS"
7574
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7578 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7579 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 int i;
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 xorg_cv_cc_flag_unknown_warning_option=yes
7588 else
7589 xorg_cv_cc_flag_unknown_warning_option=no
7590 fi
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7594 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7596 CFLAGS="$xorg_testset_save_CFLAGS"
7597 fi
7598
7599 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602 fi
7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7605 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7606 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 int i;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 xorg_cv_cc_flag_unused_command_line_argument=yes
7615 else
7616 xorg_cv_cc_flag_unused_command_line_argument=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7621 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7623 CFLAGS="$xorg_testset_save_CFLAGS"
7624 fi
7625
7626 found="no"
7627
7628 if test $found = "no" ; then
7629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7631 fi
7632
7633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635 fi
7636
7637 CFLAGS="$CFLAGS -Werror=init-self"
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7640 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7641 cacheid=xorg_cv_cc_flag__Werror_init_self
7642 if eval \${$cacheid+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 int i;
7648 int
7649 main ()
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_link "$LINENO"; then :
7657 eval $cacheid=yes
7658 else
7659 eval $cacheid=no
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 fi
7664
7665
7666 CFLAGS="$xorg_testset_save_CFLAGS"
7667
7668 eval supported=\$$cacheid
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7670 $as_echo "$supported" >&6; }
7671 if test "$supported" = "yes" ; then
7672 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7673 found="yes"
7674 fi
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 xorg_testset_save_CFLAGS="$CFLAGS"
7692
7693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7696 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7697 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 int i;
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"; then :
7705 xorg_cv_cc_flag_unknown_warning_option=yes
7706 else
7707 xorg_cv_cc_flag_unknown_warning_option=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7712 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715 fi
7716
7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720 fi
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7723 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7724 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 int i;
7730 _ACEOF
7731 if ac_fn_c_try_compile "$LINENO"; then :
7732 xorg_cv_cc_flag_unused_command_line_argument=yes
7733 else
7734 xorg_cv_cc_flag_unused_command_line_argument=no
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7739 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7741 CFLAGS="$xorg_testset_save_CFLAGS"
7742 fi
7743
7744 found="no"
7745
7746 if test $found = "no" ; then
7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749 fi
7750
7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 fi
7754
7755 CFLAGS="$CFLAGS -Werror=main"
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7758 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7759 cacheid=xorg_cv_cc_flag__Werror_main
7760 if eval \${$cacheid+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 int i;
7766 int
7767 main ()
7768 {
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 eval $cacheid=yes
7776 else
7777 eval $cacheid=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 fi
7782
7783
7784 CFLAGS="$xorg_testset_save_CFLAGS"
7785
7786 eval supported=\$$cacheid
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7788 $as_echo "$supported" >&6; }
7789 if test "$supported" = "yes" ; then
7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7791 found="yes"
7792 fi
7793 fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 xorg_testset_save_CFLAGS="$CFLAGS"
7810
7811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 int i;
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 xorg_cv_cc_flag_unknown_warning_option=yes
7824 else
7825 xorg_cv_cc_flag_unknown_warning_option=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7832 CFLAGS="$xorg_testset_save_CFLAGS"
7833 fi
7834
7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 fi
7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 int i;
7848 _ACEOF
7849 if ac_fn_c_try_compile "$LINENO"; then :
7850 xorg_cv_cc_flag_unused_command_line_argument=yes
7851 else
7852 xorg_cv_cc_flag_unused_command_line_argument=no
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7859 CFLAGS="$xorg_testset_save_CFLAGS"
7860 fi
7861
7862 found="no"
7863
7864 if test $found = "no" ; then
7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867 fi
7868
7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 fi
7872
7873 CFLAGS="$CFLAGS -Werror=missing-braces"
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7876 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7877 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7878 if eval \${$cacheid+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 int
7885 main ()
7886 {
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"; then :
7893 eval $cacheid=yes
7894 else
7895 eval $cacheid=no
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 fi
7900
7901
7902 CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904 eval supported=\$$cacheid
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906 $as_echo "$supported" >&6; }
7907 if test "$supported" = "yes" ; then
7908 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7909 found="yes"
7910 fi
7911 fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927 xorg_testset_save_CFLAGS="$CFLAGS"
7928
7929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 int i;
7939 _ACEOF
7940 if ac_fn_c_try_compile "$LINENO"; then :
7941 xorg_cv_cc_flag_unknown_warning_option=yes
7942 else
7943 xorg_cv_cc_flag_unknown_warning_option=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7950 CFLAGS="$xorg_testset_save_CFLAGS"
7951 fi
7952
7953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956 fi
7957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 int i;
7966 _ACEOF
7967 if ac_fn_c_try_compile "$LINENO"; then :
7968 xorg_cv_cc_flag_unused_command_line_argument=yes
7969 else
7970 xorg_cv_cc_flag_unused_command_line_argument=no
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7977 CFLAGS="$xorg_testset_save_CFLAGS"
7978 fi
7979
7980 found="no"
7981
7982 if test $found = "no" ; then
7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985 fi
7986
7987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 fi
7990
7991 CFLAGS="$CFLAGS -Werror=sequence-point"
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7994 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7995 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7996 if eval \${$cacheid+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 int
8003 main ()
8004 {
8005
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 eval $cacheid=yes
8012 else
8013 eval $cacheid=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 fi
8018
8019
8020 CFLAGS="$xorg_testset_save_CFLAGS"
8021
8022 eval supported=\$$cacheid
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8024 $as_echo "$supported" >&6; }
8025 if test "$supported" = "yes" ; then
8026 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8027 found="yes"
8028 fi
8029 fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 xorg_testset_save_CFLAGS="$CFLAGS"
8046
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 int i;
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059 xorg_cv_cc_flag_unknown_warning_option=yes
8060 else
8061 xorg_cv_cc_flag_unknown_warning_option=no
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8068 CFLAGS="$xorg_testset_save_CFLAGS"
8069 fi
8070
8071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074 fi
8075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 int i;
8084 _ACEOF
8085 if ac_fn_c_try_compile "$LINENO"; then :
8086 xorg_cv_cc_flag_unused_command_line_argument=yes
8087 else
8088 xorg_cv_cc_flag_unused_command_line_argument=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 fi
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8095 CFLAGS="$xorg_testset_save_CFLAGS"
8096 fi
8097
8098 found="no"
8099
8100 if test $found = "no" ; then
8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103 fi
8104
8105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 fi
8108
8109 CFLAGS="$CFLAGS -Werror=return-type"
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8112 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8113 cacheid=xorg_cv_cc_flag__Werror_return_type
8114 if eval \${$cacheid+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 int i;
8120 int
8121 main ()
8122 {
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_link "$LINENO"; then :
8129 eval $cacheid=yes
8130 else
8131 eval $cacheid=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 fi
8136
8137
8138 CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140 eval supported=\$$cacheid
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142 $as_echo "$supported" >&6; }
8143 if test "$supported" = "yes" ; then
8144 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8145 found="yes"
8146 fi
8147 fi
8148
8149 if test $found = "no" ; then
8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152 fi
8153
8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156 fi
8157
8158 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8161 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8162 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8163 if eval \${$cacheid+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 int
8170 main ()
8171 {
8172
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 eval $cacheid=yes
8179 else
8180 eval $cacheid=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 fi
8185
8186
8187 CFLAGS="$xorg_testset_save_CFLAGS"
8188
8189 eval supported=\$$cacheid
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8191 $as_echo "$supported" >&6; }
8192 if test "$supported" = "yes" ; then
8193 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8194 found="yes"
8195 fi
8196 fi
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 xorg_testset_save_CFLAGS="$CFLAGS"
8213
8214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"; then :
8226 xorg_cv_cc_flag_unknown_warning_option=yes
8227 else
8228 xorg_cv_cc_flag_unknown_warning_option=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236 fi
8237
8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241 fi
8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 int i;
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 xorg_cv_cc_flag_unused_command_line_argument=yes
8254 else
8255 xorg_cv_cc_flag_unused_command_line_argument=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8262 CFLAGS="$xorg_testset_save_CFLAGS"
8263 fi
8264
8265 found="no"
8266
8267 if test $found = "no" ; then
8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 fi
8275
8276 CFLAGS="$CFLAGS -Werror=trigraphs"
8277
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8279 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8280 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8281 if eval \${$cacheid+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 int
8288 main ()
8289 {
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8296 eval $cacheid=yes
8297 else
8298 eval $cacheid=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 fi
8303
8304
8305 CFLAGS="$xorg_testset_save_CFLAGS"
8306
8307 eval supported=\$$cacheid
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8309 $as_echo "$supported" >&6; }
8310 if test "$supported" = "yes" ; then
8311 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8312 found="yes"
8313 fi
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 xorg_testset_save_CFLAGS="$CFLAGS"
8331
8332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 int i;
8342 _ACEOF
8343 if ac_fn_c_try_compile "$LINENO"; then :
8344 xorg_cv_cc_flag_unknown_warning_option=yes
8345 else
8346 xorg_cv_cc_flag_unknown_warning_option=no
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8353 CFLAGS="$xorg_testset_save_CFLAGS"
8354 fi
8355
8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359 fi
8360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371 xorg_cv_cc_flag_unused_command_line_argument=yes
8372 else
8373 xorg_cv_cc_flag_unused_command_line_argument=no
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8380 CFLAGS="$xorg_testset_save_CFLAGS"
8381 fi
8382
8383 found="no"
8384
8385 if test $found = "no" ; then
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 fi
8389
8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8392 fi
8393
8394 CFLAGS="$CFLAGS -Werror=array-bounds"
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8397 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8398 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8399 if eval \${$cacheid+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 int i;
8405 int
8406 main ()
8407 {
8408
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"; then :
8414 eval $cacheid=yes
8415 else
8416 eval $cacheid=no
8417 fi
8418 rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 fi
8421
8422
8423 CFLAGS="$xorg_testset_save_CFLAGS"
8424
8425 eval supported=\$$cacheid
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8427 $as_echo "$supported" >&6; }
8428 if test "$supported" = "yes" ; then
8429 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8430 found="yes"
8431 fi
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448 xorg_testset_save_CFLAGS="$CFLAGS"
8449
8450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 int i;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 xorg_cv_cc_flag_unknown_warning_option=yes
8463 else
8464 xorg_cv_cc_flag_unknown_warning_option=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8471 CFLAGS="$xorg_testset_save_CFLAGS"
8472 fi
8473
8474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 fi
8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 int i;
8487 _ACEOF
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 xorg_cv_cc_flag_unused_command_line_argument=yes
8490 else
8491 xorg_cv_cc_flag_unused_command_line_argument=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 found="no"
8502
8503 if test $found = "no" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 fi
8511
8512 CFLAGS="$CFLAGS -Werror=write-strings"
8513
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8515 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8516 cacheid=xorg_cv_cc_flag__Werror_write_strings
8517 if eval \${$cacheid+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 int i;
8523 int
8524 main ()
8525 {
8526
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"; then :
8532 eval $cacheid=yes
8533 else
8534 eval $cacheid=no
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 fi
8539
8540
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8542
8543 eval supported=\$$cacheid
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8545 $as_echo "$supported" >&6; }
8546 if test "$supported" = "yes" ; then
8547 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8548 found="yes"
8549 fi
8550 fi
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566 xorg_testset_save_CFLAGS="$CFLAGS"
8567
8568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 int i;
8578 _ACEOF
8579 if ac_fn_c_try_compile "$LINENO"; then :
8580 xorg_cv_cc_flag_unknown_warning_option=yes
8581 else
8582 xorg_cv_cc_flag_unknown_warning_option=no
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589 CFLAGS="$xorg_testset_save_CFLAGS"
8590 fi
8591
8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595 fi
8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 int i;
8605 _ACEOF
8606 if ac_fn_c_try_compile "$LINENO"; then :
8607 xorg_cv_cc_flag_unused_command_line_argument=yes
8608 else
8609 xorg_cv_cc_flag_unused_command_line_argument=no
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8616 CFLAGS="$xorg_testset_save_CFLAGS"
8617 fi
8618
8619 found="no"
8620
8621 if test $found = "no" ; then
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 fi
8625
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8628 fi
8629
8630 CFLAGS="$CFLAGS -Werror=address"
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8633 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8634 cacheid=xorg_cv_cc_flag__Werror_address
8635 if eval \${$cacheid+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 int i;
8641 int
8642 main ()
8643 {
8644
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_c_try_link "$LINENO"; then :
8650 eval $cacheid=yes
8651 else
8652 eval $cacheid=no
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656 fi
8657
8658
8659 CFLAGS="$xorg_testset_save_CFLAGS"
8660
8661 eval supported=\$$cacheid
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8663 $as_echo "$supported" >&6; }
8664 if test "$supported" = "yes" ; then
8665 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8666 found="yes"
8667 fi
8668 fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684 xorg_testset_save_CFLAGS="$CFLAGS"
8685
8686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 _ACEOF
8697 if ac_fn_c_try_compile "$LINENO"; then :
8698 xorg_cv_cc_flag_unknown_warning_option=yes
8699 else
8700 xorg_cv_cc_flag_unknown_warning_option=no
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 fi
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8707 CFLAGS="$xorg_testset_save_CFLAGS"
8708 fi
8709
8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713 fi
8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 int i;
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 xorg_cv_cc_flag_unused_command_line_argument=yes
8726 else
8727 xorg_cv_cc_flag_unused_command_line_argument=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8734 CFLAGS="$xorg_testset_save_CFLAGS"
8735 fi
8736
8737 found="no"
8738
8739 if test $found = "no" ; then
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746 fi
8747
8748 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8749
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8751 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8752 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8753 if eval \${$cacheid+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 int
8760 main ()
8761 {
8762
8763 ;
8764 return 0;
8765 }
8766 _ACEOF
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 eval $cacheid=yes
8769 else
8770 eval $cacheid=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 fi
8775
8776
8777 CFLAGS="$xorg_testset_save_CFLAGS"
8778
8779 eval supported=\$$cacheid
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8781 $as_echo "$supported" >&6; }
8782 if test "$supported" = "yes" ; then
8783 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8784 found="yes"
8785 fi
8786 fi
8787
8788 if test $found = "no" ; then
8789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 fi
8796
8797 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8798
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8800 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8801 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8802 if eval \${$cacheid+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main ()
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817 eval $cacheid=yes
8818 else
8819 eval $cacheid=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 fi
8824
8825
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828 eval supported=\$$cacheid
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830 $as_echo "$supported" >&6; }
8831 if test "$supported" = "yes" ; then
8832 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8833 found="yes"
8834 fi
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851 xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 int i;
8863 _ACEOF
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 xorg_cv_cc_flag_unknown_warning_option=yes
8866 else
8867 xorg_cv_cc_flag_unknown_warning_option=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875 fi
8876
8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 fi
8881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 xorg_cv_cc_flag_unused_command_line_argument=yes
8893 else
8894 xorg_cv_cc_flag_unused_command_line_argument=no
8895 fi
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902 fi
8903
8904 found="no"
8905
8906 if test $found = "no" ; then
8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913 fi
8914
8915 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8918 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8919 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8920 if eval \${$cacheid+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int i;
8926 int
8927 main ()
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935 eval $cacheid=yes
8936 else
8937 eval $cacheid=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 fi
8942
8943
8944 CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946 eval supported=\$$cacheid
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948 $as_echo "$supported" >&6; }
8949 if test "$supported" = "yes" ; then
8950 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8951 found="yes"
8952 fi
8953 fi
8954
8955 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8956 else
8957 { $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
8958 $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;}
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 xorg_testset_save_CFLAGS="$CFLAGS"
8973
8974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 int i;
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986 xorg_cv_cc_flag_unknown_warning_option=yes
8987 else
8988 xorg_cv_cc_flag_unknown_warning_option=no
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8995 CFLAGS="$xorg_testset_save_CFLAGS"
8996 fi
8997
8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001 fi
9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 int i;
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013 xorg_cv_cc_flag_unused_command_line_argument=yes
9014 else
9015 xorg_cv_cc_flag_unused_command_line_argument=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9022 CFLAGS="$xorg_testset_save_CFLAGS"
9023 fi
9024
9025 found="no"
9026
9027 if test $found = "no" ; then
9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 fi
9031
9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 fi
9035
9036 CFLAGS="$CFLAGS -Wimplicit"
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9039 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9040 cacheid=xorg_cv_cc_flag__Wimplicit
9041 if eval \${$cacheid+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 int
9048 main ()
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"; then :
9056 eval $cacheid=yes
9057 else
9058 eval $cacheid=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext \
9061 conftest$ac_exeext conftest.$ac_ext
9062 fi
9063
9064
9065 CFLAGS="$xorg_testset_save_CFLAGS"
9066
9067 eval supported=\$$cacheid
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9069 $as_echo "$supported" >&6; }
9070 if test "$supported" = "yes" ; then
9071 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9072 found="yes"
9073 fi
9074 fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 int i;
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"; then :
9104 xorg_cv_cc_flag_unknown_warning_option=yes
9105 else
9106 xorg_cv_cc_flag_unknown_warning_option=no
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9111 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9113 CFLAGS="$xorg_testset_save_CFLAGS"
9114 fi
9115
9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119 fi
9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9123 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 int i;
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131 xorg_cv_cc_flag_unused_command_line_argument=yes
9132 else
9133 xorg_cv_cc_flag_unused_command_line_argument=no
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140 CFLAGS="$xorg_testset_save_CFLAGS"
9141 fi
9142
9143 found="no"
9144
9145 if test $found = "no" ; then
9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 fi
9149
9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 fi
9153
9154 CFLAGS="$CFLAGS -Wnonnull"
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9157 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9158 cacheid=xorg_cv_cc_flag__Wnonnull
9159 if eval \${$cacheid+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 int i;
9165 int
9166 main ()
9167 {
9168
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 eval $cacheid=yes
9175 else
9176 eval $cacheid=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 fi
9181
9182
9183 CFLAGS="$xorg_testset_save_CFLAGS"
9184
9185 eval supported=\$$cacheid
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9187 $as_echo "$supported" >&6; }
9188 if test "$supported" = "yes" ; then
9189 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9190 found="yes"
9191 fi
9192 fi
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 xorg_testset_save_CFLAGS="$CFLAGS"
9209
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 int i;
9220 _ACEOF
9221 if ac_fn_c_try_compile "$LINENO"; then :
9222 xorg_cv_cc_flag_unknown_warning_option=yes
9223 else
9224 xorg_cv_cc_flag_unknown_warning_option=no
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9231 CFLAGS="$xorg_testset_save_CFLAGS"
9232 fi
9233
9234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9237 fi
9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 int i;
9247 _ACEOF
9248 if ac_fn_c_try_compile "$LINENO"; then :
9249 xorg_cv_cc_flag_unused_command_line_argument=yes
9250 else
9251 xorg_cv_cc_flag_unused_command_line_argument=no
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9258 CFLAGS="$xorg_testset_save_CFLAGS"
9259 fi
9260
9261 found="no"
9262
9263 if test $found = "no" ; then
9264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9266 fi
9267
9268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9270 fi
9271
9272 CFLAGS="$CFLAGS -Winit-self"
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9275 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9276 cacheid=xorg_cv_cc_flag__Winit_self
9277 if eval \${$cacheid+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int i;
9283 int
9284 main ()
9285 {
9286
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 eval $cacheid=yes
9293 else
9294 eval $cacheid=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 fi
9299
9300
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302
9303 eval supported=\$$cacheid
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305 $as_echo "$supported" >&6; }
9306 if test "$supported" = "yes" ; then
9307 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9308 found="yes"
9309 fi
9310 fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326 xorg_testset_save_CFLAGS="$CFLAGS"
9327
9328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 int i;
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340 xorg_cv_cc_flag_unknown_warning_option=yes
9341 else
9342 xorg_cv_cc_flag_unknown_warning_option=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9349 CFLAGS="$xorg_testset_save_CFLAGS"
9350 fi
9351
9352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355 fi
9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 int i;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"; then :
9367 xorg_cv_cc_flag_unused_command_line_argument=yes
9368 else
9369 xorg_cv_cc_flag_unused_command_line_argument=no
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9376 CFLAGS="$xorg_testset_save_CFLAGS"
9377 fi
9378
9379 found="no"
9380
9381 if test $found = "no" ; then
9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384 fi
9385
9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9388 fi
9389
9390 CFLAGS="$CFLAGS -Wmain"
9391
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9393 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9394 cacheid=xorg_cv_cc_flag__Wmain
9395 if eval \${$cacheid+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400 int i;
9401 int
9402 main ()
9403 {
9404
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 if ac_fn_c_try_link "$LINENO"; then :
9410 eval $cacheid=yes
9411 else
9412 eval $cacheid=no
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi
9417
9418
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420
9421 eval supported=\$$cacheid
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423 $as_echo "$supported" >&6; }
9424 if test "$supported" = "yes" ; then
9425 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9426 found="yes"
9427 fi
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"; then :
9458 xorg_cv_cc_flag_unknown_warning_option=yes
9459 else
9460 xorg_cv_cc_flag_unknown_warning_option=no
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9467 CFLAGS="$xorg_testset_save_CFLAGS"
9468 fi
9469
9470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473 fi
9474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 int i;
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 xorg_cv_cc_flag_unused_command_line_argument=yes
9486 else
9487 xorg_cv_cc_flag_unused_command_line_argument=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495 fi
9496
9497 found="no"
9498
9499 if test $found = "no" ; then
9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 fi
9503
9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506 fi
9507
9508 CFLAGS="$CFLAGS -Wmissing-braces"
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9511 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9512 cacheid=xorg_cv_cc_flag__Wmissing_braces
9513 if eval \${$cacheid+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main ()
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 eval $cacheid=yes
9529 else
9530 eval $cacheid=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 fi
9535
9536
9537 CFLAGS="$xorg_testset_save_CFLAGS"
9538
9539 eval supported=\$$cacheid
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9541 $as_echo "$supported" >&6; }
9542 if test "$supported" = "yes" ; then
9543 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9544 found="yes"
9545 fi
9546 fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562 xorg_testset_save_CFLAGS="$CFLAGS"
9563
9564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 int i;
9574 _ACEOF
9575 if ac_fn_c_try_compile "$LINENO"; then :
9576 xorg_cv_cc_flag_unknown_warning_option=yes
9577 else
9578 xorg_cv_cc_flag_unknown_warning_option=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586 fi
9587
9588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591 fi
9592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int i;
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"; then :
9603 xorg_cv_cc_flag_unused_command_line_argument=yes
9604 else
9605 xorg_cv_cc_flag_unused_command_line_argument=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9612 CFLAGS="$xorg_testset_save_CFLAGS"
9613 fi
9614
9615 found="no"
9616
9617 if test $found = "no" ; then
9618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620 fi
9621
9622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 fi
9625
9626 CFLAGS="$CFLAGS -Wsequence-point"
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9629 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9630 cacheid=xorg_cv_cc_flag__Wsequence_point
9631 if eval \${$cacheid+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 int i;
9637 int
9638 main ()
9639 {
9640
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646 eval $cacheid=yes
9647 else
9648 eval $cacheid=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652 fi
9653
9654
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656
9657 eval supported=\$$cacheid
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9659 $as_echo "$supported" >&6; }
9660 if test "$supported" = "yes" ; then
9661 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9662 found="yes"
9663 fi
9664 fi
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680 xorg_testset_save_CFLAGS="$CFLAGS"
9681
9682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 int i;
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9694 xorg_cv_cc_flag_unknown_warning_option=yes
9695 else
9696 xorg_cv_cc_flag_unknown_warning_option=no
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9703 CFLAGS="$xorg_testset_save_CFLAGS"
9704 fi
9705
9706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709 fi
9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 int i;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"; then :
9721 xorg_cv_cc_flag_unused_command_line_argument=yes
9722 else
9723 xorg_cv_cc_flag_unused_command_line_argument=no
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9730 CFLAGS="$xorg_testset_save_CFLAGS"
9731 fi
9732
9733 found="no"
9734
9735 if test $found = "no" ; then
9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 fi
9739
9740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9742 fi
9743
9744 CFLAGS="$CFLAGS -Wreturn-type"
9745
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9747 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9748 cacheid=xorg_cv_cc_flag__Wreturn_type
9749 if eval \${$cacheid+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 int i;
9755 int
9756 main ()
9757 {
9758
9759 ;
9760 return 0;
9761 }
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"; then :
9764 eval $cacheid=yes
9765 else
9766 eval $cacheid=no
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771
9772
9773 CFLAGS="$xorg_testset_save_CFLAGS"
9774
9775 eval supported=\$$cacheid
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9777 $as_echo "$supported" >&6; }
9778 if test "$supported" = "yes" ; then
9779 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9780 found="yes"
9781 fi
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798 xorg_testset_save_CFLAGS="$CFLAGS"
9799
9800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 int i;
9810 _ACEOF
9811 if ac_fn_c_try_compile "$LINENO"; then :
9812 xorg_cv_cc_flag_unknown_warning_option=yes
9813 else
9814 xorg_cv_cc_flag_unknown_warning_option=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9821 CFLAGS="$xorg_testset_save_CFLAGS"
9822 fi
9823
9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 fi
9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 int i;
9837 _ACEOF
9838 if ac_fn_c_try_compile "$LINENO"; then :
9839 xorg_cv_cc_flag_unused_command_line_argument=yes
9840 else
9841 xorg_cv_cc_flag_unused_command_line_argument=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9848 CFLAGS="$xorg_testset_save_CFLAGS"
9849 fi
9850
9851 found="no"
9852
9853 if test $found = "no" ; then
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 fi
9857
9858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 fi
9861
9862 CFLAGS="$CFLAGS -Wtrigraphs"
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9865 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9866 cacheid=xorg_cv_cc_flag__Wtrigraphs
9867 if eval \${$cacheid+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 int i;
9873 int
9874 main ()
9875 {
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_link "$LINENO"; then :
9882 eval $cacheid=yes
9883 else
9884 eval $cacheid=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 fi
9889
9890
9891 CFLAGS="$xorg_testset_save_CFLAGS"
9892
9893 eval supported=\$$cacheid
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9895 $as_echo "$supported" >&6; }
9896 if test "$supported" = "yes" ; then
9897 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9898 found="yes"
9899 fi
9900 fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 xorg_testset_save_CFLAGS="$CFLAGS"
9917
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int i;
9928 _ACEOF
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 xorg_cv_cc_flag_unknown_warning_option=yes
9931 else
9932 xorg_cv_cc_flag_unknown_warning_option=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940 fi
9941
9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945 fi
9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 int i;
9955 _ACEOF
9956 if ac_fn_c_try_compile "$LINENO"; then :
9957 xorg_cv_cc_flag_unused_command_line_argument=yes
9958 else
9959 xorg_cv_cc_flag_unused_command_line_argument=no
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9966 CFLAGS="$xorg_testset_save_CFLAGS"
9967 fi
9968
9969 found="no"
9970
9971 if test $found = "no" ; then
9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9974 fi
9975
9976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 fi
9979
9980 CFLAGS="$CFLAGS -Warray-bounds"
9981
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9983 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9984 cacheid=xorg_cv_cc_flag__Warray_bounds
9985 if eval \${$cacheid+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 int
9992 main ()
9993 {
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_link "$LINENO"; then :
10000 eval $cacheid=yes
10001 else
10002 eval $cacheid=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 fi
10007
10008
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010
10011 eval supported=\$$cacheid
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10013 $as_echo "$supported" >&6; }
10014 if test "$supported" = "yes" ; then
10015 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10016 found="yes"
10017 fi
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 xorg_testset_save_CFLAGS="$CFLAGS"
10035
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 _ACEOF
10047 if ac_fn_c_try_compile "$LINENO"; then :
10048 xorg_cv_cc_flag_unknown_warning_option=yes
10049 else
10050 xorg_cv_cc_flag_unknown_warning_option=no
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10057 CFLAGS="$xorg_testset_save_CFLAGS"
10058 fi
10059
10060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063 fi
10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 int i;
10073 _ACEOF
10074 if ac_fn_c_try_compile "$LINENO"; then :
10075 xorg_cv_cc_flag_unused_command_line_argument=yes
10076 else
10077 xorg_cv_cc_flag_unused_command_line_argument=no
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085 fi
10086
10087 found="no"
10088
10089 if test $found = "no" ; then
10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10092 fi
10093
10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096 fi
10097
10098 CFLAGS="$CFLAGS -Wwrite-strings"
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10101 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10102 cacheid=xorg_cv_cc_flag__Wwrite_strings
10103 if eval \${$cacheid+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 int i;
10109 int
10110 main ()
10111 {
10112
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118 eval $cacheid=yes
10119 else
10120 eval $cacheid=no
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 fi
10125
10126
10127 CFLAGS="$xorg_testset_save_CFLAGS"
10128
10129 eval supported=\$$cacheid
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10131 $as_echo "$supported" >&6; }
10132 if test "$supported" = "yes" ; then
10133 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10134 found="yes"
10135 fi
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152 xorg_testset_save_CFLAGS="$CFLAGS"
10153
10154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 _ACEOF
10165 if ac_fn_c_try_compile "$LINENO"; then :
10166 xorg_cv_cc_flag_unknown_warning_option=yes
10167 else
10168 xorg_cv_cc_flag_unknown_warning_option=no
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10175 CFLAGS="$xorg_testset_save_CFLAGS"
10176 fi
10177
10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181 fi
10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 int i;
10191 _ACEOF
10192 if ac_fn_c_try_compile "$LINENO"; then :
10193 xorg_cv_cc_flag_unused_command_line_argument=yes
10194 else
10195 xorg_cv_cc_flag_unused_command_line_argument=no
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10202 CFLAGS="$xorg_testset_save_CFLAGS"
10203 fi
10204
10205 found="no"
10206
10207 if test $found = "no" ; then
10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10210 fi
10211
10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214 fi
10215
10216 CFLAGS="$CFLAGS -Waddress"
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10219 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
10220 cacheid=xorg_cv_cc_flag__Waddress
10221 if eval \${$cacheid+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 int i;
10227 int
10228 main ()
10229 {
10230
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 eval $cacheid=yes
10237 else
10238 eval $cacheid=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 fi
10243
10244
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246
10247 eval supported=\$$cacheid
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10249 $as_echo "$supported" >&6; }
10250 if test "$supported" = "yes" ; then
10251 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10252 found="yes"
10253 fi
10254 fi
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270 xorg_testset_save_CFLAGS="$CFLAGS"
10271
10272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"; then :
10284 xorg_cv_cc_flag_unknown_warning_option=yes
10285 else
10286 xorg_cv_cc_flag_unknown_warning_option=no
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293 CFLAGS="$xorg_testset_save_CFLAGS"
10294 fi
10295
10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299 fi
10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10308 int i;
10309 _ACEOF
10310 if ac_fn_c_try_compile "$LINENO"; then :
10311 xorg_cv_cc_flag_unused_command_line_argument=yes
10312 else
10313 xorg_cv_cc_flag_unused_command_line_argument=no
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10320 CFLAGS="$xorg_testset_save_CFLAGS"
10321 fi
10322
10323 found="no"
10324
10325 if test $found = "no" ; then
10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328 fi
10329
10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10332 fi
10333
10334 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10335
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10337 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10338 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10339 if eval \${$cacheid+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 int i;
10345 int
10346 main ()
10347 {
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354 eval $cacheid=yes
10355 else
10356 eval $cacheid=no
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 fi
10361
10362
10363 CFLAGS="$xorg_testset_save_CFLAGS"
10364
10365 eval supported=\$$cacheid
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10367 $as_echo "$supported" >&6; }
10368 if test "$supported" = "yes" ; then
10369 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10370 found="yes"
10371 fi
10372 fi
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388 xorg_testset_save_CFLAGS="$CFLAGS"
10389
10390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 int i;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"; then :
10402 xorg_cv_cc_flag_unknown_warning_option=yes
10403 else
10404 xorg_cv_cc_flag_unknown_warning_option=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10411 CFLAGS="$xorg_testset_save_CFLAGS"
10412 fi
10413
10414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417 fi
10418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 int i;
10427 _ACEOF
10428 if ac_fn_c_try_compile "$LINENO"; then :
10429 xorg_cv_cc_flag_unused_command_line_argument=yes
10430 else
10431 xorg_cv_cc_flag_unused_command_line_argument=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10438 CFLAGS="$xorg_testset_save_CFLAGS"
10439 fi
10440
10441 found="no"
10442
10443 if test $found = "no" ; then
10444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10446 fi
10447
10448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10450 fi
10451
10452 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10453
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10455 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10456 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10457 if eval \${$cacheid+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int i;
10463 int
10464 main ()
10465 {
10466
10467 ;
10468 return 0;
10469 }
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 eval $cacheid=yes
10473 else
10474 eval $cacheid=no
10475 fi
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 fi
10479
10480
10481 CFLAGS="$xorg_testset_save_CFLAGS"
10482
10483 eval supported=\$$cacheid
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10485 $as_echo "$supported" >&6; }
10486 if test "$supported" = "yes" ; then
10487 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10488 found="yes"
10489 fi
10490 fi
10491
10492
10493 fi
10494
10495
10496
10497
10498
10499
10500
10501 CWARNFLAGS="$BASE_CFLAGS"
10502 if test "x$GCC" = xyes ; then
10503 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10504 fi
10505
10506
10507
10508
10509
10510
10511
10512
10513 # Check whether --enable-strict-compilation was given.
10514 if test "${enable_strict_compilation+set}" = set; then :
10515 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10516 else
10517 STRICT_COMPILE=no
10518 fi
10519
10520
10521
10522
10523
10524
10525 STRICT_CFLAGS=""
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 xorg_testset_save_CFLAGS="$CFLAGS"
10540
10541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550 int i;
10551 _ACEOF
10552 if ac_fn_c_try_compile "$LINENO"; then :
10553 xorg_cv_cc_flag_unknown_warning_option=yes
10554 else
10555 xorg_cv_cc_flag_unknown_warning_option=no
10556 fi
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 fi
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10562 CFLAGS="$xorg_testset_save_CFLAGS"
10563 fi
10564
10565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10568 fi
10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 int i;
10578 _ACEOF
10579 if ac_fn_c_try_compile "$LINENO"; then :
10580 xorg_cv_cc_flag_unused_command_line_argument=yes
10581 else
10582 xorg_cv_cc_flag_unused_command_line_argument=no
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10589 CFLAGS="$xorg_testset_save_CFLAGS"
10590 fi
10591
10592 found="no"
10593
10594 if test $found = "no" ; then
10595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597 fi
10598
10599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10601 fi
10602
10603 CFLAGS="$CFLAGS -pedantic"
10604
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10606 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10607 cacheid=xorg_cv_cc_flag__pedantic
10608 if eval \${$cacheid+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 int i;
10614 int
10615 main ()
10616 {
10617
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 eval $cacheid=yes
10624 else
10625 eval $cacheid=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 fi
10630
10631
10632 CFLAGS="$xorg_testset_save_CFLAGS"
10633
10634 eval supported=\$$cacheid
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10636 $as_echo "$supported" >&6; }
10637 if test "$supported" = "yes" ; then
10638 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10639 found="yes"
10640 fi
10641 fi
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657 xorg_testset_save_CFLAGS="$CFLAGS"
10658
10659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 int i;
10669 _ACEOF
10670 if ac_fn_c_try_compile "$LINENO"; then :
10671 xorg_cv_cc_flag_unknown_warning_option=yes
10672 else
10673 xorg_cv_cc_flag_unknown_warning_option=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10680 CFLAGS="$xorg_testset_save_CFLAGS"
10681 fi
10682
10683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686 fi
10687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 int i;
10696 _ACEOF
10697 if ac_fn_c_try_compile "$LINENO"; then :
10698 xorg_cv_cc_flag_unused_command_line_argument=yes
10699 else
10700 xorg_cv_cc_flag_unused_command_line_argument=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 fi
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10707 CFLAGS="$xorg_testset_save_CFLAGS"
10708 fi
10709
10710 found="no"
10711
10712 if test $found = "no" ; then
10713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10715 fi
10716
10717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10719 fi
10720
10721 CFLAGS="$CFLAGS -Werror"
10722
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10724 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10725 cacheid=xorg_cv_cc_flag__Werror
10726 if eval \${$cacheid+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 int i;
10732 int
10733 main ()
10734 {
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10741 eval $cacheid=yes
10742 else
10743 eval $cacheid=no
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
10747 fi
10748
10749
10750 CFLAGS="$xorg_testset_save_CFLAGS"
10751
10752 eval supported=\$$cacheid
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10754 $as_echo "$supported" >&6; }
10755 if test "$supported" = "yes" ; then
10756 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10757 found="yes"
10758 fi
10759 fi
10760
10761 if test $found = "no" ; then
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 fi
10765
10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10768 fi
10769
10770 CFLAGS="$CFLAGS -errwarn"
10771
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10773 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10774 cacheid=xorg_cv_cc_flag__errwarn
10775 if eval \${$cacheid+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 int i;
10781 int
10782 main ()
10783 {
10784
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 eval $cacheid=yes
10791 else
10792 eval $cacheid=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 fi
10797
10798
10799 CFLAGS="$xorg_testset_save_CFLAGS"
10800
10801 eval supported=\$$cacheid
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10803 $as_echo "$supported" >&6; }
10804 if test "$supported" = "yes" ; then
10805 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10806 found="yes"
10807 fi
10808 fi
10809
10810
10811
10812 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10813 # activate it with -Werror, so we add it here explicitly.
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827 xorg_testset_save_CFLAGS="$CFLAGS"
10828
10829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838 int i;
10839 _ACEOF
10840 if ac_fn_c_try_compile "$LINENO"; then :
10841 xorg_cv_cc_flag_unknown_warning_option=yes
10842 else
10843 xorg_cv_cc_flag_unknown_warning_option=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10850 CFLAGS="$xorg_testset_save_CFLAGS"
10851 fi
10852
10853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10856 fi
10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 int i;
10866 _ACEOF
10867 if ac_fn_c_try_compile "$LINENO"; then :
10868 xorg_cv_cc_flag_unused_command_line_argument=yes
10869 else
10870 xorg_cv_cc_flag_unused_command_line_argument=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10877 CFLAGS="$xorg_testset_save_CFLAGS"
10878 fi
10879
10880 found="no"
10881
10882 if test $found = "no" ; then
10883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10885 fi
10886
10887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10889 fi
10890
10891 CFLAGS="$CFLAGS -Werror=attributes"
10892
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10894 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10895 cacheid=xorg_cv_cc_flag__Werror_attributes
10896 if eval \${$cacheid+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 int i;
10902 int
10903 main ()
10904 {
10905
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 eval $cacheid=yes
10912 else
10913 eval $cacheid=no
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 fi
10918
10919
10920 CFLAGS="$xorg_testset_save_CFLAGS"
10921
10922 eval supported=\$$cacheid
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10924 $as_echo "$supported" >&6; }
10925 if test "$supported" = "yes" ; then
10926 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10927 found="yes"
10928 fi
10929 fi
10930
10931
10932
10933 if test "x$STRICT_COMPILE" = "xyes"; then
10934 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10935 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10936 fi
10937
10938
10939
10940
10941
10942
10943 cat >>confdefs.h <<_ACEOF
10944 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10945 _ACEOF
10946
10947 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10948 if test "x$PVM" = "x"; then
10949 PVM="0"
10950 fi
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define PACKAGE_VERSION_MINOR $PVM
10954 _ACEOF
10955
10956 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10957 if test "x$PVP" = "x"; then
10958 PVP="0"
10959 fi
10960
10961 cat >>confdefs.h <<_ACEOF
10962 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10963 _ACEOF
10964
10965
10966
10967 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10968 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10969 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10970 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10971
10972
10973
10974
10975 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10976 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10977 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10978 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10979 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10980
10981
10982
10983
10984
10985
10986 if test x$APP_MAN_SUFFIX = x ; then
10987 APP_MAN_SUFFIX=1
10988 fi
10989 if test x$APP_MAN_DIR = x ; then
10990 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10991 fi
10992
10993 if test x$LIB_MAN_SUFFIX = x ; then
10994 LIB_MAN_SUFFIX=3
10995 fi
10996 if test x$LIB_MAN_DIR = x ; then
10997 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10998 fi
10999
11000 if test x$FILE_MAN_SUFFIX = x ; then
11001 case $host_os in
11002 solaris*) FILE_MAN_SUFFIX=4 ;;
11003 *) FILE_MAN_SUFFIX=5 ;;
11004 esac
11005 fi
11006 if test x$FILE_MAN_DIR = x ; then
11007 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11008 fi
11009
11010 if test x$MISC_MAN_SUFFIX = x ; then
11011 case $host_os in
11012 solaris*) MISC_MAN_SUFFIX=5 ;;
11013 *) MISC_MAN_SUFFIX=7 ;;
11014 esac
11015 fi
11016 if test x$MISC_MAN_DIR = x ; then
11017 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11018 fi
11019
11020 if test x$DRIVER_MAN_SUFFIX = x ; then
11021 case $host_os in
11022 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11023 *) DRIVER_MAN_SUFFIX=4 ;;
11024 esac
11025 fi
11026 if test x$DRIVER_MAN_DIR = x ; then
11027 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11028 fi
11029
11030 if test x$ADMIN_MAN_SUFFIX = x ; then
11031 case $host_os in
11032 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11033 *) ADMIN_MAN_SUFFIX=8 ;;
11034 esac
11035 fi
11036 if test x$ADMIN_MAN_DIR = x ; then
11037 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11038 fi
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 XORG_MAN_PAGE="X Version 11"
11055
11056 MAN_SUBSTS="\
11057 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11058 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11059 -e 's|__xservername__|Xorg|g' \
11060 -e 's|__xconfigfile__|xorg.conf|g' \
11061 -e 's|__projectroot__|\$(prefix)|g' \
11062 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11063 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11064 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11065 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11066 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11067 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11068 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11069
11070
11071
11072 # Check whether --enable-silent-rules was given.
11073 if test "${enable_silent_rules+set}" = set; then :
11074 enableval=$enable_silent_rules;
11075 fi
11076
11077 case $enable_silent_rules in # (((
11078 yes) AM_DEFAULT_VERBOSITY=0;;
11079 no) AM_DEFAULT_VERBOSITY=1;;
11080 *) AM_DEFAULT_VERBOSITY=0;;
11081 esac
11082 am_make=${MAKE-make}
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11084 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11085 if ${am_cv_make_support_nested_variables+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 if $as_echo 'TRUE=$(BAR$(V))
11089 BAR0=false
11090 BAR1=true
11091 V=1
11092 am__doit:
11093 @$(TRUE)
11094 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11095 am_cv_make_support_nested_variables=yes
11096 else
11097 am_cv_make_support_nested_variables=no
11098 fi
11099 fi
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11101 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11102 if test $am_cv_make_support_nested_variables = yes; then
11103 AM_V='$(V)'
11104 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11105 else
11106 AM_V=$AM_DEFAULT_VERBOSITY
11107 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11108 fi
11109 AM_BACKSLASH='\'
11110
11111
11112
11113 # Initialize libtool
11114 # Check whether --enable-static was given.
11115 if test "${enable_static+set}" = set; then :
11116 enableval=$enable_static; p=${PACKAGE-default}
11117 case $enableval in
11118 yes) enable_static=yes ;;
11119 no) enable_static=no ;;
11120 *)
11121 enable_static=no
11122 # Look at the argument we got. We use all the common list separators.
11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11124 for pkg in $enableval; do
11125 IFS=$lt_save_ifs
11126 if test "X$pkg" = "X$p"; then
11127 enable_static=yes
11128 fi
11129 done
11130 IFS=$lt_save_ifs
11131 ;;
11132 esac
11133 else
11134 enable_static=no
11135 fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145 case `pwd` in
11146 *\ * | *\ *)
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11148 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11149 esac
11150
11151
11152
11153 macro_version='2.4.6'
11154 macro_revision='2.4.6'
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 ltmain=$ac_aux_dir/ltmain.sh
11169
11170 # Backslashify metacharacters that are still active within
11171 # double-quoted strings.
11172 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11173
11174 # Same as above, but do not quote variable references.
11175 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11176
11177 # Sed substitution to delay expansion of an escaped shell variable in a
11178 # double_quote_subst'ed string.
11179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11180
11181 # Sed substitution to delay expansion of an escaped single quote.
11182 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11183
11184 # Sed substitution to avoid accidental globbing in evaled expressions
11185 no_glob_subst='s/\*/\\\*/g'
11186
11187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11190
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11192 $as_echo_n "checking how to print strings... " >&6; }
11193 # Test print first, because it will be a builtin if present.
11194 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11196 ECHO='print -r --'
11197 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11198 ECHO='printf %s\n'
11199 else
11200 # Use this function as a fallback that always works.
11201 func_fallback_echo ()
11202 {
11203 eval 'cat <<_LTECHO_EOF
11204 $1
11205 _LTECHO_EOF'
11206 }
11207 ECHO='func_fallback_echo'
11208 fi
11209
11210 # func_echo_all arg...
11211 # Invoke $ECHO with all args, space-separated.
11212 func_echo_all ()
11213 {
11214 $ECHO ""
11215 }
11216
11217 case $ECHO in
11218 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11219 $as_echo "printf" >&6; } ;;
11220 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11221 $as_echo "print -r" >&6; } ;;
11222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11223 $as_echo "cat" >&6; } ;;
11224 esac
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11240 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11241 if ${ac_cv_path_SED+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11245 for ac_i in 1 2 3 4 5 6 7; do
11246 ac_script="$ac_script$as_nl$ac_script"
11247 done
11248 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11249 { ac_script=; unset ac_script;}
11250 if test -z "$SED"; then
11251 ac_path_SED_found=false
11252 # Loop through the user's path and test for each of PROGNAME-LIST
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11255 do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_prog in sed gsed; do
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11261 as_fn_executable_p "$ac_path_SED" || continue
11262 # Check for GNU ac_path_SED and select it if it is found.
11263 # Check for GNU $ac_path_SED
11264 case `"$ac_path_SED" --version 2>&1` in
11265 *GNU*)
11266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11267 *)
11268 ac_count=0
11269 $as_echo_n 0123456789 >"conftest.in"
11270 while :
11271 do
11272 cat "conftest.in" "conftest.in" >"conftest.tmp"
11273 mv "conftest.tmp" "conftest.in"
11274 cp "conftest.in" "conftest.nl"
11275 $as_echo '' >> "conftest.nl"
11276 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11278 as_fn_arith $ac_count + 1 && ac_count=$as_val
11279 if test $ac_count -gt ${ac_path_SED_max-0}; then
11280 # Best one so far, save it but keep looking for a better one
11281 ac_cv_path_SED="$ac_path_SED"
11282 ac_path_SED_max=$ac_count
11283 fi
11284 # 10*(2^10) chars as input seems more than enough
11285 test $ac_count -gt 10 && break
11286 done
11287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11288 esac
11289
11290 $ac_path_SED_found && break 3
11291 done
11292 done
11293 done
11294 IFS=$as_save_IFS
11295 if test -z "$ac_cv_path_SED"; then
11296 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11297 fi
11298 else
11299 ac_cv_path_SED=$SED
11300 fi
11301
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11304 $as_echo "$ac_cv_path_SED" >&6; }
11305 SED="$ac_cv_path_SED"
11306 rm -f conftest.sed
11307
11308 test -z "$SED" && SED=sed
11309 Xsed="$SED -e 1s/^X//"
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11322 $as_echo_n "checking for fgrep... " >&6; }
11323 if ${ac_cv_path_FGREP+:} false; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11327 then ac_cv_path_FGREP="$GREP -F"
11328 else
11329 if test -z "$FGREP"; then
11330 ac_path_FGREP_found=false
11331 # Loop through the user's path and test for each of PROGNAME-LIST
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11334 do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_prog in fgrep; do
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11340 as_fn_executable_p "$ac_path_FGREP" || continue
11341 # Check for GNU ac_path_FGREP and select it if it is found.
11342 # Check for GNU $ac_path_FGREP
11343 case `"$ac_path_FGREP" --version 2>&1` in
11344 *GNU*)
11345 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11346 *)
11347 ac_count=0
11348 $as_echo_n 0123456789 >"conftest.in"
11349 while :
11350 do
11351 cat "conftest.in" "conftest.in" >"conftest.tmp"
11352 mv "conftest.tmp" "conftest.in"
11353 cp "conftest.in" "conftest.nl"
11354 $as_echo 'FGREP' >> "conftest.nl"
11355 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11357 as_fn_arith $ac_count + 1 && ac_count=$as_val
11358 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11359 # Best one so far, save it but keep looking for a better one
11360 ac_cv_path_FGREP="$ac_path_FGREP"
11361 ac_path_FGREP_max=$ac_count
11362 fi
11363 # 10*(2^10) chars as input seems more than enough
11364 test $ac_count -gt 10 && break
11365 done
11366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11367 esac
11368
11369 $ac_path_FGREP_found && break 3
11370 done
11371 done
11372 done
11373 IFS=$as_save_IFS
11374 if test -z "$ac_cv_path_FGREP"; then
11375 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11376 fi
11377 else
11378 ac_cv_path_FGREP=$FGREP
11379 fi
11380
11381 fi
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11384 $as_echo "$ac_cv_path_FGREP" >&6; }
11385 FGREP="$ac_cv_path_FGREP"
11386
11387
11388 test -z "$GREP" && GREP=grep
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408 # Check whether --with-gnu-ld was given.
11409 if test "${with_gnu_ld+set}" = set; then :
11410 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11411 else
11412 with_gnu_ld=no
11413 fi
11414
11415 ac_prog=ld
11416 if test yes = "$GCC"; then
11417 # Check if gcc -print-prog-name=ld gives a path.
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11419 $as_echo_n "checking for ld used by $CC... " >&6; }
11420 case $host in
11421 *-*-mingw*)
11422 # gcc leaves a trailing carriage return, which upsets mingw
11423 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11424 *)
11425 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11426 esac
11427 case $ac_prog in
11428 # Accept absolute paths.
11429 [\\/]* | ?:[\\/]*)
11430 re_direlt='/[^/][^/]*/\.\./'
11431 # Canonicalize the pathname of ld
11432 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11433 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11434 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11435 done
11436 test -z "$LD" && LD=$ac_prog
11437 ;;
11438 "")
11439 # If it fails, then pretend we aren't using GCC.
11440 ac_prog=ld
11441 ;;
11442 *)
11443 # If it is relative, then search for the first ld in PATH.
11444 with_gnu_ld=unknown
11445 ;;
11446 esac
11447 elif test yes = "$with_gnu_ld"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11449 $as_echo_n "checking for GNU ld... " >&6; }
11450 else
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11452 $as_echo_n "checking for non-GNU ld... " >&6; }
11453 fi
11454 if ${lt_cv_path_LD+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 if test -z "$LD"; then
11458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11459 for ac_dir in $PATH; do
11460 IFS=$lt_save_ifs
11461 test -z "$ac_dir" && ac_dir=.
11462 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11463 lt_cv_path_LD=$ac_dir/$ac_prog
11464 # Check to see if the program is GNU ld. I'd rather use --version,
11465 # but apparently some variants of GNU ld only accept -v.
11466 # Break only if it was the GNU/non-GNU ld that we prefer.
11467 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11468 *GNU* | *'with BFD'*)
11469 test no != "$with_gnu_ld" && break
11470 ;;
11471 *)
11472 test yes != "$with_gnu_ld" && break
11473 ;;
11474 esac
11475 fi
11476 done
11477 IFS=$lt_save_ifs
11478 else
11479 lt_cv_path_LD=$LD # Let the user override the test with a path.
11480 fi
11481 fi
11482
11483 LD=$lt_cv_path_LD
11484 if test -n "$LD"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11486 $as_echo "$LD" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11493 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11494 if ${lt_cv_prog_gnu_ld+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11498 case `$LD -v 2>&1 </dev/null` in
11499 *GNU* | *'with BFD'*)
11500 lt_cv_prog_gnu_ld=yes
11501 ;;
11502 *)
11503 lt_cv_prog_gnu_ld=no
11504 ;;
11505 esac
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11508 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11509 with_gnu_ld=$lt_cv_prog_gnu_ld
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11520 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11521 if ${lt_cv_path_NM+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 if test -n "$NM"; then
11525 # Let the user override the test.
11526 lt_cv_path_NM=$NM
11527 else
11528 lt_nm_to_check=${ac_tool_prefix}nm
11529 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11530 lt_nm_to_check="$lt_nm_to_check nm"
11531 fi
11532 for lt_tmp_nm in $lt_nm_to_check; do
11533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11534 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11535 IFS=$lt_save_ifs
11536 test -z "$ac_dir" && ac_dir=.
11537 tmp_nm=$ac_dir/$lt_tmp_nm
11538 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11539 # Check to see if the nm accepts a BSD-compat flag.
11540 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11541 # nm: unknown option "B" ignored
11542 # Tru64's nm complains that /dev/null is an invalid object file
11543 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11544 case $build_os in
11545 mingw*) lt_bad_file=conftest.nm/nofile ;;
11546 *) lt_bad_file=/dev/null ;;
11547 esac
11548 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11549 *$lt_bad_file* | *'Invalid file or object type'*)
11550 lt_cv_path_NM="$tmp_nm -B"
11551 break 2
11552 ;;
11553 *)
11554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11555 */dev/null*)
11556 lt_cv_path_NM="$tmp_nm -p"
11557 break 2
11558 ;;
11559 *)
11560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11561 continue # so that we can try to find one that supports BSD flags
11562 ;;
11563 esac
11564 ;;
11565 esac
11566 fi
11567 done
11568 IFS=$lt_save_ifs
11569 done
11570 : ${lt_cv_path_NM=no}
11571 fi
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11574 $as_echo "$lt_cv_path_NM" >&6; }
11575 if test no != "$lt_cv_path_NM"; then
11576 NM=$lt_cv_path_NM
11577 else
11578 # Didn't find any BSD compatible name lister, look for dumpbin.
11579 if test -n "$DUMPBIN"; then :
11580 # Let the user override the test.
11581 else
11582 if test -n "$ac_tool_prefix"; then
11583 for ac_prog in dumpbin "link -dump"
11584 do
11585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_prog_DUMPBIN+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 if test -n "$DUMPBIN"; then
11593 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606 done
11607 done
11608 IFS=$as_save_IFS
11609
11610 fi
11611 fi
11612 DUMPBIN=$ac_cv_prog_DUMPBIN
11613 if test -n "$DUMPBIN"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11615 $as_echo "$DUMPBIN" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621
11622 test -n "$DUMPBIN" && break
11623 done
11624 fi
11625 if test -z "$DUMPBIN"; then
11626 ac_ct_DUMPBIN=$DUMPBIN
11627 for ac_prog in dumpbin "link -dump"
11628 do
11629 # Extract the first word of "$ac_prog", so it can be a program name with args.
11630 set dummy $ac_prog; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 if test -n "$ac_ct_DUMPBIN"; then
11637 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650 done
11651 done
11652 IFS=$as_save_IFS
11653
11654 fi
11655 fi
11656 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11657 if test -n "$ac_ct_DUMPBIN"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11659 $as_echo "$ac_ct_DUMPBIN" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663 fi
11664
11665
11666 test -n "$ac_ct_DUMPBIN" && break
11667 done
11668
11669 if test "x$ac_ct_DUMPBIN" = x; then
11670 DUMPBIN=":"
11671 else
11672 case $cross_compiling:$ac_tool_warned in
11673 yes:)
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11676 ac_tool_warned=yes ;;
11677 esac
11678 DUMPBIN=$ac_ct_DUMPBIN
11679 fi
11680 fi
11681
11682 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11683 *COFF*)
11684 DUMPBIN="$DUMPBIN -symbols -headers"
11685 ;;
11686 *)
11687 DUMPBIN=:
11688 ;;
11689 esac
11690 fi
11691
11692 if test : != "$DUMPBIN"; then
11693 NM=$DUMPBIN
11694 fi
11695 fi
11696 test -z "$NM" && NM=nm
11697
11698
11699
11700
11701
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11704 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11705 if ${lt_cv_nm_interface+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 lt_cv_nm_interface="BSD nm"
11709 echo "int some_variable = 0;" > conftest.$ac_ext
11710 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11711 (eval "$ac_compile" 2>conftest.err)
11712 cat conftest.err >&5
11713 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11714 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11715 cat conftest.err >&5
11716 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11717 cat conftest.out >&5
11718 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11719 lt_cv_nm_interface="MS dumpbin"
11720 fi
11721 rm -f conftest*
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11724 $as_echo "$lt_cv_nm_interface" >&6; }
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11727 $as_echo_n "checking whether ln -s works... " >&6; }
11728 LN_S=$as_ln_s
11729 if test "$LN_S" = "ln -s"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11734 $as_echo "no, using $LN_S" >&6; }
11735 fi
11736
11737 # find the maximum length of command line arguments
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11739 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11740 if ${lt_cv_sys_max_cmd_len+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 i=0
11744 teststring=ABCD
11745
11746 case $build_os in
11747 msdosdjgpp*)
11748 # On DJGPP, this test can blow up pretty badly due to problems in libc
11749 # (any single argument exceeding 2000 bytes causes a buffer overrun
11750 # during glob expansion). Even if it were fixed, the result of this
11751 # check would be larger than it should be.
11752 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11753 ;;
11754
11755 gnu*)
11756 # Under GNU Hurd, this test is not required because there is
11757 # no limit to the length of command line arguments.
11758 # Libtool will interpret -1 as no limit whatsoever
11759 lt_cv_sys_max_cmd_len=-1;
11760 ;;
11761
11762 cygwin* | mingw* | cegcc*)
11763 # On Win9x/ME, this test blows up -- it succeeds, but takes
11764 # about 5 minutes as the teststring grows exponentially.
11765 # Worse, since 9x/ME are not pre-emptively multitasking,
11766 # you end up with a "frozen" computer, even though with patience
11767 # the test eventually succeeds (with a max line length of 256k).
11768 # Instead, let's just punt: use the minimum linelength reported by
11769 # all of the supported platforms: 8192 (on NT/2K/XP).
11770 lt_cv_sys_max_cmd_len=8192;
11771 ;;
11772
11773 mint*)
11774 # On MiNT this can take a long time and run out of memory.
11775 lt_cv_sys_max_cmd_len=8192;
11776 ;;
11777
11778 amigaos*)
11779 # On AmigaOS with pdksh, this test takes hours, literally.
11780 # So we just punt and use a minimum line length of 8192.
11781 lt_cv_sys_max_cmd_len=8192;
11782 ;;
11783
11784 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11785 # This has been around since 386BSD, at least. Likely further.
11786 if test -x /sbin/sysctl; then
11787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11788 elif test -x /usr/sbin/sysctl; then
11789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11790 else
11791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11792 fi
11793 # And add a safety zone
11794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11796 ;;
11797
11798 interix*)
11799 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11800 lt_cv_sys_max_cmd_len=196608
11801 ;;
11802
11803 os2*)
11804 # The test takes a long time on OS/2.
11805 lt_cv_sys_max_cmd_len=8192
11806 ;;
11807
11808 osf*)
11809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11811 # nice to cause kernel panics so lets avoid the loop below.
11812 # First set a reasonable default.
11813 lt_cv_sys_max_cmd_len=16384
11814 #
11815 if test -x /sbin/sysconfig; then
11816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11818 esac
11819 fi
11820 ;;
11821 sco3.2v5*)
11822 lt_cv_sys_max_cmd_len=102400
11823 ;;
11824 sysv5* | sco5v6* | sysv4.2uw2*)
11825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11826 if test -n "$kargmax"; then
11827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11828 else
11829 lt_cv_sys_max_cmd_len=32768
11830 fi
11831 ;;
11832 *)
11833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11834 if test -n "$lt_cv_sys_max_cmd_len" && \
11835 test undefined != "$lt_cv_sys_max_cmd_len"; then
11836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11838 else
11839 # Make teststring a little bigger before we do anything with it.
11840 # a 1K string should be a reasonable start.
11841 for i in 1 2 3 4 5 6 7 8; do
11842 teststring=$teststring$teststring
11843 done
11844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11845 # If test is not a shell built-in, we'll probably end up computing a
11846 # maximum length that is only half of the actual maximum length, but
11847 # we can't tell.
11848 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11849 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11850 test 17 != "$i" # 1/2 MB should be enough
11851 do
11852 i=`expr $i + 1`
11853 teststring=$teststring$teststring
11854 done
11855 # Only check the string length outside the loop.
11856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11857 teststring=
11858 # Add a significant safety factor because C++ compilers can tack on
11859 # massive amounts of additional arguments before passing them to the
11860 # linker. It appears as though 1/2 is a usable value.
11861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11862 fi
11863 ;;
11864 esac
11865
11866 fi
11867
11868 if test -n "$lt_cv_sys_max_cmd_len"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11870 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11873 $as_echo "none" >&6; }
11874 fi
11875 max_cmd_len=$lt_cv_sys_max_cmd_len
11876
11877
11878
11879
11880
11881
11882 : ${CP="cp -f"}
11883 : ${MV="mv -f"}
11884 : ${RM="rm -f"}
11885
11886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11887 lt_unset=unset
11888 else
11889 lt_unset=false
11890 fi
11891
11892
11893
11894
11895
11896 # test EBCDIC or ASCII
11897 case `echo X|tr X '\101'` in
11898 A) # ASCII based system
11899 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11900 lt_SP2NL='tr \040 \012'
11901 lt_NL2SP='tr \015\012 \040\040'
11902 ;;
11903 *) # EBCDIC based system
11904 lt_SP2NL='tr \100 \n'
11905 lt_NL2SP='tr \r\n \100\100'
11906 ;;
11907 esac
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11918 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11919 if ${lt_cv_to_host_file_cmd+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 case $host in
11923 *-*-mingw* )
11924 case $build in
11925 *-*-mingw* ) # actually msys
11926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11927 ;;
11928 *-*-cygwin* )
11929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11930 ;;
11931 * ) # otherwise, assume *nix
11932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11933 ;;
11934 esac
11935 ;;
11936 *-*-cygwin* )
11937 case $build in
11938 *-*-mingw* ) # actually msys
11939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11940 ;;
11941 *-*-cygwin* )
11942 lt_cv_to_host_file_cmd=func_convert_file_noop
11943 ;;
11944 * ) # otherwise, assume *nix
11945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11946 ;;
11947 esac
11948 ;;
11949 * ) # unhandled hosts (and "normal" native builds)
11950 lt_cv_to_host_file_cmd=func_convert_file_noop
11951 ;;
11952 esac
11953
11954 fi
11955
11956 to_host_file_cmd=$lt_cv_to_host_file_cmd
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11958 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11959
11960
11961
11962
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11965 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11966 if ${lt_cv_to_tool_file_cmd+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 #assume ordinary cross tools, or native build.
11970 lt_cv_to_tool_file_cmd=func_convert_file_noop
11971 case $host in
11972 *-*-mingw* )
11973 case $build in
11974 *-*-mingw* ) # actually msys
11975 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11976 ;;
11977 esac
11978 ;;
11979 esac
11980
11981 fi
11982
11983 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11985 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11986
11987
11988
11989
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11992 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11993 if ${lt_cv_ld_reload_flag+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 lt_cv_ld_reload_flag='-r'
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11999 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12000 reload_flag=$lt_cv_ld_reload_flag
12001 case $reload_flag in
12002 "" | " "*) ;;
12003 *) reload_flag=" $reload_flag" ;;
12004 esac
12005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12006 case $host_os in
12007 cygwin* | mingw* | pw32* | cegcc*)
12008 if test yes != "$GCC"; then
12009 reload_cmds=false
12010 fi
12011 ;;
12012 darwin*)
12013 if test yes = "$GCC"; then
12014 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12015 else
12016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12017 fi
12018 ;;
12019 esac
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029 if test -n "$ac_tool_prefix"; then
12030 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if ${ac_cv_prog_OBJDUMP+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 if test -n "$OBJDUMP"; then
12038 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 break 2
12050 fi
12051 done
12052 done
12053 IFS=$as_save_IFS
12054
12055 fi
12056 fi
12057 OBJDUMP=$ac_cv_prog_OBJDUMP
12058 if test -n "$OBJDUMP"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12060 $as_echo "$OBJDUMP" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12064 fi
12065
12066
12067 fi
12068 if test -z "$ac_cv_prog_OBJDUMP"; then
12069 ac_ct_OBJDUMP=$OBJDUMP
12070 # Extract the first word of "objdump", so it can be a program name with args.
12071 set dummy objdump; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 if test -n "$ac_ct_OBJDUMP"; then
12078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091 done
12092 done
12093 IFS=$as_save_IFS
12094
12095 fi
12096 fi
12097 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12098 if test -n "$ac_ct_OBJDUMP"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12100 $as_echo "$ac_ct_OBJDUMP" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105
12106 if test "x$ac_ct_OBJDUMP" = x; then
12107 OBJDUMP="false"
12108 else
12109 case $cross_compiling:$ac_tool_warned in
12110 yes:)
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12113 ac_tool_warned=yes ;;
12114 esac
12115 OBJDUMP=$ac_ct_OBJDUMP
12116 fi
12117 else
12118 OBJDUMP="$ac_cv_prog_OBJDUMP"
12119 fi
12120
12121 test -z "$OBJDUMP" && OBJDUMP=objdump
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12132 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12133 if ${lt_cv_deplibs_check_method+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 lt_cv_file_magic_cmd='$MAGIC_CMD'
12137 lt_cv_file_magic_test_file=
12138 lt_cv_deplibs_check_method='unknown'
12139 # Need to set the preceding variable on all platforms that support
12140 # interlibrary dependencies.
12141 # 'none' -- dependencies not supported.
12142 # 'unknown' -- same as none, but documents that we really don't know.
12143 # 'pass_all' -- all dependencies passed with no checks.
12144 # 'test_compile' -- check by making test program.
12145 # 'file_magic [[regex]]' -- check by looking for files in library path
12146 # that responds to the $file_magic_cmd with a given extended regex.
12147 # If you have 'file' or equivalent on your system and you're not sure
12148 # whether 'pass_all' will *always* work, you probably want this one.
12149
12150 case $host_os in
12151 aix[4-9]*)
12152 lt_cv_deplibs_check_method=pass_all
12153 ;;
12154
12155 beos*)
12156 lt_cv_deplibs_check_method=pass_all
12157 ;;
12158
12159 bsdi[45]*)
12160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12161 lt_cv_file_magic_cmd='/usr/bin/file -L'
12162 lt_cv_file_magic_test_file=/shlib/libc.so
12163 ;;
12164
12165 cygwin*)
12166 # func_win32_libid is a shell function defined in ltmain.sh
12167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12168 lt_cv_file_magic_cmd='func_win32_libid'
12169 ;;
12170
12171 mingw* | pw32*)
12172 # Base MSYS/MinGW do not provide the 'file' command needed by
12173 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12174 # unless we find 'file', for example because we are cross-compiling.
12175 if ( file / ) >/dev/null 2>&1; then
12176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12177 lt_cv_file_magic_cmd='func_win32_libid'
12178 else
12179 # Keep this pattern in sync with the one in func_win32_libid.
12180 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12181 lt_cv_file_magic_cmd='$OBJDUMP -f'
12182 fi
12183 ;;
12184
12185 cegcc*)
12186 # use the weaker test based on 'objdump'. See mingw*.
12187 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12188 lt_cv_file_magic_cmd='$OBJDUMP -f'
12189 ;;
12190
12191 darwin* | rhapsody*)
12192 lt_cv_deplibs_check_method=pass_all
12193 ;;
12194
12195 freebsd* | dragonfly*)
12196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12197 case $host_cpu in
12198 i*86 )
12199 # Not sure whether the presence of OpenBSD here was a mistake.
12200 # Let's accept both of them until this is cleared up.
12201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12202 lt_cv_file_magic_cmd=/usr/bin/file
12203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12204 ;;
12205 esac
12206 else
12207 lt_cv_deplibs_check_method=pass_all
12208 fi
12209 ;;
12210
12211 haiku*)
12212 lt_cv_deplibs_check_method=pass_all
12213 ;;
12214
12215 hpux10.20* | hpux11*)
12216 lt_cv_file_magic_cmd=/usr/bin/file
12217 case $host_cpu in
12218 ia64*)
12219 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12220 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12221 ;;
12222 hppa*64*)
12223 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]'
12224 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12225 ;;
12226 *)
12227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12228 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12229 ;;
12230 esac
12231 ;;
12232
12233 interix[3-9]*)
12234 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12236 ;;
12237
12238 irix5* | irix6* | nonstopux*)
12239 case $LD in
12240 *-32|*"-32 ") libmagic=32-bit;;
12241 *-n32|*"-n32 ") libmagic=N32;;
12242 *-64|*"-64 ") libmagic=64-bit;;
12243 *) libmagic=never-match;;
12244 esac
12245 lt_cv_deplibs_check_method=pass_all
12246 ;;
12247
12248 # This must be glibc/ELF.
12249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12250 lt_cv_deplibs_check_method=pass_all
12251 ;;
12252
12253 netbsd* | netbsdelf*-gnu)
12254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12256 else
12257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12258 fi
12259 ;;
12260
12261 newos6*)
12262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12263 lt_cv_file_magic_cmd=/usr/bin/file
12264 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12265 ;;
12266
12267 *nto* | *qnx*)
12268 lt_cv_deplibs_check_method=pass_all
12269 ;;
12270
12271 openbsd* | bitrig*)
12272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12274 else
12275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12276 fi
12277 ;;
12278
12279 osf3* | osf4* | osf5*)
12280 lt_cv_deplibs_check_method=pass_all
12281 ;;
12282
12283 rdos*)
12284 lt_cv_deplibs_check_method=pass_all
12285 ;;
12286
12287 solaris*)
12288 lt_cv_deplibs_check_method=pass_all
12289 ;;
12290
12291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12292 lt_cv_deplibs_check_method=pass_all
12293 ;;
12294
12295 sysv4 | sysv4.3*)
12296 case $host_vendor in
12297 motorola)
12298 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]'
12299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12300 ;;
12301 ncr)
12302 lt_cv_deplibs_check_method=pass_all
12303 ;;
12304 sequent)
12305 lt_cv_file_magic_cmd='/bin/file'
12306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12307 ;;
12308 sni)
12309 lt_cv_file_magic_cmd='/bin/file'
12310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12311 lt_cv_file_magic_test_file=/lib/libc.so
12312 ;;
12313 siemens)
12314 lt_cv_deplibs_check_method=pass_all
12315 ;;
12316 pc)
12317 lt_cv_deplibs_check_method=pass_all
12318 ;;
12319 esac
12320 ;;
12321
12322 tpf*)
12323 lt_cv_deplibs_check_method=pass_all
12324 ;;
12325 os2*)
12326 lt_cv_deplibs_check_method=pass_all
12327 ;;
12328 esac
12329
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12332 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12333
12334 file_magic_glob=
12335 want_nocaseglob=no
12336 if test "$build" = "$host"; then
12337 case $host_os in
12338 mingw* | pw32*)
12339 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12340 want_nocaseglob=yes
12341 else
12342 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12343 fi
12344 ;;
12345 esac
12346 fi
12347
12348 file_magic_cmd=$lt_cv_file_magic_cmd
12349 deplibs_check_method=$lt_cv_deplibs_check_method
12350 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373 if test -n "$ac_tool_prefix"; then
12374 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12375 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_prog_DLLTOOL+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test -n "$DLLTOOL"; then
12382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 DLLTOOL=$ac_cv_prog_DLLTOOL
12402 if test -n "$DLLTOOL"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12404 $as_echo "$DLLTOOL" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411 fi
12412 if test -z "$ac_cv_prog_DLLTOOL"; then
12413 ac_ct_DLLTOOL=$DLLTOOL
12414 # Extract the first word of "dlltool", so it can be a program name with args.
12415 set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 if test -n "$ac_ct_DLLTOOL"; then
12422 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
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 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12442 if test -n "$ac_ct_DLLTOOL"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12444 $as_echo "$ac_ct_DLLTOOL" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 fi
12449
12450 if test "x$ac_ct_DLLTOOL" = x; then
12451 DLLTOOL="false"
12452 else
12453 case $cross_compiling:$ac_tool_warned in
12454 yes:)
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12457 ac_tool_warned=yes ;;
12458 esac
12459 DLLTOOL=$ac_ct_DLLTOOL
12460 fi
12461 else
12462 DLLTOOL="$ac_cv_prog_DLLTOOL"
12463 fi
12464
12465 test -z "$DLLTOOL" && DLLTOOL=dlltool
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12477 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12478 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 lt_cv_sharedlib_from_linklib_cmd='unknown'
12482
12483 case $host_os in
12484 cygwin* | mingw* | pw32* | cegcc*)
12485 # two different shell functions defined in ltmain.sh;
12486 # decide which one to use based on capabilities of $DLLTOOL
12487 case `$DLLTOOL --help 2>&1` in
12488 *--identify-strict*)
12489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12490 ;;
12491 *)
12492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12493 ;;
12494 esac
12495 ;;
12496 *)
12497 # fallback: assume linklib IS sharedlib
12498 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12499 ;;
12500 esac
12501
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12504 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12505 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12506 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12507
12508
12509
12510
12511
12512
12513
12514 if test -n "$ac_tool_prefix"; then
12515 for ac_prog in ar
12516 do
12517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_AR+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test -n "$AR"; then
12525 ac_cv_prog_AR="$AR" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12537 fi
12538 done
12539 done
12540 IFS=$as_save_IFS
12541
12542 fi
12543 fi
12544 AR=$ac_cv_prog_AR
12545 if test -n "$AR"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12547 $as_echo "$AR" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554 test -n "$AR" && break
12555 done
12556 fi
12557 if test -z "$AR"; then
12558 ac_ct_AR=$AR
12559 for ac_prog in ar
12560 do
12561 # Extract the first word of "$ac_prog", so it can be a program name with args.
12562 set dummy $ac_prog; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 if test -n "$ac_ct_AR"; then
12569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12570 else
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12573 do
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12578 ac_cv_prog_ac_ct_AR="$ac_prog"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12581 fi
12582 done
12583 done
12584 IFS=$as_save_IFS
12585
12586 fi
12587 fi
12588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12589 if test -n "$ac_ct_AR"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12591 $as_echo "$ac_ct_AR" >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596
12597
12598 test -n "$ac_ct_AR" && break
12599 done
12600
12601 if test "x$ac_ct_AR" = x; then
12602 AR="false"
12603 else
12604 case $cross_compiling:$ac_tool_warned in
12605 yes:)
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12608 ac_tool_warned=yes ;;
12609 esac
12610 AR=$ac_ct_AR
12611 fi
12612 fi
12613
12614 : ${AR=ar}
12615 : ${AR_FLAGS=cru}
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12628 $as_echo_n "checking for archiver @FILE support... " >&6; }
12629 if ${lt_cv_ar_at_file+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 lt_cv_ar_at_file=no
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635
12636 int
12637 main ()
12638 {
12639
12640 ;
12641 return 0;
12642 }
12643 _ACEOF
12644 if ac_fn_c_try_compile "$LINENO"; then :
12645 echo conftest.$ac_objext > conftest.lst
12646 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12648 (eval $lt_ar_try) 2>&5
12649 ac_status=$?
12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651 test $ac_status = 0; }
12652 if test 0 -eq "$ac_status"; then
12653 # Ensure the archiver fails upon bogus file names.
12654 rm -f conftest.$ac_objext libconftest.a
12655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12656 (eval $lt_ar_try) 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; }
12660 if test 0 -ne "$ac_status"; then
12661 lt_cv_ar_at_file=@
12662 fi
12663 fi
12664 rm -f conftest.* libconftest.a
12665
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12671 $as_echo "$lt_cv_ar_at_file" >&6; }
12672
12673 if test no = "$lt_cv_ar_at_file"; then
12674 archiver_list_spec=
12675 else
12676 archiver_list_spec=$lt_cv_ar_at_file
12677 fi
12678
12679
12680
12681
12682
12683
12684
12685 if test -n "$ac_tool_prefix"; then
12686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12687 set dummy ${ac_tool_prefix}strip; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_prog_STRIP+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 if test -n "$STRIP"; then
12694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12695 else
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12698 do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707 done
12708 done
12709 IFS=$as_save_IFS
12710
12711 fi
12712 fi
12713 STRIP=$ac_cv_prog_STRIP
12714 if test -n "$STRIP"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12716 $as_echo "$STRIP" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720 fi
12721
12722
12723 fi
12724 if test -z "$ac_cv_prog_STRIP"; then
12725 ac_ct_STRIP=$STRIP
12726 # Extract the first word of "strip", so it can be a program name with args.
12727 set dummy strip; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 if test -n "$ac_ct_STRIP"; then
12734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12735 else
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_ac_ct_STRIP="strip"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747 done
12748 done
12749 IFS=$as_save_IFS
12750
12751 fi
12752 fi
12753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12754 if test -n "$ac_ct_STRIP"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12756 $as_echo "$ac_ct_STRIP" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760 fi
12761
12762 if test "x$ac_ct_STRIP" = x; then
12763 STRIP=":"
12764 else
12765 case $cross_compiling:$ac_tool_warned in
12766 yes:)
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12769 ac_tool_warned=yes ;;
12770 esac
12771 STRIP=$ac_ct_STRIP
12772 fi
12773 else
12774 STRIP="$ac_cv_prog_STRIP"
12775 fi
12776
12777 test -z "$STRIP" && STRIP=:
12778
12779
12780
12781
12782
12783
12784 if test -n "$ac_tool_prefix"; then
12785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if ${ac_cv_prog_RANLIB+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 if test -n "$RANLIB"; then
12793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12794 else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12797 do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12805 fi
12806 done
12807 done
12808 IFS=$as_save_IFS
12809
12810 fi
12811 fi
12812 RANLIB=$ac_cv_prog_RANLIB
12813 if test -n "$RANLIB"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12815 $as_echo "$RANLIB" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12819 fi
12820
12821
12822 fi
12823 if test -z "$ac_cv_prog_RANLIB"; then
12824 ac_ct_RANLIB=$RANLIB
12825 # Extract the first word of "ranlib", so it can be a program name with args.
12826 set dummy ranlib; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$ac_ct_RANLIB"; then
12833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_ac_ct_RANLIB="ranlib"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12853 if test -n "$ac_ct_RANLIB"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12855 $as_echo "$ac_ct_RANLIB" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861 if test "x$ac_ct_RANLIB" = x; then
12862 RANLIB=":"
12863 else
12864 case $cross_compiling:$ac_tool_warned in
12865 yes:)
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12868 ac_tool_warned=yes ;;
12869 esac
12870 RANLIB=$ac_ct_RANLIB
12871 fi
12872 else
12873 RANLIB="$ac_cv_prog_RANLIB"
12874 fi
12875
12876 test -z "$RANLIB" && RANLIB=:
12877
12878
12879
12880
12881
12882
12883 # Determine commands to create old-style static archives.
12884 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12885 old_postinstall_cmds='chmod 644 $oldlib'
12886 old_postuninstall_cmds=
12887
12888 if test -n "$RANLIB"; then
12889 case $host_os in
12890 bitrig* | openbsd*)
12891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12892 ;;
12893 *)
12894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12895 ;;
12896 esac
12897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12898 fi
12899
12900 case $host_os in
12901 darwin*)
12902 lock_old_archive_extraction=yes ;;
12903 *)
12904 lock_old_archive_extraction=no ;;
12905 esac
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945 # If no C compiler was specified, use CC.
12946 LTCC=${LTCC-"$CC"}
12947
12948 # If no C compiler flags were specified, use CFLAGS.
12949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12950
12951 # Allow CC to be a program name with arguments.
12952 compiler=$CC
12953
12954
12955 # Check for command to grab the raw symbol name followed by C symbol from nm.
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12957 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12958 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961
12962 # These are sane defaults that work on at least a few old systems.
12963 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12964
12965 # Character class describing NM global symbol codes.
12966 symcode='[BCDEGRST]'
12967
12968 # Regexp to match symbols that can be accessed directly from C.
12969 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12970
12971 # Define system-specific variables.
12972 case $host_os in
12973 aix*)
12974 symcode='[BCDT]'
12975 ;;
12976 cygwin* | mingw* | pw32* | cegcc*)
12977 symcode='[ABCDGISTW]'
12978 ;;
12979 hpux*)
12980 if test ia64 = "$host_cpu"; then
12981 symcode='[ABCDEGRST]'
12982 fi
12983 ;;
12984 irix* | nonstopux*)
12985 symcode='[BCDEGRST]'
12986 ;;
12987 osf*)
12988 symcode='[BCDEGQRST]'
12989 ;;
12990 solaris*)
12991 symcode='[BDRT]'
12992 ;;
12993 sco3.2v5*)
12994 symcode='[DT]'
12995 ;;
12996 sysv4.2uw2*)
12997 symcode='[DT]'
12998 ;;
12999 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13000 symcode='[ABDT]'
13001 ;;
13002 sysv4)
13003 symcode='[DFNSTU]'
13004 ;;
13005 esac
13006
13007 # If we're using GNU nm, then use its standard symbol codes.
13008 case `$NM -V 2>&1` in
13009 *GNU* | *'with BFD'*)
13010 symcode='[ABCDGIRSTW]' ;;
13011 esac
13012
13013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13014 # Gets list of data symbols to import.
13015 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13016 # Adjust the below global symbol transforms to fixup imported variables.
13017 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13018 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
13019 lt_c_name_lib_hook="\
13020 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
13021 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
13022 else
13023 # Disable hooks by default.
13024 lt_cv_sys_global_symbol_to_import=
13025 lt_cdecl_hook=
13026 lt_c_name_hook=
13027 lt_c_name_lib_hook=
13028 fi
13029
13030 # Transform an extracted symbol line into a proper C declaration.
13031 # Some systems (esp. on ia64) link data and code symbols differently,
13032 # so use this general approach.
13033 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13034 $lt_cdecl_hook\
13035 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13036 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13037
13038 # Transform an extracted symbol line into symbol name and symbol address
13039 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13040 $lt_c_name_hook\
13041 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13042 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
13043
13044 # Transform an extracted symbol line into symbol name with lib prefix and
13045 # symbol address.
13046 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13047 $lt_c_name_lib_hook\
13048 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
13049 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
13050 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
13051
13052 # Handle CRLF in mingw tool chain
13053 opt_cr=
13054 case $build_os in
13055 mingw*)
13056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13057 ;;
13058 esac
13059
13060 # Try without a prefix underscore, then with it.
13061 for ac_symprfx in "" "_"; do
13062
13063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13064 symxfrm="\\1 $ac_symprfx\\2 \\2"
13065
13066 # Write the raw and C identifiers.
13067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13068 # Fake it for dumpbin and say T for any non-static function,
13069 # D for any global variable and I for any imported variable.
13070 # Also find C++ and __fastcall symbols from MSVC++,
13071 # which start with @ or ?.
13072 lt_cv_sys_global_symbol_pipe="$AWK '"\
13073 " {last_section=section; section=\$ 3};"\
13074 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13075 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13076 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13077 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13078 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13079 " \$ 0!~/External *\|/{next};"\
13080 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13081 " {if(hide[section]) next};"\
13082 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13083 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13084 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13085 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13086 " ' prfx=^$ac_symprfx"
13087 else
13088 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13089 fi
13090 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13091
13092 # Check to see that the pipe works correctly.
13093 pipe_works=no
13094
13095 rm -f conftest*
13096 cat > conftest.$ac_ext <<_LT_EOF
13097 #ifdef __cplusplus
13098 extern "C" {
13099 #endif
13100 char nm_test_var;
13101 void nm_test_func(void);
13102 void nm_test_func(void){}
13103 #ifdef __cplusplus
13104 }
13105 #endif
13106 int main(){nm_test_var='a';nm_test_func();return(0);}
13107 _LT_EOF
13108
13109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13110 (eval $ac_compile) 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; then
13114 # Now try to grab the symbols.
13115 nlist=conftest.nm
13116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13117 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; } && test -s "$nlist"; then
13121 # Try sorting and uniquifying the output.
13122 if sort "$nlist" | uniq > "$nlist"T; then
13123 mv -f "$nlist"T "$nlist"
13124 else
13125 rm -f "$nlist"T
13126 fi
13127
13128 # Make sure that we snagged all the symbols we need.
13129 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13130 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13131 cat <<_LT_EOF > conftest.$ac_ext
13132 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13133 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13134 /* DATA imports from DLLs on WIN32 can't be const, because runtime
13135 relocations are performed -- see ld's documentation on pseudo-relocs. */
13136 # define LT_DLSYM_CONST
13137 #elif defined __osf__
13138 /* This system does not cope well with relocations in const data. */
13139 # define LT_DLSYM_CONST
13140 #else
13141 # define LT_DLSYM_CONST const
13142 #endif
13143
13144 #ifdef __cplusplus
13145 extern "C" {
13146 #endif
13147
13148 _LT_EOF
13149 # Now generate the symbol file.
13150 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13151
13152 cat <<_LT_EOF >> conftest.$ac_ext
13153
13154 /* The mapping between symbol names and symbols. */
13155 LT_DLSYM_CONST struct {
13156 const char *name;
13157 void *address;
13158 }
13159 lt__PROGRAM__LTX_preloaded_symbols[] =
13160 {
13161 { "@PROGRAM@", (void *) 0 },
13162 _LT_EOF
13163 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13164 cat <<\_LT_EOF >> conftest.$ac_ext
13165 {0, (void *) 0}
13166 };
13167
13168 /* This works around a problem in FreeBSD linker */
13169 #ifdef FREEBSD_WORKAROUND
13170 static const void *lt_preloaded_setup() {
13171 return lt__PROGRAM__LTX_preloaded_symbols;
13172 }
13173 #endif
13174
13175 #ifdef __cplusplus
13176 }
13177 #endif
13178 _LT_EOF
13179 # Now try linking the two files.
13180 mv conftest.$ac_objext conftstm.$ac_objext
13181 lt_globsym_save_LIBS=$LIBS
13182 lt_globsym_save_CFLAGS=$CFLAGS
13183 LIBS=conftstm.$ac_objext
13184 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13186 (eval $ac_link) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13190 pipe_works=yes
13191 fi
13192 LIBS=$lt_globsym_save_LIBS
13193 CFLAGS=$lt_globsym_save_CFLAGS
13194 else
13195 echo "cannot find nm_test_func in $nlist" >&5
13196 fi
13197 else
13198 echo "cannot find nm_test_var in $nlist" >&5
13199 fi
13200 else
13201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13202 fi
13203 else
13204 echo "$progname: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 fi
13207 rm -rf conftest* conftst*
13208
13209 # Do not use the global_symbol_pipe unless it works.
13210 if test yes = "$pipe_works"; then
13211 break
13212 else
13213 lt_cv_sys_global_symbol_pipe=
13214 fi
13215 done
13216
13217 fi
13218
13219 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13220 lt_cv_sys_global_symbol_to_cdecl=
13221 fi
13222 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13224 $as_echo "failed" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13227 $as_echo "ok" >&6; }
13228 fi
13229
13230 # Response file support.
13231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13232 nm_file_list_spec='@'
13233 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13234 nm_file_list_spec='@'
13235 fi
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13274 $as_echo_n "checking for sysroot... " >&6; }
13275
13276 # Check whether --with-sysroot was given.
13277 if test "${with_sysroot+set}" = set; then :
13278 withval=$with_sysroot;
13279 else
13280 with_sysroot=no
13281 fi
13282
13283
13284 lt_sysroot=
13285 case $with_sysroot in #(
13286 yes)
13287 if test yes = "$GCC"; then
13288 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13289 fi
13290 ;; #(
13291 /*)
13292 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13293 ;; #(
13294 no|'')
13295 ;; #(
13296 *)
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13298 $as_echo "$with_sysroot" >&6; }
13299 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13300 ;;
13301 esac
13302
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13304 $as_echo "${lt_sysroot:-no}" >&6; }
13305
13306
13307
13308
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13311 $as_echo_n "checking for a working dd... " >&6; }
13312 if ${ac_cv_path_lt_DD+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 printf 0123456789abcdef0123456789abcdef >conftest.i
13316 cat conftest.i conftest.i >conftest2.i
13317 : ${lt_DD:=$DD}
13318 if test -z "$lt_DD"; then
13319 ac_path_lt_DD_found=false
13320 # Loop through the user's path and test for each of PROGNAME-LIST
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13323 do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_prog in dd; do
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13329 as_fn_executable_p "$ac_path_lt_DD" || continue
13330 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13331 cmp -s conftest.i conftest.out \
13332 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13333 fi
13334 $ac_path_lt_DD_found && break 3
13335 done
13336 done
13337 done
13338 IFS=$as_save_IFS
13339 if test -z "$ac_cv_path_lt_DD"; then
13340 :
13341 fi
13342 else
13343 ac_cv_path_lt_DD=$lt_DD
13344 fi
13345
13346 rm -f conftest.i conftest2.i conftest.out
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13349 $as_echo "$ac_cv_path_lt_DD" >&6; }
13350
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13353 $as_echo_n "checking how to truncate binary pipes... " >&6; }
13354 if ${lt_cv_truncate_bin+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 printf 0123456789abcdef0123456789abcdef >conftest.i
13358 cat conftest.i conftest.i >conftest2.i
13359 lt_cv_truncate_bin=
13360 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13361 cmp -s conftest.i conftest.out \
13362 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13363 fi
13364 rm -f conftest.i conftest2.i conftest.out
13365 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13366 fi
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13368 $as_echo "$lt_cv_truncate_bin" >&6; }
13369
13370
13371
13372
13373
13374
13375
13376 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13377 func_cc_basename ()
13378 {
13379 for cc_temp in $*""; do
13380 case $cc_temp in
13381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13383 \-*) ;;
13384 *) break;;
13385 esac
13386 done
13387 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13388 }
13389
13390 # Check whether --enable-libtool-lock was given.
13391 if test "${enable_libtool_lock+set}" = set; then :
13392 enableval=$enable_libtool_lock;
13393 fi
13394
13395 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13396
13397 # Some flags need to be propagated to the compiler or linker for good
13398 # libtool support.
13399 case $host in
13400 ia64-*-hpux*)
13401 # Find out what ABI is being produced by ac_compile, and set mode
13402 # options accordingly.
13403 echo 'int i;' > conftest.$ac_ext
13404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13405 (eval $ac_compile) 2>&5
13406 ac_status=$?
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408 test $ac_status = 0; }; then
13409 case `/usr/bin/file conftest.$ac_objext` in
13410 *ELF-32*)
13411 HPUX_IA64_MODE=32
13412 ;;
13413 *ELF-64*)
13414 HPUX_IA64_MODE=64
13415 ;;
13416 esac
13417 fi
13418 rm -rf conftest*
13419 ;;
13420 *-*-irix6*)
13421 # Find out what ABI is being produced by ac_compile, and set linker
13422 # options accordingly.
13423 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13425 (eval $ac_compile) 2>&5
13426 ac_status=$?
13427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; }; then
13429 if test yes = "$lt_cv_prog_gnu_ld"; then
13430 case `/usr/bin/file conftest.$ac_objext` in
13431 *32-bit*)
13432 LD="${LD-ld} -melf32bsmip"
13433 ;;
13434 *N32*)
13435 LD="${LD-ld} -melf32bmipn32"
13436 ;;
13437 *64-bit*)
13438 LD="${LD-ld} -melf64bmip"
13439 ;;
13440 esac
13441 else
13442 case `/usr/bin/file conftest.$ac_objext` in
13443 *32-bit*)
13444 LD="${LD-ld} -32"
13445 ;;
13446 *N32*)
13447 LD="${LD-ld} -n32"
13448 ;;
13449 *64-bit*)
13450 LD="${LD-ld} -64"
13451 ;;
13452 esac
13453 fi
13454 fi
13455 rm -rf conftest*
13456 ;;
13457
13458 mips64*-*linux*)
13459 # Find out what ABI is being produced by ac_compile, and set linker
13460 # options accordingly.
13461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13466 test $ac_status = 0; }; then
13467 emul=elf
13468 case `/usr/bin/file conftest.$ac_objext` in
13469 *32-bit*)
13470 emul="${emul}32"
13471 ;;
13472 *64-bit*)
13473 emul="${emul}64"
13474 ;;
13475 esac
13476 case `/usr/bin/file conftest.$ac_objext` in
13477 *MSB*)
13478 emul="${emul}btsmip"
13479 ;;
13480 *LSB*)
13481 emul="${emul}ltsmip"
13482 ;;
13483 esac
13484 case `/usr/bin/file conftest.$ac_objext` in
13485 *N32*)
13486 emul="${emul}n32"
13487 ;;
13488 esac
13489 LD="${LD-ld} -m $emul"
13490 fi
13491 rm -rf conftest*
13492 ;;
13493
13494 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13495 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13496 # Find out what ABI is being produced by ac_compile, and set linker
13497 # options accordingly. Note that the listed cases only cover the
13498 # situations where additional linker options are needed (such as when
13499 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13500 # vice versa); the common cases where no linker options are needed do
13501 # not appear in the list.
13502 echo 'int i;' > conftest.$ac_ext
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13504 (eval $ac_compile) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 case `/usr/bin/file conftest.o` in
13509 *32-bit*)
13510 case $host in
13511 x86_64-*kfreebsd*-gnu)
13512 LD="${LD-ld} -m elf_i386_fbsd"
13513 ;;
13514 x86_64-*linux*)
13515 case `/usr/bin/file conftest.o` in
13516 *x86-64*)
13517 LD="${LD-ld} -m elf32_x86_64"
13518 ;;
13519 *)
13520 LD="${LD-ld} -m elf_i386"
13521 ;;
13522 esac
13523 ;;
13524 powerpc64le-*linux*)
13525 LD="${LD-ld} -m elf32lppclinux"
13526 ;;
13527 powerpc64-*linux*)
13528 LD="${LD-ld} -m elf32ppclinux"
13529 ;;
13530 s390x-*linux*)
13531 LD="${LD-ld} -m elf_s390"
13532 ;;
13533 sparc64-*linux*)
13534 LD="${LD-ld} -m elf32_sparc"
13535 ;;
13536 esac
13537 ;;
13538 *64-bit*)
13539 case $host in
13540 x86_64-*kfreebsd*-gnu)
13541 LD="${LD-ld} -m elf_x86_64_fbsd"
13542 ;;
13543 x86_64-*linux*)
13544 LD="${LD-ld} -m elf_x86_64"
13545 ;;
13546 powerpcle-*linux*)
13547 LD="${LD-ld} -m elf64lppc"
13548 ;;
13549 powerpc-*linux*)
13550 LD="${LD-ld} -m elf64ppc"
13551 ;;
13552 s390*-*linux*|s390*-*tpf*)
13553 LD="${LD-ld} -m elf64_s390"
13554 ;;
13555 sparc*-*linux*)
13556 LD="${LD-ld} -m elf64_sparc"
13557 ;;
13558 esac
13559 ;;
13560 esac
13561 fi
13562 rm -rf conftest*
13563 ;;
13564
13565 *-*-sco3.2v5*)
13566 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13567 SAVE_CFLAGS=$CFLAGS
13568 CFLAGS="$CFLAGS -belf"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13570 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13571 if ${lt_cv_cc_needs_belf+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 ac_ext=c
13575 ac_cpp='$CPP $CPPFLAGS'
13576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582
13583 int
13584 main ()
13585 {
13586
13587 ;
13588 return 0;
13589 }
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 lt_cv_cc_needs_belf=yes
13593 else
13594 lt_cv_cc_needs_belf=no
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 ac_ext=c
13599 ac_cpp='$CPP $CPPFLAGS'
13600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13603
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13606 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13607 if test yes != "$lt_cv_cc_needs_belf"; then
13608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13609 CFLAGS=$SAVE_CFLAGS
13610 fi
13611 ;;
13612 *-*solaris*)
13613 # Find out what ABI is being produced by ac_compile, and set linker
13614 # options accordingly.
13615 echo 'int i;' > conftest.$ac_ext
13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13617 (eval $ac_compile) 2>&5
13618 ac_status=$?
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; }; then
13621 case `/usr/bin/file conftest.o` in
13622 *64-bit*)
13623 case $lt_cv_prog_gnu_ld in
13624 yes*)
13625 case $host in
13626 i?86-*-solaris*|x86_64-*-solaris*)
13627 LD="${LD-ld} -m elf_x86_64"
13628 ;;
13629 sparc*-*-solaris*)
13630 LD="${LD-ld} -m elf64_sparc"
13631 ;;
13632 esac
13633 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13634 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13635 LD=${LD-ld}_sol2
13636 fi
13637 ;;
13638 *)
13639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13640 LD="${LD-ld} -64"
13641 fi
13642 ;;
13643 esac
13644 ;;
13645 esac
13646 fi
13647 rm -rf conftest*
13648 ;;
13649 esac
13650
13651 need_locks=$enable_libtool_lock
13652
13653 if test -n "$ac_tool_prefix"; then
13654 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13655 set dummy ${ac_tool_prefix}mt; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 if test -n "$MANIFEST_TOOL"; then
13662 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13663 else
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13666 do
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13671 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13674 fi
13675 done
13676 done
13677 IFS=$as_save_IFS
13678
13679 fi
13680 fi
13681 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13682 if test -n "$MANIFEST_TOOL"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13684 $as_echo "$MANIFEST_TOOL" >&6; }
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13688 fi
13689
13690
13691 fi
13692 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13693 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13694 # Extract the first word of "mt", so it can be a program name with args.
13695 set dummy mt; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 if test -n "$ac_ct_MANIFEST_TOOL"; then
13702 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13711 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13714 fi
13715 done
13716 done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13722 if test -n "$ac_ct_MANIFEST_TOOL"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13724 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 fi
13729
13730 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13731 MANIFEST_TOOL=":"
13732 else
13733 case $cross_compiling:$ac_tool_warned in
13734 yes:)
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13737 ac_tool_warned=yes ;;
13738 esac
13739 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13740 fi
13741 else
13742 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13743 fi
13744
13745 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13747 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13748 if ${lt_cv_path_mainfest_tool+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 lt_cv_path_mainfest_tool=no
13752 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13753 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13754 cat conftest.err >&5
13755 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13756 lt_cv_path_mainfest_tool=yes
13757 fi
13758 rm -f conftest*
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13761 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13762 if test yes != "$lt_cv_path_mainfest_tool"; then
13763 MANIFEST_TOOL=:
13764 fi
13765
13766
13767
13768
13769
13770
13771 case $host_os in
13772 rhapsody* | darwin*)
13773 if test -n "$ac_tool_prefix"; then
13774 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13775 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$DSYMUTIL"; then
13782 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13794 fi
13795 done
13796 done
13797 IFS=$as_save_IFS
13798
13799 fi
13800 fi
13801 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13802 if test -n "$DSYMUTIL"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13804 $as_echo "$DSYMUTIL" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809
13810
13811 fi
13812 if test -z "$ac_cv_prog_DSYMUTIL"; then
13813 ac_ct_DSYMUTIL=$DSYMUTIL
13814 # Extract the first word of "dsymutil", so it can be a program name with args.
13815 set dummy dsymutil; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$ac_ct_DSYMUTIL"; then
13822 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13842 if test -n "$ac_ct_DSYMUTIL"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13844 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850 if test "x$ac_ct_DSYMUTIL" = x; then
13851 DSYMUTIL=":"
13852 else
13853 case $cross_compiling:$ac_tool_warned in
13854 yes:)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859 DSYMUTIL=$ac_ct_DSYMUTIL
13860 fi
13861 else
13862 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13863 fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869 $as_echo_n "checking for $ac_word... " >&6; }
13870 if ${ac_cv_prog_NMEDIT+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -n "$NMEDIT"; then
13874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13878 do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887 done
13888 done
13889 IFS=$as_save_IFS
13890
13891 fi
13892 fi
13893 NMEDIT=$ac_cv_prog_NMEDIT
13894 if test -n "$NMEDIT"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13896 $as_echo "$NMEDIT" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13900 fi
13901
13902
13903 fi
13904 if test -z "$ac_cv_prog_NMEDIT"; then
13905 ac_ct_NMEDIT=$NMEDIT
13906 # Extract the first word of "nmedit", so it can be a program name with args.
13907 set dummy nmedit; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$ac_ct_NMEDIT"; then
13914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13923 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927 done
13928 done
13929 IFS=$as_save_IFS
13930
13931 fi
13932 fi
13933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13934 if test -n "$ac_ct_NMEDIT"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13936 $as_echo "$ac_ct_NMEDIT" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13940 fi
13941
13942 if test "x$ac_ct_NMEDIT" = x; then
13943 NMEDIT=":"
13944 else
13945 case $cross_compiling:$ac_tool_warned in
13946 yes:)
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13949 ac_tool_warned=yes ;;
13950 esac
13951 NMEDIT=$ac_ct_NMEDIT
13952 fi
13953 else
13954 NMEDIT="$ac_cv_prog_NMEDIT"
13955 fi
13956
13957 if test -n "$ac_tool_prefix"; then
13958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13959 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13961 $as_echo_n "checking for $ac_word... " >&6; }
13962 if ${ac_cv_prog_LIPO+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 if test -n "$LIPO"; then
13966 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13967 else
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $PATH
13970 do
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13975 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 break 2
13978 fi
13979 done
13980 done
13981 IFS=$as_save_IFS
13982
13983 fi
13984 fi
13985 LIPO=$ac_cv_prog_LIPO
13986 if test -n "$LIPO"; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13988 $as_echo "$LIPO" >&6; }
13989 else
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 $as_echo "no" >&6; }
13992 fi
13993
13994
13995 fi
13996 if test -z "$ac_cv_prog_LIPO"; then
13997 ac_ct_LIPO=$LIPO
13998 # Extract the first word of "lipo", so it can be a program name with args.
13999 set dummy lipo; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001 $as_echo_n "checking for $ac_word... " >&6; }
14002 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 if test -n "$ac_ct_LIPO"; then
14006 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14007 else
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14010 do
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015 ac_cv_prog_ac_ct_LIPO="lipo"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14018 fi
14019 done
14020 done
14021 IFS=$as_save_IFS
14022
14023 fi
14024 fi
14025 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14026 if test -n "$ac_ct_LIPO"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14028 $as_echo "$ac_ct_LIPO" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14032 fi
14033
14034 if test "x$ac_ct_LIPO" = x; then
14035 LIPO=":"
14036 else
14037 case $cross_compiling:$ac_tool_warned in
14038 yes:)
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14041 ac_tool_warned=yes ;;
14042 esac
14043 LIPO=$ac_ct_LIPO
14044 fi
14045 else
14046 LIPO="$ac_cv_prog_LIPO"
14047 fi
14048
14049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14051 set dummy ${ac_tool_prefix}otool; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if ${ac_cv_prog_OTOOL+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 if test -n "$OTOOL"; then
14058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14059 else
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14062 do
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14067 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14070 fi
14071 done
14072 done
14073 IFS=$as_save_IFS
14074
14075 fi
14076 fi
14077 OTOOL=$ac_cv_prog_OTOOL
14078 if test -n "$OTOOL"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14080 $as_echo "$OTOOL" >&6; }
14081 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14084 fi
14085
14086
14087 fi
14088 if test -z "$ac_cv_prog_OTOOL"; then
14089 ac_ct_OTOOL=$OTOOL
14090 # Extract the first word of "otool", so it can be a program name with args.
14091 set dummy otool; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 if test -n "$ac_ct_OTOOL"; then
14098 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14102 do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_prog_ac_ct_OTOOL="otool"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111 done
14112 done
14113 IFS=$as_save_IFS
14114
14115 fi
14116 fi
14117 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14118 if test -n "$ac_ct_OTOOL"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14120 $as_echo "$ac_ct_OTOOL" >&6; }
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14124 fi
14125
14126 if test "x$ac_ct_OTOOL" = x; then
14127 OTOOL=":"
14128 else
14129 case $cross_compiling:$ac_tool_warned in
14130 yes:)
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14133 ac_tool_warned=yes ;;
14134 esac
14135 OTOOL=$ac_ct_OTOOL
14136 fi
14137 else
14138 OTOOL="$ac_cv_prog_OTOOL"
14139 fi
14140
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14143 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_OTOOL64+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$OTOOL64"; then
14150 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14154 do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163 done
14164 done
14165 IFS=$as_save_IFS
14166
14167 fi
14168 fi
14169 OTOOL64=$ac_cv_prog_OTOOL64
14170 if test -n "$OTOOL64"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14172 $as_echo "$OTOOL64" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177
14178
14179 fi
14180 if test -z "$ac_cv_prog_OTOOL64"; then
14181 ac_ct_OTOOL64=$OTOOL64
14182 # Extract the first word of "otool64", so it can be a program name with args.
14183 set dummy otool64; ac_word=$2
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185 $as_echo_n "checking for $ac_word... " >&6; }
14186 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 if test -n "$ac_ct_OTOOL64"; then
14190 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14191 else
14192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193 for as_dir in $PATH
14194 do
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
14198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14199 ac_cv_prog_ac_ct_OTOOL64="otool64"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14202 fi
14203 done
14204 done
14205 IFS=$as_save_IFS
14206
14207 fi
14208 fi
14209 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14210 if test -n "$ac_ct_OTOOL64"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14212 $as_echo "$ac_ct_OTOOL64" >&6; }
14213 else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215 $as_echo "no" >&6; }
14216 fi
14217
14218 if test "x$ac_ct_OTOOL64" = x; then
14219 OTOOL64=":"
14220 else
14221 case $cross_compiling:$ac_tool_warned in
14222 yes:)
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225 ac_tool_warned=yes ;;
14226 esac
14227 OTOOL64=$ac_ct_OTOOL64
14228 fi
14229 else
14230 OTOOL64="$ac_cv_prog_OTOOL64"
14231 fi
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14260 $as_echo_n "checking for -single_module linker flag... " >&6; }
14261 if ${lt_cv_apple_cc_single_mod+:} false; then :
14262 $as_echo_n "(cached) " >&6
14263 else
14264 lt_cv_apple_cc_single_mod=no
14265 if test -z "$LT_MULTI_MODULE"; then
14266 # By default we will add the -single_module flag. You can override
14267 # by either setting the environment variable LT_MULTI_MODULE
14268 # non-empty at configure time, or by adding -multi_module to the
14269 # link flags.
14270 rm -rf libconftest.dylib*
14271 echo "int foo(void){return 1;}" > conftest.c
14272 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14273 -dynamiclib -Wl,-single_module conftest.c" >&5
14274 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14275 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14276 _lt_result=$?
14277 # If there is a non-empty error log, and "single_module"
14278 # appears in it, assume the flag caused a linker warning
14279 if test -s conftest.err && $GREP single_module conftest.err; then
14280 cat conftest.err >&5
14281 # Otherwise, if the output was created with a 0 exit code from
14282 # the compiler, it worked.
14283 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14284 lt_cv_apple_cc_single_mod=yes
14285 else
14286 cat conftest.err >&5
14287 fi
14288 rm -rf libconftest.dylib*
14289 rm -f conftest.*
14290 fi
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14293 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14296 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14297 if ${lt_cv_ld_exported_symbols_list+:} false; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 lt_cv_ld_exported_symbols_list=no
14301 save_LDFLAGS=$LDFLAGS
14302 echo "_main" > conftest.sym
14303 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306
14307 int
14308 main ()
14309 {
14310
14311 ;
14312 return 0;
14313 }
14314 _ACEOF
14315 if ac_fn_c_try_link "$LINENO"; then :
14316 lt_cv_ld_exported_symbols_list=yes
14317 else
14318 lt_cv_ld_exported_symbols_list=no
14319 fi
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 LDFLAGS=$save_LDFLAGS
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14326 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14329 $as_echo_n "checking for -force_load linker flag... " >&6; }
14330 if ${lt_cv_ld_force_load+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 lt_cv_ld_force_load=no
14334 cat > conftest.c << _LT_EOF
14335 int forced_loaded() { return 2;}
14336 _LT_EOF
14337 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14338 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14339 echo "$AR cru libconftest.a conftest.o" >&5
14340 $AR cru libconftest.a conftest.o 2>&5
14341 echo "$RANLIB libconftest.a" >&5
14342 $RANLIB libconftest.a 2>&5
14343 cat > conftest.c << _LT_EOF
14344 int main() { return 0;}
14345 _LT_EOF
14346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14348 _lt_result=$?
14349 if test -s conftest.err && $GREP force_load conftest.err; then
14350 cat conftest.err >&5
14351 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14352 lt_cv_ld_force_load=yes
14353 else
14354 cat conftest.err >&5
14355 fi
14356 rm -f conftest.err libconftest.a conftest conftest.c
14357 rm -rf conftest.dSYM
14358
14359 fi
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14361 $as_echo "$lt_cv_ld_force_load" >&6; }
14362 case $host_os in
14363 rhapsody* | darwin1.[012])
14364 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14365 darwin1.*)
14366 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14367 darwin*) # darwin 5.x on
14368 # if running on 10.5 or later, the deployment target defaults
14369 # to the OS version, if on x86, and 10.4, the deployment
14370 # target defaults to 10.4. Don't you love it?
14371 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14372 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14373 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14374 10.[012][,.]*)
14375 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14376 10.*)
14377 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14378 esac
14379 ;;
14380 esac
14381 if test yes = "$lt_cv_apple_cc_single_mod"; then
14382 _lt_dar_single_mod='$single_module'
14383 fi
14384 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14385 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14386 else
14387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14388 fi
14389 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14390 _lt_dsymutil='~$DSYMUTIL $lib || :'
14391 else
14392 _lt_dsymutil=
14393 fi
14394 ;;
14395 esac
14396
14397 # func_munge_path_list VARIABLE PATH
14398 # -----------------------------------
14399 # VARIABLE is name of variable containing _space_ separated list of
14400 # directories to be munged by the contents of PATH, which is string
14401 # having a format:
14402 # "DIR[:DIR]:"
14403 # string "DIR[ DIR]" will be prepended to VARIABLE
14404 # ":DIR[:DIR]"
14405 # string "DIR[ DIR]" will be appended to VARIABLE
14406 # "DIRP[:DIRP]::[DIRA:]DIRA"
14407 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14408 # "DIRA[ DIRA]" will be appended to VARIABLE
14409 # "DIR[:DIR]"
14410 # VARIABLE will be replaced by "DIR[ DIR]"
14411 func_munge_path_list ()
14412 {
14413 case x$2 in
14414 x)
14415 ;;
14416 *:)
14417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14418 ;;
14419 x:*)
14420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14421 ;;
14422 *::*)
14423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14425 ;;
14426 *)
14427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14428 ;;
14429 esac
14430 }
14431
14432 for ac_header in dlfcn.h
14433 do :
14434 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14435 "
14436 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_DLFCN_H 1
14439 _ACEOF
14440
14441 fi
14442
14443 done
14444
14445
14446
14447
14448
14449 # Set options
14450
14451
14452
14453 enable_dlopen=no
14454
14455
14456 enable_win32_dll=no
14457
14458
14459 # Check whether --enable-shared was given.
14460 if test "${enable_shared+set}" = set; then :
14461 enableval=$enable_shared; p=${PACKAGE-default}
14462 case $enableval in
14463 yes) enable_shared=yes ;;
14464 no) enable_shared=no ;;
14465 *)
14466 enable_shared=no
14467 # Look at the argument we got. We use all the common list separators.
14468 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14469 for pkg in $enableval; do
14470 IFS=$lt_save_ifs
14471 if test "X$pkg" = "X$p"; then
14472 enable_shared=yes
14473 fi
14474 done
14475 IFS=$lt_save_ifs
14476 ;;
14477 esac
14478 else
14479 enable_shared=yes
14480 fi
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492 # Check whether --with-pic was given.
14493 if test "${with_pic+set}" = set; then :
14494 withval=$with_pic; lt_p=${PACKAGE-default}
14495 case $withval in
14496 yes|no) pic_mode=$withval ;;
14497 *)
14498 pic_mode=default
14499 # Look at the argument we got. We use all the common list separators.
14500 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14501 for lt_pkg in $withval; do
14502 IFS=$lt_save_ifs
14503 if test "X$lt_pkg" = "X$lt_p"; then
14504 pic_mode=yes
14505 fi
14506 done
14507 IFS=$lt_save_ifs
14508 ;;
14509 esac
14510 else
14511 pic_mode=default
14512 fi
14513
14514
14515
14516
14517
14518
14519
14520
14521 # Check whether --enable-fast-install was given.
14522 if test "${enable_fast_install+set}" = set; then :
14523 enableval=$enable_fast_install; p=${PACKAGE-default}
14524 case $enableval in
14525 yes) enable_fast_install=yes ;;
14526 no) enable_fast_install=no ;;
14527 *)
14528 enable_fast_install=no
14529 # Look at the argument we got. We use all the common list separators.
14530 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14531 for pkg in $enableval; do
14532 IFS=$lt_save_ifs
14533 if test "X$pkg" = "X$p"; then
14534 enable_fast_install=yes
14535 fi
14536 done
14537 IFS=$lt_save_ifs
14538 ;;
14539 esac
14540 else
14541 enable_fast_install=yes
14542 fi
14543
14544
14545
14546
14547
14548
14549
14550
14551 shared_archive_member_spec=
14552 case $host,$enable_shared in
14553 power*-*-aix[5-9]*,yes)
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14555 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14556
14557 # Check whether --with-aix-soname was given.
14558 if test "${with_aix_soname+set}" = set; then :
14559 withval=$with_aix_soname; case $withval in
14560 aix|svr4|both)
14561 ;;
14562 *)
14563 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14564 ;;
14565 esac
14566 lt_cv_with_aix_soname=$with_aix_soname
14567 else
14568 if ${lt_cv_with_aix_soname+:} false; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 lt_cv_with_aix_soname=aix
14572 fi
14573
14574 with_aix_soname=$lt_cv_with_aix_soname
14575 fi
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14578 $as_echo "$with_aix_soname" >&6; }
14579 if test aix != "$with_aix_soname"; then
14580 # For the AIX way of multilib, we name the shared archive member
14581 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14582 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14583 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14584 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14585 if test 64 = "${OBJECT_MODE-32}"; then
14586 shared_archive_member_spec=shr_64
14587 else
14588 shared_archive_member_spec=shr
14589 fi
14590 fi
14591 ;;
14592 *)
14593 with_aix_soname=aix
14594 ;;
14595 esac
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606 # This can be used to rebuild libtool when needed
14607 LIBTOOL_DEPS=$ltmain
14608
14609 # Always use our own libtool.
14610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641 test -z "$LN_S" && LN_S="ln -s"
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656 if test -n "${ZSH_VERSION+set}"; then
14657 setopt NO_GLOB_SUBST
14658 fi
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14661 $as_echo_n "checking for objdir... " >&6; }
14662 if ${lt_cv_objdir+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 rm -f .libs 2>/dev/null
14666 mkdir .libs 2>/dev/null
14667 if test -d .libs; then
14668 lt_cv_objdir=.libs
14669 else
14670 # MS-DOS does not allow filenames that begin with a dot.
14671 lt_cv_objdir=_libs
14672 fi
14673 rmdir .libs 2>/dev/null
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14676 $as_echo "$lt_cv_objdir" >&6; }
14677 objdir=$lt_cv_objdir
14678
14679
14680
14681
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define LT_OBJDIR "$lt_cv_objdir/"
14685 _ACEOF
14686
14687
14688
14689
14690 case $host_os in
14691 aix3*)
14692 # AIX sometimes has problems with the GCC collect2 program. For some
14693 # reason, if we set the COLLECT_NAMES environment variable, the problems
14694 # vanish in a puff of smoke.
14695 if test set != "${COLLECT_NAMES+set}"; then
14696 COLLECT_NAMES=
14697 export COLLECT_NAMES
14698 fi
14699 ;;
14700 esac
14701
14702 # Global variables:
14703 ofile=libtool
14704 can_build_shared=yes
14705
14706 # All known linkers require a '.a' archive for static linking (except MSVC,
14707 # which needs '.lib').
14708 libext=a
14709
14710 with_gnu_ld=$lt_cv_prog_gnu_ld
14711
14712 old_CC=$CC
14713 old_CFLAGS=$CFLAGS
14714
14715 # Set sane defaults for various variables
14716 test -z "$CC" && CC=cc
14717 test -z "$LTCC" && LTCC=$CC
14718 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14719 test -z "$LD" && LD=ld
14720 test -z "$ac_objext" && ac_objext=o
14721
14722 func_cc_basename $compiler
14723 cc_basename=$func_cc_basename_result
14724
14725
14726 # Only perform the check for file, if the check method requires it
14727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14728 case $deplibs_check_method in
14729 file_magic*)
14730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14732 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14733 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 case $MAGIC_CMD in
14737 [\\/*] | ?:[\\/]*)
14738 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14739 ;;
14740 *)
14741 lt_save_MAGIC_CMD=$MAGIC_CMD
14742 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14744 for ac_dir in $ac_dummy; do
14745 IFS=$lt_save_ifs
14746 test -z "$ac_dir" && ac_dir=.
14747 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14748 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14749 if test -n "$file_magic_test_file"; then
14750 case $deplibs_check_method in
14751 "file_magic "*)
14752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14753 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14755 $EGREP "$file_magic_regex" > /dev/null; then
14756 :
14757 else
14758 cat <<_LT_EOF 1>&2
14759
14760 *** Warning: the command libtool uses to detect shared libraries,
14761 *** $file_magic_cmd, produces output that libtool cannot recognize.
14762 *** The result is that libtool may fail to recognize shared libraries
14763 *** as such. This will affect the creation of libtool libraries that
14764 *** depend on shared libraries, but programs linked with such libtool
14765 *** libraries will work regardless of this problem. Nevertheless, you
14766 *** may want to report the problem to your system manager and/or to
14767 *** bug-libtool (at] gnu.org
14768
14769 _LT_EOF
14770 fi ;;
14771 esac
14772 fi
14773 break
14774 fi
14775 done
14776 IFS=$lt_save_ifs
14777 MAGIC_CMD=$lt_save_MAGIC_CMD
14778 ;;
14779 esac
14780 fi
14781
14782 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14783 if test -n "$MAGIC_CMD"; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14785 $as_echo "$MAGIC_CMD" >&6; }
14786 else
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14788 $as_echo "no" >&6; }
14789 fi
14790
14791
14792
14793
14794
14795 if test -z "$lt_cv_path_MAGIC_CMD"; then
14796 if test -n "$ac_tool_prefix"; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14798 $as_echo_n "checking for file... " >&6; }
14799 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 case $MAGIC_CMD in
14803 [\\/*] | ?:[\\/]*)
14804 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14805 ;;
14806 *)
14807 lt_save_MAGIC_CMD=$MAGIC_CMD
14808 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14810 for ac_dir in $ac_dummy; do
14811 IFS=$lt_save_ifs
14812 test -z "$ac_dir" && ac_dir=.
14813 if test -f "$ac_dir/file"; then
14814 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14815 if test -n "$file_magic_test_file"; then
14816 case $deplibs_check_method in
14817 "file_magic "*)
14818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14819 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14821 $EGREP "$file_magic_regex" > /dev/null; then
14822 :
14823 else
14824 cat <<_LT_EOF 1>&2
14825
14826 *** Warning: the command libtool uses to detect shared libraries,
14827 *** $file_magic_cmd, produces output that libtool cannot recognize.
14828 *** The result is that libtool may fail to recognize shared libraries
14829 *** as such. This will affect the creation of libtool libraries that
14830 *** depend on shared libraries, but programs linked with such libtool
14831 *** libraries will work regardless of this problem. Nevertheless, you
14832 *** may want to report the problem to your system manager and/or to
14833 *** bug-libtool (at] gnu.org
14834
14835 _LT_EOF
14836 fi ;;
14837 esac
14838 fi
14839 break
14840 fi
14841 done
14842 IFS=$lt_save_ifs
14843 MAGIC_CMD=$lt_save_MAGIC_CMD
14844 ;;
14845 esac
14846 fi
14847
14848 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14849 if test -n "$MAGIC_CMD"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14851 $as_echo "$MAGIC_CMD" >&6; }
14852 else
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854 $as_echo "no" >&6; }
14855 fi
14856
14857
14858 else
14859 MAGIC_CMD=:
14860 fi
14861 fi
14862
14863 fi
14864 ;;
14865 esac
14866
14867 # Use C for the default configuration in the libtool script
14868
14869 lt_save_CC=$CC
14870 ac_ext=c
14871 ac_cpp='$CPP $CPPFLAGS'
14872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14875
14876
14877 # Source file extension for C test sources.
14878 ac_ext=c
14879
14880 # Object file extension for compiled C test sources.
14881 objext=o
14882 objext=$objext
14883
14884 # Code to be used in simple compile tests
14885 lt_simple_compile_test_code="int some_variable = 0;"
14886
14887 # Code to be used in simple link tests
14888 lt_simple_link_test_code='int main(){return(0);}'
14889
14890
14891
14892
14893
14894
14895
14896 # If no C compiler was specified, use CC.
14897 LTCC=${LTCC-"$CC"}
14898
14899 # If no C compiler flags were specified, use CFLAGS.
14900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14901
14902 # Allow CC to be a program name with arguments.
14903 compiler=$CC
14904
14905 # Save the default compiler, since it gets overwritten when the other
14906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14907 compiler_DEFAULT=$CC
14908
14909 # save warnings/boilerplate of simple test code
14910 ac_outfile=conftest.$ac_objext
14911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913 _lt_compiler_boilerplate=`cat conftest.err`
14914 $RM conftest*
14915
14916 ac_outfile=conftest.$ac_objext
14917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14919 _lt_linker_boilerplate=`cat conftest.err`
14920 $RM -r conftest*
14921
14922
14923 if test -n "$compiler"; then
14924
14925 lt_prog_compiler_no_builtin_flag=
14926
14927 if test yes = "$GCC"; then
14928 case $cc_basename in
14929 nvcc*)
14930 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14931 *)
14932 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14933 esac
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14936 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14937 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 lt_cv_prog_compiler_rtti_exceptions=no
14941 ac_outfile=conftest.$ac_objext
14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14943 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14944 # Insert the option either (1) after the last *FLAGS variable, or
14945 # (2) before a word containing "conftest.", or (3) at the end.
14946 # Note that $ac_compile itself does not contain backslashes and begins
14947 # with a dollar sign (not a hyphen), so the echo should work correctly.
14948 # The option is referenced via a variable to avoid confusing sed.
14949 lt_compile=`echo "$ac_compile" | $SED \
14950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952 -e 's:$: $lt_compiler_flag:'`
14953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14954 (eval "$lt_compile" 2>conftest.err)
14955 ac_status=$?
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 if (exit $ac_status) && test -s "$ac_outfile"; then
14959 # The compiler can only warn and ignore the option if not recognized
14960 # So say no if there are warnings other than the usual output.
14961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14964 lt_cv_prog_compiler_rtti_exceptions=yes
14965 fi
14966 fi
14967 $RM conftest*
14968
14969 fi
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14971 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14972
14973 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14974 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14975 else
14976 :
14977 fi
14978
14979 fi
14980
14981
14982
14983
14984
14985
14986 lt_prog_compiler_wl=
14987 lt_prog_compiler_pic=
14988 lt_prog_compiler_static=
14989
14990
14991 if test yes = "$GCC"; then
14992 lt_prog_compiler_wl='-Wl,'
14993 lt_prog_compiler_static='-static'
14994
14995 case $host_os in
14996 aix*)
14997 # All AIX code is PIC.
14998 if test ia64 = "$host_cpu"; then
14999 # AIX 5 now supports IA64 processor
15000 lt_prog_compiler_static='-Bstatic'
15001 fi
15002 lt_prog_compiler_pic='-fPIC'
15003 ;;
15004
15005 amigaos*)
15006 case $host_cpu in
15007 powerpc)
15008 # see comment about AmigaOS4 .so support
15009 lt_prog_compiler_pic='-fPIC'
15010 ;;
15011 m68k)
15012 # FIXME: we need at least 68020 code to build shared libraries, but
15013 # adding the '-m68020' flag to GCC prevents building anything better,
15014 # like '-m68040'.
15015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15016 ;;
15017 esac
15018 ;;
15019
15020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15021 # PIC is the default for these OSes.
15022 ;;
15023
15024 mingw* | cygwin* | pw32* | os2* | cegcc*)
15025 # This hack is so that the source file can tell whether it is being
15026 # built for inclusion in a dll (and should export symbols for example).
15027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15028 # (--disable-auto-import) libraries
15029 lt_prog_compiler_pic='-DDLL_EXPORT'
15030 case $host_os in
15031 os2*)
15032 lt_prog_compiler_static='$wl-static'
15033 ;;
15034 esac
15035 ;;
15036
15037 darwin* | rhapsody*)
15038 # PIC is the default on this platform
15039 # Common symbols not allowed in MH_DYLIB files
15040 lt_prog_compiler_pic='-fno-common'
15041 ;;
15042
15043 haiku*)
15044 # PIC is the default for Haiku.
15045 # The "-static" flag exists, but is broken.
15046 lt_prog_compiler_static=
15047 ;;
15048
15049 hpux*)
15050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15052 # sets the default TLS model and affects inlining.
15053 case $host_cpu in
15054 hppa*64*)
15055 # +Z the default
15056 ;;
15057 *)
15058 lt_prog_compiler_pic='-fPIC'
15059 ;;
15060 esac
15061 ;;
15062
15063 interix[3-9]*)
15064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15065 # Instead, we relocate shared libraries at runtime.
15066 ;;
15067
15068 msdosdjgpp*)
15069 # Just because we use GCC doesn't mean we suddenly get shared libraries
15070 # on systems that don't support them.
15071 lt_prog_compiler_can_build_shared=no
15072 enable_shared=no
15073 ;;
15074
15075 *nto* | *qnx*)
15076 # QNX uses GNU C++, but need to define -shared option too, otherwise
15077 # it will coredump.
15078 lt_prog_compiler_pic='-fPIC -shared'
15079 ;;
15080
15081 sysv4*MP*)
15082 if test -d /usr/nec; then
15083 lt_prog_compiler_pic=-Kconform_pic
15084 fi
15085 ;;
15086
15087 *)
15088 lt_prog_compiler_pic='-fPIC'
15089 ;;
15090 esac
15091
15092 case $cc_basename in
15093 nvcc*) # Cuda Compiler Driver 2.2
15094 lt_prog_compiler_wl='-Xlinker '
15095 if test -n "$lt_prog_compiler_pic"; then
15096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15097 fi
15098 ;;
15099 esac
15100 else
15101 # PORTME Check for flag to pass linker flags through the system compiler.
15102 case $host_os in
15103 aix*)
15104 lt_prog_compiler_wl='-Wl,'
15105 if test ia64 = "$host_cpu"; then
15106 # AIX 5 now supports IA64 processor
15107 lt_prog_compiler_static='-Bstatic'
15108 else
15109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15110 fi
15111 ;;
15112
15113 darwin* | rhapsody*)
15114 # PIC is the default on this platform
15115 # Common symbols not allowed in MH_DYLIB files
15116 lt_prog_compiler_pic='-fno-common'
15117 case $cc_basename in
15118 nagfor*)
15119 # NAG Fortran compiler
15120 lt_prog_compiler_wl='-Wl,-Wl,,'
15121 lt_prog_compiler_pic='-PIC'
15122 lt_prog_compiler_static='-Bstatic'
15123 ;;
15124 esac
15125 ;;
15126
15127 mingw* | cygwin* | pw32* | os2* | cegcc*)
15128 # This hack is so that the source file can tell whether it is being
15129 # built for inclusion in a dll (and should export symbols for example).
15130 lt_prog_compiler_pic='-DDLL_EXPORT'
15131 case $host_os in
15132 os2*)
15133 lt_prog_compiler_static='$wl-static'
15134 ;;
15135 esac
15136 ;;
15137
15138 hpux9* | hpux10* | hpux11*)
15139 lt_prog_compiler_wl='-Wl,'
15140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15141 # not for PA HP-UX.
15142 case $host_cpu in
15143 hppa*64*|ia64*)
15144 # +Z the default
15145 ;;
15146 *)
15147 lt_prog_compiler_pic='+Z'
15148 ;;
15149 esac
15150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15151 lt_prog_compiler_static='$wl-a ${wl}archive'
15152 ;;
15153
15154 irix5* | irix6* | nonstopux*)
15155 lt_prog_compiler_wl='-Wl,'
15156 # PIC (with -KPIC) is the default.
15157 lt_prog_compiler_static='-non_shared'
15158 ;;
15159
15160 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15161 case $cc_basename in
15162 # old Intel for x86_64, which still supported -KPIC.
15163 ecc*)
15164 lt_prog_compiler_wl='-Wl,'
15165 lt_prog_compiler_pic='-KPIC'
15166 lt_prog_compiler_static='-static'
15167 ;;
15168 # icc used to be incompatible with GCC.
15169 # ICC 10 doesn't accept -KPIC any more.
15170 icc* | ifort*)
15171 lt_prog_compiler_wl='-Wl,'
15172 lt_prog_compiler_pic='-fPIC'
15173 lt_prog_compiler_static='-static'
15174 ;;
15175 # Lahey Fortran 8.1.
15176 lf95*)
15177 lt_prog_compiler_wl='-Wl,'
15178 lt_prog_compiler_pic='--shared'
15179 lt_prog_compiler_static='--static'
15180 ;;
15181 nagfor*)
15182 # NAG Fortran compiler
15183 lt_prog_compiler_wl='-Wl,-Wl,,'
15184 lt_prog_compiler_pic='-PIC'
15185 lt_prog_compiler_static='-Bstatic'
15186 ;;
15187 tcc*)
15188 # Fabrice Bellard et al's Tiny C Compiler
15189 lt_prog_compiler_wl='-Wl,'
15190 lt_prog_compiler_pic='-fPIC'
15191 lt_prog_compiler_static='-static'
15192 ;;
15193 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15194 # Portland Group compilers (*not* the Pentium gcc compiler,
15195 # which looks to be a dead project)
15196 lt_prog_compiler_wl='-Wl,'
15197 lt_prog_compiler_pic='-fpic'
15198 lt_prog_compiler_static='-Bstatic'
15199 ;;
15200 ccc*)
15201 lt_prog_compiler_wl='-Wl,'
15202 # All Alpha code is PIC.
15203 lt_prog_compiler_static='-non_shared'
15204 ;;
15205 xl* | bgxl* | bgf* | mpixl*)
15206 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15207 lt_prog_compiler_wl='-Wl,'
15208 lt_prog_compiler_pic='-qpic'
15209 lt_prog_compiler_static='-qstaticlink'
15210 ;;
15211 *)
15212 case `$CC -V 2>&1 | sed 5q` in
15213 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15215 lt_prog_compiler_pic='-KPIC'
15216 lt_prog_compiler_static='-Bstatic'
15217 lt_prog_compiler_wl=''
15218 ;;
15219 *Sun\ F* | *Sun*Fortran*)
15220 lt_prog_compiler_pic='-KPIC'
15221 lt_prog_compiler_static='-Bstatic'
15222 lt_prog_compiler_wl='-Qoption ld '
15223 ;;
15224 *Sun\ C*)
15225 # Sun C 5.9
15226 lt_prog_compiler_pic='-KPIC'
15227 lt_prog_compiler_static='-Bstatic'
15228 lt_prog_compiler_wl='-Wl,'
15229 ;;
15230 *Intel*\ [CF]*Compiler*)
15231 lt_prog_compiler_wl='-Wl,'
15232 lt_prog_compiler_pic='-fPIC'
15233 lt_prog_compiler_static='-static'
15234 ;;
15235 *Portland\ Group*)
15236 lt_prog_compiler_wl='-Wl,'
15237 lt_prog_compiler_pic='-fpic'
15238 lt_prog_compiler_static='-Bstatic'
15239 ;;
15240 esac
15241 ;;
15242 esac
15243 ;;
15244
15245 newsos6)
15246 lt_prog_compiler_pic='-KPIC'
15247 lt_prog_compiler_static='-Bstatic'
15248 ;;
15249
15250 *nto* | *qnx*)
15251 # QNX uses GNU C++, but need to define -shared option too, otherwise
15252 # it will coredump.
15253 lt_prog_compiler_pic='-fPIC -shared'
15254 ;;
15255
15256 osf3* | osf4* | osf5*)
15257 lt_prog_compiler_wl='-Wl,'
15258 # All OSF/1 code is PIC.
15259 lt_prog_compiler_static='-non_shared'
15260 ;;
15261
15262 rdos*)
15263 lt_prog_compiler_static='-non_shared'
15264 ;;
15265
15266 solaris*)
15267 lt_prog_compiler_pic='-KPIC'
15268 lt_prog_compiler_static='-Bstatic'
15269 case $cc_basename in
15270 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15271 lt_prog_compiler_wl='-Qoption ld ';;
15272 *)
15273 lt_prog_compiler_wl='-Wl,';;
15274 esac
15275 ;;
15276
15277 sunos4*)
15278 lt_prog_compiler_wl='-Qoption ld '
15279 lt_prog_compiler_pic='-PIC'
15280 lt_prog_compiler_static='-Bstatic'
15281 ;;
15282
15283 sysv4 | sysv4.2uw2* | sysv4.3*)
15284 lt_prog_compiler_wl='-Wl,'
15285 lt_prog_compiler_pic='-KPIC'
15286 lt_prog_compiler_static='-Bstatic'
15287 ;;
15288
15289 sysv4*MP*)
15290 if test -d /usr/nec; then
15291 lt_prog_compiler_pic='-Kconform_pic'
15292 lt_prog_compiler_static='-Bstatic'
15293 fi
15294 ;;
15295
15296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15297 lt_prog_compiler_wl='-Wl,'
15298 lt_prog_compiler_pic='-KPIC'
15299 lt_prog_compiler_static='-Bstatic'
15300 ;;
15301
15302 unicos*)
15303 lt_prog_compiler_wl='-Wl,'
15304 lt_prog_compiler_can_build_shared=no
15305 ;;
15306
15307 uts4*)
15308 lt_prog_compiler_pic='-pic'
15309 lt_prog_compiler_static='-Bstatic'
15310 ;;
15311
15312 *)
15313 lt_prog_compiler_can_build_shared=no
15314 ;;
15315 esac
15316 fi
15317
15318 case $host_os in
15319 # For platforms that do not support PIC, -DPIC is meaningless:
15320 *djgpp*)
15321 lt_prog_compiler_pic=
15322 ;;
15323 *)
15324 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15325 ;;
15326 esac
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15329 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15330 if ${lt_cv_prog_compiler_pic+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15336 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
15337 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15338
15339 #
15340 # Check to make sure the PIC flag actually works.
15341 #
15342 if test -n "$lt_prog_compiler_pic"; then
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15344 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15345 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 lt_cv_prog_compiler_pic_works=no
15349 ac_outfile=conftest.$ac_objext
15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15351 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15352 # Insert the option either (1) after the last *FLAGS variable, or
15353 # (2) before a word containing "conftest.", or (3) at the end.
15354 # Note that $ac_compile itself does not contain backslashes and begins
15355 # with a dollar sign (not a hyphen), so the echo should work correctly.
15356 # The option is referenced via a variable to avoid confusing sed.
15357 lt_compile=`echo "$ac_compile" | $SED \
15358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360 -e 's:$: $lt_compiler_flag:'`
15361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15362 (eval "$lt_compile" 2>conftest.err)
15363 ac_status=$?
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 if (exit $ac_status) && test -s "$ac_outfile"; then
15367 # The compiler can only warn and ignore the option if not recognized
15368 # So say no if there are warnings other than the usual output.
15369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15372 lt_cv_prog_compiler_pic_works=yes
15373 fi
15374 fi
15375 $RM conftest*
15376
15377 fi
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15379 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15380
15381 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15382 case $lt_prog_compiler_pic in
15383 "" | " "*) ;;
15384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15385 esac
15386 else
15387 lt_prog_compiler_pic=
15388 lt_prog_compiler_can_build_shared=no
15389 fi
15390
15391 fi
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403 #
15404 # Check to make sure the static flag actually works.
15405 #
15406 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15408 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15409 if ${lt_cv_prog_compiler_static_works+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 lt_cv_prog_compiler_static_works=no
15413 save_LDFLAGS=$LDFLAGS
15414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15417 # The linker can only warn and ignore the option if not recognized
15418 # So say no if there are warnings
15419 if test -s conftest.err; then
15420 # Append any errors to the config.log.
15421 cat conftest.err 1>&5
15422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15424 if diff conftest.exp conftest.er2 >/dev/null; then
15425 lt_cv_prog_compiler_static_works=yes
15426 fi
15427 else
15428 lt_cv_prog_compiler_static_works=yes
15429 fi
15430 fi
15431 $RM -r conftest*
15432 LDFLAGS=$save_LDFLAGS
15433
15434 fi
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15436 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15437
15438 if test yes = "$lt_cv_prog_compiler_static_works"; then
15439 :
15440 else
15441 lt_prog_compiler_static=
15442 fi
15443
15444
15445
15446
15447
15448
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15452 if ${lt_cv_prog_compiler_c_o+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 lt_cv_prog_compiler_c_o=no
15456 $RM -r conftest 2>/dev/null
15457 mkdir conftest
15458 cd conftest
15459 mkdir out
15460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15461
15462 lt_compiler_flag="-o out/conftest2.$ac_objext"
15463 # Insert the option either (1) after the last *FLAGS variable, or
15464 # (2) before a word containing "conftest.", or (3) at the end.
15465 # Note that $ac_compile itself does not contain backslashes and begins
15466 # with a dollar sign (not a hyphen), so the echo should work correctly.
15467 lt_compile=`echo "$ac_compile" | $SED \
15468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15470 -e 's:$: $lt_compiler_flag:'`
15471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15472 (eval "$lt_compile" 2>out/conftest.err)
15473 ac_status=$?
15474 cat out/conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15477 then
15478 # The compiler can only warn and ignore the option if not recognized
15479 # So say no if there are warnings
15480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15483 lt_cv_prog_compiler_c_o=yes
15484 fi
15485 fi
15486 chmod u+w . 2>&5
15487 $RM conftest*
15488 # SGI C++ compiler will create directory out/ii_files/ for
15489 # template instantiation
15490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15491 $RM out/* && rmdir out
15492 cd ..
15493 $RM -r conftest
15494 $RM conftest*
15495
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15498 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15499
15500
15501
15502
15503
15504
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15507 if ${lt_cv_prog_compiler_c_o+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510 lt_cv_prog_compiler_c_o=no
15511 $RM -r conftest 2>/dev/null
15512 mkdir conftest
15513 cd conftest
15514 mkdir out
15515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15516
15517 lt_compiler_flag="-o out/conftest2.$ac_objext"
15518 # Insert the option either (1) after the last *FLAGS variable, or
15519 # (2) before a word containing "conftest.", or (3) at the end.
15520 # Note that $ac_compile itself does not contain backslashes and begins
15521 # with a dollar sign (not a hyphen), so the echo should work correctly.
15522 lt_compile=`echo "$ac_compile" | $SED \
15523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15525 -e 's:$: $lt_compiler_flag:'`
15526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15527 (eval "$lt_compile" 2>out/conftest.err)
15528 ac_status=$?
15529 cat out/conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15532 then
15533 # The compiler can only warn and ignore the option if not recognized
15534 # So say no if there are warnings
15535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15538 lt_cv_prog_compiler_c_o=yes
15539 fi
15540 fi
15541 chmod u+w . 2>&5
15542 $RM conftest*
15543 # SGI C++ compiler will create directory out/ii_files/ for
15544 # template instantiation
15545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15546 $RM out/* && rmdir out
15547 cd ..
15548 $RM -r conftest
15549 $RM conftest*
15550
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15553 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15554
15555
15556
15557
15558 hard_links=nottested
15559 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15560 # do not overwrite the value of need_locks provided by the user
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15562 $as_echo_n "checking if we can lock with hard links... " >&6; }
15563 hard_links=yes
15564 $RM conftest*
15565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15566 touch conftest.a
15567 ln conftest.a conftest.b 2>&5 || hard_links=no
15568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15570 $as_echo "$hard_links" >&6; }
15571 if test no = "$hard_links"; then
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15573 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15574 need_locks=warn
15575 fi
15576 else
15577 need_locks=no
15578 fi
15579
15580
15581
15582
15583
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15587
15588 runpath_var=
15589 allow_undefined_flag=
15590 always_export_symbols=no
15591 archive_cmds=
15592 archive_expsym_cmds=
15593 compiler_needs_object=no
15594 enable_shared_with_static_runtimes=no
15595 export_dynamic_flag_spec=
15596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15597 hardcode_automatic=no
15598 hardcode_direct=no
15599 hardcode_direct_absolute=no
15600 hardcode_libdir_flag_spec=
15601 hardcode_libdir_separator=
15602 hardcode_minus_L=no
15603 hardcode_shlibpath_var=unsupported
15604 inherit_rpath=no
15605 link_all_deplibs=unknown
15606 module_cmds=
15607 module_expsym_cmds=
15608 old_archive_from_new_cmds=
15609 old_archive_from_expsyms_cmds=
15610 thread_safe_flag_spec=
15611 whole_archive_flag_spec=
15612 # include_expsyms should be a list of space-separated symbols to be *always*
15613 # included in the symbol list
15614 include_expsyms=
15615 # exclude_expsyms can be an extended regexp of symbols to exclude
15616 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15617 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15618 # as well as any symbol that contains 'd'.
15619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15621 # platforms (ab)use it in PIC code, but their linkers get confused if
15622 # the symbol is explicitly referenced. Since portable code cannot
15623 # rely on this symbol name, it's probably fine to never include it in
15624 # preloaded symbol tables.
15625 # Exclude shared library initialization/finalization symbols.
15626 extract_expsyms_cmds=
15627
15628 case $host_os in
15629 cygwin* | mingw* | pw32* | cegcc*)
15630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15631 # When not using gcc, we currently assume that we are using
15632 # Microsoft Visual C++.
15633 if test yes != "$GCC"; then
15634 with_gnu_ld=no
15635 fi
15636 ;;
15637 interix*)
15638 # we just hope/assume this is gcc and not c89 (= MSVC++)
15639 with_gnu_ld=yes
15640 ;;
15641 openbsd* | bitrig*)
15642 with_gnu_ld=no
15643 ;;
15644 linux* | k*bsd*-gnu | gnu*)
15645 link_all_deplibs=no
15646 ;;
15647 esac
15648
15649 ld_shlibs=yes
15650
15651 # On some targets, GNU ld is compatible enough with the native linker
15652 # that we're better off using the native interface for both.
15653 lt_use_gnu_ld_interface=no
15654 if test yes = "$with_gnu_ld"; then
15655 case $host_os in
15656 aix*)
15657 # The AIX port of GNU ld has always aspired to compatibility
15658 # with the native linker. However, as the warning in the GNU ld
15659 # block says, versions before 2.19.5* couldn't really create working
15660 # shared libraries, regardless of the interface used.
15661 case `$LD -v 2>&1` in
15662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15663 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15664 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15665 *)
15666 lt_use_gnu_ld_interface=yes
15667 ;;
15668 esac
15669 ;;
15670 *)
15671 lt_use_gnu_ld_interface=yes
15672 ;;
15673 esac
15674 fi
15675
15676 if test yes = "$lt_use_gnu_ld_interface"; then
15677 # If archive_cmds runs LD, not CC, wlarc should be empty
15678 wlarc='$wl'
15679
15680 # Set some defaults for GNU ld with shared library support. These
15681 # are reset later if shared libraries are not supported. Putting them
15682 # here allows them to be overridden if necessary.
15683 runpath_var=LD_RUN_PATH
15684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15685 export_dynamic_flag_spec='$wl--export-dynamic'
15686 # ancient GNU ld didn't support --whole-archive et. al.
15687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15688 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15689 else
15690 whole_archive_flag_spec=
15691 fi
15692 supports_anon_versioning=no
15693 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15694 *GNU\ gold*) supports_anon_versioning=yes ;;
15695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15698 *\ 2.11.*) ;; # other 2.11 versions
15699 *) supports_anon_versioning=yes ;;
15700 esac
15701
15702 # See if GNU ld supports shared libraries.
15703 case $host_os in
15704 aix[3-9]*)
15705 # On AIX/PPC, the GNU linker is very broken
15706 if test ia64 != "$host_cpu"; then
15707 ld_shlibs=no
15708 cat <<_LT_EOF 1>&2
15709
15710 *** Warning: the GNU linker, at least up to release 2.19, is reported
15711 *** to be unable to reliably create shared libraries on AIX.
15712 *** Therefore, libtool is disabling shared libraries support. If you
15713 *** really care for shared libraries, you may want to install binutils
15714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15715 *** You will then need to restart the configuration process.
15716
15717 _LT_EOF
15718 fi
15719 ;;
15720
15721 amigaos*)
15722 case $host_cpu in
15723 powerpc)
15724 # see comment about AmigaOS4 .so support
15725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15726 archive_expsym_cmds=''
15727 ;;
15728 m68k)
15729 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)'
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 hardcode_minus_L=yes
15732 ;;
15733 esac
15734 ;;
15735
15736 beos*)
15737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15738 allow_undefined_flag=unsupported
15739 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15740 # support --undefined. This deserves some investigation. FIXME
15741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15742 else
15743 ld_shlibs=no
15744 fi
15745 ;;
15746
15747 cygwin* | mingw* | pw32* | cegcc*)
15748 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15749 # as there is no search path for DLLs.
15750 hardcode_libdir_flag_spec='-L$libdir'
15751 export_dynamic_flag_spec='$wl--export-all-symbols'
15752 allow_undefined_flag=unsupported
15753 always_export_symbols=no
15754 enable_shared_with_static_runtimes=yes
15755 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'
15756 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15757
15758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15760 # If the export-symbols file already is a .def file, use it as
15761 # is; otherwise, prepend EXPORTS...
15762 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15763 cp $export_symbols $output_objdir/$soname.def;
15764 else
15765 echo EXPORTS > $output_objdir/$soname.def;
15766 cat $export_symbols >> $output_objdir/$soname.def;
15767 fi~
15768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15769 else
15770 ld_shlibs=no
15771 fi
15772 ;;
15773
15774 haiku*)
15775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15776 link_all_deplibs=yes
15777 ;;
15778
15779 os2*)
15780 hardcode_libdir_flag_spec='-L$libdir'
15781 hardcode_minus_L=yes
15782 allow_undefined_flag=unsupported
15783 shrext_cmds=.dll
15784 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15787 $ECHO EXPORTS >> $output_objdir/$libname.def~
15788 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15789 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15790 emximp -o $lib $output_objdir/$libname.def'
15791 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15792 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15793 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15794 $ECHO EXPORTS >> $output_objdir/$libname.def~
15795 prefix_cmds="$SED"~
15796 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15797 prefix_cmds="$prefix_cmds -e 1d";
15798 fi~
15799 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15800 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15801 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15802 emximp -o $lib $output_objdir/$libname.def'
15803 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15804 enable_shared_with_static_runtimes=yes
15805 ;;
15806
15807 interix[3-9]*)
15808 hardcode_direct=no
15809 hardcode_shlibpath_var=no
15810 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15811 export_dynamic_flag_spec='$wl-E'
15812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15813 # Instead, shared libraries are loaded at an image base (0x10000000 by
15814 # default) and relocated if they conflict, which is a slow very memory
15815 # consuming and fragmenting process. To avoid this, we pick a random,
15816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15819 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'
15820 ;;
15821
15822 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15823 tmp_diet=no
15824 if test linux-dietlibc = "$host_os"; then
15825 case $cc_basename in
15826 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15827 esac
15828 fi
15829 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15830 && test no = "$tmp_diet"
15831 then
15832 tmp_addflag=' $pic_flag'
15833 tmp_sharedflag='-shared'
15834 case $cc_basename,$host_cpu in
15835 pgcc*) # Portland Group C compiler
15836 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'
15837 tmp_addflag=' $pic_flag'
15838 ;;
15839 pgf77* | pgf90* | pgf95* | pgfortran*)
15840 # Portland Group f77 and f90 compilers
15841 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'
15842 tmp_addflag=' $pic_flag -Mnomain' ;;
15843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15844 tmp_addflag=' -i_dynamic' ;;
15845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15846 tmp_addflag=' -i_dynamic -nofor_main' ;;
15847 ifc* | ifort*) # Intel Fortran compiler
15848 tmp_addflag=' -nofor_main' ;;
15849 lf95*) # Lahey Fortran 8.1
15850 whole_archive_flag_spec=
15851 tmp_sharedflag='--shared' ;;
15852 nagfor*) # NAGFOR 5.3
15853 tmp_sharedflag='-Wl,-shared' ;;
15854 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15855 tmp_sharedflag='-qmkshrobj'
15856 tmp_addflag= ;;
15857 nvcc*) # Cuda Compiler Driver 2.2
15858 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'
15859 compiler_needs_object=yes
15860 ;;
15861 esac
15862 case `$CC -V 2>&1 | sed 5q` in
15863 *Sun\ C*) # Sun C 5.9
15864 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'
15865 compiler_needs_object=yes
15866 tmp_sharedflag='-G' ;;
15867 *Sun\ F*) # Sun Fortran 8.3
15868 tmp_sharedflag='-G' ;;
15869 esac
15870 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15871
15872 if test yes = "$supports_anon_versioning"; then
15873 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15875 echo "local: *; };" >> $output_objdir/$libname.ver~
15876 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15877 fi
15878
15879 case $cc_basename in
15880 tcc*)
15881 export_dynamic_flag_spec='-rdynamic'
15882 ;;
15883 xlf* | bgf* | bgxlf* | mpixlf*)
15884 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15885 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15887 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15888 if test yes = "$supports_anon_versioning"; then
15889 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15891 echo "local: *; };" >> $output_objdir/$libname.ver~
15892 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15893 fi
15894 ;;
15895 esac
15896 else
15897 ld_shlibs=no
15898 fi
15899 ;;
15900
15901 netbsd* | netbsdelf*-gnu)
15902 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15903 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15904 wlarc=
15905 else
15906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15907 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15908 fi
15909 ;;
15910
15911 solaris*)
15912 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15913 ld_shlibs=no
15914 cat <<_LT_EOF 1>&2
15915
15916 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15917 *** create shared libraries on Solaris systems. Therefore, libtool
15918 *** is disabling shared libraries support. We urge you to upgrade GNU
15919 *** binutils to release 2.9.1 or newer. Another option is to modify
15920 *** your PATH or compiler configuration so that the native linker is
15921 *** used, and then restart.
15922
15923 _LT_EOF
15924 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15926 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15927 else
15928 ld_shlibs=no
15929 fi
15930 ;;
15931
15932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15933 case `$LD -v 2>&1` in
15934 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15935 ld_shlibs=no
15936 cat <<_LT_EOF 1>&2
15937
15938 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15939 *** reliably create shared libraries on SCO systems. Therefore, libtool
15940 *** is disabling shared libraries support. We urge you to upgrade GNU
15941 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15942 *** your PATH or compiler configuration so that the native linker is
15943 *** used, and then restart.
15944
15945 _LT_EOF
15946 ;;
15947 *)
15948 # For security reasons, it is highly recommended that you always
15949 # use absolute paths for naming shared libraries, and exclude the
15950 # DT_RUNPATH tag from executables and libraries. But doing so
15951 # requires that you compile everything twice, which is a pain.
15952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15956 else
15957 ld_shlibs=no
15958 fi
15959 ;;
15960 esac
15961 ;;
15962
15963 sunos4*)
15964 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15965 wlarc=
15966 hardcode_direct=yes
15967 hardcode_shlibpath_var=no
15968 ;;
15969
15970 *)
15971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15974 else
15975 ld_shlibs=no
15976 fi
15977 ;;
15978 esac
15979
15980 if test no = "$ld_shlibs"; then
15981 runpath_var=
15982 hardcode_libdir_flag_spec=
15983 export_dynamic_flag_spec=
15984 whole_archive_flag_spec=
15985 fi
15986 else
15987 # PORTME fill in a description of your system's linker (not GNU ld)
15988 case $host_os in
15989 aix3*)
15990 allow_undefined_flag=unsupported
15991 always_export_symbols=yes
15992 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'
15993 # Note: this linker hardcodes the directories in LIBPATH if there
15994 # are no directories specified by -L.
15995 hardcode_minus_L=yes
15996 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15997 # Neither direct hardcoding nor static linking is supported with a
15998 # broken collect2.
15999 hardcode_direct=unsupported
16000 fi
16001 ;;
16002
16003 aix[4-9]*)
16004 if test ia64 = "$host_cpu"; then
16005 # On IA64, the linker does run time linking by default, so we don't
16006 # have to do anything special.
16007 aix_use_runtimelinking=no
16008 exp_sym_flag='-Bexport'
16009 no_entry_flag=
16010 else
16011 # If we're using GNU nm, then we don't want the "-C" option.
16012 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16013 # Without the "-l" option, or with the "-B" option, AIX nm treats
16014 # weak defined symbols like other global defined symbols, whereas
16015 # GNU nm marks them as "W".
16016 # While the 'weak' keyword is ignored in the Export File, we need
16017 # it in the Import File for the 'aix-soname' feature, so we have
16018 # to replace the "-B" option with "-P" for AIX nm.
16019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16020 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'
16021 else
16022 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'
16023 fi
16024 aix_use_runtimelinking=no
16025
16026 # Test if we are trying to use run time linking or normal
16027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16028 # have runtime linking enabled, and use it for executables.
16029 # For shared libraries, we enable/disable runtime linking
16030 # depending on the kind of the shared library created -
16031 # when "with_aix_soname,aix_use_runtimelinking" is:
16032 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16033 # "aix,yes" lib.so shared, rtl:yes, for executables
16034 # lib.a static archive
16035 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16036 # lib.a(lib.so.V) shared, rtl:no, for executables
16037 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16038 # lib.a(lib.so.V) shared, rtl:no
16039 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16040 # lib.a static archive
16041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16042 for ld_flag in $LDFLAGS; do
16043 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16044 aix_use_runtimelinking=yes
16045 break
16046 fi
16047 done
16048 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16049 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16050 # so we don't have lib.a shared libs to link our executables.
16051 # We have to force runtime linking in this case.
16052 aix_use_runtimelinking=yes
16053 LDFLAGS="$LDFLAGS -Wl,-brtl"
16054 fi
16055 ;;
16056 esac
16057
16058 exp_sym_flag='-bexport'
16059 no_entry_flag='-bnoentry'
16060 fi
16061
16062 # When large executables or shared objects are built, AIX ld can
16063 # have problems creating the table of contents. If linking a library
16064 # or program results in "error TOC overflow" add -mminimal-toc to
16065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16067
16068 archive_cmds=''
16069 hardcode_direct=yes
16070 hardcode_direct_absolute=yes
16071 hardcode_libdir_separator=':'
16072 link_all_deplibs=yes
16073 file_list_spec='$wl-f,'
16074 case $with_aix_soname,$aix_use_runtimelinking in
16075 aix,*) ;; # traditional, no import file
16076 svr4,* | *,yes) # use import file
16077 # The Import File defines what to hardcode.
16078 hardcode_direct=no
16079 hardcode_direct_absolute=no
16080 ;;
16081 esac
16082
16083 if test yes = "$GCC"; then
16084 case $host_os in aix4.[012]|aix4.[012].*)
16085 # We only want to do this on AIX 4.2 and lower, the check
16086 # below for broken collect2 doesn't work under 4.3+
16087 collect2name=`$CC -print-prog-name=collect2`
16088 if test -f "$collect2name" &&
16089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16090 then
16091 # We have reworked collect2
16092 :
16093 else
16094 # We have old collect2
16095 hardcode_direct=unsupported
16096 # It fails to find uninstalled libraries when the uninstalled
16097 # path is not listed in the libpath. Setting hardcode_minus_L
16098 # to unsupported forces relinking
16099 hardcode_minus_L=yes
16100 hardcode_libdir_flag_spec='-L$libdir'
16101 hardcode_libdir_separator=
16102 fi
16103 ;;
16104 esac
16105 shared_flag='-shared'
16106 if test yes = "$aix_use_runtimelinking"; then
16107 shared_flag="$shared_flag "'$wl-G'
16108 fi
16109 # Need to ensure runtime linking is disabled for the traditional
16110 # shared library, or the linker may eventually find shared libraries
16111 # /with/ Import File - we do not want to mix them.
16112 shared_flag_aix='-shared'
16113 shared_flag_svr4='-shared $wl-G'
16114 else
16115 # not using gcc
16116 if test ia64 = "$host_cpu"; then
16117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16118 # chokes on -Wl,-G. The following line is correct:
16119 shared_flag='-G'
16120 else
16121 if test yes = "$aix_use_runtimelinking"; then
16122 shared_flag='$wl-G'
16123 else
16124 shared_flag='$wl-bM:SRE'
16125 fi
16126 shared_flag_aix='$wl-bM:SRE'
16127 shared_flag_svr4='$wl-G'
16128 fi
16129 fi
16130
16131 export_dynamic_flag_spec='$wl-bexpall'
16132 # It seems that -bexpall does not export symbols beginning with
16133 # underscore (_), so it is better to generate a list of symbols to export.
16134 always_export_symbols=yes
16135 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16136 # Warning - without using the other runtime loading flags (-brtl),
16137 # -berok will link without error, but may produce a broken library.
16138 allow_undefined_flag='-berok'
16139 # Determine the default libpath from the value encoded in an
16140 # empty executable.
16141 if test set = "${lt_cv_aix_libpath+set}"; then
16142 aix_libpath=$lt_cv_aix_libpath
16143 else
16144 if ${lt_cv_aix_libpath_+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149
16150 int
16151 main ()
16152 {
16153
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159
16160 lt_aix_libpath_sed='
16161 /Import File Strings/,/^$/ {
16162 /^0/ {
16163 s/^0 *\([^ ]*\) *$/\1/
16164 p
16165 }
16166 }'
16167 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16168 # Check for a 64-bit object if we didn't find anything.
16169 if test -z "$lt_cv_aix_libpath_"; then
16170 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 fi
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 if test -z "$lt_cv_aix_libpath_"; then
16176 lt_cv_aix_libpath_=/usr/lib:/lib
16177 fi
16178
16179 fi
16180
16181 aix_libpath=$lt_cv_aix_libpath_
16182 fi
16183
16184 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16185 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
16186 else
16187 if test ia64 = "$host_cpu"; then
16188 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16189 allow_undefined_flag="-z nodefs"
16190 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"
16191 else
16192 # Determine the default libpath from the value encoded in an
16193 # empty executable.
16194 if test set = "${lt_cv_aix_libpath+set}"; then
16195 aix_libpath=$lt_cv_aix_libpath
16196 else
16197 if ${lt_cv_aix_libpath_+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16202
16203 int
16204 main ()
16205 {
16206
16207 ;
16208 return 0;
16209 }
16210 _ACEOF
16211 if ac_fn_c_try_link "$LINENO"; then :
16212
16213 lt_aix_libpath_sed='
16214 /Import File Strings/,/^$/ {
16215 /^0/ {
16216 s/^0 *\([^ ]*\) *$/\1/
16217 p
16218 }
16219 }'
16220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16221 # Check for a 64-bit object if we didn't find anything.
16222 if test -z "$lt_cv_aix_libpath_"; then
16223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16224 fi
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 if test -z "$lt_cv_aix_libpath_"; then
16229 lt_cv_aix_libpath_=/usr/lib:/lib
16230 fi
16231
16232 fi
16233
16234 aix_libpath=$lt_cv_aix_libpath_
16235 fi
16236
16237 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16238 # Warning - without using the other run time loading flags,
16239 # -berok will link without error, but may produce a broken library.
16240 no_undefined_flag=' $wl-bernotok'
16241 allow_undefined_flag=' $wl-berok'
16242 if test yes = "$with_gnu_ld"; then
16243 # We only use this code for GNU lds that support --whole-archive.
16244 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16245 else
16246 # Exported symbols can be pulled into shared objects from archives
16247 whole_archive_flag_spec='$convenience'
16248 fi
16249 archive_cmds_need_lc=yes
16250 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16251 # -brtl affects multiple linker settings, -berok does not and is overridden later
16252 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16253 if test svr4 != "$with_aix_soname"; then
16254 # This is similar to how AIX traditionally builds its shared libraries.
16255 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'
16256 fi
16257 if test aix != "$with_aix_soname"; then
16258 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'
16259 else
16260 # used by -dlpreopen to get the symbols
16261 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16262 fi
16263 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16264 fi
16265 fi
16266 ;;
16267
16268 amigaos*)
16269 case $host_cpu in
16270 powerpc)
16271 # see comment about AmigaOS4 .so support
16272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16273 archive_expsym_cmds=''
16274 ;;
16275 m68k)
16276 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)'
16277 hardcode_libdir_flag_spec='-L$libdir'
16278 hardcode_minus_L=yes
16279 ;;
16280 esac
16281 ;;
16282
16283 bsdi[45]*)
16284 export_dynamic_flag_spec=-rdynamic
16285 ;;
16286
16287 cygwin* | mingw* | pw32* | cegcc*)
16288 # When not using gcc, we currently assume that we are using
16289 # Microsoft Visual C++.
16290 # hardcode_libdir_flag_spec is actually meaningless, as there is
16291 # no search path for DLLs.
16292 case $cc_basename in
16293 cl*)
16294 # Native MSVC
16295 hardcode_libdir_flag_spec=' '
16296 allow_undefined_flag=unsupported
16297 always_export_symbols=yes
16298 file_list_spec='@'
16299 # Tell ltmain to make .lib files, not .a files.
16300 libext=lib
16301 # Tell ltmain to make .dll files, not .so files.
16302 shrext_cmds=.dll
16303 # FIXME: Setting linknames here is a bad hack.
16304 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16305 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16306 cp "$export_symbols" "$output_objdir/$soname.def";
16307 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16308 else
16309 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16310 fi~
16311 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16312 linknames='
16313 # The linker will not automatically build a static lib if we build a DLL.
16314 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16315 enable_shared_with_static_runtimes=yes
16316 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16318 # Don't use ranlib
16319 old_postinstall_cmds='chmod 644 $oldlib'
16320 postlink_cmds='lt_outputfile="@OUTPUT@"~
16321 lt_tool_outputfile="@TOOL_OUTPUT@"~
16322 case $lt_outputfile in
16323 *.exe|*.EXE) ;;
16324 *)
16325 lt_outputfile=$lt_outputfile.exe
16326 lt_tool_outputfile=$lt_tool_outputfile.exe
16327 ;;
16328 esac~
16329 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16331 $RM "$lt_outputfile.manifest";
16332 fi'
16333 ;;
16334 *)
16335 # Assume MSVC wrapper
16336 hardcode_libdir_flag_spec=' '
16337 allow_undefined_flag=unsupported
16338 # Tell ltmain to make .lib files, not .a files.
16339 libext=lib
16340 # Tell ltmain to make .dll files, not .so files.
16341 shrext_cmds=.dll
16342 # FIXME: Setting linknames here is a bad hack.
16343 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16344 # The linker will automatically build a .lib file if we build a DLL.
16345 old_archive_from_new_cmds='true'
16346 # FIXME: Should let the user specify the lib program.
16347 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16348 enable_shared_with_static_runtimes=yes
16349 ;;
16350 esac
16351 ;;
16352
16353 darwin* | rhapsody*)
16354
16355
16356 archive_cmds_need_lc=no
16357 hardcode_direct=no
16358 hardcode_automatic=yes
16359 hardcode_shlibpath_var=unsupported
16360 if test yes = "$lt_cv_ld_force_load"; then
16361 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\"`'
16362
16363 else
16364 whole_archive_flag_spec=''
16365 fi
16366 link_all_deplibs=yes
16367 allow_undefined_flag=$_lt_dar_allow_undefined
16368 case $cc_basename in
16369 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16370 *) _lt_dar_can_shared=$GCC ;;
16371 esac
16372 if test yes = "$_lt_dar_can_shared"; then
16373 output_verbose_link_cmd=func_echo_all
16374 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16375 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16376 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"
16377 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"
16378
16379 else
16380 ld_shlibs=no
16381 fi
16382
16383 ;;
16384
16385 dgux*)
16386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_libdir_flag_spec='-L$libdir'
16388 hardcode_shlibpath_var=no
16389 ;;
16390
16391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16392 # support. Future versions do this automatically, but an explicit c++rt0.o
16393 # does not break anything, and helps significantly (at the cost of a little
16394 # extra space).
16395 freebsd2.2*)
16396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16397 hardcode_libdir_flag_spec='-R$libdir'
16398 hardcode_direct=yes
16399 hardcode_shlibpath_var=no
16400 ;;
16401
16402 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16403 freebsd2.*)
16404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16405 hardcode_direct=yes
16406 hardcode_minus_L=yes
16407 hardcode_shlibpath_var=no
16408 ;;
16409
16410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16411 freebsd* | dragonfly*)
16412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16413 hardcode_libdir_flag_spec='-R$libdir'
16414 hardcode_direct=yes
16415 hardcode_shlibpath_var=no
16416 ;;
16417
16418 hpux9*)
16419 if test yes = "$GCC"; then
16420 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'
16421 else
16422 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'
16423 fi
16424 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16425 hardcode_libdir_separator=:
16426 hardcode_direct=yes
16427
16428 # hardcode_minus_L: Not really in the search PATH,
16429 # but as the default location of the library.
16430 hardcode_minus_L=yes
16431 export_dynamic_flag_spec='$wl-E'
16432 ;;
16433
16434 hpux10*)
16435 if test yes,no = "$GCC,$with_gnu_ld"; then
16436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16437 else
16438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16439 fi
16440 if test no = "$with_gnu_ld"; then
16441 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16442 hardcode_libdir_separator=:
16443 hardcode_direct=yes
16444 hardcode_direct_absolute=yes
16445 export_dynamic_flag_spec='$wl-E'
16446 # hardcode_minus_L: Not really in the search PATH,
16447 # but as the default location of the library.
16448 hardcode_minus_L=yes
16449 fi
16450 ;;
16451
16452 hpux11*)
16453 if test yes,no = "$GCC,$with_gnu_ld"; then
16454 case $host_cpu in
16455 hppa*64*)
16456 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16457 ;;
16458 ia64*)
16459 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16460 ;;
16461 *)
16462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463 ;;
16464 esac
16465 else
16466 case $host_cpu in
16467 hppa*64*)
16468 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 ;;
16470 ia64*)
16471 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16472 ;;
16473 *)
16474
16475 # Older versions of the 11.00 compiler do not understand -b yet
16476 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16478 $as_echo_n "checking if $CC understands -b... " >&6; }
16479 if ${lt_cv_prog_compiler__b+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 lt_cv_prog_compiler__b=no
16483 save_LDFLAGS=$LDFLAGS
16484 LDFLAGS="$LDFLAGS -b"
16485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16487 # The linker can only warn and ignore the option if not recognized
16488 # So say no if there are warnings
16489 if test -s conftest.err; then
16490 # Append any errors to the config.log.
16491 cat conftest.err 1>&5
16492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16494 if diff conftest.exp conftest.er2 >/dev/null; then
16495 lt_cv_prog_compiler__b=yes
16496 fi
16497 else
16498 lt_cv_prog_compiler__b=yes
16499 fi
16500 fi
16501 $RM -r conftest*
16502 LDFLAGS=$save_LDFLAGS
16503
16504 fi
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16506 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16507
16508 if test yes = "$lt_cv_prog_compiler__b"; then
16509 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16510 else
16511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16512 fi
16513
16514 ;;
16515 esac
16516 fi
16517 if test no = "$with_gnu_ld"; then
16518 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16519 hardcode_libdir_separator=:
16520
16521 case $host_cpu in
16522 hppa*64*|ia64*)
16523 hardcode_direct=no
16524 hardcode_shlibpath_var=no
16525 ;;
16526 *)
16527 hardcode_direct=yes
16528 hardcode_direct_absolute=yes
16529 export_dynamic_flag_spec='$wl-E'
16530
16531 # hardcode_minus_L: Not really in the search PATH,
16532 # but as the default location of the library.
16533 hardcode_minus_L=yes
16534 ;;
16535 esac
16536 fi
16537 ;;
16538
16539 irix5* | irix6* | nonstopux*)
16540 if test yes = "$GCC"; then
16541 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'
16542 # Try to use the -exported_symbol ld option, if it does not
16543 # work, assume that -exports_file does not work either and
16544 # implicitly export all symbols.
16545 # This should be the same for all languages, so no per-tag cache variable.
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16547 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16548 if ${lt_cv_irix_exported_symbol+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 save_LDFLAGS=$LDFLAGS
16552 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 int foo (void) { return 0; }
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 lt_cv_irix_exported_symbol=yes
16559 else
16560 lt_cv_irix_exported_symbol=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 LDFLAGS=$save_LDFLAGS
16565 fi
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16567 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16568 if test yes = "$lt_cv_irix_exported_symbol"; then
16569 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'
16570 fi
16571 link_all_deplibs=no
16572 else
16573 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'
16574 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'
16575 fi
16576 archive_cmds_need_lc='no'
16577 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16578 hardcode_libdir_separator=:
16579 inherit_rpath=yes
16580 link_all_deplibs=yes
16581 ;;
16582
16583 linux*)
16584 case $cc_basename in
16585 tcc*)
16586 # Fabrice Bellard et al's Tiny C Compiler
16587 ld_shlibs=yes
16588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16589 ;;
16590 esac
16591 ;;
16592
16593 netbsd* | netbsdelf*-gnu)
16594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16596 else
16597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16598 fi
16599 hardcode_libdir_flag_spec='-R$libdir'
16600 hardcode_direct=yes
16601 hardcode_shlibpath_var=no
16602 ;;
16603
16604 newsos6)
16605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_direct=yes
16607 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16608 hardcode_libdir_separator=:
16609 hardcode_shlibpath_var=no
16610 ;;
16611
16612 *nto* | *qnx*)
16613 ;;
16614
16615 openbsd* | bitrig*)
16616 if test -f /usr/libexec/ld.so; then
16617 hardcode_direct=yes
16618 hardcode_shlibpath_var=no
16619 hardcode_direct_absolute=yes
16620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16623 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16624 export_dynamic_flag_spec='$wl-E'
16625 else
16626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16627 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16628 fi
16629 else
16630 ld_shlibs=no
16631 fi
16632 ;;
16633
16634 os2*)
16635 hardcode_libdir_flag_spec='-L$libdir'
16636 hardcode_minus_L=yes
16637 allow_undefined_flag=unsupported
16638 shrext_cmds=.dll
16639 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16642 $ECHO EXPORTS >> $output_objdir/$libname.def~
16643 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16645 emximp -o $lib $output_objdir/$libname.def'
16646 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16647 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16648 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16649 $ECHO EXPORTS >> $output_objdir/$libname.def~
16650 prefix_cmds="$SED"~
16651 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16652 prefix_cmds="$prefix_cmds -e 1d";
16653 fi~
16654 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16655 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16657 emximp -o $lib $output_objdir/$libname.def'
16658 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16659 enable_shared_with_static_runtimes=yes
16660 ;;
16661
16662 osf3*)
16663 if test yes = "$GCC"; then
16664 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16665 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'
16666 else
16667 allow_undefined_flag=' -expect_unresolved \*'
16668 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'
16669 fi
16670 archive_cmds_need_lc='no'
16671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16672 hardcode_libdir_separator=:
16673 ;;
16674
16675 osf4* | osf5*) # as osf3* with the addition of -msym flag
16676 if test yes = "$GCC"; then
16677 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16678 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'
16679 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16680 else
16681 allow_undefined_flag=' -expect_unresolved \*'
16682 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'
16683 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~
16684 $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'
16685
16686 # Both c and cxx compiler support -rpath directly
16687 hardcode_libdir_flag_spec='-rpath $libdir'
16688 fi
16689 archive_cmds_need_lc='no'
16690 hardcode_libdir_separator=:
16691 ;;
16692
16693 solaris*)
16694 no_undefined_flag=' -z defs'
16695 if test yes = "$GCC"; then
16696 wlarc='$wl'
16697 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16699 $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'
16700 else
16701 case `$CC -V 2>&1` in
16702 *"Compilers 5.0"*)
16703 wlarc=''
16704 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16706 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16707 ;;
16708 *)
16709 wlarc='$wl'
16710 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16712 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16713 ;;
16714 esac
16715 fi
16716 hardcode_libdir_flag_spec='-R$libdir'
16717 hardcode_shlibpath_var=no
16718 case $host_os in
16719 solaris2.[0-5] | solaris2.[0-5].*) ;;
16720 *)
16721 # The compiler driver will combine and reorder linker options,
16722 # but understands '-z linker_flag'. GCC discards it without '$wl',
16723 # but is careful enough not to reorder.
16724 # Supported since Solaris 2.6 (maybe 2.5.1?)
16725 if test yes = "$GCC"; then
16726 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16727 else
16728 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16729 fi
16730 ;;
16731 esac
16732 link_all_deplibs=yes
16733 ;;
16734
16735 sunos4*)
16736 if test sequent = "$host_vendor"; then
16737 # Use $CC to link under sequent, because it throws in some extra .o
16738 # files that make .init and .fini sections work.
16739 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16740 else
16741 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16742 fi
16743 hardcode_libdir_flag_spec='-L$libdir'
16744 hardcode_direct=yes
16745 hardcode_minus_L=yes
16746 hardcode_shlibpath_var=no
16747 ;;
16748
16749 sysv4)
16750 case $host_vendor in
16751 sni)
16752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753 hardcode_direct=yes # is this really true???
16754 ;;
16755 siemens)
16756 ## LD is ld it makes a PLAMLIB
16757 ## CC just makes a GrossModule.
16758 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16759 reload_cmds='$CC -r -o $output$reload_objs'
16760 hardcode_direct=no
16761 ;;
16762 motorola)
16763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16764 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16765 ;;
16766 esac
16767 runpath_var='LD_RUN_PATH'
16768 hardcode_shlibpath_var=no
16769 ;;
16770
16771 sysv4.3*)
16772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16773 hardcode_shlibpath_var=no
16774 export_dynamic_flag_spec='-Bexport'
16775 ;;
16776
16777 sysv4*MP*)
16778 if test -d /usr/nec; then
16779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 hardcode_shlibpath_var=no
16781 runpath_var=LD_RUN_PATH
16782 hardcode_runpath_var=yes
16783 ld_shlibs=yes
16784 fi
16785 ;;
16786
16787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16788 no_undefined_flag='$wl-z,text'
16789 archive_cmds_need_lc=no
16790 hardcode_shlibpath_var=no
16791 runpath_var='LD_RUN_PATH'
16792
16793 if test yes = "$GCC"; then
16794 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16796 else
16797 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16799 fi
16800 ;;
16801
16802 sysv5* | sco3.2v5* | sco5v6*)
16803 # Note: We CANNOT use -z defs as we might desire, because we do not
16804 # link with -lc, and that would cause any symbols used from libc to
16805 # always be unresolved, which means just about no library would
16806 # ever link correctly. If we're not using GNU ld we use -z text
16807 # though, which does catch some bad symbols but isn't as heavy-handed
16808 # as -z defs.
16809 no_undefined_flag='$wl-z,text'
16810 allow_undefined_flag='$wl-z,nodefs'
16811 archive_cmds_need_lc=no
16812 hardcode_shlibpath_var=no
16813 hardcode_libdir_flag_spec='$wl-R,$libdir'
16814 hardcode_libdir_separator=':'
16815 link_all_deplibs=yes
16816 export_dynamic_flag_spec='$wl-Bexport'
16817 runpath_var='LD_RUN_PATH'
16818
16819 if test yes = "$GCC"; then
16820 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 else
16823 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 fi
16826 ;;
16827
16828 uts4*)
16829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16830 hardcode_libdir_flag_spec='-L$libdir'
16831 hardcode_shlibpath_var=no
16832 ;;
16833
16834 *)
16835 ld_shlibs=no
16836 ;;
16837 esac
16838
16839 if test sni = "$host_vendor"; then
16840 case $host in
16841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16842 export_dynamic_flag_spec='$wl-Blargedynsym'
16843 ;;
16844 esac
16845 fi
16846 fi
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16849 $as_echo "$ld_shlibs" >&6; }
16850 test no = "$ld_shlibs" && can_build_shared=no
16851
16852 with_gnu_ld=$with_gnu_ld
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868 #
16869 # Do we need to explicitly link libc?
16870 #
16871 case "x$archive_cmds_need_lc" in
16872 x|xyes)
16873 # Assume -lc should be added
16874 archive_cmds_need_lc=yes
16875
16876 if test yes,yes = "$GCC,$enable_shared"; then
16877 case $archive_cmds in
16878 *'~'*)
16879 # FIXME: we may have to deal with multi-command sequences.
16880 ;;
16881 '$CC '*)
16882 # Test whether the compiler implicitly links with -lc since on some
16883 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16884 # to ld, don't add -lc before -lgcc.
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16886 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16887 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 $RM conftest*
16891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16892
16893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16894 (eval $ac_compile) 2>&5
16895 ac_status=$?
16896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16897 test $ac_status = 0; } 2>conftest.err; then
16898 soname=conftest
16899 lib=conftest
16900 libobjs=conftest.$ac_objext
16901 deplibs=
16902 wl=$lt_prog_compiler_wl
16903 pic_flag=$lt_prog_compiler_pic
16904 compiler_flags=-v
16905 linker_flags=-v
16906 verstring=
16907 output_objdir=.
16908 libname=conftest
16909 lt_save_allow_undefined_flag=$allow_undefined_flag
16910 allow_undefined_flag=
16911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16912 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16913 ac_status=$?
16914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16915 test $ac_status = 0; }
16916 then
16917 lt_cv_archive_cmds_need_lc=no
16918 else
16919 lt_cv_archive_cmds_need_lc=yes
16920 fi
16921 allow_undefined_flag=$lt_save_allow_undefined_flag
16922 else
16923 cat conftest.err 1>&5
16924 fi
16925 $RM conftest*
16926
16927 fi
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16929 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16930 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16931 ;;
16932 esac
16933 fi
16934 ;;
16935 esac
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17089 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17090
17091 if test yes = "$GCC"; then
17092 case $host_os in
17093 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17094 *) lt_awk_arg='/^libraries:/' ;;
17095 esac
17096 case $host_os in
17097 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17098 *) lt_sed_strip_eq='s|=/|/|g' ;;
17099 esac
17100 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17101 case $lt_search_path_spec in
17102 *\;*)
17103 # if the path contains ";" then we assume it to be the separator
17104 # otherwise default to the standard path separator (i.e. ":") - it is
17105 # assumed that no part of a normal pathname contains ";" but that should
17106 # okay in the real world where ";" in dirpaths is itself problematic.
17107 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17108 ;;
17109 *)
17110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17111 ;;
17112 esac
17113 # Ok, now we have the path, separated by spaces, we can step through it
17114 # and add multilib dir if necessary...
17115 lt_tmp_lt_search_path_spec=
17116 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17117 # ...but if some path component already ends with the multilib dir we assume
17118 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17119 case "$lt_multi_os_dir; $lt_search_path_spec " in
17120 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17121 lt_multi_os_dir=
17122 ;;
17123 esac
17124 for lt_sys_path in $lt_search_path_spec; do
17125 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17126 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17127 elif test -n "$lt_multi_os_dir"; then
17128 test -d "$lt_sys_path" && \
17129 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17130 fi
17131 done
17132 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17133 BEGIN {RS = " "; FS = "/|\n";} {
17134 lt_foo = "";
17135 lt_count = 0;
17136 for (lt_i = NF; lt_i > 0; lt_i--) {
17137 if ($lt_i != "" && $lt_i != ".") {
17138 if ($lt_i == "..") {
17139 lt_count++;
17140 } else {
17141 if (lt_count == 0) {
17142 lt_foo = "/" $lt_i lt_foo;
17143 } else {
17144 lt_count--;
17145 }
17146 }
17147 }
17148 }
17149 if (lt_foo != "") { lt_freq[lt_foo]++; }
17150 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17151 }'`
17152 # AWK program above erroneously prepends '/' to C:/dos/paths
17153 # for these hosts.
17154 case $host_os in
17155 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17156 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17157 esac
17158 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17159 else
17160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17161 fi
17162 library_names_spec=
17163 libname_spec='lib$name'
17164 soname_spec=
17165 shrext_cmds=.so
17166 postinstall_cmds=
17167 postuninstall_cmds=
17168 finish_cmds=
17169 finish_eval=
17170 shlibpath_var=
17171 shlibpath_overrides_runpath=unknown
17172 version_type=none
17173 dynamic_linker="$host_os ld.so"
17174 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17175 need_lib_prefix=unknown
17176 hardcode_into_libs=no
17177
17178 # when you set need_version to no, make sure it does not cause -set_version
17179 # flags to be left without arguments
17180 need_version=unknown
17181
17182
17183
17184 case $host_os in
17185 aix3*)
17186 version_type=linux # correct to gnu/linux during the next big refactor
17187 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17188 shlibpath_var=LIBPATH
17189
17190 # AIX 3 has no versioning support, so we append a major version to the name.
17191 soname_spec='$libname$release$shared_ext$major'
17192 ;;
17193
17194 aix[4-9]*)
17195 version_type=linux # correct to gnu/linux during the next big refactor
17196 need_lib_prefix=no
17197 need_version=no
17198 hardcode_into_libs=yes
17199 if test ia64 = "$host_cpu"; then
17200 # AIX 5 supports IA64
17201 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 else
17204 # With GCC up to 2.95.x, collect2 would create an import file
17205 # for dependence libraries. The import file would start with
17206 # the line '#! .'. This would cause the generated library to
17207 # depend on '.', always an invalid library. This was fixed in
17208 # development snapshots of GCC prior to 3.0.
17209 case $host_os in
17210 aix4 | aix4.[01] | aix4.[01].*)
17211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17212 echo ' yes '
17213 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17214 :
17215 else
17216 can_build_shared=no
17217 fi
17218 ;;
17219 esac
17220 # Using Import Files as archive members, it is possible to support
17221 # filename-based versioning of shared library archives on AIX. While
17222 # this would work for both with and without runtime linking, it will
17223 # prevent static linking of such archives. So we do filename-based
17224 # shared library versioning with .so extension only, which is used
17225 # when both runtime linking and shared linking is enabled.
17226 # Unfortunately, runtime linking may impact performance, so we do
17227 # not want this to be the default eventually. Also, we use the
17228 # versioned .so libs for executables only if there is the -brtl
17229 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17230 # To allow for filename-based versioning support, we need to create
17231 # libNAME.so.V as an archive file, containing:
17232 # *) an Import File, referring to the versioned filename of the
17233 # archive as well as the shared archive member, telling the
17234 # bitwidth (32 or 64) of that shared object, and providing the
17235 # list of exported symbols of that shared object, eventually
17236 # decorated with the 'weak' keyword
17237 # *) the shared object with the F_LOADONLY flag set, to really avoid
17238 # it being seen by the linker.
17239 # At run time we better use the real file rather than another symlink,
17240 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17241
17242 case $with_aix_soname,$aix_use_runtimelinking in
17243 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17244 # soname into executable. Probably we can add versioning support to
17245 # collect2, so additional links can be useful in future.
17246 aix,yes) # traditional libtool
17247 dynamic_linker='AIX unversionable lib.so'
17248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17249 # instead of lib<name>.a to let people know that these are not
17250 # typical AIX shared libraries.
17251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17252 ;;
17253 aix,no) # traditional AIX only
17254 dynamic_linker='AIX lib.a(lib.so.V)'
17255 # We preserve .a as extension for shared libraries through AIX4.2
17256 # and later when we are not doing run time linking.
17257 library_names_spec='$libname$release.a $libname.a'
17258 soname_spec='$libname$release$shared_ext$major'
17259 ;;
17260 svr4,*) # full svr4 only
17261 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17262 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17263 # We do not specify a path in Import Files, so LIBPATH fires.
17264 shlibpath_overrides_runpath=yes
17265 ;;
17266 *,yes) # both, prefer svr4
17267 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17268 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17269 # unpreferred sharedlib libNAME.a needs extra handling
17270 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"'
17271 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"'
17272 # We do not specify a path in Import Files, so LIBPATH fires.
17273 shlibpath_overrides_runpath=yes
17274 ;;
17275 *,no) # both, prefer aix
17276 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17277 library_names_spec='$libname$release.a $libname.a'
17278 soname_spec='$libname$release$shared_ext$major'
17279 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17280 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)'
17281 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"'
17282 ;;
17283 esac
17284 shlibpath_var=LIBPATH
17285 fi
17286 ;;
17287
17288 amigaos*)
17289 case $host_cpu in
17290 powerpc)
17291 # Since July 2007 AmigaOS4 officially supports .so libraries.
17292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17294 ;;
17295 m68k)
17296 library_names_spec='$libname.ixlibrary $libname.a'
17297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17298 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'
17299 ;;
17300 esac
17301 ;;
17302
17303 beos*)
17304 library_names_spec='$libname$shared_ext'
17305 dynamic_linker="$host_os ld.so"
17306 shlibpath_var=LIBRARY_PATH
17307 ;;
17308
17309 bsdi[45]*)
17310 version_type=linux # correct to gnu/linux during the next big refactor
17311 need_version=no
17312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17313 soname_spec='$libname$release$shared_ext$major'
17314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17318 # the default ld.so.conf also contains /usr/contrib/lib and
17319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17320 # libtool to hard-code these into programs
17321 ;;
17322
17323 cygwin* | mingw* | pw32* | cegcc*)
17324 version_type=windows
17325 shrext_cmds=.dll
17326 need_version=no
17327 need_lib_prefix=no
17328
17329 case $GCC,$cc_basename in
17330 yes,*)
17331 # gcc
17332 library_names_spec='$libname.dll.a'
17333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17334 postinstall_cmds='base_file=`basename \$file`~
17335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17336 dldir=$destdir/`dirname \$dlpath`~
17337 test -d \$dldir || mkdir -p \$dldir~
17338 $install_prog $dir/$dlname \$dldir/$dlname~
17339 chmod a+x \$dldir/$dlname~
17340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17342 fi'
17343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17344 dlpath=$dir/\$dldll~
17345 $RM \$dlpath'
17346 shlibpath_overrides_runpath=yes
17347
17348 case $host_os in
17349 cygwin*)
17350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17351 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17352
17353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17354 ;;
17355 mingw* | cegcc*)
17356 # MinGW DLLs use traditional 'lib' prefix
17357 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17358 ;;
17359 pw32*)
17360 # pw32 DLLs use 'pw' prefix rather than 'lib'
17361 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17362 ;;
17363 esac
17364 dynamic_linker='Win32 ld.exe'
17365 ;;
17366
17367 *,cl*)
17368 # Native MSVC
17369 libname_spec='$name'
17370 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17371 library_names_spec='$libname.dll.lib'
17372
17373 case $build_os in
17374 mingw*)
17375 sys_lib_search_path_spec=
17376 lt_save_ifs=$IFS
17377 IFS=';'
17378 for lt_path in $LIB
17379 do
17380 IFS=$lt_save_ifs
17381 # Let DOS variable expansion print the short 8.3 style file name.
17382 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17383 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17384 done
17385 IFS=$lt_save_ifs
17386 # Convert to MSYS style.
17387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17388 ;;
17389 cygwin*)
17390 # Convert to unix form, then to dos form, then back to unix form
17391 # but this time dos style (no spaces!) so that the unix form looks
17392 # like /cygdrive/c/PROGRA~1:/cygdr...
17393 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17394 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17395 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17396 ;;
17397 *)
17398 sys_lib_search_path_spec=$LIB
17399 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17400 # It is most probably a Windows format PATH.
17401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17402 else
17403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17404 fi
17405 # FIXME: find the short name or the path components, as spaces are
17406 # common. (e.g. "Program Files" -> "PROGRA~1")
17407 ;;
17408 esac
17409
17410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17411 postinstall_cmds='base_file=`basename \$file`~
17412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17413 dldir=$destdir/`dirname \$dlpath`~
17414 test -d \$dldir || mkdir -p \$dldir~
17415 $install_prog $dir/$dlname \$dldir/$dlname'
17416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17417 dlpath=$dir/\$dldll~
17418 $RM \$dlpath'
17419 shlibpath_overrides_runpath=yes
17420 dynamic_linker='Win32 link.exe'
17421 ;;
17422
17423 *)
17424 # Assume MSVC wrapper
17425 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17426 dynamic_linker='Win32 ld.exe'
17427 ;;
17428 esac
17429 # FIXME: first we should search . and the directory the executable is in
17430 shlibpath_var=PATH
17431 ;;
17432
17433 darwin* | rhapsody*)
17434 dynamic_linker="$host_os dyld"
17435 version_type=darwin
17436 need_lib_prefix=no
17437 need_version=no
17438 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17439 soname_spec='$libname$release$major$shared_ext'
17440 shlibpath_overrides_runpath=yes
17441 shlibpath_var=DYLD_LIBRARY_PATH
17442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17443
17444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17446 ;;
17447
17448 dgux*)
17449 version_type=linux # correct to gnu/linux during the next big refactor
17450 need_lib_prefix=no
17451 need_version=no
17452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17453 soname_spec='$libname$release$shared_ext$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 ;;
17456
17457 freebsd* | dragonfly*)
17458 # DragonFly does not have aout. When/if they implement a new
17459 # versioning mechanism, adjust this.
17460 if test -x /usr/bin/objformat; then
17461 objformat=`/usr/bin/objformat`
17462 else
17463 case $host_os in
17464 freebsd[23].*) objformat=aout ;;
17465 *) objformat=elf ;;
17466 esac
17467 fi
17468 version_type=freebsd-$objformat
17469 case $version_type in
17470 freebsd-elf*)
17471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17472 soname_spec='$libname$release$shared_ext$major'
17473 need_version=no
17474 need_lib_prefix=no
17475 ;;
17476 freebsd-*)
17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17478 need_version=yes
17479 ;;
17480 esac
17481 shlibpath_var=LD_LIBRARY_PATH
17482 case $host_os in
17483 freebsd2.*)
17484 shlibpath_overrides_runpath=yes
17485 ;;
17486 freebsd3.[01]* | freebsdelf3.[01]*)
17487 shlibpath_overrides_runpath=yes
17488 hardcode_into_libs=yes
17489 ;;
17490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17492 shlibpath_overrides_runpath=no
17493 hardcode_into_libs=yes
17494 ;;
17495 *) # from 4.6 on, and DragonFly
17496 shlibpath_overrides_runpath=yes
17497 hardcode_into_libs=yes
17498 ;;
17499 esac
17500 ;;
17501
17502 haiku*)
17503 version_type=linux # correct to gnu/linux during the next big refactor
17504 need_lib_prefix=no
17505 need_version=no
17506 dynamic_linker="$host_os runtime_loader"
17507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17508 soname_spec='$libname$release$shared_ext$major'
17509 shlibpath_var=LIBRARY_PATH
17510 shlibpath_overrides_runpath=no
17511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17512 hardcode_into_libs=yes
17513 ;;
17514
17515 hpux9* | hpux10* | hpux11*)
17516 # Give a soname corresponding to the major version so that dld.sl refuses to
17517 # link against other versions.
17518 version_type=sunos
17519 need_lib_prefix=no
17520 need_version=no
17521 case $host_cpu in
17522 ia64*)
17523 shrext_cmds='.so'
17524 hardcode_into_libs=yes
17525 dynamic_linker="$host_os dld.so"
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17529 soname_spec='$libname$release$shared_ext$major'
17530 if test 32 = "$HPUX_IA64_MODE"; then
17531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17532 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17533 else
17534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17535 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17536 fi
17537 ;;
17538 hppa*64*)
17539 shrext_cmds='.sl'
17540 hardcode_into_libs=yes
17541 dynamic_linker="$host_os dld.sl"
17542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17545 soname_spec='$libname$release$shared_ext$major'
17546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17548 ;;
17549 *)
17550 shrext_cmds='.sl'
17551 dynamic_linker="$host_os dld.sl"
17552 shlibpath_var=SHLIB_PATH
17553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17555 soname_spec='$libname$release$shared_ext$major'
17556 ;;
17557 esac
17558 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17559 postinstall_cmds='chmod 555 $lib'
17560 # or fails outright, so override atomically:
17561 install_override_mode=555
17562 ;;
17563
17564 interix[3-9]*)
17565 version_type=linux # correct to gnu/linux during the next big refactor
17566 need_lib_prefix=no
17567 need_version=no
17568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17569 soname_spec='$libname$release$shared_ext$major'
17570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath=no
17573 hardcode_into_libs=yes
17574 ;;
17575
17576 irix5* | irix6* | nonstopux*)
17577 case $host_os in
17578 nonstopux*) version_type=nonstopux ;;
17579 *)
17580 if test yes = "$lt_cv_prog_gnu_ld"; then
17581 version_type=linux # correct to gnu/linux during the next big refactor
17582 else
17583 version_type=irix
17584 fi ;;
17585 esac
17586 need_lib_prefix=no
17587 need_version=no
17588 soname_spec='$libname$release$shared_ext$major'
17589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17590 case $host_os in
17591 irix5* | nonstopux*)
17592 libsuff= shlibsuff=
17593 ;;
17594 *)
17595 case $LD in # libtool.m4 will add one of these switches to LD
17596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17597 libsuff= shlibsuff= libmagic=32-bit;;
17598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17599 libsuff=32 shlibsuff=N32 libmagic=N32;;
17600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17602 *) libsuff= shlibsuff= libmagic=never-match;;
17603 esac
17604 ;;
17605 esac
17606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17607 shlibpath_overrides_runpath=no
17608 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17609 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17610 hardcode_into_libs=yes
17611 ;;
17612
17613 # No shared lib support for Linux oldld, aout, or coff.
17614 linux*oldld* | linux*aout* | linux*coff*)
17615 dynamic_linker=no
17616 ;;
17617
17618 linux*android*)
17619 version_type=none # Android doesn't support versioned libraries.
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='$libname$release$shared_ext'
17623 soname_spec='$libname$release$shared_ext'
17624 finish_cmds=
17625 shlibpath_var=LD_LIBRARY_PATH
17626 shlibpath_overrides_runpath=yes
17627
17628 # This implies no fast_install, which is unacceptable.
17629 # Some rework will be needed to allow for fast_install
17630 # before this can be enabled.
17631 hardcode_into_libs=yes
17632
17633 dynamic_linker='Android linker'
17634 # Don't embed -rpath directories since the linker doesn't support them.
17635 hardcode_libdir_flag_spec='-L$libdir'
17636 ;;
17637
17638 # This must be glibc/ELF.
17639 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17640 version_type=linux # correct to gnu/linux during the next big refactor
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17644 soname_spec='$libname$release$shared_ext$major'
17645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648
17649 # Some binutils ld are patched to set DT_RUNPATH
17650 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17651 $as_echo_n "(cached) " >&6
17652 else
17653 lt_cv_shlibpath_overrides_runpath=no
17654 save_LDFLAGS=$LDFLAGS
17655 save_libdir=$libdir
17656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17660
17661 int
17662 main ()
17663 {
17664
17665 ;
17666 return 0;
17667 }
17668 _ACEOF
17669 if ac_fn_c_try_link "$LINENO"; then :
17670 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17671 lt_cv_shlibpath_overrides_runpath=yes
17672 fi
17673 fi
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676 LDFLAGS=$save_LDFLAGS
17677 libdir=$save_libdir
17678
17679 fi
17680
17681 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17682
17683 # This implies no fast_install, which is unacceptable.
17684 # Some rework will be needed to allow for fast_install
17685 # before this can be enabled.
17686 hardcode_into_libs=yes
17687
17688 # Ideally, we could use ldconfig to report *all* directores which are
17689 # searched for libraries, however this is still not possible. Aside from not
17690 # being certain /sbin/ldconfig is available, command
17691 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17692 # even though it is searched at run-time. Try to do the best guess by
17693 # appending ld.so.conf contents (and includes) to the search path.
17694 if test -f /etc/ld.so.conf; then
17695 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' ' '`
17696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17697 fi
17698
17699 # We used to test for /lib/ld.so.1 and disable shared libraries on
17700 # powerpc, because MkLinux only supported shared libraries with the
17701 # GNU dynamic linker. Since this was broken with cross compilers,
17702 # most powerpc-linux boxes support dynamic linking these days and
17703 # people can always --disable-shared, the test was removed, and we
17704 # assume the GNU/Linux dynamic linker is in use.
17705 dynamic_linker='GNU/Linux ld.so'
17706 ;;
17707
17708 netbsdelf*-gnu)
17709 version_type=linux
17710 need_lib_prefix=no
17711 need_version=no
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 shlibpath_var=LD_LIBRARY_PATH
17715 shlibpath_overrides_runpath=no
17716 hardcode_into_libs=yes
17717 dynamic_linker='NetBSD ld.elf_so'
17718 ;;
17719
17720 netbsd*)
17721 version_type=sunos
17722 need_lib_prefix=no
17723 need_version=no
17724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17725 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17727 dynamic_linker='NetBSD (a.out) ld.so'
17728 else
17729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17730 soname_spec='$libname$release$shared_ext$major'
17731 dynamic_linker='NetBSD ld.elf_so'
17732 fi
17733 shlibpath_var=LD_LIBRARY_PATH
17734 shlibpath_overrides_runpath=yes
17735 hardcode_into_libs=yes
17736 ;;
17737
17738 newsos6)
17739 version_type=linux # correct to gnu/linux during the next big refactor
17740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=yes
17743 ;;
17744
17745 *nto* | *qnx*)
17746 version_type=qnx
17747 need_lib_prefix=no
17748 need_version=no
17749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17750 soname_spec='$libname$release$shared_ext$major'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=no
17753 hardcode_into_libs=yes
17754 dynamic_linker='ldqnx.so'
17755 ;;
17756
17757 openbsd* | bitrig*)
17758 version_type=sunos
17759 sys_lib_dlsearch_path_spec=/usr/lib
17760 need_lib_prefix=no
17761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17762 need_version=no
17763 else
17764 need_version=yes
17765 fi
17766 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 shlibpath_overrides_runpath=yes
17770 ;;
17771
17772 os2*)
17773 libname_spec='$name'
17774 version_type=windows
17775 shrext_cmds=.dll
17776 need_version=no
17777 need_lib_prefix=no
17778 # OS/2 can only load a DLL with a base name of 8 characters or less.
17779 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17780 v=$($ECHO $release$versuffix | tr -d .-);
17781 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17782 $ECHO $n$v`$shared_ext'
17783 library_names_spec='${libname}_dll.$libext'
17784 dynamic_linker='OS/2 ld.exe'
17785 shlibpath_var=BEGINLIBPATH
17786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17788 postinstall_cmds='base_file=`basename \$file`~
17789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17790 dldir=$destdir/`dirname \$dlpath`~
17791 test -d \$dldir || mkdir -p \$dldir~
17792 $install_prog $dir/$dlname \$dldir/$dlname~
17793 chmod a+x \$dldir/$dlname~
17794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17796 fi'
17797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17798 dlpath=$dir/\$dldll~
17799 $RM \$dlpath'
17800 ;;
17801
17802 osf3* | osf4* | osf5*)
17803 version_type=osf
17804 need_lib_prefix=no
17805 need_version=no
17806 soname_spec='$libname$release$shared_ext$major'
17807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17811 ;;
17812
17813 rdos*)
17814 dynamic_linker=no
17815 ;;
17816
17817 solaris*)
17818 version_type=linux # correct to gnu/linux during the next big refactor
17819 need_lib_prefix=no
17820 need_version=no
17821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17822 soname_spec='$libname$release$shared_ext$major'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=yes
17825 hardcode_into_libs=yes
17826 # ldd complains unless libraries are executable
17827 postinstall_cmds='chmod +x $lib'
17828 ;;
17829
17830 sunos4*)
17831 version_type=sunos
17832 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17833 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17834 shlibpath_var=LD_LIBRARY_PATH
17835 shlibpath_overrides_runpath=yes
17836 if test yes = "$with_gnu_ld"; then
17837 need_lib_prefix=no
17838 fi
17839 need_version=yes
17840 ;;
17841
17842 sysv4 | sysv4.3*)
17843 version_type=linux # correct to gnu/linux during the next big refactor
17844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17845 soname_spec='$libname$release$shared_ext$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 case $host_vendor in
17848 sni)
17849 shlibpath_overrides_runpath=no
17850 need_lib_prefix=no
17851 runpath_var=LD_RUN_PATH
17852 ;;
17853 siemens)
17854 need_lib_prefix=no
17855 ;;
17856 motorola)
17857 need_lib_prefix=no
17858 need_version=no
17859 shlibpath_overrides_runpath=no
17860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17861 ;;
17862 esac
17863 ;;
17864
17865 sysv4*MP*)
17866 if test -d /usr/nec; then
17867 version_type=linux # correct to gnu/linux during the next big refactor
17868 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17869 soname_spec='$libname$shared_ext.$major'
17870 shlibpath_var=LD_LIBRARY_PATH
17871 fi
17872 ;;
17873
17874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17875 version_type=sco
17876 need_lib_prefix=no
17877 need_version=no
17878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17879 soname_spec='$libname$release$shared_ext$major'
17880 shlibpath_var=LD_LIBRARY_PATH
17881 shlibpath_overrides_runpath=yes
17882 hardcode_into_libs=yes
17883 if test yes = "$with_gnu_ld"; then
17884 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17885 else
17886 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17887 case $host_os in
17888 sco3.2v5*)
17889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17890 ;;
17891 esac
17892 fi
17893 sys_lib_dlsearch_path_spec='/usr/lib'
17894 ;;
17895
17896 tpf*)
17897 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17898 version_type=linux # correct to gnu/linux during the next big refactor
17899 need_lib_prefix=no
17900 need_version=no
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=no
17904 hardcode_into_libs=yes
17905 ;;
17906
17907 uts4*)
17908 version_type=linux # correct to gnu/linux during the next big refactor
17909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17910 soname_spec='$libname$release$shared_ext$major'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 ;;
17913
17914 *)
17915 dynamic_linker=no
17916 ;;
17917 esac
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17919 $as_echo "$dynamic_linker" >&6; }
17920 test no = "$dynamic_linker" && can_build_shared=no
17921
17922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17923 if test yes = "$GCC"; then
17924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17925 fi
17926
17927 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17928 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17929 fi
17930
17931 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17932 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17933 fi
17934
17935 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17936 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17937
17938 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17939 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17940
17941 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17942 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18041 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18042 hardcode_action=
18043 if test -n "$hardcode_libdir_flag_spec" ||
18044 test -n "$runpath_var" ||
18045 test yes = "$hardcode_automatic"; then
18046
18047 # We can hardcode non-existent directories.
18048 if test no != "$hardcode_direct" &&
18049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18050 # have to relink, otherwise we might link with an installed library
18051 # when we should be linking with a yet-to-be-installed one
18052 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18053 test no != "$hardcode_minus_L"; then
18054 # Linking always hardcodes the temporary library directory.
18055 hardcode_action=relink
18056 else
18057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18058 hardcode_action=immediate
18059 fi
18060 else
18061 # We cannot hardcode anything, or else we can only hardcode existing
18062 # directories.
18063 hardcode_action=unsupported
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18066 $as_echo "$hardcode_action" >&6; }
18067
18068 if test relink = "$hardcode_action" ||
18069 test yes = "$inherit_rpath"; then
18070 # Fast installation is not supported
18071 enable_fast_install=no
18072 elif test yes = "$shlibpath_overrides_runpath" ||
18073 test no = "$enable_shared"; then
18074 # Fast installation is not necessary
18075 enable_fast_install=needless
18076 fi
18077
18078
18079
18080
18081
18082
18083 if test yes != "$enable_dlopen"; then
18084 enable_dlopen=unknown
18085 enable_dlopen_self=unknown
18086 enable_dlopen_self_static=unknown
18087 else
18088 lt_cv_dlopen=no
18089 lt_cv_dlopen_libs=
18090
18091 case $host_os in
18092 beos*)
18093 lt_cv_dlopen=load_add_on
18094 lt_cv_dlopen_libs=
18095 lt_cv_dlopen_self=yes
18096 ;;
18097
18098 mingw* | pw32* | cegcc*)
18099 lt_cv_dlopen=LoadLibrary
18100 lt_cv_dlopen_libs=
18101 ;;
18102
18103 cygwin*)
18104 lt_cv_dlopen=dlopen
18105 lt_cv_dlopen_libs=
18106 ;;
18107
18108 darwin*)
18109 # if libdl is installed we need to link against it
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18112 if ${ac_cv_lib_dl_dlopen+:} false; then :
18113 $as_echo_n "(cached) " >&6
18114 else
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-ldl $LIBS"
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18119
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18123 #ifdef __cplusplus
18124 extern "C"
18125 #endif
18126 char dlopen ();
18127 int
18128 main ()
18129 {
18130 return dlopen ();
18131 ;
18132 return 0;
18133 }
18134 _ACEOF
18135 if ac_fn_c_try_link "$LINENO"; then :
18136 ac_cv_lib_dl_dlopen=yes
18137 else
18138 ac_cv_lib_dl_dlopen=no
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18143 fi
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18145 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18146 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18147 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18148 else
18149
18150 lt_cv_dlopen=dyld
18151 lt_cv_dlopen_libs=
18152 lt_cv_dlopen_self=yes
18153
18154 fi
18155
18156 ;;
18157
18158 tpf*)
18159 # Don't try to run any link tests for TPF. We know it's impossible
18160 # because TPF is a cross-compiler, and we know how we open DSOs.
18161 lt_cv_dlopen=dlopen
18162 lt_cv_dlopen_libs=
18163 lt_cv_dlopen_self=no
18164 ;;
18165
18166 *)
18167 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18168 if test "x$ac_cv_func_shl_load" = xyes; then :
18169 lt_cv_dlopen=shl_load
18170 else
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18172 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18173 if ${ac_cv_lib_dld_shl_load+:} false; then :
18174 $as_echo_n "(cached) " >&6
18175 else
18176 ac_check_lib_save_LIBS=$LIBS
18177 LIBS="-ldld $LIBS"
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180
18181 /* Override any GCC internal prototype to avoid an error.
18182 Use char because int might match the return type of a GCC
18183 builtin and then its argument prototype would still apply. */
18184 #ifdef __cplusplus
18185 extern "C"
18186 #endif
18187 char shl_load ();
18188 int
18189 main ()
18190 {
18191 return shl_load ();
18192 ;
18193 return 0;
18194 }
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197 ac_cv_lib_dld_shl_load=yes
18198 else
18199 ac_cv_lib_dld_shl_load=no
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_check_lib_save_LIBS
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18206 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18207 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18208 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18209 else
18210 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18211 if test "x$ac_cv_func_dlopen" = xyes; then :
18212 lt_cv_dlopen=dlopen
18213 else
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18215 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18216 if ${ac_cv_lib_dl_dlopen+:} false; then :
18217 $as_echo_n "(cached) " >&6
18218 else
18219 ac_check_lib_save_LIBS=$LIBS
18220 LIBS="-ldl $LIBS"
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18227 #ifdef __cplusplus
18228 extern "C"
18229 #endif
18230 char dlopen ();
18231 int
18232 main ()
18233 {
18234 return dlopen ();
18235 ;
18236 return 0;
18237 }
18238 _ACEOF
18239 if ac_fn_c_try_link "$LINENO"; then :
18240 ac_cv_lib_dl_dlopen=yes
18241 else
18242 ac_cv_lib_dl_dlopen=no
18243 fi
18244 rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246 LIBS=$ac_check_lib_save_LIBS
18247 fi
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18250 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18252 else
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18255 if ${ac_cv_lib_svld_dlopen+:} false; then :
18256 $as_echo_n "(cached) " >&6
18257 else
18258 ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-lsvld $LIBS"
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char dlopen ();
18270 int
18271 main ()
18272 {
18273 return dlopen ();
18274 ;
18275 return 0;
18276 }
18277 _ACEOF
18278 if ac_fn_c_try_link "$LINENO"; then :
18279 ac_cv_lib_svld_dlopen=yes
18280 else
18281 ac_cv_lib_svld_dlopen=no
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18288 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18289 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18290 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18291 else
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18293 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18294 if ${ac_cv_lib_dld_dld_link+:} false; then :
18295 $as_echo_n "(cached) " >&6
18296 else
18297 ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-ldld $LIBS"
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char dld_link ();
18309 int
18310 main ()
18311 {
18312 return dld_link ();
18313 ;
18314 return 0;
18315 }
18316 _ACEOF
18317 if ac_fn_c_try_link "$LINENO"; then :
18318 ac_cv_lib_dld_dld_link=yes
18319 else
18320 ac_cv_lib_dld_dld_link=no
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18325 fi
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18328 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18329 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18330 fi
18331
18332
18333 fi
18334
18335
18336 fi
18337
18338
18339 fi
18340
18341
18342 fi
18343
18344
18345 fi
18346
18347 ;;
18348 esac
18349
18350 if test no = "$lt_cv_dlopen"; then
18351 enable_dlopen=no
18352 else
18353 enable_dlopen=yes
18354 fi
18355
18356 case $lt_cv_dlopen in
18357 dlopen)
18358 save_CPPFLAGS=$CPPFLAGS
18359 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18360
18361 save_LDFLAGS=$LDFLAGS
18362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18363
18364 save_LIBS=$LIBS
18365 LIBS="$lt_cv_dlopen_libs $LIBS"
18366
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18369 if ${lt_cv_dlopen_self+:} false; then :
18370 $as_echo_n "(cached) " >&6
18371 else
18372 if test yes = "$cross_compiling"; then :
18373 lt_cv_dlopen_self=cross
18374 else
18375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18376 lt_status=$lt_dlunknown
18377 cat > conftest.$ac_ext <<_LT_EOF
18378 #line $LINENO "configure"
18379 #include "confdefs.h"
18380
18381 #if HAVE_DLFCN_H
18382 #include <dlfcn.h>
18383 #endif
18384
18385 #include <stdio.h>
18386
18387 #ifdef RTLD_GLOBAL
18388 # define LT_DLGLOBAL RTLD_GLOBAL
18389 #else
18390 # ifdef DL_GLOBAL
18391 # define LT_DLGLOBAL DL_GLOBAL
18392 # else
18393 # define LT_DLGLOBAL 0
18394 # endif
18395 #endif
18396
18397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18398 find out it does not work in some platform. */
18399 #ifndef LT_DLLAZY_OR_NOW
18400 # ifdef RTLD_LAZY
18401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18402 # else
18403 # ifdef DL_LAZY
18404 # define LT_DLLAZY_OR_NOW DL_LAZY
18405 # else
18406 # ifdef RTLD_NOW
18407 # define LT_DLLAZY_OR_NOW RTLD_NOW
18408 # else
18409 # ifdef DL_NOW
18410 # define LT_DLLAZY_OR_NOW DL_NOW
18411 # else
18412 # define LT_DLLAZY_OR_NOW 0
18413 # endif
18414 # endif
18415 # endif
18416 # endif
18417 #endif
18418
18419 /* When -fvisibility=hidden is used, assume the code has been annotated
18420 correspondingly for the symbols needed. */
18421 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18422 int fnord () __attribute__((visibility("default")));
18423 #endif
18424
18425 int fnord () { return 42; }
18426 int main ()
18427 {
18428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18429 int status = $lt_dlunknown;
18430
18431 if (self)
18432 {
18433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18434 else
18435 {
18436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18437 else puts (dlerror ());
18438 }
18439 /* dlclose (self); */
18440 }
18441 else
18442 puts (dlerror ());
18443
18444 return status;
18445 }
18446 _LT_EOF
18447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18448 (eval $ac_link) 2>&5
18449 ac_status=$?
18450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18451 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18452 (./conftest; exit; ) >&5 2>/dev/null
18453 lt_status=$?
18454 case x$lt_status in
18455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18458 esac
18459 else :
18460 # compilation failed
18461 lt_cv_dlopen_self=no
18462 fi
18463 fi
18464 rm -fr conftest*
18465
18466
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18469 $as_echo "$lt_cv_dlopen_self" >&6; }
18470
18471 if test yes = "$lt_cv_dlopen_self"; then
18472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18474 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18475 if ${lt_cv_dlopen_self_static+:} false; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 if test yes = "$cross_compiling"; then :
18479 lt_cv_dlopen_self_static=cross
18480 else
18481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18482 lt_status=$lt_dlunknown
18483 cat > conftest.$ac_ext <<_LT_EOF
18484 #line $LINENO "configure"
18485 #include "confdefs.h"
18486
18487 #if HAVE_DLFCN_H
18488 #include <dlfcn.h>
18489 #endif
18490
18491 #include <stdio.h>
18492
18493 #ifdef RTLD_GLOBAL
18494 # define LT_DLGLOBAL RTLD_GLOBAL
18495 #else
18496 # ifdef DL_GLOBAL
18497 # define LT_DLGLOBAL DL_GLOBAL
18498 # else
18499 # define LT_DLGLOBAL 0
18500 # endif
18501 #endif
18502
18503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18504 find out it does not work in some platform. */
18505 #ifndef LT_DLLAZY_OR_NOW
18506 # ifdef RTLD_LAZY
18507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18508 # else
18509 # ifdef DL_LAZY
18510 # define LT_DLLAZY_OR_NOW DL_LAZY
18511 # else
18512 # ifdef RTLD_NOW
18513 # define LT_DLLAZY_OR_NOW RTLD_NOW
18514 # else
18515 # ifdef DL_NOW
18516 # define LT_DLLAZY_OR_NOW DL_NOW
18517 # else
18518 # define LT_DLLAZY_OR_NOW 0
18519 # endif
18520 # endif
18521 # endif
18522 # endif
18523 #endif
18524
18525 /* When -fvisibility=hidden is used, assume the code has been annotated
18526 correspondingly for the symbols needed. */
18527 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18528 int fnord () __attribute__((visibility("default")));
18529 #endif
18530
18531 int fnord () { return 42; }
18532 int main ()
18533 {
18534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18535 int status = $lt_dlunknown;
18536
18537 if (self)
18538 {
18539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18540 else
18541 {
18542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18543 else puts (dlerror ());
18544 }
18545 /* dlclose (self); */
18546 }
18547 else
18548 puts (dlerror ());
18549
18550 return status;
18551 }
18552 _LT_EOF
18553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18554 (eval $ac_link) 2>&5
18555 ac_status=$?
18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18558 (./conftest; exit; ) >&5 2>/dev/null
18559 lt_status=$?
18560 case x$lt_status in
18561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18564 esac
18565 else :
18566 # compilation failed
18567 lt_cv_dlopen_self_static=no
18568 fi
18569 fi
18570 rm -fr conftest*
18571
18572
18573 fi
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18575 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18576 fi
18577
18578 CPPFLAGS=$save_CPPFLAGS
18579 LDFLAGS=$save_LDFLAGS
18580 LIBS=$save_LIBS
18581 ;;
18582 esac
18583
18584 case $lt_cv_dlopen_self in
18585 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18586 *) enable_dlopen_self=unknown ;;
18587 esac
18588
18589 case $lt_cv_dlopen_self_static in
18590 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18591 *) enable_dlopen_self_static=unknown ;;
18592 esac
18593 fi
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611 striplib=
18612 old_striplib=
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18614 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18615 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18616 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18617 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18620 else
18621 # FIXME - insert some real tests, host_os isn't really good enough
18622 case $host_os in
18623 darwin*)
18624 if test -n "$STRIP"; then
18625 striplib="$STRIP -x"
18626 old_striplib="$STRIP -S"
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 $as_echo "yes" >&6; }
18629 else
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632 fi
18633 ;;
18634 *)
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18636 $as_echo "no" >&6; }
18637 ;;
18638 esac
18639 fi
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652 # Report what library types will actually be built
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18654 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18656 $as_echo "$can_build_shared" >&6; }
18657
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18659 $as_echo_n "checking whether to build shared libraries... " >&6; }
18660 test no = "$can_build_shared" && enable_shared=no
18661
18662 # On AIX, shared libraries and static libraries use the same namespace, and
18663 # are all built from PIC.
18664 case $host_os in
18665 aix3*)
18666 test yes = "$enable_shared" && enable_static=no
18667 if test -n "$RANLIB"; then
18668 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18669 postinstall_cmds='$RANLIB $lib'
18670 fi
18671 ;;
18672
18673 aix[4-9]*)
18674 if test ia64 != "$host_cpu"; then
18675 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18676 yes,aix,yes) ;; # shared object as lib.so file only
18677 yes,svr4,*) ;; # shared object as lib.so archive member only
18678 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18679 esac
18680 fi
18681 ;;
18682 esac
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18684 $as_echo "$enable_shared" >&6; }
18685
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18687 $as_echo_n "checking whether to build static libraries... " >&6; }
18688 # Make sure either enable_shared or enable_static is yes.
18689 test yes = "$enable_shared" || enable_static=yes
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18691 $as_echo "$enable_static" >&6; }
18692
18693
18694
18695
18696 fi
18697 ac_ext=c
18698 ac_cpp='$CPP $CPPFLAGS'
18699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18702
18703 CC=$lt_save_CC
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719 ac_config_commands="$ac_config_commands libtool"
18720
18721
18722
18723
18724 # Only expand once:
18725
18726
18727
18728 # Checks for programs.
18729
18730
18731 if test "x$GCC" = "xyes"; then
18732 CPPFLAGS="$CPPFLAGS -Wall"
18733 fi
18734
18735
18736
18737 # Define a configure option for an alternate module directory
18738
18739 # Check whether --with-xorg-module-dir was given.
18740 if test "${with_xorg_module_dir+set}" = set; then :
18741 withval=$with_xorg_module_dir; moduledir="$withval"
18742 else
18743 moduledir="$libdir/xorg/modules"
18744 fi
18745
18746
18747 # Store the list of server defined optional extensions in REQUIRED_MODULES
18748
18749
18750 SAVE_CFLAGS="$CFLAGS"
18751 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754
18755 #include "xorg-server.h"
18756 #if !defined RANDR
18757 #error RANDR not defined
18758 #endif
18759
18760 int
18761 main ()
18762 {
18763
18764 ;
18765 return 0;
18766 }
18767 _ACEOF
18768 if ac_fn_c_try_compile "$LINENO"; then :
18769 _EXT_CHECK=yes
18770 else
18771 _EXT_CHECK=no
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 CFLAGS="$SAVE_CFLAGS"
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18776 $as_echo_n "checking if RANDR is defined... " >&6; }
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18778 $as_echo "$_EXT_CHECK" >&6; }
18779 if test "$_EXT_CHECK" != no; then
18780 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18781 fi
18782
18783
18784
18785 SAVE_CFLAGS="$CFLAGS"
18786 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789
18790 #include "xorg-server.h"
18791 #if !defined RENDER
18792 #error RENDER not defined
18793 #endif
18794
18795 int
18796 main ()
18797 {
18798
18799 ;
18800 return 0;
18801 }
18802 _ACEOF
18803 if ac_fn_c_try_compile "$LINENO"; then :
18804 _EXT_CHECK=yes
18805 else
18806 _EXT_CHECK=no
18807 fi
18808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18809 CFLAGS="$SAVE_CFLAGS"
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18811 $as_echo_n "checking if RENDER is defined... " >&6; }
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18813 $as_echo "$_EXT_CHECK" >&6; }
18814 if test "$_EXT_CHECK" != no; then
18815 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18816 fi
18817
18818
18819
18820 SAVE_CFLAGS="$CFLAGS"
18821 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18824
18825 #include "xorg-server.h"
18826 #if !defined XV
18827 #error XV not defined
18828 #endif
18829
18830 int
18831 main ()
18832 {
18833
18834 ;
18835 return 0;
18836 }
18837 _ACEOF
18838 if ac_fn_c_try_compile "$LINENO"; then :
18839 _EXT_CHECK=yes
18840 else
18841 _EXT_CHECK=no
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844 CFLAGS="$SAVE_CFLAGS"
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18846 $as_echo_n "checking if XV is defined... " >&6; }
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18848 $as_echo "$_EXT_CHECK" >&6; }
18849 if test "$_EXT_CHECK" != no; then
18850 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18851 fi
18852
18853
18854
18855 SAVE_CFLAGS="$CFLAGS"
18856 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18859
18860 #include "xorg-server.h"
18861 #if !defined DPMSExtension
18862 #error DPMSExtension not defined
18863 #endif
18864
18865 int
18866 main ()
18867 {
18868
18869 ;
18870 return 0;
18871 }
18872 _ACEOF
18873 if ac_fn_c_try_compile "$LINENO"; then :
18874 _EXT_CHECK=yes
18875 else
18876 _EXT_CHECK=no
18877 fi
18878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879 CFLAGS="$SAVE_CFLAGS"
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18881 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18883 $as_echo "$_EXT_CHECK" >&6; }
18884 if test "$_EXT_CHECK" != no; then
18885 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18886 fi
18887
18888
18889 # Checks for libraries.
18890
18891 pkg_failed=no
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18893 $as_echo_n "checking for LIBDRM... " >&6; }
18894
18895 if test -n "$LIBDRM_CFLAGS"; then
18896 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18897 elif test -n "$PKG_CONFIG"; then
18898 if test -n "$PKG_CONFIG" && \
18899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5
18900 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5
18901 ac_status=$?
18902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18903 test $ac_status = 0; }; then
18904 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.58" 2>/dev/null`
18905 test "x$?" != "x0" && pkg_failed=yes
18906 else
18907 pkg_failed=yes
18908 fi
18909 else
18910 pkg_failed=untried
18911 fi
18912 if test -n "$LIBDRM_LIBS"; then
18913 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18914 elif test -n "$PKG_CONFIG"; then
18915 if test -n "$PKG_CONFIG" && \
18916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5
18917 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5
18918 ac_status=$?
18919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18920 test $ac_status = 0; }; then
18921 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.58" 2>/dev/null`
18922 test "x$?" != "x0" && pkg_failed=yes
18923 else
18924 pkg_failed=yes
18925 fi
18926 else
18927 pkg_failed=untried
18928 fi
18929
18930
18931
18932 if test $pkg_failed = yes; then
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18934 $as_echo "no" >&6; }
18935
18936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18937 _pkg_short_errors_supported=yes
18938 else
18939 _pkg_short_errors_supported=no
18940 fi
18941 if test $_pkg_short_errors_supported = yes; then
18942 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1`
18943 else
18944 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1`
18945 fi
18946 # Put the nasty error message in config.log where it belongs
18947 echo "$LIBDRM_PKG_ERRORS" >&5
18948
18949 as_fn_error $? "Package requirements (libdrm >= 2.4.58) were not met:
18950
18951 $LIBDRM_PKG_ERRORS
18952
18953 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18954 installed software in a non-standard prefix.
18955
18956 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18957 and LIBDRM_LIBS to avoid the need to call pkg-config.
18958 See the pkg-config man page for more details." "$LINENO" 5
18959 elif test $pkg_failed = untried; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18964 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18965 is in your PATH or set the PKG_CONFIG environment variable to the full
18966 path to pkg-config.
18967
18968 Alternatively, you may set the environment variables LIBDRM_CFLAGS
18969 and LIBDRM_LIBS to avoid the need to call pkg-config.
18970 See the pkg-config man page for more details.
18971
18972 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18973 See \`config.log' for more details" "$LINENO" 5; }
18974 else
18975 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18976 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18979
18980 fi
18981
18982 pkg_failed=no
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_AMDGPU" >&5
18984 $as_echo_n "checking for LIBDRM_AMDGPU... " >&6; }
18985
18986 if test -n "$LIBDRM_AMDGPU_CFLAGS"; then
18987 pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS"
18988 elif test -n "$PKG_CONFIG"; then
18989 if test -n "$PKG_CONFIG" && \
18990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu\""; } >&5
18991 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu") 2>&5
18992 ac_status=$?
18993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18994 test $ac_status = 0; }; then
18995 pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu" 2>/dev/null`
18996 test "x$?" != "x0" && pkg_failed=yes
18997 else
18998 pkg_failed=yes
18999 fi
19000 else
19001 pkg_failed=untried
19002 fi
19003 if test -n "$LIBDRM_AMDGPU_LIBS"; then
19004 pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS"
19005 elif test -n "$PKG_CONFIG"; then
19006 if test -n "$PKG_CONFIG" && \
19007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu\""; } >&5
19008 ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu") 2>&5
19009 ac_status=$?
19010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19011 test $ac_status = 0; }; then
19012 pkg_cv_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu" 2>/dev/null`
19013 test "x$?" != "x0" && pkg_failed=yes
19014 else
19015 pkg_failed=yes
19016 fi
19017 else
19018 pkg_failed=untried
19019 fi
19020
19021
19022
19023 if test $pkg_failed = yes; then
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19025 $as_echo "no" >&6; }
19026
19027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19028 _pkg_short_errors_supported=yes
19029 else
19030 _pkg_short_errors_supported=no
19031 fi
19032 if test $_pkg_short_errors_supported = yes; then
19033 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu" 2>&1`
19034 else
19035 LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu" 2>&1`
19036 fi
19037 # Put the nasty error message in config.log where it belongs
19038 echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5
19039
19040 as_fn_error $? "Package requirements (libdrm_amdgpu) were not met:
19041
19042 $LIBDRM_AMDGPU_PKG_ERRORS
19043
19044 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19045 installed software in a non-standard prefix.
19046
19047 Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19048 and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19049 See the pkg-config man page for more details." "$LINENO" 5
19050 elif test $pkg_failed = untried; then
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19055 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19056 is in your PATH or set the PKG_CONFIG environment variable to the full
19057 path to pkg-config.
19058
19059 Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19060 and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19061 See the pkg-config man page for more details.
19062
19063 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19064 See \`config.log' for more details" "$LINENO" 5; }
19065 else
19066 LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS
19067 LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19069 $as_echo "yes" >&6; }
19070
19071 fi
19072
19073 pkg_failed=no
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
19075 $as_echo_n "checking for GBM... " >&6; }
19076
19077 if test -n "$GBM_CFLAGS"; then
19078 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
19079 elif test -n "$PKG_CONFIG"; then
19080 if test -n "$PKG_CONFIG" && \
19081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19082 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19083 ac_status=$?
19084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19085 test $ac_status = 0; }; then
19086 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null`
19087 test "x$?" != "x0" && pkg_failed=yes
19088 else
19089 pkg_failed=yes
19090 fi
19091 else
19092 pkg_failed=untried
19093 fi
19094 if test -n "$GBM_LIBS"; then
19095 pkg_cv_GBM_LIBS="$GBM_LIBS"
19096 elif test -n "$PKG_CONFIG"; then
19097 if test -n "$PKG_CONFIG" && \
19098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19099 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19100 ac_status=$?
19101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102 test $ac_status = 0; }; then
19103 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null`
19104 test "x$?" != "x0" && pkg_failed=yes
19105 else
19106 pkg_failed=yes
19107 fi
19108 else
19109 pkg_failed=untried
19110 fi
19111
19112
19113
19114 if test $pkg_failed = yes; then
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19116 $as_echo "no" >&6; }
19117
19118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19119 _pkg_short_errors_supported=yes
19120 else
19121 _pkg_short_errors_supported=no
19122 fi
19123 if test $_pkg_short_errors_supported = yes; then
19124 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1`
19125 else
19126 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1`
19127 fi
19128 # Put the nasty error message in config.log where it belongs
19129 echo "$GBM_PKG_ERRORS" >&5
19130
19131 as_fn_error $? "Package requirements (gbm) were not met:
19132
19133 $GBM_PKG_ERRORS
19134
19135 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19136 installed software in a non-standard prefix.
19137
19138 Alternatively, you may set the environment variables GBM_CFLAGS
19139 and GBM_LIBS to avoid the need to call pkg-config.
19140 See the pkg-config man page for more details." "$LINENO" 5
19141 elif test $pkg_failed = untried; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19146 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19147 is in your PATH or set the PKG_CONFIG environment variable to the full
19148 path to pkg-config.
19149
19150 Alternatively, you may set the environment variables GBM_CFLAGS
19151 and GBM_LIBS to avoid the need to call pkg-config.
19152 See the pkg-config man page for more details.
19153
19154 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19155 See \`config.log' for more details" "$LINENO" 5; }
19156 else
19157 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
19158 GBM_LIBS=$pkg_cv_GBM_LIBS
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160 $as_echo "yes" >&6; }
19161
19162 fi
19163
19164 # Obtain compiler/linker options for the driver dependencies
19165
19166 pkg_failed=no
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19168 $as_echo_n "checking for XORG... " >&6; }
19169
19170 if test -n "$XORG_CFLAGS"; then
19171 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19172 elif test -n "$PKG_CONFIG"; then
19173 if test -n "$PKG_CONFIG" && \
19174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19175 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19176 ac_status=$?
19177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19178 test $ac_status = 0; }; then
19179 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19180 test "x$?" != "x0" && pkg_failed=yes
19181 else
19182 pkg_failed=yes
19183 fi
19184 else
19185 pkg_failed=untried
19186 fi
19187 if test -n "$XORG_LIBS"; then
19188 pkg_cv_XORG_LIBS="$XORG_LIBS"
19189 elif test -n "$PKG_CONFIG"; then
19190 if test -n "$PKG_CONFIG" && \
19191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19192 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19193 ac_status=$?
19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195 test $ac_status = 0; }; then
19196 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19197 test "x$?" != "x0" && pkg_failed=yes
19198 else
19199 pkg_failed=yes
19200 fi
19201 else
19202 pkg_failed=untried
19203 fi
19204
19205
19206
19207 if test $pkg_failed = yes; then
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209 $as_echo "no" >&6; }
19210
19211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19212 _pkg_short_errors_supported=yes
19213 else
19214 _pkg_short_errors_supported=no
19215 fi
19216 if test $_pkg_short_errors_supported = yes; then
19217 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19218 else
19219 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19220 fi
19221 # Put the nasty error message in config.log where it belongs
19222 echo "$XORG_PKG_ERRORS" >&5
19223
19224 as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19225
19226 $XORG_PKG_ERRORS
19227
19228 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19229 installed software in a non-standard prefix.
19230
19231 Alternatively, you may set the environment variables XORG_CFLAGS
19232 and XORG_LIBS to avoid the need to call pkg-config.
19233 See the pkg-config man page for more details." "$LINENO" 5
19234 elif test $pkg_failed = untried; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19239 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19240 is in your PATH or set the PKG_CONFIG environment variable to the full
19241 path to pkg-config.
19242
19243 Alternatively, you may set the environment variables XORG_CFLAGS
19244 and XORG_LIBS to avoid the need to call pkg-config.
19245 See the pkg-config man page for more details.
19246
19247 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19248 See \`config.log' for more details" "$LINENO" 5; }
19249 else
19250 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19251 XORG_LIBS=$pkg_cv_XORG_LIBS
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19253 $as_echo "yes" >&6; }
19254
19255 fi
19256
19257 pkg_failed=no
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19259 $as_echo_n "checking for XEXT... " >&6; }
19260
19261 if test -n "$XEXT_CFLAGS"; then
19262 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19263 elif test -n "$PKG_CONFIG"; then
19264 if test -n "$PKG_CONFIG" && \
19265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19266 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19267 ac_status=$?
19268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19269 test $ac_status = 0; }; then
19270 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19271 test "x$?" != "x0" && pkg_failed=yes
19272 else
19273 pkg_failed=yes
19274 fi
19275 else
19276 pkg_failed=untried
19277 fi
19278 if test -n "$XEXT_LIBS"; then
19279 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19280 elif test -n "$PKG_CONFIG"; then
19281 if test -n "$PKG_CONFIG" && \
19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19283 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; then
19287 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19288 test "x$?" != "x0" && pkg_failed=yes
19289 else
19290 pkg_failed=yes
19291 fi
19292 else
19293 pkg_failed=untried
19294 fi
19295
19296
19297
19298 if test $pkg_failed = yes; then
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19301
19302 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19303 _pkg_short_errors_supported=yes
19304 else
19305 _pkg_short_errors_supported=no
19306 fi
19307 if test $_pkg_short_errors_supported = yes; then
19308 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19309 else
19310 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19311 fi
19312 # Put the nasty error message in config.log where it belongs
19313 echo "$XEXT_PKG_ERRORS" >&5
19314
19315 HAVE_XEXTPROTO_71="no"
19316 elif test $pkg_failed = untried; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19319 HAVE_XEXTPROTO_71="no"
19320 else
19321 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19322 XEXT_LIBS=$pkg_cv_XEXT_LIBS
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19325 HAVE_XEXTPROTO_71="yes";
19326 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19327
19328 fi
19329 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
19330 HAVE_XEXTPROTO_71_TRUE=
19331 HAVE_XEXTPROTO_71_FALSE='#'
19332 else
19333 HAVE_XEXTPROTO_71_TRUE='#'
19334 HAVE_XEXTPROTO_71_FALSE=
19335 fi
19336
19337
19338 # Section "OutputClass" is only supported as of xserver 1.16
19339 if test -n "$PKG_CONFIG" && \
19340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
19341 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
19342 ac_status=$?
19343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19344 test $ac_status = 0; }; then
19345 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
19346 else
19347 sysconfigdir=""
19348 fi
19349 if test "x$sysconfigdir" != "x"; then
19350 HAS_XORG_CONF_DIR_TRUE=
19351 HAS_XORG_CONF_DIR_FALSE='#'
19352 else
19353 HAS_XORG_CONF_DIR_TRUE='#'
19354 HAS_XORG_CONF_DIR_FALSE=
19355 fi
19356
19357
19358 # Define a configure option for an alternate X Server configuration directory
19359
19360 # Check whether --with-xorg-conf-dir was given.
19361 if test "${with_xorg_conf_dir+set}" = set; then :
19362 withval=$with_xorg_conf_dir; configdir="$withval"
19363 else
19364 configdir='${prefix}/share/X11/xorg.conf.d'
19365 fi
19366
19367
19368
19369 # Check whether --enable-udev was given.
19370 if test "${enable_udev+set}" = set; then :
19371 enableval=$enable_udev; enable_udev="$enableval"
19372 else
19373 enable_udev=auto
19374 fi
19375
19376 if test "x$enable_udev" != "xno"; then
19377
19378 pkg_failed=no
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19380 $as_echo_n "checking for LIBUDEV... " >&6; }
19381
19382 if test -n "$LIBUDEV_CFLAGS"; then
19383 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19384 elif test -n "$PKG_CONFIG"; then
19385 if test -n "$PKG_CONFIG" && \
19386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19387 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19388 ac_status=$?
19389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19390 test $ac_status = 0; }; then
19391 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19392 test "x$?" != "x0" && pkg_failed=yes
19393 else
19394 pkg_failed=yes
19395 fi
19396 else
19397 pkg_failed=untried
19398 fi
19399 if test -n "$LIBUDEV_LIBS"; then
19400 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19401 elif test -n "$PKG_CONFIG"; then
19402 if test -n "$PKG_CONFIG" && \
19403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19404 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19405 ac_status=$?
19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; then
19408 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19409 test "x$?" != "x0" && pkg_failed=yes
19410 else
19411 pkg_failed=yes
19412 fi
19413 else
19414 pkg_failed=untried
19415 fi
19416
19417
19418
19419 if test $pkg_failed = yes; then
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 $as_echo "no" >&6; }
19422
19423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19424 _pkg_short_errors_supported=yes
19425 else
19426 _pkg_short_errors_supported=no
19427 fi
19428 if test $_pkg_short_errors_supported = yes; then
19429 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19430 else
19431 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19432 fi
19433 # Put the nasty error message in config.log where it belongs
19434 echo "$LIBUDEV_PKG_ERRORS" >&5
19435
19436 LIBUDEV=no
19437 elif test $pkg_failed = untried; then
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439 $as_echo "no" >&6; }
19440 LIBUDEV=no
19441 else
19442 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19443 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19445 $as_echo "yes" >&6; }
19446 LIBUDEV=yes
19447 fi
19448 if test "x$LIBUDEV" = xyes; then
19449
19450 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19451
19452 elif test "x$enable_udev" != "xauto"; then
19453 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
19454 fi
19455 fi
19456 if test x$LIBUDEV = xyes; then
19457 LIBUDEV_TRUE=
19458 LIBUDEV_FALSE='#'
19459 else
19460 LIBUDEV_TRUE='#'
19461 LIBUDEV_FALSE=
19462 fi
19463
19464
19465 SAVE_CPPFLAGS="$CPPFLAGS"
19466 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19467
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19469 $as_echo_n "checking whether to include GLAMOR support... " >&6; }
19470 # Check whether --enable-glamor was given.
19471 if test "${enable_glamor+set}" = set; then :
19472 enableval=$enable_glamor; GLAMOR="$enableval"
19473 else
19474 GLAMOR=yes
19475 fi
19476
19477
19478 if test "x$GLAMOR" != "xno"; then
19479 for ac_header in glamor.h
19480 do :
19481 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19482 "
19483 if test "x$ac_cv_header_glamor_h" = xyes; then :
19484 cat >>confdefs.h <<_ACEOF
19485 #define HAVE_GLAMOR_H 1
19486 _ACEOF
19487 GLAMOR_H="yes"
19488 else
19489 GLAMOR_H="no"
19490 fi
19491
19492 done
19493
19494
19495 if test "x$GLAMOR_H" = xyes; then
19496 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
19497 #include \"glamor.h\"
19498 "
19499 if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
19500 GLAMOR_XSERVER="yes"
19501 else
19502 GLAMOR_XSERVER="no"
19503 fi
19504
19505
19506 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
19507 #include \"glamor.h\"
19508 "
19509 if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then :
19510
19511 $as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
19512
19513 fi
19514
19515
19516 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
19517 #include \"glamor.h\"
19518 "
19519 if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then :
19520
19521 $as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
19522
19523 fi
19524
19525 fi
19526
19527
19528 pkg_failed=no
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5
19530 $as_echo_n "checking for LIBGL... " >&6; }
19531
19532 if test -n "$LIBGL_CFLAGS"; then
19533 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
19534 elif test -n "$PKG_CONFIG"; then
19535 if test -n "$PKG_CONFIG" && \
19536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19537 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19538 ac_status=$?
19539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540 test $ac_status = 0; }; then
19541 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
19542 test "x$?" != "x0" && pkg_failed=yes
19543 else
19544 pkg_failed=yes
19545 fi
19546 else
19547 pkg_failed=untried
19548 fi
19549 if test -n "$LIBGL_LIBS"; then
19550 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
19551 elif test -n "$PKG_CONFIG"; then
19552 if test -n "$PKG_CONFIG" && \
19553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19554 ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19555 ac_status=$?
19556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19557 test $ac_status = 0; }; then
19558 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
19559 test "x$?" != "x0" && pkg_failed=yes
19560 else
19561 pkg_failed=yes
19562 fi
19563 else
19564 pkg_failed=untried
19565 fi
19566
19567
19568
19569 if test $pkg_failed = yes; then
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571 $as_echo "no" >&6; }
19572
19573 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19574 _pkg_short_errors_supported=yes
19575 else
19576 _pkg_short_errors_supported=no
19577 fi
19578 if test $_pkg_short_errors_supported = yes; then
19579 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
19580 else
19581 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
19582 fi
19583 # Put the nasty error message in config.log where it belongs
19584 echo "$LIBGL_PKG_ERRORS" >&5
19585
19586 as_fn_error $? "Package requirements (gl) were not met:
19587
19588 $LIBGL_PKG_ERRORS
19589
19590 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19591 installed software in a non-standard prefix.
19592
19593 Alternatively, you may set the environment variables LIBGL_CFLAGS
19594 and LIBGL_LIBS to avoid the need to call pkg-config.
19595 See the pkg-config man page for more details." "$LINENO" 5
19596 elif test $pkg_failed = untried; then
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19598 $as_echo "no" >&6; }
19599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19601 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19602 is in your PATH or set the PKG_CONFIG environment variable to the full
19603 path to pkg-config.
19604
19605 Alternatively, you may set the environment variables LIBGL_CFLAGS
19606 and LIBGL_LIBS to avoid the need to call pkg-config.
19607 See the pkg-config man page for more details.
19608
19609 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19610 See \`config.log' for more details" "$LINENO" 5; }
19611 else
19612 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
19613 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19615 $as_echo "yes" >&6; }
19616
19617 fi
19618
19619 if test "x$GLAMOR_XSERVER" != xyes; then
19620
19621 pkg_failed=no
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19623 $as_echo_n "checking for LIBGLAMOR... " >&6; }
19624
19625 if test -n "$LIBGLAMOR_CFLAGS"; then
19626 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19627 elif test -n "$PKG_CONFIG"; then
19628 if test -n "$PKG_CONFIG" && \
19629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19630 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19631 ac_status=$?
19632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633 test $ac_status = 0; }; then
19634 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
19635 test "x$?" != "x0" && pkg_failed=yes
19636 else
19637 pkg_failed=yes
19638 fi
19639 else
19640 pkg_failed=untried
19641 fi
19642 if test -n "$LIBGLAMOR_LIBS"; then
19643 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19644 elif test -n "$PKG_CONFIG"; then
19645 if test -n "$PKG_CONFIG" && \
19646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19647 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19648 ac_status=$?
19649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19650 test $ac_status = 0; }; then
19651 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
19652 test "x$?" != "x0" && pkg_failed=yes
19653 else
19654 pkg_failed=yes
19655 fi
19656 else
19657 pkg_failed=untried
19658 fi
19659
19660
19661
19662 if test $pkg_failed = yes; then
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19665
19666 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19667 _pkg_short_errors_supported=yes
19668 else
19669 _pkg_short_errors_supported=no
19670 fi
19671 if test $_pkg_short_errors_supported = yes; then
19672 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19673 else
19674 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19675 fi
19676 # Put the nasty error message in config.log where it belongs
19677 echo "$LIBGLAMOR_PKG_ERRORS" >&5
19678
19679 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
19680
19681 $LIBGLAMOR_PKG_ERRORS
19682
19683 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19684 installed software in a non-standard prefix.
19685
19686 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19687 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19688 See the pkg-config man page for more details." "$LINENO" 5
19689 elif test $pkg_failed = untried; then
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19694 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19695 is in your PATH or set the PKG_CONFIG environment variable to the full
19696 path to pkg-config.
19697
19698 Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19699 and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19700 See the pkg-config man page for more details.
19701
19702 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19703 See \`config.log' for more details" "$LINENO" 5; }
19704 else
19705 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19706 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19708 $as_echo "yes" >&6; }
19709
19710 fi
19711
19712 pkg_failed=no
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19714 $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19715
19716 if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19717 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
19718 elif test -n "$PKG_CONFIG"; then
19719 if test -n "$PKG_CONFIG" && \
19720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19721 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19722 ac_status=$?
19723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724 test $ac_status = 0; }; then
19725 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19726 test "x$?" != "x0" && pkg_failed=yes
19727 else
19728 pkg_failed=yes
19729 fi
19730 else
19731 pkg_failed=untried
19732 fi
19733 if test -n "$LIBGLAMOR_EGL_LIBS"; then
19734 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19735 elif test -n "$PKG_CONFIG"; then
19736 if test -n "$PKG_CONFIG" && \
19737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19738 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741 test $ac_status = 0; }; then
19742 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19743 test "x$?" != "x0" && pkg_failed=yes
19744 else
19745 pkg_failed=yes
19746 fi
19747 else
19748 pkg_failed=untried
19749 fi
19750
19751
19752
19753 if test $pkg_failed = yes; then
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755 $as_echo "no" >&6; }
19756
19757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19758 _pkg_short_errors_supported=yes
19759 else
19760 _pkg_short_errors_supported=no
19761 fi
19762 if test $_pkg_short_errors_supported = yes; then
19763 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19764 else
19765 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19766 fi
19767 # Put the nasty error message in config.log where it belongs
19768 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19769
19770 as_fn_error $? "Package requirements (glamor-egl) were not met:
19771
19772 $LIBGLAMOR_EGL_PKG_ERRORS
19773
19774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19775 installed software in a non-standard prefix.
19776
19777 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19778 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19779 See the pkg-config man page for more details." "$LINENO" 5
19780 elif test $pkg_failed = untried; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19785 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19786 is in your PATH or set the PKG_CONFIG environment variable to the full
19787 path to pkg-config.
19788
19789 Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19790 and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19791 See the pkg-config man page for more details.
19792
19793 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19794 See \`config.log' for more details" "$LINENO" 5; }
19795 else
19796 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19797 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799 $as_echo "yes" >&6; }
19800
19801 fi
19802 fi
19803
19804 $as_echo "#define USE_GLAMOR 1" >>confdefs.h
19805
19806 else
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19808 $as_echo "$GLAMOR" >&6; }
19809 fi
19810 if test x$GLAMOR != xno; then
19811 GLAMOR_TRUE=
19812 GLAMOR_FALSE='#'
19813 else
19814 GLAMOR_TRUE='#'
19815 GLAMOR_FALSE=
19816 fi
19817
19818
19819 ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
19820 #include <X11/Xfuncproto.h>
19821 #include <X11/extensions/renderproto.h>
19822 #include <xorg-server.h>
19823 #include <picture.h>
19824 #include <glyphstr.h>
19825 #include <fbpict.h>
19826 "
19827 if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then :
19828
19829 $as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h
19830
19831 fi
19832
19833
19834 ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19835 #include <xf86Cursor.h>
19836 "
19837 if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19838
19839 $as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19840
19841 fi
19842
19843
19844 ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
19845 #include \"xorg-server.h\"
19846 #include \"list.h\"
19847 "
19848 if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
19849
19850 $as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
19851
19852 fi
19853
19854
19855 ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
19856 #include <gbm.h>
19857 "
19858 if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
19859
19860 $as_echo "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h
19861
19862 fi
19863
19864
19865 for ac_header in misyncshm.h
19866 do :
19867 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
19868 #include <X11/Xfuncproto.h>
19869 #include <xorg-server.h>
19870 #include <screenint.h>
19871 "
19872 if test "x$ac_cv_header_misyncshm_h" = xyes; then :
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_MISYNCSHM_H 1
19875 _ACEOF
19876
19877 fi
19878
19879 done
19880
19881
19882 for ac_header in present.h
19883 do :
19884 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
19885 #include <X11/Xproto.h>
19886 #include <X11/X.h>
19887 #include \"xorg-server.h\"
19888 "
19889 if test "x$ac_cv_header_present_h" = xyes; then :
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_PRESENT_H 1
19892 _ACEOF
19893
19894 fi
19895
19896 done
19897
19898
19899 for ac_header in dri3.h
19900 do :
19901 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
19902 #include <xorg-server.h>
19903 "
19904 if test "x$ac_cv_header_dri3_h" = xyes; then :
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_DRI3_H 1
19907 _ACEOF
19908
19909 fi
19910
19911 done
19912
19913
19914 CPPFLAGS="$SAVE_CPPFLAGS"
19915
19916 # Checks for headers/macros for byte swapping
19917 # Known variants:
19918 # <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
19919 # <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19920 # <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19921 # and a fallback to local macros if none of the above are found
19922
19923 # if <byteswap.h> is found, assume it's the correct version
19924 for ac_header in byteswap.h
19925 do :
19926 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19927 if test "x$ac_cv_header_byteswap_h" = xyes; then :
19928 cat >>confdefs.h <<_ACEOF
19929 #define HAVE_BYTESWAP_H 1
19930 _ACEOF
19931
19932 fi
19933
19934 done
19935
19936
19937 # if <sys/endian.h> is found, have to check which version
19938 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19939 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19940 HAVE_SYS_ENDIAN_H="yes"
19941 else
19942 HAVE_SYS_ENDIAN_H="no"
19943 fi
19944
19945
19946
19947 if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19949 $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19952
19953 #include <sys/types.h>
19954 #include <sys/endian.h>
19955
19956 int
19957 main ()
19958 {
19959
19960 int a = 1, b;
19961 b = __swap16(a);
19962
19963 ;
19964 return 0;
19965 }
19966
19967 _ACEOF
19968 if ac_fn_c_try_link "$LINENO"; then :
19969 SYS_ENDIAN__SWAP='yes'
19970 else
19971 SYS_ENDIAN__SWAP='no'
19972 fi
19973 rm -f core conftest.err conftest.$ac_objext \
19974 conftest$ac_exeext conftest.$ac_ext
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19976 $as_echo "$SYS_ENDIAN__SWAP" >&6; }
19977
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19979 $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19982
19983 #include <sys/types.h>
19984 #include <sys/endian.h>
19985
19986 int
19987 main ()
19988 {
19989
19990 int a = 1, b;
19991 b = bswap16(a);
19992
19993 ;
19994 return 0;
19995 }
19996
19997 _ACEOF
19998 if ac_fn_c_try_link "$LINENO"; then :
19999 SYS_ENDIAN_BSWAP='yes'
20000 else
20001 SYS_ENDIAN_BSWAP='no'
20002 fi
20003 rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20006 $as_echo "$SYS_ENDIAN_BSWAP" >&6; }
20007
20008 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20009 USE_SYS_ENDIAN_H=yes
20010 BSWAP=bswap
20011 else
20012 if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20013 USE_SYS_ENDIAN_H=yes
20014 BSWAP=__swap
20015 else
20016 USE_SYS_ENDIAN_H=no
20017 fi
20018 fi
20019
20020 if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20021
20022 $as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
20023
20024
20025 cat >>confdefs.h <<_ACEOF
20026 #define bswap_16 ${BSWAP}16
20027 _ACEOF
20028
20029
20030 cat >>confdefs.h <<_ACEOF
20031 #define bswap_32 ${BSWAP}32
20032 _ACEOF
20033
20034
20035 cat >>confdefs.h <<_ACEOF
20036 #define bswap_64 ${BSWAP}64
20037 _ACEOF
20038
20039 fi
20040 fi
20041
20042
20043
20044 DRIVER_NAME=amdgpu
20045
20046
20047 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
20048
20049 cat >confcache <<\_ACEOF
20050 # This file is a shell script that caches the results of configure
20051 # tests run on this system so they can be shared between configure
20052 # scripts and configure runs, see configure's option --config-cache.
20053 # It is not useful on other systems. If it contains results you don't
20054 # want to keep, you may remove or edit it.
20055 #
20056 # config.status only pays attention to the cache file if you give it
20057 # the --recheck option to rerun configure.
20058 #
20059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20061 # following values.
20062
20063 _ACEOF
20064
20065 # The following way of writing the cache mishandles newlines in values,
20066 # but we know of no workaround that is simple, portable, and efficient.
20067 # So, we kill variables containing newlines.
20068 # Ultrix sh set writes to stderr and can't be redirected directly,
20069 # and sets the high bit in the cache file unless we assign to the vars.
20070 (
20071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20072 eval ac_val=\$$ac_var
20073 case $ac_val in #(
20074 *${as_nl}*)
20075 case $ac_var in #(
20076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20078 esac
20079 case $ac_var in #(
20080 _ | IFS | as_nl) ;; #(
20081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20082 *) { eval $ac_var=; unset $ac_var;} ;;
20083 esac ;;
20084 esac
20085 done
20086
20087 (set) 2>&1 |
20088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20089 *${as_nl}ac_space=\ *)
20090 # `set' does not quote correctly, so add quotes: double-quote
20091 # substitution turns \\\\ into \\, and sed turns \\ into \.
20092 sed -n \
20093 "s/'/'\\\\''/g;
20094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20095 ;; #(
20096 *)
20097 # `set' quotes correctly as required by POSIX, so do not add quotes.
20098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20099 ;;
20100 esac |
20101 sort
20102 ) |
20103 sed '
20104 /^ac_cv_env_/b end
20105 t clear
20106 :clear
20107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20108 t end
20109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20110 :end' >>confcache
20111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20112 if test -w "$cache_file"; then
20113 if test "x$cache_file" != "x/dev/null"; then
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20115 $as_echo "$as_me: updating cache $cache_file" >&6;}
20116 if test ! -f "$cache_file" || test -h "$cache_file"; then
20117 cat confcache >"$cache_file"
20118 else
20119 case $cache_file in #(
20120 */* | ?:*)
20121 mv -f confcache "$cache_file"$$ &&
20122 mv -f "$cache_file"$$ "$cache_file" ;; #(
20123 *)
20124 mv -f confcache "$cache_file" ;;
20125 esac
20126 fi
20127 fi
20128 else
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20130 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20131 fi
20132 fi
20133 rm -f confcache
20134
20135 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20136 # Let make expand exec_prefix.
20137 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20138
20139 DEFS=-DHAVE_CONFIG_H
20140
20141 ac_libobjs=
20142 ac_ltlibobjs=
20143 U=
20144 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20145 # 1. Remove the extension, and $U if already installed.
20146 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20147 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20148 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20149 # will be set to the directory where LIBOBJS objects are built.
20150 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20151 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20152 done
20153 LIBOBJS=$ac_libobjs
20154
20155 LTLIBOBJS=$ac_ltlibobjs
20156
20157
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20159 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20160 if test -n "$am_sleep_pid"; then
20161 # Hide warnings about reused PIDs.
20162 wait $am_sleep_pid 2>/dev/null
20163 fi
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20165 $as_echo "done" >&6; }
20166 if test -n "$EXEEXT"; then
20167 am__EXEEXT_TRUE=
20168 am__EXEEXT_FALSE='#'
20169 else
20170 am__EXEEXT_TRUE='#'
20171 am__EXEEXT_FALSE=
20172 fi
20173
20174 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20175 as_fn_error $? "conditional \"AMDEP\" was never defined.
20176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20177 fi
20178 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20179 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20181 fi
20182 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20183 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20185 fi
20186 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20187 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20189 fi
20190 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20191 as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20193 fi
20194 if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20195 as_fn_error $? "conditional \"GLAMOR\" was never defined.
20196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20197 fi
20198
20199 : "${CONFIG_STATUS=./config.status}"
20200 ac_write_fail=0
20201 ac_clean_files_save=$ac_clean_files
20202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20205 as_write_fail=0
20206 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20207 #! $SHELL
20208 # Generated by $as_me.
20209 # Run this file to recreate the current configuration.
20210 # Compiler output produced by configure, useful for debugging
20211 # configure, is in config.log if it exists.
20212
20213 debug=false
20214 ac_cs_recheck=false
20215 ac_cs_silent=false
20216
20217 SHELL=\${CONFIG_SHELL-$SHELL}
20218 export SHELL
20219 _ASEOF
20220 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20221 ## -------------------- ##
20222 ## M4sh Initialization. ##
20223 ## -------------------- ##
20224
20225 # Be more Bourne compatible
20226 DUALCASE=1; export DUALCASE # for MKS sh
20227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20228 emulate sh
20229 NULLCMD=:
20230 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20231 # is contrary to our usage. Disable this feature.
20232 alias -g '${1+"$@"}'='"$@"'
20233 setopt NO_GLOB_SUBST
20234 else
20235 case `(set -o) 2>/dev/null` in #(
20236 *posix*) :
20237 set -o posix ;; #(
20238 *) :
20239 ;;
20240 esac
20241 fi
20242
20243
20244 as_nl='
20245 '
20246 export as_nl
20247 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20248 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20251 # Prefer a ksh shell builtin over an external printf program on Solaris,
20252 # but without wasting forks for bash or zsh.
20253 if test -z "$BASH_VERSION$ZSH_VERSION" \
20254 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20255 as_echo='print -r --'
20256 as_echo_n='print -rn --'
20257 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20258 as_echo='printf %s\n'
20259 as_echo_n='printf %s'
20260 else
20261 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20262 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20263 as_echo_n='/usr/ucb/echo -n'
20264 else
20265 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20266 as_echo_n_body='eval
20267 arg=$1;
20268 case $arg in #(
20269 *"$as_nl"*)
20270 expr "X$arg" : "X\\(.*\\)$as_nl";
20271 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20272 esac;
20273 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20274 '
20275 export as_echo_n_body
20276 as_echo_n='sh -c $as_echo_n_body as_echo'
20277 fi
20278 export as_echo_body
20279 as_echo='sh -c $as_echo_body as_echo'
20280 fi
20281
20282 # The user is always right.
20283 if test "${PATH_SEPARATOR+set}" != set; then
20284 PATH_SEPARATOR=:
20285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20286 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20287 PATH_SEPARATOR=';'
20288 }
20289 fi
20290
20291
20292 # IFS
20293 # We need space, tab and new line, in precisely that order. Quoting is
20294 # there to prevent editors from complaining about space-tab.
20295 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20296 # splitting by setting IFS to empty value.)
20297 IFS=" "" $as_nl"
20298
20299 # Find who we are. Look in the path if we contain no directory separator.
20300 as_myself=
20301 case $0 in #((
20302 *[\\/]* ) as_myself=$0 ;;
20303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20304 for as_dir in $PATH
20305 do
20306 IFS=$as_save_IFS
20307 test -z "$as_dir" && as_dir=.
20308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20309 done
20310 IFS=$as_save_IFS
20311
20312 ;;
20313 esac
20314 # We did not find ourselves, most probably we were run as `sh COMMAND'
20315 # in which case we are not to be found in the path.
20316 if test "x$as_myself" = x; then
20317 as_myself=$0
20318 fi
20319 if test ! -f "$as_myself"; then
20320 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20321 exit 1
20322 fi
20323
20324 # Unset variables that we do not need and which cause bugs (e.g. in
20325 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20326 # suppresses any "Segmentation fault" message there. '((' could
20327 # trigger a bug in pdksh 5.2.14.
20328 for as_var in BASH_ENV ENV MAIL MAILPATH
20329 do eval test x\${$as_var+set} = xset \
20330 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20331 done
20332 PS1='$ '
20333 PS2='> '
20334 PS4='+ '
20335
20336 # NLS nuisances.
20337 LC_ALL=C
20338 export LC_ALL
20339 LANGUAGE=C
20340 export LANGUAGE
20341
20342 # CDPATH.
20343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20344
20345
20346 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20347 # ----------------------------------------
20348 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20349 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20350 # script with STATUS, using 1 if that was 0.
20351 as_fn_error ()
20352 {
20353 as_status=$1; test $as_status -eq 0 && as_status=1
20354 if test "$4"; then
20355 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20356 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20357 fi
20358 $as_echo "$as_me: error: $2" >&2
20359 as_fn_exit $as_status
20360 } # as_fn_error
20361
20362
20363 # as_fn_set_status STATUS
20364 # -----------------------
20365 # Set $? to STATUS, without forking.
20366 as_fn_set_status ()
20367 {
20368 return $1
20369 } # as_fn_set_status
20370
20371 # as_fn_exit STATUS
20372 # -----------------
20373 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20374 as_fn_exit ()
20375 {
20376 set +e
20377 as_fn_set_status $1
20378 exit $1
20379 } # as_fn_exit
20380
20381 # as_fn_unset VAR
20382 # ---------------
20383 # Portably unset VAR.
20384 as_fn_unset ()
20385 {
20386 { eval $1=; unset $1;}
20387 }
20388 as_unset=as_fn_unset
20389 # as_fn_append VAR VALUE
20390 # ----------------------
20391 # Append the text in VALUE to the end of the definition contained in VAR. Take
20392 # advantage of any shell optimizations that allow amortized linear growth over
20393 # repeated appends, instead of the typical quadratic growth present in naive
20394 # implementations.
20395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20396 eval 'as_fn_append ()
20397 {
20398 eval $1+=\$2
20399 }'
20400 else
20401 as_fn_append ()
20402 {
20403 eval $1=\$$1\$2
20404 }
20405 fi # as_fn_append
20406
20407 # as_fn_arith ARG...
20408 # ------------------
20409 # Perform arithmetic evaluation on the ARGs, and store the result in the
20410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20411 # must be portable across $(()) and expr.
20412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20413 eval 'as_fn_arith ()
20414 {
20415 as_val=$(( $* ))
20416 }'
20417 else
20418 as_fn_arith ()
20419 {
20420 as_val=`expr "$@" || test $? -eq 1`
20421 }
20422 fi # as_fn_arith
20423
20424
20425 if expr a : '\(a\)' >/dev/null 2>&1 &&
20426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20427 as_expr=expr
20428 else
20429 as_expr=false
20430 fi
20431
20432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20433 as_basename=basename
20434 else
20435 as_basename=false
20436 fi
20437
20438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20439 as_dirname=dirname
20440 else
20441 as_dirname=false
20442 fi
20443
20444 as_me=`$as_basename -- "$0" ||
20445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20446 X"$0" : 'X\(//\)$' \| \
20447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20448 $as_echo X/"$0" |
20449 sed '/^.*\/\([^/][^/]*\)\/*$/{
20450 s//\1/
20451 q
20452 }
20453 /^X\/\(\/\/\)$/{
20454 s//\1/
20455 q
20456 }
20457 /^X\/\(\/\).*/{
20458 s//\1/
20459 q
20460 }
20461 s/.*/./; q'`
20462
20463 # Avoid depending upon Character Ranges.
20464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20467 as_cr_digits='0123456789'
20468 as_cr_alnum=$as_cr_Letters$as_cr_digits
20469
20470 ECHO_C= ECHO_N= ECHO_T=
20471 case `echo -n x` in #(((((
20472 -n*)
20473 case `echo 'xy\c'` in
20474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20475 xy) ECHO_C='\c';;
20476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20477 ECHO_T=' ';;
20478 esac;;
20479 *)
20480 ECHO_N='-n';;
20481 esac
20482
20483 rm -f conf$$ conf$$.exe conf$$.file
20484 if test -d conf$$.dir; then
20485 rm -f conf$$.dir/conf$$.file
20486 else
20487 rm -f conf$$.dir
20488 mkdir conf$$.dir 2>/dev/null
20489 fi
20490 if (echo >conf$$.file) 2>/dev/null; then
20491 if ln -s conf$$.file conf$$ 2>/dev/null; then
20492 as_ln_s='ln -s'
20493 # ... but there are two gotchas:
20494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20496 # In both cases, we have to default to `cp -pR'.
20497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20498 as_ln_s='cp -pR'
20499 elif ln conf$$.file conf$$ 2>/dev/null; then
20500 as_ln_s=ln
20501 else
20502 as_ln_s='cp -pR'
20503 fi
20504 else
20505 as_ln_s='cp -pR'
20506 fi
20507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20508 rmdir conf$$.dir 2>/dev/null
20509
20510
20511 # as_fn_mkdir_p
20512 # -------------
20513 # Create "$as_dir" as a directory, including parents if necessary.
20514 as_fn_mkdir_p ()
20515 {
20516
20517 case $as_dir in #(
20518 -*) as_dir=./$as_dir;;
20519 esac
20520 test -d "$as_dir" || eval $as_mkdir_p || {
20521 as_dirs=
20522 while :; do
20523 case $as_dir in #(
20524 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20525 *) as_qdir=$as_dir;;
20526 esac
20527 as_dirs="'$as_qdir' $as_dirs"
20528 as_dir=`$as_dirname -- "$as_dir" ||
20529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20530 X"$as_dir" : 'X\(//\)[^/]' \| \
20531 X"$as_dir" : 'X\(//\)$' \| \
20532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20533 $as_echo X"$as_dir" |
20534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20535 s//\1/
20536 q
20537 }
20538 /^X\(\/\/\)[^/].*/{
20539 s//\1/
20540 q
20541 }
20542 /^X\(\/\/\)$/{
20543 s//\1/
20544 q
20545 }
20546 /^X\(\/\).*/{
20547 s//\1/
20548 q
20549 }
20550 s/.*/./; q'`
20551 test -d "$as_dir" && break
20552 done
20553 test -z "$as_dirs" || eval "mkdir $as_dirs"
20554 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20555
20556
20557 } # as_fn_mkdir_p
20558 if mkdir -p . 2>/dev/null; then
20559 as_mkdir_p='mkdir -p "$as_dir"'
20560 else
20561 test -d ./-p && rmdir ./-p
20562 as_mkdir_p=false
20563 fi
20564
20565
20566 # as_fn_executable_p FILE
20567 # -----------------------
20568 # Test if FILE is an executable regular file.
20569 as_fn_executable_p ()
20570 {
20571 test -f "$1" && test -x "$1"
20572 } # as_fn_executable_p
20573 as_test_x='test -x'
20574 as_executable_p=as_fn_executable_p
20575
20576 # Sed expression to map a string onto a valid CPP name.
20577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20578
20579 # Sed expression to map a string onto a valid variable name.
20580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20581
20582
20583 exec 6>&1
20584 ## ----------------------------------- ##
20585 ## Main body of $CONFIG_STATUS script. ##
20586 ## ----------------------------------- ##
20587 _ASEOF
20588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20589
20590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20591 # Save the log message, to keep $0 and so on meaningful, and to
20592 # report actual input values of CONFIG_FILES etc. instead of their
20593 # values after options handling.
20594 ac_log="
20595 This file was extended by xf86-video-amdgpu $as_me 1.2.0, which was
20596 generated by GNU Autoconf 2.69. Invocation command line was
20597
20598 CONFIG_FILES = $CONFIG_FILES
20599 CONFIG_HEADERS = $CONFIG_HEADERS
20600 CONFIG_LINKS = $CONFIG_LINKS
20601 CONFIG_COMMANDS = $CONFIG_COMMANDS
20602 $ $0 $@
20603
20604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20605 "
20606
20607 _ACEOF
20608
20609 case $ac_config_files in *"
20610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20611 esac
20612
20613 case $ac_config_headers in *"
20614 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20615 esac
20616
20617
20618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20619 # Files that config.status was made for.
20620 config_files="$ac_config_files"
20621 config_headers="$ac_config_headers"
20622 config_commands="$ac_config_commands"
20623
20624 _ACEOF
20625
20626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20627 ac_cs_usage="\
20628 \`$as_me' instantiates files and other configuration actions
20629 from templates according to the current configuration. Unless the files
20630 and actions are specified as TAGs, all are instantiated by default.
20631
20632 Usage: $0 [OPTION]... [TAG]...
20633
20634 -h, --help print this help, then exit
20635 -V, --version print version number and configuration settings, then exit
20636 --config print configuration, then exit
20637 -q, --quiet, --silent
20638 do not print progress messages
20639 -d, --debug don't remove temporary files
20640 --recheck update $as_me by reconfiguring in the same conditions
20641 --file=FILE[:TEMPLATE]
20642 instantiate the configuration file FILE
20643 --header=FILE[:TEMPLATE]
20644 instantiate the configuration header FILE
20645
20646 Configuration files:
20647 $config_files
20648
20649 Configuration headers:
20650 $config_headers
20651
20652 Configuration commands:
20653 $config_commands
20654
20655 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20656
20657 _ACEOF
20658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20660 ac_cs_version="\\
20661 xf86-video-amdgpu config.status 1.2.0
20662 configured by $0, generated by GNU Autoconf 2.69,
20663 with options \\"\$ac_cs_config\\"
20664
20665 Copyright (C) 2012 Free Software Foundation, Inc.
20666 This config.status script is free software; the Free Software Foundation
20667 gives unlimited permission to copy, distribute and modify it."
20668
20669 ac_pwd='$ac_pwd'
20670 srcdir='$srcdir'
20671 INSTALL='$INSTALL'
20672 MKDIR_P='$MKDIR_P'
20673 AWK='$AWK'
20674 test -n "\$AWK" || AWK=awk
20675 _ACEOF
20676
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 # The default lists apply if the user does not specify any file.
20679 ac_need_defaults=:
20680 while test $# != 0
20681 do
20682 case $1 in
20683 --*=?*)
20684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20686 ac_shift=:
20687 ;;
20688 --*=)
20689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20690 ac_optarg=
20691 ac_shift=:
20692 ;;
20693 *)
20694 ac_option=$1
20695 ac_optarg=$2
20696 ac_shift=shift
20697 ;;
20698 esac
20699
20700 case $ac_option in
20701 # Handling of the options.
20702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20703 ac_cs_recheck=: ;;
20704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20705 $as_echo "$ac_cs_version"; exit ;;
20706 --config | --confi | --conf | --con | --co | --c )
20707 $as_echo "$ac_cs_config"; exit ;;
20708 --debug | --debu | --deb | --de | --d | -d )
20709 debug=: ;;
20710 --file | --fil | --fi | --f )
20711 $ac_shift
20712 case $ac_optarg in
20713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20714 '') as_fn_error $? "missing file argument" ;;
20715 esac
20716 as_fn_append CONFIG_FILES " '$ac_optarg'"
20717 ac_need_defaults=false;;
20718 --header | --heade | --head | --hea )
20719 $ac_shift
20720 case $ac_optarg in
20721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20722 esac
20723 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20724 ac_need_defaults=false;;
20725 --he | --h)
20726 # Conflict between --help and --header
20727 as_fn_error $? "ambiguous option: \`$1'
20728 Try \`$0 --help' for more information.";;
20729 --help | --hel | -h )
20730 $as_echo "$ac_cs_usage"; exit ;;
20731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20732 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20733 ac_cs_silent=: ;;
20734
20735 # This is an error.
20736 -*) as_fn_error $? "unrecognized option: \`$1'
20737 Try \`$0 --help' for more information." ;;
20738
20739 *) as_fn_append ac_config_targets " $1"
20740 ac_need_defaults=false ;;
20741
20742 esac
20743 shift
20744 done
20745
20746 ac_configure_extra_args=
20747
20748 if $ac_cs_silent; then
20749 exec 6>/dev/null
20750 ac_configure_extra_args="$ac_configure_extra_args --silent"
20751 fi
20752
20753 _ACEOF
20754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20755 if \$ac_cs_recheck; then
20756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20757 shift
20758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20759 CONFIG_SHELL='$SHELL'
20760 export CONFIG_SHELL
20761 exec "\$@"
20762 fi
20763
20764 _ACEOF
20765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20766 exec 5>>config.log
20767 {
20768 echo
20769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20770 ## Running $as_me. ##
20771 _ASBOX
20772 $as_echo "$ac_log"
20773 } >&5
20774
20775 _ACEOF
20776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20777 #
20778 # INIT-COMMANDS
20779 #
20780 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20781
20782
20783 # The HP-UX ksh and POSIX shell print the target directory to stdout
20784 # if CDPATH is set.
20785 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20786
20787 sed_quote_subst='$sed_quote_subst'
20788 double_quote_subst='$double_quote_subst'
20789 delay_variable_subst='$delay_variable_subst'
20790 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20791 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20792 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20793 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20794 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20795 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20796 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20797 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20798 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20799 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20800 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20801 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20802 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20803 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20804 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20805 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20806 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20807 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20808 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20809 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20810 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20811 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20812 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20813 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20814 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20815 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20816 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20817 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20818 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20819 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20820 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20821 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20822 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20823 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20824 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20825 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20826 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20827 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20828 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20829 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20830 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20831 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20832 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20833 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20834 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20835 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20836 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20837 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20838 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20839 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20840 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20841 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20842 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20843 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20844 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20845 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20846 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20847 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20848 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"`'
20849 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20850 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20851 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20852 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20853 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20854 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20855 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20856 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20857 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20858 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20859 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20860 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20861 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20862 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20863 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20864 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20865 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20866 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20867 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20868 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20869 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20870 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20871 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20872 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20873 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20874 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20875 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20876 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20877 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20878 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20879 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20880 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20881 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20882 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20883 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20884 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20885 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20886 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20887 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20888 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20889 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20890 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20891 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20892 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20893 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20894 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20895 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20896 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20897 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20898 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20899 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20900 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20901 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20902 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20903 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20904 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20905 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20906 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20907 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20908 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20909 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20910 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20911 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20912 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20913 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20914 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20915 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20916 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20917 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20918 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20919 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20920 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20921 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20922 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20923 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20924 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20925
20926 LTCC='$LTCC'
20927 LTCFLAGS='$LTCFLAGS'
20928 compiler='$compiler_DEFAULT'
20929
20930 # A function that is used when there is no print builtin or printf.
20931 func_fallback_echo ()
20932 {
20933 eval 'cat <<_LTECHO_EOF
20934 \$1
20935 _LTECHO_EOF'
20936 }
20937
20938 # Quote evaled strings.
20939 for var in SHELL \
20940 ECHO \
20941 PATH_SEPARATOR \
20942 SED \
20943 GREP \
20944 EGREP \
20945 FGREP \
20946 LD \
20947 NM \
20948 LN_S \
20949 lt_SP2NL \
20950 lt_NL2SP \
20951 reload_flag \
20952 OBJDUMP \
20953 deplibs_check_method \
20954 file_magic_cmd \
20955 file_magic_glob \
20956 want_nocaseglob \
20957 DLLTOOL \
20958 sharedlib_from_linklib_cmd \
20959 AR \
20960 AR_FLAGS \
20961 archiver_list_spec \
20962 STRIP \
20963 RANLIB \
20964 CC \
20965 CFLAGS \
20966 compiler \
20967 lt_cv_sys_global_symbol_pipe \
20968 lt_cv_sys_global_symbol_to_cdecl \
20969 lt_cv_sys_global_symbol_to_import \
20970 lt_cv_sys_global_symbol_to_c_name_address \
20971 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20972 lt_cv_nm_interface \
20973 nm_file_list_spec \
20974 lt_cv_truncate_bin \
20975 lt_prog_compiler_no_builtin_flag \
20976 lt_prog_compiler_pic \
20977 lt_prog_compiler_wl \
20978 lt_prog_compiler_static \
20979 lt_cv_prog_compiler_c_o \
20980 need_locks \
20981 MANIFEST_TOOL \
20982 DSYMUTIL \
20983 NMEDIT \
20984 LIPO \
20985 OTOOL \
20986 OTOOL64 \
20987 shrext_cmds \
20988 export_dynamic_flag_spec \
20989 whole_archive_flag_spec \
20990 compiler_needs_object \
20991 with_gnu_ld \
20992 allow_undefined_flag \
20993 no_undefined_flag \
20994 hardcode_libdir_flag_spec \
20995 hardcode_libdir_separator \
20996 exclude_expsyms \
20997 include_expsyms \
20998 file_list_spec \
20999 variables_saved_for_relink \
21000 libname_spec \
21001 library_names_spec \
21002 soname_spec \
21003 install_override_mode \
21004 finish_eval \
21005 old_striplib \
21006 striplib; do
21007 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21008 *[\\\\\\\`\\"\\\$]*)
21009 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21010 ;;
21011 *)
21012 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21013 ;;
21014 esac
21015 done
21016
21017 # Double-quote double-evaled strings.
21018 for var in reload_cmds \
21019 old_postinstall_cmds \
21020 old_postuninstall_cmds \
21021 old_archive_cmds \
21022 extract_expsyms_cmds \
21023 old_archive_from_new_cmds \
21024 old_archive_from_expsyms_cmds \
21025 archive_cmds \
21026 archive_expsym_cmds \
21027 module_cmds \
21028 module_expsym_cmds \
21029 export_symbols_cmds \
21030 prelink_cmds \
21031 postlink_cmds \
21032 postinstall_cmds \
21033 postuninstall_cmds \
21034 finish_cmds \
21035 sys_lib_search_path_spec \
21036 configure_time_dlsearch_path \
21037 configure_time_lt_sys_library_path; do
21038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21039 *[\\\\\\\`\\"\\\$]*)
21040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21041 ;;
21042 *)
21043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21044 ;;
21045 esac
21046 done
21047
21048 ac_aux_dir='$ac_aux_dir'
21049
21050 # See if we are running on zsh, and set the options that allow our
21051 # commands through without removal of \ escapes INIT.
21052 if test -n "\${ZSH_VERSION+set}"; then
21053 setopt NO_GLOB_SUBST
21054 fi
21055
21056
21057 PACKAGE='$PACKAGE'
21058 VERSION='$VERSION'
21059 RM='$RM'
21060 ofile='$ofile'
21061
21062
21063
21064
21065 _ACEOF
21066
21067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21068
21069 # Handling of arguments.
21070 for ac_config_target in $ac_config_targets
21071 do
21072 case $ac_config_target in
21073 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21074 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21075 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21077 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21078 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21079 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21080
21081 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21082 esac
21083 done
21084
21085
21086 # If the user did not use the arguments to specify the items to instantiate,
21087 # then the envvar interface is used. Set only those that are not.
21088 # We use the long form for the default assignment because of an extremely
21089 # bizarre bug on SunOS 4.1.3.
21090 if $ac_need_defaults; then
21091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21094 fi
21095
21096 # Have a temporary directory for convenience. Make it in the build tree
21097 # simply because there is no reason against having it here, and in addition,
21098 # creating and moving files from /tmp can sometimes cause problems.
21099 # Hook for its removal unless debugging.
21100 # Note that there is a small window in which the directory will not be cleaned:
21101 # after its creation but before its name has been assigned to `$tmp'.
21102 $debug ||
21103 {
21104 tmp= ac_tmp=
21105 trap 'exit_status=$?
21106 : "${ac_tmp:=$tmp}"
21107 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21108 ' 0
21109 trap 'as_fn_exit 1' 1 2 13 15
21110 }
21111 # Create a (secure) tmp directory for tmp files.
21112
21113 {
21114 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21115 test -d "$tmp"
21116 } ||
21117 {
21118 tmp=./conf$$-$RANDOM
21119 (umask 077 && mkdir "$tmp")
21120 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21121 ac_tmp=$tmp
21122
21123 # Set up the scripts for CONFIG_FILES section.
21124 # No need to generate them if there are no CONFIG_FILES.
21125 # This happens for instance with `./config.status config.h'.
21126 if test -n "$CONFIG_FILES"; then
21127
21128
21129 ac_cr=`echo X | tr X '\015'`
21130 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21131 # But we know of no other shell where ac_cr would be empty at this
21132 # point, so we can use a bashism as a fallback.
21133 if test "x$ac_cr" = x; then
21134 eval ac_cr=\$\'\\r\'
21135 fi
21136 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21137 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21138 ac_cs_awk_cr='\\r'
21139 else
21140 ac_cs_awk_cr=$ac_cr
21141 fi
21142
21143 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21144 _ACEOF
21145
21146
21147 {
21148 echo "cat >conf$$subs.awk <<_ACEOF" &&
21149 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21150 echo "_ACEOF"
21151 } >conf$$subs.sh ||
21152 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21153 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21154 ac_delim='%!_!# '
21155 for ac_last_try in false false false false false :; do
21156 . ./conf$$subs.sh ||
21157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21158
21159 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21160 if test $ac_delim_n = $ac_delim_num; then
21161 break
21162 elif $ac_last_try; then
21163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21164 else
21165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21166 fi
21167 done
21168 rm -f conf$$subs.sh
21169
21170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21171 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21172 _ACEOF
21173 sed -n '
21174 h
21175 s/^/S["/; s/!.*/"]=/
21176 p
21177 g
21178 s/^[^!]*!//
21179 :repl
21180 t repl
21181 s/'"$ac_delim"'$//
21182 t delim
21183 :nl
21184 h
21185 s/\(.\{148\}\)..*/\1/
21186 t more1
21187 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21188 p
21189 n
21190 b repl
21191 :more1
21192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21193 p
21194 g
21195 s/.\{148\}//
21196 t nl
21197 :delim
21198 h
21199 s/\(.\{148\}\)..*/\1/
21200 t more2
21201 s/["\\]/\\&/g; s/^/"/; s/$/"/
21202 p
21203 b
21204 :more2
21205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21206 p
21207 g
21208 s/.\{148\}//
21209 t delim
21210 ' <conf$$subs.awk | sed '
21211 /^[^""]/{
21212 N
21213 s/\n//
21214 }
21215 ' >>$CONFIG_STATUS || ac_write_fail=1
21216 rm -f conf$$subs.awk
21217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21218 _ACAWK
21219 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21220 for (key in S) S_is_set[key] = 1
21221 FS = ""
21222
21223 }
21224 {
21225 line = $ 0
21226 nfields = split(line, field, "@")
21227 substed = 0
21228 len = length(field[1])
21229 for (i = 2; i < nfields; i++) {
21230 key = field[i]
21231 keylen = length(key)
21232 if (S_is_set[key]) {
21233 value = S[key]
21234 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21235 len += length(value) + length(field[++i])
21236 substed = 1
21237 } else
21238 len += 1 + keylen
21239 }
21240
21241 print line
21242 }
21243
21244 _ACAWK
21245 _ACEOF
21246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21247 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21248 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21249 else
21250 cat
21251 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21252 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21253 _ACEOF
21254
21255 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21256 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21257 # trailing colons and then remove the whole line if VPATH becomes empty
21258 # (actually we leave an empty line to preserve line numbers).
21259 if test "x$srcdir" = x.; then
21260 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21261 h
21262 s///
21263 s/^/:/
21264 s/[ ]*$/:/
21265 s/:\$(srcdir):/:/g
21266 s/:\${srcdir}:/:/g
21267 s/:@srcdir@:/:/g
21268 s/^:*//
21269 s/:*$//
21270 x
21271 s/\(=[ ]*\).*/\1/
21272 G
21273 s/\n//
21274 s/^[^=]*=[ ]*$//
21275 }'
21276 fi
21277
21278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21279 fi # test -n "$CONFIG_FILES"
21280
21281 # Set up the scripts for CONFIG_HEADERS section.
21282 # No need to generate them if there are no CONFIG_HEADERS.
21283 # This happens for instance with `./config.status Makefile'.
21284 if test -n "$CONFIG_HEADERS"; then
21285 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21286 BEGIN {
21287 _ACEOF
21288
21289 # Transform confdefs.h into an awk script `defines.awk', embedded as
21290 # here-document in config.status, that substitutes the proper values into
21291 # config.h.in to produce config.h.
21292
21293 # Create a delimiter string that does not exist in confdefs.h, to ease
21294 # handling of long lines.
21295 ac_delim='%!_!# '
21296 for ac_last_try in false false :; do
21297 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21298 if test -z "$ac_tt"; then
21299 break
21300 elif $ac_last_try; then
21301 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21302 else
21303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21304 fi
21305 done
21306
21307 # For the awk script, D is an array of macro values keyed by name,
21308 # likewise P contains macro parameters if any. Preserve backslash
21309 # newline sequences.
21310
21311 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21312 sed -n '
21313 s/.\{148\}/&'"$ac_delim"'/g
21314 t rset
21315 :rset
21316 s/^[ ]*#[ ]*define[ ][ ]*/ /
21317 t def
21318 d
21319 :def
21320 s/\\$//
21321 t bsnl
21322 s/["\\]/\\&/g
21323 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21324 D["\1"]=" \3"/p
21325 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21326 d
21327 :bsnl
21328 s/["\\]/\\&/g
21329 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21330 D["\1"]=" \3\\\\\\n"\\/p
21331 t cont
21332 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21333 t cont
21334 d
21335 :cont
21336 n
21337 s/.\{148\}/&'"$ac_delim"'/g
21338 t clear
21339 :clear
21340 s/\\$//
21341 t bsnlc
21342 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21343 d
21344 :bsnlc
21345 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21346 b cont
21347 ' <confdefs.h | sed '
21348 s/'"$ac_delim"'/"\\\
21349 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21350
21351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21352 for (key in D) D_is_set[key] = 1
21353 FS = ""
21354 }
21355 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21356 line = \$ 0
21357 split(line, arg, " ")
21358 if (arg[1] == "#") {
21359 defundef = arg[2]
21360 mac1 = arg[3]
21361 } else {
21362 defundef = substr(arg[1], 2)
21363 mac1 = arg[2]
21364 }
21365 split(mac1, mac2, "(") #)
21366 macro = mac2[1]
21367 prefix = substr(line, 1, index(line, defundef) - 1)
21368 if (D_is_set[macro]) {
21369 # Preserve the white space surrounding the "#".
21370 print prefix "define", macro P[macro] D[macro]
21371 next
21372 } else {
21373 # Replace #undef with comments. This is necessary, for example,
21374 # in the case of _POSIX_SOURCE, which is predefined and required
21375 # on some systems where configure will not decide to define it.
21376 if (defundef == "undef") {
21377 print "/*", prefix defundef, macro, "*/"
21378 next
21379 }
21380 }
21381 }
21382 { print }
21383 _ACAWK
21384 _ACEOF
21385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21386 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21387 fi # test -n "$CONFIG_HEADERS"
21388
21389
21390 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21391 shift
21392 for ac_tag
21393 do
21394 case $ac_tag in
21395 :[FHLC]) ac_mode=$ac_tag; continue;;
21396 esac
21397 case $ac_mode$ac_tag in
21398 :[FHL]*:*);;
21399 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21400 :[FH]-) ac_tag=-:-;;
21401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21402 esac
21403 ac_save_IFS=$IFS
21404 IFS=:
21405 set x $ac_tag
21406 IFS=$ac_save_IFS
21407 shift
21408 ac_file=$1
21409 shift
21410
21411 case $ac_mode in
21412 :L) ac_source=$1;;
21413 :[FH])
21414 ac_file_inputs=
21415 for ac_f
21416 do
21417 case $ac_f in
21418 -) ac_f="$ac_tmp/stdin";;
21419 *) # Look for the file first in the build tree, then in the source tree
21420 # (if the path is not absolute). The absolute path cannot be DOS-style,
21421 # because $ac_f cannot contain `:'.
21422 test -f "$ac_f" ||
21423 case $ac_f in
21424 [\\/$]*) false;;
21425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21426 esac ||
21427 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21428 esac
21429 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21430 as_fn_append ac_file_inputs " '$ac_f'"
21431 done
21432
21433 # Let's still pretend it is `configure' which instantiates (i.e., don't
21434 # use $as_me), people would be surprised to read:
21435 # /* config.h. Generated by config.status. */
21436 configure_input='Generated from '`
21437 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21438 `' by configure.'
21439 if test x"$ac_file" != x-; then
21440 configure_input="$ac_file. $configure_input"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21442 $as_echo "$as_me: creating $ac_file" >&6;}
21443 fi
21444 # Neutralize special characters interpreted by sed in replacement strings.
21445 case $configure_input in #(
21446 *\&* | *\|* | *\\* )
21447 ac_sed_conf_input=`$as_echo "$configure_input" |
21448 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21449 *) ac_sed_conf_input=$configure_input;;
21450 esac
21451
21452 case $ac_tag in
21453 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21455 esac
21456 ;;
21457 esac
21458
21459 ac_dir=`$as_dirname -- "$ac_file" ||
21460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21461 X"$ac_file" : 'X\(//\)[^/]' \| \
21462 X"$ac_file" : 'X\(//\)$' \| \
21463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21464 $as_echo X"$ac_file" |
21465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21466 s//\1/
21467 q
21468 }
21469 /^X\(\/\/\)[^/].*/{
21470 s//\1/
21471 q
21472 }
21473 /^X\(\/\/\)$/{
21474 s//\1/
21475 q
21476 }
21477 /^X\(\/\).*/{
21478 s//\1/
21479 q
21480 }
21481 s/.*/./; q'`
21482 as_dir="$ac_dir"; as_fn_mkdir_p
21483 ac_builddir=.
21484
21485 case "$ac_dir" in
21486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487 *)
21488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21489 # A ".." for each directory in $ac_dir_suffix.
21490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21491 case $ac_top_builddir_sub in
21492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21494 esac ;;
21495 esac
21496 ac_abs_top_builddir=$ac_pwd
21497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21498 # for backward compatibility:
21499 ac_top_builddir=$ac_top_build_prefix
21500
21501 case $srcdir in
21502 .) # We are building in place.
21503 ac_srcdir=.
21504 ac_top_srcdir=$ac_top_builddir_sub
21505 ac_abs_top_srcdir=$ac_pwd ;;
21506 [\\/]* | ?:[\\/]* ) # Absolute name.
21507 ac_srcdir=$srcdir$ac_dir_suffix;
21508 ac_top_srcdir=$srcdir
21509 ac_abs_top_srcdir=$srcdir ;;
21510 *) # Relative name.
21511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21512 ac_top_srcdir=$ac_top_build_prefix$srcdir
21513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21514 esac
21515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21516
21517
21518 case $ac_mode in
21519 :F)
21520 #
21521 # CONFIG_FILE
21522 #
21523
21524 case $INSTALL in
21525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21526 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21527 esac
21528 ac_MKDIR_P=$MKDIR_P
21529 case $MKDIR_P in
21530 [\\/$]* | ?:[\\/]* ) ;;
21531 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21532 esac
21533 _ACEOF
21534
21535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21536 # If the template does not know about datarootdir, expand it.
21537 # FIXME: This hack should be removed a few years after 2.60.
21538 ac_datarootdir_hack=; ac_datarootdir_seen=
21539 ac_sed_dataroot='
21540 /datarootdir/ {
21541 p
21542 q
21543 }
21544 /@datadir@/p
21545 /@docdir@/p
21546 /@infodir@/p
21547 /@localedir@/p
21548 /@mandir@/p'
21549 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21550 *datarootdir*) ac_datarootdir_seen=yes;;
21551 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21553 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21554 _ACEOF
21555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21556 ac_datarootdir_hack='
21557 s&@datadir@&$datadir&g
21558 s&@docdir@&$docdir&g
21559 s&@infodir@&$infodir&g
21560 s&@localedir@&$localedir&g
21561 s&@mandir@&$mandir&g
21562 s&\\\${datarootdir}&$datarootdir&g' ;;
21563 esac
21564 _ACEOF
21565
21566 # Neutralize VPATH when `$srcdir' = `.'.
21567 # Shell code in configure.ac might set extrasub.
21568 # FIXME: do we really want to maintain this feature?
21569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21570 ac_sed_extra="$ac_vpsub
21571 $extrasub
21572 _ACEOF
21573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21574 :t
21575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21576 s|@configure_input@|$ac_sed_conf_input|;t t
21577 s&@top_builddir@&$ac_top_builddir_sub&;t t
21578 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21579 s&@srcdir@&$ac_srcdir&;t t
21580 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21581 s&@top_srcdir@&$ac_top_srcdir&;t t
21582 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21583 s&@builddir@&$ac_builddir&;t t
21584 s&@abs_builddir@&$ac_abs_builddir&;t t
21585 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21586 s&@INSTALL@&$ac_INSTALL&;t t
21587 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21588 $ac_datarootdir_hack
21589 "
21590 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21591 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21592
21593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21594 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21596 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21598 which seems to be undefined. Please make sure it is defined" >&5
21599 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21600 which seems to be undefined. Please make sure it is defined" >&2;}
21601
21602 rm -f "$ac_tmp/stdin"
21603 case $ac_file in
21604 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21605 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21606 esac \
21607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21608 ;;
21609 :H)
21610 #
21611 # CONFIG_HEADER
21612 #
21613 if test x"$ac_file" != x-; then
21614 {
21615 $as_echo "/* $configure_input */" \
21616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21617 } >"$ac_tmp/config.h" \
21618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21619 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21621 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21622 else
21623 rm -f "$ac_file"
21624 mv "$ac_tmp/config.h" "$ac_file" \
21625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21626 fi
21627 else
21628 $as_echo "/* $configure_input */" \
21629 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21630 || as_fn_error $? "could not create -" "$LINENO" 5
21631 fi
21632 # Compute "$ac_file"'s index in $config_headers.
21633 _am_arg="$ac_file"
21634 _am_stamp_count=1
21635 for _am_header in $config_headers :; do
21636 case $_am_header in
21637 $_am_arg | $_am_arg:* )
21638 break ;;
21639 * )
21640 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21641 esac
21642 done
21643 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21644 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$_am_arg" : 'X\(//\)[^/]' \| \
21646 X"$_am_arg" : 'X\(//\)$' \| \
21647 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21648 $as_echo X"$_am_arg" |
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 s//\1/
21651 q
21652 }
21653 /^X\(\/\/\)[^/].*/{
21654 s//\1/
21655 q
21656 }
21657 /^X\(\/\/\)$/{
21658 s//\1/
21659 q
21660 }
21661 /^X\(\/\).*/{
21662 s//\1/
21663 q
21664 }
21665 s/.*/./; q'`/stamp-h$_am_stamp_count
21666 ;;
21667
21668 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21669 $as_echo "$as_me: executing $ac_file commands" >&6;}
21670 ;;
21671 esac
21672
21673
21674 case $ac_file$ac_mode in
21675 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21676 # Older Autoconf quotes --file arguments for eval, but not when files
21677 # are listed without --file. Let's play safe and only enable the eval
21678 # if we detect the quoting.
21679 case $CONFIG_FILES in
21680 *\'*) eval set x "$CONFIG_FILES" ;;
21681 *) set x $CONFIG_FILES ;;
21682 esac
21683 shift
21684 for mf
21685 do
21686 # Strip MF so we end up with the name of the file.
21687 mf=`echo "$mf" | sed -e 's/:.*$//'`
21688 # Check whether this is an Automake generated Makefile or not.
21689 # We used to match only the files named 'Makefile.in', but
21690 # some people rename them; so instead we look at the file content.
21691 # Grep'ing the first line is not enough: some people post-process
21692 # each Makefile.in and add a new line on top of each file to say so.
21693 # Grep'ing the whole file is not good either: AIX grep has a line
21694 # limit of 2048, but all sed's we know have understand at least 4000.
21695 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21696 dirpart=`$as_dirname -- "$mf" ||
21697 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21698 X"$mf" : 'X\(//\)[^/]' \| \
21699 X"$mf" : 'X\(//\)$' \| \
21700 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21701 $as_echo X"$mf" |
21702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21703 s//\1/
21704 q
21705 }
21706 /^X\(\/\/\)[^/].*/{
21707 s//\1/
21708 q
21709 }
21710 /^X\(\/\/\)$/{
21711 s//\1/
21712 q
21713 }
21714 /^X\(\/\).*/{
21715 s//\1/
21716 q
21717 }
21718 s/.*/./; q'`
21719 else
21720 continue
21721 fi
21722 # Extract the definition of DEPDIR, am__include, and am__quote
21723 # from the Makefile without running 'make'.
21724 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21725 test -z "$DEPDIR" && continue
21726 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21727 test -z "$am__include" && continue
21728 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21729 # Find all dependency output files, they are included files with
21730 # $(DEPDIR) in their names. We invoke sed twice because it is the
21731 # simplest approach to changing $(DEPDIR) to its actual value in the
21732 # expansion.
21733 for file in `sed -n "
21734 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21735 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21736 # Make sure the directory exists.
21737 test -f "$dirpart/$file" && continue
21738 fdir=`$as_dirname -- "$file" ||
21739 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740 X"$file" : 'X\(//\)[^/]' \| \
21741 X"$file" : 'X\(//\)$' \| \
21742 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21743 $as_echo X"$file" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21745 s//\1/
21746 q
21747 }
21748 /^X\(\/\/\)[^/].*/{
21749 s//\1/
21750 q
21751 }
21752 /^X\(\/\/\)$/{
21753 s//\1/
21754 q
21755 }
21756 /^X\(\/\).*/{
21757 s//\1/
21758 q
21759 }
21760 s/.*/./; q'`
21761 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21762 # echo "creating $dirpart/$file"
21763 echo '# dummy' > "$dirpart/$file"
21764 done
21765 done
21766 }
21767 ;;
21768 "libtool":C)
21769
21770 # See if we are running on zsh, and set the options that allow our
21771 # commands through without removal of \ escapes.
21772 if test -n "${ZSH_VERSION+set}"; then
21773 setopt NO_GLOB_SUBST
21774 fi
21775
21776 cfgfile=${ofile}T
21777 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21778 $RM "$cfgfile"
21779
21780 cat <<_LT_EOF >> "$cfgfile"
21781 #! $SHELL
21782 # Generated automatically by $as_me ($PACKAGE) $VERSION
21783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21784
21785 # Provide generalized library-building support services.
21786 # Written by Gordon Matzigkeit, 1996
21787
21788 # Copyright (C) 2014 Free Software Foundation, Inc.
21789 # This is free software; see the source for copying conditions. There is NO
21790 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21791
21792 # GNU Libtool is free software; you can redistribute it and/or modify
21793 # it under the terms of the GNU General Public License as published by
21794 # the Free Software Foundation; either version 2 of of the License, or
21795 # (at your option) any later version.
21796 #
21797 # As a special exception to the GNU General Public License, if you
21798 # distribute this file as part of a program or library that is built
21799 # using GNU Libtool, you may include this file under the same
21800 # distribution terms that you use for the rest of that program.
21801 #
21802 # GNU Libtool is distributed in the hope that it will be useful, but
21803 # WITHOUT ANY WARRANTY; without even the implied warranty of
21804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21805 # GNU General Public License for more details.
21806 #
21807 # You should have received a copy of the GNU General Public License
21808 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21809
21810
21811 # The names of the tagged configurations supported by this script.
21812 available_tags=''
21813
21814 # Configured defaults for sys_lib_dlsearch_path munging.
21815 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21816
21817 # ### BEGIN LIBTOOL CONFIG
21818
21819 # Whether or not to build static libraries.
21820 build_old_libs=$enable_static
21821
21822 # Which release of libtool.m4 was used?
21823 macro_version=$macro_version
21824 macro_revision=$macro_revision
21825
21826 # Whether or not to build shared libraries.
21827 build_libtool_libs=$enable_shared
21828
21829 # What type of objects to build.
21830 pic_mode=$pic_mode
21831
21832 # Whether or not to optimize for fast installation.
21833 fast_install=$enable_fast_install
21834
21835 # Shared archive member basename,for filename based shared library versioning on AIX.
21836 shared_archive_member_spec=$shared_archive_member_spec
21837
21838 # Shell to use when invoking shell scripts.
21839 SHELL=$lt_SHELL
21840
21841 # An echo program that protects backslashes.
21842 ECHO=$lt_ECHO
21843
21844 # The PATH separator for the build system.
21845 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21846
21847 # The host system.
21848 host_alias=$host_alias
21849 host=$host
21850 host_os=$host_os
21851
21852 # The build system.
21853 build_alias=$build_alias
21854 build=$build
21855 build_os=$build_os
21856
21857 # A sed program that does not truncate output.
21858 SED=$lt_SED
21859
21860 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21861 Xsed="\$SED -e 1s/^X//"
21862
21863 # A grep program that handles long lines.
21864 GREP=$lt_GREP
21865
21866 # An ERE matcher.
21867 EGREP=$lt_EGREP
21868
21869 # A literal string matcher.
21870 FGREP=$lt_FGREP
21871
21872 # A BSD- or MS-compatible name lister.
21873 NM=$lt_NM
21874
21875 # Whether we need soft or hard links.
21876 LN_S=$lt_LN_S
21877
21878 # What is the maximum length of a command?
21879 max_cmd_len=$max_cmd_len
21880
21881 # Object file suffix (normally "o").
21882 objext=$ac_objext
21883
21884 # Executable file suffix (normally "").
21885 exeext=$exeext
21886
21887 # whether the shell understands "unset".
21888 lt_unset=$lt_unset
21889
21890 # turn spaces into newlines.
21891 SP2NL=$lt_lt_SP2NL
21892
21893 # turn newlines into spaces.
21894 NL2SP=$lt_lt_NL2SP
21895
21896 # convert \$build file names to \$host format.
21897 to_host_file_cmd=$lt_cv_to_host_file_cmd
21898
21899 # convert \$build files to toolchain format.
21900 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21901
21902 # An object symbol dumper.
21903 OBJDUMP=$lt_OBJDUMP
21904
21905 # Method to check whether dependent libraries are shared objects.
21906 deplibs_check_method=$lt_deplibs_check_method
21907
21908 # Command to use when deplibs_check_method = "file_magic".
21909 file_magic_cmd=$lt_file_magic_cmd
21910
21911 # How to find potential files when deplibs_check_method = "file_magic".
21912 file_magic_glob=$lt_file_magic_glob
21913
21914 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21915 want_nocaseglob=$lt_want_nocaseglob
21916
21917 # DLL creation program.
21918 DLLTOOL=$lt_DLLTOOL
21919
21920 # Command to associate shared and link libraries.
21921 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21922
21923 # The archiver.
21924 AR=$lt_AR
21925
21926 # Flags to create an archive.
21927 AR_FLAGS=$lt_AR_FLAGS
21928
21929 # How to feed a file listing to the archiver.
21930 archiver_list_spec=$lt_archiver_list_spec
21931
21932 # A symbol stripping program.
21933 STRIP=$lt_STRIP
21934
21935 # Commands used to install an old-style archive.
21936 RANLIB=$lt_RANLIB
21937 old_postinstall_cmds=$lt_old_postinstall_cmds
21938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21939
21940 # Whether to use a lock for old archive extraction.
21941 lock_old_archive_extraction=$lock_old_archive_extraction
21942
21943 # A C compiler.
21944 LTCC=$lt_CC
21945
21946 # LTCC compiler flags.
21947 LTCFLAGS=$lt_CFLAGS
21948
21949 # Take the output of nm and produce a listing of raw symbols and C names.
21950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21951
21952 # Transform the output of nm in a proper C declaration.
21953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21954
21955 # Transform the output of nm into a list of symbols to manually relocate.
21956 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21957
21958 # Transform the output of nm in a C name address pair.
21959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21960
21961 # Transform the output of nm in a C name address pair when lib prefix is needed.
21962 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21963
21964 # The name lister interface.
21965 nm_interface=$lt_lt_cv_nm_interface
21966
21967 # Specify filename containing input files for \$NM.
21968 nm_file_list_spec=$lt_nm_file_list_spec
21969
21970 # The root where to search for dependent libraries,and where our libraries should be installed.
21971 lt_sysroot=$lt_sysroot
21972
21973 # Command to truncate a binary pipe.
21974 lt_truncate_bin=$lt_lt_cv_truncate_bin
21975
21976 # The name of the directory that contains temporary libtool files.
21977 objdir=$objdir
21978
21979 # Used to examine libraries when file_magic_cmd begins with "file".
21980 MAGIC_CMD=$MAGIC_CMD
21981
21982 # Must we lock files when doing compilation?
21983 need_locks=$lt_need_locks
21984
21985 # Manifest tool.
21986 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21987
21988 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21989 DSYMUTIL=$lt_DSYMUTIL
21990
21991 # Tool to change global to local symbols on Mac OS X.
21992 NMEDIT=$lt_NMEDIT
21993
21994 # Tool to manipulate fat objects and archives on Mac OS X.
21995 LIPO=$lt_LIPO
21996
21997 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21998 OTOOL=$lt_OTOOL
21999
22000 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22001 OTOOL64=$lt_OTOOL64
22002
22003 # Old archive suffix (normally "a").
22004 libext=$libext
22005
22006 # Shared library suffix (normally ".so").
22007 shrext_cmds=$lt_shrext_cmds
22008
22009 # The commands to extract the exported symbol list from a shared archive.
22010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22011
22012 # Variables whose values should be saved in libtool wrapper scripts and
22013 # restored at link time.
22014 variables_saved_for_relink=$lt_variables_saved_for_relink
22015
22016 # Do we need the "lib" prefix for modules?
22017 need_lib_prefix=$need_lib_prefix
22018
22019 # Do we need a version for libraries?
22020 need_version=$need_version
22021
22022 # Library versioning type.
22023 version_type=$version_type
22024
22025 # Shared library runtime path variable.
22026 runpath_var=$runpath_var
22027
22028 # Shared library path variable.
22029 shlibpath_var=$shlibpath_var
22030
22031 # Is shlibpath searched before the hard-coded library search path?
22032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22033
22034 # Format of library name prefix.
22035 libname_spec=$lt_libname_spec
22036
22037 # List of archive names. First name is the real one, the rest are links.
22038 # The last name is the one that the linker finds with -lNAME
22039 library_names_spec=$lt_library_names_spec
22040
22041 # The coded name of the library, if different from the real name.
22042 soname_spec=$lt_soname_spec
22043
22044 # Permission mode override for installation of shared libraries.
22045 install_override_mode=$lt_install_override_mode
22046
22047 # Command to use after installation of a shared archive.
22048 postinstall_cmds=$lt_postinstall_cmds
22049
22050 # Command to use after uninstallation of a shared archive.
22051 postuninstall_cmds=$lt_postuninstall_cmds
22052
22053 # Commands used to finish a libtool library installation in a directory.
22054 finish_cmds=$lt_finish_cmds
22055
22056 # As "finish_cmds", except a single script fragment to be evaled but
22057 # not shown.
22058 finish_eval=$lt_finish_eval
22059
22060 # Whether we should hardcode library paths into libraries.
22061 hardcode_into_libs=$hardcode_into_libs
22062
22063 # Compile-time system search path for libraries.
22064 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22065
22066 # Detected run-time system search path for libraries.
22067 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22068
22069 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22070 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22071
22072 # Whether dlopen is supported.
22073 dlopen_support=$enable_dlopen
22074
22075 # Whether dlopen of programs is supported.
22076 dlopen_self=$enable_dlopen_self
22077
22078 # Whether dlopen of statically linked programs is supported.
22079 dlopen_self_static=$enable_dlopen_self_static
22080
22081 # Commands to strip libraries.
22082 old_striplib=$lt_old_striplib
22083 striplib=$lt_striplib
22084
22085
22086 # The linker used to build libraries.
22087 LD=$lt_LD
22088
22089 # How to create reloadable object files.
22090 reload_flag=$lt_reload_flag
22091 reload_cmds=$lt_reload_cmds
22092
22093 # Commands used to build an old-style archive.
22094 old_archive_cmds=$lt_old_archive_cmds
22095
22096 # A language specific compiler.
22097 CC=$lt_compiler
22098
22099 # Is the compiler the GNU compiler?
22100 with_gcc=$GCC
22101
22102 # Compiler flag to turn off builtin functions.
22103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22104
22105 # Additional compiler flags for building library objects.
22106 pic_flag=$lt_lt_prog_compiler_pic
22107
22108 # How to pass a linker flag through the compiler.
22109 wl=$lt_lt_prog_compiler_wl
22110
22111 # Compiler flag to prevent dynamic linking.
22112 link_static_flag=$lt_lt_prog_compiler_static
22113
22114 # Does compiler simultaneously support -c and -o options?
22115 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22116
22117 # Whether or not to add -lc for building shared libraries.
22118 build_libtool_need_lc=$archive_cmds_need_lc
22119
22120 # Whether or not to disallow shared libs when runtime libs are static.
22121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22122
22123 # Compiler flag to allow reflexive dlopens.
22124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22125
22126 # Compiler flag to generate shared objects directly from archives.
22127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22128
22129 # Whether the compiler copes with passing no objects directly.
22130 compiler_needs_object=$lt_compiler_needs_object
22131
22132 # Create an old-style archive from a shared archive.
22133 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22134
22135 # Create a temporary old-style archive to link instead of a shared archive.
22136 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22137
22138 # Commands used to build a shared archive.
22139 archive_cmds=$lt_archive_cmds
22140 archive_expsym_cmds=$lt_archive_expsym_cmds
22141
22142 # Commands used to build a loadable module if different from building
22143 # a shared archive.
22144 module_cmds=$lt_module_cmds
22145 module_expsym_cmds=$lt_module_expsym_cmds
22146
22147 # Whether we are building with GNU ld or not.
22148 with_gnu_ld=$lt_with_gnu_ld
22149
22150 # Flag that allows shared libraries with undefined symbols to be built.
22151 allow_undefined_flag=$lt_allow_undefined_flag
22152
22153 # Flag that enforces no undefined symbols.
22154 no_undefined_flag=$lt_no_undefined_flag
22155
22156 # Flag to hardcode \$libdir into a binary during linking.
22157 # This must work even if \$libdir does not exist
22158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22159
22160 # Whether we need a single "-rpath" flag with a separated argument.
22161 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22162
22163 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22164 # DIR into the resulting binary.
22165 hardcode_direct=$hardcode_direct
22166
22167 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22168 # DIR into the resulting binary and the resulting library dependency is
22169 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22170 # library is relocated.
22171 hardcode_direct_absolute=$hardcode_direct_absolute
22172
22173 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22174 # into the resulting binary.
22175 hardcode_minus_L=$hardcode_minus_L
22176
22177 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22178 # into the resulting binary.
22179 hardcode_shlibpath_var=$hardcode_shlibpath_var
22180
22181 # Set to "yes" if building a shared library automatically hardcodes DIR
22182 # into the library and all subsequent libraries and executables linked
22183 # against it.
22184 hardcode_automatic=$hardcode_automatic
22185
22186 # Set to yes if linker adds runtime paths of dependent libraries
22187 # to runtime path list.
22188 inherit_rpath=$inherit_rpath
22189
22190 # Whether libtool must link a program against all its dependency libraries.
22191 link_all_deplibs=$link_all_deplibs
22192
22193 # Set to "yes" if exported symbols are required.
22194 always_export_symbols=$always_export_symbols
22195
22196 # The commands to list exported symbols.
22197 export_symbols_cmds=$lt_export_symbols_cmds
22198
22199 # Symbols that should not be listed in the preloaded symbols.
22200 exclude_expsyms=$lt_exclude_expsyms
22201
22202 # Symbols that must always be exported.
22203 include_expsyms=$lt_include_expsyms
22204
22205 # Commands necessary for linking programs (against libraries) with templates.
22206 prelink_cmds=$lt_prelink_cmds
22207
22208 # Commands necessary for finishing linking programs.
22209 postlink_cmds=$lt_postlink_cmds
22210
22211 # Specify filename containing input files.
22212 file_list_spec=$lt_file_list_spec
22213
22214 # How to hardcode a shared library path into an executable.
22215 hardcode_action=$hardcode_action
22216
22217 # ### END LIBTOOL CONFIG
22218
22219 _LT_EOF
22220
22221 cat <<'_LT_EOF' >> "$cfgfile"
22222
22223 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22224
22225 # func_munge_path_list VARIABLE PATH
22226 # -----------------------------------
22227 # VARIABLE is name of variable containing _space_ separated list of
22228 # directories to be munged by the contents of PATH, which is string
22229 # having a format:
22230 # "DIR[:DIR]:"
22231 # string "DIR[ DIR]" will be prepended to VARIABLE
22232 # ":DIR[:DIR]"
22233 # string "DIR[ DIR]" will be appended to VARIABLE
22234 # "DIRP[:DIRP]::[DIRA:]DIRA"
22235 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22236 # "DIRA[ DIRA]" will be appended to VARIABLE
22237 # "DIR[:DIR]"
22238 # VARIABLE will be replaced by "DIR[ DIR]"
22239 func_munge_path_list ()
22240 {
22241 case x$2 in
22242 x)
22243 ;;
22244 *:)
22245 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22246 ;;
22247 x:*)
22248 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22249 ;;
22250 *::*)
22251 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22252 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22253 ;;
22254 *)
22255 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22256 ;;
22257 esac
22258 }
22259
22260
22261 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22262 func_cc_basename ()
22263 {
22264 for cc_temp in $*""; do
22265 case $cc_temp in
22266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22268 \-*) ;;
22269 *) break;;
22270 esac
22271 done
22272 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22273 }
22274
22275
22276 # ### END FUNCTIONS SHARED WITH CONFIGURE
22277
22278 _LT_EOF
22279
22280 case $host_os in
22281 aix3*)
22282 cat <<\_LT_EOF >> "$cfgfile"
22283 # AIX sometimes has problems with the GCC collect2 program. For some
22284 # reason, if we set the COLLECT_NAMES environment variable, the problems
22285 # vanish in a puff of smoke.
22286 if test set != "${COLLECT_NAMES+set}"; then
22287 COLLECT_NAMES=
22288 export COLLECT_NAMES
22289 fi
22290 _LT_EOF
22291 ;;
22292 esac
22293
22294
22295 ltmain=$ac_aux_dir/ltmain.sh
22296
22297
22298 # We use sed instead of cat because bash on DJGPP gets confused if
22299 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22300 # text mode, it properly converts lines to CR/LF. This bash problem
22301 # is reportedly fixed, but why not run on old versions too?
22302 sed '$q' "$ltmain" >> "$cfgfile" \
22303 || (rm -f "$cfgfile"; exit 1)
22304
22305 mv -f "$cfgfile" "$ofile" ||
22306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22307 chmod +x "$ofile"
22308
22309 ;;
22310
22311 esac
22312 done # for ac_tag
22313
22314
22315 as_fn_exit 0
22316 _ACEOF
22317 ac_clean_files=$ac_clean_files_save
22318
22319 test $ac_write_fail = 0 ||
22320 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22321
22322
22323 # configure is writing to config.log, and then calls config.status.
22324 # config.status does its own redirection, appending to config.log.
22325 # Unfortunately, on DOS this fails, as config.log is still kept open
22326 # by configure, so config.status won't be able to write to it; its
22327 # output is simply discarded. So we exec the FD to /dev/null,
22328 # effectively closing config.log, so it can be properly (re)opened and
22329 # appended to by config.status. When coming back to configure, we
22330 # need to make the FD available again.
22331 if test "$no_create" != yes; then
22332 ac_cs_success=:
22333 ac_config_status_args=
22334 test "$silent" = yes &&
22335 ac_config_status_args="$ac_config_status_args --quiet"
22336 exec 5>/dev/null
22337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22338 exec 5>>config.log
22339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22340 # would make configure fail if this is the last instruction.
22341 $ac_cs_success || as_fn_exit 1
22342 fi
22343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22345 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22346 fi
22347
22348
22349 echo ""
22350 echo " prefix: $prefix"
22351 echo " exec_prefix: $exec_prefix"
22352 echo " libdir: $libdir"
22353 echo " includedir: $includedir"
22354 echo " configdir: $configdir"
22355
22356 echo ""
22357 echo " CFLAGS: $CFLAGS"
22358 echo " CXXFLAGS: $CXXFLAGS"
22359 echo " Macros: $DEFINES"
22360
22361 echo ""
22362 echo " Run '${MAKE-make}' to build xf86-video-amdgpu"
22363 echo ""
22364