configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXfixes 6.0.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfixes/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libXfixes/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libXfixes'
593 PACKAGE_TARNAME='libXfixes'
594 PACKAGE_VERSION='6.0.0'
595 PACKAGE_STRING='libXfixes 6.0.0'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXfixes/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 FIXESEXT_LIBS
641 FIXESEXT_CFLAGS
642 FIXESEXT_VERSION
643 MAN_SUBSTS
644 XORG_MAN_PAGE
645 ADMIN_MAN_DIR
646 DRIVER_MAN_DIR
647 MISC_MAN_DIR
648 FILE_MAN_DIR
649 LIB_MAN_DIR
650 APP_MAN_DIR
651 ADMIN_MAN_SUFFIX
652 DRIVER_MAN_SUFFIX
653 MISC_MAN_SUFFIX
654 FILE_MAN_SUFFIX
655 LIB_MAN_SUFFIX
656 APP_MAN_SUFFIX
657 INSTALL_CMD
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 CHANGELOG_CMD
662 STRICT_CFLAGS
663 CWARNFLAGS
664 BASE_CFLAGS
665 CPP
666 LT_SYS_LIBRARY_PATH
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 MANIFEST_TOOL
673 RANLIB
674 ac_ct_AR
675 AR
676 DLLTOOL
677 OBJDUMP
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 am__nodep
691 AMDEPBACKSLASH
692 AMDEP_FALSE
693 AMDEP_TRUE
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_aix_soname
788 enable_dependency_tracking
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_selective_werror
793 enable_strict_compilation
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 LT_SYS_LIBRARY_PATH
804 CPP
805 PKG_CONFIG
806 PKG_CONFIG_PATH
807 PKG_CONFIG_LIBDIR
808 FIXESEXT_CFLAGS
809 FIXESEXT_LIBS'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 runstatedir='${localstatedir}/run'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
870 fi
871
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures libXfixes 6.0.0 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfixes]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of libXfixes 6.0.0:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --disable-selective-werror
1451 Turn off selective compiler errors. (default:
1452 enabled)
1453 --enable-strict-compilation
1454 Enable all warnings from compiler and make them
1455 errors (default: disabled)
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-aix-soname=aix|svr4|both
1463 shared library versioning (aka "SONAME") variant to
1464 provide on AIX, [default=aix].
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467 compiler's sysroot if not specified).
1468
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 LT_SYS_LIBRARY_PATH
1478 User-defined run-time library search path.
1479 CPP C preprocessor
1480 PKG_CONFIG path to pkg-config utility
1481 PKG_CONFIG_PATH
1482 directories to add to pkg-config's search path
1483 PKG_CONFIG_LIBDIR
1484 path overriding pkg-config's built-in search path
1485 FIXESEXT_CFLAGS
1486 C compiler flags for FIXESEXT, overriding pkg-config
1487 FIXESEXT_LIBS
1488 linker flags for FIXESEXT, overriding pkg-config
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfixes/issues>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 libXfixes configure 6.0.0
1557 generated by GNU Autoconf 2.69
1558
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 test -x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_link
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 fi
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } > conftest.i && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_cpp
1721
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=$ac_status
1757 fi
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779 #define $2 innocuous_$2
1780
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $2 (); below.
1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784 <limits.h> exists even on freestanding compilers. */
1785
1786 #ifdef __STDC__
1787 # include <limits.h>
1788 #else
1789 # include <assert.h>
1790 #endif
1791
1792 #undef $2
1793
1794 /* Override any GCC internal prototype to avoid an error.
1795 Use char because int might match the return type of a GCC
1796 builtin and then its argument prototype would still apply. */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1807
1808 int
1809 main ()
1810 {
1811 return $2 ();
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext \
1822 conftest$ac_exeext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_func
1830
1831 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1832 # ---------------------------------------------
1833 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_decl ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 as_decl_name=`echo $2|sed 's/ *(.*//'`
1839 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1841 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 int
1849 main ()
1850 {
1851 #ifndef $as_decl_name
1852 #ifdef __cplusplus
1853 (void) $as_decl_use;
1854 #else
1855 (void) $as_decl_name;
1856 #endif
1857 #endif
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_decl
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by libXfixes $as_me 6.0.0, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1882
1883 $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1990
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1996 (
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2019 *)
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 ;;
2022 esac |
2023 sort
2024 )
2025 echo
2026
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030 echo
2031 for ac_var in $ac_subst_vars
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045 echo
2046 for ac_var in $ac_subst_files
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055 fi
2056
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061 echo
2062 cat confdefs.h
2063 echo
2064 fi
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2068 } >&5
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071 exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2120 esac
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file" \
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140 fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229 ac_config_headers="$ac_config_headers config.h"
2230
2231
2232 # Initialize Automake
2233 am__api_version='1.16'
2234
2235 ac_aux_dir=
2236 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2249 fi
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2253 fi
2254
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2262
2263
2264 # Find a good install program. We prefer a C program (faster),
2265 # so one script is as good as another. But avoid the broken or
2266 # incompatible versions:
2267 # SysV /etc/install, /usr/sbin/install
2268 # SunOS /usr/etc/install
2269 # IRIX /sbin/install
2270 # AIX /bin/install
2271 # AmigaOS /C/install, which installs bootblocks on floppy discs
2272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2275 # OS/2's system install, which has a completely different semantic
2276 # ./install, which can be erroneously created by make from ./install.sh.
2277 # Reject install programs that cannot install multiple files.
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2280 if test -z "$INSTALL"; then
2281 if ${ac_cv_path_install+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 # Account for people who put trailing slashes in PATH elements.
2290 case $as_dir/ in #((
2291 ./ | .// | /[cC]/* | \
2292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2294 /usr/ucb/* ) ;;
2295 *)
2296 # OSF1 and SCO ODT 3.0 have their own names for install.
2297 # Don't use installbsd from OSF since it installs stuff as root
2298 # by default.
2299 for ac_prog in ginstall scoinst install; do
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2305 :
2306 elif test $ac_prog = install &&
2307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2309 :
2310 else
2311 rm -rf conftest.one conftest.two conftest.dir
2312 echo one > conftest.one
2313 echo two > conftest.two
2314 mkdir conftest.dir
2315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2316 test -s conftest.one && test -s conftest.two &&
2317 test -s conftest.dir/conftest.one &&
2318 test -s conftest.dir/conftest.two
2319 then
2320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2321 break 3
2322 fi
2323 fi
2324 fi
2325 done
2326 done
2327 ;;
2328 esac
2329
2330 done
2331 IFS=$as_save_IFS
2332
2333 rm -rf conftest.one conftest.two conftest.dir
2334
2335 fi
2336 if test "${ac_cv_path_install+set}" = set; then
2337 INSTALL=$ac_cv_path_install
2338 else
2339 # As a last resort, use the slow shell script. Don't cache a
2340 # value for INSTALL within a source directory, because that will
2341 # break other packages using the cache if that directory is
2342 # removed, or if the value is a relative name.
2343 INSTALL=$ac_install_sh
2344 fi
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2347 $as_echo "$INSTALL" >&6; }
2348
2349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2350 # It thinks the first close brace ends the variable substitution.
2351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2352
2353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2354
2355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2358 $as_echo_n "checking whether build environment is sane... " >&6; }
2359 # Reject unsafe characters in $srcdir or the absolute working directory
2360 # name. Accept space and tab only in the latter.
2361 am_lf='
2362 '
2363 case `pwd` in
2364 *[\\\"\#\$\&\'\`$am_lf]*)
2365 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2366 esac
2367 case $srcdir in
2368 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2369 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2370 esac
2371
2372 # Do 'set' in a subshell so we don't clobber the current shell's
2373 # arguments. Must try -L first in case configure is actually a
2374 # symlink; some systems play weird games with the mod time of symlinks
2375 # (eg FreeBSD returns the mod time of the symlink's containing
2376 # directory).
2377 if (
2378 am_has_slept=no
2379 for am_try in 1 2; do
2380 echo "timestamp, slept: $am_has_slept" > conftest.file
2381 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2382 if test "$*" = "X"; then
2383 # -L didn't work.
2384 set X `ls -t "$srcdir/configure" conftest.file`
2385 fi
2386 if test "$*" != "X $srcdir/configure conftest.file" \
2387 && test "$*" != "X conftest.file $srcdir/configure"; then
2388
2389 # If neither matched, then we have a broken ls. This can happen
2390 # if, for instance, CONFIG_SHELL is bash and it inherits a
2391 # broken ls alias from the environment. This has actually
2392 # happened. Such a system could not be considered "sane".
2393 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2394 alias in your environment" "$LINENO" 5
2395 fi
2396 if test "$2" = conftest.file || test $am_try -eq 2; then
2397 break
2398 fi
2399 # Just in case.
2400 sleep 1
2401 am_has_slept=yes
2402 done
2403 test "$2" = conftest.file
2404 )
2405 then
2406 # Ok.
2407 :
2408 else
2409 as_fn_error $? "newly created file is older than distributed files!
2410 Check your system clock" "$LINENO" 5
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2413 $as_echo "yes" >&6; }
2414 # If we didn't sleep, we still need to ensure time stamps of config.status and
2415 # generated files are strictly newer.
2416 am_sleep_pid=
2417 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2418 ( sleep 1 ) &
2419 am_sleep_pid=$!
2420 fi
2421
2422 rm -f conftest.file
2423
2424 test "$program_prefix" != NONE &&
2425 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2426 # Use a double $ so make ignores it.
2427 test "$program_suffix" != NONE &&
2428 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2429 # Double any \ or $.
2430 # By default was `s,x,x', remove it if useless.
2431 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2432 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2433
2434 # Expand $ac_aux_dir to an absolute path.
2435 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2436
2437 if test x"${MISSING+set}" != xset; then
2438 case $am_aux_dir in
2439 *\ * | *\ *)
2440 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2441 *)
2442 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2443 esac
2444 fi
2445 # Use eval to expand $SHELL
2446 if eval "$MISSING --is-lightweight"; then
2447 am_missing_run="$MISSING "
2448 else
2449 am_missing_run=
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2451 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2452 fi
2453
2454 if test x"${install_sh+set}" != xset; then
2455 case $am_aux_dir in
2456 *\ * | *\ *)
2457 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2458 *)
2459 install_sh="\${SHELL} $am_aux_dir/install-sh"
2460 esac
2461 fi
2462
2463 # Installed binaries are usually stripped using 'strip' when the user
2464 # run "make install-strip". However 'strip' might not be the right
2465 # tool to use in cross-compilation environments, therefore Automake
2466 # will honor the 'STRIP' environment variable to overrule this program.
2467 if test "$cross_compiling" != no; then
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2470 set dummy ${ac_tool_prefix}strip; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_STRIP+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$STRIP"; then
2477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495 fi
2496 STRIP=$ac_cv_prog_STRIP
2497 if test -n "$STRIP"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2499 $as_echo "$STRIP" >&6; }
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2503 fi
2504
2505
2506 fi
2507 if test -z "$ac_cv_prog_STRIP"; then
2508 ac_ct_STRIP=$STRIP
2509 # Extract the first word of "strip", so it can be a program name with args.
2510 set dummy strip; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$ac_ct_STRIP"; then
2517 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526 ac_cv_prog_ac_ct_STRIP="strip"
2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2537 if test -n "$ac_ct_STRIP"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2539 $as_echo "$ac_ct_STRIP" >&6; }
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2543 fi
2544
2545 if test "x$ac_ct_STRIP" = x; then
2546 STRIP=":"
2547 else
2548 case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2553 esac
2554 STRIP=$ac_ct_STRIP
2555 fi
2556 else
2557 STRIP="$ac_cv_prog_STRIP"
2558 fi
2559
2560 fi
2561 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2564 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2565 if test -z "$MKDIR_P"; then
2566 if ${ac_cv_path_mkdir+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2571 do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_prog in mkdir gmkdir; do
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2577 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2578 'mkdir (GNU coreutils) '* | \
2579 'mkdir (coreutils) '* | \
2580 'mkdir (fileutils) '4.1*)
2581 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2582 break 3;;
2583 esac
2584 done
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590
2591 test -d ./--version && rmdir ./--version
2592 if test "${ac_cv_path_mkdir+set}" = set; then
2593 MKDIR_P="$ac_cv_path_mkdir -p"
2594 else
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for MKDIR_P within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 MKDIR_P="$ac_install_sh -d"
2600 fi
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2603 $as_echo "$MKDIR_P" >&6; }
2604
2605 for ac_prog in gawk mawk nawk awk
2606 do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_AWK+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$AWK"; then
2615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_AWK="$ac_prog"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 AWK=$ac_cv_prog_AWK
2635 if test -n "$AWK"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2637 $as_echo "$AWK" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 test -n "$AWK" && break
2645 done
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649 set x ${MAKE-make}
2650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 cat >conftest.make <<\_ACEOF
2655 SHELL = /bin/sh
2656 all:
2657 @echo '@@@%%%=$(MAKE)=@@@%%%'
2658 _ACEOF
2659 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661 *@@@%%%=?*=@@@%%%*)
2662 eval ac_cv_prog_make_${ac_make}_set=yes;;
2663 *)
2664 eval ac_cv_prog_make_${ac_make}_set=no;;
2665 esac
2666 rm -f conftest.make
2667 fi
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671 SET_MAKE=
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 SET_MAKE="MAKE=${MAKE-make}"
2676 fi
2677
2678 rm -rf .tst 2>/dev/null
2679 mkdir .tst 2>/dev/null
2680 if test -d .tst; then
2681 am__leading_dot=.
2682 else
2683 am__leading_dot=_
2684 fi
2685 rmdir .tst 2>/dev/null
2686
2687 # Check whether --enable-silent-rules was given.
2688 if test "${enable_silent_rules+set}" = set; then :
2689 enableval=$enable_silent_rules;
2690 fi
2691
2692 case $enable_silent_rules in # (((
2693 yes) AM_DEFAULT_VERBOSITY=0;;
2694 no) AM_DEFAULT_VERBOSITY=1;;
2695 *) AM_DEFAULT_VERBOSITY=1;;
2696 esac
2697 am_make=${MAKE-make}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2699 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2700 if ${am_cv_make_support_nested_variables+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if $as_echo 'TRUE=$(BAR$(V))
2704 BAR0=false
2705 BAR1=true
2706 V=1
2707 am__doit:
2708 @$(TRUE)
2709 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2710 am_cv_make_support_nested_variables=yes
2711 else
2712 am_cv_make_support_nested_variables=no
2713 fi
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2716 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2717 if test $am_cv_make_support_nested_variables = yes; then
2718 AM_V='$(V)'
2719 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2720 else
2721 AM_V=$AM_DEFAULT_VERBOSITY
2722 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2723 fi
2724 AM_BACKSLASH='\'
2725
2726 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2727 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2728 # is not polluted with repeated "-I."
2729 am__isrc=' -I$(srcdir)'
2730 # test to see if srcdir already configured
2731 if test -f $srcdir/config.status; then
2732 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2733 fi
2734 fi
2735
2736 # test whether we have cygpath
2737 if test -z "$CYGPATH_W"; then
2738 if (cygpath --version) >/dev/null 2>/dev/null; then
2739 CYGPATH_W='cygpath -w'
2740 else
2741 CYGPATH_W=echo
2742 fi
2743 fi
2744
2745
2746 # Define the identity of the package.
2747 PACKAGE='libXfixes'
2748 VERSION='6.0.0'
2749
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define PACKAGE "$PACKAGE"
2753 _ACEOF
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define VERSION "$VERSION"
2758 _ACEOF
2759
2760 # Some tools Automake needs.
2761
2762 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2763
2764
2765 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2766
2767
2768 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2769
2770
2771 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2772
2773
2774 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2775
2776 # For better backward compatibility. To be removed once Automake 1.9.x
2777 # dies out for good. For more background, see:
2778 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2779 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2780 mkdir_p='$(MKDIR_P)'
2781
2782 # We need awk for the "check" target (and possibly the TAP driver). The
2783 # system "awk" is bad on some platforms.
2784 # Always define AMTAR for backward compatibility. Yes, it's still used
2785 # in the wild :-( We should find a proper way to deprecate it ...
2786 AMTAR='$${TAR-tar}'
2787
2788
2789 # We'll loop over all known methods to create a tar archive until one works.
2790 _am_tools='gnutar pax cpio none'
2791
2792 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2793
2794
2795
2796
2797
2798
2799 # POSIX will say in a future version that running "rm -f" with no argument
2800 # is OK; and we want to be able to make that assumption in our Makefile
2801 # recipes. So use an aggressive probe to check that the usage we want is
2802 # actually supported "in the wild" to an acceptable degree.
2803 # See automake bug#10828.
2804 # To make any issue more visible, cause the running configure to be aborted
2805 # by default if the 'rm' program in use doesn't match our expectations; the
2806 # user can still override this though.
2807 if rm -f && rm -fr && rm -rf; then : OK; else
2808 cat >&2 <<'END'
2809 Oops!
2810
2811 Your 'rm' program seems unable to run without file operands specified
2812 on the command line, even when the '-f' option is present. This is contrary
2813 to the behaviour of most rm programs out there, and not conforming with
2814 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2815
2816 Please tell bug-automake@gnu.org about your system, including the value
2817 of your $PATH and any error possibly output before this message. This
2818 can help us improve future automake versions.
2819
2820 END
2821 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2822 echo 'Configuration will proceed anyway, since you have set the' >&2
2823 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2824 echo >&2
2825 else
2826 cat >&2 <<'END'
2827 Aborting the configuration process, to ensure you take notice of the issue.
2828
2829 You can download and install GNU coreutils to get an 'rm' implementation
2830 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2831
2832 If you want to complete the configuration process using your problematic
2833 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2834 to "yes", and re-run configure.
2835
2836 END
2837 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2838 fi
2839 fi
2840
2841
2842 # Initialize libtool
2843 case `pwd` in
2844 *\ * | *\ *)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2846 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2847 esac
2848
2849
2850
2851 macro_version='2.4.6'
2852 macro_revision='2.4.6'
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866 ltmain=$ac_aux_dir/ltmain.sh
2867
2868 # Make sure we can run config.sub.
2869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2870 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2873 $as_echo_n "checking build system type... " >&6; }
2874 if ${ac_cv_build+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 ac_build_alias=$build_alias
2878 test "x$ac_build_alias" = x &&
2879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2880 test "x$ac_build_alias" = x &&
2881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2883 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2884
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2887 $as_echo "$ac_cv_build" >&6; }
2888 case $ac_cv_build in
2889 *-*-*) ;;
2890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2891 esac
2892 build=$ac_cv_build
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_build
2895 shift
2896 build_cpu=$1
2897 build_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 build_os=$*
2902 IFS=$ac_save_IFS
2903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2904
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2907 $as_echo_n "checking host system type... " >&6; }
2908 if ${ac_cv_host+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test "x$host_alias" = x; then
2912 ac_cv_host=$ac_cv_build
2913 else
2914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2915 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2916 fi
2917
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2920 $as_echo "$ac_cv_host" >&6; }
2921 case $ac_cv_host in
2922 *-*-*) ;;
2923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2924 esac
2925 host=$ac_cv_host
2926 ac_save_IFS=$IFS; IFS='-'
2927 set x $ac_cv_host
2928 shift
2929 host_cpu=$1
2930 host_vendor=$2
2931 shift; shift
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2934 host_os=$*
2935 IFS=$ac_save_IFS
2936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2937
2938
2939 # Backslashify metacharacters that are still active within
2940 # double-quoted strings.
2941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2942
2943 # Same as above, but do not quote variable references.
2944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2945
2946 # Sed substitution to delay expansion of an escaped shell variable in a
2947 # double_quote_subst'ed string.
2948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2949
2950 # Sed substitution to delay expansion of an escaped single quote.
2951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2952
2953 # Sed substitution to avoid accidental globbing in evaled expressions
2954 no_glob_subst='s/\*/\\\*/g'
2955
2956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2961 $as_echo_n "checking how to print strings... " >&6; }
2962 # Test print first, because it will be a builtin if present.
2963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2965 ECHO='print -r --'
2966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2967 ECHO='printf %s\n'
2968 else
2969 # Use this function as a fallback that always works.
2970 func_fallback_echo ()
2971 {
2972 eval 'cat <<_LTECHO_EOF
2973 $1
2974 _LTECHO_EOF'
2975 }
2976 ECHO='func_fallback_echo'
2977 fi
2978
2979 # func_echo_all arg...
2980 # Invoke $ECHO with all args, space-separated.
2981 func_echo_all ()
2982 {
2983 $ECHO ""
2984 }
2985
2986 case $ECHO in
2987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2988 $as_echo "printf" >&6; } ;;
2989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2990 $as_echo "print -r" >&6; } ;;
2991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2992 $as_echo "cat" >&6; } ;;
2993 esac
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008 DEPDIR="${am__leading_dot}deps"
3009
3010 ac_config_commands="$ac_config_commands depfiles"
3011
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3013 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3014 cat > confinc.mk << 'END'
3015 am__doit:
3016 @echo this is the am__doit target >confinc.out
3017 .PHONY: am__doit
3018 END
3019 am__include="#"
3020 am__quote=
3021 # BSD make does it like this.
3022 echo '.include "confinc.mk" # ignored' > confmf.BSD
3023 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3024 echo 'include confinc.mk # ignored' > confmf.GNU
3025 _am_result=no
3026 for s in GNU BSD; do
3027 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3028 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032 case $?:`cat confinc.out 2>/dev/null` in #(
3033 '0:this is the am__doit target') :
3034 case $s in #(
3035 BSD) :
3036 am__include='.include' am__quote='"' ;; #(
3037 *) :
3038 am__include='include' am__quote='' ;;
3039 esac ;; #(
3040 *) :
3041 ;;
3042 esac
3043 if test "$am__include" != "#"; then
3044 _am_result="yes ($s style)"
3045 break
3046 fi
3047 done
3048 rm -f confinc.* confmf.*
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3050 $as_echo "${_am_result}" >&6; }
3051
3052 # Check whether --enable-dependency-tracking was given.
3053 if test "${enable_dependency_tracking+set}" = set; then :
3054 enableval=$enable_dependency_tracking;
3055 fi
3056
3057 if test "x$enable_dependency_tracking" != xno; then
3058 am_depcomp="$ac_aux_dir/depcomp"
3059 AMDEPBACKSLASH='\'
3060 am__nodep='_no'
3061 fi
3062 if test "x$enable_dependency_tracking" != xno; then
3063 AMDEP_TRUE=
3064 AMDEP_FALSE='#'
3065 else
3066 AMDEP_TRUE='#'
3067 AMDEP_FALSE=
3068 fi
3069
3070
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 if test -n "$ac_tool_prefix"; then
3077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$ac_cv_prog_CC"; then
3116 ac_ct_CC=$CC
3117 # Extract the first word of "gcc", so it can be a program name with args.
3118 set dummy gcc; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_CC="gcc"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153 if test "x$ac_ct_CC" = x; then
3154 CC=""
3155 else
3156 case $cross_compiling:$ac_tool_warned in
3157 yes:)
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162 CC=$ac_ct_CC
3163 fi
3164 else
3165 CC="$ac_cv_prog_CC"
3166 fi
3167
3168 if test -z "$CC"; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="${ac_tool_prefix}cc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 fi
3209 if test -z "$CC"; then
3210 # Extract the first word of "cc", so it can be a program name with args.
3211 set dummy cc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3219 else
3220 ac_prog_rejected=no
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3229 ac_prog_rejected=yes
3230 continue
3231 fi
3232 ac_cv_prog_CC="cc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 if test $ac_prog_rejected = yes; then
3241 # We found a bogon in the path, so make sure we never use it.
3242 set dummy $ac_cv_prog_CC
3243 shift
3244 if test $# != 0; then
3245 # We chose a different compiler from the bogus one.
3246 # However, it has the same basename, so the bogon will be chosen
3247 # first if we set CC to just the basename; use the full file name.
3248 shift
3249 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3250 fi
3251 fi
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$CC"; then
3266 if test -n "$ac_tool_prefix"; then
3267 for ac_prog in cl.exe
3268 do
3269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 test -n "$CC" && break
3307 done
3308 fi
3309 if test -z "$CC"; then
3310 ac_ct_CC=$CC
3311 for ac_prog in cl.exe
3312 do
3313 # Extract the first word of "$ac_prog", so it can be a program name with args.
3314 set dummy $ac_prog; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 $as_echo "$ac_ct_CC" >&6; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 test -n "$ac_ct_CC" && break
3351 done
3352
3353 if test "x$ac_ct_CC" = x; then
3354 CC=""
3355 else
3356 case $cross_compiling:$ac_tool_warned in
3357 yes:)
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360 ac_tool_warned=yes ;;
3361 esac
3362 CC=$ac_ct_CC
3363 fi
3364 fi
3365
3366 fi
3367
3368
3369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "no acceptable C compiler found in \$PATH
3372 See \`config.log' for more details" "$LINENO" 5; }
3373
3374 # Provide some information about the compiler.
3375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3376 set X $ac_compile
3377 ac_compiler=$2
3378 for ac_option in --version -v -V -qversion; do
3379 { { ac_try="$ac_compiler $ac_option >&5"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3387 ac_status=$?
3388 if test -s conftest.err; then
3389 sed '10a\
3390 ... rest of stderr output deleted ...
3391 10q' conftest.err >conftest.er1
3392 cat conftest.er1 >&5
3393 fi
3394 rm -f conftest.er1 conftest.err
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }
3397 done
3398
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 ac_clean_files_save=$ac_clean_files
3411 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3412 # Try to create an executable without -o first, disregard a.out.
3413 # It will help us diagnose broken compilers, and finding out an intuition
3414 # of exeext.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3416 $as_echo_n "checking whether the C compiler works... " >&6; }
3417 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3418
3419 # The possible output files:
3420 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3421
3422 ac_rmfiles=
3423 for ac_file in $ac_files
3424 do
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3428 esac
3429 done
3430 rm -f $ac_rmfiles
3431
3432 if { { ac_try="$ac_link_default"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link_default") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3444 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3445 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3446 # so that the user can short-circuit this test for compilers unknown to
3447 # Autoconf.
3448 for ac_file in $ac_files ''
3449 do
3450 test -f "$ac_file" || continue
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3453 ;;
3454 [ab].out )
3455 # We found the default executable, but exeext='' is most
3456 # certainly right.
3457 break;;
3458 *.* )
3459 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3460 then :; else
3461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 fi
3463 # We set ac_cv_exeext here because the later test for it is not
3464 # safe: cross compilers may not add the suffix if given an `-o'
3465 # argument, so we may need to know it at that point already.
3466 # Even if this section looks crufty: it has the advantage of
3467 # actually working.
3468 break;;
3469 * )
3470 break;;
3471 esac
3472 done
3473 test "$ac_cv_exeext" = no && ac_cv_exeext=
3474
3475 else
3476 ac_file=''
3477 fi
3478 if test -z "$ac_file"; then :
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error 77 "C compiler cannot create executables
3487 See \`config.log' for more details" "$LINENO" 5; }
3488 else
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493 $as_echo_n "checking for C compiler default output file name... " >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495 $as_echo "$ac_file" >&6; }
3496 ac_exeext=$ac_cv_exeext
3497
3498 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3499 ac_clean_files=$ac_clean_files_save
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3501 $as_echo_n "checking for suffix of executables... " >&6; }
3502 if { { ac_try="$ac_link"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3515 # work properly (i.e., refer to `conftest.exe'), while it won't with
3516 # `rm'.
3517 for ac_file in conftest.exe conftest conftest.*; do
3518 test -f "$ac_file" || continue
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522 break;;
3523 * ) break;;
3524 esac
3525 done
3526 else
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 rm -f conftest conftest$ac_cv_exeext
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3534 $as_echo "$ac_cv_exeext" >&6; }
3535
3536 rm -f conftest.$ac_ext
3537 EXEEXT=$ac_cv_exeext
3538 ac_exeext=$EXEEXT
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <stdio.h>
3542 int
3543 main ()
3544 {
3545 FILE *f = fopen ("conftest.out", "w");
3546 return ferror (f) || fclose (f) != 0;
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 ac_clean_files="$ac_clean_files conftest.out"
3553 # Check that the compiler produces executables we can run. If not, either
3554 # the compiler is broken, or we cross compile.
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3556 $as_echo_n "checking whether we are cross compiling... " >&6; }
3557 if test "$cross_compiling" != yes; then
3558 { { ac_try="$ac_link"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }
3569 if { ac_try='./conftest$ac_cv_exeext'
3570 { { case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_try") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; }; then
3580 cross_compiling=no
3581 else
3582 if test "$cross_compiling" = maybe; then
3583 cross_compiling=yes
3584 else
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error $? "cannot run C compiled programs.
3588 If you meant to cross compile, use \`--host'.
3589 See \`config.log' for more details" "$LINENO" 5; }
3590 fi
3591 fi
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3594 $as_echo "$cross_compiling" >&6; }
3595
3596 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3597 ac_clean_files=$ac_clean_files_save
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3599 $as_echo_n "checking for suffix of object files... " >&6; }
3600 if ${ac_cv_objext+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.o conftest.obj
3615 if { { ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_compile") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 for ac_file in conftest.o conftest.obj conftest.*; do
3627 test -f "$ac_file" || continue;
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3631 break;;
3632 esac
3633 done
3634 else
3635 $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "cannot compute suffix of object files: cannot compile
3641 See \`config.log' for more details" "$LINENO" 5; }
3642 fi
3643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3646 $as_echo "$ac_cv_objext" >&6; }
3647 OBJEXT=$ac_cv_objext
3648 ac_objext=$OBJEXT
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660 #ifndef __GNUC__
3661 choke me
3662 #endif
3663
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_compiler_gnu=yes
3670 else
3671 ac_compiler_gnu=no
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679 if test $ac_compiler_gnu = yes; then
3680 GCC=yes
3681 else
3682 GCC=
3683 fi
3684 ac_test_CFLAGS=${CFLAGS+set}
3685 ac_save_CFLAGS=$CFLAGS
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 if ${ac_cv_prog_cc_g+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 ac_save_c_werror_flag=$ac_c_werror_flag
3692 ac_c_werror_flag=yes
3693 ac_cv_prog_cc_g=no
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 else
3709 CFLAGS=""
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712
3713 int
3714 main ()
3715 {
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722
3723 else
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 if test "$ac_test_CFLAGS" = set; then
3750 CFLAGS=$ac_save_CFLAGS
3751 elif test $ac_cv_prog_cc_g = yes; then
3752 if test "$GCC" = yes; then
3753 CFLAGS="-g -O2"
3754 else
3755 CFLAGS="-g"
3756 fi
3757 else
3758 if test "$GCC" = yes; then
3759 CFLAGS="-O2"
3760 else
3761 CFLAGS=
3762 fi
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 if ${ac_cv_prog_cc_c89+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_cv_prog_cc_c89=no
3770 ac_save_CC=$CC
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdarg.h>
3774 #include <stdio.h>
3775 struct stat;
3776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777 struct buf { int x; };
3778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779 static char *e (p, i)
3780 char **p;
3781 int i;
3782 {
3783 return p[i];
3784 }
3785 static char *f (char * (*g) (char **, int), char **p, ...)
3786 {
3787 char *s;
3788 va_list v;
3789 va_start (v,p);
3790 s = g (p, va_arg (v,int));
3791 va_end (v);
3792 return s;
3793 }
3794
3795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796 function prototypes and stuff, but not '\xHH' hex character constants.
3797 These don't provoke an error unfortunately, instead are silently treated
3798 as 'x'. The following induces an error, until -std is added to get
3799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800 array size at least. It's necessary to write '\x00'==0 to get something
3801 that's true only with -std. */
3802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3803
3804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805 inside strings and character constants. */
3806 #define FOO(x) 'x'
3807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3808
3809 int test (int i, double x);
3810 struct s1 {int (*f) (int a);};
3811 struct s2 {int (*f) (double a);};
3812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813 int argc;
3814 char **argv;
3815 int
3816 main ()
3817 {
3818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3825 do
3826 CC="$ac_save_CC $ac_arg"
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_c89=$ac_arg
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 done
3833 rm -f conftest.$ac_ext
3834 CC=$ac_save_CC
3835
3836 fi
3837 # AC_CACHE_VAL
3838 case "x$ac_cv_prog_cc_c89" in
3839 x)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 $as_echo "none needed" >&6; } ;;
3842 xno)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 $as_echo "unsupported" >&6; } ;;
3845 *)
3846 CC="$CC $ac_cv_prog_cc_c89"
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 esac
3850 if test "x$ac_cv_prog_cc_c89" != xno; then :
3851
3852 fi
3853
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3866 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3867 if ${am_cv_prog_cc_c_o+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 # Make sure it works both with $CC and with simple cc.
3882 # Following AC_PROG_CC_C_O, we do the test twice because some
3883 # compilers refuse to overwrite an existing .o file with -o,
3884 # though they will create one.
3885 am_cv_prog_cc_c_o=yes
3886 for am_i in 1 2; do
3887 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3888 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } \
3892 && test -f conftest2.$ac_objext; then
3893 : OK
3894 else
3895 am_cv_prog_cc_c_o=no
3896 break
3897 fi
3898 done
3899 rm -f core conftest*
3900 unset am_i
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3903 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3904 if test "$am_cv_prog_cc_c_o" != yes; then
3905 # Losing compiler, so override with the script.
3906 # FIXME: It is wrong to rewrite CC.
3907 # But if we don't then we get into trouble of one sort or another.
3908 # A longer-term fix would be to have automake use am__CC in this case,
3909 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3910 CC="$am_aux_dir/compile $CC"
3911 fi
3912 ac_ext=c
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917
3918
3919 depcc="$CC" am_compiler_list=
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3922 $as_echo_n "checking dependency style of $depcc... " >&6; }
3923 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3927 # We make a subdir and do the tests there. Otherwise we can end up
3928 # making bogus files that we don't know about and never remove. For
3929 # instance it was reported that on HP-UX the gcc test will end up
3930 # making a dummy file named 'D' -- because '-MD' means "put the output
3931 # in D".
3932 rm -rf conftest.dir
3933 mkdir conftest.dir
3934 # Copy depcomp to subdir because otherwise we won't find it if we're
3935 # using a relative directory.
3936 cp "$am_depcomp" conftest.dir
3937 cd conftest.dir
3938 # We will build objects and dependencies in a subdirectory because
3939 # it helps to detect inapplicable dependency modes. For instance
3940 # both Tru64's cc and ICC support -MD to output dependencies as a
3941 # side effect of compilation, but ICC will put the dependencies in
3942 # the current directory while Tru64 will put them in the object
3943 # directory.
3944 mkdir sub
3945
3946 am_cv_CC_dependencies_compiler_type=none
3947 if test "$am_compiler_list" = ""; then
3948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3949 fi
3950 am__universal=false
3951 case " $depcc " in #(
3952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3953 esac
3954
3955 for depmode in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3959 #
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3963 : > sub/conftest.c
3964 for i in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3967 # Solaris 10 /bin/sh.
3968 echo '/* dummy */' > sub/conftst$i.h
3969 done
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3973 # mode. It turns out that the SunPro C++ compiler does not properly
3974 # handle '-M -o', and we need to detect this. Also, some Intel
3975 # versions had trouble with output in subdirs.
3976 am__obj=sub/conftest.${OBJEXT-o}
3977 am__minus_obj="-o $am__obj"
3978 case $depmode in
3979 gcc)
3980 # This depmode causes a compiler race in universal mode.
3981 test "$am__universal" = false || continue
3982 ;;
3983 nosideeffect)
3984 # After this tag, mechanisms are not by side-effect, so they'll
3985 # only be used when explicitly requested.
3986 if test "x$enable_dependency_tracking" = xyes; then
3987 continue
3988 else
3989 break
3990 fi
3991 ;;
3992 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3993 # This compiler won't grok '-c -o', but also, the minuso test has
3994 # not run yet. These depmodes are late enough in the game, and
3995 # so weak that their functioning should not be impacted.
3996 am__obj=conftest.${OBJEXT-o}
3997 am__minus_obj=
3998 ;;
3999 none) break ;;
4000 esac
4001 if depmode=$depmode \
4002 source=sub/conftest.c object=$am__obj \
4003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005 >/dev/null 2>conftest.err &&
4006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010 # icc doesn't choke on unknown options, it will just issue warnings
4011 # or remarks (even with -Werror). So we grep stderr for any message
4012 # that says an option was ignored or not supported.
4013 # When given -MP, icc 7.0 and 7.1 complain thusly:
4014 # icc: Command line warning: ignoring option '-M'; no argument required
4015 # The diagnosis changed in icc 8.0:
4016 # icc: Command line remark: option '-MP' not supported
4017 if (grep 'ignoring option' conftest.err ||
4018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019 am_cv_CC_dependencies_compiler_type=$depmode
4020 break
4021 fi
4022 fi
4023 done
4024
4025 cd ..
4026 rm -rf conftest.dir
4027 else
4028 am_cv_CC_dependencies_compiler_type=none
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4035
4036 if
4037 test "x$enable_dependency_tracking" != xno \
4038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039 am__fastdepCC_TRUE=
4040 am__fastdepCC_FALSE='#'
4041 else
4042 am__fastdepCC_TRUE='#'
4043 am__fastdepCC_FALSE=
4044 fi
4045
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4049 if ${ac_cv_path_SED+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4053 for ac_i in 1 2 3 4 5 6 7; do
4054 ac_script="$ac_script$as_nl$ac_script"
4055 done
4056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4057 { ac_script=; unset ac_script;}
4058 if test -z "$SED"; then
4059 ac_path_SED_found=false
4060 # Loop through the user's path and test for each of PROGNAME-LIST
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_prog in sed gsed; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4069 as_fn_executable_p "$ac_path_SED" || continue
4070 # Check for GNU ac_path_SED and select it if it is found.
4071 # Check for GNU $ac_path_SED
4072 case `"$ac_path_SED" --version 2>&1` in
4073 *GNU*)
4074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4075 *)
4076 ac_count=0
4077 $as_echo_n 0123456789 >"conftest.in"
4078 while :
4079 do
4080 cat "conftest.in" "conftest.in" >"conftest.tmp"
4081 mv "conftest.tmp" "conftest.in"
4082 cp "conftest.in" "conftest.nl"
4083 $as_echo '' >> "conftest.nl"
4084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086 as_fn_arith $ac_count + 1 && ac_count=$as_val
4087 if test $ac_count -gt ${ac_path_SED_max-0}; then
4088 # Best one so far, save it but keep looking for a better one
4089 ac_cv_path_SED="$ac_path_SED"
4090 ac_path_SED_max=$ac_count
4091 fi
4092 # 10*(2^10) chars as input seems more than enough
4093 test $ac_count -gt 10 && break
4094 done
4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 esac
4097
4098 $ac_path_SED_found && break 3
4099 done
4100 done
4101 done
4102 IFS=$as_save_IFS
4103 if test -z "$ac_cv_path_SED"; then
4104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4105 fi
4106 else
4107 ac_cv_path_SED=$SED
4108 fi
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4112 $as_echo "$ac_cv_path_SED" >&6; }
4113 SED="$ac_cv_path_SED"
4114 rm -f conftest.sed
4115
4116 test -z "$SED" && SED=sed
4117 Xsed="$SED -e 1s/^X//"
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131 if ${ac_cv_path_GREP+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -z "$GREP"; then
4135 ac_path_GREP_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in grep ggrep; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145 as_fn_executable_p "$ac_path_GREP" || continue
4146 # Check for GNU ac_path_GREP and select it if it is found.
4147 # Check for GNU $ac_path_GREP
4148 case `"$ac_path_GREP" --version 2>&1` in
4149 *GNU*)
4150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4151 *)
4152 ac_count=0
4153 $as_echo_n 0123456789 >"conftest.in"
4154 while :
4155 do
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo 'GREP' >> "conftest.nl"
4160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_GREP="$ac_path_GREP"
4166 ac_path_GREP_max=$ac_count
4167 fi
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174 $ac_path_GREP_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
4179 if test -z "$ac_cv_path_GREP"; then
4180 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181 fi
4182 else
4183 ac_cv_path_GREP=$GREP
4184 fi
4185
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4188 $as_echo "$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4193 $as_echo_n "checking for egrep... " >&6; }
4194 if ${ac_cv_path_EGREP+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198 then ac_cv_path_EGREP="$GREP -E"
4199 else
4200 if test -z "$EGREP"; then
4201 ac_path_EGREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in egrep; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4211 as_fn_executable_p "$ac_path_EGREP" || continue
4212 # Check for GNU ac_path_EGREP and select it if it is found.
4213 # Check for GNU $ac_path_EGREP
4214 case `"$ac_path_EGREP" --version 2>&1` in
4215 *GNU*)
4216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4217 *)
4218 ac_count=0
4219 $as_echo_n 0123456789 >"conftest.in"
4220 while :
4221 do
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'EGREP' >> "conftest.nl"
4226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_EGREP="$ac_path_EGREP"
4232 ac_path_EGREP_max=$ac_count
4233 fi
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4236 done
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240 $ac_path_EGREP_found && break 3
4241 done
4242 done
4243 done
4244 IFS=$as_save_IFS
4245 if test -z "$ac_cv_path_EGREP"; then
4246 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 fi
4248 else
4249 ac_cv_path_EGREP=$EGREP
4250 fi
4251
4252 fi
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4255 $as_echo "$ac_cv_path_EGREP" >&6; }
4256 EGREP="$ac_cv_path_EGREP"
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4260 $as_echo_n "checking for fgrep... " >&6; }
4261 if ${ac_cv_path_FGREP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4265 then ac_cv_path_FGREP="$GREP -F"
4266 else
4267 if test -z "$FGREP"; then
4268 ac_path_FGREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in fgrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4278 as_fn_executable_p "$ac_path_FGREP" || continue
4279 # Check for GNU ac_path_FGREP and select it if it is found.
4280 # Check for GNU $ac_path_FGREP
4281 case `"$ac_path_FGREP" --version 2>&1` in
4282 *GNU*)
4283 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4284 *)
4285 ac_count=0
4286 $as_echo_n 0123456789 >"conftest.in"
4287 while :
4288 do
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
4292 $as_echo 'FGREP' >> "conftest.nl"
4293 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295 as_fn_arith $ac_count + 1 && ac_count=$as_val
4296 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_FGREP="$ac_path_FGREP"
4299 ac_path_FGREP_max=$ac_count
4300 fi
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4303 done
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 esac
4306
4307 $ac_path_FGREP_found && break 3
4308 done
4309 done
4310 done
4311 IFS=$as_save_IFS
4312 if test -z "$ac_cv_path_FGREP"; then
4313 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314 fi
4315 else
4316 ac_cv_path_FGREP=$FGREP
4317 fi
4318
4319 fi
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4322 $as_echo "$ac_cv_path_FGREP" >&6; }
4323 FGREP="$ac_cv_path_FGREP"
4324
4325
4326 test -z "$GREP" && GREP=grep
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 # Check whether --with-gnu-ld was given.
4347 if test "${with_gnu_ld+set}" = set; then :
4348 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4349 else
4350 with_gnu_ld=no
4351 fi
4352
4353 ac_prog=ld
4354 if test yes = "$GCC"; then
4355 # Check if gcc -print-prog-name=ld gives a path.
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4357 $as_echo_n "checking for ld used by $CC... " >&6; }
4358 case $host in
4359 *-*-mingw*)
4360 # gcc leaves a trailing carriage return, which upsets mingw
4361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362 *)
4363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4364 esac
4365 case $ac_prog in
4366 # Accept absolute paths.
4367 [\\/]* | ?:[\\/]*)
4368 re_direlt='/[^/][^/]*/\.\./'
4369 # Canonicalize the pathname of ld
4370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4373 done
4374 test -z "$LD" && LD=$ac_prog
4375 ;;
4376 "")
4377 # If it fails, then pretend we aren't using GCC.
4378 ac_prog=ld
4379 ;;
4380 *)
4381 # If it is relative, then search for the first ld in PATH.
4382 with_gnu_ld=unknown
4383 ;;
4384 esac
4385 elif test yes = "$with_gnu_ld"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4387 $as_echo_n "checking for GNU ld... " >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4390 $as_echo_n "checking for non-GNU ld... " >&6; }
4391 fi
4392 if ${lt_cv_path_LD+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -z "$LD"; then
4396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4397 for ac_dir in $PATH; do
4398 IFS=$lt_save_ifs
4399 test -z "$ac_dir" && ac_dir=.
4400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4401 lt_cv_path_LD=$ac_dir/$ac_prog
4402 # Check to see if the program is GNU ld. I'd rather use --version,
4403 # but apparently some variants of GNU ld only accept -v.
4404 # Break only if it was the GNU/non-GNU ld that we prefer.
4405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4406 *GNU* | *'with BFD'*)
4407 test no != "$with_gnu_ld" && break
4408 ;;
4409 *)
4410 test yes != "$with_gnu_ld" && break
4411 ;;
4412 esac
4413 fi
4414 done
4415 IFS=$lt_save_ifs
4416 else
4417 lt_cv_path_LD=$LD # Let the user override the test with a path.
4418 fi
4419 fi
4420
4421 LD=$lt_cv_path_LD
4422 if test -n "$LD"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4424 $as_echo "$LD" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4432 if ${lt_cv_prog_gnu_ld+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4436 case `$LD -v 2>&1 </dev/null` in
4437 *GNU* | *'with BFD'*)
4438 lt_cv_prog_gnu_ld=yes
4439 ;;
4440 *)
4441 lt_cv_prog_gnu_ld=no
4442 ;;
4443 esac
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4446 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4447 with_gnu_ld=$lt_cv_prog_gnu_ld
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4458 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4459 if ${lt_cv_path_NM+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$NM"; then
4463 # Let the user override the test.
4464 lt_cv_path_NM=$NM
4465 else
4466 lt_nm_to_check=${ac_tool_prefix}nm
4467 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4468 lt_nm_to_check="$lt_nm_to_check nm"
4469 fi
4470 for lt_tmp_nm in $lt_nm_to_check; do
4471 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4472 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4473 IFS=$lt_save_ifs
4474 test -z "$ac_dir" && ac_dir=.
4475 tmp_nm=$ac_dir/$lt_tmp_nm
4476 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4477 # Check to see if the nm accepts a BSD-compat flag.
4478 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4479 # nm: unknown option "B" ignored
4480 # Tru64's nm complains that /dev/null is an invalid object file
4481 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4482 case $build_os in
4483 mingw*) lt_bad_file=conftest.nm/nofile ;;
4484 *) lt_bad_file=/dev/null ;;
4485 esac
4486 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4487 *$lt_bad_file* | *'Invalid file or object type'*)
4488 lt_cv_path_NM="$tmp_nm -B"
4489 break 2
4490 ;;
4491 *)
4492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4493 */dev/null*)
4494 lt_cv_path_NM="$tmp_nm -p"
4495 break 2
4496 ;;
4497 *)
4498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4499 continue # so that we can try to find one that supports BSD flags
4500 ;;
4501 esac
4502 ;;
4503 esac
4504 fi
4505 done
4506 IFS=$lt_save_ifs
4507 done
4508 : ${lt_cv_path_NM=no}
4509 fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4512 $as_echo "$lt_cv_path_NM" >&6; }
4513 if test no != "$lt_cv_path_NM"; then
4514 NM=$lt_cv_path_NM
4515 else
4516 # Didn't find any BSD compatible name lister, look for dumpbin.
4517 if test -n "$DUMPBIN"; then :
4518 # Let the user override the test.
4519 else
4520 if test -n "$ac_tool_prefix"; then
4521 for ac_prog in dumpbin "link -dump"
4522 do
4523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_DUMPBIN+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$DUMPBIN"; then
4531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 DUMPBIN=$ac_cv_prog_DUMPBIN
4551 if test -n "$DUMPBIN"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4553 $as_echo "$DUMPBIN" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558
4559
4560 test -n "$DUMPBIN" && break
4561 done
4562 fi
4563 if test -z "$DUMPBIN"; then
4564 ac_ct_DUMPBIN=$DUMPBIN
4565 for ac_prog in dumpbin "link -dump"
4566 do
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$ac_ct_DUMPBIN"; then
4575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4595 if test -n "$ac_ct_DUMPBIN"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4597 $as_echo "$ac_ct_DUMPBIN" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604 test -n "$ac_ct_DUMPBIN" && break
4605 done
4606
4607 if test "x$ac_ct_DUMPBIN" = x; then
4608 DUMPBIN=":"
4609 else
4610 case $cross_compiling:$ac_tool_warned in
4611 yes:)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4615 esac
4616 DUMPBIN=$ac_ct_DUMPBIN
4617 fi
4618 fi
4619
4620 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4621 *COFF*)
4622 DUMPBIN="$DUMPBIN -symbols -headers"
4623 ;;
4624 *)
4625 DUMPBIN=:
4626 ;;
4627 esac
4628 fi
4629
4630 if test : != "$DUMPBIN"; then
4631 NM=$DUMPBIN
4632 fi
4633 fi
4634 test -z "$NM" && NM=nm
4635
4636
4637
4638
4639
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4642 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4643 if ${lt_cv_nm_interface+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 lt_cv_nm_interface="BSD nm"
4647 echo "int some_variable = 0;" > conftest.$ac_ext
4648 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4649 (eval "$ac_compile" 2>conftest.err)
4650 cat conftest.err >&5
4651 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4652 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4653 cat conftest.err >&5
4654 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4655 cat conftest.out >&5
4656 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4657 lt_cv_nm_interface="MS dumpbin"
4658 fi
4659 rm -f conftest*
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4662 $as_echo "$lt_cv_nm_interface" >&6; }
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4665 $as_echo_n "checking whether ln -s works... " >&6; }
4666 LN_S=$as_ln_s
4667 if test "$LN_S" = "ln -s"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4669 $as_echo "yes" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4672 $as_echo "no, using $LN_S" >&6; }
4673 fi
4674
4675 # find the maximum length of command line arguments
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4677 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4678 if ${lt_cv_sys_max_cmd_len+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 i=0
4682 teststring=ABCD
4683
4684 case $build_os in
4685 msdosdjgpp*)
4686 # On DJGPP, this test can blow up pretty badly due to problems in libc
4687 # (any single argument exceeding 2000 bytes causes a buffer overrun
4688 # during glob expansion). Even if it were fixed, the result of this
4689 # check would be larger than it should be.
4690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4691 ;;
4692
4693 gnu*)
4694 # Under GNU Hurd, this test is not required because there is
4695 # no limit to the length of command line arguments.
4696 # Libtool will interpret -1 as no limit whatsoever
4697 lt_cv_sys_max_cmd_len=-1;
4698 ;;
4699
4700 cygwin* | mingw* | cegcc*)
4701 # On Win9x/ME, this test blows up -- it succeeds, but takes
4702 # about 5 minutes as the teststring grows exponentially.
4703 # Worse, since 9x/ME are not pre-emptively multitasking,
4704 # you end up with a "frozen" computer, even though with patience
4705 # the test eventually succeeds (with a max line length of 256k).
4706 # Instead, let's just punt: use the minimum linelength reported by
4707 # all of the supported platforms: 8192 (on NT/2K/XP).
4708 lt_cv_sys_max_cmd_len=8192;
4709 ;;
4710
4711 mint*)
4712 # On MiNT this can take a long time and run out of memory.
4713 lt_cv_sys_max_cmd_len=8192;
4714 ;;
4715
4716 amigaos*)
4717 # On AmigaOS with pdksh, this test takes hours, literally.
4718 # So we just punt and use a minimum line length of 8192.
4719 lt_cv_sys_max_cmd_len=8192;
4720 ;;
4721
4722 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4723 # This has been around since 386BSD, at least. Likely further.
4724 if test -x /sbin/sysctl; then
4725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4726 elif test -x /usr/sbin/sysctl; then
4727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4728 else
4729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4730 fi
4731 # And add a safety zone
4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4734 ;;
4735
4736 interix*)
4737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4738 lt_cv_sys_max_cmd_len=196608
4739 ;;
4740
4741 os2*)
4742 # The test takes a long time on OS/2.
4743 lt_cv_sys_max_cmd_len=8192
4744 ;;
4745
4746 osf*)
4747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4749 # nice to cause kernel panics so lets avoid the loop below.
4750 # First set a reasonable default.
4751 lt_cv_sys_max_cmd_len=16384
4752 #
4753 if test -x /sbin/sysconfig; then
4754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4755 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4756 esac
4757 fi
4758 ;;
4759 sco3.2v5*)
4760 lt_cv_sys_max_cmd_len=102400
4761 ;;
4762 sysv5* | sco5v6* | sysv4.2uw2*)
4763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4764 if test -n "$kargmax"; then
4765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4766 else
4767 lt_cv_sys_max_cmd_len=32768
4768 fi
4769 ;;
4770 *)
4771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4772 if test -n "$lt_cv_sys_max_cmd_len" && \
4773 test undefined != "$lt_cv_sys_max_cmd_len"; then
4774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4776 else
4777 # Make teststring a little bigger before we do anything with it.
4778 # a 1K string should be a reasonable start.
4779 for i in 1 2 3 4 5 6 7 8; do
4780 teststring=$teststring$teststring
4781 done
4782 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4783 # If test is not a shell built-in, we'll probably end up computing a
4784 # maximum length that is only half of the actual maximum length, but
4785 # we can't tell.
4786 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4787 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4788 test 17 != "$i" # 1/2 MB should be enough
4789 do
4790 i=`expr $i + 1`
4791 teststring=$teststring$teststring
4792 done
4793 # Only check the string length outside the loop.
4794 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4795 teststring=
4796 # Add a significant safety factor because C++ compilers can tack on
4797 # massive amounts of additional arguments before passing them to the
4798 # linker. It appears as though 1/2 is a usable value.
4799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4800 fi
4801 ;;
4802 esac
4803
4804 fi
4805
4806 if test -n "$lt_cv_sys_max_cmd_len"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4808 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4811 $as_echo "none" >&6; }
4812 fi
4813 max_cmd_len=$lt_cv_sys_max_cmd_len
4814
4815
4816
4817
4818
4819
4820 : ${CP="cp -f"}
4821 : ${MV="mv -f"}
4822 : ${RM="rm -f"}
4823
4824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4825 lt_unset=unset
4826 else
4827 lt_unset=false
4828 fi
4829
4830
4831
4832
4833
4834 # test EBCDIC or ASCII
4835 case `echo X|tr X '\101'` in
4836 A) # ASCII based system
4837 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4838 lt_SP2NL='tr \040 \012'
4839 lt_NL2SP='tr \015\012 \040\040'
4840 ;;
4841 *) # EBCDIC based system
4842 lt_SP2NL='tr \100 \n'
4843 lt_NL2SP='tr \r\n \100\100'
4844 ;;
4845 esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4856 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4857 if ${lt_cv_to_host_file_cmd+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 case $host in
4861 *-*-mingw* )
4862 case $build in
4863 *-*-mingw* ) # actually msys
4864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4865 ;;
4866 *-*-cygwin* )
4867 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4868 ;;
4869 * ) # otherwise, assume *nix
4870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4871 ;;
4872 esac
4873 ;;
4874 *-*-cygwin* )
4875 case $build in
4876 *-*-mingw* ) # actually msys
4877 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4878 ;;
4879 *-*-cygwin* )
4880 lt_cv_to_host_file_cmd=func_convert_file_noop
4881 ;;
4882 * ) # otherwise, assume *nix
4883 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4884 ;;
4885 esac
4886 ;;
4887 * ) # unhandled hosts (and "normal" native builds)
4888 lt_cv_to_host_file_cmd=func_convert_file_noop
4889 ;;
4890 esac
4891
4892 fi
4893
4894 to_host_file_cmd=$lt_cv_to_host_file_cmd
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4896 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4903 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4904 if ${lt_cv_to_tool_file_cmd+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 #assume ordinary cross tools, or native build.
4908 lt_cv_to_tool_file_cmd=func_convert_file_noop
4909 case $host in
4910 *-*-mingw* )
4911 case $build in
4912 *-*-mingw* ) # actually msys
4913 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4914 ;;
4915 esac
4916 ;;
4917 esac
4918
4919 fi
4920
4921 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4923 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4924
4925
4926
4927
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4930 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4931 if ${lt_cv_ld_reload_flag+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 lt_cv_ld_reload_flag='-r'
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4937 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4938 reload_flag=$lt_cv_ld_reload_flag
4939 case $reload_flag in
4940 "" | " "*) ;;
4941 *) reload_flag=" $reload_flag" ;;
4942 esac
4943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944 case $host_os in
4945 cygwin* | mingw* | pw32* | cegcc*)
4946 if test yes != "$GCC"; then
4947 reload_cmds=false
4948 fi
4949 ;;
4950 darwin*)
4951 if test yes = "$GCC"; then
4952 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4953 else
4954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955 fi
4956 ;;
4957 esac
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_OBJDUMP+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$OBJDUMP"; then
4976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 OBJDUMP=$ac_cv_prog_OBJDUMP
4996 if test -n "$OBJDUMP"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4998 $as_echo "$OBJDUMP" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 fi
5006 if test -z "$ac_cv_prog_OBJDUMP"; then
5007 ac_ct_OBJDUMP=$OBJDUMP
5008 # Extract the first word of "objdump", so it can be a program name with args.
5009 set dummy objdump; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$ac_ct_OBJDUMP"; then
5016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5036 if test -n "$ac_ct_OBJDUMP"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5038 $as_echo "$ac_ct_OBJDUMP" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044 if test "x$ac_ct_OBJDUMP" = x; then
5045 OBJDUMP="false"
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051 ac_tool_warned=yes ;;
5052 esac
5053 OBJDUMP=$ac_ct_OBJDUMP
5054 fi
5055 else
5056 OBJDUMP="$ac_cv_prog_OBJDUMP"
5057 fi
5058
5059 test -z "$OBJDUMP" && OBJDUMP=objdump
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5070 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5071 if ${lt_cv_deplibs_check_method+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 lt_cv_file_magic_cmd='$MAGIC_CMD'
5075 lt_cv_file_magic_test_file=
5076 lt_cv_deplibs_check_method='unknown'
5077 # Need to set the preceding variable on all platforms that support
5078 # interlibrary dependencies.
5079 # 'none' -- dependencies not supported.
5080 # 'unknown' -- same as none, but documents that we really don't know.
5081 # 'pass_all' -- all dependencies passed with no checks.
5082 # 'test_compile' -- check by making test program.
5083 # 'file_magic [[regex]]' -- check by looking for files in library path
5084 # that responds to the $file_magic_cmd with a given extended regex.
5085 # If you have 'file' or equivalent on your system and you're not sure
5086 # whether 'pass_all' will *always* work, you probably want this one.
5087
5088 case $host_os in
5089 aix[4-9]*)
5090 lt_cv_deplibs_check_method=pass_all
5091 ;;
5092
5093 beos*)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 bsdi[45]*)
5098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5099 lt_cv_file_magic_cmd='/usr/bin/file -L'
5100 lt_cv_file_magic_test_file=/shlib/libc.so
5101 ;;
5102
5103 cygwin*)
5104 # func_win32_libid is a shell function defined in ltmain.sh
5105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5106 lt_cv_file_magic_cmd='func_win32_libid'
5107 ;;
5108
5109 mingw* | pw32*)
5110 # Base MSYS/MinGW do not provide the 'file' command needed by
5111 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5112 # unless we find 'file', for example because we are cross-compiling.
5113 if ( file / ) >/dev/null 2>&1; then
5114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115 lt_cv_file_magic_cmd='func_win32_libid'
5116 else
5117 # Keep this pattern in sync with the one in func_win32_libid.
5118 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5119 lt_cv_file_magic_cmd='$OBJDUMP -f'
5120 fi
5121 ;;
5122
5123 cegcc*)
5124 # use the weaker test based on 'objdump'. See mingw*.
5125 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5126 lt_cv_file_magic_cmd='$OBJDUMP -f'
5127 ;;
5128
5129 darwin* | rhapsody*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133 freebsd* | dragonfly*)
5134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5135 case $host_cpu in
5136 i*86 )
5137 # Not sure whether the presence of OpenBSD here was a mistake.
5138 # Let's accept both of them until this is cleared up.
5139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5140 lt_cv_file_magic_cmd=/usr/bin/file
5141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5142 ;;
5143 esac
5144 else
5145 lt_cv_deplibs_check_method=pass_all
5146 fi
5147 ;;
5148
5149 haiku*)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
5152
5153 hpux10.20* | hpux11*)
5154 lt_cv_file_magic_cmd=/usr/bin/file
5155 case $host_cpu in
5156 ia64*)
5157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5159 ;;
5160 hppa*64*)
5161 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]'
5162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5163 ;;
5164 *)
5165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5167 ;;
5168 esac
5169 ;;
5170
5171 interix[3-9]*)
5172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5174 ;;
5175
5176 irix5* | irix6* | nonstopux*)
5177 case $LD in
5178 *-32|*"-32 ") libmagic=32-bit;;
5179 *-n32|*"-n32 ") libmagic=N32;;
5180 *-64|*"-64 ") libmagic=64-bit;;
5181 *) libmagic=never-match;;
5182 esac
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185
5186 # This must be glibc/ELF.
5187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5188 lt_cv_deplibs_check_method=pass_all
5189 ;;
5190
5191 netbsd*)
5192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5194 else
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5196 fi
5197 ;;
5198
5199 newos6*)
5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5201 lt_cv_file_magic_cmd=/usr/bin/file
5202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5203 ;;
5204
5205 *nto* | *qnx*)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208
5209 openbsd* | bitrig*)
5210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5212 else
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5214 fi
5215 ;;
5216
5217 osf3* | osf4* | osf5*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 rdos*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 solaris*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228
5229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 sysv4 | sysv4.3*)
5234 case $host_vendor in
5235 motorola)
5236 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]'
5237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5238 ;;
5239 ncr)
5240 lt_cv_deplibs_check_method=pass_all
5241 ;;
5242 sequent)
5243 lt_cv_file_magic_cmd='/bin/file'
5244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5245 ;;
5246 sni)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5249 lt_cv_file_magic_test_file=/lib/libc.so
5250 ;;
5251 siemens)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254 pc)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 esac
5258 ;;
5259
5260 tpf*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263 os2*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266 esac
5267
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5270 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5271
5272 file_magic_glob=
5273 want_nocaseglob=no
5274 if test "$build" = "$host"; then
5275 case $host_os in
5276 mingw* | pw32*)
5277 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5278 want_nocaseglob=yes
5279 else
5280 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5281 fi
5282 ;;
5283 esac
5284 fi
5285
5286 file_magic_cmd=$lt_cv_file_magic_cmd
5287 deplibs_check_method=$lt_cv_deplibs_check_method
5288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_DLLTOOL+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$DLLTOOL"; then
5320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 DLLTOOL=$ac_cv_prog_DLLTOOL
5340 if test -n "$DLLTOOL"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5342 $as_echo "$DLLTOOL" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 fi
5350 if test -z "$ac_cv_prog_DLLTOOL"; then
5351 ac_ct_DLLTOOL=$DLLTOOL
5352 # Extract the first word of "dlltool", so it can be a program name with args.
5353 set dummy dlltool; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$ac_ct_DLLTOOL"; then
5360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5380 if test -n "$ac_ct_DLLTOOL"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5382 $as_echo "$ac_ct_DLLTOOL" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388 if test "x$ac_ct_DLLTOOL" = x; then
5389 DLLTOOL="false"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 DLLTOOL=$ac_ct_DLLTOOL
5398 fi
5399 else
5400 DLLTOOL="$ac_cv_prog_DLLTOOL"
5401 fi
5402
5403 test -z "$DLLTOOL" && DLLTOOL=dlltool
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 lt_cv_sharedlib_from_linklib_cmd='unknown'
5420
5421 case $host_os in
5422 cygwin* | mingw* | pw32* | cegcc*)
5423 # two different shell functions defined in ltmain.sh;
5424 # decide which one to use based on capabilities of $DLLTOOL
5425 case `$DLLTOOL --help 2>&1` in
5426 *--identify-strict*)
5427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5428 ;;
5429 *)
5430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5431 ;;
5432 esac
5433 ;;
5434 *)
5435 # fallback: assume linklib IS sharedlib
5436 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5437 ;;
5438 esac
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5445
5446
5447
5448
5449
5450
5451
5452
5453 if test -n "$ac_tool_prefix"; then
5454 for ac_prog in ar
5455 do
5456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_AR+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$AR"; then
5464 ac_cv_prog_AR="$AR" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 AR=$ac_cv_prog_AR
5484 if test -n "$AR"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5486 $as_echo "$AR" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 test -n "$AR" && break
5494 done
5495 fi
5496 if test -z "$AR"; then
5497 ac_ct_AR=$AR
5498 for ac_prog in ar
5499 do
5500 # Extract the first word of "$ac_prog", so it can be a program name with args.
5501 set dummy $ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_AR"; then
5508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_AR="$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5528 if test -n "$ac_ct_AR"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5530 $as_echo "$ac_ct_AR" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536
5537 test -n "$ac_ct_AR" && break
5538 done
5539
5540 if test "x$ac_ct_AR" = x; then
5541 AR="false"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549 AR=$ac_ct_AR
5550 fi
5551 fi
5552
5553 : ${AR=ar}
5554 : ${AR_FLAGS=cru}
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5567 $as_echo_n "checking for archiver @FILE support... " >&6; }
5568 if ${lt_cv_ar_at_file+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 lt_cv_ar_at_file=no
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574
5575 int
5576 main ()
5577 {
5578
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"; then :
5584 echo conftest.$ac_objext > conftest.lst
5585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5587 (eval $lt_ar_try) 2>&5
5588 ac_status=$?
5589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; }
5591 if test 0 -eq "$ac_status"; then
5592 # Ensure the archiver fails upon bogus file names.
5593 rm -f conftest.$ac_objext libconftest.a
5594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5595 (eval $lt_ar_try) 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598 test $ac_status = 0; }
5599 if test 0 -ne "$ac_status"; then
5600 lt_cv_ar_at_file=@
5601 fi
5602 fi
5603 rm -f conftest.* libconftest.a
5604
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5610 $as_echo "$lt_cv_ar_at_file" >&6; }
5611
5612 if test no = "$lt_cv_ar_at_file"; then
5613 archiver_list_spec=
5614 else
5615 archiver_list_spec=$lt_cv_ar_at_file
5616 fi
5617
5618
5619
5620
5621
5622
5623
5624 if test -n "$ac_tool_prefix"; then
5625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}strip; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_STRIP+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$STRIP"; then
5633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5645 fi
5646 done
5647 done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 STRIP=$ac_cv_prog_STRIP
5653 if test -n "$STRIP"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5655 $as_echo "$STRIP" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661
5662 fi
5663 if test -z "$ac_cv_prog_STRIP"; then
5664 ac_ct_STRIP=$STRIP
5665 # Extract the first word of "strip", so it can be a program name with args.
5666 set dummy strip; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$ac_ct_STRIP"; then
5673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_ac_ct_STRIP="strip"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5693 if test -n "$ac_ct_STRIP"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5695 $as_echo "$ac_ct_STRIP" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 fi
5700
5701 if test "x$ac_ct_STRIP" = x; then
5702 STRIP=":"
5703 else
5704 case $cross_compiling:$ac_tool_warned in
5705 yes:)
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710 STRIP=$ac_ct_STRIP
5711 fi
5712 else
5713 STRIP="$ac_cv_prog_STRIP"
5714 fi
5715
5716 test -z "$STRIP" && STRIP=:
5717
5718
5719
5720
5721
5722
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_RANLIB+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$RANLIB"; then
5732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 RANLIB=$ac_cv_prog_RANLIB
5752 if test -n "$RANLIB"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5754 $as_echo "$RANLIB" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 fi
5762 if test -z "$ac_cv_prog_RANLIB"; then
5763 ac_ct_RANLIB=$RANLIB
5764 # Extract the first word of "ranlib", so it can be a program name with args.
5765 set dummy ranlib; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$ac_ct_RANLIB"; then
5772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_RANLIB="ranlib"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5792 if test -n "$ac_ct_RANLIB"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5794 $as_echo "$ac_ct_RANLIB" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800 if test "x$ac_ct_RANLIB" = x; then
5801 RANLIB=":"
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809 RANLIB=$ac_ct_RANLIB
5810 fi
5811 else
5812 RANLIB="$ac_cv_prog_RANLIB"
5813 fi
5814
5815 test -z "$RANLIB" && RANLIB=:
5816
5817
5818
5819
5820
5821
5822 # Determine commands to create old-style static archives.
5823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5824 old_postinstall_cmds='chmod 644 $oldlib'
5825 old_postuninstall_cmds=
5826
5827 if test -n "$RANLIB"; then
5828 case $host_os in
5829 bitrig* | openbsd*)
5830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5831 ;;
5832 *)
5833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5834 ;;
5835 esac
5836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5837 fi
5838
5839 case $host_os in
5840 darwin*)
5841 lock_old_archive_extraction=yes ;;
5842 *)
5843 lock_old_archive_extraction=no ;;
5844 esac
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 # If no C compiler was specified, use CC.
5885 LTCC=${LTCC-"$CC"}
5886
5887 # If no C compiler flags were specified, use CFLAGS.
5888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5889
5890 # Allow CC to be a program name with arguments.
5891 compiler=$CC
5892
5893
5894 # Check for command to grab the raw symbol name followed by C symbol from nm.
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5896 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5897 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900
5901 # These are sane defaults that work on at least a few old systems.
5902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5903
5904 # Character class describing NM global symbol codes.
5905 symcode='[BCDEGRST]'
5906
5907 # Regexp to match symbols that can be accessed directly from C.
5908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5909
5910 # Define system-specific variables.
5911 case $host_os in
5912 aix*)
5913 symcode='[BCDT]'
5914 ;;
5915 cygwin* | mingw* | pw32* | cegcc*)
5916 symcode='[ABCDGISTW]'
5917 ;;
5918 hpux*)
5919 if test ia64 = "$host_cpu"; then
5920 symcode='[ABCDEGRST]'
5921 fi
5922 ;;
5923 irix* | nonstopux*)
5924 symcode='[BCDEGRST]'
5925 ;;
5926 osf*)
5927 symcode='[BCDEGQRST]'
5928 ;;
5929 solaris*)
5930 symcode='[BDRT]'
5931 ;;
5932 sco3.2v5*)
5933 symcode='[DT]'
5934 ;;
5935 sysv4.2uw2*)
5936 symcode='[DT]'
5937 ;;
5938 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5939 symcode='[ABDT]'
5940 ;;
5941 sysv4)
5942 symcode='[DFNSTU]'
5943 ;;
5944 esac
5945
5946 # If we're using GNU nm, then use its standard symbol codes.
5947 case `$NM -V 2>&1` in
5948 *GNU* | *'with BFD'*)
5949 symcode='[ABCDGIRSTW]' ;;
5950 esac
5951
5952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5953 # Gets list of data symbols to import.
5954 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5955 # Adjust the below global symbol transforms to fixup imported variables.
5956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5958 lt_c_name_lib_hook="\
5959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5961 else
5962 # Disable hooks by default.
5963 lt_cv_sys_global_symbol_to_import=
5964 lt_cdecl_hook=
5965 lt_c_name_hook=
5966 lt_c_name_lib_hook=
5967 fi
5968
5969 # Transform an extracted symbol line into a proper C declaration.
5970 # Some systems (esp. on ia64) link data and code symbols differently,
5971 # so use this general approach.
5972 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5973 $lt_cdecl_hook\
5974 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5975 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5976
5977 # Transform an extracted symbol line into symbol name and symbol address
5978 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5979 $lt_c_name_hook\
5980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5982
5983 # Transform an extracted symbol line into symbol name with lib prefix and
5984 # symbol address.
5985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5986 $lt_c_name_lib_hook\
5987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5988 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5989 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5990
5991 # Handle CRLF in mingw tool chain
5992 opt_cr=
5993 case $build_os in
5994 mingw*)
5995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5996 ;;
5997 esac
5998
5999 # Try without a prefix underscore, then with it.
6000 for ac_symprfx in "" "_"; do
6001
6002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6003 symxfrm="\\1 $ac_symprfx\\2 \\2"
6004
6005 # Write the raw and C identifiers.
6006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6007 # Fake it for dumpbin and say T for any non-static function,
6008 # D for any global variable and I for any imported variable.
6009 # Also find C++ and __fastcall symbols from MSVC++,
6010 # which start with @ or ?.
6011 lt_cv_sys_global_symbol_pipe="$AWK '"\
6012 " {last_section=section; section=\$ 3};"\
6013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6015 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6016 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6017 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6018 " \$ 0!~/External *\|/{next};"\
6019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6020 " {if(hide[section]) next};"\
6021 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6022 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6023 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6024 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6025 " ' prfx=^$ac_symprfx"
6026 else
6027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6028 fi
6029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6030
6031 # Check to see that the pipe works correctly.
6032 pipe_works=no
6033
6034 rm -f conftest*
6035 cat > conftest.$ac_ext <<_LT_EOF
6036 #ifdef __cplusplus
6037 extern "C" {
6038 #endif
6039 char nm_test_var;
6040 void nm_test_func(void);
6041 void nm_test_func(void){}
6042 #ifdef __cplusplus
6043 }
6044 #endif
6045 int main(){nm_test_var='a';nm_test_func();return(0);}
6046 _LT_EOF
6047
6048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6049 (eval $ac_compile) 2>&5
6050 ac_status=$?
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }; then
6053 # Now try to grab the symbols.
6054 nlist=conftest.nm
6055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; } && test -s "$nlist"; then
6060 # Try sorting and uniquifying the output.
6061 if sort "$nlist" | uniq > "$nlist"T; then
6062 mv -f "$nlist"T "$nlist"
6063 else
6064 rm -f "$nlist"T
6065 fi
6066
6067 # Make sure that we snagged all the symbols we need.
6068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6070 cat <<_LT_EOF > conftest.$ac_ext
6071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6072 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6073 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6074 relocations are performed -- see ld's documentation on pseudo-relocs. */
6075 # define LT_DLSYM_CONST
6076 #elif defined __osf__
6077 /* This system does not cope well with relocations in const data. */
6078 # define LT_DLSYM_CONST
6079 #else
6080 # define LT_DLSYM_CONST const
6081 #endif
6082
6083 #ifdef __cplusplus
6084 extern "C" {
6085 #endif
6086
6087 _LT_EOF
6088 # Now generate the symbol file.
6089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6090
6091 cat <<_LT_EOF >> conftest.$ac_ext
6092
6093 /* The mapping between symbol names and symbols. */
6094 LT_DLSYM_CONST struct {
6095 const char *name;
6096 void *address;
6097 }
6098 lt__PROGRAM__LTX_preloaded_symbols[] =
6099 {
6100 { "@PROGRAM@", (void *) 0 },
6101 _LT_EOF
6102 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6103 cat <<\_LT_EOF >> conftest.$ac_ext
6104 {0, (void *) 0}
6105 };
6106
6107 /* This works around a problem in FreeBSD linker */
6108 #ifdef FREEBSD_WORKAROUND
6109 static const void *lt_preloaded_setup() {
6110 return lt__PROGRAM__LTX_preloaded_symbols;
6111 }
6112 #endif
6113
6114 #ifdef __cplusplus
6115 }
6116 #endif
6117 _LT_EOF
6118 # Now try linking the two files.
6119 mv conftest.$ac_objext conftstm.$ac_objext
6120 lt_globsym_save_LIBS=$LIBS
6121 lt_globsym_save_CFLAGS=$CFLAGS
6122 LIBS=conftstm.$ac_objext
6123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6125 (eval $ac_link) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6129 pipe_works=yes
6130 fi
6131 LIBS=$lt_globsym_save_LIBS
6132 CFLAGS=$lt_globsym_save_CFLAGS
6133 else
6134 echo "cannot find nm_test_func in $nlist" >&5
6135 fi
6136 else
6137 echo "cannot find nm_test_var in $nlist" >&5
6138 fi
6139 else
6140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6141 fi
6142 else
6143 echo "$progname: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 fi
6146 rm -rf conftest* conftst*
6147
6148 # Do not use the global_symbol_pipe unless it works.
6149 if test yes = "$pipe_works"; then
6150 break
6151 else
6152 lt_cv_sys_global_symbol_pipe=
6153 fi
6154 done
6155
6156 fi
6157
6158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6159 lt_cv_sys_global_symbol_to_cdecl=
6160 fi
6161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6163 $as_echo "failed" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6166 $as_echo "ok" >&6; }
6167 fi
6168
6169 # Response file support.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 nm_file_list_spec='@'
6172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6173 nm_file_list_spec='@'
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6213 $as_echo_n "checking for sysroot... " >&6; }
6214
6215 # Check whether --with-sysroot was given.
6216 if test "${with_sysroot+set}" = set; then :
6217 withval=$with_sysroot;
6218 else
6219 with_sysroot=no
6220 fi
6221
6222
6223 lt_sysroot=
6224 case $with_sysroot in #(
6225 yes)
6226 if test yes = "$GCC"; then
6227 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6228 fi
6229 ;; #(
6230 /*)
6231 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6232 ;; #(
6233 no|'')
6234 ;; #(
6235 *)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6237 $as_echo "$with_sysroot" >&6; }
6238 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6239 ;;
6240 esac
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6243 $as_echo "${lt_sysroot:-no}" >&6; }
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6250 $as_echo_n "checking for a working dd... " >&6; }
6251 if ${ac_cv_path_lt_DD+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 printf 0123456789abcdef0123456789abcdef >conftest.i
6255 cat conftest.i conftest.i >conftest2.i
6256 : ${lt_DD:=$DD}
6257 if test -z "$lt_DD"; then
6258 ac_path_lt_DD_found=false
6259 # Loop through the user's path and test for each of PROGNAME-LIST
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_prog in dd; do
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_lt_DD" || continue
6269 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6270 cmp -s conftest.i conftest.out \
6271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6272 fi
6273 $ac_path_lt_DD_found && break 3
6274 done
6275 done
6276 done
6277 IFS=$as_save_IFS
6278 if test -z "$ac_cv_path_lt_DD"; then
6279 :
6280 fi
6281 else
6282 ac_cv_path_lt_DD=$lt_DD
6283 fi
6284
6285 rm -f conftest.i conftest2.i conftest.out
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6288 $as_echo "$ac_cv_path_lt_DD" >&6; }
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6292 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6293 if ${lt_cv_truncate_bin+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 printf 0123456789abcdef0123456789abcdef >conftest.i
6297 cat conftest.i conftest.i >conftest2.i
6298 lt_cv_truncate_bin=
6299 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6300 cmp -s conftest.i conftest.out \
6301 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6302 fi
6303 rm -f conftest.i conftest2.i conftest.out
6304 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6307 $as_echo "$lt_cv_truncate_bin" >&6; }
6308
6309
6310
6311
6312
6313
6314
6315 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6316 func_cc_basename ()
6317 {
6318 for cc_temp in $*""; do
6319 case $cc_temp in
6320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6322 \-*) ;;
6323 *) break;;
6324 esac
6325 done
6326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6327 }
6328
6329 # Check whether --enable-libtool-lock was given.
6330 if test "${enable_libtool_lock+set}" = set; then :
6331 enableval=$enable_libtool_lock;
6332 fi
6333
6334 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6335
6336 # Some flags need to be propagated to the compiler or linker for good
6337 # libtool support.
6338 case $host in
6339 ia64-*-hpux*)
6340 # Find out what ABI is being produced by ac_compile, and set mode
6341 # options accordingly.
6342 echo 'int i;' > conftest.$ac_ext
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 (eval $ac_compile) 2>&5
6345 ac_status=$?
6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }; then
6348 case `/usr/bin/file conftest.$ac_objext` in
6349 *ELF-32*)
6350 HPUX_IA64_MODE=32
6351 ;;
6352 *ELF-64*)
6353 HPUX_IA64_MODE=64
6354 ;;
6355 esac
6356 fi
6357 rm -rf conftest*
6358 ;;
6359 *-*-irix6*)
6360 # Find out what ABI is being produced by ac_compile, and set linker
6361 # options accordingly.
6362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }; then
6368 if test yes = "$lt_cv_prog_gnu_ld"; then
6369 case `/usr/bin/file conftest.$ac_objext` in
6370 *32-bit*)
6371 LD="${LD-ld} -melf32bsmip"
6372 ;;
6373 *N32*)
6374 LD="${LD-ld} -melf32bmipn32"
6375 ;;
6376 *64-bit*)
6377 LD="${LD-ld} -melf64bmip"
6378 ;;
6379 esac
6380 else
6381 case `/usr/bin/file conftest.$ac_objext` in
6382 *32-bit*)
6383 LD="${LD-ld} -32"
6384 ;;
6385 *N32*)
6386 LD="${LD-ld} -n32"
6387 ;;
6388 *64-bit*)
6389 LD="${LD-ld} -64"
6390 ;;
6391 esac
6392 fi
6393 fi
6394 rm -rf conftest*
6395 ;;
6396
6397 mips64*-*linux*)
6398 # Find out what ABI is being produced by ac_compile, and set linker
6399 # options accordingly.
6400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }; then
6406 emul=elf
6407 case `/usr/bin/file conftest.$ac_objext` in
6408 *32-bit*)
6409 emul="${emul}32"
6410 ;;
6411 *64-bit*)
6412 emul="${emul}64"
6413 ;;
6414 esac
6415 case `/usr/bin/file conftest.$ac_objext` in
6416 *MSB*)
6417 emul="${emul}btsmip"
6418 ;;
6419 *LSB*)
6420 emul="${emul}ltsmip"
6421 ;;
6422 esac
6423 case `/usr/bin/file conftest.$ac_objext` in
6424 *N32*)
6425 emul="${emul}n32"
6426 ;;
6427 esac
6428 LD="${LD-ld} -m $emul"
6429 fi
6430 rm -rf conftest*
6431 ;;
6432
6433 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6434 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6435 # Find out what ABI is being produced by ac_compile, and set linker
6436 # options accordingly. Note that the listed cases only cover the
6437 # situations where additional linker options are needed (such as when
6438 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6439 # vice versa); the common cases where no linker options are needed do
6440 # not appear in the list.
6441 echo 'int i;' > conftest.$ac_ext
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 case `/usr/bin/file conftest.o` in
6448 *32-bit*)
6449 case $host in
6450 x86_64-*kfreebsd*-gnu)
6451 LD="${LD-ld} -m elf_i386_fbsd"
6452 ;;
6453 x86_64-*linux*)
6454 case `/usr/bin/file conftest.o` in
6455 *x86-64*)
6456 LD="${LD-ld} -m elf32_x86_64"
6457 ;;
6458 *)
6459 LD="${LD-ld} -m elf_i386"
6460 ;;
6461 esac
6462 ;;
6463 powerpc64le-*linux*)
6464 LD="${LD-ld} -m elf32lppclinux"
6465 ;;
6466 powerpc64-*linux*)
6467 LD="${LD-ld} -m elf32ppclinux"
6468 ;;
6469 s390x-*linux*)
6470 LD="${LD-ld} -m elf_s390"
6471 ;;
6472 sparc64-*linux*)
6473 LD="${LD-ld} -m elf32_sparc"
6474 ;;
6475 esac
6476 ;;
6477 *64-bit*)
6478 case $host in
6479 x86_64-*kfreebsd*-gnu)
6480 LD="${LD-ld} -m elf_x86_64_fbsd"
6481 ;;
6482 x86_64-*linux*)
6483 LD="${LD-ld} -m elf_x86_64"
6484 ;;
6485 powerpcle-*linux*)
6486 LD="${LD-ld} -m elf64lppc"
6487 ;;
6488 powerpc-*linux*)
6489 LD="${LD-ld} -m elf64ppc"
6490 ;;
6491 s390*-*linux*|s390*-*tpf*)
6492 LD="${LD-ld} -m elf64_s390"
6493 ;;
6494 sparc*-*linux*)
6495 LD="${LD-ld} -m elf64_sparc"
6496 ;;
6497 esac
6498 ;;
6499 esac
6500 fi
6501 rm -rf conftest*
6502 ;;
6503
6504 *-*-sco3.2v5*)
6505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6506 SAVE_CFLAGS=$CFLAGS
6507 CFLAGS="$CFLAGS -belf"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6510 if ${lt_cv_cc_needs_belf+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 ac_ext=c
6514 ac_cpp='$CPP $CPPFLAGS'
6515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521
6522 int
6523 main ()
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_link "$LINENO"; then :
6531 lt_cv_cc_needs_belf=yes
6532 else
6533 lt_cv_cc_needs_belf=no
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 ac_ext=c
6538 ac_cpp='$CPP $CPPFLAGS'
6539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6546 if test yes != "$lt_cv_cc_needs_belf"; then
6547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6548 CFLAGS=$SAVE_CFLAGS
6549 fi
6550 ;;
6551 *-*solaris*)
6552 # Find out what ABI is being produced by ac_compile, and set linker
6553 # options accordingly.
6554 echo 'int i;' > conftest.$ac_ext
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556 (eval $ac_compile) 2>&5
6557 ac_status=$?
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; then
6560 case `/usr/bin/file conftest.o` in
6561 *64-bit*)
6562 case $lt_cv_prog_gnu_ld in
6563 yes*)
6564 case $host in
6565 i?86-*-solaris*|x86_64-*-solaris*)
6566 LD="${LD-ld} -m elf_x86_64"
6567 ;;
6568 sparc*-*-solaris*)
6569 LD="${LD-ld} -m elf64_sparc"
6570 ;;
6571 esac
6572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6574 LD=${LD-ld}_sol2
6575 fi
6576 ;;
6577 *)
6578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6579 LD="${LD-ld} -64"
6580 fi
6581 ;;
6582 esac
6583 ;;
6584 esac
6585 fi
6586 rm -rf conftest*
6587 ;;
6588 esac
6589
6590 need_locks=$enable_libtool_lock
6591
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}mt; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$MANIFEST_TOOL"; then
6601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6621 if test -n "$MANIFEST_TOOL"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6623 $as_echo "$MANIFEST_TOOL" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6633 # Extract the first word of "mt", so it can be a program name with args.
6634 set dummy mt; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$ac_ct_MANIFEST_TOOL"; then
6641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6661 if test -n "$ac_ct_MANIFEST_TOOL"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6670 MANIFEST_TOOL=":"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6679 fi
6680 else
6681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6682 fi
6683
6684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6687 if ${lt_cv_path_mainfest_tool+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 lt_cv_path_mainfest_tool=no
6691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6693 cat conftest.err >&5
6694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6695 lt_cv_path_mainfest_tool=yes
6696 fi
6697 rm -f conftest*
6698 fi
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6701 if test yes != "$lt_cv_path_mainfest_tool"; then
6702 MANIFEST_TOOL=:
6703 fi
6704
6705
6706
6707
6708
6709
6710 case $host_os in
6711 rhapsody* | darwin*)
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$DSYMUTIL"; then
6721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6741 if test -n "$DSYMUTIL"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6743 $as_echo "$DSYMUTIL" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_DSYMUTIL"; then
6752 ac_ct_DSYMUTIL=$DSYMUTIL
6753 # Extract the first word of "dsymutil", so it can be a program name with args.
6754 set dummy dsymutil; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$ac_ct_DSYMUTIL"; then
6761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6781 if test -n "$ac_ct_DSYMUTIL"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789 if test "x$ac_ct_DSYMUTIL" = x; then
6790 DSYMUTIL=":"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 DSYMUTIL=$ac_ct_DSYMUTIL
6799 fi
6800 else
6801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6802 fi
6803
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_NMEDIT+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$NMEDIT"; then
6813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 NMEDIT=$ac_cv_prog_NMEDIT
6833 if test -n "$NMEDIT"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6835 $as_echo "$NMEDIT" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_NMEDIT"; then
6844 ac_ct_NMEDIT=$NMEDIT
6845 # Extract the first word of "nmedit", so it can be a program name with args.
6846 set dummy nmedit; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$ac_ct_NMEDIT"; then
6853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6873 if test -n "$ac_ct_NMEDIT"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6875 $as_echo "$ac_ct_NMEDIT" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881 if test "x$ac_ct_NMEDIT" = x; then
6882 NMEDIT=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 NMEDIT=$ac_ct_NMEDIT
6891 fi
6892 else
6893 NMEDIT="$ac_cv_prog_NMEDIT"
6894 fi
6895
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_LIPO+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$LIPO"; then
6905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6909 do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918 done
6919 done
6920 IFS=$as_save_IFS
6921
6922 fi
6923 fi
6924 LIPO=$ac_cv_prog_LIPO
6925 if test -n "$LIPO"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6927 $as_echo "$LIPO" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933
6934 fi
6935 if test -z "$ac_cv_prog_LIPO"; then
6936 ac_ct_LIPO=$LIPO
6937 # Extract the first word of "lipo", so it can be a program name with args.
6938 set dummy lipo; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_LIPO"; then
6945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_LIPO="lipo"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6965 if test -n "$ac_ct_LIPO"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6967 $as_echo "$ac_ct_LIPO" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973 if test "x$ac_ct_LIPO" = x; then
6974 LIPO=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 LIPO=$ac_ct_LIPO
6983 fi
6984 else
6985 LIPO="$ac_cv_prog_LIPO"
6986 fi
6987
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}otool; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_OTOOL+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$OTOOL"; then
6997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 OTOOL=$ac_cv_prog_OTOOL
7017 if test -n "$OTOOL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7019 $as_echo "$OTOOL" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_OTOOL"; then
7028 ac_ct_OTOOL=$OTOOL
7029 # Extract the first word of "otool", so it can be a program name with args.
7030 set dummy otool; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$ac_ct_OTOOL"; then
7037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_OTOOL="otool"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7057 if test -n "$ac_ct_OTOOL"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7059 $as_echo "$ac_ct_OTOOL" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065 if test "x$ac_ct_OTOOL" = x; then
7066 OTOOL=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074 OTOOL=$ac_ct_OTOOL
7075 fi
7076 else
7077 OTOOL="$ac_cv_prog_OTOOL"
7078 fi
7079
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_OTOOL64+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$OTOOL64"; then
7089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 OTOOL64=$ac_cv_prog_OTOOL64
7109 if test -n "$OTOOL64"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7111 $as_echo "$OTOOL64" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117
7118 fi
7119 if test -z "$ac_cv_prog_OTOOL64"; then
7120 ac_ct_OTOOL64=$OTOOL64
7121 # Extract the first word of "otool64", so it can be a program name with args.
7122 set dummy otool64; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$ac_ct_OTOOL64"; then
7129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_OTOOL64="otool64"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7149 if test -n "$ac_ct_OTOOL64"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7151 $as_echo "$ac_ct_OTOOL64" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157 if test "x$ac_ct_OTOOL64" = x; then
7158 OTOOL64=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166 OTOOL64=$ac_ct_OTOOL64
7167 fi
7168 else
7169 OTOOL64="$ac_cv_prog_OTOOL64"
7170 fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7199 $as_echo_n "checking for -single_module linker flag... " >&6; }
7200 if ${lt_cv_apple_cc_single_mod+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 lt_cv_apple_cc_single_mod=no
7204 if test -z "$LT_MULTI_MODULE"; then
7205 # By default we will add the -single_module flag. You can override
7206 # by either setting the environment variable LT_MULTI_MODULE
7207 # non-empty at configure time, or by adding -multi_module to the
7208 # link flags.
7209 rm -rf libconftest.dylib*
7210 echo "int foo(void){return 1;}" > conftest.c
7211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7212 -dynamiclib -Wl,-single_module conftest.c" >&5
7213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7215 _lt_result=$?
7216 # If there is a non-empty error log, and "single_module"
7217 # appears in it, assume the flag caused a linker warning
7218 if test -s conftest.err && $GREP single_module conftest.err; then
7219 cat conftest.err >&5
7220 # Otherwise, if the output was created with a 0 exit code from
7221 # the compiler, it worked.
7222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7223 lt_cv_apple_cc_single_mod=yes
7224 else
7225 cat conftest.err >&5
7226 fi
7227 rm -rf libconftest.dylib*
7228 rm -f conftest.*
7229 fi
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7232 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7233
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7235 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7236 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 lt_cv_ld_exported_symbols_list=no
7240 save_LDFLAGS=$LDFLAGS
7241 echo "_main" > conftest.sym
7242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245
7246 int
7247 main ()
7248 {
7249
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_link "$LINENO"; then :
7255 lt_cv_ld_exported_symbols_list=yes
7256 else
7257 lt_cv_ld_exported_symbols_list=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
7261 LDFLAGS=$save_LDFLAGS
7262
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7265 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7268 $as_echo_n "checking for -force_load linker flag... " >&6; }
7269 if ${lt_cv_ld_force_load+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 lt_cv_ld_force_load=no
7273 cat > conftest.c << _LT_EOF
7274 int forced_loaded() { return 2;}
7275 _LT_EOF
7276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7278 echo "$AR cru libconftest.a conftest.o" >&5
7279 $AR cru libconftest.a conftest.o 2>&5
7280 echo "$RANLIB libconftest.a" >&5
7281 $RANLIB libconftest.a 2>&5
7282 cat > conftest.c << _LT_EOF
7283 int main() { return 0;}
7284 _LT_EOF
7285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7287 _lt_result=$?
7288 if test -s conftest.err && $GREP force_load conftest.err; then
7289 cat conftest.err >&5
7290 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7291 lt_cv_ld_force_load=yes
7292 else
7293 cat conftest.err >&5
7294 fi
7295 rm -f conftest.err libconftest.a conftest conftest.c
7296 rm -rf conftest.dSYM
7297
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7300 $as_echo "$lt_cv_ld_force_load" >&6; }
7301 case $host_os in
7302 rhapsody* | darwin1.[012])
7303 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7304 darwin1.*)
7305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7306 darwin*) # darwin 5.x on
7307 # if running on 10.5 or later, the deployment target defaults
7308 # to the OS version, if on x86, and 10.4, the deployment
7309 # target defaults to 10.4. Don't you love it?
7310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7312 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7313 10.[012][,.]*)
7314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7315 10.*)
7316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7317 esac
7318 ;;
7319 esac
7320 if test yes = "$lt_cv_apple_cc_single_mod"; then
7321 _lt_dar_single_mod='$single_module'
7322 fi
7323 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7324 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7325 else
7326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7327 fi
7328 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7329 _lt_dsymutil='~$DSYMUTIL $lib || :'
7330 else
7331 _lt_dsymutil=
7332 fi
7333 ;;
7334 esac
7335
7336 # func_munge_path_list VARIABLE PATH
7337 # -----------------------------------
7338 # VARIABLE is name of variable containing _space_ separated list of
7339 # directories to be munged by the contents of PATH, which is string
7340 # having a format:
7341 # "DIR[:DIR]:"
7342 # string "DIR[ DIR]" will be prepended to VARIABLE
7343 # ":DIR[:DIR]"
7344 # string "DIR[ DIR]" will be appended to VARIABLE
7345 # "DIRP[:DIRP]::[DIRA:]DIRA"
7346 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7347 # "DIRA[ DIRA]" will be appended to VARIABLE
7348 # "DIR[:DIR]"
7349 # VARIABLE will be replaced by "DIR[ DIR]"
7350 func_munge_path_list ()
7351 {
7352 case x$2 in
7353 x)
7354 ;;
7355 *:)
7356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7357 ;;
7358 x:*)
7359 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7360 ;;
7361 *::*)
7362 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7363 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7364 ;;
7365 *)
7366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7367 ;;
7368 esac
7369 }
7370
7371 ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7378 # On Suns, sometimes $CPP names a directory.
7379 if test -n "$CPP" && test -d "$CPP"; then
7380 CPP=
7381 fi
7382 if test -z "$CPP"; then
7383 if ${ac_cv_prog_CPP+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 # Double quotes because CPP needs to be expanded
7387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7388 do
7389 ac_preproc_ok=false
7390 for ac_c_preproc_warn_flag in '' yes
7391 do
7392 # Use a header file that comes with gcc, so configuring glibc
7393 # with a fresh cross-compiler works.
7394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395 # <limits.h> exists even on freestanding compilers.
7396 # On the NeXT, cc -E runs the code through the compiler's parser,
7397 # not just through cpp. "Syntax error" is here to catch this case.
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #ifdef __STDC__
7401 # include <limits.h>
7402 #else
7403 # include <assert.h>
7404 #endif
7405 Syntax error
7406 _ACEOF
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408
7409 else
7410 # Broken: fails on valid input.
7411 continue
7412 fi
7413 rm -f conftest.err conftest.i conftest.$ac_ext
7414
7415 # OK, works on sane cases. Now check whether nonexistent headers
7416 # can be detected and how.
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 #include <ac_nonexistent.h>
7420 _ACEOF
7421 if ac_fn_c_try_cpp "$LINENO"; then :
7422 # Broken: success on invalid input.
7423 continue
7424 else
7425 # Passes both tests.
7426 ac_preproc_ok=:
7427 break
7428 fi
7429 rm -f conftest.err conftest.i conftest.$ac_ext
7430
7431 done
7432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7433 rm -f conftest.i conftest.err conftest.$ac_ext
7434 if $ac_preproc_ok; then :
7435 break
7436 fi
7437
7438 done
7439 ac_cv_prog_CPP=$CPP
7440
7441 fi
7442 CPP=$ac_cv_prog_CPP
7443 else
7444 ac_cv_prog_CPP=$CPP
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7447 $as_echo "$CPP" >&6; }
7448 ac_preproc_ok=false
7449 for ac_c_preproc_warn_flag in '' yes
7450 do
7451 # Use a header file that comes with gcc, so configuring glibc
7452 # with a fresh cross-compiler works.
7453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 # <limits.h> exists even on freestanding compilers.
7455 # On the NeXT, cc -E runs the code through the compiler's parser,
7456 # not just through cpp. "Syntax error" is here to catch this case.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #ifdef __STDC__
7460 # include <limits.h>
7461 #else
7462 # include <assert.h>
7463 #endif
7464 Syntax error
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467
7468 else
7469 # Broken: fails on valid input.
7470 continue
7471 fi
7472 rm -f conftest.err conftest.i conftest.$ac_ext
7473
7474 # OK, works on sane cases. Now check whether nonexistent headers
7475 # can be detected and how.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ac_nonexistent.h>
7479 _ACEOF
7480 if ac_fn_c_try_cpp "$LINENO"; then :
7481 # Broken: success on invalid input.
7482 continue
7483 else
7484 # Passes both tests.
7485 ac_preproc_ok=:
7486 break
7487 fi
7488 rm -f conftest.err conftest.i conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.i conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then :
7494
7495 else
7496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7498 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7499 See \`config.log' for more details" "$LINENO" 5; }
7500 fi
7501
7502 ac_ext=c
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7510 $as_echo_n "checking for ANSI C header files... " >&6; }
7511 if ${ac_cv_header_stdc+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 #include <stdlib.h>
7517 #include <stdarg.h>
7518 #include <string.h>
7519 #include <float.h>
7520
7521 int
7522 main ()
7523 {
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 ac_cv_header_stdc=yes
7531 else
7532 ac_cv_header_stdc=no
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535
7536 if test $ac_cv_header_stdc = yes; then
7537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <string.h>
7541
7542 _ACEOF
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 $EGREP "memchr" >/dev/null 2>&1; then :
7545
7546 else
7547 ac_cv_header_stdc=no
7548 fi
7549 rm -f conftest*
7550
7551 fi
7552
7553 if test $ac_cv_header_stdc = yes; then
7554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 #include <stdlib.h>
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561 $EGREP "free" >/dev/null 2>&1; then :
7562
7563 else
7564 ac_cv_header_stdc=no
7565 fi
7566 rm -f conftest*
7567
7568 fi
7569
7570 if test $ac_cv_header_stdc = yes; then
7571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7572 if test "$cross_compiling" = yes; then :
7573 :
7574 else
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #include <ctype.h>
7578 #include <stdlib.h>
7579 #if ((' ' & 0x0FF) == 0x020)
7580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7582 #else
7583 # define ISLOWER(c) \
7584 (('a' <= (c) && (c) <= 'i') \
7585 || ('j' <= (c) && (c) <= 'r') \
7586 || ('s' <= (c) && (c) <= 'z'))
7587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7588 #endif
7589
7590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7591 int
7592 main ()
7593 {
7594 int i;
7595 for (i = 0; i < 256; i++)
7596 if (XOR (islower (i), ISLOWER (i))
7597 || toupper (i) != TOUPPER (i))
7598 return 2;
7599 return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_run "$LINENO"; then :
7603
7604 else
7605 ac_cv_header_stdc=no
7606 fi
7607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608 conftest.$ac_objext conftest.beam conftest.$ac_ext
7609 fi
7610
7611 fi
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7614 $as_echo "$ac_cv_header_stdc" >&6; }
7615 if test $ac_cv_header_stdc = yes; then
7616
7617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7618
7619 fi
7620
7621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7623 inttypes.h stdint.h unistd.h
7624 do :
7625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7627 "
7628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7629 cat >>confdefs.h <<_ACEOF
7630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7632
7633 fi
7634
7635 done
7636
7637
7638 for ac_header in dlfcn.h
7639 do :
7640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7641 "
7642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7643 cat >>confdefs.h <<_ACEOF
7644 #define HAVE_DLFCN_H 1
7645 _ACEOF
7646
7647 fi
7648
7649 done
7650
7651
7652
7653
7654
7655 # Set options
7656
7657
7658
7659 enable_dlopen=no
7660
7661
7662 enable_win32_dll=no
7663
7664
7665 # Check whether --enable-shared was given.
7666 if test "${enable_shared+set}" = set; then :
7667 enableval=$enable_shared; p=${PACKAGE-default}
7668 case $enableval in
7669 yes) enable_shared=yes ;;
7670 no) enable_shared=no ;;
7671 *)
7672 enable_shared=no
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7675 for pkg in $enableval; do
7676 IFS=$lt_save_ifs
7677 if test "X$pkg" = "X$p"; then
7678 enable_shared=yes
7679 fi
7680 done
7681 IFS=$lt_save_ifs
7682 ;;
7683 esac
7684 else
7685 enable_shared=yes
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696 # Check whether --enable-static was given.
7697 if test "${enable_static+set}" = set; then :
7698 enableval=$enable_static; p=${PACKAGE-default}
7699 case $enableval in
7700 yes) enable_static=yes ;;
7701 no) enable_static=no ;;
7702 *)
7703 enable_static=no
7704 # Look at the argument we got. We use all the common list separators.
7705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7706 for pkg in $enableval; do
7707 IFS=$lt_save_ifs
7708 if test "X$pkg" = "X$p"; then
7709 enable_static=yes
7710 fi
7711 done
7712 IFS=$lt_save_ifs
7713 ;;
7714 esac
7715 else
7716 enable_static=yes
7717 fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 # Check whether --with-pic was given.
7729 if test "${with_pic+set}" = set; then :
7730 withval=$with_pic; lt_p=${PACKAGE-default}
7731 case $withval in
7732 yes|no) pic_mode=$withval ;;
7733 *)
7734 pic_mode=default
7735 # Look at the argument we got. We use all the common list separators.
7736 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7737 for lt_pkg in $withval; do
7738 IFS=$lt_save_ifs
7739 if test "X$lt_pkg" = "X$lt_p"; then
7740 pic_mode=yes
7741 fi
7742 done
7743 IFS=$lt_save_ifs
7744 ;;
7745 esac
7746 else
7747 pic_mode=default
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757 # Check whether --enable-fast-install was given.
7758 if test "${enable_fast_install+set}" = set; then :
7759 enableval=$enable_fast_install; p=${PACKAGE-default}
7760 case $enableval in
7761 yes) enable_fast_install=yes ;;
7762 no) enable_fast_install=no ;;
7763 *)
7764 enable_fast_install=no
7765 # Look at the argument we got. We use all the common list separators.
7766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7767 for pkg in $enableval; do
7768 IFS=$lt_save_ifs
7769 if test "X$pkg" = "X$p"; then
7770 enable_fast_install=yes
7771 fi
7772 done
7773 IFS=$lt_save_ifs
7774 ;;
7775 esac
7776 else
7777 enable_fast_install=yes
7778 fi
7779
7780
7781
7782
7783
7784
7785
7786
7787 shared_archive_member_spec=
7788 case $host,$enable_shared in
7789 power*-*-aix[5-9]*,yes)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7791 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7792
7793 # Check whether --with-aix-soname was given.
7794 if test "${with_aix_soname+set}" = set; then :
7795 withval=$with_aix_soname; case $withval in
7796 aix|svr4|both)
7797 ;;
7798 *)
7799 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7800 ;;
7801 esac
7802 lt_cv_with_aix_soname=$with_aix_soname
7803 else
7804 if ${lt_cv_with_aix_soname+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 lt_cv_with_aix_soname=aix
7808 fi
7809
7810 with_aix_soname=$lt_cv_with_aix_soname
7811 fi
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7814 $as_echo "$with_aix_soname" >&6; }
7815 if test aix != "$with_aix_soname"; then
7816 # For the AIX way of multilib, we name the shared archive member
7817 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7818 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7819 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7820 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7821 if test 64 = "${OBJECT_MODE-32}"; then
7822 shared_archive_member_spec=shr_64
7823 else
7824 shared_archive_member_spec=shr
7825 fi
7826 fi
7827 ;;
7828 *)
7829 with_aix_soname=aix
7830 ;;
7831 esac
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842 # This can be used to rebuild libtool when needed
7843 LIBTOOL_DEPS=$ltmain
7844
7845 # Always use our own libtool.
7846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 test -z "$LN_S" && LN_S="ln -s"
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 if test -n "${ZSH_VERSION+set}"; then
7893 setopt NO_GLOB_SUBST
7894 fi
7895
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7897 $as_echo_n "checking for objdir... " >&6; }
7898 if ${lt_cv_objdir+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 rm -f .libs 2>/dev/null
7902 mkdir .libs 2>/dev/null
7903 if test -d .libs; then
7904 lt_cv_objdir=.libs
7905 else
7906 # MS-DOS does not allow filenames that begin with a dot.
7907 lt_cv_objdir=_libs
7908 fi
7909 rmdir .libs 2>/dev/null
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7912 $as_echo "$lt_cv_objdir" >&6; }
7913 objdir=$lt_cv_objdir
7914
7915
7916
7917
7918
7919 cat >>confdefs.h <<_ACEOF
7920 #define LT_OBJDIR "$lt_cv_objdir/"
7921 _ACEOF
7922
7923
7924
7925
7926 case $host_os in
7927 aix3*)
7928 # AIX sometimes has problems with the GCC collect2 program. For some
7929 # reason, if we set the COLLECT_NAMES environment variable, the problems
7930 # vanish in a puff of smoke.
7931 if test set != "${COLLECT_NAMES+set}"; then
7932 COLLECT_NAMES=
7933 export COLLECT_NAMES
7934 fi
7935 ;;
7936 esac
7937
7938 # Global variables:
7939 ofile=libtool
7940 can_build_shared=yes
7941
7942 # All known linkers require a '.a' archive for static linking (except MSVC,
7943 # which needs '.lib').
7944 libext=a
7945
7946 with_gnu_ld=$lt_cv_prog_gnu_ld
7947
7948 old_CC=$CC
7949 old_CFLAGS=$CFLAGS
7950
7951 # Set sane defaults for various variables
7952 test -z "$CC" && CC=cc
7953 test -z "$LTCC" && LTCC=$CC
7954 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7955 test -z "$LD" && LD=ld
7956 test -z "$ac_objext" && ac_objext=o
7957
7958 func_cc_basename $compiler
7959 cc_basename=$func_cc_basename_result
7960
7961
7962 # Only perform the check for file, if the check method requires it
7963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7964 case $deplibs_check_method in
7965 file_magic*)
7966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7968 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 case $MAGIC_CMD in
7973 [\\/*] | ?:[\\/]*)
7974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7975 ;;
7976 *)
7977 lt_save_MAGIC_CMD=$MAGIC_CMD
7978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7980 for ac_dir in $ac_dummy; do
7981 IFS=$lt_save_ifs
7982 test -z "$ac_dir" && ac_dir=.
7983 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7984 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7985 if test -n "$file_magic_test_file"; then
7986 case $deplibs_check_method in
7987 "file_magic "*)
7988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7991 $EGREP "$file_magic_regex" > /dev/null; then
7992 :
7993 else
7994 cat <<_LT_EOF 1>&2
7995
7996 *** Warning: the command libtool uses to detect shared libraries,
7997 *** $file_magic_cmd, produces output that libtool cannot recognize.
7998 *** The result is that libtool may fail to recognize shared libraries
7999 *** as such. This will affect the creation of libtool libraries that
8000 *** depend on shared libraries, but programs linked with such libtool
8001 *** libraries will work regardless of this problem. Nevertheless, you
8002 *** may want to report the problem to your system manager and/or to
8003 *** bug-libtool (at] gnu.org
8004
8005 _LT_EOF
8006 fi ;;
8007 esac
8008 fi
8009 break
8010 fi
8011 done
8012 IFS=$lt_save_ifs
8013 MAGIC_CMD=$lt_save_MAGIC_CMD
8014 ;;
8015 esac
8016 fi
8017
8018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8019 if test -n "$MAGIC_CMD"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8021 $as_echo "$MAGIC_CMD" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028
8029
8030
8031 if test -z "$lt_cv_path_MAGIC_CMD"; then
8032 if test -n "$ac_tool_prefix"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8034 $as_echo_n "checking for file... " >&6; }
8035 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 case $MAGIC_CMD in
8039 [\\/*] | ?:[\\/]*)
8040 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8041 ;;
8042 *)
8043 lt_save_MAGIC_CMD=$MAGIC_CMD
8044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8046 for ac_dir in $ac_dummy; do
8047 IFS=$lt_save_ifs
8048 test -z "$ac_dir" && ac_dir=.
8049 if test -f "$ac_dir/file"; then
8050 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8051 if test -n "$file_magic_test_file"; then
8052 case $deplibs_check_method in
8053 "file_magic "*)
8054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8055 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8057 $EGREP "$file_magic_regex" > /dev/null; then
8058 :
8059 else
8060 cat <<_LT_EOF 1>&2
8061
8062 *** Warning: the command libtool uses to detect shared libraries,
8063 *** $file_magic_cmd, produces output that libtool cannot recognize.
8064 *** The result is that libtool may fail to recognize shared libraries
8065 *** as such. This will affect the creation of libtool libraries that
8066 *** depend on shared libraries, but programs linked with such libtool
8067 *** libraries will work regardless of this problem. Nevertheless, you
8068 *** may want to report the problem to your system manager and/or to
8069 *** bug-libtool (at] gnu.org
8070
8071 _LT_EOF
8072 fi ;;
8073 esac
8074 fi
8075 break
8076 fi
8077 done
8078 IFS=$lt_save_ifs
8079 MAGIC_CMD=$lt_save_MAGIC_CMD
8080 ;;
8081 esac
8082 fi
8083
8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8085 if test -n "$MAGIC_CMD"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8087 $as_echo "$MAGIC_CMD" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 else
8095 MAGIC_CMD=:
8096 fi
8097 fi
8098
8099 fi
8100 ;;
8101 esac
8102
8103 # Use C for the default configuration in the libtool script
8104
8105 lt_save_CC=$CC
8106 ac_ext=c
8107 ac_cpp='$CPP $CPPFLAGS'
8108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111
8112
8113 # Source file extension for C test sources.
8114 ac_ext=c
8115
8116 # Object file extension for compiled C test sources.
8117 objext=o
8118 objext=$objext
8119
8120 # Code to be used in simple compile tests
8121 lt_simple_compile_test_code="int some_variable = 0;"
8122
8123 # Code to be used in simple link tests
8124 lt_simple_link_test_code='int main(){return(0);}'
8125
8126
8127
8128
8129
8130
8131
8132 # If no C compiler was specified, use CC.
8133 LTCC=${LTCC-"$CC"}
8134
8135 # If no C compiler flags were specified, use CFLAGS.
8136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8137
8138 # Allow CC to be a program name with arguments.
8139 compiler=$CC
8140
8141 # Save the default compiler, since it gets overwritten when the other
8142 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8143 compiler_DEFAULT=$CC
8144
8145 # save warnings/boilerplate of simple test code
8146 ac_outfile=conftest.$ac_objext
8147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8149 _lt_compiler_boilerplate=`cat conftest.err`
8150 $RM conftest*
8151
8152 ac_outfile=conftest.$ac_objext
8153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8155 _lt_linker_boilerplate=`cat conftest.err`
8156 $RM -r conftest*
8157
8158
8159 if test -n "$compiler"; then
8160
8161 lt_prog_compiler_no_builtin_flag=
8162
8163 if test yes = "$GCC"; then
8164 case $cc_basename in
8165 nvcc*)
8166 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8167 *)
8168 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8169 esac
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8172 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8173 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 lt_cv_prog_compiler_rtti_exceptions=no
8177 ac_outfile=conftest.$ac_objext
8178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8180 # Insert the option either (1) after the last *FLAGS variable, or
8181 # (2) before a word containing "conftest.", or (3) at the end.
8182 # Note that $ac_compile itself does not contain backslashes and begins
8183 # with a dollar sign (not a hyphen), so the echo should work correctly.
8184 # The option is referenced via a variable to avoid confusing sed.
8185 lt_compile=`echo "$ac_compile" | $SED \
8186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188 -e 's:$: $lt_compiler_flag:'`
8189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8190 (eval "$lt_compile" 2>conftest.err)
8191 ac_status=$?
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 if (exit $ac_status) && test -s "$ac_outfile"; then
8195 # The compiler can only warn and ignore the option if not recognized
8196 # So say no if there are warnings other than the usual output.
8197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200 lt_cv_prog_compiler_rtti_exceptions=yes
8201 fi
8202 fi
8203 $RM conftest*
8204
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8208
8209 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8210 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8211 else
8212 :
8213 fi
8214
8215 fi
8216
8217
8218
8219
8220
8221
8222 lt_prog_compiler_wl=
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_static=
8225
8226
8227 if test yes = "$GCC"; then
8228 lt_prog_compiler_wl='-Wl,'
8229 lt_prog_compiler_static='-static'
8230
8231 case $host_os in
8232 aix*)
8233 # All AIX code is PIC.
8234 if test ia64 = "$host_cpu"; then
8235 # AIX 5 now supports IA64 processor
8236 lt_prog_compiler_static='-Bstatic'
8237 fi
8238 lt_prog_compiler_pic='-fPIC'
8239 ;;
8240
8241 amigaos*)
8242 case $host_cpu in
8243 powerpc)
8244 # see comment about AmigaOS4 .so support
8245 lt_prog_compiler_pic='-fPIC'
8246 ;;
8247 m68k)
8248 # FIXME: we need at least 68020 code to build shared libraries, but
8249 # adding the '-m68020' flag to GCC prevents building anything better,
8250 # like '-m68040'.
8251 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8252 ;;
8253 esac
8254 ;;
8255
8256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8257 # PIC is the default for these OSes.
8258 ;;
8259
8260 mingw* | cygwin* | pw32* | os2* | cegcc*)
8261 # This hack is so that the source file can tell whether it is being
8262 # built for inclusion in a dll (and should export symbols for example).
8263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8264 # (--disable-auto-import) libraries
8265 lt_prog_compiler_pic='-DDLL_EXPORT'
8266 case $host_os in
8267 os2*)
8268 lt_prog_compiler_static='$wl-static'
8269 ;;
8270 esac
8271 ;;
8272
8273 darwin* | rhapsody*)
8274 # PIC is the default on this platform
8275 # Common symbols not allowed in MH_DYLIB files
8276 lt_prog_compiler_pic='-fno-common'
8277 ;;
8278
8279 haiku*)
8280 # PIC is the default for Haiku.
8281 # The "-static" flag exists, but is broken.
8282 lt_prog_compiler_static=
8283 ;;
8284
8285 hpux*)
8286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8288 # sets the default TLS model and affects inlining.
8289 case $host_cpu in
8290 hppa*64*)
8291 # +Z the default
8292 ;;
8293 *)
8294 lt_prog_compiler_pic='-fPIC'
8295 ;;
8296 esac
8297 ;;
8298
8299 interix[3-9]*)
8300 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8301 # Instead, we relocate shared libraries at runtime.
8302 ;;
8303
8304 msdosdjgpp*)
8305 # Just because we use GCC doesn't mean we suddenly get shared libraries
8306 # on systems that don't support them.
8307 lt_prog_compiler_can_build_shared=no
8308 enable_shared=no
8309 ;;
8310
8311 *nto* | *qnx*)
8312 # QNX uses GNU C++, but need to define -shared option too, otherwise
8313 # it will coredump.
8314 lt_prog_compiler_pic='-fPIC -shared'
8315 ;;
8316
8317 sysv4*MP*)
8318 if test -d /usr/nec; then
8319 lt_prog_compiler_pic=-Kconform_pic
8320 fi
8321 ;;
8322
8323 *)
8324 lt_prog_compiler_pic='-fPIC'
8325 ;;
8326 esac
8327
8328 case $cc_basename in
8329 nvcc*) # Cuda Compiler Driver 2.2
8330 lt_prog_compiler_wl='-Xlinker '
8331 if test -n "$lt_prog_compiler_pic"; then
8332 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8333 fi
8334 ;;
8335 esac
8336 else
8337 # PORTME Check for flag to pass linker flags through the system compiler.
8338 case $host_os in
8339 aix*)
8340 lt_prog_compiler_wl='-Wl,'
8341 if test ia64 = "$host_cpu"; then
8342 # AIX 5 now supports IA64 processor
8343 lt_prog_compiler_static='-Bstatic'
8344 else
8345 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8346 fi
8347 ;;
8348
8349 darwin* | rhapsody*)
8350 # PIC is the default on this platform
8351 # Common symbols not allowed in MH_DYLIB files
8352 lt_prog_compiler_pic='-fno-common'
8353 case $cc_basename in
8354 nagfor*)
8355 # NAG Fortran compiler
8356 lt_prog_compiler_wl='-Wl,-Wl,,'
8357 lt_prog_compiler_pic='-PIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 ;;
8360 esac
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 lt_prog_compiler_pic='-DDLL_EXPORT'
8367 case $host_os in
8368 os2*)
8369 lt_prog_compiler_static='$wl-static'
8370 ;;
8371 esac
8372 ;;
8373
8374 hpux9* | hpux10* | hpux11*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8377 # not for PA HP-UX.
8378 case $host_cpu in
8379 hppa*64*|ia64*)
8380 # +Z the default
8381 ;;
8382 *)
8383 lt_prog_compiler_pic='+Z'
8384 ;;
8385 esac
8386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8387 lt_prog_compiler_static='$wl-a ${wl}archive'
8388 ;;
8389
8390 irix5* | irix6* | nonstopux*)
8391 lt_prog_compiler_wl='-Wl,'
8392 # PIC (with -KPIC) is the default.
8393 lt_prog_compiler_static='-non_shared'
8394 ;;
8395
8396 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8397 case $cc_basename in
8398 # old Intel for x86_64, which still supported -KPIC.
8399 ecc*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-static'
8403 ;;
8404 # icc used to be incompatible with GCC.
8405 # ICC 10 doesn't accept -KPIC any more.
8406 icc* | ifort*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-fPIC'
8409 lt_prog_compiler_static='-static'
8410 ;;
8411 # Lahey Fortran 8.1.
8412 lf95*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='--shared'
8415 lt_prog_compiler_static='--static'
8416 ;;
8417 nagfor*)
8418 # NAG Fortran compiler
8419 lt_prog_compiler_wl='-Wl,-Wl,,'
8420 lt_prog_compiler_pic='-PIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423 tcc*)
8424 # Fabrice Bellard et al's Tiny C Compiler
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-fPIC'
8427 lt_prog_compiler_static='-static'
8428 ;;
8429 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8430 # Portland Group compilers (*not* the Pentium gcc compiler,
8431 # which looks to be a dead project)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_pic='-fpic'
8434 lt_prog_compiler_static='-Bstatic'
8435 ;;
8436 ccc*)
8437 lt_prog_compiler_wl='-Wl,'
8438 # All Alpha code is PIC.
8439 lt_prog_compiler_static='-non_shared'
8440 ;;
8441 xl* | bgxl* | bgf* | mpixl*)
8442 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-qpic'
8445 lt_prog_compiler_static='-qstaticlink'
8446 ;;
8447 *)
8448 case `$CC -V 2>&1 | sed 5q` in
8449 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8450 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-Bstatic'
8453 lt_prog_compiler_wl=''
8454 ;;
8455 *Sun\ F* | *Sun*Fortran*)
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 lt_prog_compiler_wl='-Qoption ld '
8459 ;;
8460 *Sun\ C*)
8461 # Sun C 5.9
8462 lt_prog_compiler_pic='-KPIC'
8463 lt_prog_compiler_static='-Bstatic'
8464 lt_prog_compiler_wl='-Wl,'
8465 ;;
8466 *Intel*\ [CF]*Compiler*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-fPIC'
8469 lt_prog_compiler_static='-static'
8470 ;;
8471 *Portland\ Group*)
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='-fpic'
8474 lt_prog_compiler_static='-Bstatic'
8475 ;;
8476 esac
8477 ;;
8478 esac
8479 ;;
8480
8481 newsos6)
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-Bstatic'
8484 ;;
8485
8486 *nto* | *qnx*)
8487 # QNX uses GNU C++, but need to define -shared option too, otherwise
8488 # it will coredump.
8489 lt_prog_compiler_pic='-fPIC -shared'
8490 ;;
8491
8492 osf3* | osf4* | osf5*)
8493 lt_prog_compiler_wl='-Wl,'
8494 # All OSF/1 code is PIC.
8495 lt_prog_compiler_static='-non_shared'
8496 ;;
8497
8498 rdos*)
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
8502 solaris*)
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8505 case $cc_basename in
8506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8507 lt_prog_compiler_wl='-Qoption ld ';;
8508 *)
8509 lt_prog_compiler_wl='-Wl,';;
8510 esac
8511 ;;
8512
8513 sunos4*)
8514 lt_prog_compiler_wl='-Qoption ld '
8515 lt_prog_compiler_pic='-PIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518
8519 sysv4 | sysv4.2uw2* | sysv4.3*)
8520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524
8525 sysv4*MP*)
8526 if test -d /usr/nec; then
8527 lt_prog_compiler_pic='-Kconform_pic'
8528 lt_prog_compiler_static='-Bstatic'
8529 fi
8530 ;;
8531
8532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-Bstatic'
8536 ;;
8537
8538 unicos*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_can_build_shared=no
8541 ;;
8542
8543 uts4*)
8544 lt_prog_compiler_pic='-pic'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547
8548 *)
8549 lt_prog_compiler_can_build_shared=no
8550 ;;
8551 esac
8552 fi
8553
8554 case $host_os in
8555 # For platforms that do not support PIC, -DPIC is meaningless:
8556 *djgpp*)
8557 lt_prog_compiler_pic=
8558 ;;
8559 *)
8560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8561 ;;
8562 esac
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8566 if ${lt_cv_prog_compiler_pic+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8572 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8573 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8574
8575 #
8576 # Check to make sure the PIC flag actually works.
8577 #
8578 if test -n "$lt_prog_compiler_pic"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8581 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 lt_cv_prog_compiler_pic_works=no
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 # The option is referenced via a variable to avoid confusing sed.
8593 lt_compile=`echo "$ac_compile" | $SED \
8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596 -e 's:$: $lt_compiler_flag:'`
8597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8598 (eval "$lt_compile" 2>conftest.err)
8599 ac_status=$?
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 if (exit $ac_status) && test -s "$ac_outfile"; then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings other than the usual output.
8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_pic_works=yes
8609 fi
8610 fi
8611 $RM conftest*
8612
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8616
8617 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8618 case $lt_prog_compiler_pic in
8619 "" | " "*) ;;
8620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8621 esac
8622 else
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_can_build_shared=no
8625 fi
8626
8627 fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639 #
8640 # Check to make sure the static flag actually works.
8641 #
8642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8645 if ${lt_cv_prog_compiler_static_works+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_prog_compiler_static_works=no
8649 save_LDFLAGS=$LDFLAGS
8650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8653 # The linker can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 if test -s conftest.err; then
8656 # Append any errors to the config.log.
8657 cat conftest.err 1>&5
8658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8660 if diff conftest.exp conftest.er2 >/dev/null; then
8661 lt_cv_prog_compiler_static_works=yes
8662 fi
8663 else
8664 lt_cv_prog_compiler_static_works=yes
8665 fi
8666 fi
8667 $RM -r conftest*
8668 LDFLAGS=$save_LDFLAGS
8669
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8673
8674 if test yes = "$lt_cv_prog_compiler_static_works"; then
8675 :
8676 else
8677 lt_prog_compiler_static=
8678 fi
8679
8680
8681
8682
8683
8684
8685
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8688 if ${lt_cv_prog_compiler_c_o+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 lt_cv_prog_compiler_c_o=no
8692 $RM -r conftest 2>/dev/null
8693 mkdir conftest
8694 cd conftest
8695 mkdir out
8696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8697
8698 lt_compiler_flag="-o out/conftest2.$ac_objext"
8699 # Insert the option either (1) after the last *FLAGS variable, or
8700 # (2) before a word containing "conftest.", or (3) at the end.
8701 # Note that $ac_compile itself does not contain backslashes and begins
8702 # with a dollar sign (not a hyphen), so the echo should work correctly.
8703 lt_compile=`echo "$ac_compile" | $SED \
8704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8706 -e 's:$: $lt_compiler_flag:'`
8707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8708 (eval "$lt_compile" 2>out/conftest.err)
8709 ac_status=$?
8710 cat out/conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8713 then
8714 # The compiler can only warn and ignore the option if not recognized
8715 # So say no if there are warnings
8716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8719 lt_cv_prog_compiler_c_o=yes
8720 fi
8721 fi
8722 chmod u+w . 2>&5
8723 $RM conftest*
8724 # SGI C++ compiler will create directory out/ii_files/ for
8725 # template instantiation
8726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8727 $RM out/* && rmdir out
8728 cd ..
8729 $RM -r conftest
8730 $RM conftest*
8731
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8735
8736
8737
8738
8739
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8743 if ${lt_cv_prog_compiler_c_o+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 lt_cv_prog_compiler_c_o=no
8747 $RM -r conftest 2>/dev/null
8748 mkdir conftest
8749 cd conftest
8750 mkdir out
8751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8752
8753 lt_compiler_flag="-o out/conftest2.$ac_objext"
8754 # Insert the option either (1) after the last *FLAGS variable, or
8755 # (2) before a word containing "conftest.", or (3) at the end.
8756 # Note that $ac_compile itself does not contain backslashes and begins
8757 # with a dollar sign (not a hyphen), so the echo should work correctly.
8758 lt_compile=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>out/conftest.err)
8764 ac_status=$?
8765 cat out/conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8768 then
8769 # The compiler can only warn and ignore the option if not recognized
8770 # So say no if there are warnings
8771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8774 lt_cv_prog_compiler_c_o=yes
8775 fi
8776 fi
8777 chmod u+w . 2>&5
8778 $RM conftest*
8779 # SGI C++ compiler will create directory out/ii_files/ for
8780 # template instantiation
8781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8782 $RM out/* && rmdir out
8783 cd ..
8784 $RM -r conftest
8785 $RM conftest*
8786
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8790
8791
8792
8793
8794 hard_links=nottested
8795 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8796 # do not overwrite the value of need_locks provided by the user
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8798 $as_echo_n "checking if we can lock with hard links... " >&6; }
8799 hard_links=yes
8800 $RM conftest*
8801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8802 touch conftest.a
8803 ln conftest.a conftest.b 2>&5 || hard_links=no
8804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8806 $as_echo "$hard_links" >&6; }
8807 if test no = "$hard_links"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8809 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8810 need_locks=warn
8811 fi
8812 else
8813 need_locks=no
8814 fi
8815
8816
8817
8818
8819
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8823
8824 runpath_var=
8825 allow_undefined_flag=
8826 always_export_symbols=no
8827 archive_cmds=
8828 archive_expsym_cmds=
8829 compiler_needs_object=no
8830 enable_shared_with_static_runtimes=no
8831 export_dynamic_flag_spec=
8832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8833 hardcode_automatic=no
8834 hardcode_direct=no
8835 hardcode_direct_absolute=no
8836 hardcode_libdir_flag_spec=
8837 hardcode_libdir_separator=
8838 hardcode_minus_L=no
8839 hardcode_shlibpath_var=unsupported
8840 inherit_rpath=no
8841 link_all_deplibs=unknown
8842 module_cmds=
8843 module_expsym_cmds=
8844 old_archive_from_new_cmds=
8845 old_archive_from_expsyms_cmds=
8846 thread_safe_flag_spec=
8847 whole_archive_flag_spec=
8848 # include_expsyms should be a list of space-separated symbols to be *always*
8849 # included in the symbol list
8850 include_expsyms=
8851 # exclude_expsyms can be an extended regexp of symbols to exclude
8852 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8853 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8854 # as well as any symbol that contains 'd'.
8855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8857 # platforms (ab)use it in PIC code, but their linkers get confused if
8858 # the symbol is explicitly referenced. Since portable code cannot
8859 # rely on this symbol name, it's probably fine to never include it in
8860 # preloaded symbol tables.
8861 # Exclude shared library initialization/finalization symbols.
8862 extract_expsyms_cmds=
8863
8864 case $host_os in
8865 cygwin* | mingw* | pw32* | cegcc*)
8866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8867 # When not using gcc, we currently assume that we are using
8868 # Microsoft Visual C++.
8869 if test yes != "$GCC"; then
8870 with_gnu_ld=no
8871 fi
8872 ;;
8873 interix*)
8874 # we just hope/assume this is gcc and not c89 (= MSVC++)
8875 with_gnu_ld=yes
8876 ;;
8877 openbsd* | bitrig*)
8878 with_gnu_ld=no
8879 ;;
8880 esac
8881
8882 ld_shlibs=yes
8883
8884 # On some targets, GNU ld is compatible enough with the native linker
8885 # that we're better off using the native interface for both.
8886 lt_use_gnu_ld_interface=no
8887 if test yes = "$with_gnu_ld"; then
8888 case $host_os in
8889 aix*)
8890 # The AIX port of GNU ld has always aspired to compatibility
8891 # with the native linker. However, as the warning in the GNU ld
8892 # block says, versions before 2.19.5* couldn't really create working
8893 # shared libraries, regardless of the interface used.
8894 case `$LD -v 2>&1` in
8895 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8896 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8897 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8898 *)
8899 lt_use_gnu_ld_interface=yes
8900 ;;
8901 esac
8902 ;;
8903 *)
8904 lt_use_gnu_ld_interface=yes
8905 ;;
8906 esac
8907 fi
8908
8909 if test yes = "$lt_use_gnu_ld_interface"; then
8910 # If archive_cmds runs LD, not CC, wlarc should be empty
8911 wlarc='$wl'
8912
8913 # Set some defaults for GNU ld with shared library support. These
8914 # are reset later if shared libraries are not supported. Putting them
8915 # here allows them to be overridden if necessary.
8916 runpath_var=LD_RUN_PATH
8917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8918 export_dynamic_flag_spec='$wl--export-dynamic'
8919 # ancient GNU ld didn't support --whole-archive et. al.
8920 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8921 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8922 else
8923 whole_archive_flag_spec=
8924 fi
8925 supports_anon_versioning=no
8926 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8927 *GNU\ gold*) supports_anon_versioning=yes ;;
8928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8931 *\ 2.11.*) ;; # other 2.11 versions
8932 *) supports_anon_versioning=yes ;;
8933 esac
8934
8935 # See if GNU ld supports shared libraries.
8936 case $host_os in
8937 aix[3-9]*)
8938 # On AIX/PPC, the GNU linker is very broken
8939 if test ia64 != "$host_cpu"; then
8940 ld_shlibs=no
8941 cat <<_LT_EOF 1>&2
8942
8943 *** Warning: the GNU linker, at least up to release 2.19, is reported
8944 *** to be unable to reliably create shared libraries on AIX.
8945 *** Therefore, libtool is disabling shared libraries support. If you
8946 *** really care for shared libraries, you may want to install binutils
8947 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8948 *** You will then need to restart the configuration process.
8949
8950 _LT_EOF
8951 fi
8952 ;;
8953
8954 amigaos*)
8955 case $host_cpu in
8956 powerpc)
8957 # see comment about AmigaOS4 .so support
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8959 archive_expsym_cmds=''
8960 ;;
8961 m68k)
8962 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)'
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_minus_L=yes
8965 ;;
8966 esac
8967 ;;
8968
8969 beos*)
8970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 allow_undefined_flag=unsupported
8972 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8973 # support --undefined. This deserves some investigation. FIXME
8974 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8975 else
8976 ld_shlibs=no
8977 fi
8978 ;;
8979
8980 cygwin* | mingw* | pw32* | cegcc*)
8981 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8982 # as there is no search path for DLLs.
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 export_dynamic_flag_spec='$wl--export-all-symbols'
8985 allow_undefined_flag=unsupported
8986 always_export_symbols=no
8987 enable_shared_with_static_runtimes=yes
8988 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'
8989 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8990
8991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8993 # If the export-symbols file already is a .def file, use it as
8994 # is; otherwise, prepend EXPORTS...
8995 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8996 cp $export_symbols $output_objdir/$soname.def;
8997 else
8998 echo EXPORTS > $output_objdir/$soname.def;
8999 cat $export_symbols >> $output_objdir/$soname.def;
9000 fi~
9001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 haiku*)
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9009 link_all_deplibs=yes
9010 ;;
9011
9012 os2*)
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9015 allow_undefined_flag=unsupported
9016 shrext_cmds=.dll
9017 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9018 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9019 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9020 $ECHO EXPORTS >> $output_objdir/$libname.def~
9021 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9022 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9023 emximp -o $lib $output_objdir/$libname.def'
9024 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9027 $ECHO EXPORTS >> $output_objdir/$libname.def~
9028 prefix_cmds="$SED"~
9029 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9030 prefix_cmds="$prefix_cmds -e 1d";
9031 fi~
9032 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9033 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9034 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9035 emximp -o $lib $output_objdir/$libname.def'
9036 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9037 enable_shared_with_static_runtimes=yes
9038 ;;
9039
9040 interix[3-9]*)
9041 hardcode_direct=no
9042 hardcode_shlibpath_var=no
9043 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9044 export_dynamic_flag_spec='$wl-E'
9045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9046 # Instead, shared libraries are loaded at an image base (0x10000000 by
9047 # default) and relocated if they conflict, which is a slow very memory
9048 # consuming and fragmenting process. To avoid this, we pick a random,
9049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9052 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'
9053 ;;
9054
9055 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9056 tmp_diet=no
9057 if test linux-dietlibc = "$host_os"; then
9058 case $cc_basename in
9059 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9060 esac
9061 fi
9062 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9063 && test no = "$tmp_diet"
9064 then
9065 tmp_addflag=' $pic_flag'
9066 tmp_sharedflag='-shared'
9067 case $cc_basename,$host_cpu in
9068 pgcc*) # Portland Group C compiler
9069 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'
9070 tmp_addflag=' $pic_flag'
9071 ;;
9072 pgf77* | pgf90* | pgf95* | pgfortran*)
9073 # Portland Group f77 and f90 compilers
9074 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'
9075 tmp_addflag=' $pic_flag -Mnomain' ;;
9076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9077 tmp_addflag=' -i_dynamic' ;;
9078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9079 tmp_addflag=' -i_dynamic -nofor_main' ;;
9080 ifc* | ifort*) # Intel Fortran compiler
9081 tmp_addflag=' -nofor_main' ;;
9082 lf95*) # Lahey Fortran 8.1
9083 whole_archive_flag_spec=
9084 tmp_sharedflag='--shared' ;;
9085 nagfor*) # NAGFOR 5.3
9086 tmp_sharedflag='-Wl,-shared' ;;
9087 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9088 tmp_sharedflag='-qmkshrobj'
9089 tmp_addflag= ;;
9090 nvcc*) # Cuda Compiler Driver 2.2
9091 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'
9092 compiler_needs_object=yes
9093 ;;
9094 esac
9095 case `$CC -V 2>&1 | sed 5q` in
9096 *Sun\ C*) # Sun C 5.9
9097 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'
9098 compiler_needs_object=yes
9099 tmp_sharedflag='-G' ;;
9100 *Sun\ F*) # Sun Fortran 8.3
9101 tmp_sharedflag='-G' ;;
9102 esac
9103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9104
9105 if test yes = "$supports_anon_versioning"; then
9106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9108 echo "local: *; };" >> $output_objdir/$libname.ver~
9109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9110 fi
9111
9112 case $cc_basename in
9113 tcc*)
9114 export_dynamic_flag_spec='-rdynamic'
9115 ;;
9116 xlf* | bgf* | bgxlf* | mpixlf*)
9117 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9118 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9120 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9121 if test yes = "$supports_anon_versioning"; then
9122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9124 echo "local: *; };" >> $output_objdir/$libname.ver~
9125 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9126 fi
9127 ;;
9128 esac
9129 else
9130 ld_shlibs=no
9131 fi
9132 ;;
9133
9134 netbsd*)
9135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9136 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9137 wlarc=
9138 else
9139 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9141 fi
9142 ;;
9143
9144 solaris*)
9145 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9146 ld_shlibs=no
9147 cat <<_LT_EOF 1>&2
9148
9149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9150 *** create shared libraries on Solaris systems. Therefore, libtool
9151 *** is disabling shared libraries support. We urge you to upgrade GNU
9152 *** binutils to release 2.9.1 or newer. Another option is to modify
9153 *** your PATH or compiler configuration so that the native linker is
9154 *** used, and then restart.
9155
9156 _LT_EOF
9157 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9159 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9160 else
9161 ld_shlibs=no
9162 fi
9163 ;;
9164
9165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9166 case `$LD -v 2>&1` in
9167 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9168 ld_shlibs=no
9169 cat <<_LT_EOF 1>&2
9170
9171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9172 *** reliably create shared libraries on SCO systems. Therefore, libtool
9173 *** is disabling shared libraries support. We urge you to upgrade GNU
9174 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9175 *** your PATH or compiler configuration so that the native linker is
9176 *** used, and then restart.
9177
9178 _LT_EOF
9179 ;;
9180 *)
9181 # For security reasons, it is highly recommended that you always
9182 # use absolute paths for naming shared libraries, and exclude the
9183 # DT_RUNPATH tag from executables and libraries. But doing so
9184 # requires that you compile everything twice, which is a pain.
9185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9189 else
9190 ld_shlibs=no
9191 fi
9192 ;;
9193 esac
9194 ;;
9195
9196 sunos4*)
9197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198 wlarc=
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9201 ;;
9202
9203 *)
9204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9206 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211 esac
9212
9213 if test no = "$ld_shlibs"; then
9214 runpath_var=
9215 hardcode_libdir_flag_spec=
9216 export_dynamic_flag_spec=
9217 whole_archive_flag_spec=
9218 fi
9219 else
9220 # PORTME fill in a description of your system's linker (not GNU ld)
9221 case $host_os in
9222 aix3*)
9223 allow_undefined_flag=unsupported
9224 always_export_symbols=yes
9225 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'
9226 # Note: this linker hardcodes the directories in LIBPATH if there
9227 # are no directories specified by -L.
9228 hardcode_minus_L=yes
9229 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9230 # Neither direct hardcoding nor static linking is supported with a
9231 # broken collect2.
9232 hardcode_direct=unsupported
9233 fi
9234 ;;
9235
9236 aix[4-9]*)
9237 if test ia64 = "$host_cpu"; then
9238 # On IA64, the linker does run time linking by default, so we don't
9239 # have to do anything special.
9240 aix_use_runtimelinking=no
9241 exp_sym_flag='-Bexport'
9242 no_entry_flag=
9243 else
9244 # If we're using GNU nm, then we don't want the "-C" option.
9245 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9246 # Without the "-l" option, or with the "-B" option, AIX nm treats
9247 # weak defined symbols like other global defined symbols, whereas
9248 # GNU nm marks them as "W".
9249 # While the 'weak' keyword is ignored in the Export File, we need
9250 # it in the Import File for the 'aix-soname' feature, so we have
9251 # to replace the "-B" option with "-P" for AIX nm.
9252 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9253 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'
9254 else
9255 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'
9256 fi
9257 aix_use_runtimelinking=no
9258
9259 # Test if we are trying to use run time linking or normal
9260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261 # have runtime linking enabled, and use it for executables.
9262 # For shared libraries, we enable/disable runtime linking
9263 # depending on the kind of the shared library created -
9264 # when "with_aix_soname,aix_use_runtimelinking" is:
9265 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9266 # "aix,yes" lib.so shared, rtl:yes, for executables
9267 # lib.a static archive
9268 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9269 # lib.a(lib.so.V) shared, rtl:no, for executables
9270 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9271 # lib.a(lib.so.V) shared, rtl:no
9272 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9273 # lib.a static archive
9274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9275 for ld_flag in $LDFLAGS; do
9276 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9277 aix_use_runtimelinking=yes
9278 break
9279 fi
9280 done
9281 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9282 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9283 # so we don't have lib.a shared libs to link our executables.
9284 # We have to force runtime linking in this case.
9285 aix_use_runtimelinking=yes
9286 LDFLAGS="$LDFLAGS -Wl,-brtl"
9287 fi
9288 ;;
9289 esac
9290
9291 exp_sym_flag='-bexport'
9292 no_entry_flag='-bnoentry'
9293 fi
9294
9295 # When large executables or shared objects are built, AIX ld can
9296 # have problems creating the table of contents. If linking a library
9297 # or program results in "error TOC overflow" add -mminimal-toc to
9298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9300
9301 archive_cmds=''
9302 hardcode_direct=yes
9303 hardcode_direct_absolute=yes
9304 hardcode_libdir_separator=':'
9305 link_all_deplibs=yes
9306 file_list_spec='$wl-f,'
9307 case $with_aix_soname,$aix_use_runtimelinking in
9308 aix,*) ;; # traditional, no import file
9309 svr4,* | *,yes) # use import file
9310 # The Import File defines what to hardcode.
9311 hardcode_direct=no
9312 hardcode_direct_absolute=no
9313 ;;
9314 esac
9315
9316 if test yes = "$GCC"; then
9317 case $host_os in aix4.[012]|aix4.[012].*)
9318 # We only want to do this on AIX 4.2 and lower, the check
9319 # below for broken collect2 doesn't work under 4.3+
9320 collect2name=`$CC -print-prog-name=collect2`
9321 if test -f "$collect2name" &&
9322 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9323 then
9324 # We have reworked collect2
9325 :
9326 else
9327 # We have old collect2
9328 hardcode_direct=unsupported
9329 # It fails to find uninstalled libraries when the uninstalled
9330 # path is not listed in the libpath. Setting hardcode_minus_L
9331 # to unsupported forces relinking
9332 hardcode_minus_L=yes
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_libdir_separator=
9335 fi
9336 ;;
9337 esac
9338 shared_flag='-shared'
9339 if test yes = "$aix_use_runtimelinking"; then
9340 shared_flag="$shared_flag "'$wl-G'
9341 fi
9342 # Need to ensure runtime linking is disabled for the traditional
9343 # shared library, or the linker may eventually find shared libraries
9344 # /with/ Import File - we do not want to mix them.
9345 shared_flag_aix='-shared'
9346 shared_flag_svr4='-shared $wl-G'
9347 else
9348 # not using gcc
9349 if test ia64 = "$host_cpu"; then
9350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9351 # chokes on -Wl,-G. The following line is correct:
9352 shared_flag='-G'
9353 else
9354 if test yes = "$aix_use_runtimelinking"; then
9355 shared_flag='$wl-G'
9356 else
9357 shared_flag='$wl-bM:SRE'
9358 fi
9359 shared_flag_aix='$wl-bM:SRE'
9360 shared_flag_svr4='$wl-G'
9361 fi
9362 fi
9363
9364 export_dynamic_flag_spec='$wl-bexpall'
9365 # It seems that -bexpall does not export symbols beginning with
9366 # underscore (_), so it is better to generate a list of symbols to export.
9367 always_export_symbols=yes
9368 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9369 # Warning - without using the other runtime loading flags (-brtl),
9370 # -berok will link without error, but may produce a broken library.
9371 allow_undefined_flag='-berok'
9372 # Determine the default libpath from the value encoded in an
9373 # empty executable.
9374 if test set = "${lt_cv_aix_libpath+set}"; then
9375 aix_libpath=$lt_cv_aix_libpath
9376 else
9377 if ${lt_cv_aix_libpath_+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382
9383 int
9384 main ()
9385 {
9386
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392
9393 lt_aix_libpath_sed='
9394 /Import File Strings/,/^$/ {
9395 /^0/ {
9396 s/^0 *\([^ ]*\) *$/\1/
9397 p
9398 }
9399 }'
9400 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9401 # Check for a 64-bit object if we didn't find anything.
9402 if test -z "$lt_cv_aix_libpath_"; then
9403 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9404 fi
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9408 if test -z "$lt_cv_aix_libpath_"; then
9409 lt_cv_aix_libpath_=/usr/lib:/lib
9410 fi
9411
9412 fi
9413
9414 aix_libpath=$lt_cv_aix_libpath_
9415 fi
9416
9417 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9418 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
9419 else
9420 if test ia64 = "$host_cpu"; then
9421 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9422 allow_undefined_flag="-z nodefs"
9423 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"
9424 else
9425 # Determine the default libpath from the value encoded in an
9426 # empty executable.
9427 if test set = "${lt_cv_aix_libpath+set}"; then
9428 aix_libpath=$lt_cv_aix_libpath
9429 else
9430 if ${lt_cv_aix_libpath_+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435
9436 int
9437 main ()
9438 {
9439
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445
9446 lt_aix_libpath_sed='
9447 /Import File Strings/,/^$/ {
9448 /^0/ {
9449 s/^0 *\([^ ]*\) *$/\1/
9450 p
9451 }
9452 }'
9453 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9454 # Check for a 64-bit object if we didn't find anything.
9455 if test -z "$lt_cv_aix_libpath_"; then
9456 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9457 fi
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 if test -z "$lt_cv_aix_libpath_"; then
9462 lt_cv_aix_libpath_=/usr/lib:/lib
9463 fi
9464
9465 fi
9466
9467 aix_libpath=$lt_cv_aix_libpath_
9468 fi
9469
9470 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9471 # Warning - without using the other run time loading flags,
9472 # -berok will link without error, but may produce a broken library.
9473 no_undefined_flag=' $wl-bernotok'
9474 allow_undefined_flag=' $wl-berok'
9475 if test yes = "$with_gnu_ld"; then
9476 # We only use this code for GNU lds that support --whole-archive.
9477 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9478 else
9479 # Exported symbols can be pulled into shared objects from archives
9480 whole_archive_flag_spec='$convenience'
9481 fi
9482 archive_cmds_need_lc=yes
9483 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9484 # -brtl affects multiple linker settings, -berok does not and is overridden later
9485 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9486 if test svr4 != "$with_aix_soname"; then
9487 # This is similar to how AIX traditionally builds its shared libraries.
9488 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'
9489 fi
9490 if test aix != "$with_aix_soname"; then
9491 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'
9492 else
9493 # used by -dlpreopen to get the symbols
9494 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9495 fi
9496 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9497 fi
9498 fi
9499 ;;
9500
9501 amigaos*)
9502 case $host_cpu in
9503 powerpc)
9504 # see comment about AmigaOS4 .so support
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9506 archive_expsym_cmds=''
9507 ;;
9508 m68k)
9509 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)'
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_minus_L=yes
9512 ;;
9513 esac
9514 ;;
9515
9516 bsdi[45]*)
9517 export_dynamic_flag_spec=-rdynamic
9518 ;;
9519
9520 cygwin* | mingw* | pw32* | cegcc*)
9521 # When not using gcc, we currently assume that we are using
9522 # Microsoft Visual C++.
9523 # hardcode_libdir_flag_spec is actually meaningless, as there is
9524 # no search path for DLLs.
9525 case $cc_basename in
9526 cl*)
9527 # Native MSVC
9528 hardcode_libdir_flag_spec=' '
9529 allow_undefined_flag=unsupported
9530 always_export_symbols=yes
9531 file_list_spec='@'
9532 # Tell ltmain to make .lib files, not .a files.
9533 libext=lib
9534 # Tell ltmain to make .dll files, not .so files.
9535 shrext_cmds=.dll
9536 # FIXME: Setting linknames here is a bad hack.
9537 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9538 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9539 cp "$export_symbols" "$output_objdir/$soname.def";
9540 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9541 else
9542 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9543 fi~
9544 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9545 linknames='
9546 # The linker will not automatically build a static lib if we build a DLL.
9547 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9548 enable_shared_with_static_runtimes=yes
9549 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9551 # Don't use ranlib
9552 old_postinstall_cmds='chmod 644 $oldlib'
9553 postlink_cmds='lt_outputfile="@OUTPUT@"~
9554 lt_tool_outputfile="@TOOL_OUTPUT@"~
9555 case $lt_outputfile in
9556 *.exe|*.EXE) ;;
9557 *)
9558 lt_outputfile=$lt_outputfile.exe
9559 lt_tool_outputfile=$lt_tool_outputfile.exe
9560 ;;
9561 esac~
9562 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9563 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9564 $RM "$lt_outputfile.manifest";
9565 fi'
9566 ;;
9567 *)
9568 # Assume MSVC wrapper
9569 hardcode_libdir_flag_spec=' '
9570 allow_undefined_flag=unsupported
9571 # Tell ltmain to make .lib files, not .a files.
9572 libext=lib
9573 # Tell ltmain to make .dll files, not .so files.
9574 shrext_cmds=.dll
9575 # FIXME: Setting linknames here is a bad hack.
9576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9577 # The linker will automatically build a .lib file if we build a DLL.
9578 old_archive_from_new_cmds='true'
9579 # FIXME: Should let the user specify the lib program.
9580 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9581 enable_shared_with_static_runtimes=yes
9582 ;;
9583 esac
9584 ;;
9585
9586 darwin* | rhapsody*)
9587
9588
9589 archive_cmds_need_lc=no
9590 hardcode_direct=no
9591 hardcode_automatic=yes
9592 hardcode_shlibpath_var=unsupported
9593 if test yes = "$lt_cv_ld_force_load"; then
9594 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\"`'
9595
9596 else
9597 whole_archive_flag_spec=''
9598 fi
9599 link_all_deplibs=yes
9600 allow_undefined_flag=$_lt_dar_allow_undefined
9601 case $cc_basename in
9602 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9603 *) _lt_dar_can_shared=$GCC ;;
9604 esac
9605 if test yes = "$_lt_dar_can_shared"; then
9606 output_verbose_link_cmd=func_echo_all
9607 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9608 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9609 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"
9610 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"
9611
9612 else
9613 ld_shlibs=no
9614 fi
9615
9616 ;;
9617
9618 dgux*)
9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-L$libdir'
9621 hardcode_shlibpath_var=no
9622 ;;
9623
9624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9625 # support. Future versions do this automatically, but an explicit c++rt0.o
9626 # does not break anything, and helps significantly (at the cost of a little
9627 # extra space).
9628 freebsd2.2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9636 freebsd2.*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9644 freebsd* | dragonfly*)
9645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 hpux9*)
9652 if test yes = "$GCC"; then
9653 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'
9654 else
9655 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'
9656 fi
9657 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9660
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 export_dynamic_flag_spec='$wl-E'
9665 ;;
9666
9667 hpux10*)
9668 if test yes,no = "$GCC,$with_gnu_ld"; then
9669 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672 fi
9673 if test no = "$with_gnu_ld"; then
9674 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9675 hardcode_libdir_separator=:
9676 hardcode_direct=yes
9677 hardcode_direct_absolute=yes
9678 export_dynamic_flag_spec='$wl-E'
9679 # hardcode_minus_L: Not really in the search PATH,
9680 # but as the default location of the library.
9681 hardcode_minus_L=yes
9682 fi
9683 ;;
9684
9685 hpux11*)
9686 if test yes,no = "$GCC,$with_gnu_ld"; then
9687 case $host_cpu in
9688 hppa*64*)
9689 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 ;;
9691 ia64*)
9692 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9693 ;;
9694 *)
9695 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9696 ;;
9697 esac
9698 else
9699 case $host_cpu in
9700 hppa*64*)
9701 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 ;;
9703 ia64*)
9704 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9705 ;;
9706 *)
9707
9708 # Older versions of the 11.00 compiler do not understand -b yet
9709 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9711 $as_echo_n "checking if $CC understands -b... " >&6; }
9712 if ${lt_cv_prog_compiler__b+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 lt_cv_prog_compiler__b=no
9716 save_LDFLAGS=$LDFLAGS
9717 LDFLAGS="$LDFLAGS -b"
9718 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9720 # The linker can only warn and ignore the option if not recognized
9721 # So say no if there are warnings
9722 if test -s conftest.err; then
9723 # Append any errors to the config.log.
9724 cat conftest.err 1>&5
9725 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9727 if diff conftest.exp conftest.er2 >/dev/null; then
9728 lt_cv_prog_compiler__b=yes
9729 fi
9730 else
9731 lt_cv_prog_compiler__b=yes
9732 fi
9733 fi
9734 $RM -r conftest*
9735 LDFLAGS=$save_LDFLAGS
9736
9737 fi
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9739 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9740
9741 if test yes = "$lt_cv_prog_compiler__b"; then
9742 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9745 fi
9746
9747 ;;
9748 esac
9749 fi
9750 if test no = "$with_gnu_ld"; then
9751 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9752 hardcode_libdir_separator=:
9753
9754 case $host_cpu in
9755 hppa*64*|ia64*)
9756 hardcode_direct=no
9757 hardcode_shlibpath_var=no
9758 ;;
9759 *)
9760 hardcode_direct=yes
9761 hardcode_direct_absolute=yes
9762 export_dynamic_flag_spec='$wl-E'
9763
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L=yes
9767 ;;
9768 esac
9769 fi
9770 ;;
9771
9772 irix5* | irix6* | nonstopux*)
9773 if test yes = "$GCC"; then
9774 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'
9775 # Try to use the -exported_symbol ld option, if it does not
9776 # work, assume that -exports_file does not work either and
9777 # implicitly export all symbols.
9778 # This should be the same for all languages, so no per-tag cache variable.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9780 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9781 if ${lt_cv_irix_exported_symbol+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 save_LDFLAGS=$LDFLAGS
9785 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 int foo (void) { return 0; }
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"; then :
9791 lt_cv_irix_exported_symbol=yes
9792 else
9793 lt_cv_irix_exported_symbol=no
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LDFLAGS=$save_LDFLAGS
9798 fi
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9800 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9801 if test yes = "$lt_cv_irix_exported_symbol"; then
9802 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'
9803 fi
9804 else
9805 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'
9806 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'
9807 fi
9808 archive_cmds_need_lc='no'
9809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9810 hardcode_libdir_separator=:
9811 inherit_rpath=yes
9812 link_all_deplibs=yes
9813 ;;
9814
9815 linux*)
9816 case $cc_basename in
9817 tcc*)
9818 # Fabrice Bellard et al's Tiny C Compiler
9819 ld_shlibs=yes
9820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9821 ;;
9822 esac
9823 ;;
9824
9825 netbsd*)
9826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9828 else
9829 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9830 fi
9831 hardcode_libdir_flag_spec='-R$libdir'
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 ;;
9835
9836 newsos6)
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_direct=yes
9839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9840 hardcode_libdir_separator=:
9841 hardcode_shlibpath_var=no
9842 ;;
9843
9844 *nto* | *qnx*)
9845 ;;
9846
9847 openbsd* | bitrig*)
9848 if test -f /usr/libexec/ld.so; then
9849 hardcode_direct=yes
9850 hardcode_shlibpath_var=no
9851 hardcode_direct_absolute=yes
9852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9855 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9856 export_dynamic_flag_spec='$wl-E'
9857 else
9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9860 fi
9861 else
9862 ld_shlibs=no
9863 fi
9864 ;;
9865
9866 os2*)
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_minus_L=yes
9869 allow_undefined_flag=unsupported
9870 shrext_cmds=.dll
9871 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9874 $ECHO EXPORTS >> $output_objdir/$libname.def~
9875 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9876 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9877 emximp -o $lib $output_objdir/$libname.def'
9878 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9881 $ECHO EXPORTS >> $output_objdir/$libname.def~
9882 prefix_cmds="$SED"~
9883 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9884 prefix_cmds="$prefix_cmds -e 1d";
9885 fi~
9886 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9887 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9888 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9889 emximp -o $lib $output_objdir/$libname.def'
9890 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9891 enable_shared_with_static_runtimes=yes
9892 ;;
9893
9894 osf3*)
9895 if test yes = "$GCC"; then
9896 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9897 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'
9898 else
9899 allow_undefined_flag=' -expect_unresolved \*'
9900 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'
9901 fi
9902 archive_cmds_need_lc='no'
9903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904 hardcode_libdir_separator=:
9905 ;;
9906
9907 osf4* | osf5*) # as osf3* with the addition of -msym flag
9908 if test yes = "$GCC"; then
9909 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9910 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'
9911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9912 else
9913 allow_undefined_flag=' -expect_unresolved \*'
9914 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'
9915 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~
9916 $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'
9917
9918 # Both c and cxx compiler support -rpath directly
9919 hardcode_libdir_flag_spec='-rpath $libdir'
9920 fi
9921 archive_cmds_need_lc='no'
9922 hardcode_libdir_separator=:
9923 ;;
9924
9925 solaris*)
9926 no_undefined_flag=' -z defs'
9927 if test yes = "$GCC"; then
9928 wlarc='$wl'
9929 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $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'
9932 else
9933 case `$CC -V 2>&1` in
9934 *"Compilers 5.0"*)
9935 wlarc=''
9936 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9939 ;;
9940 *)
9941 wlarc='$wl'
9942 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9944 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9945 ;;
9946 esac
9947 fi
9948 hardcode_libdir_flag_spec='-R$libdir'
9949 hardcode_shlibpath_var=no
9950 case $host_os in
9951 solaris2.[0-5] | solaris2.[0-5].*) ;;
9952 *)
9953 # The compiler driver will combine and reorder linker options,
9954 # but understands '-z linker_flag'. GCC discards it without '$wl',
9955 # but is careful enough not to reorder.
9956 # Supported since Solaris 2.6 (maybe 2.5.1?)
9957 if test yes = "$GCC"; then
9958 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9959 else
9960 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9961 fi
9962 ;;
9963 esac
9964 link_all_deplibs=yes
9965 ;;
9966
9967 sunos4*)
9968 if test sequent = "$host_vendor"; then
9969 # Use $CC to link under sequent, because it throws in some extra .o
9970 # files that make .init and .fini sections work.
9971 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9972 else
9973 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9974 fi
9975 hardcode_libdir_flag_spec='-L$libdir'
9976 hardcode_direct=yes
9977 hardcode_minus_L=yes
9978 hardcode_shlibpath_var=no
9979 ;;
9980
9981 sysv4)
9982 case $host_vendor in
9983 sni)
9984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_direct=yes # is this really true???
9986 ;;
9987 siemens)
9988 ## LD is ld it makes a PLAMLIB
9989 ## CC just makes a GrossModule.
9990 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9991 reload_cmds='$CC -r -o $output$reload_objs'
9992 hardcode_direct=no
9993 ;;
9994 motorola)
9995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9997 ;;
9998 esac
9999 runpath_var='LD_RUN_PATH'
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 sysv4.3*)
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_shlibpath_var=no
10006 export_dynamic_flag_spec='-Bexport'
10007 ;;
10008
10009 sysv4*MP*)
10010 if test -d /usr/nec; then
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_shlibpath_var=no
10013 runpath_var=LD_RUN_PATH
10014 hardcode_runpath_var=yes
10015 ld_shlibs=yes
10016 fi
10017 ;;
10018
10019 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10020 no_undefined_flag='$wl-z,text'
10021 archive_cmds_need_lc=no
10022 hardcode_shlibpath_var=no
10023 runpath_var='LD_RUN_PATH'
10024
10025 if test yes = "$GCC"; then
10026 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 else
10029 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 fi
10032 ;;
10033
10034 sysv5* | sco3.2v5* | sco5v6*)
10035 # Note: We CANNOT use -z defs as we might desire, because we do not
10036 # link with -lc, and that would cause any symbols used from libc to
10037 # always be unresolved, which means just about no library would
10038 # ever link correctly. If we're not using GNU ld we use -z text
10039 # though, which does catch some bad symbols but isn't as heavy-handed
10040 # as -z defs.
10041 no_undefined_flag='$wl-z,text'
10042 allow_undefined_flag='$wl-z,nodefs'
10043 archive_cmds_need_lc=no
10044 hardcode_shlibpath_var=no
10045 hardcode_libdir_flag_spec='$wl-R,$libdir'
10046 hardcode_libdir_separator=':'
10047 link_all_deplibs=yes
10048 export_dynamic_flag_spec='$wl-Bexport'
10049 runpath_var='LD_RUN_PATH'
10050
10051 if test yes = "$GCC"; then
10052 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 else
10055 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 fi
10058 ;;
10059
10060 uts4*)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 *)
10067 ld_shlibs=no
10068 ;;
10069 esac
10070
10071 if test sni = "$host_vendor"; then
10072 case $host in
10073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10074 export_dynamic_flag_spec='$wl-Blargedynsym'
10075 ;;
10076 esac
10077 fi
10078 fi
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10081 $as_echo "$ld_shlibs" >&6; }
10082 test no = "$ld_shlibs" && can_build_shared=no
10083
10084 with_gnu_ld=$with_gnu_ld
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 #
10101 # Do we need to explicitly link libc?
10102 #
10103 case "x$archive_cmds_need_lc" in
10104 x|xyes)
10105 # Assume -lc should be added
10106 archive_cmds_need_lc=yes
10107
10108 if test yes,yes = "$GCC,$enable_shared"; then
10109 case $archive_cmds in
10110 *'~'*)
10111 # FIXME: we may have to deal with multi-command sequences.
10112 ;;
10113 '$CC '*)
10114 # Test whether the compiler implicitly links with -lc since on some
10115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10116 # to ld, don't add -lc before -lgcc.
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10118 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10119 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 $RM conftest*
10123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10124
10125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10126 (eval $ac_compile) 2>&5
10127 ac_status=$?
10128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129 test $ac_status = 0; } 2>conftest.err; then
10130 soname=conftest
10131 lib=conftest
10132 libobjs=conftest.$ac_objext
10133 deplibs=
10134 wl=$lt_prog_compiler_wl
10135 pic_flag=$lt_prog_compiler_pic
10136 compiler_flags=-v
10137 linker_flags=-v
10138 verstring=
10139 output_objdir=.
10140 libname=conftest
10141 lt_save_allow_undefined_flag=$allow_undefined_flag
10142 allow_undefined_flag=
10143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10144 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10145 ac_status=$?
10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147 test $ac_status = 0; }
10148 then
10149 lt_cv_archive_cmds_need_lc=no
10150 else
10151 lt_cv_archive_cmds_need_lc=yes
10152 fi
10153 allow_undefined_flag=$lt_save_allow_undefined_flag
10154 else
10155 cat conftest.err 1>&5
10156 fi
10157 $RM conftest*
10158
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10161 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10162 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10163 ;;
10164 esac
10165 fi
10166 ;;
10167 esac
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10322
10323 if test yes = "$GCC"; then
10324 case $host_os in
10325 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10326 *) lt_awk_arg='/^libraries:/' ;;
10327 esac
10328 case $host_os in
10329 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10330 *) lt_sed_strip_eq='s|=/|/|g' ;;
10331 esac
10332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10333 case $lt_search_path_spec in
10334 *\;*)
10335 # if the path contains ";" then we assume it to be the separator
10336 # otherwise default to the standard path separator (i.e. ":") - it is
10337 # assumed that no part of a normal pathname contains ";" but that should
10338 # okay in the real world where ";" in dirpaths is itself problematic.
10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10340 ;;
10341 *)
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10343 ;;
10344 esac
10345 # Ok, now we have the path, separated by spaces, we can step through it
10346 # and add multilib dir if necessary...
10347 lt_tmp_lt_search_path_spec=
10348 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10349 # ...but if some path component already ends with the multilib dir we assume
10350 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10351 case "$lt_multi_os_dir; $lt_search_path_spec " in
10352 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10353 lt_multi_os_dir=
10354 ;;
10355 esac
10356 for lt_sys_path in $lt_search_path_spec; do
10357 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10359 elif test -n "$lt_multi_os_dir"; then
10360 test -d "$lt_sys_path" && \
10361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10362 fi
10363 done
10364 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10365 BEGIN {RS = " "; FS = "/|\n";} {
10366 lt_foo = "";
10367 lt_count = 0;
10368 for (lt_i = NF; lt_i > 0; lt_i--) {
10369 if ($lt_i != "" && $lt_i != ".") {
10370 if ($lt_i == "..") {
10371 lt_count++;
10372 } else {
10373 if (lt_count == 0) {
10374 lt_foo = "/" $lt_i lt_foo;
10375 } else {
10376 lt_count--;
10377 }
10378 }
10379 }
10380 }
10381 if (lt_foo != "") { lt_freq[lt_foo]++; }
10382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10383 }'`
10384 # AWK program above erroneously prepends '/' to C:/dos/paths
10385 # for these hosts.
10386 case $host_os in
10387 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10388 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10389 esac
10390 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10391 else
10392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393 fi
10394 library_names_spec=
10395 libname_spec='lib$name'
10396 soname_spec=
10397 shrext_cmds=.so
10398 postinstall_cmds=
10399 postuninstall_cmds=
10400 finish_cmds=
10401 finish_eval=
10402 shlibpath_var=
10403 shlibpath_overrides_runpath=unknown
10404 version_type=none
10405 dynamic_linker="$host_os ld.so"
10406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10407 need_lib_prefix=unknown
10408 hardcode_into_libs=no
10409
10410 # when you set need_version to no, make sure it does not cause -set_version
10411 # flags to be left without arguments
10412 need_version=unknown
10413
10414
10415
10416 case $host_os in
10417 aix3*)
10418 version_type=linux # correct to gnu/linux during the next big refactor
10419 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10420 shlibpath_var=LIBPATH
10421
10422 # AIX 3 has no versioning support, so we append a major version to the name.
10423 soname_spec='$libname$release$shared_ext$major'
10424 ;;
10425
10426 aix[4-9]*)
10427 version_type=linux # correct to gnu/linux during the next big refactor
10428 need_lib_prefix=no
10429 need_version=no
10430 hardcode_into_libs=yes
10431 if test ia64 = "$host_cpu"; then
10432 # AIX 5 supports IA64
10433 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 else
10436 # With GCC up to 2.95.x, collect2 would create an import file
10437 # for dependence libraries. The import file would start with
10438 # the line '#! .'. This would cause the generated library to
10439 # depend on '.', always an invalid library. This was fixed in
10440 # development snapshots of GCC prior to 3.0.
10441 case $host_os in
10442 aix4 | aix4.[01] | aix4.[01].*)
10443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10444 echo ' yes '
10445 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10446 :
10447 else
10448 can_build_shared=no
10449 fi
10450 ;;
10451 esac
10452 # Using Import Files as archive members, it is possible to support
10453 # filename-based versioning of shared library archives on AIX. While
10454 # this would work for both with and without runtime linking, it will
10455 # prevent static linking of such archives. So we do filename-based
10456 # shared library versioning with .so extension only, which is used
10457 # when both runtime linking and shared linking is enabled.
10458 # Unfortunately, runtime linking may impact performance, so we do
10459 # not want this to be the default eventually. Also, we use the
10460 # versioned .so libs for executables only if there is the -brtl
10461 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10462 # To allow for filename-based versioning support, we need to create
10463 # libNAME.so.V as an archive file, containing:
10464 # *) an Import File, referring to the versioned filename of the
10465 # archive as well as the shared archive member, telling the
10466 # bitwidth (32 or 64) of that shared object, and providing the
10467 # list of exported symbols of that shared object, eventually
10468 # decorated with the 'weak' keyword
10469 # *) the shared object with the F_LOADONLY flag set, to really avoid
10470 # it being seen by the linker.
10471 # At run time we better use the real file rather than another symlink,
10472 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10473
10474 case $with_aix_soname,$aix_use_runtimelinking in
10475 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10476 # soname into executable. Probably we can add versioning support to
10477 # collect2, so additional links can be useful in future.
10478 aix,yes) # traditional libtool
10479 dynamic_linker='AIX unversionable lib.so'
10480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10481 # instead of lib<name>.a to let people know that these are not
10482 # typical AIX shared libraries.
10483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10484 ;;
10485 aix,no) # traditional AIX only
10486 dynamic_linker='AIX lib.a(lib.so.V)'
10487 # We preserve .a as extension for shared libraries through AIX4.2
10488 # and later when we are not doing run time linking.
10489 library_names_spec='$libname$release.a $libname.a'
10490 soname_spec='$libname$release$shared_ext$major'
10491 ;;
10492 svr4,*) # full svr4 only
10493 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10494 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10495 # We do not specify a path in Import Files, so LIBPATH fires.
10496 shlibpath_overrides_runpath=yes
10497 ;;
10498 *,yes) # both, prefer svr4
10499 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10500 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10501 # unpreferred sharedlib libNAME.a needs extra handling
10502 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"'
10503 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"'
10504 # We do not specify a path in Import Files, so LIBPATH fires.
10505 shlibpath_overrides_runpath=yes
10506 ;;
10507 *,no) # both, prefer aix
10508 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10509 library_names_spec='$libname$release.a $libname.a'
10510 soname_spec='$libname$release$shared_ext$major'
10511 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10512 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)'
10513 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"'
10514 ;;
10515 esac
10516 shlibpath_var=LIBPATH
10517 fi
10518 ;;
10519
10520 amigaos*)
10521 case $host_cpu in
10522 powerpc)
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10526 ;;
10527 m68k)
10528 library_names_spec='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 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'
10531 ;;
10532 esac
10533 ;;
10534
10535 beos*)
10536 library_names_spec='$libname$shared_ext'
10537 dynamic_linker="$host_os ld.so"
10538 shlibpath_var=LIBRARY_PATH
10539 ;;
10540
10541 bsdi[45]*)
10542 version_type=linux # correct to gnu/linux during the next big refactor
10543 need_version=no
10544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10545 soname_spec='$libname$release$shared_ext$major'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10553 ;;
10554
10555 cygwin* | mingw* | pw32* | cegcc*)
10556 version_type=windows
10557 shrext_cmds=.dll
10558 need_version=no
10559 need_lib_prefix=no
10560
10561 case $GCC,$cc_basename in
10562 yes,*)
10563 # gcc
10564 library_names_spec='$libname.dll.a'
10565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10566 postinstall_cmds='base_file=`basename \$file`~
10567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10568 dldir=$destdir/`dirname \$dlpath`~
10569 test -d \$dldir || mkdir -p \$dldir~
10570 $install_prog $dir/$dlname \$dldir/$dlname~
10571 chmod a+x \$dldir/$dlname~
10572 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10573 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574 fi'
10575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10576 dlpath=$dir/\$dldll~
10577 $RM \$dlpath'
10578 shlibpath_overrides_runpath=yes
10579
10580 case $host_os in
10581 cygwin*)
10582 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10583 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10584
10585 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10586 ;;
10587 mingw* | cegcc*)
10588 # MinGW DLLs use traditional 'lib' prefix
10589 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10590 ;;
10591 pw32*)
10592 # pw32 DLLs use 'pw' prefix rather than 'lib'
10593 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10594 ;;
10595 esac
10596 dynamic_linker='Win32 ld.exe'
10597 ;;
10598
10599 *,cl*)
10600 # Native MSVC
10601 libname_spec='$name'
10602 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10603 library_names_spec='$libname.dll.lib'
10604
10605 case $build_os in
10606 mingw*)
10607 sys_lib_search_path_spec=
10608 lt_save_ifs=$IFS
10609 IFS=';'
10610 for lt_path in $LIB
10611 do
10612 IFS=$lt_save_ifs
10613 # Let DOS variable expansion print the short 8.3 style file name.
10614 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10615 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10616 done
10617 IFS=$lt_save_ifs
10618 # Convert to MSYS style.
10619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10620 ;;
10621 cygwin*)
10622 # Convert to unix form, then to dos form, then back to unix form
10623 # but this time dos style (no spaces!) so that the unix form looks
10624 # like /cygdrive/c/PROGRA~1:/cygdr...
10625 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10626 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10627 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10628 ;;
10629 *)
10630 sys_lib_search_path_spec=$LIB
10631 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10632 # It is most probably a Windows format PATH.
10633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10634 else
10635 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10636 fi
10637 # FIXME: find the short name or the path components, as spaces are
10638 # common. (e.g. "Program Files" -> "PROGRA~1")
10639 ;;
10640 esac
10641
10642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10643 postinstall_cmds='base_file=`basename \$file`~
10644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10645 dldir=$destdir/`dirname \$dlpath`~
10646 test -d \$dldir || mkdir -p \$dldir~
10647 $install_prog $dir/$dlname \$dldir/$dlname'
10648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649 dlpath=$dir/\$dldll~
10650 $RM \$dlpath'
10651 shlibpath_overrides_runpath=yes
10652 dynamic_linker='Win32 link.exe'
10653 ;;
10654
10655 *)
10656 # Assume MSVC wrapper
10657 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10658 dynamic_linker='Win32 ld.exe'
10659 ;;
10660 esac
10661 # FIXME: first we should search . and the directory the executable is in
10662 shlibpath_var=PATH
10663 ;;
10664
10665 darwin* | rhapsody*)
10666 dynamic_linker="$host_os dyld"
10667 version_type=darwin
10668 need_lib_prefix=no
10669 need_version=no
10670 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10671 soname_spec='$libname$release$major$shared_ext'
10672 shlibpath_overrides_runpath=yes
10673 shlibpath_var=DYLD_LIBRARY_PATH
10674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10675
10676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10678 ;;
10679
10680 dgux*)
10681 version_type=linux # correct to gnu/linux during the next big refactor
10682 need_lib_prefix=no
10683 need_version=no
10684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10685 soname_spec='$libname$release$shared_ext$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 ;;
10688
10689 freebsd* | dragonfly*)
10690 # DragonFly does not have aout. When/if they implement a new
10691 # versioning mechanism, adjust this.
10692 if test -x /usr/bin/objformat; then
10693 objformat=`/usr/bin/objformat`
10694 else
10695 case $host_os in
10696 freebsd[23].*) objformat=aout ;;
10697 *) objformat=elf ;;
10698 esac
10699 fi
10700 version_type=freebsd-$objformat
10701 case $version_type in
10702 freebsd-elf*)
10703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10704 soname_spec='$libname$release$shared_ext$major'
10705 need_version=no
10706 need_lib_prefix=no
10707 ;;
10708 freebsd-*)
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10710 need_version=yes
10711 ;;
10712 esac
10713 shlibpath_var=LD_LIBRARY_PATH
10714 case $host_os in
10715 freebsd2.*)
10716 shlibpath_overrides_runpath=yes
10717 ;;
10718 freebsd3.[01]* | freebsdelf3.[01]*)
10719 shlibpath_overrides_runpath=yes
10720 hardcode_into_libs=yes
10721 ;;
10722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10724 shlibpath_overrides_runpath=no
10725 hardcode_into_libs=yes
10726 ;;
10727 *) # from 4.6 on, and DragonFly
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10730 ;;
10731 esac
10732 ;;
10733
10734 haiku*)
10735 version_type=linux # correct to gnu/linux during the next big refactor
10736 need_lib_prefix=no
10737 need_version=no
10738 dynamic_linker="$host_os runtime_loader"
10739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10740 soname_spec='$libname$release$shared_ext$major'
10741 shlibpath_var=LIBRARY_PATH
10742 shlibpath_overrides_runpath=no
10743 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10744 hardcode_into_libs=yes
10745 ;;
10746
10747 hpux9* | hpux10* | hpux11*)
10748 # Give a soname corresponding to the major version so that dld.sl refuses to
10749 # link against other versions.
10750 version_type=sunos
10751 need_lib_prefix=no
10752 need_version=no
10753 case $host_cpu in
10754 ia64*)
10755 shrext_cmds='.so'
10756 hardcode_into_libs=yes
10757 dynamic_linker="$host_os dld.so"
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10761 soname_spec='$libname$release$shared_ext$major'
10762 if test 32 = "$HPUX_IA64_MODE"; then
10763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10764 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10765 else
10766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10767 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10768 fi
10769 ;;
10770 hppa*64*)
10771 shrext_cmds='.sl'
10772 hardcode_into_libs=yes
10773 dynamic_linker="$host_os dld.sl"
10774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10777 soname_spec='$libname$release$shared_ext$major'
10778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10780 ;;
10781 *)
10782 shrext_cmds='.sl'
10783 dynamic_linker="$host_os dld.sl"
10784 shlibpath_var=SHLIB_PATH
10785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10787 soname_spec='$libname$release$shared_ext$major'
10788 ;;
10789 esac
10790 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10791 postinstall_cmds='chmod 555 $lib'
10792 # or fails outright, so override atomically:
10793 install_override_mode=555
10794 ;;
10795
10796 interix[3-9]*)
10797 version_type=linux # correct to gnu/linux during the next big refactor
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10801 soname_spec='$libname$release$shared_ext$major'
10802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10806 ;;
10807
10808 irix5* | irix6* | nonstopux*)
10809 case $host_os in
10810 nonstopux*) version_type=nonstopux ;;
10811 *)
10812 if test yes = "$lt_cv_prog_gnu_ld"; then
10813 version_type=linux # correct to gnu/linux during the next big refactor
10814 else
10815 version_type=irix
10816 fi ;;
10817 esac
10818 need_lib_prefix=no
10819 need_version=no
10820 soname_spec='$libname$release$shared_ext$major'
10821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10822 case $host_os in
10823 irix5* | nonstopux*)
10824 libsuff= shlibsuff=
10825 ;;
10826 *)
10827 case $LD in # libtool.m4 will add one of these switches to LD
10828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10829 libsuff= shlibsuff= libmagic=32-bit;;
10830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10831 libsuff=32 shlibsuff=N32 libmagic=N32;;
10832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10834 *) libsuff= shlibsuff= libmagic=never-match;;
10835 esac
10836 ;;
10837 esac
10838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10839 shlibpath_overrides_runpath=no
10840 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10841 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10842 hardcode_into_libs=yes
10843 ;;
10844
10845 # No shared lib support for Linux oldld, aout, or coff.
10846 linux*oldld* | linux*aout* | linux*coff*)
10847 dynamic_linker=no
10848 ;;
10849
10850 linux*android*)
10851 version_type=none # Android doesn't support versioned libraries.
10852 need_lib_prefix=no
10853 need_version=no
10854 library_names_spec='$libname$release$shared_ext'
10855 soname_spec='$libname$release$shared_ext'
10856 finish_cmds=
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859
10860 # This implies no fast_install, which is unacceptable.
10861 # Some rework will be needed to allow for fast_install
10862 # before this can be enabled.
10863 hardcode_into_libs=yes
10864
10865 dynamic_linker='Android linker'
10866 # Don't embed -rpath directories since the linker doesn't support them.
10867 hardcode_libdir_flag_spec='-L$libdir'
10868 ;;
10869
10870 # This must be glibc/ELF.
10871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 need_lib_prefix=no
10874 need_version=no
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10880
10881 # Some binutils ld are patched to set DT_RUNPATH
10882 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 lt_cv_shlibpath_overrides_runpath=no
10886 save_LDFLAGS=$LDFLAGS
10887 save_libdir=$libdir
10888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892
10893 int
10894 main ()
10895 {
10896
10897 ;
10898 return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10903 lt_cv_shlibpath_overrides_runpath=yes
10904 fi
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LDFLAGS=$save_LDFLAGS
10909 libdir=$save_libdir
10910
10911 fi
10912
10913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10914
10915 # This implies no fast_install, which is unacceptable.
10916 # Some rework will be needed to allow for fast_install
10917 # before this can be enabled.
10918 hardcode_into_libs=yes
10919
10920 # Add ABI-specific directories to the system library path.
10921 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10922
10923 # Ideally, we could use ldconfig to report *all* directores which are
10924 # searched for libraries, however this is still not possible. Aside from not
10925 # being certain /sbin/ldconfig is available, command
10926 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10927 # even though it is searched at run-time. Try to do the best guess by
10928 # appending ld.so.conf contents (and includes) to the search path.
10929 if test -f /etc/ld.so.conf; then
10930 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' ' '`
10931 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10932 fi
10933
10934 # We used to test for /lib/ld.so.1 and disable shared libraries on
10935 # powerpc, because MkLinux only supported shared libraries with the
10936 # GNU dynamic linker. Since this was broken with cross compilers,
10937 # most powerpc-linux boxes support dynamic linking these days and
10938 # people can always --disable-shared, the test was removed, and we
10939 # assume the GNU/Linux dynamic linker is in use.
10940 dynamic_linker='GNU/Linux ld.so'
10941 ;;
10942
10943 netbsd*)
10944 version_type=sunos
10945 need_lib_prefix=no
10946 need_version=no
10947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950 dynamic_linker='NetBSD (a.out) ld.so'
10951 else
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10953 soname_spec='$libname$release$shared_ext$major'
10954 dynamic_linker='NetBSD ld.elf_so'
10955 fi
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10959 ;;
10960
10961 newsos6)
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 ;;
10967
10968 *nto* | *qnx*)
10969 version_type=qnx
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973 soname_spec='$libname$release$shared_ext$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10977 dynamic_linker='ldqnx.so'
10978 ;;
10979
10980 openbsd* | bitrig*)
10981 version_type=sunos
10982 sys_lib_dlsearch_path_spec=/usr/lib
10983 need_lib_prefix=no
10984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10985 need_version=no
10986 else
10987 need_version=yes
10988 fi
10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 ;;
10994
10995 os2*)
10996 libname_spec='$name'
10997 version_type=windows
10998 shrext_cmds=.dll
10999 need_version=no
11000 need_lib_prefix=no
11001 # OS/2 can only load a DLL with a base name of 8 characters or less.
11002 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11003 v=$($ECHO $release$versuffix | tr -d .-);
11004 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11005 $ECHO $n$v`$shared_ext'
11006 library_names_spec='${libname}_dll.$libext'
11007 dynamic_linker='OS/2 ld.exe'
11008 shlibpath_var=BEGINLIBPATH
11009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11011 postinstall_cmds='base_file=`basename \$file`~
11012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11013 dldir=$destdir/`dirname \$dlpath`~
11014 test -d \$dldir || mkdir -p \$dldir~
11015 $install_prog $dir/$dlname \$dldir/$dlname~
11016 chmod a+x \$dldir/$dlname~
11017 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11018 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11019 fi'
11020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11021 dlpath=$dir/\$dldll~
11022 $RM \$dlpath'
11023 ;;
11024
11025 osf3* | osf4* | osf5*)
11026 version_type=osf
11027 need_lib_prefix=no
11028 need_version=no
11029 soname_spec='$libname$release$shared_ext$major'
11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11034 ;;
11035
11036 rdos*)
11037 dynamic_linker=no
11038 ;;
11039
11040 solaris*)
11041 version_type=linux # correct to gnu/linux during the next big refactor
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 soname_spec='$libname$release$shared_ext$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 # ldd complains unless libraries are executable
11050 postinstall_cmds='chmod +x $lib'
11051 ;;
11052
11053 sunos4*)
11054 version_type=sunos
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 if test yes = "$with_gnu_ld"; then
11060 need_lib_prefix=no
11061 fi
11062 need_version=yes
11063 ;;
11064
11065 sysv4 | sysv4.3*)
11066 version_type=linux # correct to gnu/linux during the next big refactor
11067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11068 soname_spec='$libname$release$shared_ext$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 case $host_vendor in
11071 sni)
11072 shlibpath_overrides_runpath=no
11073 need_lib_prefix=no
11074 runpath_var=LD_RUN_PATH
11075 ;;
11076 siemens)
11077 need_lib_prefix=no
11078 ;;
11079 motorola)
11080 need_lib_prefix=no
11081 need_version=no
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11084 ;;
11085 esac
11086 ;;
11087
11088 sysv4*MP*)
11089 if test -d /usr/nec; then
11090 version_type=linux # correct to gnu/linux during the next big refactor
11091 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11092 soname_spec='$libname$shared_ext.$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 fi
11095 ;;
11096
11097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11098 version_type=sco
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 if test yes = "$with_gnu_ld"; then
11107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11108 else
11109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11110 case $host_os in
11111 sco3.2v5*)
11112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11113 ;;
11114 esac
11115 fi
11116 sys_lib_dlsearch_path_spec='/usr/lib'
11117 ;;
11118
11119 tpf*)
11120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11121 version_type=linux # correct to gnu/linux during the next big refactor
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129
11130 uts4*)
11131 version_type=linux # correct to gnu/linux during the next big refactor
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 soname_spec='$libname$release$shared_ext$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 ;;
11136
11137 *)
11138 dynamic_linker=no
11139 ;;
11140 esac
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11142 $as_echo "$dynamic_linker" >&6; }
11143 test no = "$dynamic_linker" && can_build_shared=no
11144
11145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11146 if test yes = "$GCC"; then
11147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11148 fi
11149
11150 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11151 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11152 fi
11153
11154 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11155 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11156 fi
11157
11158 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11159 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11160
11161 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11162 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11163
11164 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11165 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11264 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11265 hardcode_action=
11266 if test -n "$hardcode_libdir_flag_spec" ||
11267 test -n "$runpath_var" ||
11268 test yes = "$hardcode_automatic"; then
11269
11270 # We can hardcode non-existent directories.
11271 if test no != "$hardcode_direct" &&
11272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11273 # have to relink, otherwise we might link with an installed library
11274 # when we should be linking with a yet-to-be-installed one
11275 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11276 test no != "$hardcode_minus_L"; then
11277 # Linking always hardcodes the temporary library directory.
11278 hardcode_action=relink
11279 else
11280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11281 hardcode_action=immediate
11282 fi
11283 else
11284 # We cannot hardcode anything, or else we can only hardcode existing
11285 # directories.
11286 hardcode_action=unsupported
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11289 $as_echo "$hardcode_action" >&6; }
11290
11291 if test relink = "$hardcode_action" ||
11292 test yes = "$inherit_rpath"; then
11293 # Fast installation is not supported
11294 enable_fast_install=no
11295 elif test yes = "$shlibpath_overrides_runpath" ||
11296 test no = "$enable_shared"; then
11297 # Fast installation is not necessary
11298 enable_fast_install=needless
11299 fi
11300
11301
11302
11303
11304
11305
11306 if test yes != "$enable_dlopen"; then
11307 enable_dlopen=unknown
11308 enable_dlopen_self=unknown
11309 enable_dlopen_self_static=unknown
11310 else
11311 lt_cv_dlopen=no
11312 lt_cv_dlopen_libs=
11313
11314 case $host_os in
11315 beos*)
11316 lt_cv_dlopen=load_add_on
11317 lt_cv_dlopen_libs=
11318 lt_cv_dlopen_self=yes
11319 ;;
11320
11321 mingw* | pw32* | cegcc*)
11322 lt_cv_dlopen=LoadLibrary
11323 lt_cv_dlopen_libs=
11324 ;;
11325
11326 cygwin*)
11327 lt_cv_dlopen=dlopen
11328 lt_cv_dlopen_libs=
11329 ;;
11330
11331 darwin*)
11332 # if libdl is installed we need to link against it
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11335 if ${ac_cv_lib_dl_dlopen+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-ldl $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char dlopen ();
11350 int
11351 main ()
11352 {
11353 return dlopen ();
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_dl_dlopen=yes
11360 else
11361 ac_cv_lib_dl_dlopen=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11369 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11370 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11371 else
11372
11373 lt_cv_dlopen=dyld
11374 lt_cv_dlopen_libs=
11375 lt_cv_dlopen_self=yes
11376
11377 fi
11378
11379 ;;
11380
11381 tpf*)
11382 # Don't try to run any link tests for TPF. We know it's impossible
11383 # because TPF is a cross-compiler, and we know how we open DSOs.
11384 lt_cv_dlopen=dlopen
11385 lt_cv_dlopen_libs=
11386 lt_cv_dlopen_self=no
11387 ;;
11388
11389 *)
11390 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11391 if test "x$ac_cv_func_shl_load" = xyes; then :
11392 lt_cv_dlopen=shl_load
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11395 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11396 if ${ac_cv_lib_dld_shl_load+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-ldld $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char shl_load ();
11411 int
11412 main ()
11413 {
11414 return shl_load ();
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_lib_dld_shl_load=yes
11421 else
11422 ac_cv_lib_dld_shl_load=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11429 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11430 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11431 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11432 else
11433 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11434 if test "x$ac_cv_func_dlopen" = xyes; then :
11435 lt_cv_dlopen=dlopen
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11439 if ${ac_cv_lib_dl_dlopen+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldl $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char dlopen ();
11454 int
11455 main ()
11456 {
11457 return dlopen ();
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 ac_cv_lib_dl_dlopen=yes
11464 else
11465 ac_cv_lib_dl_dlopen=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11473 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11474 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11477 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11478 if ${ac_cv_lib_svld_dlopen+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 ac_check_lib_save_LIBS=$LIBS
11482 LIBS="-lsvld $LIBS"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char dlopen ();
11493 int
11494 main ()
11495 {
11496 return dlopen ();
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 ac_cv_lib_svld_dlopen=yes
11503 else
11504 ac_cv_lib_svld_dlopen=no
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_lib_save_LIBS
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11511 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11512 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11513 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11516 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11517 if ${ac_cv_lib_dld_dld_link+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-ldld $LIBS"
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char dld_link ();
11532 int
11533 main ()
11534 {
11535 return dld_link ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 ac_cv_lib_dld_dld_link=yes
11542 else
11543 ac_cv_lib_dld_dld_link=no
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LIBS=$ac_check_lib_save_LIBS
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11550 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11551 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11552 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11553 fi
11554
11555
11556 fi
11557
11558
11559 fi
11560
11561
11562 fi
11563
11564
11565 fi
11566
11567
11568 fi
11569
11570 ;;
11571 esac
11572
11573 if test no = "$lt_cv_dlopen"; then
11574 enable_dlopen=no
11575 else
11576 enable_dlopen=yes
11577 fi
11578
11579 case $lt_cv_dlopen in
11580 dlopen)
11581 save_CPPFLAGS=$CPPFLAGS
11582 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11583
11584 save_LDFLAGS=$LDFLAGS
11585 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11586
11587 save_LIBS=$LIBS
11588 LIBS="$lt_cv_dlopen_libs $LIBS"
11589
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11591 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11592 if ${lt_cv_dlopen_self+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 if test yes = "$cross_compiling"; then :
11596 lt_cv_dlopen_self=cross
11597 else
11598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11599 lt_status=$lt_dlunknown
11600 cat > conftest.$ac_ext <<_LT_EOF
11601 #line $LINENO "configure"
11602 #include "confdefs.h"
11603
11604 #if HAVE_DLFCN_H
11605 #include <dlfcn.h>
11606 #endif
11607
11608 #include <stdio.h>
11609
11610 #ifdef RTLD_GLOBAL
11611 # define LT_DLGLOBAL RTLD_GLOBAL
11612 #else
11613 # ifdef DL_GLOBAL
11614 # define LT_DLGLOBAL DL_GLOBAL
11615 # else
11616 # define LT_DLGLOBAL 0
11617 # endif
11618 #endif
11619
11620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11621 find out it does not work in some platform. */
11622 #ifndef LT_DLLAZY_OR_NOW
11623 # ifdef RTLD_LAZY
11624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11625 # else
11626 # ifdef DL_LAZY
11627 # define LT_DLLAZY_OR_NOW DL_LAZY
11628 # else
11629 # ifdef RTLD_NOW
11630 # define LT_DLLAZY_OR_NOW RTLD_NOW
11631 # else
11632 # ifdef DL_NOW
11633 # define LT_DLLAZY_OR_NOW DL_NOW
11634 # else
11635 # define LT_DLLAZY_OR_NOW 0
11636 # endif
11637 # endif
11638 # endif
11639 # endif
11640 #endif
11641
11642 /* When -fvisibility=hidden is used, assume the code has been annotated
11643 correspondingly for the symbols needed. */
11644 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11645 int fnord () __attribute__((visibility("default")));
11646 #endif
11647
11648 int fnord () { return 42; }
11649 int main ()
11650 {
11651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652 int status = $lt_dlunknown;
11653
11654 if (self)
11655 {
11656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11657 else
11658 {
11659 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660 else puts (dlerror ());
11661 }
11662 /* dlclose (self); */
11663 }
11664 else
11665 puts (dlerror ());
11666
11667 return status;
11668 }
11669 _LT_EOF
11670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11671 (eval $ac_link) 2>&5
11672 ac_status=$?
11673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11675 (./conftest; exit; ) >&5 2>/dev/null
11676 lt_status=$?
11677 case x$lt_status in
11678 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11679 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11680 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11681 esac
11682 else :
11683 # compilation failed
11684 lt_cv_dlopen_self=no
11685 fi
11686 fi
11687 rm -fr conftest*
11688
11689
11690 fi
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11692 $as_echo "$lt_cv_dlopen_self" >&6; }
11693
11694 if test yes = "$lt_cv_dlopen_self"; then
11695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11697 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11698 if ${lt_cv_dlopen_self_static+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test yes = "$cross_compiling"; then :
11702 lt_cv_dlopen_self_static=cross
11703 else
11704 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11705 lt_status=$lt_dlunknown
11706 cat > conftest.$ac_ext <<_LT_EOF
11707 #line $LINENO "configure"
11708 #include "confdefs.h"
11709
11710 #if HAVE_DLFCN_H
11711 #include <dlfcn.h>
11712 #endif
11713
11714 #include <stdio.h>
11715
11716 #ifdef RTLD_GLOBAL
11717 # define LT_DLGLOBAL RTLD_GLOBAL
11718 #else
11719 # ifdef DL_GLOBAL
11720 # define LT_DLGLOBAL DL_GLOBAL
11721 # else
11722 # define LT_DLGLOBAL 0
11723 # endif
11724 #endif
11725
11726 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11727 find out it does not work in some platform. */
11728 #ifndef LT_DLLAZY_OR_NOW
11729 # ifdef RTLD_LAZY
11730 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11731 # else
11732 # ifdef DL_LAZY
11733 # define LT_DLLAZY_OR_NOW DL_LAZY
11734 # else
11735 # ifdef RTLD_NOW
11736 # define LT_DLLAZY_OR_NOW RTLD_NOW
11737 # else
11738 # ifdef DL_NOW
11739 # define LT_DLLAZY_OR_NOW DL_NOW
11740 # else
11741 # define LT_DLLAZY_OR_NOW 0
11742 # endif
11743 # endif
11744 # endif
11745 # endif
11746 #endif
11747
11748 /* When -fvisibility=hidden is used, assume the code has been annotated
11749 correspondingly for the symbols needed. */
11750 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11751 int fnord () __attribute__((visibility("default")));
11752 #endif
11753
11754 int fnord () { return 42; }
11755 int main ()
11756 {
11757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11758 int status = $lt_dlunknown;
11759
11760 if (self)
11761 {
11762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11763 else
11764 {
11765 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11766 else puts (dlerror ());
11767 }
11768 /* dlclose (self); */
11769 }
11770 else
11771 puts (dlerror ());
11772
11773 return status;
11774 }
11775 _LT_EOF
11776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11777 (eval $ac_link) 2>&5
11778 ac_status=$?
11779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11780 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11781 (./conftest; exit; ) >&5 2>/dev/null
11782 lt_status=$?
11783 case x$lt_status in
11784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11787 esac
11788 else :
11789 # compilation failed
11790 lt_cv_dlopen_self_static=no
11791 fi
11792 fi
11793 rm -fr conftest*
11794
11795
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11798 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11799 fi
11800
11801 CPPFLAGS=$save_CPPFLAGS
11802 LDFLAGS=$save_LDFLAGS
11803 LIBS=$save_LIBS
11804 ;;
11805 esac
11806
11807 case $lt_cv_dlopen_self in
11808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11809 *) enable_dlopen_self=unknown ;;
11810 esac
11811
11812 case $lt_cv_dlopen_self_static in
11813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11814 *) enable_dlopen_self_static=unknown ;;
11815 esac
11816 fi
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834 striplib=
11835 old_striplib=
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 else
11844 # FIXME - insert some real tests, host_os isn't really good enough
11845 case $host_os in
11846 darwin*)
11847 if test -n "$STRIP"; then
11848 striplib="$STRIP -x"
11849 old_striplib="$STRIP -S"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856 ;;
11857 *)
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860 ;;
11861 esac
11862 fi
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 # Report what library types will actually be built
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11879 $as_echo "$can_build_shared" >&6; }
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11882 $as_echo_n "checking whether to build shared libraries... " >&6; }
11883 test no = "$can_build_shared" && enable_shared=no
11884
11885 # On AIX, shared libraries and static libraries use the same namespace, and
11886 # are all built from PIC.
11887 case $host_os in
11888 aix3*)
11889 test yes = "$enable_shared" && enable_static=no
11890 if test -n "$RANLIB"; then
11891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11892 postinstall_cmds='$RANLIB $lib'
11893 fi
11894 ;;
11895
11896 aix[4-9]*)
11897 if test ia64 != "$host_cpu"; then
11898 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11899 yes,aix,yes) ;; # shared object as lib.so file only
11900 yes,svr4,*) ;; # shared object as lib.so archive member only
11901 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11902 esac
11903 fi
11904 ;;
11905 esac
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11907 $as_echo "$enable_shared" >&6; }
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11910 $as_echo_n "checking whether to build static libraries... " >&6; }
11911 # Make sure either enable_shared or enable_static is yes.
11912 test yes = "$enable_shared" || enable_static=yes
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11914 $as_echo "$enable_static" >&6; }
11915
11916
11917
11918
11919 fi
11920 ac_ext=c
11921 ac_cpp='$CPP $CPPFLAGS'
11922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925
11926 CC=$lt_save_CC
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 ac_config_commands="$ac_config_commands libtool"
11943
11944
11945
11946
11947 # Only expand once:
11948
11949
11950
11951 # Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11964 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11965 if ${ac_cv_prog_cc_c99+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 ac_cv_prog_cc_c99=no
11969 ac_save_CC=$CC
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <stdarg.h>
11973 #include <stdbool.h>
11974 #include <stdlib.h>
11975 #include <wchar.h>
11976 #include <stdio.h>
11977
11978 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11979 #define debug(...) fprintf (stderr, __VA_ARGS__)
11980 #define showlist(...) puts (#__VA_ARGS__)
11981 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11982 static void
11983 test_varargs_macros (void)
11984 {
11985 int x = 1234;
11986 int y = 5678;
11987 debug ("Flag");
11988 debug ("X = %d\n", x);
11989 showlist (The first, second, and third items.);
11990 report (x>y, "x is %d but y is %d", x, y);
11991 }
11992
11993 // Check long long types.
11994 #define BIG64 18446744073709551615ull
11995 #define BIG32 4294967295ul
11996 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11997 #if !BIG_OK
11998 your preprocessor is broken;
11999 #endif
12000 #if BIG_OK
12001 #else
12002 your preprocessor is broken;
12003 #endif
12004 static long long int bignum = -9223372036854775807LL;
12005 static unsigned long long int ubignum = BIG64;
12006
12007 struct incomplete_array
12008 {
12009 int datasize;
12010 double data[];
12011 };
12012
12013 struct named_init {
12014 int number;
12015 const wchar_t *name;
12016 double average;
12017 };
12018
12019 typedef const char *ccp;
12020
12021 static inline int
12022 test_restrict (ccp restrict text)
12023 {
12024 // See if C++-style comments work.
12025 // Iterate through items via the restricted pointer.
12026 // Also check for declarations in for loops.
12027 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12028 continue;
12029 return 0;
12030 }
12031
12032 // Check varargs and va_copy.
12033 static void
12034 test_varargs (const char *format, ...)
12035 {
12036 va_list args;
12037 va_start (args, format);
12038 va_list args_copy;
12039 va_copy (args_copy, args);
12040
12041 const char *str;
12042 int number;
12043 float fnumber;
12044
12045 while (*format)
12046 {
12047 switch (*format++)
12048 {
12049 case 's': // string
12050 str = va_arg (args_copy, const char *);
12051 break;
12052 case 'd': // int
12053 number = va_arg (args_copy, int);
12054 break;
12055 case 'f': // float
12056 fnumber = va_arg (args_copy, double);
12057 break;
12058 default:
12059 break;
12060 }
12061 }
12062 va_end (args_copy);
12063 va_end (args);
12064 }
12065
12066 int
12067 main ()
12068 {
12069
12070 // Check bool.
12071 _Bool success = false;
12072
12073 // Check restrict.
12074 if (test_restrict ("String literal") == 0)
12075 success = true;
12076 char *restrict newvar = "Another string";
12077
12078 // Check varargs.
12079 test_varargs ("s, d' f .", "string", 65, 34.234);
12080 test_varargs_macros ();
12081
12082 // Check flexible array members.
12083 struct incomplete_array *ia =
12084 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12085 ia->datasize = 10;
12086 for (int i = 0; i < ia->datasize; ++i)
12087 ia->data[i] = i * 1.234;
12088
12089 // Check named initializers.
12090 struct named_init ni = {
12091 .number = 34,
12092 .name = L"Test wide string",
12093 .average = 543.34343,
12094 };
12095
12096 ni.number = 58;
12097
12098 int dynamic_array[ni.number];
12099 dynamic_array[ni.number - 1] = 543;
12100
12101 // work around unused variable warnings
12102 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12103 || dynamic_array[ni.number - 1] != 543);
12104
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12110 do
12111 CC="$ac_save_CC $ac_arg"
12112 if ac_fn_c_try_compile "$LINENO"; then :
12113 ac_cv_prog_cc_c99=$ac_arg
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext
12116 test "x$ac_cv_prog_cc_c99" != "xno" && break
12117 done
12118 rm -f conftest.$ac_ext
12119 CC=$ac_save_CC
12120
12121 fi
12122 # AC_CACHE_VAL
12123 case "x$ac_cv_prog_cc_c99" in
12124 x)
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12126 $as_echo "none needed" >&6; } ;;
12127 xno)
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12129 $as_echo "unsupported" >&6; } ;;
12130 *)
12131 CC="$CC $ac_cv_prog_cc_c99"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12133 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12134 esac
12135 if test "x$ac_cv_prog_cc_c99" != xno; then :
12136
12137 fi
12138
12139
12140
12141
12142
12143
12144 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12145 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12146 CLANGCC="yes"
12147 else
12148 CLANGCC="no"
12149 fi
12150
12151 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12152 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12153 INTELCC="yes"
12154 else
12155 INTELCC="no"
12156 fi
12157
12158 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12159 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12160 SUNCC="yes"
12161 else
12162 SUNCC="no"
12163 fi
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12174 if test -n "$ac_tool_prefix"; then
12175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case $PKG_CONFIG in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 ;;
12203 esac
12204 fi
12205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12206 if test -n "$PKG_CONFIG"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12208 $as_echo "$PKG_CONFIG" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215 fi
12216 if test -z "$ac_cv_path_PKG_CONFIG"; then
12217 ac_pt_PKG_CONFIG=$PKG_CONFIG
12218 # Extract the first word of "pkg-config", so it can be a program name with args.
12219 set dummy pkg-config; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $ac_pt_PKG_CONFIG in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12228 ;;
12229 *)
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241 done
12242 done
12243 IFS=$as_save_IFS
12244
12245 ;;
12246 esac
12247 fi
12248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12249 if test -n "$ac_pt_PKG_CONFIG"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256
12257 if test "x$ac_pt_PKG_CONFIG" = x; then
12258 PKG_CONFIG=""
12259 else
12260 case $cross_compiling:$ac_tool_warned in
12261 yes:)
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12264 ac_tool_warned=yes ;;
12265 esac
12266 PKG_CONFIG=$ac_pt_PKG_CONFIG
12267 fi
12268 else
12269 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12270 fi
12271
12272 fi
12273 if test -n "$PKG_CONFIG"; then
12274 _pkg_min_version=0.9.0
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12277 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 PKG_CONFIG=""
12284 fi
12285 fi
12286
12287
12288
12289
12290
12291 # Check whether --enable-selective-werror was given.
12292 if test "${enable_selective_werror+set}" = set; then :
12293 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12294 else
12295 SELECTIVE_WERROR=yes
12296 fi
12297
12298
12299
12300
12301
12302 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12303 if test "x$SUNCC" = "xyes"; then
12304 BASE_CFLAGS="-v"
12305 else
12306 BASE_CFLAGS=""
12307 fi
12308
12309 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 xorg_testset_save_CFLAGS="$CFLAGS"
12324
12325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 int i;
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 xorg_cv_cc_flag_unknown_warning_option=yes
12338 else
12339 xorg_cv_cc_flag_unknown_warning_option=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12346 CFLAGS="$xorg_testset_save_CFLAGS"
12347 fi
12348
12349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12352 fi
12353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 int i;
12362 _ACEOF
12363 if ac_fn_c_try_compile "$LINENO"; then :
12364 xorg_cv_cc_flag_unused_command_line_argument=yes
12365 else
12366 xorg_cv_cc_flag_unused_command_line_argument=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12373 CFLAGS="$xorg_testset_save_CFLAGS"
12374 fi
12375
12376 found="no"
12377
12378 if test $found = "no" ; then
12379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381 fi
12382
12383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12385 fi
12386
12387 CFLAGS="$CFLAGS -Wall"
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12390 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12391 cacheid=xorg_cv_cc_flag__Wall
12392 if eval \${$cacheid+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 int i;
12398 int
12399 main ()
12400 {
12401
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 eval $cacheid=yes
12408 else
12409 eval $cacheid=no
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 fi
12414
12415
12416 CFLAGS="$xorg_testset_save_CFLAGS"
12417
12418 eval supported=\$$cacheid
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12420 $as_echo "$supported" >&6; }
12421 if test "$supported" = "yes" ; then
12422 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12423 found="yes"
12424 fi
12425 fi
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 xorg_testset_save_CFLAGS="$CFLAGS"
12442
12443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 int i;
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 xorg_cv_cc_flag_unknown_warning_option=yes
12456 else
12457 xorg_cv_cc_flag_unknown_warning_option=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12464 CFLAGS="$xorg_testset_save_CFLAGS"
12465 fi
12466
12467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470 fi
12471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 int i;
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 xorg_cv_cc_flag_unused_command_line_argument=yes
12483 else
12484 xorg_cv_cc_flag_unused_command_line_argument=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12491 CFLAGS="$xorg_testset_save_CFLAGS"
12492 fi
12493
12494 found="no"
12495
12496 if test $found = "no" ; then
12497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499 fi
12500
12501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12503 fi
12504
12505 CFLAGS="$CFLAGS -Wpointer-arith"
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12508 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12509 cacheid=xorg_cv_cc_flag__Wpointer_arith
12510 if eval \${$cacheid+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 int i;
12516 int
12517 main ()
12518 {
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 eval $cacheid=yes
12526 else
12527 eval $cacheid=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532
12533
12534 CFLAGS="$xorg_testset_save_CFLAGS"
12535
12536 eval supported=\$$cacheid
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12538 $as_echo "$supported" >&6; }
12539 if test "$supported" = "yes" ; then
12540 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12541 found="yes"
12542 fi
12543 fi
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int i;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 xorg_cv_cc_flag_unknown_warning_option=yes
12574 else
12575 xorg_cv_cc_flag_unknown_warning_option=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582 CFLAGS="$xorg_testset_save_CFLAGS"
12583 fi
12584
12585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 fi
12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int i;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 else
12602 xorg_cv_cc_flag_unused_command_line_argument=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12610 fi
12611
12612 found="no"
12613
12614 if test $found = "no" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618
12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 fi
12622
12623 CFLAGS="$CFLAGS -Wmissing-declarations"
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12626 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12627 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12628 if eval \${$cacheid+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 int i;
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 eval $cacheid=yes
12644 else
12645 eval $cacheid=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651
12652 CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654 eval supported=\$$cacheid
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656 $as_echo "$supported" >&6; }
12657 if test "$supported" = "yes" ; then
12658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12659 found="yes"
12660 fi
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 xorg_testset_save_CFLAGS="$CFLAGS"
12678
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int i;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 xorg_cv_cc_flag_unknown_warning_option=yes
12692 else
12693 xorg_cv_cc_flag_unknown_warning_option=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12700 CFLAGS="$xorg_testset_save_CFLAGS"
12701 fi
12702
12703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 fi
12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 else
12720 xorg_cv_cc_flag_unused_command_line_argument=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 found="no"
12731
12732 if test $found = "no" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12739 fi
12740
12741 CFLAGS="$CFLAGS -Wformat=2"
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12744 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12745 cacheid=xorg_cv_cc_flag__Wformat_2
12746 if eval \${$cacheid+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 int i;
12752 int
12753 main ()
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 eval $cacheid=yes
12762 else
12763 eval $cacheid=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 fi
12768
12769
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771
12772 eval supported=\$$cacheid
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12774 $as_echo "$supported" >&6; }
12775 if test "$supported" = "yes" ; then
12776 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12777 found="yes"
12778 fi
12779 fi
12780
12781 if test $found = "no" ; then
12782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12784 fi
12785
12786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12788 fi
12789
12790 CFLAGS="$CFLAGS -Wformat"
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12793 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12794 cacheid=xorg_cv_cc_flag__Wformat
12795 if eval \${$cacheid+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 int i;
12801 int
12802 main ()
12803 {
12804
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 eval $cacheid=yes
12811 else
12812 eval $cacheid=no
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 fi
12817
12818
12819 CFLAGS="$xorg_testset_save_CFLAGS"
12820
12821 eval supported=\$$cacheid
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12823 $as_echo "$supported" >&6; }
12824 if test "$supported" = "yes" ; then
12825 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12826 found="yes"
12827 fi
12828 fi
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 xorg_testset_save_CFLAGS="$CFLAGS"
12847
12848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 int i;
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860 xorg_cv_cc_flag_unknown_warning_option=yes
12861 else
12862 xorg_cv_cc_flag_unknown_warning_option=no
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12869 CFLAGS="$xorg_testset_save_CFLAGS"
12870 fi
12871
12872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12875 fi
12876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 int i;
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887 xorg_cv_cc_flag_unused_command_line_argument=yes
12888 else
12889 xorg_cv_cc_flag_unused_command_line_argument=no
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 fi
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12896 CFLAGS="$xorg_testset_save_CFLAGS"
12897 fi
12898
12899 found="no"
12900
12901 if test $found = "no" ; then
12902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12904 fi
12905
12906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12908 fi
12909
12910 CFLAGS="$CFLAGS -Wstrict-prototypes"
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12913 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12914 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12915 if eval \${$cacheid+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12920 int i;
12921 int
12922 main ()
12923 {
12924
12925 ;
12926 return 0;
12927 }
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 eval $cacheid=yes
12931 else
12932 eval $cacheid=no
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 fi
12937
12938
12939 CFLAGS="$xorg_testset_save_CFLAGS"
12940
12941 eval supported=\$$cacheid
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12943 $as_echo "$supported" >&6; }
12944 if test "$supported" = "yes" ; then
12945 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12946 found="yes"
12947 fi
12948 fi
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 xorg_testset_save_CFLAGS="$CFLAGS"
12965
12966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 xorg_cv_cc_flag_unknown_warning_option=yes
12979 else
12980 xorg_cv_cc_flag_unknown_warning_option=no
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12987 CFLAGS="$xorg_testset_save_CFLAGS"
12988 fi
12989
12990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993 fi
12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 int i;
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 xorg_cv_cc_flag_unused_command_line_argument=yes
13006 else
13007 xorg_cv_cc_flag_unused_command_line_argument=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13014 CFLAGS="$xorg_testset_save_CFLAGS"
13015 fi
13016
13017 found="no"
13018
13019 if test $found = "no" ; then
13020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13022 fi
13023
13024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026 fi
13027
13028 CFLAGS="$CFLAGS -Wmissing-prototypes"
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13031 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13032 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13033 if eval \${$cacheid+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 int i;
13039 int
13040 main ()
13041 {
13042
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 eval $cacheid=yes
13049 else
13050 eval $cacheid=no
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 fi
13055
13056
13057 CFLAGS="$xorg_testset_save_CFLAGS"
13058
13059 eval supported=\$$cacheid
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13061 $as_echo "$supported" >&6; }
13062 if test "$supported" = "yes" ; then
13063 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13064 found="yes"
13065 fi
13066 fi
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 int i;
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 xorg_cv_cc_flag_unknown_warning_option=yes
13097 else
13098 xorg_cv_cc_flag_unknown_warning_option=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105 CFLAGS="$xorg_testset_save_CFLAGS"
13106 fi
13107
13108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 fi
13112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120 int i;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 xorg_cv_cc_flag_unused_command_line_argument=yes
13124 else
13125 xorg_cv_cc_flag_unused_command_line_argument=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13133 fi
13134
13135 found="no"
13136
13137 if test $found = "no" ; then
13138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140 fi
13141
13142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144 fi
13145
13146 CFLAGS="$CFLAGS -Wnested-externs"
13147
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13149 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13150 cacheid=xorg_cv_cc_flag__Wnested_externs
13151 if eval \${$cacheid+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 int i;
13157 int
13158 main ()
13159 {
13160
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 eval $cacheid=yes
13167 else
13168 eval $cacheid=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 fi
13173
13174
13175 CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177 eval supported=\$$cacheid
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179 $as_echo "$supported" >&6; }
13180 if test "$supported" = "yes" ; then
13181 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13182 found="yes"
13183 fi
13184 fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 int i;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 xorg_cv_cc_flag_unknown_warning_option=yes
13215 else
13216 xorg_cv_cc_flag_unknown_warning_option=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224 fi
13225
13226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229 fi
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 int i;
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 xorg_cv_cc_flag_unused_command_line_argument=yes
13242 else
13243 xorg_cv_cc_flag_unused_command_line_argument=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13251 fi
13252
13253 found="no"
13254
13255 if test $found = "no" ; then
13256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258 fi
13259
13260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 fi
13263
13264 CFLAGS="$CFLAGS -Wbad-function-cast"
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13267 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13268 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13269 if eval \${$cacheid+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int i;
13275 int
13276 main ()
13277 {
13278
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 eval $cacheid=yes
13285 else
13286 eval $cacheid=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 fi
13291
13292
13293 CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295 eval supported=\$$cacheid
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297 $as_echo "$supported" >&6; }
13298 if test "$supported" = "yes" ; then
13299 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13300 found="yes"
13301 fi
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318 xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 int i;
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332 xorg_cv_cc_flag_unknown_warning_option=yes
13333 else
13334 xorg_cv_cc_flag_unknown_warning_option=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342 fi
13343
13344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347 fi
13348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 int i;
13357 _ACEOF
13358 if ac_fn_c_try_compile "$LINENO"; then :
13359 xorg_cv_cc_flag_unused_command_line_argument=yes
13360 else
13361 xorg_cv_cc_flag_unused_command_line_argument=no
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368 CFLAGS="$xorg_testset_save_CFLAGS"
13369 fi
13370
13371 found="no"
13372
13373 if test $found = "no" ; then
13374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380 fi
13381
13382 CFLAGS="$CFLAGS -Wold-style-definition"
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13385 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13386 cacheid=xorg_cv_cc_flag__Wold_style_definition
13387 if eval \${$cacheid+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 int i;
13393 int
13394 main ()
13395 {
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 eval $cacheid=yes
13403 else
13404 eval $cacheid=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 fi
13409
13410
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413 eval supported=\$$cacheid
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415 $as_echo "$supported" >&6; }
13416 if test "$supported" = "yes" ; then
13417 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13418 found="yes"
13419 fi
13420 fi
13421
13422 if test $found = "no" ; then
13423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13425 fi
13426
13427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13429 fi
13430
13431 CFLAGS="$CFLAGS -fd"
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13434 $as_echo_n "checking if $CC supports -fd... " >&6; }
13435 cacheid=xorg_cv_cc_flag__fd
13436 if eval \${$cacheid+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 int i;
13442 int
13443 main ()
13444 {
13445
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 eval $cacheid=yes
13452 else
13453 eval $cacheid=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 fi
13458
13459
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461
13462 eval supported=\$$cacheid
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13464 $as_echo "$supported" >&6; }
13465 if test "$supported" = "yes" ; then
13466 BASE_CFLAGS="$BASE_CFLAGS -fd"
13467 found="yes"
13468 fi
13469 fi
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 xorg_testset_save_CFLAGS="$CFLAGS"
13486
13487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 int i;
13497 _ACEOF
13498 if ac_fn_c_try_compile "$LINENO"; then :
13499 xorg_cv_cc_flag_unknown_warning_option=yes
13500 else
13501 xorg_cv_cc_flag_unknown_warning_option=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13508 CFLAGS="$xorg_testset_save_CFLAGS"
13509 fi
13510
13511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13514 fi
13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 int i;
13524 _ACEOF
13525 if ac_fn_c_try_compile "$LINENO"; then :
13526 xorg_cv_cc_flag_unused_command_line_argument=yes
13527 else
13528 xorg_cv_cc_flag_unused_command_line_argument=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13535 CFLAGS="$xorg_testset_save_CFLAGS"
13536 fi
13537
13538 found="no"
13539
13540 if test $found = "no" ; then
13541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13543 fi
13544
13545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547 fi
13548
13549 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13552 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13553 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13554 if eval \${$cacheid+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 int i;
13560 int
13561 main ()
13562 {
13563
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 eval $cacheid=yes
13570 else
13571 eval $cacheid=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 fi
13576
13577
13578 CFLAGS="$xorg_testset_save_CFLAGS"
13579
13580 eval supported=\$$cacheid
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13582 $as_echo "$supported" >&6; }
13583 if test "$supported" = "yes" ; then
13584 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13585 found="yes"
13586 fi
13587 fi
13588
13589
13590
13591
13592
13593 # This chunk adds additional warnings that could catch undesired effects.
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 xorg_testset_save_CFLAGS="$CFLAGS"
13608
13609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 int i;
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 xorg_cv_cc_flag_unknown_warning_option=yes
13622 else
13623 xorg_cv_cc_flag_unknown_warning_option=no
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13630 CFLAGS="$xorg_testset_save_CFLAGS"
13631 fi
13632
13633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13636 fi
13637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 int i;
13646 _ACEOF
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 xorg_cv_cc_flag_unused_command_line_argument=yes
13649 else
13650 xorg_cv_cc_flag_unused_command_line_argument=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13657 CFLAGS="$xorg_testset_save_CFLAGS"
13658 fi
13659
13660 found="no"
13661
13662 if test $found = "no" ; then
13663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665 fi
13666
13667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13669 fi
13670
13671 CFLAGS="$CFLAGS -Wunused"
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13674 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13675 cacheid=xorg_cv_cc_flag__Wunused
13676 if eval \${$cacheid+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int i;
13682 int
13683 main ()
13684 {
13685
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_link "$LINENO"; then :
13691 eval $cacheid=yes
13692 else
13693 eval $cacheid=no
13694 fi
13695 rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13697 fi
13698
13699
13700 CFLAGS="$xorg_testset_save_CFLAGS"
13701
13702 eval supported=\$$cacheid
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13704 $as_echo "$supported" >&6; }
13705 if test "$supported" = "yes" ; then
13706 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13707 found="yes"
13708 fi
13709 fi
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 xorg_testset_save_CFLAGS="$CFLAGS"
13726
13727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 int i;
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 xorg_cv_cc_flag_unknown_warning_option=yes
13740 else
13741 xorg_cv_cc_flag_unknown_warning_option=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13748 CFLAGS="$xorg_testset_save_CFLAGS"
13749 fi
13750
13751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13754 fi
13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 int i;
13764 _ACEOF
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766 xorg_cv_cc_flag_unused_command_line_argument=yes
13767 else
13768 xorg_cv_cc_flag_unused_command_line_argument=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13775 CFLAGS="$xorg_testset_save_CFLAGS"
13776 fi
13777
13778 found="no"
13779
13780 if test $found = "no" ; then
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 fi
13784
13785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13787 fi
13788
13789 CFLAGS="$CFLAGS -Wuninitialized"
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13792 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13793 cacheid=xorg_cv_cc_flag__Wuninitialized
13794 if eval \${$cacheid+:} false; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 int i;
13800 int
13801 main ()
13802 {
13803
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 eval $cacheid=yes
13810 else
13811 eval $cacheid=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 fi
13816
13817
13818 CFLAGS="$xorg_testset_save_CFLAGS"
13819
13820 eval supported=\$$cacheid
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13822 $as_echo "$supported" >&6; }
13823 if test "$supported" = "yes" ; then
13824 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13825 found="yes"
13826 fi
13827 fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 xorg_testset_save_CFLAGS="$CFLAGS"
13844
13845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int i;
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 xorg_cv_cc_flag_unknown_warning_option=yes
13858 else
13859 xorg_cv_cc_flag_unknown_warning_option=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13866 CFLAGS="$xorg_testset_save_CFLAGS"
13867 fi
13868
13869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 fi
13873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int i;
13882 _ACEOF
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 xorg_cv_cc_flag_unused_command_line_argument=yes
13885 else
13886 xorg_cv_cc_flag_unused_command_line_argument=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894 fi
13895
13896 found="no"
13897
13898 if test $found = "no" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902
13903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13905 fi
13906
13907 CFLAGS="$CFLAGS -Wshadow"
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13910 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13911 cacheid=xorg_cv_cc_flag__Wshadow
13912 if eval \${$cacheid+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 int i;
13918 int
13919 main ()
13920 {
13921
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 eval $cacheid=yes
13928 else
13929 eval $cacheid=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 fi
13934
13935
13936 CFLAGS="$xorg_testset_save_CFLAGS"
13937
13938 eval supported=\$$cacheid
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13940 $as_echo "$supported" >&6; }
13941 if test "$supported" = "yes" ; then
13942 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13943 found="yes"
13944 fi
13945 fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 xorg_testset_save_CFLAGS="$CFLAGS"
13962
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int i;
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13975 xorg_cv_cc_flag_unknown_warning_option=yes
13976 else
13977 xorg_cv_cc_flag_unknown_warning_option=no
13978 fi
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13984 CFLAGS="$xorg_testset_save_CFLAGS"
13985 fi
13986
13987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990 fi
13991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int i;
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 xorg_cv_cc_flag_unused_command_line_argument=yes
14003 else
14004 xorg_cv_cc_flag_unused_command_line_argument=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14011 CFLAGS="$xorg_testset_save_CFLAGS"
14012 fi
14013
14014 found="no"
14015
14016 if test $found = "no" ; then
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 fi
14020
14021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14023 fi
14024
14025 CFLAGS="$CFLAGS -Wmissing-noreturn"
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14028 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14029 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14030 if eval \${$cacheid+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int i;
14036 int
14037 main ()
14038 {
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 eval $cacheid=yes
14046 else
14047 eval $cacheid=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 fi
14052
14053
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14055
14056 eval supported=\$$cacheid
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14058 $as_echo "$supported" >&6; }
14059 if test "$supported" = "yes" ; then
14060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14061 found="yes"
14062 fi
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 xorg_cv_cc_flag_unknown_warning_option=yes
14094 else
14095 xorg_cv_cc_flag_unknown_warning_option=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14102 CFLAGS="$xorg_testset_save_CFLAGS"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 xorg_cv_cc_flag_unused_command_line_argument=yes
14121 else
14122 xorg_cv_cc_flag_unused_command_line_argument=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130 fi
14131
14132 found="no"
14133
14134 if test $found = "no" ; then
14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137 fi
14138
14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14141 fi
14142
14143 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14146 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14147 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14148 if eval \${$cacheid+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 int
14155 main ()
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 eval $cacheid=yes
14164 else
14165 eval $cacheid=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi
14170
14171
14172 CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174 eval supported=\$$cacheid
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176 $as_echo "$supported" >&6; }
14177 if test "$supported" = "yes" ; then
14178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14179 found="yes"
14180 fi
14181 fi
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 xorg_testset_save_CFLAGS="$CFLAGS"
14198
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211 xorg_cv_cc_flag_unknown_warning_option=yes
14212 else
14213 xorg_cv_cc_flag_unknown_warning_option=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14220 CFLAGS="$xorg_testset_save_CFLAGS"
14221 fi
14222
14223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226 fi
14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 xorg_cv_cc_flag_unused_command_line_argument=yes
14239 else
14240 xorg_cv_cc_flag_unused_command_line_argument=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14247 CFLAGS="$xorg_testset_save_CFLAGS"
14248 fi
14249
14250 found="no"
14251
14252 if test $found = "no" ; then
14253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14255 fi
14256
14257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14259 fi
14260
14261 CFLAGS="$CFLAGS -Wredundant-decls"
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14264 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14265 cacheid=xorg_cv_cc_flag__Wredundant_decls
14266 if eval \${$cacheid+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 int i;
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval $cacheid=yes
14282 else
14283 eval $cacheid=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 fi
14288
14289
14290 CFLAGS="$xorg_testset_save_CFLAGS"
14291
14292 eval supported=\$$cacheid
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14294 $as_echo "$supported" >&6; }
14295 if test "$supported" = "yes" ; then
14296 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14297 found="yes"
14298 fi
14299 fi
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315 xorg_testset_save_CFLAGS="$CFLAGS"
14316
14317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else
14331 xorg_cv_cc_flag_unknown_warning_option=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 int i;
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 xorg_cv_cc_flag_unused_command_line_argument=yes
14357 else
14358 xorg_cv_cc_flag_unused_command_line_argument=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14366 fi
14367
14368 found="no"
14369
14370 if test $found = "no" ; then
14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373 fi
14374
14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14377 fi
14378
14379 CFLAGS="$CFLAGS -Wlogical-op"
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14382 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14383 cacheid=xorg_cv_cc_flag__Wlogical_op
14384 if eval \${$cacheid+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main ()
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 eval $cacheid=yes
14400 else
14401 eval $cacheid=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 fi
14406
14407
14408 CFLAGS="$xorg_testset_save_CFLAGS"
14409
14410 eval supported=\$$cacheid
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14412 $as_echo "$supported" >&6; }
14413 if test "$supported" = "yes" ; then
14414 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14415 found="yes"
14416 fi
14417 fi
14418
14419
14420
14421 # These are currently disabled because they are noisy. They will be enabled
14422 # in the future once the codebase is sufficiently modernized to silence
14423 # them. For now, I don't want them to drown out the other warnings.
14424 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14425 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14426 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14427
14428 # Turn some warnings into errors, so we don't accidently get successful builds
14429 # when there are problems that should be fixed.
14430
14431 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445 xorg_testset_save_CFLAGS="$CFLAGS"
14446
14447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14450 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14451 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 int i;
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"; then :
14459 xorg_cv_cc_flag_unknown_warning_option=yes
14460 else
14461 xorg_cv_cc_flag_unknown_warning_option=no
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 fi
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14466 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14468 CFLAGS="$xorg_testset_save_CFLAGS"
14469 fi
14470
14471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14474 fi
14475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14477 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14478 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 int i;
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 xorg_cv_cc_flag_unused_command_line_argument=yes
14487 else
14488 xorg_cv_cc_flag_unused_command_line_argument=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14493 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14495 CFLAGS="$xorg_testset_save_CFLAGS"
14496 fi
14497
14498 found="no"
14499
14500 if test $found = "no" ; then
14501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14503 fi
14504
14505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507 fi
14508
14509 CFLAGS="$CFLAGS -Werror=implicit"
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14512 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14513 cacheid=xorg_cv_cc_flag__Werror_implicit
14514 if eval \${$cacheid+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 int i;
14520 int
14521 main ()
14522 {
14523
14524 ;
14525 return 0;
14526 }
14527 _ACEOF
14528 if ac_fn_c_try_link "$LINENO"; then :
14529 eval $cacheid=yes
14530 else
14531 eval $cacheid=no
14532 fi
14533 rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
14535 fi
14536
14537
14538 CFLAGS="$xorg_testset_save_CFLAGS"
14539
14540 eval supported=\$$cacheid
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14542 $as_echo "$supported" >&6; }
14543 if test "$supported" = "yes" ; then
14544 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14545 found="yes"
14546 fi
14547 fi
14548
14549 if test $found = "no" ; then
14550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552 fi
14553
14554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14556 fi
14557
14558 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14561 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14562 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14563 if eval \${$cacheid+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 int i;
14569 int
14570 main ()
14571 {
14572
14573 ;
14574 return 0;
14575 }
14576 _ACEOF
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 eval $cacheid=yes
14579 else
14580 eval $cacheid=no
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584 fi
14585
14586
14587 CFLAGS="$xorg_testset_save_CFLAGS"
14588
14589 eval supported=\$$cacheid
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14591 $as_echo "$supported" >&6; }
14592 if test "$supported" = "yes" ; then
14593 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14594 found="yes"
14595 fi
14596 fi
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612 xorg_testset_save_CFLAGS="$CFLAGS"
14613
14614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 int i;
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"; then :
14626 xorg_cv_cc_flag_unknown_warning_option=yes
14627 else
14628 xorg_cv_cc_flag_unknown_warning_option=no
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14635 CFLAGS="$xorg_testset_save_CFLAGS"
14636 fi
14637
14638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14641 fi
14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650 int i;
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 xorg_cv_cc_flag_unused_command_line_argument=yes
14654 else
14655 xorg_cv_cc_flag_unused_command_line_argument=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14662 CFLAGS="$xorg_testset_save_CFLAGS"
14663 fi
14664
14665 found="no"
14666
14667 if test $found = "no" ; then
14668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14670 fi
14671
14672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14674 fi
14675
14676 CFLAGS="$CFLAGS -Werror=nonnull"
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14679 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14680 cacheid=xorg_cv_cc_flag__Werror_nonnull
14681 if eval \${$cacheid+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 int i;
14687 int
14688 main ()
14689 {
14690
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 eval $cacheid=yes
14697 else
14698 eval $cacheid=no
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 fi
14703
14704
14705 CFLAGS="$xorg_testset_save_CFLAGS"
14706
14707 eval supported=\$$cacheid
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14709 $as_echo "$supported" >&6; }
14710 if test "$supported" = "yes" ; then
14711 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14712 found="yes"
14713 fi
14714 fi
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730 xorg_testset_save_CFLAGS="$CFLAGS"
14731
14732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 int i;
14742 _ACEOF
14743 if ac_fn_c_try_compile "$LINENO"; then :
14744 xorg_cv_cc_flag_unknown_warning_option=yes
14745 else
14746 xorg_cv_cc_flag_unknown_warning_option=no
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14753 CFLAGS="$xorg_testset_save_CFLAGS"
14754 fi
14755
14756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759 fi
14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 int i;
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 xorg_cv_cc_flag_unused_command_line_argument=yes
14772 else
14773 xorg_cv_cc_flag_unused_command_line_argument=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14780 CFLAGS="$xorg_testset_save_CFLAGS"
14781 fi
14782
14783 found="no"
14784
14785 if test $found = "no" ; then
14786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14792 fi
14793
14794 CFLAGS="$CFLAGS -Werror=init-self"
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14797 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14798 cacheid=xorg_cv_cc_flag__Werror_init_self
14799 if eval \${$cacheid+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 int i;
14805 int
14806 main ()
14807 {
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 eval $cacheid=yes
14815 else
14816 eval $cacheid=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 fi
14821
14822
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825 eval supported=\$$cacheid
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827 $as_echo "$supported" >&6; }
14828 if test "$supported" = "yes" ; then
14829 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14830 found="yes"
14831 fi
14832 fi
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 xorg_testset_save_CFLAGS="$CFLAGS"
14849
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 xorg_cv_cc_flag_unknown_warning_option=yes
14863 else
14864 xorg_cv_cc_flag_unknown_warning_option=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871 CFLAGS="$xorg_testset_save_CFLAGS"
14872 fi
14873
14874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 int i;
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 xorg_cv_cc_flag_unused_command_line_argument=yes
14890 else
14891 xorg_cv_cc_flag_unused_command_line_argument=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14898 CFLAGS="$xorg_testset_save_CFLAGS"
14899 fi
14900
14901 found="no"
14902
14903 if test $found = "no" ; then
14904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 fi
14907
14908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910 fi
14911
14912 CFLAGS="$CFLAGS -Werror=main"
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14915 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14916 cacheid=xorg_cv_cc_flag__Werror_main
14917 if eval \${$cacheid+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 int i;
14923 int
14924 main ()
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 eval $cacheid=yes
14933 else
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 $as_echo "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 xorg_cv_cc_flag_unknown_warning_option=yes
14981 else
14982 xorg_cv_cc_flag_unknown_warning_option=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14989 CFLAGS="$xorg_testset_save_CFLAGS"
14990 fi
14991
14992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 fi
14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 xorg_cv_cc_flag_unused_command_line_argument=yes
15008 else
15009 xorg_cv_cc_flag_unused_command_line_argument=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15016 CFLAGS="$xorg_testset_save_CFLAGS"
15017 fi
15018
15019 found="no"
15020
15021 if test $found = "no" ; then
15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15024 fi
15025
15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15028 fi
15029
15030 CFLAGS="$CFLAGS -Werror=missing-braces"
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15033 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15034 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15035 if eval \${$cacheid+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 int i;
15041 int
15042 main ()
15043 {
15044
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 eval $cacheid=yes
15051 else
15052 eval $cacheid=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 fi
15057
15058
15059 CFLAGS="$xorg_testset_save_CFLAGS"
15060
15061 eval supported=\$$cacheid
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15063 $as_echo "$supported" >&6; }
15064 if test "$supported" = "yes" ; then
15065 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15066 found="yes"
15067 fi
15068 fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 xorg_testset_save_CFLAGS="$CFLAGS"
15085
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 xorg_cv_cc_flag_unknown_warning_option=yes
15099 else
15100 xorg_cv_cc_flag_unknown_warning_option=no
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108 fi
15109
15110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 fi
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 xorg_cv_cc_flag_unused_command_line_argument=yes
15126 else
15127 xorg_cv_cc_flag_unused_command_line_argument=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 found="no"
15138
15139 if test $found = "no" ; then
15140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146 fi
15147
15148 CFLAGS="$CFLAGS -Werror=sequence-point"
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15151 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15152 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15153 if eval \${$cacheid+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 int i;
15159 int
15160 main ()
15161 {
15162
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"; then :
15168 eval $cacheid=yes
15169 else
15170 eval $cacheid=no
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 fi
15175
15176
15177 CFLAGS="$xorg_testset_save_CFLAGS"
15178
15179 eval supported=\$$cacheid
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15181 $as_echo "$supported" >&6; }
15182 if test "$supported" = "yes" ; then
15183 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15184 found="yes"
15185 fi
15186 fi
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202 xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 int i;
15214 _ACEOF
15215 if ac_fn_c_try_compile "$LINENO"; then :
15216 xorg_cv_cc_flag_unknown_warning_option=yes
15217 else
15218 xorg_cv_cc_flag_unknown_warning_option=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15225 CFLAGS="$xorg_testset_save_CFLAGS"
15226 fi
15227
15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 fi
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 xorg_cv_cc_flag_unused_command_line_argument=yes
15244 else
15245 xorg_cv_cc_flag_unused_command_line_argument=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15252 CFLAGS="$xorg_testset_save_CFLAGS"
15253 fi
15254
15255 found="no"
15256
15257 if test $found = "no" ; then
15258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260 fi
15261
15262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264 fi
15265
15266 CFLAGS="$CFLAGS -Werror=return-type"
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15269 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15270 cacheid=xorg_cv_cc_flag__Werror_return_type
15271 if eval \${$cacheid+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 int i;
15277 int
15278 main ()
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 eval $cacheid=yes
15287 else
15288 eval $cacheid=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 fi
15293
15294
15295 CFLAGS="$xorg_testset_save_CFLAGS"
15296
15297 eval supported=\$$cacheid
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15299 $as_echo "$supported" >&6; }
15300 if test "$supported" = "yes" ; then
15301 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15302 found="yes"
15303 fi
15304 fi
15305
15306 if test $found = "no" ; then
15307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15309 fi
15310
15311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15313 fi
15314
15315 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15318 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15319 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15320 if eval \${$cacheid+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325 int i;
15326 int
15327 main ()
15328 {
15329
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_link "$LINENO"; then :
15335 eval $cacheid=yes
15336 else
15337 eval $cacheid=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341 fi
15342
15343
15344 CFLAGS="$xorg_testset_save_CFLAGS"
15345
15346 eval supported=\$$cacheid
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15348 $as_echo "$supported" >&6; }
15349 if test "$supported" = "yes" ; then
15350 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15351 found="yes"
15352 fi
15353 fi
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 xorg_testset_save_CFLAGS="$CFLAGS"
15370
15371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 int i;
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 xorg_cv_cc_flag_unknown_warning_option=yes
15384 else
15385 xorg_cv_cc_flag_unknown_warning_option=no
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 int i;
15408 _ACEOF
15409 if ac_fn_c_try_compile "$LINENO"; then :
15410 xorg_cv_cc_flag_unused_command_line_argument=yes
15411 else
15412 xorg_cv_cc_flag_unused_command_line_argument=no
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15419 CFLAGS="$xorg_testset_save_CFLAGS"
15420 fi
15421
15422 found="no"
15423
15424 if test $found = "no" ; then
15425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15427 fi
15428
15429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15431 fi
15432
15433 CFLAGS="$CFLAGS -Werror=trigraphs"
15434
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15436 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15437 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15438 if eval \${$cacheid+:} false; then :
15439 $as_echo_n "(cached) " >&6
15440 else
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 int i;
15444 int
15445 main ()
15446 {
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_link "$LINENO"; then :
15453 eval $cacheid=yes
15454 else
15455 eval $cacheid=no
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 fi
15460
15461
15462 CFLAGS="$xorg_testset_save_CFLAGS"
15463
15464 eval supported=\$$cacheid
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15466 $as_echo "$supported" >&6; }
15467 if test "$supported" = "yes" ; then
15468 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15469 found="yes"
15470 fi
15471 fi
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487 xorg_testset_save_CFLAGS="$CFLAGS"
15488
15489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 int i;
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501 xorg_cv_cc_flag_unknown_warning_option=yes
15502 else
15503 xorg_cv_cc_flag_unknown_warning_option=no
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15510 CFLAGS="$xorg_testset_save_CFLAGS"
15511 fi
15512
15513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15516 fi
15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 int i;
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 xorg_cv_cc_flag_unused_command_line_argument=yes
15529 else
15530 xorg_cv_cc_flag_unused_command_line_argument=no
15531 fi
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15537 CFLAGS="$xorg_testset_save_CFLAGS"
15538 fi
15539
15540 found="no"
15541
15542 if test $found = "no" ; then
15543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15545 fi
15546
15547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549 fi
15550
15551 CFLAGS="$CFLAGS -Werror=array-bounds"
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15554 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15555 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15556 if eval \${$cacheid+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 int i;
15562 int
15563 main ()
15564 {
15565
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"; then :
15571 eval $cacheid=yes
15572 else
15573 eval $cacheid=no
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
15577 fi
15578
15579
15580 CFLAGS="$xorg_testset_save_CFLAGS"
15581
15582 eval supported=\$$cacheid
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15584 $as_echo "$supported" >&6; }
15585 if test "$supported" = "yes" ; then
15586 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15587 found="yes"
15588 fi
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605 xorg_testset_save_CFLAGS="$CFLAGS"
15606
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 int i;
15617 _ACEOF
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 xorg_cv_cc_flag_unknown_warning_option=yes
15620 else
15621 xorg_cv_cc_flag_unknown_warning_option=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629 fi
15630
15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634 fi
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unused_command_line_argument=yes
15647 else
15648 xorg_cv_cc_flag_unused_command_line_argument=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15656 fi
15657
15658 found="no"
15659
15660 if test $found = "no" ; then
15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15663 fi
15664
15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15667 fi
15668
15669 CFLAGS="$CFLAGS -Werror=write-strings"
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15672 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15673 cacheid=xorg_cv_cc_flag__Werror_write_strings
15674 if eval \${$cacheid+:} false; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 int i;
15680 int
15681 main ()
15682 {
15683
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 eval $cacheid=yes
15690 else
15691 eval $cacheid=no
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 fi
15696
15697
15698 CFLAGS="$xorg_testset_save_CFLAGS"
15699
15700 eval supported=\$$cacheid
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15702 $as_echo "$supported" >&6; }
15703 if test "$supported" = "yes" ; then
15704 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15705 found="yes"
15706 fi
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723 xorg_testset_save_CFLAGS="$CFLAGS"
15724
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 int i;
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 xorg_cv_cc_flag_unknown_warning_option=yes
15738 else
15739 xorg_cv_cc_flag_unknown_warning_option=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15752 fi
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 xorg_cv_cc_flag_unused_command_line_argument=yes
15765 else
15766 xorg_cv_cc_flag_unused_command_line_argument=no
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15773 CFLAGS="$xorg_testset_save_CFLAGS"
15774 fi
15775
15776 found="no"
15777
15778 if test $found = "no" ; then
15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15781 fi
15782
15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 fi
15786
15787 CFLAGS="$CFLAGS -Werror=address"
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15790 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15791 cacheid=xorg_cv_cc_flag__Werror_address
15792 if eval \${$cacheid+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 int i;
15798 int
15799 main ()
15800 {
15801
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 eval $cacheid=yes
15808 else
15809 eval $cacheid=no
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 fi
15814
15815
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15817
15818 eval supported=\$$cacheid
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820 $as_echo "$supported" >&6; }
15821 if test "$supported" = "yes" ; then
15822 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15823 found="yes"
15824 fi
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841 xorg_testset_save_CFLAGS="$CFLAGS"
15842
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15856 else
15857 xorg_cv_cc_flag_unknown_warning_option=no
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864 CFLAGS="$xorg_testset_save_CFLAGS"
15865 fi
15866
15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870 fi
15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int i;
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 xorg_cv_cc_flag_unused_command_line_argument=yes
15883 else
15884 xorg_cv_cc_flag_unused_command_line_argument=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892 fi
15893
15894 found="no"
15895
15896 if test $found = "no" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 fi
15900
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903 fi
15904
15905 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15908 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15909 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15910 if eval \${$cacheid+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 int i;
15916 int
15917 main ()
15918 {
15919
15920 ;
15921 return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"; then :
15925 eval $cacheid=yes
15926 else
15927 eval $cacheid=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931 fi
15932
15933
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936 eval supported=\$$cacheid
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 $as_echo "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15941 found="yes"
15942 fi
15943 fi
15944
15945 if test $found = "no" ; then
15946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948 fi
15949
15950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952 fi
15953
15954 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15957 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15958 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15959 if eval \${$cacheid+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 int i;
15965 int
15966 main ()
15967 {
15968
15969 ;
15970 return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_link "$LINENO"; then :
15974 eval $cacheid=yes
15975 else
15976 eval $cacheid=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980 fi
15981
15982
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984
15985 eval supported=\$$cacheid
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15987 $as_echo "$supported" >&6; }
15988 if test "$supported" = "yes" ; then
15989 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15990 found="yes"
15991 fi
15992 fi
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008 xorg_testset_save_CFLAGS="$CFLAGS"
16009
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 int i;
16020 _ACEOF
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022 xorg_cv_cc_flag_unknown_warning_option=yes
16023 else
16024 xorg_cv_cc_flag_unknown_warning_option=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16031 CFLAGS="$xorg_testset_save_CFLAGS"
16032 fi
16033
16034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16037 fi
16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16042 $as_echo_n "(cached) " >&6
16043 else
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 int i;
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 xorg_cv_cc_flag_unused_command_line_argument=yes
16050 else
16051 xorg_cv_cc_flag_unused_command_line_argument=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16058 CFLAGS="$xorg_testset_save_CFLAGS"
16059 fi
16060
16061 found="no"
16062
16063 if test $found = "no" ; then
16064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066 fi
16067
16068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070 fi
16071
16072 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16075 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16076 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16077 if eval \${$cacheid+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 int i;
16083 int
16084 main ()
16085 {
16086
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_link "$LINENO"; then :
16092 eval $cacheid=yes
16093 else
16094 eval $cacheid=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098 fi
16099
16100
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102
16103 eval supported=\$$cacheid
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16105 $as_echo "$supported" >&6; }
16106 if test "$supported" = "yes" ; then
16107 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16108 found="yes"
16109 fi
16110 fi
16111
16112 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16113 else
16114 { $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
16115 $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;}
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 xorg_testset_save_CFLAGS="$CFLAGS"
16130
16131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16136 $as_echo_n "(cached) " >&6
16137 else
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16140 int i;
16141 _ACEOF
16142 if ac_fn_c_try_compile "$LINENO"; then :
16143 xorg_cv_cc_flag_unknown_warning_option=yes
16144 else
16145 xorg_cv_cc_flag_unknown_warning_option=no
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 fi
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16152 CFLAGS="$xorg_testset_save_CFLAGS"
16153 fi
16154
16155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16158 fi
16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 int i;
16168 _ACEOF
16169 if ac_fn_c_try_compile "$LINENO"; then :
16170 xorg_cv_cc_flag_unused_command_line_argument=yes
16171 else
16172 xorg_cv_cc_flag_unused_command_line_argument=no
16173 fi
16174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16179 CFLAGS="$xorg_testset_save_CFLAGS"
16180 fi
16181
16182 found="no"
16183
16184 if test $found = "no" ; then
16185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16187 fi
16188
16189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16191 fi
16192
16193 CFLAGS="$CFLAGS -Wimplicit"
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16196 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16197 cacheid=xorg_cv_cc_flag__Wimplicit
16198 if eval \${$cacheid+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 int i;
16204 int
16205 main ()
16206 {
16207
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 eval $cacheid=yes
16214 else
16215 eval $cacheid=no
16216 fi
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 fi
16220
16221
16222 CFLAGS="$xorg_testset_save_CFLAGS"
16223
16224 eval supported=\$$cacheid
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16226 $as_echo "$supported" >&6; }
16227 if test "$supported" = "yes" ; then
16228 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16229 found="yes"
16230 fi
16231 fi
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247 xorg_testset_save_CFLAGS="$CFLAGS"
16248
16249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255 else
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 int i;
16259 _ACEOF
16260 if ac_fn_c_try_compile "$LINENO"; then :
16261 xorg_cv_cc_flag_unknown_warning_option=yes
16262 else
16263 xorg_cv_cc_flag_unknown_warning_option=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16270 CFLAGS="$xorg_testset_save_CFLAGS"
16271 fi
16272
16273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276 fi
16277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int i;
16286 _ACEOF
16287 if ac_fn_c_try_compile "$LINENO"; then :
16288 xorg_cv_cc_flag_unused_command_line_argument=yes
16289 else
16290 xorg_cv_cc_flag_unused_command_line_argument=no
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16297 CFLAGS="$xorg_testset_save_CFLAGS"
16298 fi
16299
16300 found="no"
16301
16302 if test $found = "no" ; then
16303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305 fi
16306
16307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16309 fi
16310
16311 CFLAGS="$CFLAGS -Wnonnull"
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16314 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16315 cacheid=xorg_cv_cc_flag__Wnonnull
16316 if eval \${$cacheid+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 int i;
16322 int
16323 main ()
16324 {
16325
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 eval $cacheid=yes
16332 else
16333 eval $cacheid=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 fi
16338
16339
16340 CFLAGS="$xorg_testset_save_CFLAGS"
16341
16342 eval supported=\$$cacheid
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16344 $as_echo "$supported" >&6; }
16345 if test "$supported" = "yes" ; then
16346 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16347 found="yes"
16348 fi
16349 fi
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365 xorg_testset_save_CFLAGS="$CFLAGS"
16366
16367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 int i;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 xorg_cv_cc_flag_unknown_warning_option=yes
16380 else
16381 xorg_cv_cc_flag_unknown_warning_option=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16388 CFLAGS="$xorg_testset_save_CFLAGS"
16389 fi
16390
16391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394 fi
16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 int i;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 xorg_cv_cc_flag_unused_command_line_argument=yes
16407 else
16408 xorg_cv_cc_flag_unused_command_line_argument=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16415 CFLAGS="$xorg_testset_save_CFLAGS"
16416 fi
16417
16418 found="no"
16419
16420 if test $found = "no" ; then
16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423 fi
16424
16425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16427 fi
16428
16429 CFLAGS="$CFLAGS -Winit-self"
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16432 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16433 cacheid=xorg_cv_cc_flag__Winit_self
16434 if eval \${$cacheid+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 int i;
16440 int
16441 main ()
16442 {
16443
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_link "$LINENO"; then :
16449 eval $cacheid=yes
16450 else
16451 eval $cacheid=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456
16457
16458 CFLAGS="$xorg_testset_save_CFLAGS"
16459
16460 eval supported=\$$cacheid
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16462 $as_echo "$supported" >&6; }
16463 if test "$supported" = "yes" ; then
16464 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16465 found="yes"
16466 fi
16467 fi
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483 xorg_testset_save_CFLAGS="$CFLAGS"
16484
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 xorg_cv_cc_flag_unknown_warning_option=yes
16498 else
16499 xorg_cv_cc_flag_unknown_warning_option=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16506 CFLAGS="$xorg_testset_save_CFLAGS"
16507 fi
16508
16509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16512 fi
16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 int i;
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"; then :
16524 xorg_cv_cc_flag_unused_command_line_argument=yes
16525 else
16526 xorg_cv_cc_flag_unused_command_line_argument=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16533 CFLAGS="$xorg_testset_save_CFLAGS"
16534 fi
16535
16536 found="no"
16537
16538 if test $found = "no" ; then
16539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541 fi
16542
16543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16545 fi
16546
16547 CFLAGS="$CFLAGS -Wmain"
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16550 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16551 cacheid=xorg_cv_cc_flag__Wmain
16552 if eval \${$cacheid+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 int i;
16558 int
16559 main ()
16560 {
16561
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 eval $cacheid=yes
16568 else
16569 eval $cacheid=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16573 fi
16574
16575
16576 CFLAGS="$xorg_testset_save_CFLAGS"
16577
16578 eval supported=\$$cacheid
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16580 $as_echo "$supported" >&6; }
16581 if test "$supported" = "yes" ; then
16582 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16583 found="yes"
16584 fi
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 xorg_testset_save_CFLAGS="$CFLAGS"
16602
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 xorg_cv_cc_flag_unknown_warning_option=yes
16616 else
16617 xorg_cv_cc_flag_unknown_warning_option=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 int i;
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 xorg_cv_cc_flag_unused_command_line_argument=yes
16643 else
16644 xorg_cv_cc_flag_unused_command_line_argument=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652 fi
16653
16654 found="no"
16655
16656 if test $found = "no" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660
16661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 fi
16664
16665 CFLAGS="$CFLAGS -Wmissing-braces"
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16668 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16669 cacheid=xorg_cv_cc_flag__Wmissing_braces
16670 if eval \${$cacheid+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 int
16677 main ()
16678 {
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16685 eval $cacheid=yes
16686 else
16687 eval $cacheid=no
16688 fi
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 fi
16692
16693
16694 CFLAGS="$xorg_testset_save_CFLAGS"
16695
16696 eval supported=\$$cacheid
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16698 $as_echo "$supported" >&6; }
16699 if test "$supported" = "yes" ; then
16700 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16701 found="yes"
16702 fi
16703 fi
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719 xorg_testset_save_CFLAGS="$CFLAGS"
16720
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 int i;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 xorg_cv_cc_flag_unknown_warning_option=yes
16734 else
16735 xorg_cv_cc_flag_unknown_warning_option=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16748 fi
16749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 int i;
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 xorg_cv_cc_flag_unused_command_line_argument=yes
16761 else
16762 xorg_cv_cc_flag_unused_command_line_argument=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770 fi
16771
16772 found="no"
16773
16774 if test $found = "no" ; then
16775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777 fi
16778
16779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16781 fi
16782
16783 CFLAGS="$CFLAGS -Wsequence-point"
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16786 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16787 cacheid=xorg_cv_cc_flag__Wsequence_point
16788 if eval \${$cacheid+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 int i;
16794 int
16795 main ()
16796 {
16797
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 eval $cacheid=yes
16804 else
16805 eval $cacheid=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 fi
16810
16811
16812 CFLAGS="$xorg_testset_save_CFLAGS"
16813
16814 eval supported=\$$cacheid
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16816 $as_echo "$supported" >&6; }
16817 if test "$supported" = "yes" ; then
16818 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16819 found="yes"
16820 fi
16821 fi
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837 xorg_testset_save_CFLAGS="$CFLAGS"
16838
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 xorg_cv_cc_flag_unknown_warning_option=yes
16852 else
16853 xorg_cv_cc_flag_unknown_warning_option=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16866 fi
16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 int i;
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878 xorg_cv_cc_flag_unused_command_line_argument=yes
16879 else
16880 xorg_cv_cc_flag_unused_command_line_argument=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888 fi
16889
16890 found="no"
16891
16892 if test $found = "no" ; then
16893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895 fi
16896
16897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 fi
16900
16901 CFLAGS="$CFLAGS -Wreturn-type"
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16904 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16905 cacheid=xorg_cv_cc_flag__Wreturn_type
16906 if eval \${$cacheid+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 int
16913 main ()
16914 {
16915
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 eval $cacheid=yes
16922 else
16923 eval $cacheid=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 fi
16928
16929
16930 CFLAGS="$xorg_testset_save_CFLAGS"
16931
16932 eval supported=\$$cacheid
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16934 $as_echo "$supported" >&6; }
16935 if test "$supported" = "yes" ; then
16936 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16937 found="yes"
16938 fi
16939 fi
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 xorg_testset_save_CFLAGS="$CFLAGS"
16956
16957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 xorg_cv_cc_flag_unknown_warning_option=yes
16970 else
16971 xorg_cv_cc_flag_unknown_warning_option=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16978 CFLAGS="$xorg_testset_save_CFLAGS"
16979 fi
16980
16981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16984 fi
16985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 int i;
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996 xorg_cv_cc_flag_unused_command_line_argument=yes
16997 else
16998 xorg_cv_cc_flag_unused_command_line_argument=no
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17005 CFLAGS="$xorg_testset_save_CFLAGS"
17006 fi
17007
17008 found="no"
17009
17010 if test $found = "no" ; then
17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17013 fi
17014
17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017 fi
17018
17019 CFLAGS="$CFLAGS -Wtrigraphs"
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17022 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17023 cacheid=xorg_cv_cc_flag__Wtrigraphs
17024 if eval \${$cacheid+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 int i;
17030 int
17031 main ()
17032 {
17033
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_link "$LINENO"; then :
17039 eval $cacheid=yes
17040 else
17041 eval $cacheid=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 fi
17046
17047
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049
17050 eval supported=\$$cacheid
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17052 $as_echo "$supported" >&6; }
17053 if test "$supported" = "yes" ; then
17054 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17055 found="yes"
17056 fi
17057 fi
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073 xorg_testset_save_CFLAGS="$CFLAGS"
17074
17075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 int i;
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087 xorg_cv_cc_flag_unknown_warning_option=yes
17088 else
17089 xorg_cv_cc_flag_unknown_warning_option=no
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17096 CFLAGS="$xorg_testset_save_CFLAGS"
17097 fi
17098
17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 fi
17103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 int i;
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 xorg_cv_cc_flag_unused_command_line_argument=yes
17115 else
17116 xorg_cv_cc_flag_unused_command_line_argument=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124 fi
17125
17126 found="no"
17127
17128 if test $found = "no" ; then
17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131 fi
17132
17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135 fi
17136
17137 CFLAGS="$CFLAGS -Warray-bounds"
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17140 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17141 cacheid=xorg_cv_cc_flag__Warray_bounds
17142 if eval \${$cacheid+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147 int i;
17148 int
17149 main ()
17150 {
17151
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_c_try_link "$LINENO"; then :
17157 eval $cacheid=yes
17158 else
17159 eval $cacheid=no
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 fi
17164
17165
17166 CFLAGS="$xorg_testset_save_CFLAGS"
17167
17168 eval supported=\$$cacheid
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17170 $as_echo "$supported" >&6; }
17171 if test "$supported" = "yes" ; then
17172 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17173 found="yes"
17174 fi
17175 fi
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191 xorg_testset_save_CFLAGS="$CFLAGS"
17192
17193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202 int i;
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205 xorg_cv_cc_flag_unknown_warning_option=yes
17206 else
17207 xorg_cv_cc_flag_unknown_warning_option=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17214 CFLAGS="$xorg_testset_save_CFLAGS"
17215 fi
17216
17217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220 fi
17221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229 int i;
17230 _ACEOF
17231 if ac_fn_c_try_compile "$LINENO"; then :
17232 xorg_cv_cc_flag_unused_command_line_argument=yes
17233 else
17234 xorg_cv_cc_flag_unused_command_line_argument=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241 CFLAGS="$xorg_testset_save_CFLAGS"
17242 fi
17243
17244 found="no"
17245
17246 if test $found = "no" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250
17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 fi
17254
17255 CFLAGS="$CFLAGS -Wwrite-strings"
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17258 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17259 cacheid=xorg_cv_cc_flag__Wwrite_strings
17260 if eval \${$cacheid+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17265 int i;
17266 int
17267 main ()
17268 {
17269
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 eval $cacheid=yes
17276 else
17277 eval $cacheid=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282
17283
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285
17286 eval supported=\$$cacheid
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17288 $as_echo "$supported" >&6; }
17289 if test "$supported" = "yes" ; then
17290 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17291 found="yes"
17292 fi
17293 fi
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309 xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 int i;
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else
17325 xorg_cv_cc_flag_unknown_warning_option=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338 fi
17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 int i;
17348 _ACEOF
17349 if ac_fn_c_try_compile "$LINENO"; then :
17350 xorg_cv_cc_flag_unused_command_line_argument=yes
17351 else
17352 xorg_cv_cc_flag_unused_command_line_argument=no
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359 CFLAGS="$xorg_testset_save_CFLAGS"
17360 fi
17361
17362 found="no"
17363
17364 if test $found = "no" ; then
17365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367 fi
17368
17369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371 fi
17372
17373 CFLAGS="$CFLAGS -Waddress"
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17376 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17377 cacheid=xorg_cv_cc_flag__Waddress
17378 if eval \${$cacheid+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 int i;
17384 int
17385 main ()
17386 {
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"; then :
17393 eval $cacheid=yes
17394 else
17395 eval $cacheid=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17399 fi
17400
17401
17402 CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404 eval supported=\$$cacheid
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406 $as_echo "$supported" >&6; }
17407 if test "$supported" = "yes" ; then
17408 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17409 found="yes"
17410 fi
17411 fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 xorg_cv_cc_flag_unknown_warning_option=yes
17442 else
17443 xorg_cv_cc_flag_unknown_warning_option=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450 CFLAGS="$xorg_testset_save_CFLAGS"
17451 fi
17452
17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 fi
17457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 _ACEOF
17467 if ac_fn_c_try_compile "$LINENO"; then :
17468 xorg_cv_cc_flag_unused_command_line_argument=yes
17469 else
17470 xorg_cv_cc_flag_unused_command_line_argument=no
17471 fi
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477 CFLAGS="$xorg_testset_save_CFLAGS"
17478 fi
17479
17480 found="no"
17481
17482 if test $found = "no" ; then
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489 fi
17490
17491 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17494 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17495 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17496 if eval \${$cacheid+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 int
17503 main ()
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 eval $cacheid=yes
17512 else
17513 eval $cacheid=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 fi
17518
17519
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522 eval supported=\$$cacheid
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524 $as_echo "$supported" >&6; }
17525 if test "$supported" = "yes" ; then
17526 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17527 found="yes"
17528 fi
17529 fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 int i;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 xorg_cv_cc_flag_unknown_warning_option=yes
17560 else
17561 xorg_cv_cc_flag_unknown_warning_option=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 fi
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17568 CFLAGS="$xorg_testset_save_CFLAGS"
17569 fi
17570
17571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 fi
17575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 int i;
17584 _ACEOF
17585 if ac_fn_c_try_compile "$LINENO"; then :
17586 xorg_cv_cc_flag_unused_command_line_argument=yes
17587 else
17588 xorg_cv_cc_flag_unused_command_line_argument=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 fi
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596 fi
17597
17598 found="no"
17599
17600 if test $found = "no" ; then
17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603 fi
17604
17605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17607 fi
17608
17609 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17612 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17613 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17614 if eval \${$cacheid+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 int
17621 main ()
17622 {
17623
17624 ;
17625 return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_link "$LINENO"; then :
17629 eval $cacheid=yes
17630 else
17631 eval $cacheid=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 fi
17636
17637
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640 eval supported=\$$cacheid
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642 $as_echo "$supported" >&6; }
17643 if test "$supported" = "yes" ; then
17644 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17645 found="yes"
17646 fi
17647 fi
17648
17649
17650 fi
17651
17652
17653
17654
17655
17656
17657
17658 CWARNFLAGS="$BASE_CFLAGS"
17659 if test "x$GCC" = xyes ; then
17660 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17661 fi
17662
17663
17664
17665
17666
17667
17668
17669
17670 # Check whether --enable-strict-compilation was given.
17671 if test "${enable_strict_compilation+set}" = set; then :
17672 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17673 else
17674 STRICT_COMPILE=no
17675 fi
17676
17677
17678
17679
17680
17681
17682 STRICT_CFLAGS=""
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696 xorg_testset_save_CFLAGS="$CFLAGS"
17697
17698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17701 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17702 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707 int i;
17708 _ACEOF
17709 if ac_fn_c_try_compile "$LINENO"; then :
17710 xorg_cv_cc_flag_unknown_warning_option=yes
17711 else
17712 xorg_cv_cc_flag_unknown_warning_option=no
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 fi
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17717 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17719 CFLAGS="$xorg_testset_save_CFLAGS"
17720 fi
17721
17722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17725 fi
17726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17728 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17729 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17730 $as_echo_n "(cached) " >&6
17731 else
17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734 int i;
17735 _ACEOF
17736 if ac_fn_c_try_compile "$LINENO"; then :
17737 xorg_cv_cc_flag_unused_command_line_argument=yes
17738 else
17739 xorg_cv_cc_flag_unused_command_line_argument=no
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17744 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17746 CFLAGS="$xorg_testset_save_CFLAGS"
17747 fi
17748
17749 found="no"
17750
17751 if test $found = "no" ; then
17752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754 fi
17755
17756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17758 fi
17759
17760 CFLAGS="$CFLAGS -pedantic"
17761
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17763 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17764 cacheid=xorg_cv_cc_flag__pedantic
17765 if eval \${$cacheid+:} false; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 int i;
17771 int
17772 main ()
17773 {
17774
17775 ;
17776 return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 eval $cacheid=yes
17781 else
17782 eval $cacheid=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 fi
17787
17788
17789 CFLAGS="$xorg_testset_save_CFLAGS"
17790
17791 eval supported=\$$cacheid
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17793 $as_echo "$supported" >&6; }
17794 if test "$supported" = "yes" ; then
17795 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17796 found="yes"
17797 fi
17798 fi
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 xorg_testset_save_CFLAGS="$CFLAGS"
17815
17816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17819 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17820 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17821 $as_echo_n "(cached) " >&6
17822 else
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825 int i;
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 xorg_cv_cc_flag_unknown_warning_option=yes
17829 else
17830 xorg_cv_cc_flag_unknown_warning_option=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17835 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838 fi
17839
17840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17843 fi
17844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17847 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 int i;
17853 _ACEOF
17854 if ac_fn_c_try_compile "$LINENO"; then :
17855 xorg_cv_cc_flag_unused_command_line_argument=yes
17856 else
17857 xorg_cv_cc_flag_unused_command_line_argument=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17862 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17864 CFLAGS="$xorg_testset_save_CFLAGS"
17865 fi
17866
17867 found="no"
17868
17869 if test $found = "no" ; then
17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17872 fi
17873
17874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17876 fi
17877
17878 CFLAGS="$CFLAGS -Werror"
17879
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17881 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17882 cacheid=xorg_cv_cc_flag__Werror
17883 if eval \${$cacheid+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 int i;
17889 int
17890 main ()
17891 {
17892
17893 ;
17894 return 0;
17895 }
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 eval $cacheid=yes
17899 else
17900 eval $cacheid=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 fi
17905
17906
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908
17909 eval supported=\$$cacheid
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17911 $as_echo "$supported" >&6; }
17912 if test "$supported" = "yes" ; then
17913 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17914 found="yes"
17915 fi
17916 fi
17917
17918 if test $found = "no" ; then
17919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921 fi
17922
17923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17925 fi
17926
17927 CFLAGS="$CFLAGS -errwarn"
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17930 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17931 cacheid=xorg_cv_cc_flag__errwarn
17932 if eval \${$cacheid+:} false; then :
17933 $as_echo_n "(cached) " >&6
17934 else
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17937 int i;
17938 int
17939 main ()
17940 {
17941
17942 ;
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 eval $cacheid=yes
17948 else
17949 eval $cacheid=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 fi
17954
17955
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957
17958 eval supported=\$$cacheid
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17960 $as_echo "$supported" >&6; }
17961 if test "$supported" = "yes" ; then
17962 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17963 found="yes"
17964 fi
17965 fi
17966
17967
17968
17969 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17970 # activate it with -Werror, so we add it here explicitly.
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 xorg_testset_save_CFLAGS="$CFLAGS"
17985
17986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17989 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17990 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17991 $as_echo_n "(cached) " >&6
17992 else
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 int i;
17996 _ACEOF
17997 if ac_fn_c_try_compile "$LINENO"; then :
17998 xorg_cv_cc_flag_unknown_warning_option=yes
17999 else
18000 xorg_cv_cc_flag_unknown_warning_option=no
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003 fi
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18005 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18007 CFLAGS="$xorg_testset_save_CFLAGS"
18008 fi
18009
18010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013 fi
18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18016 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18017 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 int i;
18023 _ACEOF
18024 if ac_fn_c_try_compile "$LINENO"; then :
18025 xorg_cv_cc_flag_unused_command_line_argument=yes
18026 else
18027 xorg_cv_cc_flag_unused_command_line_argument=no
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 fi
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18032 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18034 CFLAGS="$xorg_testset_save_CFLAGS"
18035 fi
18036
18037 found="no"
18038
18039 if test $found = "no" ; then
18040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18042 fi
18043
18044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18046 fi
18047
18048 CFLAGS="$CFLAGS -Werror=attributes"
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18051 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18052 cacheid=xorg_cv_cc_flag__Werror_attributes
18053 if eval \${$cacheid+:} false; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 int i;
18059 int
18060 main ()
18061 {
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 eval $cacheid=yes
18069 else
18070 eval $cacheid=no
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 fi
18075
18076
18077 CFLAGS="$xorg_testset_save_CFLAGS"
18078
18079 eval supported=\$$cacheid
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18081 $as_echo "$supported" >&6; }
18082 if test "$supported" = "yes" ; then
18083 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18084 found="yes"
18085 fi
18086 fi
18087
18088
18089
18090 if test "x$STRICT_COMPILE" = "xyes"; then
18091 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18092 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18093 fi
18094
18095
18096
18097
18098
18099
18100 cat >>confdefs.h <<_ACEOF
18101 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18102 _ACEOF
18103
18104 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18105 if test "x$PVM" = "x"; then
18106 PVM="0"
18107 fi
18108
18109 cat >>confdefs.h <<_ACEOF
18110 #define PACKAGE_VERSION_MINOR $PVM
18111 _ACEOF
18112
18113 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18114 if test "x$PVP" = "x"; then
18115 PVP="0"
18116 fi
18117
18118 cat >>confdefs.h <<_ACEOF
18119 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18120 _ACEOF
18121
18122
18123
18124 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18125 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18126 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18127 touch \$(top_srcdir)/ChangeLog; \
18128 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18129
18130
18131
18132
18133 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18134 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18135 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18136 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18137 touch \$(top_srcdir)/INSTALL; \
18138 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18139
18140
18141
18142
18143
18144
18145 case $host_os in
18146 solaris*)
18147 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18148 # check for a man page file found in later versions that use
18149 # traditional section numbers instead
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18151 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18152 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18153 $as_echo_n "(cached) " >&6
18154 else
18155 test "$cross_compiling" = yes &&
18156 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18157 if test -r "/usr/share/man/man7/attributes.7"; then
18158 ac_cv_file__usr_share_man_man7_attributes_7=yes
18159 else
18160 ac_cv_file__usr_share_man_man7_attributes_7=no
18161 fi
18162 fi
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18164 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18165 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18166 SYSV_MAN_SECTIONS=false
18167 else
18168 SYSV_MAN_SECTIONS=true
18169 fi
18170
18171 ;;
18172 *) SYSV_MAN_SECTIONS=false ;;
18173 esac
18174
18175 if test x$APP_MAN_SUFFIX = x ; then
18176 APP_MAN_SUFFIX=1
18177 fi
18178 if test x$APP_MAN_DIR = x ; then
18179 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18180 fi
18181
18182 if test x$LIB_MAN_SUFFIX = x ; then
18183 LIB_MAN_SUFFIX=3
18184 fi
18185 if test x$LIB_MAN_DIR = x ; then
18186 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18187 fi
18188
18189 if test x$FILE_MAN_SUFFIX = x ; then
18190 case $SYSV_MAN_SECTIONS in
18191 true) FILE_MAN_SUFFIX=4 ;;
18192 *) FILE_MAN_SUFFIX=5 ;;
18193 esac
18194 fi
18195 if test x$FILE_MAN_DIR = x ; then
18196 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18197 fi
18198
18199 if test x$MISC_MAN_SUFFIX = x ; then
18200 case $SYSV_MAN_SECTIONS in
18201 true) MISC_MAN_SUFFIX=5 ;;
18202 *) MISC_MAN_SUFFIX=7 ;;
18203 esac
18204 fi
18205 if test x$MISC_MAN_DIR = x ; then
18206 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18207 fi
18208
18209 if test x$DRIVER_MAN_SUFFIX = x ; then
18210 case $SYSV_MAN_SECTIONS in
18211 true) DRIVER_MAN_SUFFIX=7 ;;
18212 *) DRIVER_MAN_SUFFIX=4 ;;
18213 esac
18214 fi
18215 if test x$DRIVER_MAN_DIR = x ; then
18216 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18217 fi
18218
18219 if test x$ADMIN_MAN_SUFFIX = x ; then
18220 case $SYSV_MAN_SECTIONS in
18221 true) ADMIN_MAN_SUFFIX=1m ;;
18222 *) ADMIN_MAN_SUFFIX=8 ;;
18223 esac
18224 fi
18225 if test x$ADMIN_MAN_DIR = x ; then
18226 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18227 fi
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243 XORG_MAN_PAGE="X Version 11"
18244
18245 MAN_SUBSTS="\
18246 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18247 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18248 -e 's|__xservername__|Xorg|g' \
18249 -e 's|__xconfigfile__|xorg.conf|g' \
18250 -e 's|__projectroot__|\$(prefix)|g' \
18251 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18252 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18253 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18254 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18255 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18256 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18257 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18258
18259
18260
18261 # Check whether --enable-silent-rules was given.
18262 if test "${enable_silent_rules+set}" = set; then :
18263 enableval=$enable_silent_rules;
18264 fi
18265
18266 case $enable_silent_rules in # (((
18267 yes) AM_DEFAULT_VERBOSITY=0;;
18268 no) AM_DEFAULT_VERBOSITY=1;;
18269 *) AM_DEFAULT_VERBOSITY=0;;
18270 esac
18271 am_make=${MAKE-make}
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18273 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18274 if ${am_cv_make_support_nested_variables+:} false; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 if $as_echo 'TRUE=$(BAR$(V))
18278 BAR0=false
18279 BAR1=true
18280 V=1
18281 am__doit:
18282 @$(TRUE)
18283 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18284 am_cv_make_support_nested_variables=yes
18285 else
18286 am_cv_make_support_nested_variables=no
18287 fi
18288 fi
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18290 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18291 if test $am_cv_make_support_nested_variables = yes; then
18292 AM_V='$(V)'
18293 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18294 else
18295 AM_V=$AM_DEFAULT_VERBOSITY
18296 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18297 fi
18298 AM_BACKSLASH='\'
18299
18300
18301
18302 # Check fixesext configuration, strip extra digits from package version to
18303 # find the required protocol version
18304 FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
18305
18306
18307 # Obtain compiler/linker options for depedencies
18308
18309 pkg_failed=no
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5
18311 $as_echo_n "checking for FIXESEXT... " >&6; }
18312
18313 if test -n "$FIXESEXT_CFLAGS"; then
18314 pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
18315 elif test -n "$PKG_CONFIG"; then
18316 if test -n "$PKG_CONFIG" && \
18317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
18318 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
18319 ac_status=$?
18320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18321 test $ac_status = 0; }; then
18322 pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
18323 test "x$?" != "x0" && pkg_failed=yes
18324 else
18325 pkg_failed=yes
18326 fi
18327 else
18328 pkg_failed=untried
18329 fi
18330 if test -n "$FIXESEXT_LIBS"; then
18331 pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
18332 elif test -n "$PKG_CONFIG"; then
18333 if test -n "$PKG_CONFIG" && \
18334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
18335 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
18336 ac_status=$?
18337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18338 test $ac_status = 0; }; then
18339 pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
18340 test "x$?" != "x0" && pkg_failed=yes
18341 else
18342 pkg_failed=yes
18343 fi
18344 else
18345 pkg_failed=untried
18346 fi
18347
18348
18349
18350 if test $pkg_failed = yes; then
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352 $as_echo "no" >&6; }
18353
18354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18355 _pkg_short_errors_supported=yes
18356 else
18357 _pkg_short_errors_supported=no
18358 fi
18359 if test $_pkg_short_errors_supported = yes; then
18360 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
18361 else
18362 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
18363 fi
18364 # Put the nasty error message in config.log where it belongs
18365 echo "$FIXESEXT_PKG_ERRORS" >&5
18366
18367 as_fn_error $? "Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6) were not met:
18368
18369 $FIXESEXT_PKG_ERRORS
18370
18371 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18372 installed software in a non-standard prefix.
18373
18374 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
18375 and FIXESEXT_LIBS to avoid the need to call pkg-config.
18376 See the pkg-config man page for more details." "$LINENO" 5
18377 elif test $pkg_failed = untried; then
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379 $as_echo "no" >&6; }
18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18382 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18383 is in your PATH or set the PKG_CONFIG environment variable to the full
18384 path to pkg-config.
18385
18386 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
18387 and FIXESEXT_LIBS to avoid the need to call pkg-config.
18388 See the pkg-config man page for more details.
18389
18390 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18391 See \`config.log' for more details" "$LINENO" 5; }
18392 else
18393 FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
18394 FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 $as_echo "yes" >&6; }
18397
18398 fi
18399
18400
18401 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
18402
18403 cat >confcache <<\_ACEOF
18404 # This file is a shell script that caches the results of configure
18405 # tests run on this system so they can be shared between configure
18406 # scripts and configure runs, see configure's option --config-cache.
18407 # It is not useful on other systems. If it contains results you don't
18408 # want to keep, you may remove or edit it.
18409 #
18410 # config.status only pays attention to the cache file if you give it
18411 # the --recheck option to rerun configure.
18412 #
18413 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18414 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18415 # following values.
18416
18417 _ACEOF
18418
18419 # The following way of writing the cache mishandles newlines in values,
18420 # but we know of no workaround that is simple, portable, and efficient.
18421 # So, we kill variables containing newlines.
18422 # Ultrix sh set writes to stderr and can't be redirected directly,
18423 # and sets the high bit in the cache file unless we assign to the vars.
18424 (
18425 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18426 eval ac_val=\$$ac_var
18427 case $ac_val in #(
18428 *${as_nl}*)
18429 case $ac_var in #(
18430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18432 esac
18433 case $ac_var in #(
18434 _ | IFS | as_nl) ;; #(
18435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18436 *) { eval $ac_var=; unset $ac_var;} ;;
18437 esac ;;
18438 esac
18439 done
18440
18441 (set) 2>&1 |
18442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18443 *${as_nl}ac_space=\ *)
18444 # `set' does not quote correctly, so add quotes: double-quote
18445 # substitution turns \\\\ into \\, and sed turns \\ into \.
18446 sed -n \
18447 "s/'/'\\\\''/g;
18448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18449 ;; #(
18450 *)
18451 # `set' quotes correctly as required by POSIX, so do not add quotes.
18452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18453 ;;
18454 esac |
18455 sort
18456 ) |
18457 sed '
18458 /^ac_cv_env_/b end
18459 t clear
18460 :clear
18461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18462 t end
18463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18464 :end' >>confcache
18465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18466 if test -w "$cache_file"; then
18467 if test "x$cache_file" != "x/dev/null"; then
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18469 $as_echo "$as_me: updating cache $cache_file" >&6;}
18470 if test ! -f "$cache_file" || test -h "$cache_file"; then
18471 cat confcache >"$cache_file"
18472 else
18473 case $cache_file in #(
18474 */* | ?:*)
18475 mv -f confcache "$cache_file"$$ &&
18476 mv -f "$cache_file"$$ "$cache_file" ;; #(
18477 *)
18478 mv -f confcache "$cache_file" ;;
18479 esac
18480 fi
18481 fi
18482 else
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18485 fi
18486 fi
18487 rm -f confcache
18488
18489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18490 # Let make expand exec_prefix.
18491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18492
18493 DEFS=-DHAVE_CONFIG_H
18494
18495 ac_libobjs=
18496 ac_ltlibobjs=
18497 U=
18498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18499 # 1. Remove the extension, and $U if already installed.
18500 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18501 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18503 # will be set to the directory where LIBOBJS objects are built.
18504 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18505 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18506 done
18507 LIBOBJS=$ac_libobjs
18508
18509 LTLIBOBJS=$ac_ltlibobjs
18510
18511
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18513 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18514 if test -n "$am_sleep_pid"; then
18515 # Hide warnings about reused PIDs.
18516 wait $am_sleep_pid 2>/dev/null
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18519 $as_echo "done" >&6; }
18520 if test -n "$EXEEXT"; then
18521 am__EXEEXT_TRUE=
18522 am__EXEEXT_FALSE='#'
18523 else
18524 am__EXEEXT_TRUE='#'
18525 am__EXEEXT_FALSE=
18526 fi
18527
18528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18529 as_fn_error $? "conditional \"AMDEP\" was never defined.
18530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18531 fi
18532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18533 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18535 fi
18536
18537 : "${CONFIG_STATUS=./config.status}"
18538 ac_write_fail=0
18539 ac_clean_files_save=$ac_clean_files
18540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18542 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18543 as_write_fail=0
18544 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18545 #! $SHELL
18546 # Generated by $as_me.
18547 # Run this file to recreate the current configuration.
18548 # Compiler output produced by configure, useful for debugging
18549 # configure, is in config.log if it exists.
18550
18551 debug=false
18552 ac_cs_recheck=false
18553 ac_cs_silent=false
18554
18555 SHELL=\${CONFIG_SHELL-$SHELL}
18556 export SHELL
18557 _ASEOF
18558 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18559 ## -------------------- ##
18560 ## M4sh Initialization. ##
18561 ## -------------------- ##
18562
18563 # Be more Bourne compatible
18564 DUALCASE=1; export DUALCASE # for MKS sh
18565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18566 emulate sh
18567 NULLCMD=:
18568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18569 # is contrary to our usage. Disable this feature.
18570 alias -g '${1+"$@"}'='"$@"'
18571 setopt NO_GLOB_SUBST
18572 else
18573 case `(set -o) 2>/dev/null` in #(
18574 *posix*) :
18575 set -o posix ;; #(
18576 *) :
18577 ;;
18578 esac
18579 fi
18580
18581
18582 as_nl='
18583 '
18584 export as_nl
18585 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18586 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18589 # Prefer a ksh shell builtin over an external printf program on Solaris,
18590 # but without wasting forks for bash or zsh.
18591 if test -z "$BASH_VERSION$ZSH_VERSION" \
18592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18593 as_echo='print -r --'
18594 as_echo_n='print -rn --'
18595 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18596 as_echo='printf %s\n'
18597 as_echo_n='printf %s'
18598 else
18599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18601 as_echo_n='/usr/ucb/echo -n'
18602 else
18603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18604 as_echo_n_body='eval
18605 arg=$1;
18606 case $arg in #(
18607 *"$as_nl"*)
18608 expr "X$arg" : "X\\(.*\\)$as_nl";
18609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18610 esac;
18611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18612 '
18613 export as_echo_n_body
18614 as_echo_n='sh -c $as_echo_n_body as_echo'
18615 fi
18616 export as_echo_body
18617 as_echo='sh -c $as_echo_body as_echo'
18618 fi
18619
18620 # The user is always right.
18621 if test "${PATH_SEPARATOR+set}" != set; then
18622 PATH_SEPARATOR=:
18623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18625 PATH_SEPARATOR=';'
18626 }
18627 fi
18628
18629
18630 # IFS
18631 # We need space, tab and new line, in precisely that order. Quoting is
18632 # there to prevent editors from complaining about space-tab.
18633 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18634 # splitting by setting IFS to empty value.)
18635 IFS=" "" $as_nl"
18636
18637 # Find who we are. Look in the path if we contain no directory separator.
18638 as_myself=
18639 case $0 in #((
18640 *[\\/]* ) as_myself=$0 ;;
18641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642 for as_dir in $PATH
18643 do
18644 IFS=$as_save_IFS
18645 test -z "$as_dir" && as_dir=.
18646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18647 done
18648 IFS=$as_save_IFS
18649
18650 ;;
18651 esac
18652 # We did not find ourselves, most probably we were run as `sh COMMAND'
18653 # in which case we are not to be found in the path.
18654 if test "x$as_myself" = x; then
18655 as_myself=$0
18656 fi
18657 if test ! -f "$as_myself"; then
18658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18659 exit 1
18660 fi
18661
18662 # Unset variables that we do not need and which cause bugs (e.g. in
18663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18664 # suppresses any "Segmentation fault" message there. '((' could
18665 # trigger a bug in pdksh 5.2.14.
18666 for as_var in BASH_ENV ENV MAIL MAILPATH
18667 do eval test x\${$as_var+set} = xset \
18668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18669 done
18670 PS1='$ '
18671 PS2='> '
18672 PS4='+ '
18673
18674 # NLS nuisances.
18675 LC_ALL=C
18676 export LC_ALL
18677 LANGUAGE=C
18678 export LANGUAGE
18679
18680 # CDPATH.
18681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18682
18683
18684 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18685 # ----------------------------------------
18686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18688 # script with STATUS, using 1 if that was 0.
18689 as_fn_error ()
18690 {
18691 as_status=$1; test $as_status -eq 0 && as_status=1
18692 if test "$4"; then
18693 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18695 fi
18696 $as_echo "$as_me: error: $2" >&2
18697 as_fn_exit $as_status
18698 } # as_fn_error
18699
18700
18701 # as_fn_set_status STATUS
18702 # -----------------------
18703 # Set $? to STATUS, without forking.
18704 as_fn_set_status ()
18705 {
18706 return $1
18707 } # as_fn_set_status
18708
18709 # as_fn_exit STATUS
18710 # -----------------
18711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18712 as_fn_exit ()
18713 {
18714 set +e
18715 as_fn_set_status $1
18716 exit $1
18717 } # as_fn_exit
18718
18719 # as_fn_unset VAR
18720 # ---------------
18721 # Portably unset VAR.
18722 as_fn_unset ()
18723 {
18724 { eval $1=; unset $1;}
18725 }
18726 as_unset=as_fn_unset
18727 # as_fn_append VAR VALUE
18728 # ----------------------
18729 # Append the text in VALUE to the end of the definition contained in VAR. Take
18730 # advantage of any shell optimizations that allow amortized linear growth over
18731 # repeated appends, instead of the typical quadratic growth present in naive
18732 # implementations.
18733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18734 eval 'as_fn_append ()
18735 {
18736 eval $1+=\$2
18737 }'
18738 else
18739 as_fn_append ()
18740 {
18741 eval $1=\$$1\$2
18742 }
18743 fi # as_fn_append
18744
18745 # as_fn_arith ARG...
18746 # ------------------
18747 # Perform arithmetic evaluation on the ARGs, and store the result in the
18748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18749 # must be portable across $(()) and expr.
18750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18751 eval 'as_fn_arith ()
18752 {
18753 as_val=$(( $* ))
18754 }'
18755 else
18756 as_fn_arith ()
18757 {
18758 as_val=`expr "$@" || test $? -eq 1`
18759 }
18760 fi # as_fn_arith
18761
18762
18763 if expr a : '\(a\)' >/dev/null 2>&1 &&
18764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18765 as_expr=expr
18766 else
18767 as_expr=false
18768 fi
18769
18770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18771 as_basename=basename
18772 else
18773 as_basename=false
18774 fi
18775
18776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18777 as_dirname=dirname
18778 else
18779 as_dirname=false
18780 fi
18781
18782 as_me=`$as_basename -- "$0" ||
18783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18784 X"$0" : 'X\(//\)$' \| \
18785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18786 $as_echo X/"$0" |
18787 sed '/^.*\/\([^/][^/]*\)\/*$/{
18788 s//\1/
18789 q
18790 }
18791 /^X\/\(\/\/\)$/{
18792 s//\1/
18793 q
18794 }
18795 /^X\/\(\/\).*/{
18796 s//\1/
18797 q
18798 }
18799 s/.*/./; q'`
18800
18801 # Avoid depending upon Character Ranges.
18802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18805 as_cr_digits='0123456789'
18806 as_cr_alnum=$as_cr_Letters$as_cr_digits
18807
18808 ECHO_C= ECHO_N= ECHO_T=
18809 case `echo -n x` in #(((((
18810 -n*)
18811 case `echo 'xy\c'` in
18812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18813 xy) ECHO_C='\c';;
18814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18815 ECHO_T=' ';;
18816 esac;;
18817 *)
18818 ECHO_N='-n';;
18819 esac
18820
18821 rm -f conf$$ conf$$.exe conf$$.file
18822 if test -d conf$$.dir; then
18823 rm -f conf$$.dir/conf$$.file
18824 else
18825 rm -f conf$$.dir
18826 mkdir conf$$.dir 2>/dev/null
18827 fi
18828 if (echo >conf$$.file) 2>/dev/null; then
18829 if ln -s conf$$.file conf$$ 2>/dev/null; then
18830 as_ln_s='ln -s'
18831 # ... but there are two gotchas:
18832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18834 # In both cases, we have to default to `cp -pR'.
18835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18836 as_ln_s='cp -pR'
18837 elif ln conf$$.file conf$$ 2>/dev/null; then
18838 as_ln_s=ln
18839 else
18840 as_ln_s='cp -pR'
18841 fi
18842 else
18843 as_ln_s='cp -pR'
18844 fi
18845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18846 rmdir conf$$.dir 2>/dev/null
18847
18848
18849 # as_fn_mkdir_p
18850 # -------------
18851 # Create "$as_dir" as a directory, including parents if necessary.
18852 as_fn_mkdir_p ()
18853 {
18854
18855 case $as_dir in #(
18856 -*) as_dir=./$as_dir;;
18857 esac
18858 test -d "$as_dir" || eval $as_mkdir_p || {
18859 as_dirs=
18860 while :; do
18861 case $as_dir in #(
18862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18863 *) as_qdir=$as_dir;;
18864 esac
18865 as_dirs="'$as_qdir' $as_dirs"
18866 as_dir=`$as_dirname -- "$as_dir" ||
18867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18868 X"$as_dir" : 'X\(//\)[^/]' \| \
18869 X"$as_dir" : 'X\(//\)$' \| \
18870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18871 $as_echo X"$as_dir" |
18872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18873 s//\1/
18874 q
18875 }
18876 /^X\(\/\/\)[^/].*/{
18877 s//\1/
18878 q
18879 }
18880 /^X\(\/\/\)$/{
18881 s//\1/
18882 q
18883 }
18884 /^X\(\/\).*/{
18885 s//\1/
18886 q
18887 }
18888 s/.*/./; q'`
18889 test -d "$as_dir" && break
18890 done
18891 test -z "$as_dirs" || eval "mkdir $as_dirs"
18892 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18893
18894
18895 } # as_fn_mkdir_p
18896 if mkdir -p . 2>/dev/null; then
18897 as_mkdir_p='mkdir -p "$as_dir"'
18898 else
18899 test -d ./-p && rmdir ./-p
18900 as_mkdir_p=false
18901 fi
18902
18903
18904 # as_fn_executable_p FILE
18905 # -----------------------
18906 # Test if FILE is an executable regular file.
18907 as_fn_executable_p ()
18908 {
18909 test -f "$1" && test -x "$1"
18910 } # as_fn_executable_p
18911 as_test_x='test -x'
18912 as_executable_p=as_fn_executable_p
18913
18914 # Sed expression to map a string onto a valid CPP name.
18915 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18916
18917 # Sed expression to map a string onto a valid variable name.
18918 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18919
18920
18921 exec 6>&1
18922 ## ----------------------------------- ##
18923 ## Main body of $CONFIG_STATUS script. ##
18924 ## ----------------------------------- ##
18925 _ASEOF
18926 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18927
18928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18929 # Save the log message, to keep $0 and so on meaningful, and to
18930 # report actual input values of CONFIG_FILES etc. instead of their
18931 # values after options handling.
18932 ac_log="
18933 This file was extended by libXfixes $as_me 6.0.0, which was
18934 generated by GNU Autoconf 2.69. Invocation command line was
18935
18936 CONFIG_FILES = $CONFIG_FILES
18937 CONFIG_HEADERS = $CONFIG_HEADERS
18938 CONFIG_LINKS = $CONFIG_LINKS
18939 CONFIG_COMMANDS = $CONFIG_COMMANDS
18940 $ $0 $@
18941
18942 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18943 "
18944
18945 _ACEOF
18946
18947 case $ac_config_files in *"
18948 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18949 esac
18950
18951 case $ac_config_headers in *"
18952 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18953 esac
18954
18955
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 # Files that config.status was made for.
18958 config_files="$ac_config_files"
18959 config_headers="$ac_config_headers"
18960 config_commands="$ac_config_commands"
18961
18962 _ACEOF
18963
18964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18965 ac_cs_usage="\
18966 \`$as_me' instantiates files and other configuration actions
18967 from templates according to the current configuration. Unless the files
18968 and actions are specified as TAGs, all are instantiated by default.
18969
18970 Usage: $0 [OPTION]... [TAG]...
18971
18972 -h, --help print this help, then exit
18973 -V, --version print version number and configuration settings, then exit
18974 --config print configuration, then exit
18975 -q, --quiet, --silent
18976 do not print progress messages
18977 -d, --debug don't remove temporary files
18978 --recheck update $as_me by reconfiguring in the same conditions
18979 --file=FILE[:TEMPLATE]
18980 instantiate the configuration file FILE
18981 --header=FILE[:TEMPLATE]
18982 instantiate the configuration header FILE
18983
18984 Configuration files:
18985 $config_files
18986
18987 Configuration headers:
18988 $config_headers
18989
18990 Configuration commands:
18991 $config_commands
18992
18993 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfixes/issues>."
18994
18995 _ACEOF
18996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18997 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18998 ac_cs_version="\\
18999 libXfixes config.status 6.0.0
19000 configured by $0, generated by GNU Autoconf 2.69,
19001 with options \\"\$ac_cs_config\\"
19002
19003 Copyright (C) 2012 Free Software Foundation, Inc.
19004 This config.status script is free software; the Free Software Foundation
19005 gives unlimited permission to copy, distribute and modify it."
19006
19007 ac_pwd='$ac_pwd'
19008 srcdir='$srcdir'
19009 INSTALL='$INSTALL'
19010 MKDIR_P='$MKDIR_P'
19011 AWK='$AWK'
19012 test -n "\$AWK" || AWK=awk
19013 _ACEOF
19014
19015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19016 # The default lists apply if the user does not specify any file.
19017 ac_need_defaults=:
19018 while test $# != 0
19019 do
19020 case $1 in
19021 --*=?*)
19022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19023 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19024 ac_shift=:
19025 ;;
19026 --*=)
19027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19028 ac_optarg=
19029 ac_shift=:
19030 ;;
19031 *)
19032 ac_option=$1
19033 ac_optarg=$2
19034 ac_shift=shift
19035 ;;
19036 esac
19037
19038 case $ac_option in
19039 # Handling of the options.
19040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19041 ac_cs_recheck=: ;;
19042 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19043 $as_echo "$ac_cs_version"; exit ;;
19044 --config | --confi | --conf | --con | --co | --c )
19045 $as_echo "$ac_cs_config"; exit ;;
19046 --debug | --debu | --deb | --de | --d | -d )
19047 debug=: ;;
19048 --file | --fil | --fi | --f )
19049 $ac_shift
19050 case $ac_optarg in
19051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19052 '') as_fn_error $? "missing file argument" ;;
19053 esac
19054 as_fn_append CONFIG_FILES " '$ac_optarg'"
19055 ac_need_defaults=false;;
19056 --header | --heade | --head | --hea )
19057 $ac_shift
19058 case $ac_optarg in
19059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19060 esac
19061 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19062 ac_need_defaults=false;;
19063 --he | --h)
19064 # Conflict between --help and --header
19065 as_fn_error $? "ambiguous option: \`$1'
19066 Try \`$0 --help' for more information.";;
19067 --help | --hel | -h )
19068 $as_echo "$ac_cs_usage"; exit ;;
19069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19071 ac_cs_silent=: ;;
19072
19073 # This is an error.
19074 -*) as_fn_error $? "unrecognized option: \`$1'
19075 Try \`$0 --help' for more information." ;;
19076
19077 *) as_fn_append ac_config_targets " $1"
19078 ac_need_defaults=false ;;
19079
19080 esac
19081 shift
19082 done
19083
19084 ac_configure_extra_args=
19085
19086 if $ac_cs_silent; then
19087 exec 6>/dev/null
19088 ac_configure_extra_args="$ac_configure_extra_args --silent"
19089 fi
19090
19091 _ACEOF
19092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19093 if \$ac_cs_recheck; then
19094 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19095 shift
19096 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19097 CONFIG_SHELL='$SHELL'
19098 export CONFIG_SHELL
19099 exec "\$@"
19100 fi
19101
19102 _ACEOF
19103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19104 exec 5>>config.log
19105 {
19106 echo
19107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19108 ## Running $as_me. ##
19109 _ASBOX
19110 $as_echo "$ac_log"
19111 } >&5
19112
19113 _ACEOF
19114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19115 #
19116 # INIT-COMMANDS
19117 #
19118 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19119
19120
19121 # The HP-UX ksh and POSIX shell print the target directory to stdout
19122 # if CDPATH is set.
19123 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19124
19125 sed_quote_subst='$sed_quote_subst'
19126 double_quote_subst='$double_quote_subst'
19127 delay_variable_subst='$delay_variable_subst'
19128 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19129 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19130 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19131 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19132 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19133 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19134 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19135 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19136 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19137 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19138 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19139 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19140 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19141 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19142 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19143 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19144 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19145 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19146 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19147 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19148 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19149 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19150 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19151 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19152 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19153 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19154 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19155 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19156 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19157 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19158 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19159 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19160 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19161 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19162 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19163 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19164 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19165 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19166 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19167 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19168 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19169 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19170 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19171 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19172 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19173 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19174 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19175 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19176 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19177 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19178 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19179 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19180 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19181 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19182 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19183 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19184 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19185 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19186 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"`'
19187 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19188 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19189 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19190 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19191 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19192 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19193 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19194 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19195 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19196 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19197 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19198 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19199 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19200 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19201 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19202 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19203 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19204 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19205 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19206 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19207 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19208 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19209 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19210 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19211 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19212 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19213 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19214 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19215 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19216 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19217 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19218 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19219 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19220 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19221 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19222 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19223 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19224 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19225 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19226 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19227 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19228 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19229 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19230 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19231 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19232 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19233 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19234 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19235 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19236 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19237 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19238 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19239 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19240 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19241 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19242 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19243 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19244 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19245 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19246 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19247 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19248 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19249 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19250 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19251 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19252 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19253 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19254 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19255 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19256 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19257 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19258 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19259 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19260 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19261 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19262 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19263
19264 LTCC='$LTCC'
19265 LTCFLAGS='$LTCFLAGS'
19266 compiler='$compiler_DEFAULT'
19267
19268 # A function that is used when there is no print builtin or printf.
19269 func_fallback_echo ()
19270 {
19271 eval 'cat <<_LTECHO_EOF
19272 \$1
19273 _LTECHO_EOF'
19274 }
19275
19276 # Quote evaled strings.
19277 for var in SHELL \
19278 ECHO \
19279 PATH_SEPARATOR \
19280 SED \
19281 GREP \
19282 EGREP \
19283 FGREP \
19284 LD \
19285 NM \
19286 LN_S \
19287 lt_SP2NL \
19288 lt_NL2SP \
19289 reload_flag \
19290 OBJDUMP \
19291 deplibs_check_method \
19292 file_magic_cmd \
19293 file_magic_glob \
19294 want_nocaseglob \
19295 DLLTOOL \
19296 sharedlib_from_linklib_cmd \
19297 AR \
19298 AR_FLAGS \
19299 archiver_list_spec \
19300 STRIP \
19301 RANLIB \
19302 CC \
19303 CFLAGS \
19304 compiler \
19305 lt_cv_sys_global_symbol_pipe \
19306 lt_cv_sys_global_symbol_to_cdecl \
19307 lt_cv_sys_global_symbol_to_import \
19308 lt_cv_sys_global_symbol_to_c_name_address \
19309 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19310 lt_cv_nm_interface \
19311 nm_file_list_spec \
19312 lt_cv_truncate_bin \
19313 lt_prog_compiler_no_builtin_flag \
19314 lt_prog_compiler_pic \
19315 lt_prog_compiler_wl \
19316 lt_prog_compiler_static \
19317 lt_cv_prog_compiler_c_o \
19318 need_locks \
19319 MANIFEST_TOOL \
19320 DSYMUTIL \
19321 NMEDIT \
19322 LIPO \
19323 OTOOL \
19324 OTOOL64 \
19325 shrext_cmds \
19326 export_dynamic_flag_spec \
19327 whole_archive_flag_spec \
19328 compiler_needs_object \
19329 with_gnu_ld \
19330 allow_undefined_flag \
19331 no_undefined_flag \
19332 hardcode_libdir_flag_spec \
19333 hardcode_libdir_separator \
19334 exclude_expsyms \
19335 include_expsyms \
19336 file_list_spec \
19337 variables_saved_for_relink \
19338 libname_spec \
19339 library_names_spec \
19340 soname_spec \
19341 install_override_mode \
19342 finish_eval \
19343 old_striplib \
19344 striplib; do
19345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19346 *[\\\\\\\`\\"\\\$]*)
19347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19348 ;;
19349 *)
19350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19351 ;;
19352 esac
19353 done
19354
19355 # Double-quote double-evaled strings.
19356 for var in reload_cmds \
19357 old_postinstall_cmds \
19358 old_postuninstall_cmds \
19359 old_archive_cmds \
19360 extract_expsyms_cmds \
19361 old_archive_from_new_cmds \
19362 old_archive_from_expsyms_cmds \
19363 archive_cmds \
19364 archive_expsym_cmds \
19365 module_cmds \
19366 module_expsym_cmds \
19367 export_symbols_cmds \
19368 prelink_cmds \
19369 postlink_cmds \
19370 postinstall_cmds \
19371 postuninstall_cmds \
19372 finish_cmds \
19373 sys_lib_search_path_spec \
19374 configure_time_dlsearch_path \
19375 configure_time_lt_sys_library_path; do
19376 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19377 *[\\\\\\\`\\"\\\$]*)
19378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19379 ;;
19380 *)
19381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19382 ;;
19383 esac
19384 done
19385
19386 ac_aux_dir='$ac_aux_dir'
19387
19388 # See if we are running on zsh, and set the options that allow our
19389 # commands through without removal of \ escapes INIT.
19390 if test -n "\${ZSH_VERSION+set}"; then
19391 setopt NO_GLOB_SUBST
19392 fi
19393
19394
19395 PACKAGE='$PACKAGE'
19396 VERSION='$VERSION'
19397 RM='$RM'
19398 ofile='$ofile'
19399
19400
19401
19402
19403 _ACEOF
19404
19405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19406
19407 # Handling of arguments.
19408 for ac_config_target in $ac_config_targets
19409 do
19410 case $ac_config_target in
19411 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19412 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19413 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19414 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19415 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19416 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19417 "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
19418
19419 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19420 esac
19421 done
19422
19423
19424 # If the user did not use the arguments to specify the items to instantiate,
19425 # then the envvar interface is used. Set only those that are not.
19426 # We use the long form for the default assignment because of an extremely
19427 # bizarre bug on SunOS 4.1.3.
19428 if $ac_need_defaults; then
19429 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19430 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19431 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19432 fi
19433
19434 # Have a temporary directory for convenience. Make it in the build tree
19435 # simply because there is no reason against having it here, and in addition,
19436 # creating and moving files from /tmp can sometimes cause problems.
19437 # Hook for its removal unless debugging.
19438 # Note that there is a small window in which the directory will not be cleaned:
19439 # after its creation but before its name has been assigned to `$tmp'.
19440 $debug ||
19441 {
19442 tmp= ac_tmp=
19443 trap 'exit_status=$?
19444 : "${ac_tmp:=$tmp}"
19445 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19446 ' 0
19447 trap 'as_fn_exit 1' 1 2 13 15
19448 }
19449 # Create a (secure) tmp directory for tmp files.
19450
19451 {
19452 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19453 test -d "$tmp"
19454 } ||
19455 {
19456 tmp=./conf$$-$RANDOM
19457 (umask 077 && mkdir "$tmp")
19458 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19459 ac_tmp=$tmp
19460
19461 # Set up the scripts for CONFIG_FILES section.
19462 # No need to generate them if there are no CONFIG_FILES.
19463 # This happens for instance with `./config.status config.h'.
19464 if test -n "$CONFIG_FILES"; then
19465
19466
19467 ac_cr=`echo X | tr X '\015'`
19468 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19469 # But we know of no other shell where ac_cr would be empty at this
19470 # point, so we can use a bashism as a fallback.
19471 if test "x$ac_cr" = x; then
19472 eval ac_cr=\$\'\\r\'
19473 fi
19474 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19475 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19476 ac_cs_awk_cr='\\r'
19477 else
19478 ac_cs_awk_cr=$ac_cr
19479 fi
19480
19481 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19482 _ACEOF
19483
19484
19485 {
19486 echo "cat >conf$$subs.awk <<_ACEOF" &&
19487 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19488 echo "_ACEOF"
19489 } >conf$$subs.sh ||
19490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19491 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19492 ac_delim='%!_!# '
19493 for ac_last_try in false false false false false :; do
19494 . ./conf$$subs.sh ||
19495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19496
19497 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19498 if test $ac_delim_n = $ac_delim_num; then
19499 break
19500 elif $ac_last_try; then
19501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19502 else
19503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19504 fi
19505 done
19506 rm -f conf$$subs.sh
19507
19508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19509 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19510 _ACEOF
19511 sed -n '
19512 h
19513 s/^/S["/; s/!.*/"]=/
19514 p
19515 g
19516 s/^[^!]*!//
19517 :repl
19518 t repl
19519 s/'"$ac_delim"'$//
19520 t delim
19521 :nl
19522 h
19523 s/\(.\{148\}\)..*/\1/
19524 t more1
19525 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19526 p
19527 n
19528 b repl
19529 :more1
19530 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19531 p
19532 g
19533 s/.\{148\}//
19534 t nl
19535 :delim
19536 h
19537 s/\(.\{148\}\)..*/\1/
19538 t more2
19539 s/["\\]/\\&/g; s/^/"/; s/$/"/
19540 p
19541 b
19542 :more2
19543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19544 p
19545 g
19546 s/.\{148\}//
19547 t delim
19548 ' <conf$$subs.awk | sed '
19549 /^[^""]/{
19550 N
19551 s/\n//
19552 }
19553 ' >>$CONFIG_STATUS || ac_write_fail=1
19554 rm -f conf$$subs.awk
19555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19556 _ACAWK
19557 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19558 for (key in S) S_is_set[key] = 1
19559 FS = ""
19560
19561 }
19562 {
19563 line = $ 0
19564 nfields = split(line, field, "@")
19565 substed = 0
19566 len = length(field[1])
19567 for (i = 2; i < nfields; i++) {
19568 key = field[i]
19569 keylen = length(key)
19570 if (S_is_set[key]) {
19571 value = S[key]
19572 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19573 len += length(value) + length(field[++i])
19574 substed = 1
19575 } else
19576 len += 1 + keylen
19577 }
19578
19579 print line
19580 }
19581
19582 _ACAWK
19583 _ACEOF
19584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19585 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19586 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19587 else
19588 cat
19589 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19590 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19591 _ACEOF
19592
19593 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19594 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19595 # trailing colons and then remove the whole line if VPATH becomes empty
19596 # (actually we leave an empty line to preserve line numbers).
19597 if test "x$srcdir" = x.; then
19598 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19599 h
19600 s///
19601 s/^/:/
19602 s/[ ]*$/:/
19603 s/:\$(srcdir):/:/g
19604 s/:\${srcdir}:/:/g
19605 s/:@srcdir@:/:/g
19606 s/^:*//
19607 s/:*$//
19608 x
19609 s/\(=[ ]*\).*/\1/
19610 G
19611 s/\n//
19612 s/^[^=]*=[ ]*$//
19613 }'
19614 fi
19615
19616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19617 fi # test -n "$CONFIG_FILES"
19618
19619 # Set up the scripts for CONFIG_HEADERS section.
19620 # No need to generate them if there are no CONFIG_HEADERS.
19621 # This happens for instance with `./config.status Makefile'.
19622 if test -n "$CONFIG_HEADERS"; then
19623 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19624 BEGIN {
19625 _ACEOF
19626
19627 # Transform confdefs.h into an awk script `defines.awk', embedded as
19628 # here-document in config.status, that substitutes the proper values into
19629 # config.h.in to produce config.h.
19630
19631 # Create a delimiter string that does not exist in confdefs.h, to ease
19632 # handling of long lines.
19633 ac_delim='%!_!# '
19634 for ac_last_try in false false :; do
19635 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19636 if test -z "$ac_tt"; then
19637 break
19638 elif $ac_last_try; then
19639 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19640 else
19641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19642 fi
19643 done
19644
19645 # For the awk script, D is an array of macro values keyed by name,
19646 # likewise P contains macro parameters if any. Preserve backslash
19647 # newline sequences.
19648
19649 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19650 sed -n '
19651 s/.\{148\}/&'"$ac_delim"'/g
19652 t rset
19653 :rset
19654 s/^[ ]*#[ ]*define[ ][ ]*/ /
19655 t def
19656 d
19657 :def
19658 s/\\$//
19659 t bsnl
19660 s/["\\]/\\&/g
19661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19662 D["\1"]=" \3"/p
19663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19664 d
19665 :bsnl
19666 s/["\\]/\\&/g
19667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19668 D["\1"]=" \3\\\\\\n"\\/p
19669 t cont
19670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19671 t cont
19672 d
19673 :cont
19674 n
19675 s/.\{148\}/&'"$ac_delim"'/g
19676 t clear
19677 :clear
19678 s/\\$//
19679 t bsnlc
19680 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19681 d
19682 :bsnlc
19683 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19684 b cont
19685 ' <confdefs.h | sed '
19686 s/'"$ac_delim"'/"\\\
19687 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19688
19689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19690 for (key in D) D_is_set[key] = 1
19691 FS = ""
19692 }
19693 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19694 line = \$ 0
19695 split(line, arg, " ")
19696 if (arg[1] == "#") {
19697 defundef = arg[2]
19698 mac1 = arg[3]
19699 } else {
19700 defundef = substr(arg[1], 2)
19701 mac1 = arg[2]
19702 }
19703 split(mac1, mac2, "(") #)
19704 macro = mac2[1]
19705 prefix = substr(line, 1, index(line, defundef) - 1)
19706 if (D_is_set[macro]) {
19707 # Preserve the white space surrounding the "#".
19708 print prefix "define", macro P[macro] D[macro]
19709 next
19710 } else {
19711 # Replace #undef with comments. This is necessary, for example,
19712 # in the case of _POSIX_SOURCE, which is predefined and required
19713 # on some systems where configure will not decide to define it.
19714 if (defundef == "undef") {
19715 print "/*", prefix defundef, macro, "*/"
19716 next
19717 }
19718 }
19719 }
19720 { print }
19721 _ACAWK
19722 _ACEOF
19723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19724 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19725 fi # test -n "$CONFIG_HEADERS"
19726
19727
19728 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19729 shift
19730 for ac_tag
19731 do
19732 case $ac_tag in
19733 :[FHLC]) ac_mode=$ac_tag; continue;;
19734 esac
19735 case $ac_mode$ac_tag in
19736 :[FHL]*:*);;
19737 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19738 :[FH]-) ac_tag=-:-;;
19739 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19740 esac
19741 ac_save_IFS=$IFS
19742 IFS=:
19743 set x $ac_tag
19744 IFS=$ac_save_IFS
19745 shift
19746 ac_file=$1
19747 shift
19748
19749 case $ac_mode in
19750 :L) ac_source=$1;;
19751 :[FH])
19752 ac_file_inputs=
19753 for ac_f
19754 do
19755 case $ac_f in
19756 -) ac_f="$ac_tmp/stdin";;
19757 *) # Look for the file first in the build tree, then in the source tree
19758 # (if the path is not absolute). The absolute path cannot be DOS-style,
19759 # because $ac_f cannot contain `:'.
19760 test -f "$ac_f" ||
19761 case $ac_f in
19762 [\\/$]*) false;;
19763 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19764 esac ||
19765 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19766 esac
19767 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19768 as_fn_append ac_file_inputs " '$ac_f'"
19769 done
19770
19771 # Let's still pretend it is `configure' which instantiates (i.e., don't
19772 # use $as_me), people would be surprised to read:
19773 # /* config.h. Generated by config.status. */
19774 configure_input='Generated from '`
19775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19776 `' by configure.'
19777 if test x"$ac_file" != x-; then
19778 configure_input="$ac_file. $configure_input"
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19780 $as_echo "$as_me: creating $ac_file" >&6;}
19781 fi
19782 # Neutralize special characters interpreted by sed in replacement strings.
19783 case $configure_input in #(
19784 *\&* | *\|* | *\\* )
19785 ac_sed_conf_input=`$as_echo "$configure_input" |
19786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19787 *) ac_sed_conf_input=$configure_input;;
19788 esac
19789
19790 case $ac_tag in
19791 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19793 esac
19794 ;;
19795 esac
19796
19797 ac_dir=`$as_dirname -- "$ac_file" ||
19798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19799 X"$ac_file" : 'X\(//\)[^/]' \| \
19800 X"$ac_file" : 'X\(//\)$' \| \
19801 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19802 $as_echo X"$ac_file" |
19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19804 s//\1/
19805 q
19806 }
19807 /^X\(\/\/\)[^/].*/{
19808 s//\1/
19809 q
19810 }
19811 /^X\(\/\/\)$/{
19812 s//\1/
19813 q
19814 }
19815 /^X\(\/\).*/{
19816 s//\1/
19817 q
19818 }
19819 s/.*/./; q'`
19820 as_dir="$ac_dir"; as_fn_mkdir_p
19821 ac_builddir=.
19822
19823 case "$ac_dir" in
19824 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19825 *)
19826 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19827 # A ".." for each directory in $ac_dir_suffix.
19828 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19829 case $ac_top_builddir_sub in
19830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19832 esac ;;
19833 esac
19834 ac_abs_top_builddir=$ac_pwd
19835 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19836 # for backward compatibility:
19837 ac_top_builddir=$ac_top_build_prefix
19838
19839 case $srcdir in
19840 .) # We are building in place.
19841 ac_srcdir=.
19842 ac_top_srcdir=$ac_top_builddir_sub
19843 ac_abs_top_srcdir=$ac_pwd ;;
19844 [\\/]* | ?:[\\/]* ) # Absolute name.
19845 ac_srcdir=$srcdir$ac_dir_suffix;
19846 ac_top_srcdir=$srcdir
19847 ac_abs_top_srcdir=$srcdir ;;
19848 *) # Relative name.
19849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19850 ac_top_srcdir=$ac_top_build_prefix$srcdir
19851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19852 esac
19853 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19854
19855
19856 case $ac_mode in
19857 :F)
19858 #
19859 # CONFIG_FILE
19860 #
19861
19862 case $INSTALL in
19863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19865 esac
19866 ac_MKDIR_P=$MKDIR_P
19867 case $MKDIR_P in
19868 [\\/$]* | ?:[\\/]* ) ;;
19869 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19870 esac
19871 _ACEOF
19872
19873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19874 # If the template does not know about datarootdir, expand it.
19875 # FIXME: This hack should be removed a few years after 2.60.
19876 ac_datarootdir_hack=; ac_datarootdir_seen=
19877 ac_sed_dataroot='
19878 /datarootdir/ {
19879 p
19880 q
19881 }
19882 /@datadir@/p
19883 /@docdir@/p
19884 /@infodir@/p
19885 /@localedir@/p
19886 /@mandir@/p'
19887 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19888 *datarootdir*) ac_datarootdir_seen=yes;;
19889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19891 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19892 _ACEOF
19893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19894 ac_datarootdir_hack='
19895 s&@datadir@&$datadir&g
19896 s&@docdir@&$docdir&g
19897 s&@infodir@&$infodir&g
19898 s&@localedir@&$localedir&g
19899 s&@mandir@&$mandir&g
19900 s&\\\${datarootdir}&$datarootdir&g' ;;
19901 esac
19902 _ACEOF
19903
19904 # Neutralize VPATH when `$srcdir' = `.'.
19905 # Shell code in configure.ac might set extrasub.
19906 # FIXME: do we really want to maintain this feature?
19907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19908 ac_sed_extra="$ac_vpsub
19909 $extrasub
19910 _ACEOF
19911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19912 :t
19913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19914 s|@configure_input@|$ac_sed_conf_input|;t t
19915 s&@top_builddir@&$ac_top_builddir_sub&;t t
19916 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19917 s&@srcdir@&$ac_srcdir&;t t
19918 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19919 s&@top_srcdir@&$ac_top_srcdir&;t t
19920 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19921 s&@builddir@&$ac_builddir&;t t
19922 s&@abs_builddir@&$ac_abs_builddir&;t t
19923 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19924 s&@INSTALL@&$ac_INSTALL&;t t
19925 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19926 $ac_datarootdir_hack
19927 "
19928 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19929 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19930
19931 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19932 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19933 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19934 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19936 which seems to be undefined. Please make sure it is defined" >&5
19937 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19938 which seems to be undefined. Please make sure it is defined" >&2;}
19939
19940 rm -f "$ac_tmp/stdin"
19941 case $ac_file in
19942 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19943 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19944 esac \
19945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19946 ;;
19947 :H)
19948 #
19949 # CONFIG_HEADER
19950 #
19951 if test x"$ac_file" != x-; then
19952 {
19953 $as_echo "/* $configure_input */" \
19954 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19955 } >"$ac_tmp/config.h" \
19956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19957 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19959 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19960 else
19961 rm -f "$ac_file"
19962 mv "$ac_tmp/config.h" "$ac_file" \
19963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19964 fi
19965 else
19966 $as_echo "/* $configure_input */" \
19967 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19968 || as_fn_error $? "could not create -" "$LINENO" 5
19969 fi
19970 # Compute "$ac_file"'s index in $config_headers.
19971 _am_arg="$ac_file"
19972 _am_stamp_count=1
19973 for _am_header in $config_headers :; do
19974 case $_am_header in
19975 $_am_arg | $_am_arg:* )
19976 break ;;
19977 * )
19978 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19979 esac
19980 done
19981 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19982 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19983 X"$_am_arg" : 'X\(//\)[^/]' \| \
19984 X"$_am_arg" : 'X\(//\)$' \| \
19985 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19986 $as_echo X"$_am_arg" |
19987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19988 s//\1/
19989 q
19990 }
19991 /^X\(\/\/\)[^/].*/{
19992 s//\1/
19993 q
19994 }
19995 /^X\(\/\/\)$/{
19996 s//\1/
19997 q
19998 }
19999 /^X\(\/\).*/{
20000 s//\1/
20001 q
20002 }
20003 s/.*/./; q'`/stamp-h$_am_stamp_count
20004 ;;
20005
20006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20007 $as_echo "$as_me: executing $ac_file commands" >&6;}
20008 ;;
20009 esac
20010
20011
20012 case $ac_file$ac_mode in
20013 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20014 # Older Autoconf quotes --file arguments for eval, but not when files
20015 # are listed without --file. Let's play safe and only enable the eval
20016 # if we detect the quoting.
20017 # TODO: see whether this extra hack can be removed once we start
20018 # requiring Autoconf 2.70 or later.
20019 case $CONFIG_FILES in #(
20020 *\'*) :
20021 eval set x "$CONFIG_FILES" ;; #(
20022 *) :
20023 set x $CONFIG_FILES ;; #(
20024 *) :
20025 ;;
20026 esac
20027 shift
20028 # Used to flag and report bootstrapping failures.
20029 am_rc=0
20030 for am_mf
20031 do
20032 # Strip MF so we end up with the name of the file.
20033 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20034 # Check whether this is an Automake generated Makefile which includes
20035 # dependency-tracking related rules and includes.
20036 # Grep'ing the whole file directly is not great: AIX grep has a line
20037 # limit of 2048, but all sed's we know have understand at least 4000.
20038 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20039 || continue
20040 am_dirpart=`$as_dirname -- "$am_mf" ||
20041 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20042 X"$am_mf" : 'X\(//\)[^/]' \| \
20043 X"$am_mf" : 'X\(//\)$' \| \
20044 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20045 $as_echo X"$am_mf" |
20046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20047 s//\1/
20048 q
20049 }
20050 /^X\(\/\/\)[^/].*/{
20051 s//\1/
20052 q
20053 }
20054 /^X\(\/\/\)$/{
20055 s//\1/
20056 q
20057 }
20058 /^X\(\/\).*/{
20059 s//\1/
20060 q
20061 }
20062 s/.*/./; q'`
20063 am_filepart=`$as_basename -- "$am_mf" ||
20064 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20065 X"$am_mf" : 'X\(//\)$' \| \
20066 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20067 $as_echo X/"$am_mf" |
20068 sed '/^.*\/\([^/][^/]*\)\/*$/{
20069 s//\1/
20070 q
20071 }
20072 /^X\/\(\/\/\)$/{
20073 s//\1/
20074 q
20075 }
20076 /^X\/\(\/\).*/{
20077 s//\1/
20078 q
20079 }
20080 s/.*/./; q'`
20081 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20082 && sed -e '/# am--include-marker/d' "$am_filepart" \
20083 | $MAKE -f - am--depfiles" >&5
20084 (cd "$am_dirpart" \
20085 && sed -e '/# am--include-marker/d' "$am_filepart" \
20086 | $MAKE -f - am--depfiles) >&5 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } || am_rc=$?
20090 done
20091 if test $am_rc -ne 0; then
20092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20094 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20095 for automatic dependency tracking. If GNU make was not used, consider
20096 re-running the configure script with MAKE=\"gmake\" (or whatever is
20097 necessary). You can also try re-running configure with the
20098 '--disable-dependency-tracking' option to at least be able to build
20099 the package (albeit without support for automatic dependency tracking).
20100 See \`config.log' for more details" "$LINENO" 5; }
20101 fi
20102 { am_dirpart=; unset am_dirpart;}
20103 { am_filepart=; unset am_filepart;}
20104 { am_mf=; unset am_mf;}
20105 { am_rc=; unset am_rc;}
20106 rm -f conftest-deps.mk
20107 }
20108 ;;
20109 "libtool":C)
20110
20111 # See if we are running on zsh, and set the options that allow our
20112 # commands through without removal of \ escapes.
20113 if test -n "${ZSH_VERSION+set}"; then
20114 setopt NO_GLOB_SUBST
20115 fi
20116
20117 cfgfile=${ofile}T
20118 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20119 $RM "$cfgfile"
20120
20121 cat <<_LT_EOF >> "$cfgfile"
20122 #! $SHELL
20123 # Generated automatically by $as_me ($PACKAGE) $VERSION
20124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20125 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20126
20127 # Provide generalized library-building support services.
20128 # Written by Gordon Matzigkeit, 1996
20129
20130 # Copyright (C) 2014 Free Software Foundation, Inc.
20131 # This is free software; see the source for copying conditions. There is NO
20132 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20133
20134 # GNU Libtool is free software; you can redistribute it and/or modify
20135 # it under the terms of the GNU General Public License as published by
20136 # the Free Software Foundation; either version 2 of of the License, or
20137 # (at your option) any later version.
20138 #
20139 # As a special exception to the GNU General Public License, if you
20140 # distribute this file as part of a program or library that is built
20141 # using GNU Libtool, you may include this file under the same
20142 # distribution terms that you use for the rest of that program.
20143 #
20144 # GNU Libtool is distributed in the hope that it will be useful, but
20145 # WITHOUT ANY WARRANTY; without even the implied warranty of
20146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20147 # GNU General Public License for more details.
20148 #
20149 # You should have received a copy of the GNU General Public License
20150 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20151
20152
20153 # The names of the tagged configurations supported by this script.
20154 available_tags=''
20155
20156 # Configured defaults for sys_lib_dlsearch_path munging.
20157 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20158
20159 # ### BEGIN LIBTOOL CONFIG
20160
20161 # Which release of libtool.m4 was used?
20162 macro_version=$macro_version
20163 macro_revision=$macro_revision
20164
20165 # Whether or not to build shared libraries.
20166 build_libtool_libs=$enable_shared
20167
20168 # Whether or not to build static libraries.
20169 build_old_libs=$enable_static
20170
20171 # What type of objects to build.
20172 pic_mode=$pic_mode
20173
20174 # Whether or not to optimize for fast installation.
20175 fast_install=$enable_fast_install
20176
20177 # Shared archive member basename,for filename based shared library versioning on AIX.
20178 shared_archive_member_spec=$shared_archive_member_spec
20179
20180 # Shell to use when invoking shell scripts.
20181 SHELL=$lt_SHELL
20182
20183 # An echo program that protects backslashes.
20184 ECHO=$lt_ECHO
20185
20186 # The PATH separator for the build system.
20187 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20188
20189 # The host system.
20190 host_alias=$host_alias
20191 host=$host
20192 host_os=$host_os
20193
20194 # The build system.
20195 build_alias=$build_alias
20196 build=$build
20197 build_os=$build_os
20198
20199 # A sed program that does not truncate output.
20200 SED=$lt_SED
20201
20202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20203 Xsed="\$SED -e 1s/^X//"
20204
20205 # A grep program that handles long lines.
20206 GREP=$lt_GREP
20207
20208 # An ERE matcher.
20209 EGREP=$lt_EGREP
20210
20211 # A literal string matcher.
20212 FGREP=$lt_FGREP
20213
20214 # A BSD- or MS-compatible name lister.
20215 NM=$lt_NM
20216
20217 # Whether we need soft or hard links.
20218 LN_S=$lt_LN_S
20219
20220 # What is the maximum length of a command?
20221 max_cmd_len=$max_cmd_len
20222
20223 # Object file suffix (normally "o").
20224 objext=$ac_objext
20225
20226 # Executable file suffix (normally "").
20227 exeext=$exeext
20228
20229 # whether the shell understands "unset".
20230 lt_unset=$lt_unset
20231
20232 # turn spaces into newlines.
20233 SP2NL=$lt_lt_SP2NL
20234
20235 # turn newlines into spaces.
20236 NL2SP=$lt_lt_NL2SP
20237
20238 # convert \$build file names to \$host format.
20239 to_host_file_cmd=$lt_cv_to_host_file_cmd
20240
20241 # convert \$build files to toolchain format.
20242 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20243
20244 # An object symbol dumper.
20245 OBJDUMP=$lt_OBJDUMP
20246
20247 # Method to check whether dependent libraries are shared objects.
20248 deplibs_check_method=$lt_deplibs_check_method
20249
20250 # Command to use when deplibs_check_method = "file_magic".
20251 file_magic_cmd=$lt_file_magic_cmd
20252
20253 # How to find potential files when deplibs_check_method = "file_magic".
20254 file_magic_glob=$lt_file_magic_glob
20255
20256 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20257 want_nocaseglob=$lt_want_nocaseglob
20258
20259 # DLL creation program.
20260 DLLTOOL=$lt_DLLTOOL
20261
20262 # Command to associate shared and link libraries.
20263 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20264
20265 # The archiver.
20266 AR=$lt_AR
20267
20268 # Flags to create an archive.
20269 AR_FLAGS=$lt_AR_FLAGS
20270
20271 # How to feed a file listing to the archiver.
20272 archiver_list_spec=$lt_archiver_list_spec
20273
20274 # A symbol stripping program.
20275 STRIP=$lt_STRIP
20276
20277 # Commands used to install an old-style archive.
20278 RANLIB=$lt_RANLIB
20279 old_postinstall_cmds=$lt_old_postinstall_cmds
20280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20281
20282 # Whether to use a lock for old archive extraction.
20283 lock_old_archive_extraction=$lock_old_archive_extraction
20284
20285 # A C compiler.
20286 LTCC=$lt_CC
20287
20288 # LTCC compiler flags.
20289 LTCFLAGS=$lt_CFLAGS
20290
20291 # Take the output of nm and produce a listing of raw symbols and C names.
20292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20293
20294 # Transform the output of nm in a proper C declaration.
20295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20296
20297 # Transform the output of nm into a list of symbols to manually relocate.
20298 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20299
20300 # Transform the output of nm in a C name address pair.
20301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20302
20303 # Transform the output of nm in a C name address pair when lib prefix is needed.
20304 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20305
20306 # The name lister interface.
20307 nm_interface=$lt_lt_cv_nm_interface
20308
20309 # Specify filename containing input files for \$NM.
20310 nm_file_list_spec=$lt_nm_file_list_spec
20311
20312 # The root where to search for dependent libraries,and where our libraries should be installed.
20313 lt_sysroot=$lt_sysroot
20314
20315 # Command to truncate a binary pipe.
20316 lt_truncate_bin=$lt_lt_cv_truncate_bin
20317
20318 # The name of the directory that contains temporary libtool files.
20319 objdir=$objdir
20320
20321 # Used to examine libraries when file_magic_cmd begins with "file".
20322 MAGIC_CMD=$MAGIC_CMD
20323
20324 # Must we lock files when doing compilation?
20325 need_locks=$lt_need_locks
20326
20327 # Manifest tool.
20328 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20329
20330 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20331 DSYMUTIL=$lt_DSYMUTIL
20332
20333 # Tool to change global to local symbols on Mac OS X.
20334 NMEDIT=$lt_NMEDIT
20335
20336 # Tool to manipulate fat objects and archives on Mac OS X.
20337 LIPO=$lt_LIPO
20338
20339 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20340 OTOOL=$lt_OTOOL
20341
20342 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20343 OTOOL64=$lt_OTOOL64
20344
20345 # Old archive suffix (normally "a").
20346 libext=$libext
20347
20348 # Shared library suffix (normally ".so").
20349 shrext_cmds=$lt_shrext_cmds
20350
20351 # The commands to extract the exported symbol list from a shared archive.
20352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20353
20354 # Variables whose values should be saved in libtool wrapper scripts and
20355 # restored at link time.
20356 variables_saved_for_relink=$lt_variables_saved_for_relink
20357
20358 # Do we need the "lib" prefix for modules?
20359 need_lib_prefix=$need_lib_prefix
20360
20361 # Do we need a version for libraries?
20362 need_version=$need_version
20363
20364 # Library versioning type.
20365 version_type=$version_type
20366
20367 # Shared library runtime path variable.
20368 runpath_var=$runpath_var
20369
20370 # Shared library path variable.
20371 shlibpath_var=$shlibpath_var
20372
20373 # Is shlibpath searched before the hard-coded library search path?
20374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20375
20376 # Format of library name prefix.
20377 libname_spec=$lt_libname_spec
20378
20379 # List of archive names. First name is the real one, the rest are links.
20380 # The last name is the one that the linker finds with -lNAME
20381 library_names_spec=$lt_library_names_spec
20382
20383 # The coded name of the library, if different from the real name.
20384 soname_spec=$lt_soname_spec
20385
20386 # Permission mode override for installation of shared libraries.
20387 install_override_mode=$lt_install_override_mode
20388
20389 # Command to use after installation of a shared archive.
20390 postinstall_cmds=$lt_postinstall_cmds
20391
20392 # Command to use after uninstallation of a shared archive.
20393 postuninstall_cmds=$lt_postuninstall_cmds
20394
20395 # Commands used to finish a libtool library installation in a directory.
20396 finish_cmds=$lt_finish_cmds
20397
20398 # As "finish_cmds", except a single script fragment to be evaled but
20399 # not shown.
20400 finish_eval=$lt_finish_eval
20401
20402 # Whether we should hardcode library paths into libraries.
20403 hardcode_into_libs=$hardcode_into_libs
20404
20405 # Compile-time system search path for libraries.
20406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20407
20408 # Detected run-time system search path for libraries.
20409 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20410
20411 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20412 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20413
20414 # Whether dlopen is supported.
20415 dlopen_support=$enable_dlopen
20416
20417 # Whether dlopen of programs is supported.
20418 dlopen_self=$enable_dlopen_self
20419
20420 # Whether dlopen of statically linked programs is supported.
20421 dlopen_self_static=$enable_dlopen_self_static
20422
20423 # Commands to strip libraries.
20424 old_striplib=$lt_old_striplib
20425 striplib=$lt_striplib
20426
20427
20428 # The linker used to build libraries.
20429 LD=$lt_LD
20430
20431 # How to create reloadable object files.
20432 reload_flag=$lt_reload_flag
20433 reload_cmds=$lt_reload_cmds
20434
20435 # Commands used to build an old-style archive.
20436 old_archive_cmds=$lt_old_archive_cmds
20437
20438 # A language specific compiler.
20439 CC=$lt_compiler
20440
20441 # Is the compiler the GNU compiler?
20442 with_gcc=$GCC
20443
20444 # Compiler flag to turn off builtin functions.
20445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20446
20447 # Additional compiler flags for building library objects.
20448 pic_flag=$lt_lt_prog_compiler_pic
20449
20450 # How to pass a linker flag through the compiler.
20451 wl=$lt_lt_prog_compiler_wl
20452
20453 # Compiler flag to prevent dynamic linking.
20454 link_static_flag=$lt_lt_prog_compiler_static
20455
20456 # Does compiler simultaneously support -c and -o options?
20457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20458
20459 # Whether or not to add -lc for building shared libraries.
20460 build_libtool_need_lc=$archive_cmds_need_lc
20461
20462 # Whether or not to disallow shared libs when runtime libs are static.
20463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20464
20465 # Compiler flag to allow reflexive dlopens.
20466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20467
20468 # Compiler flag to generate shared objects directly from archives.
20469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20470
20471 # Whether the compiler copes with passing no objects directly.
20472 compiler_needs_object=$lt_compiler_needs_object
20473
20474 # Create an old-style archive from a shared archive.
20475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20476
20477 # Create a temporary old-style archive to link instead of a shared archive.
20478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20479
20480 # Commands used to build a shared archive.
20481 archive_cmds=$lt_archive_cmds
20482 archive_expsym_cmds=$lt_archive_expsym_cmds
20483
20484 # Commands used to build a loadable module if different from building
20485 # a shared archive.
20486 module_cmds=$lt_module_cmds
20487 module_expsym_cmds=$lt_module_expsym_cmds
20488
20489 # Whether we are building with GNU ld or not.
20490 with_gnu_ld=$lt_with_gnu_ld
20491
20492 # Flag that allows shared libraries with undefined symbols to be built.
20493 allow_undefined_flag=$lt_allow_undefined_flag
20494
20495 # Flag that enforces no undefined symbols.
20496 no_undefined_flag=$lt_no_undefined_flag
20497
20498 # Flag to hardcode \$libdir into a binary during linking.
20499 # This must work even if \$libdir does not exist
20500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20501
20502 # Whether we need a single "-rpath" flag with a separated argument.
20503 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20504
20505 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20506 # DIR into the resulting binary.
20507 hardcode_direct=$hardcode_direct
20508
20509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20510 # DIR into the resulting binary and the resulting library dependency is
20511 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20512 # library is relocated.
20513 hardcode_direct_absolute=$hardcode_direct_absolute
20514
20515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20516 # into the resulting binary.
20517 hardcode_minus_L=$hardcode_minus_L
20518
20519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20520 # into the resulting binary.
20521 hardcode_shlibpath_var=$hardcode_shlibpath_var
20522
20523 # Set to "yes" if building a shared library automatically hardcodes DIR
20524 # into the library and all subsequent libraries and executables linked
20525 # against it.
20526 hardcode_automatic=$hardcode_automatic
20527
20528 # Set to yes if linker adds runtime paths of dependent libraries
20529 # to runtime path list.
20530 inherit_rpath=$inherit_rpath
20531
20532 # Whether libtool must link a program against all its dependency libraries.
20533 link_all_deplibs=$link_all_deplibs
20534
20535 # Set to "yes" if exported symbols are required.
20536 always_export_symbols=$always_export_symbols
20537
20538 # The commands to list exported symbols.
20539 export_symbols_cmds=$lt_export_symbols_cmds
20540
20541 # Symbols that should not be listed in the preloaded symbols.
20542 exclude_expsyms=$lt_exclude_expsyms
20543
20544 # Symbols that must always be exported.
20545 include_expsyms=$lt_include_expsyms
20546
20547 # Commands necessary for linking programs (against libraries) with templates.
20548 prelink_cmds=$lt_prelink_cmds
20549
20550 # Commands necessary for finishing linking programs.
20551 postlink_cmds=$lt_postlink_cmds
20552
20553 # Specify filename containing input files.
20554 file_list_spec=$lt_file_list_spec
20555
20556 # How to hardcode a shared library path into an executable.
20557 hardcode_action=$hardcode_action
20558
20559 # ### END LIBTOOL CONFIG
20560
20561 _LT_EOF
20562
20563 cat <<'_LT_EOF' >> "$cfgfile"
20564
20565 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20566
20567 # func_munge_path_list VARIABLE PATH
20568 # -----------------------------------
20569 # VARIABLE is name of variable containing _space_ separated list of
20570 # directories to be munged by the contents of PATH, which is string
20571 # having a format:
20572 # "DIR[:DIR]:"
20573 # string "DIR[ DIR]" will be prepended to VARIABLE
20574 # ":DIR[:DIR]"
20575 # string "DIR[ DIR]" will be appended to VARIABLE
20576 # "DIRP[:DIRP]::[DIRA:]DIRA"
20577 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20578 # "DIRA[ DIRA]" will be appended to VARIABLE
20579 # "DIR[:DIR]"
20580 # VARIABLE will be replaced by "DIR[ DIR]"
20581 func_munge_path_list ()
20582 {
20583 case x$2 in
20584 x)
20585 ;;
20586 *:)
20587 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20588 ;;
20589 x:*)
20590 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20591 ;;
20592 *::*)
20593 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20594 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20595 ;;
20596 *)
20597 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20598 ;;
20599 esac
20600 }
20601
20602
20603 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20604 func_cc_basename ()
20605 {
20606 for cc_temp in $*""; do
20607 case $cc_temp in
20608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20610 \-*) ;;
20611 *) break;;
20612 esac
20613 done
20614 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20615 }
20616
20617
20618 # ### END FUNCTIONS SHARED WITH CONFIGURE
20619
20620 _LT_EOF
20621
20622 case $host_os in
20623 aix3*)
20624 cat <<\_LT_EOF >> "$cfgfile"
20625 # AIX sometimes has problems with the GCC collect2 program. For some
20626 # reason, if we set the COLLECT_NAMES environment variable, the problems
20627 # vanish in a puff of smoke.
20628 if test set != "${COLLECT_NAMES+set}"; then
20629 COLLECT_NAMES=
20630 export COLLECT_NAMES
20631 fi
20632 _LT_EOF
20633 ;;
20634 esac
20635
20636
20637 ltmain=$ac_aux_dir/ltmain.sh
20638
20639
20640 # We use sed instead of cat because bash on DJGPP gets confused if
20641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20642 # text mode, it properly converts lines to CR/LF. This bash problem
20643 # is reportedly fixed, but why not run on old versions too?
20644 sed '$q' "$ltmain" >> "$cfgfile" \
20645 || (rm -f "$cfgfile"; exit 1)
20646
20647 mv -f "$cfgfile" "$ofile" ||
20648 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20649 chmod +x "$ofile"
20650
20651 ;;
20652
20653 esac
20654 done # for ac_tag
20655
20656
20657 as_fn_exit 0
20658 _ACEOF
20659 ac_clean_files=$ac_clean_files_save
20660
20661 test $ac_write_fail = 0 ||
20662 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20663
20664
20665 # configure is writing to config.log, and then calls config.status.
20666 # config.status does its own redirection, appending to config.log.
20667 # Unfortunately, on DOS this fails, as config.log is still kept open
20668 # by configure, so config.status won't be able to write to it; its
20669 # output is simply discarded. So we exec the FD to /dev/null,
20670 # effectively closing config.log, so it can be properly (re)opened and
20671 # appended to by config.status. When coming back to configure, we
20672 # need to make the FD available again.
20673 if test "$no_create" != yes; then
20674 ac_cs_success=:
20675 ac_config_status_args=
20676 test "$silent" = yes &&
20677 ac_config_status_args="$ac_config_status_args --quiet"
20678 exec 5>/dev/null
20679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20680 exec 5>>config.log
20681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20682 # would make configure fail if this is the last instruction.
20683 $ac_cs_success || as_fn_exit 1
20684 fi
20685 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20687 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20688 fi
20689
20690