configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libFS 1.0.7.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libFS'
593 PACKAGE_TARNAME='libFS'
594 PACKAGE_VERSION='1.0.7'
595 PACKAGE_STRING='libFS 1.0.7'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 MAKE_LINT_LIB_FALSE
641 MAKE_LINT_LIB_TRUE
642 LINTLIB
643 LINT_FALSE
644 LINT_TRUE
645 LINT_FLAGS
646 LINT
647 FS_LIBS
648 FS_CFLAGS
649 XTMALLOC_ZERO_CFLAGS
650 XMALLOC_ZERO_CFLAGS
651 MALLOC_ZERO_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 INSTALL_CMD
667 PKG_CONFIG
668 CHANGELOG_CMD
669 STRICT_CFLAGS
670 CWARNFLAGS
671 BASE_CFLAGS
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 SED
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 LIBTOOL
699 EGREP
700 GREP
701 CPP
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_dependency_tracking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_selective_werror
797 enable_strict_compilation
798 enable_malloc0returnsnull
799 enable_unix_transport
800 enable_tcp_transport
801 enable_ipv6
802 enable_local_transport
803 with_lint
804 enable_lint_library
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 FS_CFLAGS
817 FS_LIBS
818 LINT
819 LINT_FLAGS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
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
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 libFS 1.0.7 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 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libFS 1.0.7:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-selective-werror
1450 Turn off selective compiler errors. (default:
1451 enabled)
1452 --enable-strict-compilation
1453 Enable all warnings from compiler and make them
1454 errors (default: disabled)
1455 --enable-malloc0returnsnull
1456 malloc(0) returns NULL (default: auto)
1457 --enable-unix-transport Enable UNIX domain socket transport
1458 --enable-tcp-transport Enable TCP socket transport
1459 --enable-ipv6 Enable IPv6 support
1460 --enable-local-transport
1461 Enable os-specific local transport
1462 --enable-lint-library Create lint library (default: disabled)
1463
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot=DIR Search for dependent libraries within DIR
1471 (or the compiler's sysroot if not specified).
1472 --with-lint Use a lint-style source code checker (default:
1473 disabled)
1474
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CPP C preprocessor
1484 PKG_CONFIG path to pkg-config utility
1485 FS_CFLAGS C compiler flags for FS, overriding pkg-config
1486 FS_LIBS linker flags for FS, overriding pkg-config
1487 LINT Path to a lint-style command
1488 LINT_FLAGS Flags for the lint-style command
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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 libFS configure 1.0.7
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_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1649 # accordingly.
1650 ac_fn_c_check_header_mongrel ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 else
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
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 ac_header_compiler=yes
1673 else
1674 ac_header_compiler=no
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1679
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689 else
1690 ac_header_preproc=no
1691 fi
1692 rm -f conftest.err conftest.i conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1695
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ( $as_echo "## ---------------------------------------------------------------------- ##
1716 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1717 ## ---------------------------------------------------------------------- ##"
1718 ) | sed "s/^/$as_me: WARNING: /" >&2
1719 ;;
1720 esac
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 eval "$3=\$ac_header_compiler"
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_mongrel
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists and can be compiled using the include files in
1781 # INCLUDES, setting the cache variable VAR accordingly.
1782 ac_fn_c_check_header_compile ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_try_link LINENO
1810 # -----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_link ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_link
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1923 # ---------------------------------------------
1924 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1925 # accordingly.
1926 ac_fn_c_check_decl ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 as_decl_name=`echo $2|sed 's/ *(.*//'`
1930 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1932 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 int
1940 main ()
1941 {
1942 #ifndef $as_decl_name
1943 #ifdef __cplusplus
1944 (void) $as_decl_use;
1945 #else
1946 (void) $as_decl_name;
1947 #endif
1948 #endif
1949
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$3=yes"
1956 else
1957 eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_decl
1967
1968 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1969 # ----------------------------------------------------
1970 # Tries to find if the field MEMBER exists in type AGGR, after including
1971 # INCLUDES, setting cache variable VAR accordingly.
1972 ac_fn_c_check_member ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1976 $as_echo_n "checking for $2.$3... " >&6; }
1977 if eval \${$4+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $5
1983 int
1984 main ()
1985 {
1986 static $2 ac_aggr;
1987 if (ac_aggr.$3)
1988 return 0;
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$4=yes"
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $5
1999 int
2000 main ()
2001 {
2002 static $2 ac_aggr;
2003 if (sizeof ac_aggr.$3)
2004 return 0;
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 eval "$4=yes"
2011 else
2012 eval "$4=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$4
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_member
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=no"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof ($2))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main ()
2056 {
2057 if (sizeof (($2)))
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064
2065 else
2066 eval "$3=yes"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_type
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2081
2082 It was created by libFS $as_me 1.0.7, which was
2083 generated by GNU Autoconf 2.69. Invocation command line was
2084
2085 $ $0 $@
2086
2087 _ACEOF
2088 exec 5>>config.log
2089 {
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2094
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2108 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
2112 _ASUNAME
2113
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 $as_echo "PATH: $as_dir"
2120 done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
2153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 esac
2156 case $ac_pass in
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158 2)
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2162 else
2163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
2174 fi
2175 as_fn_append ac_configure_args " '$ac_arg'"
2176 ;;
2177 esac
2178 done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
2190 {
2191 echo
2192
2193 $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2196 echo
2197 # The following way of writing the cache mishandles newlines in values,
2198 (
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
2204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210 *) { eval $ac_var=; unset $ac_var;} ;;
2211 esac ;;
2212 esac
2213 done
2214 (set) 2>&1 |
2215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
2217 sed -n \
2218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
2221 *)
2222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 ;;
2224 esac |
2225 sort
2226 )
2227 echo
2228
2229 $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2232 echo
2233 for ac_var in $ac_subst_vars
2234 do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2242
2243 if test -n "$ac_subst_files"; then
2244 $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2247 echo
2248 for ac_var in $ac_subst_files
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257 fi
2258
2259 if test -s confdefs.h; then
2260 $as_echo "## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##"
2263 echo
2264 cat confdefs.h
2265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
2268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
2270 } >&5
2271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273 exit $exit_status
2274 ' 0
2275 for ac_signal in 1 2 13 15; do
2276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2279
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2282
2283 $as_echo "/* confdefs.h */" > confdefs.h
2284
2285 # Predefined preprocessor variables.
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2310
2311
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326 else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2329 fi
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 do
2332 test "x$ac_site_file" = xNONE && continue
2333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2342 fi
2343 done
2344
2345 if test -r "$cache_file"; then
2346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2351 case $cache_file in
2352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
2354 esac
2355 fi
2356 else
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359 >$cache_file
2360 fi
2361
2362 # Check that the precious variables saved in the cache have kept the same
2363 # value.
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
2370 case $ac_old_set,$ac_new_set in
2371 set,)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,set)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,);;
2380 *)
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
2382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2395 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2398 fi;;
2399 esac
2400 # Pass precious variables to config.status.
2401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409 esac
2410 fi
2411 done
2412 if $ac_cache_corrupted; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 fi
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429
2430
2431 ac_config_headers="$ac_config_headers config.h"
2432
2433
2434 # Initialize Automake
2435 am__api_version='1.15'
2436
2437 ac_aux_dir=
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439 if test -f "$ac_dir/install-sh"; then
2440 ac_aux_dir=$ac_dir
2441 ac_install_sh="$ac_aux_dir/install-sh -c"
2442 break
2443 elif test -f "$ac_dir/install.sh"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/install.sh -c"
2446 break
2447 elif test -f "$ac_dir/shtool"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/shtool install -c"
2450 break
2451 fi
2452 done
2453 if test -z "$ac_aux_dir"; then
2454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2455 fi
2456
2457 # These three variables are undocumented and unsupported,
2458 # and are intended to be withdrawn in a future Autoconf release.
2459 # They can cause serious problems if a builder's source tree is in a directory
2460 # whose full name contains unusual characters.
2461 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2462 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2463 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2464
2465
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2472 # AIX /bin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in #((
2493 ./ | .// | /[cC]/* | \
2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2496 /usr/ucb/* ) ;;
2497 *)
2498 # OSF1 and SCO ODT 3.0 have their own names for install.
2499 # Don't use installbsd from OSF since it installs stuff as root
2500 # by default.
2501 for ac_prog in ginstall scoinst install; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2504 if test $ac_prog = install &&
2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # AIX install. It has an incompatible calling convention.
2507 :
2508 elif test $ac_prog = install &&
2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # program-specific install script used by HP pwplus--don't use.
2511 :
2512 else
2513 rm -rf conftest.one conftest.two conftest.dir
2514 echo one > conftest.one
2515 echo two > conftest.two
2516 mkdir conftest.dir
2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518 test -s conftest.one && test -s conftest.two &&
2519 test -s conftest.dir/conftest.one &&
2520 test -s conftest.dir/conftest.two
2521 then
2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2523 break 3
2524 fi
2525 fi
2526 fi
2527 done
2528 done
2529 ;;
2530 esac
2531
2532 done
2533 IFS=$as_save_IFS
2534
2535 rm -rf conftest.one conftest.two conftest.dir
2536
2537 fi
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL=$ac_cv_path_install
2540 else
2541 # As a last resort, use the slow shell script. Don't cache a
2542 # value for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the value is a relative name.
2545 INSTALL=$ac_install_sh
2546 fi
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2550
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2561 # Reject unsafe characters in $srcdir or the absolute working directory
2562 # name. Accept space and tab only in the latter.
2563 am_lf='
2564 '
2565 case `pwd` in
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2568 esac
2569 case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2572 esac
2573
2574 # Do 'set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 am_has_slept=no
2581 for am_try in 1 2; do
2582 echo "timestamp, slept: $am_has_slept" > conftest.file
2583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t "$srcdir/configure" conftest.file`
2587 fi
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" "$LINENO" 5
2597 fi
2598 if test "$2" = conftest.file || test $am_try -eq 2; then
2599 break
2600 fi
2601 # Just in case.
2602 sleep 1
2603 am_has_slept=yes
2604 done
2605 test "$2" = conftest.file
2606 )
2607 then
2608 # Ok.
2609 :
2610 else
2611 as_fn_error $? "newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 # If we didn't sleep, we still need to ensure time stamps of config.status and
2617 # generated files are strictly newer.
2618 am_sleep_pid=
2619 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2620 ( sleep 1 ) &
2621 am_sleep_pid=$!
2622 fi
2623
2624 rm -f conftest.file
2625
2626 test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628 # Use a double $ so make ignores it.
2629 test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631 # Double any \ or $.
2632 # By default was `s,x,x', remove it if useless.
2633 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2635
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639 if test x"${MISSING+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643 *)
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645 esac
2646 fi
2647 # Use eval to expand $SHELL
2648 if eval "$MISSING --is-lightweight"; then
2649 am_missing_run="$MISSING "
2650 else
2651 am_missing_run=
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2653 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2654 fi
2655
2656 if test x"${install_sh+set}" != xset; then
2657 case $am_aux_dir in
2658 *\ * | *\ *)
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660 *)
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 esac
2663 fi
2664
2665 # Installed binaries are usually stripped using 'strip' when the user
2666 # run "make install-strip". However 'strip' might not be the right
2667 # tool to use in cross-compilation environments, therefore Automake
2668 # will honor the 'STRIP' environment variable to overrule this program.
2669 if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}strip; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_STRIP+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 STRIP=$ac_cv_prog_STRIP
2699 if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701 $as_echo "$STRIP" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 fi
2709 if test -z "$ac_cv_prog_STRIP"; then
2710 ac_ct_STRIP=$STRIP
2711 # Extract the first word of "strip", so it can be a program name with args.
2712 set dummy strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739 if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741 $as_echo "$ac_ct_STRIP" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747 if test "x$ac_ct_STRIP" = x; then
2748 STRIP=":"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 STRIP=$ac_ct_STRIP
2757 fi
2758 else
2759 STRIP="$ac_cv_prog_STRIP"
2760 fi
2761
2762 fi
2763 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767 if test -z "$MKDIR_P"; then
2768 if ${ac_cv_path_mkdir+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_prog in mkdir gmkdir; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784 break 3;;
2785 esac
2786 done
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792
2793 test -d ./--version && rmdir ./--version
2794 if test "${ac_cv_path_mkdir+set}" = set; then
2795 MKDIR_P="$ac_cv_path_mkdir -p"
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for MKDIR_P within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 MKDIR_P="$ac_install_sh -d"
2802 fi
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805 $as_echo "$MKDIR_P" >&6; }
2806
2807 for ac_prog in gawk mawk nawk awk
2808 do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_AWK+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_AWK="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 AWK=$ac_cv_prog_AWK
2837 if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839 $as_echo "$AWK" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845
2846 test -n "$AWK" && break
2847 done
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2851 set x ${MAKE-make}
2852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 cat >conftest.make <<\_ACEOF
2857 SHELL = /bin/sh
2858 all:
2859 @echo '@@@%%%=$(MAKE)=@@@%%%'
2860 _ACEOF
2861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2863 *@@@%%%=?*=@@@%%%*)
2864 eval ac_cv_prog_make_${ac_make}_set=yes;;
2865 *)
2866 eval ac_cv_prog_make_${ac_make}_set=no;;
2867 esac
2868 rm -f conftest.make
2869 fi
2870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 SET_MAKE=
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 SET_MAKE="MAKE=${MAKE-make}"
2878 fi
2879
2880 rm -rf .tst 2>/dev/null
2881 mkdir .tst 2>/dev/null
2882 if test -d .tst; then
2883 am__leading_dot=.
2884 else
2885 am__leading_dot=_
2886 fi
2887 rmdir .tst 2>/dev/null
2888
2889 # Check whether --enable-silent-rules was given.
2890 if test "${enable_silent_rules+set}" = set; then :
2891 enableval=$enable_silent_rules;
2892 fi
2893
2894 case $enable_silent_rules in # (((
2895 yes) AM_DEFAULT_VERBOSITY=0;;
2896 no) AM_DEFAULT_VERBOSITY=1;;
2897 *) AM_DEFAULT_VERBOSITY=1;;
2898 esac
2899 am_make=${MAKE-make}
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2901 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2902 if ${am_cv_make_support_nested_variables+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if $as_echo 'TRUE=$(BAR$(V))
2906 BAR0=false
2907 BAR1=true
2908 V=1
2909 am__doit:
2910 @$(TRUE)
2911 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2912 am_cv_make_support_nested_variables=yes
2913 else
2914 am_cv_make_support_nested_variables=no
2915 fi
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2918 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2919 if test $am_cv_make_support_nested_variables = yes; then
2920 AM_V='$(V)'
2921 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2922 else
2923 AM_V=$AM_DEFAULT_VERBOSITY
2924 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2925 fi
2926 AM_BACKSLASH='\'
2927
2928 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status; then
2934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2935 fi
2936 fi
2937
2938 # test whether we have cygpath
2939 if test -z "$CYGPATH_W"; then
2940 if (cygpath --version) >/dev/null 2>/dev/null; then
2941 CYGPATH_W='cygpath -w'
2942 else
2943 CYGPATH_W=echo
2944 fi
2945 fi
2946
2947
2948 # Define the identity of the package.
2949 PACKAGE='libFS'
2950 VERSION='1.0.7'
2951
2952
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE "$PACKAGE"
2955 _ACEOF
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define VERSION "$VERSION"
2960 _ACEOF
2961
2962 # Some tools Automake needs.
2963
2964 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965
2966
2967 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2968
2969
2970 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971
2972
2973 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2974
2975
2976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2977
2978 # For better backward compatibility. To be removed once Automake 1.9.x
2979 # dies out for good. For more background, see:
2980 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2981 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2982 mkdir_p='$(MKDIR_P)'
2983
2984 # We need awk for the "check" target (and possibly the TAP driver). The
2985 # system "awk" is bad on some platforms.
2986 # Always define AMTAR for backward compatibility. Yes, it's still used
2987 # in the wild :-( We should find a proper way to deprecate it ...
2988 AMTAR='$${TAR-tar}'
2989
2990
2991 # We'll loop over all known methods to create a tar archive until one works.
2992 _am_tools='gnutar pax cpio none'
2993
2994 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2995
2996
2997
2998
2999
3000
3001 # POSIX will say in a future version that running "rm -f" with no argument
3002 # is OK; and we want to be able to make that assumption in our Makefile
3003 # recipes. So use an aggressive probe to check that the usage we want is
3004 # actually supported "in the wild" to an acceptable degree.
3005 # See automake bug#10828.
3006 # To make any issue more visible, cause the running configure to be aborted
3007 # by default if the 'rm' program in use doesn't match our expectations; the
3008 # user can still override this though.
3009 if rm -f && rm -fr && rm -rf; then : OK; else
3010 cat >&2 <<'END'
3011 Oops!
3012
3013 Your 'rm' program seems unable to run without file operands specified
3014 on the command line, even when the '-f' option is present. This is contrary
3015 to the behaviour of most rm programs out there, and not conforming with
3016 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3017
3018 Please tell bug-automake@gnu.org about your system, including the value
3019 of your $PATH and any error possibly output before this message. This
3020 can help us improve future automake versions.
3021
3022 END
3023 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3024 echo 'Configuration will proceed anyway, since you have set the' >&2
3025 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3026 echo >&2
3027 else
3028 cat >&2 <<'END'
3029 Aborting the configuration process, to ensure you take notice of the issue.
3030
3031 You can download and install GNU coreutils to get an 'rm' implementation
3032 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3033
3034 If you want to complete the configuration process using your problematic
3035 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3036 to "yes", and re-run configure.
3037
3038 END
3039 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3040 fi
3041 fi
3042
3043
3044 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3045 # Must be called before any macros that run the compiler (like
3046 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3047 DEPDIR="${am__leading_dot}deps"
3048
3049 ac_config_commands="$ac_config_commands depfiles"
3050
3051
3052 am_make=${MAKE-make}
3053 cat > confinc << 'END'
3054 am__doit:
3055 @echo this is the am__doit target
3056 .PHONY: am__doit
3057 END
3058 # If we don't find an include directive, just comment out the code.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3060 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3061 am__include="#"
3062 am__quote=
3063 _am_result=none
3064 # First try GNU make style include.
3065 echo "include confinc" > confmf
3066 # Ignore all kinds of additional output from 'make'.
3067 case `$am_make -s -f confmf 2> /dev/null` in #(
3068 *the\ am__doit\ target*)
3069 am__include=include
3070 am__quote=
3071 _am_result=GNU
3072 ;;
3073 esac
3074 # Now try BSD make style include.
3075 if test "$am__include" = "#"; then
3076 echo '.include "confinc"' > confmf
3077 case `$am_make -s -f confmf 2> /dev/null` in #(
3078 *the\ am__doit\ target*)
3079 am__include=.include
3080 am__quote="\""
3081 _am_result=BSD
3082 ;;
3083 esac
3084 fi
3085
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3088 $as_echo "$_am_result" >&6; }
3089 rm -f confinc confmf
3090
3091 # Check whether --enable-dependency-tracking was given.
3092 if test "${enable_dependency_tracking+set}" = set; then :
3093 enableval=$enable_dependency_tracking;
3094 fi
3095
3096 if test "x$enable_dependency_tracking" != xno; then
3097 am_depcomp="$ac_aux_dir/depcomp"
3098 AMDEPBACKSLASH='\'
3099 am__nodep='_no'
3100 fi
3101 if test "x$enable_dependency_tracking" != xno; then
3102 AMDEP_TRUE=
3103 AMDEP_FALSE='#'
3104 else
3105 AMDEP_TRUE='#'
3106 AMDEP_FALSE=
3107 fi
3108
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$ac_cv_prog_CC"; then
3155 ac_ct_CC=$CC
3156 # Extract the first word of "gcc", so it can be a program name with args.
3157 set dummy gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_ac_ct_CC="gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199 ac_tool_warned=yes ;;
3200 esac
3201 CC=$ac_ct_CC
3202 fi
3203 else
3204 CC="$ac_cv_prog_CC"
3205 fi
3206
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}cc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="${ac_tool_prefix}cc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 fi
3248 if test -z "$CC"; then
3249 # Extract the first word of "cc", so it can be a program name with args.
3250 set dummy cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 ac_prog_rejected=no
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3268 ac_prog_rejected=yes
3269 continue
3270 fi
3271 ac_cv_prog_CC="cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 if test $ac_prog_rejected = yes; then
3280 # We found a bogon in the path, so make sure we never use it.
3281 set dummy $ac_cv_prog_CC
3282 shift
3283 if test $# != 0; then
3284 # We chose a different compiler from the bogus one.
3285 # However, it has the same basename, so the bogon will be chosen
3286 # first if we set CC to just the basename; use the full file name.
3287 shift
3288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3289 fi
3290 fi
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 for ac_prog in cl.exe
3307 do
3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 test -n "$CC" && break
3346 done
3347 fi
3348 if test -z "$CC"; then
3349 ac_ct_CC=$CC
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$ac_ct_CC"; then
3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_CC="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380 if test -n "$ac_ct_CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382 $as_echo "$ac_ct_CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$ac_ct_CC" && break
3390 done
3391
3392 if test "x$ac_ct_CC" = x; then
3393 CC=""
3394 else
3395 case $cross_compiling:$ac_tool_warned in
3396 yes:)
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399 ac_tool_warned=yes ;;
3400 esac
3401 CC=$ac_ct_CC
3402 fi
3403 fi
3404
3405 fi
3406
3407
3408 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "no acceptable C compiler found in \$PATH
3411 See \`config.log' for more details" "$LINENO" 5; }
3412
3413 # Provide some information about the compiler.
3414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3415 set X $ac_compile
3416 ac_compiler=$2
3417 for ac_option in --version -v -V -qversion; do
3418 { { ac_try="$ac_compiler $ac_option >&5"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3426 ac_status=$?
3427 if test -s conftest.err; then
3428 sed '10a\
3429 ... rest of stderr output deleted ...
3430 10q' conftest.err >conftest.er1
3431 cat conftest.er1 >&5
3432 fi
3433 rm -f conftest.er1 conftest.err
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }
3436 done
3437
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 ac_clean_files_save=$ac_clean_files
3450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3451 # Try to create an executable without -o first, disregard a.out.
3452 # It will help us diagnose broken compilers, and finding out an intuition
3453 # of exeext.
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3455 $as_echo_n "checking whether the C compiler works... " >&6; }
3456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3457
3458 # The possible output files:
3459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3460
3461 ac_rmfiles=
3462 for ac_file in $ac_files
3463 do
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3467 esac
3468 done
3469 rm -f $ac_rmfiles
3470
3471 if { { ac_try="$ac_link_default"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link_default") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3485 # so that the user can short-circuit this test for compilers unknown to
3486 # Autoconf.
3487 for ac_file in $ac_files ''
3488 do
3489 test -f "$ac_file" || continue
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3492 ;;
3493 [ab].out )
3494 # We found the default executable, but exeext='' is most
3495 # certainly right.
3496 break;;
3497 *.* )
3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3499 then :; else
3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501 fi
3502 # We set ac_cv_exeext here because the later test for it is not
3503 # safe: cross compilers may not add the suffix if given an `-o'
3504 # argument, so we may need to know it at that point already.
3505 # Even if this section looks crufty: it has the advantage of
3506 # actually working.
3507 break;;
3508 * )
3509 break;;
3510 esac
3511 done
3512 test "$ac_cv_exeext" = no && ac_cv_exeext=
3513
3514 else
3515 ac_file=''
3516 fi
3517 if test -z "$ac_file"; then :
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error 77 "C compiler cannot create executables
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529 $as_echo "yes" >&6; }
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3532 $as_echo_n "checking for C compiler default output file name... " >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3534 $as_echo "$ac_file" >&6; }
3535 ac_exeext=$ac_cv_exeext
3536
3537 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3538 ac_clean_files=$ac_clean_files_save
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { { ac_try="$ac_link"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 break;;
3562 * ) break;;
3563 esac
3564 done
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 fi
3571 rm -f conftest conftest$ac_cv_exeext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573 $as_echo "$ac_cv_exeext" >&6; }
3574
3575 rm -f conftest.$ac_ext
3576 EXEEXT=$ac_cv_exeext
3577 ac_exeext=$EXEEXT
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdio.h>
3581 int
3582 main ()
3583 {
3584 FILE *f = fopen ("conftest.out", "w");
3585 return ferror (f) || fclose (f) != 0;
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 ac_clean_files="$ac_clean_files conftest.out"
3592 # Check that the compiler produces executables we can run. If not, either
3593 # the compiler is broken, or we cross compile.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3595 $as_echo_n "checking whether we are cross compiling... " >&6; }
3596 if test "$cross_compiling" != yes; then
3597 { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 if { ac_try='./conftest$ac_cv_exeext'
3609 { { case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_try") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; }; then
3619 cross_compiling=no
3620 else
3621 if test "$cross_compiling" = maybe; then
3622 cross_compiling=yes
3623 else
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "cannot run C compiled programs.
3627 If you meant to cross compile, use \`--host'.
3628 See \`config.log' for more details" "$LINENO" 5; }
3629 fi
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3633 $as_echo "$cross_compiling" >&6; }
3634
3635 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3636 ac_clean_files=$ac_clean_files_save
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3638 $as_echo_n "checking for suffix of object files... " >&6; }
3639 if ${ac_cv_objext+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.o conftest.obj
3654 if { { ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compile") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 for ac_file in conftest.o conftest.obj conftest.*; do
3666 test -f "$ac_file" || continue;
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670 break;;
3671 esac
3672 done
3673 else
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3685 $as_echo "$ac_cv_objext" >&6; }
3686 OBJEXT=$ac_cv_objext
3687 ac_objext=$OBJEXT
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3689 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3690 if ${ac_cv_c_compiler_gnu+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699 #ifndef __GNUC__
3700 choke me
3701 #endif
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_compiler_gnu=yes
3709 else
3710 ac_compiler_gnu=no
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3714
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3717 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3718 if test $ac_compiler_gnu = yes; then
3719 GCC=yes
3720 else
3721 GCC=
3722 fi
3723 ac_test_CFLAGS=${CFLAGS+set}
3724 ac_save_CFLAGS=$CFLAGS
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3726 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3727 if ${ac_cv_prog_cc_g+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_save_c_werror_flag=$ac_c_werror_flag
3731 ac_c_werror_flag=yes
3732 ac_cv_prog_cc_g=no
3733 CFLAGS="-g"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_g=yes
3747 else
3748 CFLAGS=""
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761
3762 else
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3764 CFLAGS="-g"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_g=yes
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3792 CFLAGS="-g -O2"
3793 else
3794 CFLAGS="-g"
3795 fi
3796 else
3797 if test "$GCC" = yes; then
3798 CFLAGS="-O2"
3799 else
3800 CFLAGS=
3801 fi
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805 if ${ac_cv_prog_cc_c89+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 ac_cv_prog_cc_c89=no
3809 ac_save_CC=$CC
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <stdarg.h>
3813 #include <stdio.h>
3814 struct stat;
3815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3816 struct buf { int x; };
3817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3818 static char *e (p, i)
3819 char **p;
3820 int i;
3821 {
3822 return p[i];
3823 }
3824 static char *f (char * (*g) (char **, int), char **p, ...)
3825 {
3826 char *s;
3827 va_list v;
3828 va_start (v,p);
3829 s = g (p, va_arg (v,int));
3830 va_end (v);
3831 return s;
3832 }
3833
3834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3835 function prototypes and stuff, but not '\xHH' hex character constants.
3836 These don't provoke an error unfortunately, instead are silently treated
3837 as 'x'. The following induces an error, until -std is added to get
3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3839 array size at least. It's necessary to write '\x00'==0 to get something
3840 that's true only with -std. */
3841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842
3843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3844 inside strings and character constants. */
3845 #define FOO(x) 'x'
3846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847
3848 int test (int i, double x);
3849 struct s1 {int (*f) (int a);};
3850 struct s2 {int (*f) (double a);};
3851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 int argc;
3853 char **argv;
3854 int
3855 main ()
3856 {
3857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 do
3865 CC="$ac_save_CC $ac_arg"
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_c89=$ac_arg
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext
3870 test "x$ac_cv_prog_cc_c89" != "xno" && break
3871 done
3872 rm -f conftest.$ac_ext
3873 CC=$ac_save_CC
3874
3875 fi
3876 # AC_CACHE_VAL
3877 case "x$ac_cv_prog_cc_c89" in
3878 x)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880 $as_echo "none needed" >&6; } ;;
3881 xno)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3883 $as_echo "unsupported" >&6; } ;;
3884 *)
3885 CC="$CC $ac_cv_prog_cc_c89"
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3888 esac
3889 if test "x$ac_cv_prog_cc_c89" != xno; then :
3890
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3905 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3906 if ${am_cv_prog_cc_c_o+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911
3912 int
3913 main ()
3914 {
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 # Make sure it works both with $CC and with simple cc.
3921 # Following AC_PROG_CC_C_O, we do the test twice because some
3922 # compilers refuse to overwrite an existing .o file with -o,
3923 # though they will create one.
3924 am_cv_prog_cc_c_o=yes
3925 for am_i in 1 2; do
3926 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3927 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } \
3931 && test -f conftest2.$ac_objext; then
3932 : OK
3933 else
3934 am_cv_prog_cc_c_o=no
3935 break
3936 fi
3937 done
3938 rm -f core conftest*
3939 unset am_i
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3942 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3943 if test "$am_cv_prog_cc_c_o" != yes; then
3944 # Losing compiler, so override with the script.
3945 # FIXME: It is wrong to rewrite CC.
3946 # But if we don't then we get into trouble of one sort or another.
3947 # A longer-term fix would be to have automake use am__CC in this case,
3948 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3949 CC="$am_aux_dir/compile $CC"
3950 fi
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957
3958 depcc="$CC" am_compiler_list=
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3961 $as_echo_n "checking dependency style of $depcc... " >&6; }
3962 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3966 # We make a subdir and do the tests there. Otherwise we can end up
3967 # making bogus files that we don't know about and never remove. For
3968 # instance it was reported that on HP-UX the gcc test will end up
3969 # making a dummy file named 'D' -- because '-MD' means "put the output
3970 # in D".
3971 rm -rf conftest.dir
3972 mkdir conftest.dir
3973 # Copy depcomp to subdir because otherwise we won't find it if we're
3974 # using a relative directory.
3975 cp "$am_depcomp" conftest.dir
3976 cd conftest.dir
3977 # We will build objects and dependencies in a subdirectory because
3978 # it helps to detect inapplicable dependency modes. For instance
3979 # both Tru64's cc and ICC support -MD to output dependencies as a
3980 # side effect of compilation, but ICC will put the dependencies in
3981 # the current directory while Tru64 will put them in the object
3982 # directory.
3983 mkdir sub
3984
3985 am_cv_CC_dependencies_compiler_type=none
3986 if test "$am_compiler_list" = ""; then
3987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988 fi
3989 am__universal=false
3990 case " $depcc " in #(
3991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3992 esac
3993
3994 for depmode in $am_compiler_list; do
3995 # Setup a source with many dependencies, because some compilers
3996 # like to wrap large dependency lists on column 80 (with \), and
3997 # we should not choose a depcomp mode which is confused by this.
3998 #
3999 # We need to recreate these files for each test, as the compiler may
4000 # overwrite some of them when testing with obscure command lines.
4001 # This happens at least with the AIX C compiler.
4002 : > sub/conftest.c
4003 for i in 1 2 3 4 5 6; do
4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4006 # Solaris 10 /bin/sh.
4007 echo '/* dummy */' > sub/conftst$i.h
4008 done
4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4010
4011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4012 # mode. It turns out that the SunPro C++ compiler does not properly
4013 # handle '-M -o', and we need to detect this. Also, some Intel
4014 # versions had trouble with output in subdirs.
4015 am__obj=sub/conftest.${OBJEXT-o}
4016 am__minus_obj="-o $am__obj"
4017 case $depmode in
4018 gcc)
4019 # This depmode causes a compiler race in universal mode.
4020 test "$am__universal" = false || continue
4021 ;;
4022 nosideeffect)
4023 # After this tag, mechanisms are not by side-effect, so they'll
4024 # only be used when explicitly requested.
4025 if test "x$enable_dependency_tracking" = xyes; then
4026 continue
4027 else
4028 break
4029 fi
4030 ;;
4031 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4032 # This compiler won't grok '-c -o', but also, the minuso test has
4033 # not run yet. These depmodes are late enough in the game, and
4034 # so weak that their functioning should not be impacted.
4035 am__obj=conftest.${OBJEXT-o}
4036 am__minus_obj=
4037 ;;
4038 none) break ;;
4039 esac
4040 if depmode=$depmode \
4041 source=sub/conftest.c object=$am__obj \
4042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4044 >/dev/null 2>conftest.err &&
4045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4049 # icc doesn't choke on unknown options, it will just issue warnings
4050 # or remarks (even with -Werror). So we grep stderr for any message
4051 # that says an option was ignored or not supported.
4052 # When given -MP, icc 7.0 and 7.1 complain thusly:
4053 # icc: Command line warning: ignoring option '-M'; no argument required
4054 # The diagnosis changed in icc 8.0:
4055 # icc: Command line remark: option '-MP' not supported
4056 if (grep 'ignoring option' conftest.err ||
4057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4058 am_cv_CC_dependencies_compiler_type=$depmode
4059 break
4060 fi
4061 fi
4062 done
4063
4064 cd ..
4065 rm -rf conftest.dir
4066 else
4067 am_cv_CC_dependencies_compiler_type=none
4068 fi
4069
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4072 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4074
4075 if
4076 test "x$enable_dependency_tracking" != xno \
4077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4078 am__fastdepCC_TRUE=
4079 am__fastdepCC_FALSE='#'
4080 else
4081 am__fastdepCC_TRUE='#'
4082 am__fastdepCC_FALSE=
4083 fi
4084
4085
4086
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4094 # On Suns, sometimes $CPP names a directory.
4095 if test -n "$CPP" && test -d "$CPP"; then
4096 CPP=
4097 fi
4098 if test -z "$CPP"; then
4099 if ${ac_cv_prog_CPP+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 # Double quotes because CPP needs to be expanded
4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 do
4105 ac_preproc_ok=false
4106 for ac_c_preproc_warn_flag in '' yes
4107 do
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #ifdef __STDC__
4117 # include <limits.h>
4118 #else
4119 # include <assert.h>
4120 #endif
4121 Syntax error
4122 _ACEOF
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125 else
4126 # Broken: fails on valid input.
4127 continue
4128 fi
4129 rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131 # OK, works on sane cases. Now check whether nonexistent headers
4132 # can be detected and how.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <ac_nonexistent.h>
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4138 # Broken: success on invalid input.
4139 continue
4140 else
4141 # Passes both tests.
4142 ac_preproc_ok=:
4143 break
4144 fi
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147 done
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.i conftest.err conftest.$ac_ext
4150 if $ac_preproc_ok; then :
4151 break
4152 fi
4153
4154 done
4155 ac_cv_prog_CPP=$CPP
4156
4157 fi
4158 CPP=$ac_cv_prog_CPP
4159 else
4160 ac_cv_prog_CPP=$CPP
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163 $as_echo "$CPP" >&6; }
4164 ac_preproc_ok=false
4165 for ac_c_preproc_warn_flag in '' yes
4166 do
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #ifdef __STDC__
4176 # include <limits.h>
4177 #else
4178 # include <assert.h>
4179 #endif
4180 Syntax error
4181 _ACEOF
4182 if ac_fn_c_try_cpp "$LINENO"; then :
4183
4184 else
4185 # Broken: fails on valid input.
4186 continue
4187 fi
4188 rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190 # OK, works on sane cases. Now check whether nonexistent headers
4191 # can be detected and how.
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <ac_nonexistent.h>
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4197 # Broken: success on invalid input.
4198 continue
4199 else
4200 # Passes both tests.
4201 ac_preproc_ok=:
4202 break
4203 fi
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206 done
4207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208 rm -f conftest.i conftest.err conftest.$ac_ext
4209 if $ac_preproc_ok; then :
4210
4211 else
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215 See \`config.log' for more details" "$LINENO" 5; }
4216 fi
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227 if ${ac_cv_path_GREP+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -z "$GREP"; then
4231 ac_path_GREP_found=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_prog in grep ggrep; do
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4241 as_fn_executable_p "$ac_path_GREP" || continue
4242 # Check for GNU ac_path_GREP and select it if it is found.
4243 # Check for GNU $ac_path_GREP
4244 case `"$ac_path_GREP" --version 2>&1` in
4245 *GNU*)
4246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4247 *)
4248 ac_count=0
4249 $as_echo_n 0123456789 >"conftest.in"
4250 while :
4251 do
4252 cat "conftest.in" "conftest.in" >"conftest.tmp"
4253 mv "conftest.tmp" "conftest.in"
4254 cp "conftest.in" "conftest.nl"
4255 $as_echo 'GREP' >> "conftest.nl"
4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4258 as_fn_arith $ac_count + 1 && ac_count=$as_val
4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4260 # Best one so far, save it but keep looking for a better one
4261 ac_cv_path_GREP="$ac_path_GREP"
4262 ac_path_GREP_max=$ac_count
4263 fi
4264 # 10*(2^10) chars as input seems more than enough
4265 test $ac_count -gt 10 && break
4266 done
4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4268 esac
4269
4270 $ac_path_GREP_found && break 3
4271 done
4272 done
4273 done
4274 IFS=$as_save_IFS
4275 if test -z "$ac_cv_path_GREP"; then
4276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4277 fi
4278 else
4279 ac_cv_path_GREP=$GREP
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4284 $as_echo "$ac_cv_path_GREP" >&6; }
4285 GREP="$ac_cv_path_GREP"
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4289 $as_echo_n "checking for egrep... " >&6; }
4290 if ${ac_cv_path_EGREP+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4294 then ac_cv_path_EGREP="$GREP -E"
4295 else
4296 if test -z "$EGREP"; then
4297 ac_path_EGREP_found=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_prog in egrep; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4307 as_fn_executable_p "$ac_path_EGREP" || continue
4308 # Check for GNU ac_path_EGREP and select it if it is found.
4309 # Check for GNU $ac_path_EGREP
4310 case `"$ac_path_EGREP" --version 2>&1` in
4311 *GNU*)
4312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4313 *)
4314 ac_count=0
4315 $as_echo_n 0123456789 >"conftest.in"
4316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'EGREP' >> "conftest.nl"
4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_EGREP="$ac_path_EGREP"
4328 ac_path_EGREP_max=$ac_count
4329 fi
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4335
4336 $ac_path_EGREP_found && break 3
4337 done
4338 done
4339 done
4340 IFS=$as_save_IFS
4341 if test -z "$ac_cv_path_EGREP"; then
4342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343 fi
4344 else
4345 ac_cv_path_EGREP=$EGREP
4346 fi
4347
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4351 $as_echo "$ac_cv_path_EGREP" >&6; }
4352 EGREP="$ac_cv_path_EGREP"
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4356 $as_echo_n "checking for ANSI C header files... " >&6; }
4357 if ${ac_cv_header_stdc+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4363 #include <stdarg.h>
4364 #include <string.h>
4365 #include <float.h>
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_header_stdc=yes
4377 else
4378 ac_cv_header_stdc=no
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
4382 if test $ac_cv_header_stdc = yes; then
4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <string.h>
4387
4388 _ACEOF
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 $EGREP "memchr" >/dev/null 2>&1; then :
4391
4392 else
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest*
4396
4397 fi
4398
4399 if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <stdlib.h>
4404
4405 _ACEOF
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "free" >/dev/null 2>&1; then :
4408
4409 else
4410 ac_cv_header_stdc=no
4411 fi
4412 rm -f conftest*
4413
4414 fi
4415
4416 if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then :
4419 :
4420 else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #include <ctype.h>
4424 #include <stdlib.h>
4425 #if ((' ' & 0x0FF) == 0x020)
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4428 #else
4429 # define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434 #endif
4435
4436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4437 int
4438 main ()
4439 {
4440 int i;
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
4444 return 2;
4445 return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_run "$LINENO"; then :
4449
4450 else
4451 ac_cv_header_stdc=no
4452 fi
4453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4454 conftest.$ac_objext conftest.beam conftest.$ac_ext
4455 fi
4456
4457 fi
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4460 $as_echo "$ac_cv_header_stdc" >&6; }
4461 if test $ac_cv_header_stdc = yes; then
4462
4463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4464
4465 fi
4466
4467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4469 inttypes.h stdint.h unistd.h
4470 do :
4471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4473 "
4474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4475 cat >>confdefs.h <<_ACEOF
4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4477 _ACEOF
4478
4479 fi
4480
4481 done
4482
4483
4484
4485 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4486 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4487 MINIX=yes
4488 else
4489 MINIX=
4490 fi
4491
4492
4493 if test "$MINIX" = yes; then
4494
4495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4496
4497
4498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4499
4500
4501 $as_echo "#define _MINIX 1" >>confdefs.h
4502
4503 fi
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4508 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513
4514 # define __EXTENSIONS__ 1
4515 $ac_includes_default
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_safe_to_define___extensions__=yes
4526 else
4527 ac_cv_safe_to_define___extensions__=no
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4533 test $ac_cv_safe_to_define___extensions__ = yes &&
4534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4535
4536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4537
4538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4539
4540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4541
4542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4543
4544
4545
4546 # Initialize libtool
4547 case `pwd` in
4548 *\ * | *\ *)
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4550 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4551 esac
4552
4553
4554
4555 macro_version='2.4.2'
4556 macro_revision='1.3337'
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 ltmain="$ac_aux_dir/ltmain.sh"
4571
4572 # Make sure we can run config.sub.
4573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4577 $as_echo_n "checking build system type... " >&6; }
4578 if ${ac_cv_build+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 ac_build_alias=$build_alias
4582 test "x$ac_build_alias" = x &&
4583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4584 test "x$ac_build_alias" = x &&
4585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4591 $as_echo "$ac_cv_build" >&6; }
4592 case $ac_cv_build in
4593 *-*-*) ;;
4594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4595 esac
4596 build=$ac_cv_build
4597 ac_save_IFS=$IFS; IFS='-'
4598 set x $ac_cv_build
4599 shift
4600 build_cpu=$1
4601 build_vendor=$2
4602 shift; shift
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4605 build_os=$*
4606 IFS=$ac_save_IFS
4607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4611 $as_echo_n "checking host system type... " >&6; }
4612 if ${ac_cv_host+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test "x$host_alias" = x; then
4616 ac_cv_host=$ac_cv_build
4617 else
4618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4620 fi
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4624 $as_echo "$ac_cv_host" >&6; }
4625 case $ac_cv_host in
4626 *-*-*) ;;
4627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4628 esac
4629 host=$ac_cv_host
4630 ac_save_IFS=$IFS; IFS='-'
4631 set x $ac_cv_host
4632 shift
4633 host_cpu=$1
4634 host_vendor=$2
4635 shift; shift
4636 # Remember, the first character of IFS is used to create $*,
4637 # except with old shells:
4638 host_os=$*
4639 IFS=$ac_save_IFS
4640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4641
4642
4643 # Backslashify metacharacters that are still active within
4644 # double-quoted strings.
4645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4646
4647 # Same as above, but do not quote variable references.
4648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4649
4650 # Sed substitution to delay expansion of an escaped shell variable in a
4651 # double_quote_subst'ed string.
4652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4653
4654 # Sed substitution to delay expansion of an escaped single quote.
4655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4656
4657 # Sed substitution to avoid accidental globbing in evaled expressions
4658 no_glob_subst='s/\*/\\\*/g'
4659
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4675 {
4676 eval 'cat <<_LTECHO_EOF
4677 $1
4678 _LTECHO_EOF'
4679 }
4680 ECHO='func_fallback_echo'
4681 fi
4682
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4686 {
4687 $ECHO ""
4688 }
4689
4690 case "$ECHO" in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4714 if ${ac_cv_path_SED+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718 for ac_i in 1 2 3 4 5 6 7; do
4719 ac_script="$ac_script$as_nl$ac_script"
4720 done
4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722 { ac_script=; unset ac_script;}
4723 if test -z "$SED"; then
4724 ac_path_SED_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in sed gsed; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4734 as_fn_executable_p "$ac_path_SED" || continue
4735 # Check for GNU ac_path_SED and select it if it is found.
4736 # Check for GNU $ac_path_SED
4737 case `"$ac_path_SED" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4740 *)
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4744 do
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo '' >> "conftest.nl"
4749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_SED_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_SED="$ac_path_SED"
4755 ac_path_SED_max=$ac_count
4756 fi
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4762
4763 $ac_path_SED_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_SED"; then
4769 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4770 fi
4771 else
4772 ac_cv_path_SED=$SED
4773 fi
4774
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4777 $as_echo "$ac_cv_path_SED" >&6; }
4778 SED="$ac_cv_path_SED"
4779 rm -f conftest.sed
4780
4781 test -z "$SED" && SED=sed
4782 Xsed="$SED -e 1s/^X//"
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4795 $as_echo_n "checking for fgrep... " >&6; }
4796 if ${ac_cv_path_FGREP+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4800 then ac_cv_path_FGREP="$GREP -F"
4801 else
4802 if test -z "$FGREP"; then
4803 ac_path_FGREP_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4807 do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_prog in fgrep; do
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4813 as_fn_executable_p "$ac_path_FGREP" || continue
4814 # Check for GNU ac_path_FGREP and select it if it is found.
4815 # Check for GNU $ac_path_FGREP
4816 case `"$ac_path_FGREP" --version 2>&1` in
4817 *GNU*)
4818 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4819 *)
4820 ac_count=0
4821 $as_echo_n 0123456789 >"conftest.in"
4822 while :
4823 do
4824 cat "conftest.in" "conftest.in" >"conftest.tmp"
4825 mv "conftest.tmp" "conftest.in"
4826 cp "conftest.in" "conftest.nl"
4827 $as_echo 'FGREP' >> "conftest.nl"
4828 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830 as_fn_arith $ac_count + 1 && ac_count=$as_val
4831 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4832 # Best one so far, save it but keep looking for a better one
4833 ac_cv_path_FGREP="$ac_path_FGREP"
4834 ac_path_FGREP_max=$ac_count
4835 fi
4836 # 10*(2^10) chars as input seems more than enough
4837 test $ac_count -gt 10 && break
4838 done
4839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840 esac
4841
4842 $ac_path_FGREP_found && break 3
4843 done
4844 done
4845 done
4846 IFS=$as_save_IFS
4847 if test -z "$ac_cv_path_FGREP"; then
4848 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4849 fi
4850 else
4851 ac_cv_path_FGREP=$FGREP
4852 fi
4853
4854 fi
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4857 $as_echo "$ac_cv_path_FGREP" >&6; }
4858 FGREP="$ac_cv_path_FGREP"
4859
4860
4861 test -z "$GREP" && GREP=grep
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 # Check whether --with-gnu-ld was given.
4882 if test "${with_gnu_ld+set}" = set; then :
4883 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4884 else
4885 with_gnu_ld=no
4886 fi
4887
4888 ac_prog=ld
4889 if test "$GCC" = yes; then
4890 # Check if gcc -print-prog-name=ld gives a path.
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4892 $as_echo_n "checking for ld used by $CC... " >&6; }
4893 case $host in
4894 *-*-mingw*)
4895 # gcc leaves a trailing carriage return which upsets mingw
4896 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4897 *)
4898 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4899 esac
4900 case $ac_prog in
4901 # Accept absolute paths.
4902 [\\/]* | ?:[\\/]*)
4903 re_direlt='/[^/][^/]*/\.\./'
4904 # Canonicalize the pathname of ld
4905 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4906 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4907 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4908 done
4909 test -z "$LD" && LD="$ac_prog"
4910 ;;
4911 "")
4912 # If it fails, then pretend we aren't using GCC.
4913 ac_prog=ld
4914 ;;
4915 *)
4916 # If it is relative, then search for the first ld in PATH.
4917 with_gnu_ld=unknown
4918 ;;
4919 esac
4920 elif test "$with_gnu_ld" = yes; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4922 $as_echo_n "checking for GNU ld... " >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4925 $as_echo_n "checking for non-GNU ld... " >&6; }
4926 fi
4927 if ${lt_cv_path_LD+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -z "$LD"; then
4931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4932 for ac_dir in $PATH; do
4933 IFS="$lt_save_ifs"
4934 test -z "$ac_dir" && ac_dir=.
4935 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4936 lt_cv_path_LD="$ac_dir/$ac_prog"
4937 # Check to see if the program is GNU ld. I'd rather use --version,
4938 # but apparently some variants of GNU ld only accept -v.
4939 # Break only if it was the GNU/non-GNU ld that we prefer.
4940 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4941 *GNU* | *'with BFD'*)
4942 test "$with_gnu_ld" != no && break
4943 ;;
4944 *)
4945 test "$with_gnu_ld" != yes && break
4946 ;;
4947 esac
4948 fi
4949 done
4950 IFS="$lt_save_ifs"
4951 else
4952 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4953 fi
4954 fi
4955
4956 LD="$lt_cv_path_LD"
4957 if test -n "$LD"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4959 $as_echo "$LD" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4966 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4967 if ${lt_cv_prog_gnu_ld+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4971 case `$LD -v 2>&1 </dev/null` in
4972 *GNU* | *'with BFD'*)
4973 lt_cv_prog_gnu_ld=yes
4974 ;;
4975 *)
4976 lt_cv_prog_gnu_ld=no
4977 ;;
4978 esac
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4981 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4982 with_gnu_ld=$lt_cv_prog_gnu_ld
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4993 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4994 if ${lt_cv_path_NM+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$NM"; then
4998 # Let the user override the test.
4999 lt_cv_path_NM="$NM"
5000 else
5001 lt_nm_to_check="${ac_tool_prefix}nm"
5002 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5003 lt_nm_to_check="$lt_nm_to_check nm"
5004 fi
5005 for lt_tmp_nm in $lt_nm_to_check; do
5006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5007 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5008 IFS="$lt_save_ifs"
5009 test -z "$ac_dir" && ac_dir=.
5010 tmp_nm="$ac_dir/$lt_tmp_nm"
5011 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5012 # Check to see if the nm accepts a BSD-compat flag.
5013 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5014 # nm: unknown option "B" ignored
5015 # Tru64's nm complains that /dev/null is an invalid object file
5016 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5017 */dev/null* | *'Invalid file or object type'*)
5018 lt_cv_path_NM="$tmp_nm -B"
5019 break
5020 ;;
5021 *)
5022 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5023 */dev/null*)
5024 lt_cv_path_NM="$tmp_nm -p"
5025 break
5026 ;;
5027 *)
5028 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5029 continue # so that we can try to find one that supports BSD flags
5030 ;;
5031 esac
5032 ;;
5033 esac
5034 fi
5035 done
5036 IFS="$lt_save_ifs"
5037 done
5038 : ${lt_cv_path_NM=no}
5039 fi
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5042 $as_echo "$lt_cv_path_NM" >&6; }
5043 if test "$lt_cv_path_NM" != "no"; then
5044 NM="$lt_cv_path_NM"
5045 else
5046 # Didn't find any BSD compatible name lister, look for dumpbin.
5047 if test -n "$DUMPBIN"; then :
5048 # Let the user override the test.
5049 else
5050 if test -n "$ac_tool_prefix"; then
5051 for ac_prog in dumpbin "link -dump"
5052 do
5053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_DUMPBIN+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$DUMPBIN"; then
5061 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074 done
5075 done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 DUMPBIN=$ac_cv_prog_DUMPBIN
5081 if test -n "$DUMPBIN"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5083 $as_echo "$DUMPBIN" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 test -n "$DUMPBIN" && break
5091 done
5092 fi
5093 if test -z "$DUMPBIN"; then
5094 ac_ct_DUMPBIN=$DUMPBIN
5095 for ac_prog in dumpbin "link -dump"
5096 do
5097 # Extract the first word of "$ac_prog", so it can be a program name with args.
5098 set dummy $ac_prog; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$ac_ct_DUMPBIN"; then
5105 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118 done
5119 done
5120 IFS=$as_save_IFS
5121
5122 fi
5123 fi
5124 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5125 if test -n "$ac_ct_DUMPBIN"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5127 $as_echo "$ac_ct_DUMPBIN" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134 test -n "$ac_ct_DUMPBIN" && break
5135 done
5136
5137 if test "x$ac_ct_DUMPBIN" = x; then
5138 DUMPBIN=":"
5139 else
5140 case $cross_compiling:$ac_tool_warned in
5141 yes:)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146 DUMPBIN=$ac_ct_DUMPBIN
5147 fi
5148 fi
5149
5150 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5151 *COFF*)
5152 DUMPBIN="$DUMPBIN -symbols"
5153 ;;
5154 *)
5155 DUMPBIN=:
5156 ;;
5157 esac
5158 fi
5159
5160 if test "$DUMPBIN" != ":"; then
5161 NM="$DUMPBIN"
5162 fi
5163 fi
5164 test -z "$NM" && NM=nm
5165
5166
5167
5168
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5172 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5173 if ${lt_cv_nm_interface+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 lt_cv_nm_interface="BSD nm"
5177 echo "int some_variable = 0;" > conftest.$ac_ext
5178 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5179 (eval "$ac_compile" 2>conftest.err)
5180 cat conftest.err >&5
5181 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5182 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5183 cat conftest.err >&5
5184 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5185 cat conftest.out >&5
5186 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5187 lt_cv_nm_interface="MS dumpbin"
5188 fi
5189 rm -f conftest*
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5192 $as_echo "$lt_cv_nm_interface" >&6; }
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5195 $as_echo_n "checking whether ln -s works... " >&6; }
5196 LN_S=$as_ln_s
5197 if test "$LN_S" = "ln -s"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199 $as_echo "yes" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5202 $as_echo "no, using $LN_S" >&6; }
5203 fi
5204
5205 # find the maximum length of command line arguments
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5207 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5208 if ${lt_cv_sys_max_cmd_len+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 i=0
5212 teststring="ABCD"
5213
5214 case $build_os in
5215 msdosdjgpp*)
5216 # On DJGPP, this test can blow up pretty badly due to problems in libc
5217 # (any single argument exceeding 2000 bytes causes a buffer overrun
5218 # during glob expansion). Even if it were fixed, the result of this
5219 # check would be larger than it should be.
5220 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5221 ;;
5222
5223 gnu*)
5224 # Under GNU Hurd, this test is not required because there is
5225 # no limit to the length of command line arguments.
5226 # Libtool will interpret -1 as no limit whatsoever
5227 lt_cv_sys_max_cmd_len=-1;
5228 ;;
5229
5230 cygwin* | mingw* | cegcc*)
5231 # On Win9x/ME, this test blows up -- it succeeds, but takes
5232 # about 5 minutes as the teststring grows exponentially.
5233 # Worse, since 9x/ME are not pre-emptively multitasking,
5234 # you end up with a "frozen" computer, even though with patience
5235 # the test eventually succeeds (with a max line length of 256k).
5236 # Instead, let's just punt: use the minimum linelength reported by
5237 # all of the supported platforms: 8192 (on NT/2K/XP).
5238 lt_cv_sys_max_cmd_len=8192;
5239 ;;
5240
5241 mint*)
5242 # On MiNT this can take a long time and run out of memory.
5243 lt_cv_sys_max_cmd_len=8192;
5244 ;;
5245
5246 amigaos*)
5247 # On AmigaOS with pdksh, this test takes hours, literally.
5248 # So we just punt and use a minimum line length of 8192.
5249 lt_cv_sys_max_cmd_len=8192;
5250 ;;
5251
5252 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5253 # This has been around since 386BSD, at least. Likely further.
5254 if test -x /sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5256 elif test -x /usr/sbin/sysctl; then
5257 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5258 else
5259 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5260 fi
5261 # And add a safety zone
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5264 ;;
5265
5266 interix*)
5267 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5268 lt_cv_sys_max_cmd_len=196608
5269 ;;
5270
5271 os2*)
5272 # The test takes a long time on OS/2.
5273 lt_cv_sys_max_cmd_len=8192
5274 ;;
5275
5276 osf*)
5277 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5278 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5279 # nice to cause kernel panics so lets avoid the loop below.
5280 # First set a reasonable default.
5281 lt_cv_sys_max_cmd_len=16384
5282 #
5283 if test -x /sbin/sysconfig; then
5284 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5285 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5286 esac
5287 fi
5288 ;;
5289 sco3.2v5*)
5290 lt_cv_sys_max_cmd_len=102400
5291 ;;
5292 sysv5* | sco5v6* | sysv4.2uw2*)
5293 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5294 if test -n "$kargmax"; then
5295 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5296 else
5297 lt_cv_sys_max_cmd_len=32768
5298 fi
5299 ;;
5300 *)
5301 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5302 if test -n "$lt_cv_sys_max_cmd_len"; then
5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5305 else
5306 # Make teststring a little bigger before we do anything with it.
5307 # a 1K string should be a reasonable start.
5308 for i in 1 2 3 4 5 6 7 8 ; do
5309 teststring=$teststring$teststring
5310 done
5311 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5312 # If test is not a shell built-in, we'll probably end up computing a
5313 # maximum length that is only half of the actual maximum length, but
5314 # we can't tell.
5315 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5316 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5317 test $i != 17 # 1/2 MB should be enough
5318 do
5319 i=`expr $i + 1`
5320 teststring=$teststring$teststring
5321 done
5322 # Only check the string length outside the loop.
5323 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5324 teststring=
5325 # Add a significant safety factor because C++ compilers can tack on
5326 # massive amounts of additional arguments before passing them to the
5327 # linker. It appears as though 1/2 is a usable value.
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5329 fi
5330 ;;
5331 esac
5332
5333 fi
5334
5335 if test -n $lt_cv_sys_max_cmd_len ; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5337 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5338 else
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5340 $as_echo "none" >&6; }
5341 fi
5342 max_cmd_len=$lt_cv_sys_max_cmd_len
5343
5344
5345
5346
5347
5348
5349 : ${CP="cp -f"}
5350 : ${MV="mv -f"}
5351 : ${RM="rm -f"}
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5354 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5355 # Try some XSI features
5356 xsi_shell=no
5357 ( _lt_dummy="a/b/c"
5358 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5359 = c,a/b,b/c, \
5360 && eval 'test $(( 1 + 1 )) -eq 2 \
5361 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5362 && xsi_shell=yes
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5364 $as_echo "$xsi_shell" >&6; }
5365
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5368 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5369 lt_shell_append=no
5370 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5371 >/dev/null 2>&1 \
5372 && lt_shell_append=yes
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5374 $as_echo "$lt_shell_append" >&6; }
5375
5376
5377 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5378 lt_unset=unset
5379 else
5380 lt_unset=false
5381 fi
5382
5383
5384
5385
5386
5387 # test EBCDIC or ASCII
5388 case `echo X|tr X '\101'` in
5389 A) # ASCII based system
5390 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5391 lt_SP2NL='tr \040 \012'
5392 lt_NL2SP='tr \015\012 \040\040'
5393 ;;
5394 *) # EBCDIC based system
5395 lt_SP2NL='tr \100 \n'
5396 lt_NL2SP='tr \r\n \100\100'
5397 ;;
5398 esac
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5409 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5410 if ${lt_cv_to_host_file_cmd+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 case $host in
5414 *-*-mingw* )
5415 case $build in
5416 *-*-mingw* ) # actually msys
5417 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5418 ;;
5419 *-*-cygwin* )
5420 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5421 ;;
5422 * ) # otherwise, assume *nix
5423 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5424 ;;
5425 esac
5426 ;;
5427 *-*-cygwin* )
5428 case $build in
5429 *-*-mingw* ) # actually msys
5430 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5431 ;;
5432 *-*-cygwin* )
5433 lt_cv_to_host_file_cmd=func_convert_file_noop
5434 ;;
5435 * ) # otherwise, assume *nix
5436 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5437 ;;
5438 esac
5439 ;;
5440 * ) # unhandled hosts (and "normal" native builds)
5441 lt_cv_to_host_file_cmd=func_convert_file_noop
5442 ;;
5443 esac
5444
5445 fi
5446
5447 to_host_file_cmd=$lt_cv_to_host_file_cmd
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5449 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5456 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5457 if ${lt_cv_to_tool_file_cmd+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 #assume ordinary cross tools, or native build.
5461 lt_cv_to_tool_file_cmd=func_convert_file_noop
5462 case $host in
5463 *-*-mingw* )
5464 case $build in
5465 *-*-mingw* ) # actually msys
5466 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5467 ;;
5468 esac
5469 ;;
5470 esac
5471
5472 fi
5473
5474 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5476 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5483 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5484 if ${lt_cv_ld_reload_flag+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 lt_cv_ld_reload_flag='-r'
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5490 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5491 reload_flag=$lt_cv_ld_reload_flag
5492 case $reload_flag in
5493 "" | " "*) ;;
5494 *) reload_flag=" $reload_flag" ;;
5495 esac
5496 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5497 case $host_os in
5498 cygwin* | mingw* | pw32* | cegcc*)
5499 if test "$GCC" != yes; then
5500 reload_cmds=false
5501 fi
5502 ;;
5503 darwin*)
5504 if test "$GCC" = yes; then
5505 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5506 else
5507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5508 fi
5509 ;;
5510 esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 if test -n "$ac_tool_prefix"; then
5521 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5522 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_OBJDUMP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$OBJDUMP"; then
5529 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 OBJDUMP=$ac_cv_prog_OBJDUMP
5549 if test -n "$OBJDUMP"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5551 $as_echo "$OBJDUMP" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 fi
5559 if test -z "$ac_cv_prog_OBJDUMP"; then
5560 ac_ct_OBJDUMP=$OBJDUMP
5561 # Extract the first word of "objdump", so it can be a program name with args.
5562 set dummy objdump; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$ac_ct_OBJDUMP"; then
5569 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5589 if test -n "$ac_ct_OBJDUMP"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5591 $as_echo "$ac_ct_OBJDUMP" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597 if test "x$ac_ct_OBJDUMP" = x; then
5598 OBJDUMP="false"
5599 else
5600 case $cross_compiling:$ac_tool_warned in
5601 yes:)
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604 ac_tool_warned=yes ;;
5605 esac
5606 OBJDUMP=$ac_ct_OBJDUMP
5607 fi
5608 else
5609 OBJDUMP="$ac_cv_prog_OBJDUMP"
5610 fi
5611
5612 test -z "$OBJDUMP" && OBJDUMP=objdump
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5623 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5624 if ${lt_cv_deplibs_check_method+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 lt_cv_file_magic_cmd='$MAGIC_CMD'
5628 lt_cv_file_magic_test_file=
5629 lt_cv_deplibs_check_method='unknown'
5630 # Need to set the preceding variable on all platforms that support
5631 # interlibrary dependencies.
5632 # 'none' -- dependencies not supported.
5633 # `unknown' -- same as none, but documents that we really don't know.
5634 # 'pass_all' -- all dependencies passed with no checks.
5635 # 'test_compile' -- check by making test program.
5636 # 'file_magic [[regex]]' -- check by looking for files in library path
5637 # which responds to the $file_magic_cmd with a given extended regex.
5638 # If you have `file' or equivalent on your system and you're not sure
5639 # whether `pass_all' will *always* work, you probably want this one.
5640
5641 case $host_os in
5642 aix[4-9]*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646 beos*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650 bsdi[45]*)
5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5652 lt_cv_file_magic_cmd='/usr/bin/file -L'
5653 lt_cv_file_magic_test_file=/shlib/libc.so
5654 ;;
5655
5656 cygwin*)
5657 # func_win32_libid is a shell function defined in ltmain.sh
5658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5659 lt_cv_file_magic_cmd='func_win32_libid'
5660 ;;
5661
5662 mingw* | pw32*)
5663 # Base MSYS/MinGW do not provide the 'file' command needed by
5664 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5665 # unless we find 'file', for example because we are cross-compiling.
5666 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5667 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5669 lt_cv_file_magic_cmd='func_win32_libid'
5670 else
5671 # Keep this pattern in sync with the one in func_win32_libid.
5672 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5673 lt_cv_file_magic_cmd='$OBJDUMP -f'
5674 fi
5675 ;;
5676
5677 cegcc*)
5678 # use the weaker test based on 'objdump'. See mingw*.
5679 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5680 lt_cv_file_magic_cmd='$OBJDUMP -f'
5681 ;;
5682
5683 darwin* | rhapsody*)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686
5687 freebsd* | dragonfly*)
5688 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5689 case $host_cpu in
5690 i*86 )
5691 # Not sure whether the presence of OpenBSD here was a mistake.
5692 # Let's accept both of them until this is cleared up.
5693 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5694 lt_cv_file_magic_cmd=/usr/bin/file
5695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5696 ;;
5697 esac
5698 else
5699 lt_cv_deplibs_check_method=pass_all
5700 fi
5701 ;;
5702
5703 gnu*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707 haiku*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711 hpux10.20* | hpux11*)
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 case $host_cpu in
5714 ia64*)
5715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5717 ;;
5718 hppa*64*)
5719 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]'
5720 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5721 ;;
5722 *)
5723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5724 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5725 ;;
5726 esac
5727 ;;
5728
5729 interix[3-9]*)
5730 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5732 ;;
5733
5734 irix5* | irix6* | nonstopux*)
5735 case $LD in
5736 *-32|*"-32 ") libmagic=32-bit;;
5737 *-n32|*"-n32 ") libmagic=N32;;
5738 *-64|*"-64 ") libmagic=64-bit;;
5739 *) libmagic=never-match;;
5740 esac
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743
5744 # This must be glibc/ELF.
5745 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749 netbsd*)
5750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5752 else
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5754 fi
5755 ;;
5756
5757 newos6*)
5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5759 lt_cv_file_magic_cmd=/usr/bin/file
5760 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5761 ;;
5762
5763 *nto* | *qnx*)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
5766
5767 openbsd*)
5768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5770 else
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5772 fi
5773 ;;
5774
5775 osf3* | osf4* | osf5*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779 rdos*)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783 solaris*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790
5791 sysv4 | sysv4.3*)
5792 case $host_vendor in
5793 motorola)
5794 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]'
5795 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5796 ;;
5797 ncr)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800 sequent)
5801 lt_cv_file_magic_cmd='/bin/file'
5802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5803 ;;
5804 sni)
5805 lt_cv_file_magic_cmd='/bin/file'
5806 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5807 lt_cv_file_magic_test_file=/lib/libc.so
5808 ;;
5809 siemens)
5810 lt_cv_deplibs_check_method=pass_all
5811 ;;
5812 pc)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815 esac
5816 ;;
5817
5818 tpf*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821 esac
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5825 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5826
5827 file_magic_glob=
5828 want_nocaseglob=no
5829 if test "$build" = "$host"; then
5830 case $host_os in
5831 mingw* | pw32*)
5832 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5833 want_nocaseglob=yes
5834 else
5835 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5836 fi
5837 ;;
5838 esac
5839 fi
5840
5841 file_magic_cmd=$lt_cv_file_magic_cmd
5842 deplibs_check_method=$lt_cv_deplibs_check_method
5843 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 if test -n "$ac_tool_prefix"; then
5867 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_prog_DLLTOOL+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -n "$DLLTOOL"; then
5875 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 DLLTOOL=$ac_cv_prog_DLLTOOL
5895 if test -n "$DLLTOOL"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5897 $as_echo "$DLLTOOL" >&6; }
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903
5904 fi
5905 if test -z "$ac_cv_prog_DLLTOOL"; then
5906 ac_ct_DLLTOOL=$DLLTOOL
5907 # Extract the first word of "dlltool", so it can be a program name with args.
5908 set dummy dlltool; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$ac_ct_DLLTOOL"; then
5915 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5935 if test -n "$ac_ct_DLLTOOL"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5937 $as_echo "$ac_ct_DLLTOOL" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943 if test "x$ac_ct_DLLTOOL" = x; then
5944 DLLTOOL="false"
5945 else
5946 case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5950 ac_tool_warned=yes ;;
5951 esac
5952 DLLTOOL=$ac_ct_DLLTOOL
5953 fi
5954 else
5955 DLLTOOL="$ac_cv_prog_DLLTOOL"
5956 fi
5957
5958 test -z "$DLLTOOL" && DLLTOOL=dlltool
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5970 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5971 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 lt_cv_sharedlib_from_linklib_cmd='unknown'
5975
5976 case $host_os in
5977 cygwin* | mingw* | pw32* | cegcc*)
5978 # two different shell functions defined in ltmain.sh
5979 # decide which to use based on capabilities of $DLLTOOL
5980 case `$DLLTOOL --help 2>&1` in
5981 *--identify-strict*)
5982 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5983 ;;
5984 *)
5985 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5986 ;;
5987 esac
5988 ;;
5989 *)
5990 # fallback: assume linklib IS sharedlib
5991 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5992 ;;
5993 esac
5994
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5997 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5998 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5999 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6000
6001
6002
6003
6004
6005
6006
6007 if test -n "$ac_tool_prefix"; then
6008 for ac_prog in ar
6009 do
6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_AR+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR="$AR" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 AR=$ac_cv_prog_AR
6038 if test -n "$AR"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6040 $as_echo "$AR" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047 test -n "$AR" && break
6048 done
6049 fi
6050 if test -z "$AR"; then
6051 ac_ct_AR=$AR
6052 for ac_prog in ar
6053 do
6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
6055 set dummy $ac_prog; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_AR"; then
6062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_AR="$ac_prog"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6082 if test -n "$ac_ct_AR"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6084 $as_echo "$ac_ct_AR" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090
6091 test -n "$ac_ct_AR" && break
6092 done
6093
6094 if test "x$ac_ct_AR" = x; then
6095 AR="false"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 AR=$ac_ct_AR
6104 fi
6105 fi
6106
6107 : ${AR=ar}
6108 : ${AR_FLAGS=cru}
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6121 $as_echo_n "checking for archiver @FILE support... " >&6; }
6122 if ${lt_cv_ar_at_file+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 lt_cv_ar_at_file=no
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128
6129 int
6130 main ()
6131 {
6132
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_compile "$LINENO"; then :
6138 echo conftest.$ac_objext > conftest.lst
6139 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6141 (eval $lt_ar_try) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }
6145 if test "$ac_status" -eq 0; then
6146 # Ensure the archiver fails upon bogus file names.
6147 rm -f conftest.$ac_objext libconftest.a
6148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6149 (eval $lt_ar_try) 2>&5
6150 ac_status=$?
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }
6153 if test "$ac_status" -ne 0; then
6154 lt_cv_ar_at_file=@
6155 fi
6156 fi
6157 rm -f conftest.* libconftest.a
6158
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6164 $as_echo "$lt_cv_ar_at_file" >&6; }
6165
6166 if test "x$lt_cv_ar_at_file" = xno; then
6167 archiver_list_spec=
6168 else
6169 archiver_list_spec=$lt_cv_ar_at_file
6170 fi
6171
6172
6173
6174
6175
6176
6177
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}strip; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_STRIP+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$STRIP"; then
6187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 STRIP=$ac_cv_prog_STRIP
6207 if test -n "$STRIP"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6209 $as_echo "$STRIP" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_STRIP"; then
6218 ac_ct_STRIP=$STRIP
6219 # Extract the first word of "strip", so it can be a program name with args.
6220 set dummy strip; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$ac_ct_STRIP"; then
6227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_ac_ct_STRIP="strip"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6247 if test -n "$ac_ct_STRIP"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6249 $as_echo "$ac_ct_STRIP" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255 if test "x$ac_ct_STRIP" = x; then
6256 STRIP=":"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264 STRIP=$ac_ct_STRIP
6265 fi
6266 else
6267 STRIP="$ac_cv_prog_STRIP"
6268 fi
6269
6270 test -z "$STRIP" && STRIP=:
6271
6272
6273
6274
6275
6276
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_RANLIB+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$RANLIB"; then
6286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 RANLIB=$ac_cv_prog_RANLIB
6306 if test -n "$RANLIB"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6308 $as_echo "$RANLIB" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314
6315 fi
6316 if test -z "$ac_cv_prog_RANLIB"; then
6317 ac_ct_RANLIB=$RANLIB
6318 # Extract the first word of "ranlib", so it can be a program name with args.
6319 set dummy ranlib; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$ac_ct_RANLIB"; then
6326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_RANLIB="ranlib"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6346 if test -n "$ac_ct_RANLIB"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6348 $as_echo "$ac_ct_RANLIB" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354 if test "x$ac_ct_RANLIB" = x; then
6355 RANLIB=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6362 esac
6363 RANLIB=$ac_ct_RANLIB
6364 fi
6365 else
6366 RANLIB="$ac_cv_prog_RANLIB"
6367 fi
6368
6369 test -z "$RANLIB" && RANLIB=:
6370
6371
6372
6373
6374
6375
6376 # Determine commands to create old-style static archives.
6377 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6378 old_postinstall_cmds='chmod 644 $oldlib'
6379 old_postuninstall_cmds=
6380
6381 if test -n "$RANLIB"; then
6382 case $host_os in
6383 openbsd*)
6384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6385 ;;
6386 *)
6387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6388 ;;
6389 esac
6390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6391 fi
6392
6393 case $host_os in
6394 darwin*)
6395 lock_old_archive_extraction=yes ;;
6396 *)
6397 lock_old_archive_extraction=no ;;
6398 esac
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 # If no C compiler was specified, use CC.
6439 LTCC=${LTCC-"$CC"}
6440
6441 # If no C compiler flags were specified, use CFLAGS.
6442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6443
6444 # Allow CC to be a program name with arguments.
6445 compiler=$CC
6446
6447
6448 # Check for command to grab the raw symbol name followed by C symbol from nm.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6450 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6451 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454
6455 # These are sane defaults that work on at least a few old systems.
6456 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6457
6458 # Character class describing NM global symbol codes.
6459 symcode='[BCDEGRST]'
6460
6461 # Regexp to match symbols that can be accessed directly from C.
6462 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6463
6464 # Define system-specific variables.
6465 case $host_os in
6466 aix*)
6467 symcode='[BCDT]'
6468 ;;
6469 cygwin* | mingw* | pw32* | cegcc*)
6470 symcode='[ABCDGISTW]'
6471 ;;
6472 hpux*)
6473 if test "$host_cpu" = ia64; then
6474 symcode='[ABCDEGRST]'
6475 fi
6476 ;;
6477 irix* | nonstopux*)
6478 symcode='[BCDEGRST]'
6479 ;;
6480 osf*)
6481 symcode='[BCDEGQRST]'
6482 ;;
6483 solaris*)
6484 symcode='[BDRT]'
6485 ;;
6486 sco3.2v5*)
6487 symcode='[DT]'
6488 ;;
6489 sysv4.2uw2*)
6490 symcode='[DT]'
6491 ;;
6492 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6493 symcode='[ABDT]'
6494 ;;
6495 sysv4)
6496 symcode='[DFNSTU]'
6497 ;;
6498 esac
6499
6500 # If we're using GNU nm, then use its standard symbol codes.
6501 case `$NM -V 2>&1` in
6502 *GNU* | *'with BFD'*)
6503 symcode='[ABCDGIRSTW]' ;;
6504 esac
6505
6506 # Transform an extracted symbol line into a proper C declaration.
6507 # Some systems (esp. on ia64) link data and code symbols differently,
6508 # so use this general approach.
6509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6510
6511 # Transform an extracted symbol line into symbol name and symbol address
6512 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6513 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6514
6515 # Handle CRLF in mingw tool chain
6516 opt_cr=
6517 case $build_os in
6518 mingw*)
6519 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6520 ;;
6521 esac
6522
6523 # Try without a prefix underscore, then with it.
6524 for ac_symprfx in "" "_"; do
6525
6526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6527 symxfrm="\\1 $ac_symprfx\\2 \\2"
6528
6529 # Write the raw and C identifiers.
6530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6531 # Fake it for dumpbin and say T for any non-static function
6532 # and D for any global variable.
6533 # Also find C++ and __fastcall symbols from MSVC++,
6534 # which start with @ or ?.
6535 lt_cv_sys_global_symbol_pipe="$AWK '"\
6536 " {last_section=section; section=\$ 3};"\
6537 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6538 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6539 " \$ 0!~/External *\|/{next};"\
6540 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6541 " {if(hide[section]) next};"\
6542 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6543 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6544 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6545 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6546 " ' prfx=^$ac_symprfx"
6547 else
6548 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6549 fi
6550 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6551
6552 # Check to see that the pipe works correctly.
6553 pipe_works=no
6554
6555 rm -f conftest*
6556 cat > conftest.$ac_ext <<_LT_EOF
6557 #ifdef __cplusplus
6558 extern "C" {
6559 #endif
6560 char nm_test_var;
6561 void nm_test_func(void);
6562 void nm_test_func(void){}
6563 #ifdef __cplusplus
6564 }
6565 #endif
6566 int main(){nm_test_var='a';nm_test_func();return(0);}
6567 _LT_EOF
6568
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 # Now try to grab the symbols.
6575 nlist=conftest.nm
6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6577 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6578 ac_status=$?
6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; } && test -s "$nlist"; then
6581 # Try sorting and uniquifying the output.
6582 if sort "$nlist" | uniq > "$nlist"T; then
6583 mv -f "$nlist"T "$nlist"
6584 else
6585 rm -f "$nlist"T
6586 fi
6587
6588 # Make sure that we snagged all the symbols we need.
6589 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6590 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6591 cat <<_LT_EOF > conftest.$ac_ext
6592 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6593 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6594 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6595 relocations are performed -- see ld's documentation on pseudo-relocs. */
6596 # define LT_DLSYM_CONST
6597 #elif defined(__osf__)
6598 /* This system does not cope well with relocations in const data. */
6599 # define LT_DLSYM_CONST
6600 #else
6601 # define LT_DLSYM_CONST const
6602 #endif
6603
6604 #ifdef __cplusplus
6605 extern "C" {
6606 #endif
6607
6608 _LT_EOF
6609 # Now generate the symbol file.
6610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6611
6612 cat <<_LT_EOF >> conftest.$ac_ext
6613
6614 /* The mapping between symbol names and symbols. */
6615 LT_DLSYM_CONST struct {
6616 const char *name;
6617 void *address;
6618 }
6619 lt__PROGRAM__LTX_preloaded_symbols[] =
6620 {
6621 { "@PROGRAM@", (void *) 0 },
6622 _LT_EOF
6623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6624 cat <<\_LT_EOF >> conftest.$ac_ext
6625 {0, (void *) 0}
6626 };
6627
6628 /* This works around a problem in FreeBSD linker */
6629 #ifdef FREEBSD_WORKAROUND
6630 static const void *lt_preloaded_setup() {
6631 return lt__PROGRAM__LTX_preloaded_symbols;
6632 }
6633 #endif
6634
6635 #ifdef __cplusplus
6636 }
6637 #endif
6638 _LT_EOF
6639 # Now try linking the two files.
6640 mv conftest.$ac_objext conftstm.$ac_objext
6641 lt_globsym_save_LIBS=$LIBS
6642 lt_globsym_save_CFLAGS=$CFLAGS
6643 LIBS="conftstm.$ac_objext"
6644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6646 (eval $ac_link) 2>&5
6647 ac_status=$?
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6650 pipe_works=yes
6651 fi
6652 LIBS=$lt_globsym_save_LIBS
6653 CFLAGS=$lt_globsym_save_CFLAGS
6654 else
6655 echo "cannot find nm_test_func in $nlist" >&5
6656 fi
6657 else
6658 echo "cannot find nm_test_var in $nlist" >&5
6659 fi
6660 else
6661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6662 fi
6663 else
6664 echo "$progname: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 fi
6667 rm -rf conftest* conftst*
6668
6669 # Do not use the global_symbol_pipe unless it works.
6670 if test "$pipe_works" = yes; then
6671 break
6672 else
6673 lt_cv_sys_global_symbol_pipe=
6674 fi
6675 done
6676
6677 fi
6678
6679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6680 lt_cv_sys_global_symbol_to_cdecl=
6681 fi
6682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6684 $as_echo "failed" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6687 $as_echo "ok" >&6; }
6688 fi
6689
6690 # Response file support.
6691 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6692 nm_file_list_spec='@'
6693 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6694 nm_file_list_spec='@'
6695 fi
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6724 $as_echo_n "checking for sysroot... " >&6; }
6725
6726 # Check whether --with-sysroot was given.
6727 if test "${with_sysroot+set}" = set; then :
6728 withval=$with_sysroot;
6729 else
6730 with_sysroot=no
6731 fi
6732
6733
6734 lt_sysroot=
6735 case ${with_sysroot} in #(
6736 yes)
6737 if test "$GCC" = yes; then
6738 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6739 fi
6740 ;; #(
6741 /*)
6742 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6743 ;; #(
6744 no|'')
6745 ;; #(
6746 *)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6748 $as_echo "${with_sysroot}" >&6; }
6749 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6750 ;;
6751 esac
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6754 $as_echo "${lt_sysroot:-no}" >&6; }
6755
6756
6757
6758
6759
6760 # Check whether --enable-libtool-lock was given.
6761 if test "${enable_libtool_lock+set}" = set; then :
6762 enableval=$enable_libtool_lock;
6763 fi
6764
6765 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6766
6767 # Some flags need to be propagated to the compiler or linker for good
6768 # libtool support.
6769 case $host in
6770 ia64-*-hpux*)
6771 # Find out which ABI we are using.
6772 echo 'int i;' > conftest.$ac_ext
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774 (eval $ac_compile) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; }; then
6778 case `/usr/bin/file conftest.$ac_objext` in
6779 *ELF-32*)
6780 HPUX_IA64_MODE="32"
6781 ;;
6782 *ELF-64*)
6783 HPUX_IA64_MODE="64"
6784 ;;
6785 esac
6786 fi
6787 rm -rf conftest*
6788 ;;
6789 *-*-irix6*)
6790 # Find out which ABI we are using.
6791 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793 (eval $ac_compile) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }; then
6797 if test "$lt_cv_prog_gnu_ld" = yes; then
6798 case `/usr/bin/file conftest.$ac_objext` in
6799 *32-bit*)
6800 LD="${LD-ld} -melf32bsmip"
6801 ;;
6802 *N32*)
6803 LD="${LD-ld} -melf32bmipn32"
6804 ;;
6805 *64-bit*)
6806 LD="${LD-ld} -melf64bmip"
6807 ;;
6808 esac
6809 else
6810 case `/usr/bin/file conftest.$ac_objext` in
6811 *32-bit*)
6812 LD="${LD-ld} -32"
6813 ;;
6814 *N32*)
6815 LD="${LD-ld} -n32"
6816 ;;
6817 *64-bit*)
6818 LD="${LD-ld} -64"
6819 ;;
6820 esac
6821 fi
6822 fi
6823 rm -rf conftest*
6824 ;;
6825
6826 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6827 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.o` in
6836 *32-bit*)
6837 case $host in
6838 x86_64-*kfreebsd*-gnu)
6839 LD="${LD-ld} -m elf_i386_fbsd"
6840 ;;
6841 x86_64-*linux*)
6842 LD="${LD-ld} -m elf_i386"
6843 ;;
6844 ppc64-*linux*|powerpc64-*linux*)
6845 LD="${LD-ld} -m elf32ppclinux"
6846 ;;
6847 s390x-*linux*)
6848 LD="${LD-ld} -m elf_s390"
6849 ;;
6850 sparc64-*linux*)
6851 LD="${LD-ld} -m elf32_sparc"
6852 ;;
6853 esac
6854 ;;
6855 *64-bit*)
6856 case $host in
6857 x86_64-*kfreebsd*-gnu)
6858 LD="${LD-ld} -m elf_x86_64_fbsd"
6859 ;;
6860 x86_64-*linux*)
6861 LD="${LD-ld} -m elf_x86_64"
6862 ;;
6863 ppc*-*linux*|powerpc*-*linux*)
6864 LD="${LD-ld} -m elf64ppc"
6865 ;;
6866 s390*-*linux*|s390*-*tpf*)
6867 LD="${LD-ld} -m elf64_s390"
6868 ;;
6869 sparc*-*linux*)
6870 LD="${LD-ld} -m elf64_sparc"
6871 ;;
6872 esac
6873 ;;
6874 esac
6875 fi
6876 rm -rf conftest*
6877 ;;
6878
6879 *-*-sco3.2v5*)
6880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6881 SAVE_CFLAGS="$CFLAGS"
6882 CFLAGS="$CFLAGS -belf"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6885 if ${lt_cv_cc_needs_belf+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896
6897 int
6898 main ()
6899 {
6900
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"; then :
6906 lt_cv_cc_needs_belf=yes
6907 else
6908 lt_cv_cc_needs_belf=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 ac_ext=c
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6920 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6921 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6923 CFLAGS="$SAVE_CFLAGS"
6924 fi
6925 ;;
6926 *-*solaris*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.o` in
6935 *64-bit*)
6936 case $lt_cv_prog_gnu_ld in
6937 yes*)
6938 case $host in
6939 i?86-*-solaris*)
6940 LD="${LD-ld} -m elf_x86_64"
6941 ;;
6942 sparc*-*-solaris*)
6943 LD="${LD-ld} -m elf64_sparc"
6944 ;;
6945 esac
6946 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6947 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6948 LD="${LD-ld}_sol2"
6949 fi
6950 ;;
6951 *)
6952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6953 LD="${LD-ld} -64"
6954 fi
6955 ;;
6956 esac
6957 ;;
6958 esac
6959 fi
6960 rm -rf conftest*
6961 ;;
6962 esac
6963
6964 need_locks="$enable_libtool_lock"
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$MANIFEST_TOOL"; then
6975 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6995 if test -n "$MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6997 $as_echo "$MANIFEST_TOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7006 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7007 # Extract the first word of "mt", so it can be a program name with args.
7008 set dummy mt; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_MANIFEST_TOOL"; then
7015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7035 if test -n "$ac_ct_MANIFEST_TOOL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7037 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7044 MANIFEST_TOOL=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7053 fi
7054 else
7055 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7056 fi
7057
7058 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7060 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7061 if ${lt_cv_path_mainfest_tool+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 lt_cv_path_mainfest_tool=no
7065 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7066 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7067 cat conftest.err >&5
7068 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7069 lt_cv_path_mainfest_tool=yes
7070 fi
7071 rm -f conftest*
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7074 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7075 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7076 MANIFEST_TOOL=:
7077 fi
7078
7079
7080
7081
7082
7083
7084 case $host_os in
7085 rhapsody* | darwin*)
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$DSYMUTIL"; then
7095 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7115 if test -n "$DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7117 $as_echo "$DSYMUTIL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_DSYMUTIL"; then
7126 ac_ct_DSYMUTIL=$DSYMUTIL
7127 # Extract the first word of "dsymutil", so it can be a program name with args.
7128 set dummy dsymutil; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_DSYMUTIL"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7155 if test -n "$ac_ct_DSYMUTIL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7157 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_DSYMUTIL" = x; then
7164 DSYMUTIL=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 DSYMUTIL=$ac_ct_DSYMUTIL
7173 fi
7174 else
7175 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_NMEDIT+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$NMEDIT"; then
7187 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 NMEDIT=$ac_cv_prog_NMEDIT
7207 if test -n "$NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7209 $as_echo "$NMEDIT" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_NMEDIT"; then
7218 ac_ct_NMEDIT=$NMEDIT
7219 # Extract the first word of "nmedit", so it can be a program name with args.
7220 set dummy nmedit; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_NMEDIT"; then
7227 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7247 if test -n "$ac_ct_NMEDIT"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7249 $as_echo "$ac_ct_NMEDIT" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_NMEDIT" = x; then
7256 NMEDIT=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 NMEDIT=$ac_ct_NMEDIT
7265 fi
7266 else
7267 NMEDIT="$ac_cv_prog_NMEDIT"
7268 fi
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_LIPO+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$LIPO"; then
7279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 LIPO=$ac_cv_prog_LIPO
7299 if test -n "$LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7301 $as_echo "$LIPO" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_LIPO"; then
7310 ac_ct_LIPO=$LIPO
7311 # Extract the first word of "lipo", so it can be a program name with args.
7312 set dummy lipo; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_LIPO"; then
7319 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_LIPO="lipo"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7339 if test -n "$ac_ct_LIPO"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7341 $as_echo "$ac_ct_LIPO" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_LIPO" = x; then
7348 LIPO=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 LIPO=$ac_ct_LIPO
7357 fi
7358 else
7359 LIPO="$ac_cv_prog_LIPO"
7360 fi
7361
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}otool; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_OTOOL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$OTOOL"; then
7371 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 OTOOL=$ac_cv_prog_OTOOL
7391 if test -n "$OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7393 $as_echo "$OTOOL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_OTOOL"; then
7402 ac_ct_OTOOL=$OTOOL
7403 # Extract the first word of "otool", so it can be a program name with args.
7404 set dummy otool; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_OTOOL"; then
7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_ac_ct_OTOOL="otool"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431 if test -n "$ac_ct_OTOOL"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7433 $as_echo "$ac_ct_OTOOL" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439 if test "x$ac_ct_OTOOL" = x; then
7440 OTOOL=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 OTOOL=$ac_ct_OTOOL
7449 fi
7450 else
7451 OTOOL="$ac_cv_prog_OTOOL"
7452 fi
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_OTOOL64+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$OTOOL64"; then
7463 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 OTOOL64=$ac_cv_prog_OTOOL64
7483 if test -n "$OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7485 $as_echo "$OTOOL64" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_OTOOL64"; then
7494 ac_ct_OTOOL64=$OTOOL64
7495 # Extract the first word of "otool64", so it can be a program name with args.
7496 set dummy otool64; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_OTOOL64"; then
7503 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_OTOOL64="otool64"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7523 if test -n "$ac_ct_OTOOL64"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7525 $as_echo "$ac_ct_OTOOL64" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_OTOOL64" = x; then
7532 OTOOL64=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 OTOOL64=$ac_ct_OTOOL64
7541 fi
7542 else
7543 OTOOL64="$ac_cv_prog_OTOOL64"
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7573 $as_echo_n "checking for -single_module linker flag... " >&6; }
7574 if ${lt_cv_apple_cc_single_mod+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_apple_cc_single_mod=no
7578 if test -z "${LT_MULTI_MODULE}"; then
7579 # By default we will add the -single_module flag. You can override
7580 # by either setting the environment variable LT_MULTI_MODULE
7581 # non-empty at configure time, or by adding -multi_module to the
7582 # link flags.
7583 rm -rf libconftest.dylib*
7584 echo "int foo(void){return 1;}" > conftest.c
7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7586 -dynamiclib -Wl,-single_module conftest.c" >&5
7587 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7588 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7589 _lt_result=$?
7590 # If there is a non-empty error log, and "single_module"
7591 # appears in it, assume the flag caused a linker warning
7592 if test -s conftest.err && $GREP single_module conftest.err; then
7593 cat conftest.err >&5
7594 # Otherwise, if the output was created with a 0 exit code from
7595 # the compiler, it worked.
7596 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7597 lt_cv_apple_cc_single_mod=yes
7598 else
7599 cat conftest.err >&5
7600 fi
7601 rm -rf libconftest.dylib*
7602 rm -f conftest.*
7603 fi
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7606 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7607
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619
7620 int
7621 main ()
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_ld_exported_symbols_list=yes
7630 else
7631 lt_cv_ld_exported_symbols_list=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LDFLAGS="$save_LDFLAGS"
7636
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7640
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7642 $as_echo_n "checking for -force_load linker flag... " >&6; }
7643 if ${lt_cv_ld_force_load+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 lt_cv_ld_force_load=no
7647 cat > conftest.c << _LT_EOF
7648 int forced_loaded() { return 2;}
7649 _LT_EOF
7650 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7651 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7652 echo "$AR cru libconftest.a conftest.o" >&5
7653 $AR cru libconftest.a conftest.o 2>&5
7654 echo "$RANLIB libconftest.a" >&5
7655 $RANLIB libconftest.a 2>&5
7656 cat > conftest.c << _LT_EOF
7657 int main() { return 0;}
7658 _LT_EOF
7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661 _lt_result=$?
7662 if test -s conftest.err && $GREP force_load conftest.err; then
7663 cat conftest.err >&5
7664 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7665 lt_cv_ld_force_load=yes
7666 else
7667 cat conftest.err >&5
7668 fi
7669 rm -f conftest.err libconftest.a conftest conftest.c
7670 rm -rf conftest.dSYM
7671
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7674 $as_echo "$lt_cv_ld_force_load" >&6; }
7675 case $host_os in
7676 rhapsody* | darwin1.[012])
7677 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7678 darwin1.*)
7679 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7680 darwin*) # darwin 5.x on
7681 # if running on 10.5 or later, the deployment target defaults
7682 # to the OS version, if on x86, and 10.4, the deployment
7683 # target defaults to 10.4. Don't you love it?
7684 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7685 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7686 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7687 10.[012]*)
7688 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7689 10.*)
7690 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7691 esac
7692 ;;
7693 esac
7694 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7695 _lt_dar_single_mod='$single_module'
7696 fi
7697 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7698 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7699 else
7700 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7701 fi
7702 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7703 _lt_dsymutil='~$DSYMUTIL $lib || :'
7704 else
7705 _lt_dsymutil=
7706 fi
7707 ;;
7708 esac
7709
7710 for ac_header in dlfcn.h
7711 do :
7712 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7713 "
7714 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7715 cat >>confdefs.h <<_ACEOF
7716 #define HAVE_DLFCN_H 1
7717 _ACEOF
7718
7719 fi
7720
7721 done
7722
7723
7724
7725
7726
7727 # Set options
7728
7729
7730
7731 enable_dlopen=no
7732
7733
7734 enable_win32_dll=no
7735
7736
7737 # Check whether --enable-shared was given.
7738 if test "${enable_shared+set}" = set; then :
7739 enableval=$enable_shared; p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_shared=yes ;;
7742 no) enable_shared=no ;;
7743 *)
7744 enable_shared=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_shared=yes
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 ;;
7755 esac
7756 else
7757 enable_shared=yes
7758 fi
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 # Check whether --enable-static was given.
7769 if test "${enable_static+set}" = set; then :
7770 enableval=$enable_static; p=${PACKAGE-default}
7771 case $enableval in
7772 yes) enable_static=yes ;;
7773 no) enable_static=no ;;
7774 *)
7775 enable_static=no
7776 # Look at the argument we got. We use all the common list separators.
7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7778 for pkg in $enableval; do
7779 IFS="$lt_save_ifs"
7780 if test "X$pkg" = "X$p"; then
7781 enable_static=yes
7782 fi
7783 done
7784 IFS="$lt_save_ifs"
7785 ;;
7786 esac
7787 else
7788 enable_static=yes
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 # Check whether --with-pic was given.
7801 if test "${with_pic+set}" = set; then :
7802 withval=$with_pic; lt_p=${PACKAGE-default}
7803 case $withval in
7804 yes|no) pic_mode=$withval ;;
7805 *)
7806 pic_mode=default
7807 # Look at the argument we got. We use all the common list separators.
7808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7809 for lt_pkg in $withval; do
7810 IFS="$lt_save_ifs"
7811 if test "X$lt_pkg" = "X$lt_p"; then
7812 pic_mode=yes
7813 fi
7814 done
7815 IFS="$lt_save_ifs"
7816 ;;
7817 esac
7818 else
7819 pic_mode=default
7820 fi
7821
7822
7823 test -z "$pic_mode" && pic_mode=default
7824
7825
7826
7827
7828
7829
7830
7831 # Check whether --enable-fast-install was given.
7832 if test "${enable_fast_install+set}" = set; then :
7833 enableval=$enable_fast_install; p=${PACKAGE-default}
7834 case $enableval in
7835 yes) enable_fast_install=yes ;;
7836 no) enable_fast_install=no ;;
7837 *)
7838 enable_fast_install=no
7839 # Look at the argument we got. We use all the common list separators.
7840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7841 for pkg in $enableval; do
7842 IFS="$lt_save_ifs"
7843 if test "X$pkg" = "X$p"; then
7844 enable_fast_install=yes
7845 fi
7846 done
7847 IFS="$lt_save_ifs"
7848 ;;
7849 esac
7850 else
7851 enable_fast_install=yes
7852 fi
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 # This can be used to rebuild libtool when needed
7865 LIBTOOL_DEPS="$ltmain"
7866
7867 # Always use our own libtool.
7868 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 test -z "$LN_S" && LN_S="ln -s"
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 if test -n "${ZSH_VERSION+set}" ; then
7915 setopt NO_GLOB_SUBST
7916 fi
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7919 $as_echo_n "checking for objdir... " >&6; }
7920 if ${lt_cv_objdir+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 rm -f .libs 2>/dev/null
7924 mkdir .libs 2>/dev/null
7925 if test -d .libs; then
7926 lt_cv_objdir=.libs
7927 else
7928 # MS-DOS does not allow filenames that begin with a dot.
7929 lt_cv_objdir=_libs
7930 fi
7931 rmdir .libs 2>/dev/null
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7934 $as_echo "$lt_cv_objdir" >&6; }
7935 objdir=$lt_cv_objdir
7936
7937
7938
7939
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define LT_OBJDIR "$lt_cv_objdir/"
7943 _ACEOF
7944
7945
7946
7947
7948 case $host_os in
7949 aix3*)
7950 # AIX sometimes has problems with the GCC collect2 program. For some
7951 # reason, if we set the COLLECT_NAMES environment variable, the problems
7952 # vanish in a puff of smoke.
7953 if test "X${COLLECT_NAMES+set}" != Xset; then
7954 COLLECT_NAMES=
7955 export COLLECT_NAMES
7956 fi
7957 ;;
7958 esac
7959
7960 # Global variables:
7961 ofile=libtool
7962 can_build_shared=yes
7963
7964 # All known linkers require a `.a' archive for static linking (except MSVC,
7965 # which needs '.lib').
7966 libext=a
7967
7968 with_gnu_ld="$lt_cv_prog_gnu_ld"
7969
7970 old_CC="$CC"
7971 old_CFLAGS="$CFLAGS"
7972
7973 # Set sane defaults for various variables
7974 test -z "$CC" && CC=cc
7975 test -z "$LTCC" && LTCC=$CC
7976 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7977 test -z "$LD" && LD=ld
7978 test -z "$ac_objext" && ac_objext=o
7979
7980 for cc_temp in $compiler""; do
7981 case $cc_temp in
7982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7984 \-*) ;;
7985 *) break;;
7986 esac
7987 done
7988 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7989
7990
7991 # Only perform the check for file, if the check method requires it
7992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7993 case $deplibs_check_method in
7994 file_magic*)
7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAGIC_CMD in
8002 [\\/*] | ?:[\\/]*)
8003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 lt_save_MAGIC_CMD="$MAGIC_CMD"
8007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir in $ac_dummy; do
8010 IFS="$lt_save_ifs"
8011 test -z "$ac_dir" && ac_dir=.
8012 if test -f $ac_dir/${ac_tool_prefix}file; then
8013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8016 "file_magic "*)
8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020 $EGREP "$file_magic_regex" > /dev/null; then
8021 :
8022 else
8023 cat <<_LT_EOF 1>&2
8024
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** bug-libtool@gnu.org
8033
8034 _LT_EOF
8035 fi ;;
8036 esac
8037 fi
8038 break
8039 fi
8040 done
8041 IFS="$lt_save_ifs"
8042 MAGIC_CMD="$lt_save_MAGIC_CMD"
8043 ;;
8044 esac
8045 fi
8046
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057
8058
8059
8060 if test -z "$lt_cv_path_MAGIC_CMD"; then
8061 if test -n "$ac_tool_prefix"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8063 $as_echo_n "checking for file... " >&6; }
8064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $MAGIC_CMD in
8068 [\\/*] | ?:[\\/]*)
8069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8070 ;;
8071 *)
8072 lt_save_MAGIC_CMD="$MAGIC_CMD"
8073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS="$lt_save_ifs"
8077 test -z "$ac_dir" && ac_dir=.
8078 if test -f $ac_dir/file; then
8079 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8080 if test -n "$file_magic_test_file"; then
8081 case $deplibs_check_method in
8082 "file_magic "*)
8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8086 $EGREP "$file_magic_regex" > /dev/null; then
8087 :
8088 else
8089 cat <<_LT_EOF 1>&2
8090
8091 *** Warning: the command libtool uses to detect shared libraries,
8092 *** $file_magic_cmd, produces output that libtool cannot recognize.
8093 *** The result is that libtool may fail to recognize shared libraries
8094 *** as such. This will affect the creation of libtool libraries that
8095 *** depend on shared libraries, but programs linked with such libtool
8096 *** libraries will work regardless of this problem. Nevertheless, you
8097 *** may want to report the problem to your system manager and/or to
8098 *** bug-libtool@gnu.org
8099
8100 _LT_EOF
8101 fi ;;
8102 esac
8103 fi
8104 break
8105 fi
8106 done
8107 IFS="$lt_save_ifs"
8108 MAGIC_CMD="$lt_save_MAGIC_CMD"
8109 ;;
8110 esac
8111 fi
8112
8113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8114 if test -n "$MAGIC_CMD"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8116 $as_echo "$MAGIC_CMD" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 else
8124 MAGIC_CMD=:
8125 fi
8126 fi
8127
8128 fi
8129 ;;
8130 esac
8131
8132 # Use C for the default configuration in the libtool script
8133
8134 lt_save_CC="$CC"
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141
8142 # Source file extension for C test sources.
8143 ac_ext=c
8144
8145 # Object file extension for compiled C test sources.
8146 objext=o
8147 objext=$objext
8148
8149 # Code to be used in simple compile tests
8150 lt_simple_compile_test_code="int some_variable = 0;"
8151
8152 # Code to be used in simple link tests
8153 lt_simple_link_test_code='int main(){return(0);}'
8154
8155
8156
8157
8158
8159
8160
8161 # If no C compiler was specified, use CC.
8162 LTCC=${LTCC-"$CC"}
8163
8164 # If no C compiler flags were specified, use CFLAGS.
8165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8166
8167 # Allow CC to be a program name with arguments.
8168 compiler=$CC
8169
8170 # Save the default compiler, since it gets overwritten when the other
8171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8172 compiler_DEFAULT=$CC
8173
8174 # save warnings/boilerplate of simple test code
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_compiler_boilerplate=`cat conftest.err`
8179 $RM conftest*
8180
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8184 _lt_linker_boilerplate=`cat conftest.err`
8185 $RM -r conftest*
8186
8187
8188 if test -n "$compiler"; then
8189
8190 lt_prog_compiler_no_builtin_flag=
8191
8192 if test "$GCC" = yes; then
8193 case $cc_basename in
8194 nvcc*)
8195 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8196 *)
8197 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8198 esac
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8201 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8202 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_prog_compiler_rtti_exceptions=no
8206 ac_outfile=conftest.$ac_objext
8207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208 lt_compiler_flag="-fno-rtti -fno-exceptions"
8209 # Insert the option either (1) after the last *FLAGS variable, or
8210 # (2) before a word containing "conftest.", or (3) at the end.
8211 # Note that $ac_compile itself does not contain backslashes and begins
8212 # with a dollar sign (not a hyphen), so the echo should work correctly.
8213 # The option is referenced via a variable to avoid confusing sed.
8214 lt_compile=`echo "$ac_compile" | $SED \
8215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217 -e 's:$: $lt_compiler_flag:'`
8218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219 (eval "$lt_compile" 2>conftest.err)
8220 ac_status=$?
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 if (exit $ac_status) && test -s "$ac_outfile"; then
8224 # The compiler can only warn and ignore the option if not recognized
8225 # So say no if there are warnings other than the usual output.
8226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8229 lt_cv_prog_compiler_rtti_exceptions=yes
8230 fi
8231 fi
8232 $RM conftest*
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8236 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8237
8238 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8239 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8240 else
8241 :
8242 fi
8243
8244 fi
8245
8246
8247
8248
8249
8250
8251 lt_prog_compiler_wl=
8252 lt_prog_compiler_pic=
8253 lt_prog_compiler_static=
8254
8255
8256 if test "$GCC" = yes; then
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_static='-static'
8259
8260 case $host_os in
8261 aix*)
8262 # All AIX code is PIC.
8263 if test "$host_cpu" = ia64; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8266 fi
8267 ;;
8268
8269 amigaos*)
8270 case $host_cpu in
8271 powerpc)
8272 # see comment about AmigaOS4 .so support
8273 lt_prog_compiler_pic='-fPIC'
8274 ;;
8275 m68k)
8276 # FIXME: we need at least 68020 code to build shared libraries, but
8277 # adding the `-m68020' flag to GCC prevents building anything better,
8278 # like `-m68040'.
8279 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8280 ;;
8281 esac
8282 ;;
8283
8284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8285 # PIC is the default for these OSes.
8286 ;;
8287
8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8292 # (--disable-auto-import) libraries
8293 lt_prog_compiler_pic='-DDLL_EXPORT'
8294 ;;
8295
8296 darwin* | rhapsody*)
8297 # PIC is the default on this platform
8298 # Common symbols not allowed in MH_DYLIB files
8299 lt_prog_compiler_pic='-fno-common'
8300 ;;
8301
8302 haiku*)
8303 # PIC is the default for Haiku.
8304 # The "-static" flag exists, but is broken.
8305 lt_prog_compiler_static=
8306 ;;
8307
8308 hpux*)
8309 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8310 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8311 # sets the default TLS model and affects inlining.
8312 case $host_cpu in
8313 hppa*64*)
8314 # +Z the default
8315 ;;
8316 *)
8317 lt_prog_compiler_pic='-fPIC'
8318 ;;
8319 esac
8320 ;;
8321
8322 interix[3-9]*)
8323 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8324 # Instead, we relocate shared libraries at runtime.
8325 ;;
8326
8327 msdosdjgpp*)
8328 # Just because we use GCC doesn't mean we suddenly get shared libraries
8329 # on systems that don't support them.
8330 lt_prog_compiler_can_build_shared=no
8331 enable_shared=no
8332 ;;
8333
8334 *nto* | *qnx*)
8335 # QNX uses GNU C++, but need to define -shared option too, otherwise
8336 # it will coredump.
8337 lt_prog_compiler_pic='-fPIC -shared'
8338 ;;
8339
8340 sysv4*MP*)
8341 if test -d /usr/nec; then
8342 lt_prog_compiler_pic=-Kconform_pic
8343 fi
8344 ;;
8345
8346 *)
8347 lt_prog_compiler_pic='-fPIC'
8348 ;;
8349 esac
8350
8351 case $cc_basename in
8352 nvcc*) # Cuda Compiler Driver 2.2
8353 lt_prog_compiler_wl='-Xlinker '
8354 if test -n "$lt_prog_compiler_pic"; then
8355 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8356 fi
8357 ;;
8358 esac
8359 else
8360 # PORTME Check for flag to pass linker flags through the system compiler.
8361 case $host_os in
8362 aix*)
8363 lt_prog_compiler_wl='-Wl,'
8364 if test "$host_cpu" = ia64; then
8365 # AIX 5 now supports IA64 processor
8366 lt_prog_compiler_static='-Bstatic'
8367 else
8368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8369 fi
8370 ;;
8371
8372 mingw* | cygwin* | pw32* | os2* | cegcc*)
8373 # This hack is so that the source file can tell whether it is being
8374 # built for inclusion in a dll (and should export symbols for example).
8375 lt_prog_compiler_pic='-DDLL_EXPORT'
8376 ;;
8377
8378 hpux9* | hpux10* | hpux11*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381 # not for PA HP-UX.
8382 case $host_cpu in
8383 hppa*64*|ia64*)
8384 # +Z the default
8385 ;;
8386 *)
8387 lt_prog_compiler_pic='+Z'
8388 ;;
8389 esac
8390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391 lt_prog_compiler_static='${wl}-a ${wl}archive'
8392 ;;
8393
8394 irix5* | irix6* | nonstopux*)
8395 lt_prog_compiler_wl='-Wl,'
8396 # PIC (with -KPIC) is the default.
8397 lt_prog_compiler_static='-non_shared'
8398 ;;
8399
8400 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8401 case $cc_basename in
8402 # old Intel for x86_64 which still supported -KPIC.
8403 ecc*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-static'
8407 ;;
8408 # icc used to be incompatible with GCC.
8409 # ICC 10 doesn't accept -KPIC any more.
8410 icc* | ifort*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-fPIC'
8413 lt_prog_compiler_static='-static'
8414 ;;
8415 # Lahey Fortran 8.1.
8416 lf95*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='--shared'
8419 lt_prog_compiler_static='--static'
8420 ;;
8421 nagfor*)
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8428 # Portland Group compilers (*not* the Pentium gcc compiler,
8429 # which looks to be a dead project)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-fpic'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434 ccc*)
8435 lt_prog_compiler_wl='-Wl,'
8436 # All Alpha code is PIC.
8437 lt_prog_compiler_static='-non_shared'
8438 ;;
8439 xl* | bgxl* | bgf* | mpixl*)
8440 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-qpic'
8443 lt_prog_compiler_static='-qstaticlink'
8444 ;;
8445 *)
8446 case `$CC -V 2>&1 | sed 5q` in
8447 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8448 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl=''
8452 ;;
8453 *Sun\ F* | *Sun*Fortran*)
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_wl='-Qoption ld '
8457 ;;
8458 *Sun\ C*)
8459 # Sun C 5.9
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Wl,'
8463 ;;
8464 *Intel*\ [CF]*Compiler*)
8465 lt_prog_compiler_wl='-Wl,'
8466 lt_prog_compiler_pic='-fPIC'
8467 lt_prog_compiler_static='-static'
8468 ;;
8469 *Portland\ Group*)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-fpic'
8472 lt_prog_compiler_static='-Bstatic'
8473 ;;
8474 esac
8475 ;;
8476 esac
8477 ;;
8478
8479 newsos6)
8480 lt_prog_compiler_pic='-KPIC'
8481 lt_prog_compiler_static='-Bstatic'
8482 ;;
8483
8484 *nto* | *qnx*)
8485 # QNX uses GNU C++, but need to define -shared option too, otherwise
8486 # it will coredump.
8487 lt_prog_compiler_pic='-fPIC -shared'
8488 ;;
8489
8490 osf3* | osf4* | osf5*)
8491 lt_prog_compiler_wl='-Wl,'
8492 # All OSF/1 code is PIC.
8493 lt_prog_compiler_static='-non_shared'
8494 ;;
8495
8496 rdos*)
8497 lt_prog_compiler_static='-non_shared'
8498 ;;
8499
8500 solaris*)
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 case $cc_basename in
8504 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8505 lt_prog_compiler_wl='-Qoption ld ';;
8506 *)
8507 lt_prog_compiler_wl='-Wl,';;
8508 esac
8509 ;;
8510
8511 sunos4*)
8512 lt_prog_compiler_wl='-Qoption ld '
8513 lt_prog_compiler_pic='-PIC'
8514 lt_prog_compiler_static='-Bstatic'
8515 ;;
8516
8517 sysv4 | sysv4.2uw2* | sysv4.3*)
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-KPIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 sysv4*MP*)
8524 if test -d /usr/nec ;then
8525 lt_prog_compiler_pic='-Kconform_pic'
8526 lt_prog_compiler_static='-Bstatic'
8527 fi
8528 ;;
8529
8530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
8535
8536 unicos*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_can_build_shared=no
8539 ;;
8540
8541 uts4*)
8542 lt_prog_compiler_pic='-pic'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545
8546 *)
8547 lt_prog_compiler_can_build_shared=no
8548 ;;
8549 esac
8550 fi
8551
8552 case $host_os in
8553 # For platforms which do not support PIC, -DPIC is meaningless:
8554 *djgpp*)
8555 lt_prog_compiler_pic=
8556 ;;
8557 *)
8558 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8559 ;;
8560 esac
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8564 if ${lt_cv_prog_compiler_pic+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8570 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8571 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8572
8573 #
8574 # Check to make sure the PIC flag actually works.
8575 #
8576 if test -n "$lt_prog_compiler_pic"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8578 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8579 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 lt_cv_prog_compiler_pic_works=no
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8597 ac_status=$?
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_pic_works=yes
8607 fi
8608 fi
8609 $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8613 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8614
8615 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8616 case $lt_prog_compiler_pic in
8617 "" | " "*) ;;
8618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8619 esac
8620 else
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_can_build_shared=no
8623 fi
8624
8625 fi
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637 #
8638 # Check to make sure the static flag actually works.
8639 #
8640 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8642 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8643 if ${lt_cv_prog_compiler_static_works+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 lt_cv_prog_compiler_static_works=no
8647 save_LDFLAGS="$LDFLAGS"
8648 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8651 # The linker can only warn and ignore the option if not recognized
8652 # So say no if there are warnings
8653 if test -s conftest.err; then
8654 # Append any errors to the config.log.
8655 cat conftest.err 1>&5
8656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8658 if diff conftest.exp conftest.er2 >/dev/null; then
8659 lt_cv_prog_compiler_static_works=yes
8660 fi
8661 else
8662 lt_cv_prog_compiler_static_works=yes
8663 fi
8664 fi
8665 $RM -r conftest*
8666 LDFLAGS="$save_LDFLAGS"
8667
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8670 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8671
8672 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8673 :
8674 else
8675 lt_prog_compiler_static=
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8685 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8686 if ${lt_cv_prog_compiler_c_o+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 lt_cv_prog_compiler_c_o=no
8690 $RM -r conftest 2>/dev/null
8691 mkdir conftest
8692 cd conftest
8693 mkdir out
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695
8696 lt_compiler_flag="-o out/conftest2.$ac_objext"
8697 # Insert the option either (1) after the last *FLAGS variable, or
8698 # (2) before a word containing "conftest.", or (3) at the end.
8699 # Note that $ac_compile itself does not contain backslashes and begins
8700 # with a dollar sign (not a hyphen), so the echo should work correctly.
8701 lt_compile=`echo "$ac_compile" | $SED \
8702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704 -e 's:$: $lt_compiler_flag:'`
8705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706 (eval "$lt_compile" 2>out/conftest.err)
8707 ac_status=$?
8708 cat out/conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8711 then
8712 # The compiler can only warn and ignore the option if not recognized
8713 # So say no if there are warnings
8714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8715 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8716 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8717 lt_cv_prog_compiler_c_o=yes
8718 fi
8719 fi
8720 chmod u+w . 2>&5
8721 $RM conftest*
8722 # SGI C++ compiler will create directory out/ii_files/ for
8723 # template instantiation
8724 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8725 $RM out/* && rmdir out
8726 cd ..
8727 $RM -r conftest
8728 $RM conftest*
8729
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8732 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8733
8734
8735
8736
8737
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8741 if ${lt_cv_prog_compiler_c_o+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 lt_cv_prog_compiler_c_o=no
8745 $RM -r conftest 2>/dev/null
8746 mkdir conftest
8747 cd conftest
8748 mkdir out
8749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8750
8751 lt_compiler_flag="-o out/conftest2.$ac_objext"
8752 # Insert the option either (1) after the last *FLAGS variable, or
8753 # (2) before a word containing "conftest.", or (3) at the end.
8754 # Note that $ac_compile itself does not contain backslashes and begins
8755 # with a dollar sign (not a hyphen), so the echo should work correctly.
8756 lt_compile=`echo "$ac_compile" | $SED \
8757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8759 -e 's:$: $lt_compiler_flag:'`
8760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8761 (eval "$lt_compile" 2>out/conftest.err)
8762 ac_status=$?
8763 cat out/conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8766 then
8767 # The compiler can only warn and ignore the option if not recognized
8768 # So say no if there are warnings
8769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8772 lt_cv_prog_compiler_c_o=yes
8773 fi
8774 fi
8775 chmod u+w . 2>&5
8776 $RM conftest*
8777 # SGI C++ compiler will create directory out/ii_files/ for
8778 # template instantiation
8779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8780 $RM out/* && rmdir out
8781 cd ..
8782 $RM -r conftest
8783 $RM conftest*
8784
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8787 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8788
8789
8790
8791
8792 hard_links="nottested"
8793 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8794 # do not overwrite the value of need_locks provided by the user
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8796 $as_echo_n "checking if we can lock with hard links... " >&6; }
8797 hard_links=yes
8798 $RM conftest*
8799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8800 touch conftest.a
8801 ln conftest.a conftest.b 2>&5 || hard_links=no
8802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8804 $as_echo "$hard_links" >&6; }
8805 if test "$hard_links" = no; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8807 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8808 need_locks=warn
8809 fi
8810 else
8811 need_locks=no
8812 fi
8813
8814
8815
8816
8817
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8820 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8821
8822 runpath_var=
8823 allow_undefined_flag=
8824 always_export_symbols=no
8825 archive_cmds=
8826 archive_expsym_cmds=
8827 compiler_needs_object=no
8828 enable_shared_with_static_runtimes=no
8829 export_dynamic_flag_spec=
8830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8831 hardcode_automatic=no
8832 hardcode_direct=no
8833 hardcode_direct_absolute=no
8834 hardcode_libdir_flag_spec=
8835 hardcode_libdir_separator=
8836 hardcode_minus_L=no
8837 hardcode_shlibpath_var=unsupported
8838 inherit_rpath=no
8839 link_all_deplibs=unknown
8840 module_cmds=
8841 module_expsym_cmds=
8842 old_archive_from_new_cmds=
8843 old_archive_from_expsyms_cmds=
8844 thread_safe_flag_spec=
8845 whole_archive_flag_spec=
8846 # include_expsyms should be a list of space-separated symbols to be *always*
8847 # included in the symbol list
8848 include_expsyms=
8849 # exclude_expsyms can be an extended regexp of symbols to exclude
8850 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8851 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8852 # as well as any symbol that contains `d'.
8853 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8854 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8855 # platforms (ab)use it in PIC code, but their linkers get confused if
8856 # the symbol is explicitly referenced. Since portable code cannot
8857 # rely on this symbol name, it's probably fine to never include it in
8858 # preloaded symbol tables.
8859 # Exclude shared library initialization/finalization symbols.
8860 extract_expsyms_cmds=
8861
8862 case $host_os in
8863 cygwin* | mingw* | pw32* | cegcc*)
8864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8865 # When not using gcc, we currently assume that we are using
8866 # Microsoft Visual C++.
8867 if test "$GCC" != yes; then
8868 with_gnu_ld=no
8869 fi
8870 ;;
8871 interix*)
8872 # we just hope/assume this is gcc and not c89 (= MSVC++)
8873 with_gnu_ld=yes
8874 ;;
8875 openbsd*)
8876 with_gnu_ld=no
8877 ;;
8878 esac
8879
8880 ld_shlibs=yes
8881
8882 # On some targets, GNU ld is compatible enough with the native linker
8883 # that we're better off using the native interface for both.
8884 lt_use_gnu_ld_interface=no
8885 if test "$with_gnu_ld" = yes; then
8886 case $host_os in
8887 aix*)
8888 # The AIX port of GNU ld has always aspired to compatibility
8889 # with the native linker. However, as the warning in the GNU ld
8890 # block says, versions before 2.19.5* couldn't really create working
8891 # shared libraries, regardless of the interface used.
8892 case `$LD -v 2>&1` in
8893 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8894 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8895 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8896 *)
8897 lt_use_gnu_ld_interface=yes
8898 ;;
8899 esac
8900 ;;
8901 *)
8902 lt_use_gnu_ld_interface=yes
8903 ;;
8904 esac
8905 fi
8906
8907 if test "$lt_use_gnu_ld_interface" = yes; then
8908 # If archive_cmds runs LD, not CC, wlarc should be empty
8909 wlarc='${wl}'
8910
8911 # Set some defaults for GNU ld with shared library support. These
8912 # are reset later if shared libraries are not supported. Putting them
8913 # here allows them to be overridden if necessary.
8914 runpath_var=LD_RUN_PATH
8915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8916 export_dynamic_flag_spec='${wl}--export-dynamic'
8917 # ancient GNU ld didn't support --whole-archive et. al.
8918 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8919 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8920 else
8921 whole_archive_flag_spec=
8922 fi
8923 supports_anon_versioning=no
8924 case `$LD -v 2>&1` in
8925 *GNU\ gold*) supports_anon_versioning=yes ;;
8926 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8927 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8928 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8929 *\ 2.11.*) ;; # other 2.11 versions
8930 *) supports_anon_versioning=yes ;;
8931 esac
8932
8933 # See if GNU ld supports shared libraries.
8934 case $host_os in
8935 aix[3-9]*)
8936 # On AIX/PPC, the GNU linker is very broken
8937 if test "$host_cpu" != ia64; then
8938 ld_shlibs=no
8939 cat <<_LT_EOF 1>&2
8940
8941 *** Warning: the GNU linker, at least up to release 2.19, is reported
8942 *** to be unable to reliably create shared libraries on AIX.
8943 *** Therefore, libtool is disabling shared libraries support. If you
8944 *** really care for shared libraries, you may want to install binutils
8945 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8946 *** You will then need to restart the configuration process.
8947
8948 _LT_EOF
8949 fi
8950 ;;
8951
8952 amigaos*)
8953 case $host_cpu in
8954 powerpc)
8955 # see comment about AmigaOS4 .so support
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds=''
8958 ;;
8959 m68k)
8960 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)'
8961 hardcode_libdir_flag_spec='-L$libdir'
8962 hardcode_minus_L=yes
8963 ;;
8964 esac
8965 ;;
8966
8967 beos*)
8968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8969 allow_undefined_flag=unsupported
8970 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8971 # support --undefined. This deserves some investigation. FIXME
8972 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8973 else
8974 ld_shlibs=no
8975 fi
8976 ;;
8977
8978 cygwin* | mingw* | pw32* | cegcc*)
8979 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8980 # as there is no search path for DLLs.
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 export_dynamic_flag_spec='${wl}--export-all-symbols'
8983 allow_undefined_flag=unsupported
8984 always_export_symbols=no
8985 enable_shared_with_static_runtimes=yes
8986 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'
8987 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8988
8989 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8991 # If the export-symbols file already is a .def file (1st line
8992 # is EXPORTS), use it as is; otherwise, prepend...
8993 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8994 cp $export_symbols $output_objdir/$soname.def;
8995 else
8996 echo EXPORTS > $output_objdir/$soname.def;
8997 cat $export_symbols >> $output_objdir/$soname.def;
8998 fi~
8999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004
9005 haiku*)
9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 link_all_deplibs=yes
9008 ;;
9009
9010 interix[3-9]*)
9011 hardcode_direct=no
9012 hardcode_shlibpath_var=no
9013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9014 export_dynamic_flag_spec='${wl}-E'
9015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9016 # Instead, shared libraries are loaded at an image base (0x10000000 by
9017 # default) and relocated if they conflict, which is a slow very memory
9018 # consuming and fragmenting process. To avoid this, we pick a random,
9019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9022 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'
9023 ;;
9024
9025 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9026 tmp_diet=no
9027 if test "$host_os" = linux-dietlibc; then
9028 case $cc_basename in
9029 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9030 esac
9031 fi
9032 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9033 && test "$tmp_diet" = no
9034 then
9035 tmp_addflag=' $pic_flag'
9036 tmp_sharedflag='-shared'
9037 case $cc_basename,$host_cpu in
9038 pgcc*) # Portland Group C compiler
9039 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'
9040 tmp_addflag=' $pic_flag'
9041 ;;
9042 pgf77* | pgf90* | pgf95* | pgfortran*)
9043 # Portland Group f77 and f90 compilers
9044 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'
9045 tmp_addflag=' $pic_flag -Mnomain' ;;
9046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9047 tmp_addflag=' -i_dynamic' ;;
9048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9049 tmp_addflag=' -i_dynamic -nofor_main' ;;
9050 ifc* | ifort*) # Intel Fortran compiler
9051 tmp_addflag=' -nofor_main' ;;
9052 lf95*) # Lahey Fortran 8.1
9053 whole_archive_flag_spec=
9054 tmp_sharedflag='--shared' ;;
9055 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9056 tmp_sharedflag='-qmkshrobj'
9057 tmp_addflag= ;;
9058 nvcc*) # Cuda Compiler Driver 2.2
9059 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'
9060 compiler_needs_object=yes
9061 ;;
9062 esac
9063 case `$CC -V 2>&1 | sed 5q` in
9064 *Sun\ C*) # Sun C 5.9
9065 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'
9066 compiler_needs_object=yes
9067 tmp_sharedflag='-G' ;;
9068 *Sun\ F*) # Sun Fortran 8.3
9069 tmp_sharedflag='-G' ;;
9070 esac
9071 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072
9073 if test "x$supports_anon_versioning" = xyes; then
9074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9076 echo "local: *; };" >> $output_objdir/$libname.ver~
9077 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9078 fi
9079
9080 case $cc_basename in
9081 xlf* | bgf* | bgxlf* | mpixlf*)
9082 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9083 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9085 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9086 if test "x$supports_anon_versioning" = xyes; then
9087 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9089 echo "local: *; };" >> $output_objdir/$libname.ver~
9090 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9091 fi
9092 ;;
9093 esac
9094 else
9095 ld_shlibs=no
9096 fi
9097 ;;
9098
9099 netbsd*)
9100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102 wlarc=
9103 else
9104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106 fi
9107 ;;
9108
9109 solaris*)
9110 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9111 ld_shlibs=no
9112 cat <<_LT_EOF 1>&2
9113
9114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9115 *** create shared libraries on Solaris systems. Therefore, libtool
9116 *** is disabling shared libraries support. We urge you to upgrade GNU
9117 *** binutils to release 2.9.1 or newer. Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9120
9121 _LT_EOF
9122 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125 else
9126 ld_shlibs=no
9127 fi
9128 ;;
9129
9130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9131 case `$LD -v 2>&1` in
9132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9133 ld_shlibs=no
9134 cat <<_LT_EOF 1>&2
9135
9136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9137 *** reliably create shared libraries on SCO systems. Therefore, libtool
9138 *** is disabling shared libraries support. We urge you to upgrade GNU
9139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9140 *** your PATH or compiler configuration so that the native linker is
9141 *** used, and then restart.
9142
9143 _LT_EOF
9144 ;;
9145 *)
9146 # For security reasons, it is highly recommended that you always
9147 # use absolute paths for naming shared libraries, and exclude the
9148 # DT_RUNPATH tag from executables and libraries. But doing so
9149 # requires that you compile everything twice, which is a pain.
9150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158 esac
9159 ;;
9160
9161 sunos4*)
9162 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 wlarc=
9164 hardcode_direct=yes
9165 hardcode_shlibpath_var=no
9166 ;;
9167
9168 *)
9169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9172 else
9173 ld_shlibs=no
9174 fi
9175 ;;
9176 esac
9177
9178 if test "$ld_shlibs" = no; then
9179 runpath_var=
9180 hardcode_libdir_flag_spec=
9181 export_dynamic_flag_spec=
9182 whole_archive_flag_spec=
9183 fi
9184 else
9185 # PORTME fill in a description of your system's linker (not GNU ld)
9186 case $host_os in
9187 aix3*)
9188 allow_undefined_flag=unsupported
9189 always_export_symbols=yes
9190 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'
9191 # Note: this linker hardcodes the directories in LIBPATH if there
9192 # are no directories specified by -L.
9193 hardcode_minus_L=yes
9194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9195 # Neither direct hardcoding nor static linking is supported with a
9196 # broken collect2.
9197 hardcode_direct=unsupported
9198 fi
9199 ;;
9200
9201 aix[4-9]*)
9202 if test "$host_cpu" = ia64; then
9203 # On IA64, the linker does run time linking by default, so we don't
9204 # have to do anything special.
9205 aix_use_runtimelinking=no
9206 exp_sym_flag='-Bexport'
9207 no_entry_flag=""
9208 else
9209 # If we're using GNU nm, then we don't want the "-C" option.
9210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9211 # Also, AIX nm treats weak defined symbols like other global
9212 # defined symbols, whereas GNU nm marks them as "W".
9213 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9214 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9215 else
9216 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9217 fi
9218 aix_use_runtimelinking=no
9219
9220 # Test if we are trying to use run time linking or normal
9221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9222 # need to do runtime linking.
9223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9224 for ld_flag in $LDFLAGS; do
9225 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9226 aix_use_runtimelinking=yes
9227 break
9228 fi
9229 done
9230 ;;
9231 esac
9232
9233 exp_sym_flag='-bexport'
9234 no_entry_flag='-bnoentry'
9235 fi
9236
9237 # When large executables or shared objects are built, AIX ld can
9238 # have problems creating the table of contents. If linking a library
9239 # or program results in "error TOC overflow" add -mminimal-toc to
9240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9242
9243 archive_cmds=''
9244 hardcode_direct=yes
9245 hardcode_direct_absolute=yes
9246 hardcode_libdir_separator=':'
9247 link_all_deplibs=yes
9248 file_list_spec='${wl}-f,'
9249
9250 if test "$GCC" = yes; then
9251 case $host_os in aix4.[012]|aix4.[012].*)
9252 # We only want to do this on AIX 4.2 and lower, the check
9253 # below for broken collect2 doesn't work under 4.3+
9254 collect2name=`${CC} -print-prog-name=collect2`
9255 if test -f "$collect2name" &&
9256 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9257 then
9258 # We have reworked collect2
9259 :
9260 else
9261 # We have old collect2
9262 hardcode_direct=unsupported
9263 # It fails to find uninstalled libraries when the uninstalled
9264 # path is not listed in the libpath. Setting hardcode_minus_L
9265 # to unsupported forces relinking
9266 hardcode_minus_L=yes
9267 hardcode_libdir_flag_spec='-L$libdir'
9268 hardcode_libdir_separator=
9269 fi
9270 ;;
9271 esac
9272 shared_flag='-shared'
9273 if test "$aix_use_runtimelinking" = yes; then
9274 shared_flag="$shared_flag "'${wl}-G'
9275 fi
9276 else
9277 # not using gcc
9278 if test "$host_cpu" = ia64; then
9279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9280 # chokes on -Wl,-G. The following line is correct:
9281 shared_flag='-G'
9282 else
9283 if test "$aix_use_runtimelinking" = yes; then
9284 shared_flag='${wl}-G'
9285 else
9286 shared_flag='${wl}-bM:SRE'
9287 fi
9288 fi
9289 fi
9290
9291 export_dynamic_flag_spec='${wl}-bexpall'
9292 # It seems that -bexpall does not export symbols beginning with
9293 # underscore (_), so it is better to generate a list of symbols to export.
9294 always_export_symbols=yes
9295 if test "$aix_use_runtimelinking" = yes; then
9296 # Warning - without using the other runtime loading flags (-brtl),
9297 # -berok will link without error, but may produce a broken library.
9298 allow_undefined_flag='-berok'
9299 # Determine the default libpath from the value encoded in an
9300 # empty executable.
9301 if test "${lt_cv_aix_libpath+set}" = set; then
9302 aix_libpath=$lt_cv_aix_libpath
9303 else
9304 if ${lt_cv_aix_libpath_+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309
9310 int
9311 main ()
9312 {
9313
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"; then :
9319
9320 lt_aix_libpath_sed='
9321 /Import File Strings/,/^$/ {
9322 /^0/ {
9323 s/^0 *\([^ ]*\) *$/\1/
9324 p
9325 }
9326 }'
9327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9328 # Check for a 64-bit object if we didn't find anything.
9329 if test -z "$lt_cv_aix_libpath_"; then
9330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9331 fi
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 if test -z "$lt_cv_aix_libpath_"; then
9336 lt_cv_aix_libpath_="/usr/lib:/lib"
9337 fi
9338
9339 fi
9340
9341 aix_libpath=$lt_cv_aix_libpath_
9342 fi
9343
9344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9346 else
9347 if test "$host_cpu" = ia64; then
9348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9349 allow_undefined_flag="-z nodefs"
9350 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"
9351 else
9352 # Determine the default libpath from the value encoded in an
9353 # empty executable.
9354 if test "${lt_cv_aix_libpath+set}" = set; then
9355 aix_libpath=$lt_cv_aix_libpath
9356 else
9357 if ${lt_cv_aix_libpath_+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362
9363 int
9364 main ()
9365 {
9366
9367 ;
9368 return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372
9373 lt_aix_libpath_sed='
9374 /Import File Strings/,/^$/ {
9375 /^0/ {
9376 s/^0 *\([^ ]*\) *$/\1/
9377 p
9378 }
9379 }'
9380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$lt_cv_aix_libpath_"; then
9383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 fi
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test -z "$lt_cv_aix_libpath_"; then
9389 lt_cv_aix_libpath_="/usr/lib:/lib"
9390 fi
9391
9392 fi
9393
9394 aix_libpath=$lt_cv_aix_libpath_
9395 fi
9396
9397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9398 # Warning - without using the other run time loading flags,
9399 # -berok will link without error, but may produce a broken library.
9400 no_undefined_flag=' ${wl}-bernotok'
9401 allow_undefined_flag=' ${wl}-berok'
9402 if test "$with_gnu_ld" = yes; then
9403 # We only use this code for GNU lds that support --whole-archive.
9404 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9405 else
9406 # Exported symbols can be pulled into shared objects from archives
9407 whole_archive_flag_spec='$convenience'
9408 fi
9409 archive_cmds_need_lc=yes
9410 # This is similar to how AIX traditionally builds its shared libraries.
9411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9412 fi
9413 fi
9414 ;;
9415
9416 amigaos*)
9417 case $host_cpu in
9418 powerpc)
9419 # see comment about AmigaOS4 .so support
9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421 archive_expsym_cmds=''
9422 ;;
9423 m68k)
9424 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)'
9425 hardcode_libdir_flag_spec='-L$libdir'
9426 hardcode_minus_L=yes
9427 ;;
9428 esac
9429 ;;
9430
9431 bsdi[45]*)
9432 export_dynamic_flag_spec=-rdynamic
9433 ;;
9434
9435 cygwin* | mingw* | pw32* | cegcc*)
9436 # When not using gcc, we currently assume that we are using
9437 # Microsoft Visual C++.
9438 # hardcode_libdir_flag_spec is actually meaningless, as there is
9439 # no search path for DLLs.
9440 case $cc_basename in
9441 cl*)
9442 # Native MSVC
9443 hardcode_libdir_flag_spec=' '
9444 allow_undefined_flag=unsupported
9445 always_export_symbols=yes
9446 file_list_spec='@'
9447 # Tell ltmain to make .lib files, not .a files.
9448 libext=lib
9449 # Tell ltmain to make .dll files, not .so files.
9450 shrext_cmds=".dll"
9451 # FIXME: Setting linknames here is a bad hack.
9452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9454 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9455 else
9456 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9457 fi~
9458 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9459 linknames='
9460 # The linker will not automatically build a static lib if we build a DLL.
9461 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9462 enable_shared_with_static_runtimes=yes
9463 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9465 # Don't use ranlib
9466 old_postinstall_cmds='chmod 644 $oldlib'
9467 postlink_cmds='lt_outputfile="@OUTPUT@"~
9468 lt_tool_outputfile="@TOOL_OUTPUT@"~
9469 case $lt_outputfile in
9470 *.exe|*.EXE) ;;
9471 *)
9472 lt_outputfile="$lt_outputfile.exe"
9473 lt_tool_outputfile="$lt_tool_outputfile.exe"
9474 ;;
9475 esac~
9476 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9477 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9478 $RM "$lt_outputfile.manifest";
9479 fi'
9480 ;;
9481 *)
9482 # Assume MSVC wrapper
9483 hardcode_libdir_flag_spec=' '
9484 allow_undefined_flag=unsupported
9485 # Tell ltmain to make .lib files, not .a files.
9486 libext=lib
9487 # Tell ltmain to make .dll files, not .so files.
9488 shrext_cmds=".dll"
9489 # FIXME: Setting linknames here is a bad hack.
9490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9491 # The linker will automatically build a .lib file if we build a DLL.
9492 old_archive_from_new_cmds='true'
9493 # FIXME: Should let the user specify the lib program.
9494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9495 enable_shared_with_static_runtimes=yes
9496 ;;
9497 esac
9498 ;;
9499
9500 darwin* | rhapsody*)
9501
9502
9503 archive_cmds_need_lc=no
9504 hardcode_direct=no
9505 hardcode_automatic=yes
9506 hardcode_shlibpath_var=unsupported
9507 if test "$lt_cv_ld_force_load" = "yes"; then
9508 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\"`'
9509
9510 else
9511 whole_archive_flag_spec=''
9512 fi
9513 link_all_deplibs=yes
9514 allow_undefined_flag="$_lt_dar_allow_undefined"
9515 case $cc_basename in
9516 ifort*) _lt_dar_can_shared=yes ;;
9517 *) _lt_dar_can_shared=$GCC ;;
9518 esac
9519 if test "$_lt_dar_can_shared" = "yes"; then
9520 output_verbose_link_cmd=func_echo_all
9521 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9522 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9523 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}"
9524 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}"
9525
9526 else
9527 ld_shlibs=no
9528 fi
9529
9530 ;;
9531
9532 dgux*)
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_libdir_flag_spec='-L$libdir'
9535 hardcode_shlibpath_var=no
9536 ;;
9537
9538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9539 # support. Future versions do this automatically, but an explicit c++rt0.o
9540 # does not break anything, and helps significantly (at the cost of a little
9541 # extra space).
9542 freebsd2.2*)
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9544 hardcode_libdir_flag_spec='-R$libdir'
9545 hardcode_direct=yes
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9550 freebsd2.*)
9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_direct=yes
9553 hardcode_minus_L=yes
9554 hardcode_shlibpath_var=no
9555 ;;
9556
9557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9558 freebsd* | dragonfly*)
9559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9560 hardcode_libdir_flag_spec='-R$libdir'
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 hpux9*)
9566 if test "$GCC" = yes; then
9567 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9568 else
9569 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9570 fi
9571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_separator=:
9573 hardcode_direct=yes
9574
9575 # hardcode_minus_L: Not really in the search PATH,
9576 # but as the default location of the library.
9577 hardcode_minus_L=yes
9578 export_dynamic_flag_spec='${wl}-E'
9579 ;;
9580
9581 hpux10*)
9582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9583 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9584 else
9585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9586 fi
9587 if test "$with_gnu_ld" = no; then
9588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_separator=:
9590 hardcode_direct=yes
9591 hardcode_direct_absolute=yes
9592 export_dynamic_flag_spec='${wl}-E'
9593 # hardcode_minus_L: Not really in the search PATH,
9594 # but as the default location of the library.
9595 hardcode_minus_L=yes
9596 fi
9597 ;;
9598
9599 hpux11*)
9600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9601 case $host_cpu in
9602 hppa*64*)
9603 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 ;;
9605 ia64*)
9606 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9607 ;;
9608 *)
9609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610 ;;
9611 esac
9612 else
9613 case $host_cpu in
9614 hppa*64*)
9615 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 ;;
9617 ia64*)
9618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9619 ;;
9620 *)
9621
9622 # Older versions of the 11.00 compiler do not understand -b yet
9623 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9625 $as_echo_n "checking if $CC understands -b... " >&6; }
9626 if ${lt_cv_prog_compiler__b+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 lt_cv_prog_compiler__b=no
9630 save_LDFLAGS="$LDFLAGS"
9631 LDFLAGS="$LDFLAGS -b"
9632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9634 # The linker can only warn and ignore the option if not recognized
9635 # So say no if there are warnings
9636 if test -s conftest.err; then
9637 # Append any errors to the config.log.
9638 cat conftest.err 1>&5
9639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9641 if diff conftest.exp conftest.er2 >/dev/null; then
9642 lt_cv_prog_compiler__b=yes
9643 fi
9644 else
9645 lt_cv_prog_compiler__b=yes
9646 fi
9647 fi
9648 $RM -r conftest*
9649 LDFLAGS="$save_LDFLAGS"
9650
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9653 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9654
9655 if test x"$lt_cv_prog_compiler__b" = xyes; then
9656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9659 fi
9660
9661 ;;
9662 esac
9663 fi
9664 if test "$with_gnu_ld" = no; then
9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666 hardcode_libdir_separator=:
9667
9668 case $host_cpu in
9669 hppa*64*|ia64*)
9670 hardcode_direct=no
9671 hardcode_shlibpath_var=no
9672 ;;
9673 *)
9674 hardcode_direct=yes
9675 hardcode_direct_absolute=yes
9676 export_dynamic_flag_spec='${wl}-E'
9677
9678 # hardcode_minus_L: Not really in the search PATH,
9679 # but as the default location of the library.
9680 hardcode_minus_L=yes
9681 ;;
9682 esac
9683 fi
9684 ;;
9685
9686 irix5* | irix6* | nonstopux*)
9687 if test "$GCC" = yes; then
9688 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'
9689 # Try to use the -exported_symbol ld option, if it does not
9690 # work, assume that -exports_file does not work either and
9691 # implicitly export all symbols.
9692 # This should be the same for all languages, so no per-tag cache variable.
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9694 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9695 if ${lt_cv_irix_exported_symbol+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 save_LDFLAGS="$LDFLAGS"
9699 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int foo (void) { return 0; }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 lt_cv_irix_exported_symbol=yes
9706 else
9707 lt_cv_irix_exported_symbol=no
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LDFLAGS="$save_LDFLAGS"
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9714 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9715 if test "$lt_cv_irix_exported_symbol" = yes; then
9716 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'
9717 fi
9718 else
9719 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'
9720 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'
9721 fi
9722 archive_cmds_need_lc='no'
9723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9724 hardcode_libdir_separator=:
9725 inherit_rpath=yes
9726 link_all_deplibs=yes
9727 ;;
9728
9729 netbsd*)
9730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9732 else
9733 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9734 fi
9735 hardcode_libdir_flag_spec='-R$libdir'
9736 hardcode_direct=yes
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 newsos6)
9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_direct=yes
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 hardcode_libdir_separator=:
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 *nto* | *qnx*)
9749 ;;
9750
9751 openbsd*)
9752 if test -f /usr/libexec/ld.so; then
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9755 hardcode_direct_absolute=yes
9756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9760 export_dynamic_flag_spec='${wl}-E'
9761 else
9762 case $host_os in
9763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_libdir_flag_spec='-R$libdir'
9766 ;;
9767 *)
9768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9770 ;;
9771 esac
9772 fi
9773 else
9774 ld_shlibs=no
9775 fi
9776 ;;
9777
9778 os2*)
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_minus_L=yes
9781 allow_undefined_flag=unsupported
9782 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9783 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9784 ;;
9785
9786 osf3*)
9787 if test "$GCC" = yes; then
9788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9789 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'
9790 else
9791 allow_undefined_flag=' -expect_unresolved \*'
9792 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'
9793 fi
9794 archive_cmds_need_lc='no'
9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796 hardcode_libdir_separator=:
9797 ;;
9798
9799 osf4* | osf5*) # as osf3* with the addition of -msym flag
9800 if test "$GCC" = yes; then
9801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9802 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'
9803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804 else
9805 allow_undefined_flag=' -expect_unresolved \*'
9806 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'
9807 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~
9808 $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'
9809
9810 # Both c and cxx compiler support -rpath directly
9811 hardcode_libdir_flag_spec='-rpath $libdir'
9812 fi
9813 archive_cmds_need_lc='no'
9814 hardcode_libdir_separator=:
9815 ;;
9816
9817 solaris*)
9818 no_undefined_flag=' -z defs'
9819 if test "$GCC" = yes; then
9820 wlarc='${wl}'
9821 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9823 $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'
9824 else
9825 case `$CC -V 2>&1` in
9826 *"Compilers 5.0"*)
9827 wlarc=''
9828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9831 ;;
9832 *)
9833 wlarc='${wl}'
9834 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9836 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9837 ;;
9838 esac
9839 fi
9840 hardcode_libdir_flag_spec='-R$libdir'
9841 hardcode_shlibpath_var=no
9842 case $host_os in
9843 solaris2.[0-5] | solaris2.[0-5].*) ;;
9844 *)
9845 # The compiler driver will combine and reorder linker options,
9846 # but understands `-z linker_flag'. GCC discards it without `$wl',
9847 # but is careful enough not to reorder.
9848 # Supported since Solaris 2.6 (maybe 2.5.1?)
9849 if test "$GCC" = yes; then
9850 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9851 else
9852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9853 fi
9854 ;;
9855 esac
9856 link_all_deplibs=yes
9857 ;;
9858
9859 sunos4*)
9860 if test "x$host_vendor" = xsequent; then
9861 # Use $CC to link under sequent, because it throws in some extra .o
9862 # files that make .init and .fini sections work.
9863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9864 else
9865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9866 fi
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_direct=yes
9869 hardcode_minus_L=yes
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 sysv4)
9874 case $host_vendor in
9875 sni)
9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_direct=yes # is this really true???
9878 ;;
9879 siemens)
9880 ## LD is ld it makes a PLAMLIB
9881 ## CC just makes a GrossModule.
9882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9883 reload_cmds='$CC -r -o $output$reload_objs'
9884 hardcode_direct=no
9885 ;;
9886 motorola)
9887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9889 ;;
9890 esac
9891 runpath_var='LD_RUN_PATH'
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 sysv4.3*)
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_shlibpath_var=no
9898 export_dynamic_flag_spec='-Bexport'
9899 ;;
9900
9901 sysv4*MP*)
9902 if test -d /usr/nec; then
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_shlibpath_var=no
9905 runpath_var=LD_RUN_PATH
9906 hardcode_runpath_var=yes
9907 ld_shlibs=yes
9908 fi
9909 ;;
9910
9911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9912 no_undefined_flag='${wl}-z,text'
9913 archive_cmds_need_lc=no
9914 hardcode_shlibpath_var=no
9915 runpath_var='LD_RUN_PATH'
9916
9917 if test "$GCC" = yes; then
9918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 else
9921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 fi
9924 ;;
9925
9926 sysv5* | sco3.2v5* | sco5v6*)
9927 # Note: We can NOT use -z defs as we might desire, because we do not
9928 # link with -lc, and that would cause any symbols used from libc to
9929 # always be unresolved, which means just about no library would
9930 # ever link correctly. If we're not using GNU ld we use -z text
9931 # though, which does catch some bad symbols but isn't as heavy-handed
9932 # as -z defs.
9933 no_undefined_flag='${wl}-z,text'
9934 allow_undefined_flag='${wl}-z,nodefs'
9935 archive_cmds_need_lc=no
9936 hardcode_shlibpath_var=no
9937 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9938 hardcode_libdir_separator=':'
9939 link_all_deplibs=yes
9940 export_dynamic_flag_spec='${wl}-Bexport'
9941 runpath_var='LD_RUN_PATH'
9942
9943 if test "$GCC" = yes; then
9944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 fi
9950 ;;
9951
9952 uts4*)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_shlibpath_var=no
9956 ;;
9957
9958 *)
9959 ld_shlibs=no
9960 ;;
9961 esac
9962
9963 if test x$host_vendor = xsni; then
9964 case $host in
9965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9966 export_dynamic_flag_spec='${wl}-Blargedynsym'
9967 ;;
9968 esac
9969 fi
9970 fi
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9973 $as_echo "$ld_shlibs" >&6; }
9974 test "$ld_shlibs" = no && can_build_shared=no
9975
9976 with_gnu_ld=$with_gnu_ld
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992 #
9993 # Do we need to explicitly link libc?
9994 #
9995 case "x$archive_cmds_need_lc" in
9996 x|xyes)
9997 # Assume -lc should be added
9998 archive_cmds_need_lc=yes
9999
10000 if test "$enable_shared" = yes && test "$GCC" = yes; then
10001 case $archive_cmds in
10002 *'~'*)
10003 # FIXME: we may have to deal with multi-command sequences.
10004 ;;
10005 '$CC '*)
10006 # Test whether the compiler implicitly links with -lc since on some
10007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10008 # to ld, don't add -lc before -lgcc.
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 $RM conftest*
10015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10016
10017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10018 (eval $ac_compile) 2>&5
10019 ac_status=$?
10020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021 test $ac_status = 0; } 2>conftest.err; then
10022 soname=conftest
10023 lib=conftest
10024 libobjs=conftest.$ac_objext
10025 deplibs=
10026 wl=$lt_prog_compiler_wl
10027 pic_flag=$lt_prog_compiler_pic
10028 compiler_flags=-v
10029 linker_flags=-v
10030 verstring=
10031 output_objdir=.
10032 libname=conftest
10033 lt_save_allow_undefined_flag=$allow_undefined_flag
10034 allow_undefined_flag=
10035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10037 ac_status=$?
10038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10039 test $ac_status = 0; }
10040 then
10041 lt_cv_archive_cmds_need_lc=no
10042 else
10043 lt_cv_archive_cmds_need_lc=yes
10044 fi
10045 allow_undefined_flag=$lt_save_allow_undefined_flag
10046 else
10047 cat conftest.err 1>&5
10048 fi
10049 $RM conftest*
10050
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10054 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10055 ;;
10056 esac
10057 fi
10058 ;;
10059 esac
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10214
10215 if test "$GCC" = yes; then
10216 case $host_os in
10217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10218 *) lt_awk_arg="/^libraries:/" ;;
10219 esac
10220 case $host_os in
10221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10222 *) lt_sed_strip_eq="s,=/,/,g" ;;
10223 esac
10224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10225 case $lt_search_path_spec in
10226 *\;*)
10227 # if the path contains ";" then we assume it to be the separator
10228 # otherwise default to the standard path separator (i.e. ":") - it is
10229 # assumed that no part of a normal pathname contains ";" but that should
10230 # okay in the real world where ";" in dirpaths is itself problematic.
10231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10232 ;;
10233 *)
10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10235 ;;
10236 esac
10237 # Ok, now we have the path, separated by spaces, we can step through it
10238 # and add multilib dir if necessary.
10239 lt_tmp_lt_search_path_spec=
10240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10241 for lt_sys_path in $lt_search_path_spec; do
10242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10244 else
10245 test -d "$lt_sys_path" && \
10246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10247 fi
10248 done
10249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10250 BEGIN {RS=" "; FS="/|\n";} {
10251 lt_foo="";
10252 lt_count=0;
10253 for (lt_i = NF; lt_i > 0; lt_i--) {
10254 if ($lt_i != "" && $lt_i != ".") {
10255 if ($lt_i == "..") {
10256 lt_count++;
10257 } else {
10258 if (lt_count == 0) {
10259 lt_foo="/" $lt_i lt_foo;
10260 } else {
10261 lt_count--;
10262 }
10263 }
10264 }
10265 }
10266 if (lt_foo != "") { lt_freq[lt_foo]++; }
10267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10268 }'`
10269 # AWK program above erroneously prepends '/' to C:/dos/paths
10270 # for these hosts.
10271 case $host_os in
10272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10274 esac
10275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10276 else
10277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10278 fi
10279 library_names_spec=
10280 libname_spec='lib$name'
10281 soname_spec=
10282 shrext_cmds=".so"
10283 postinstall_cmds=
10284 postuninstall_cmds=
10285 finish_cmds=
10286 finish_eval=
10287 shlibpath_var=
10288 shlibpath_overrides_runpath=unknown
10289 version_type=none
10290 dynamic_linker="$host_os ld.so"
10291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10292 need_lib_prefix=unknown
10293 hardcode_into_libs=no
10294
10295 # when you set need_version to no, make sure it does not cause -set_version
10296 # flags to be left without arguments
10297 need_version=unknown
10298
10299 case $host_os in
10300 aix3*)
10301 version_type=linux # correct to gnu/linux during the next big refactor
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10303 shlibpath_var=LIBPATH
10304
10305 # AIX 3 has no versioning support, so we append a major version to the name.
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 ;;
10308
10309 aix[4-9]*)
10310 version_type=linux # correct to gnu/linux during the next big refactor
10311 need_lib_prefix=no
10312 need_version=no
10313 hardcode_into_libs=yes
10314 if test "$host_cpu" = ia64; then
10315 # AIX 5 supports IA64
10316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 else
10319 # With GCC up to 2.95.x, collect2 would create an import file
10320 # for dependence libraries. The import file would start with
10321 # the line `#! .'. This would cause the generated library to
10322 # depend on `.', always an invalid library. This was fixed in
10323 # development snapshots of GCC prior to 3.0.
10324 case $host_os in
10325 aix4 | aix4.[01] | aix4.[01].*)
10326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10327 echo ' yes '
10328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10329 :
10330 else
10331 can_build_shared=no
10332 fi
10333 ;;
10334 esac
10335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10336 # soname into executable. Probably we can add versioning support to
10337 # collect2, so additional links can be useful in future.
10338 if test "$aix_use_runtimelinking" = yes; then
10339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10340 # instead of lib<name>.a to let people know that these are not
10341 # typical AIX shared libraries.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 else
10344 # We preserve .a as extension for shared libraries through AIX4.2
10345 # and later when we are not doing run time linking.
10346 library_names_spec='${libname}${release}.a $libname.a'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 fi
10349 shlibpath_var=LIBPATH
10350 fi
10351 ;;
10352
10353 amigaos*)
10354 case $host_cpu in
10355 powerpc)
10356 # Since July 2007 AmigaOS4 officially supports .so libraries.
10357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 ;;
10360 m68k)
10361 library_names_spec='$libname.ixlibrary $libname.a'
10362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10364 ;;
10365 esac
10366 ;;
10367
10368 beos*)
10369 library_names_spec='${libname}${shared_ext}'
10370 dynamic_linker="$host_os ld.so"
10371 shlibpath_var=LIBRARY_PATH
10372 ;;
10373
10374 bsdi[45]*)
10375 version_type=linux # correct to gnu/linux during the next big refactor
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10383 # the default ld.so.conf also contains /usr/contrib/lib and
10384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10385 # libtool to hard-code these into programs
10386 ;;
10387
10388 cygwin* | mingw* | pw32* | cegcc*)
10389 version_type=windows
10390 shrext_cmds=".dll"
10391 need_version=no
10392 need_lib_prefix=no
10393
10394 case $GCC,$cc_basename in
10395 yes,*)
10396 # gcc
10397 library_names_spec='$libname.dll.a'
10398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10399 postinstall_cmds='base_file=`basename \${file}`~
10400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10401 dldir=$destdir/`dirname \$dlpath`~
10402 test -d \$dldir || mkdir -p \$dldir~
10403 $install_prog $dir/$dlname \$dldir/$dlname~
10404 chmod a+x \$dldir/$dlname~
10405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10407 fi'
10408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10409 dlpath=$dir/\$dldll~
10410 $RM \$dlpath'
10411 shlibpath_overrides_runpath=yes
10412
10413 case $host_os in
10414 cygwin*)
10415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417
10418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10419 ;;
10420 mingw* | cegcc*)
10421 # MinGW DLLs use traditional 'lib' prefix
10422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423 ;;
10424 pw32*)
10425 # pw32 DLLs use 'pw' prefix rather than 'lib'
10426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427 ;;
10428 esac
10429 dynamic_linker='Win32 ld.exe'
10430 ;;
10431
10432 *,cl*)
10433 # Native MSVC
10434 libname_spec='$name'
10435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10436 library_names_spec='${libname}.dll.lib'
10437
10438 case $build_os in
10439 mingw*)
10440 sys_lib_search_path_spec=
10441 lt_save_ifs=$IFS
10442 IFS=';'
10443 for lt_path in $LIB
10444 do
10445 IFS=$lt_save_ifs
10446 # Let DOS variable expansion print the short 8.3 style file name.
10447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10449 done
10450 IFS=$lt_save_ifs
10451 # Convert to MSYS style.
10452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10453 ;;
10454 cygwin*)
10455 # Convert to unix form, then to dos form, then back to unix form
10456 # but this time dos style (no spaces!) so that the unix form looks
10457 # like /cygdrive/c/PROGRA~1:/cygdr...
10458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10461 ;;
10462 *)
10463 sys_lib_search_path_spec="$LIB"
10464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10465 # It is most probably a Windows format PATH.
10466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10467 else
10468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10469 fi
10470 # FIXME: find the short name or the path components, as spaces are
10471 # common. (e.g. "Program Files" -> "PROGRA~1")
10472 ;;
10473 esac
10474
10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10476 postinstall_cmds='base_file=`basename \${file}`~
10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10478 dldir=$destdir/`dirname \$dlpath`~
10479 test -d \$dldir || mkdir -p \$dldir~
10480 $install_prog $dir/$dlname \$dldir/$dlname'
10481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10482 dlpath=$dir/\$dldll~
10483 $RM \$dlpath'
10484 shlibpath_overrides_runpath=yes
10485 dynamic_linker='Win32 link.exe'
10486 ;;
10487
10488 *)
10489 # Assume MSVC wrapper
10490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10491 dynamic_linker='Win32 ld.exe'
10492 ;;
10493 esac
10494 # FIXME: first we should search . and the directory the executable is in
10495 shlibpath_var=PATH
10496 ;;
10497
10498 darwin* | rhapsody*)
10499 dynamic_linker="$host_os dyld"
10500 version_type=darwin
10501 need_lib_prefix=no
10502 need_version=no
10503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10504 soname_spec='${libname}${release}${major}$shared_ext'
10505 shlibpath_overrides_runpath=yes
10506 shlibpath_var=DYLD_LIBRARY_PATH
10507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10508
10509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10511 ;;
10512
10513 dgux*)
10514 version_type=linux # correct to gnu/linux during the next big refactor
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 ;;
10521
10522 freebsd* | dragonfly*)
10523 # DragonFly does not have aout. When/if they implement a new
10524 # versioning mechanism, adjust this.
10525 if test -x /usr/bin/objformat; then
10526 objformat=`/usr/bin/objformat`
10527 else
10528 case $host_os in
10529 freebsd[23].*) objformat=aout ;;
10530 *) objformat=elf ;;
10531 esac
10532 fi
10533 version_type=freebsd-$objformat
10534 case $version_type in
10535 freebsd-elf*)
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537 need_version=no
10538 need_lib_prefix=no
10539 ;;
10540 freebsd-*)
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10542 need_version=yes
10543 ;;
10544 esac
10545 shlibpath_var=LD_LIBRARY_PATH
10546 case $host_os in
10547 freebsd2.*)
10548 shlibpath_overrides_runpath=yes
10549 ;;
10550 freebsd3.[01]* | freebsdelf3.[01]*)
10551 shlibpath_overrides_runpath=yes
10552 hardcode_into_libs=yes
10553 ;;
10554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 ;;
10559 *) # from 4.6 on, and DragonFly
10560 shlibpath_overrides_runpath=yes
10561 hardcode_into_libs=yes
10562 ;;
10563 esac
10564 ;;
10565
10566 gnu*)
10567 version_type=linux # correct to gnu/linux during the next big refactor
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=no
10574 hardcode_into_libs=yes
10575 ;;
10576
10577 haiku*)
10578 version_type=linux # correct to gnu/linux during the next big refactor
10579 need_lib_prefix=no
10580 need_version=no
10581 dynamic_linker="$host_os runtime_loader"
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 shlibpath_var=LIBRARY_PATH
10585 shlibpath_overrides_runpath=yes
10586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10587 hardcode_into_libs=yes
10588 ;;
10589
10590 hpux9* | hpux10* | hpux11*)
10591 # Give a soname corresponding to the major version so that dld.sl refuses to
10592 # link against other versions.
10593 version_type=sunos
10594 need_lib_prefix=no
10595 need_version=no
10596 case $host_cpu in
10597 ia64*)
10598 shrext_cmds='.so'
10599 hardcode_into_libs=yes
10600 dynamic_linker="$host_os dld.so"
10601 shlibpath_var=LD_LIBRARY_PATH
10602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 if test "X$HPUX_IA64_MODE" = X32; then
10606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10607 else
10608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10609 fi
10610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10611 ;;
10612 hppa*64*)
10613 shrext_cmds='.sl'
10614 hardcode_into_libs=yes
10615 dynamic_linker="$host_os dld.sl"
10616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10622 ;;
10623 *)
10624 shrext_cmds='.sl'
10625 dynamic_linker="$host_os dld.sl"
10626 shlibpath_var=SHLIB_PATH
10627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 ;;
10631 esac
10632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10633 postinstall_cmds='chmod 555 $lib'
10634 # or fails outright, so override atomically:
10635 install_override_mode=555
10636 ;;
10637
10638 interix[3-9]*)
10639 version_type=linux # correct to gnu/linux during the next big refactor
10640 need_lib_prefix=no
10641 need_version=no
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 ;;
10649
10650 irix5* | irix6* | nonstopux*)
10651 case $host_os in
10652 nonstopux*) version_type=nonstopux ;;
10653 *)
10654 if test "$lt_cv_prog_gnu_ld" = yes; then
10655 version_type=linux # correct to gnu/linux during the next big refactor
10656 else
10657 version_type=irix
10658 fi ;;
10659 esac
10660 need_lib_prefix=no
10661 need_version=no
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10664 case $host_os in
10665 irix5* | nonstopux*)
10666 libsuff= shlibsuff=
10667 ;;
10668 *)
10669 case $LD in # libtool.m4 will add one of these switches to LD
10670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10671 libsuff= shlibsuff= libmagic=32-bit;;
10672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10673 libsuff=32 shlibsuff=N32 libmagic=N32;;
10674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10676 *) libsuff= shlibsuff= libmagic=never-match;;
10677 esac
10678 ;;
10679 esac
10680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10681 shlibpath_overrides_runpath=no
10682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10684 hardcode_into_libs=yes
10685 ;;
10686
10687 # No shared lib support for Linux oldld, aout, or coff.
10688 linux*oldld* | linux*aout* | linux*coff*)
10689 dynamic_linker=no
10690 ;;
10691
10692 # This must be glibc/ELF.
10693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10694 version_type=linux # correct to gnu/linux during the next big refactor
10695 need_lib_prefix=no
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=no
10702
10703 # Some binutils ld are patched to set DT_RUNPATH
10704 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 lt_cv_shlibpath_overrides_runpath=no
10708 save_LDFLAGS=$LDFLAGS
10709 save_libdir=$libdir
10710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714
10715 int
10716 main ()
10717 {
10718
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10725 lt_cv_shlibpath_overrides_runpath=yes
10726 fi
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LDFLAGS=$save_LDFLAGS
10731 libdir=$save_libdir
10732
10733 fi
10734
10735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10736
10737 # This implies no fast_install, which is unacceptable.
10738 # Some rework will be needed to allow for fast_install
10739 # before this can be enabled.
10740 hardcode_into_libs=yes
10741
10742 # Append ld.so.conf contents to the search path
10743 if test -f /etc/ld.so.conf; then
10744 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' ' '`
10745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10746 fi
10747
10748 # We used to test for /lib/ld.so.1 and disable shared libraries on
10749 # powerpc, because MkLinux only supported shared libraries with the
10750 # GNU dynamic linker. Since this was broken with cross compilers,
10751 # most powerpc-linux boxes support dynamic linking these days and
10752 # people can always --disable-shared, the test was removed, and we
10753 # assume the GNU/Linux dynamic linker is in use.
10754 dynamic_linker='GNU/Linux ld.so'
10755 ;;
10756
10757 netbsd*)
10758 version_type=sunos
10759 need_lib_prefix=no
10760 need_version=no
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10764 dynamic_linker='NetBSD (a.out) ld.so'
10765 else
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 dynamic_linker='NetBSD ld.elf_so'
10769 fi
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes
10772 hardcode_into_libs=yes
10773 ;;
10774
10775 newsos6)
10776 version_type=linux # correct to gnu/linux during the next big refactor
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes
10780 ;;
10781
10782 *nto* | *qnx*)
10783 version_type=qnx
10784 need_lib_prefix=no
10785 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 dynamic_linker='ldqnx.so'
10792 ;;
10793
10794 openbsd*)
10795 version_type=sunos
10796 sys_lib_dlsearch_path_spec="/usr/lib"
10797 need_lib_prefix=no
10798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10799 case $host_os in
10800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10801 *) need_version=no ;;
10802 esac
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10807 case $host_os in
10808 openbsd2.[89] | openbsd2.[89].*)
10809 shlibpath_overrides_runpath=no
10810 ;;
10811 *)
10812 shlibpath_overrides_runpath=yes
10813 ;;
10814 esac
10815 else
10816 shlibpath_overrides_runpath=yes
10817 fi
10818 ;;
10819
10820 os2*)
10821 libname_spec='$name'
10822 shrext_cmds=".dll"
10823 need_lib_prefix=no
10824 library_names_spec='$libname${shared_ext} $libname.a'
10825 dynamic_linker='OS/2 ld.exe'
10826 shlibpath_var=LIBPATH
10827 ;;
10828
10829 osf3* | osf4* | osf5*)
10830 version_type=osf
10831 need_lib_prefix=no
10832 need_version=no
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10838 ;;
10839
10840 rdos*)
10841 dynamic_linker=no
10842 ;;
10843
10844 solaris*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10853 # ldd complains unless libraries are executable
10854 postinstall_cmds='chmod +x $lib'
10855 ;;
10856
10857 sunos4*)
10858 version_type=sunos
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863 if test "$with_gnu_ld" = yes; then
10864 need_lib_prefix=no
10865 fi
10866 need_version=yes
10867 ;;
10868
10869 sysv4 | sysv4.3*)
10870 version_type=linux # correct to gnu/linux during the next big refactor
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 case $host_vendor in
10875 sni)
10876 shlibpath_overrides_runpath=no
10877 need_lib_prefix=no
10878 runpath_var=LD_RUN_PATH
10879 ;;
10880 siemens)
10881 need_lib_prefix=no
10882 ;;
10883 motorola)
10884 need_lib_prefix=no
10885 need_version=no
10886 shlibpath_overrides_runpath=no
10887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10888 ;;
10889 esac
10890 ;;
10891
10892 sysv4*MP*)
10893 if test -d /usr/nec ;then
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10896 soname_spec='$libname${shared_ext}.$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 fi
10899 ;;
10900
10901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10902 version_type=freebsd-elf
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 if test "$with_gnu_ld" = yes; then
10911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10912 else
10913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10914 case $host_os in
10915 sco3.2v5*)
10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10917 ;;
10918 esac
10919 fi
10920 sys_lib_dlsearch_path_spec='/usr/lib'
10921 ;;
10922
10923 tpf*)
10924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 uts4*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 ;;
10940
10941 *)
10942 dynamic_linker=no
10943 ;;
10944 esac
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10946 $as_echo "$dynamic_linker" >&6; }
10947 test "$dynamic_linker" = no && can_build_shared=no
10948
10949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950 if test "$GCC" = yes; then
10951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952 fi
10953
10954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10956 fi
10957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10959 fi
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11054 hardcode_action=
11055 if test -n "$hardcode_libdir_flag_spec" ||
11056 test -n "$runpath_var" ||
11057 test "X$hardcode_automatic" = "Xyes" ; then
11058
11059 # We can hardcode non-existent directories.
11060 if test "$hardcode_direct" != no &&
11061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11062 # have to relink, otherwise we might link with an installed library
11063 # when we should be linking with a yet-to-be-installed one
11064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11065 test "$hardcode_minus_L" != no; then
11066 # Linking always hardcodes the temporary library directory.
11067 hardcode_action=relink
11068 else
11069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11070 hardcode_action=immediate
11071 fi
11072 else
11073 # We cannot hardcode anything, or else we can only hardcode existing
11074 # directories.
11075 hardcode_action=unsupported
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11078 $as_echo "$hardcode_action" >&6; }
11079
11080 if test "$hardcode_action" = relink ||
11081 test "$inherit_rpath" = yes; then
11082 # Fast installation is not supported
11083 enable_fast_install=no
11084 elif test "$shlibpath_overrides_runpath" = yes ||
11085 test "$enable_shared" = no; then
11086 # Fast installation is not necessary
11087 enable_fast_install=needless
11088 fi
11089
11090
11091
11092
11093
11094
11095 if test "x$enable_dlopen" != xyes; then
11096 enable_dlopen=unknown
11097 enable_dlopen_self=unknown
11098 enable_dlopen_self_static=unknown
11099 else
11100 lt_cv_dlopen=no
11101 lt_cv_dlopen_libs=
11102
11103 case $host_os in
11104 beos*)
11105 lt_cv_dlopen="load_add_on"
11106 lt_cv_dlopen_libs=
11107 lt_cv_dlopen_self=yes
11108 ;;
11109
11110 mingw* | pw32* | cegcc*)
11111 lt_cv_dlopen="LoadLibrary"
11112 lt_cv_dlopen_libs=
11113 ;;
11114
11115 cygwin*)
11116 lt_cv_dlopen="dlopen"
11117 lt_cv_dlopen_libs=
11118 ;;
11119
11120 darwin*)
11121 # if libdl is installed we need to link against it
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11124 if ${ac_cv_lib_dl_dlopen+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-ldl $LIBS"
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131
11132 /* Override any GCC internal prototype to avoid an error.
11133 Use char because int might match the return type of a GCC
11134 builtin and then its argument prototype would still apply. */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 char dlopen ();
11139 int
11140 main ()
11141 {
11142 return dlopen ();
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 ac_cv_lib_dl_dlopen=yes
11149 else
11150 ac_cv_lib_dl_dlopen=no
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11158 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11160 else
11161
11162 lt_cv_dlopen="dyld"
11163 lt_cv_dlopen_libs=
11164 lt_cv_dlopen_self=yes
11165
11166 fi
11167
11168 ;;
11169
11170 *)
11171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11172 if test "x$ac_cv_func_shl_load" = xyes; then :
11173 lt_cv_dlopen="shl_load"
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11177 if ${ac_cv_lib_dld_shl_load+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldld $LIBS"
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char shl_load ();
11192 int
11193 main ()
11194 {
11195 return shl_load ();
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dld_shl_load=yes
11202 else
11203 ac_cv_lib_dld_shl_load=no
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11213 else
11214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11215 if test "x$ac_cv_func_dlopen" = xyes; then :
11216 lt_cv_dlopen="dlopen"
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if ${ac_cv_lib_dl_dlopen+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldl $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239 ;
11240 return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_dl_dlopen=yes
11245 else
11246 ac_cv_lib_dl_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11259 if ${ac_cv_lib_svld_dlopen+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-lsvld $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dlopen ();
11274 int
11275 main ()
11276 {
11277 return dlopen ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_svld_dlopen=yes
11284 else
11285 ac_cv_lib_svld_dlopen=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11292 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11293 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11297 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_dld_link+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldld $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dld_link ();
11313 int
11314 main ()
11315 {
11316 return dld_link ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dld_dld_link=yes
11323 else
11324 ac_cv_lib_dld_dld_link=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11331 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11332 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342
11343 fi
11344
11345
11346 fi
11347
11348
11349 fi
11350
11351 ;;
11352 esac
11353
11354 if test "x$lt_cv_dlopen" != xno; then
11355 enable_dlopen=yes
11356 else
11357 enable_dlopen=no
11358 fi
11359
11360 case $lt_cv_dlopen in
11361 dlopen)
11362 save_CPPFLAGS="$CPPFLAGS"
11363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11364
11365 save_LDFLAGS="$LDFLAGS"
11366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11367
11368 save_LIBS="$LIBS"
11369 LIBS="$lt_cv_dlopen_libs $LIBS"
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11372 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11373 if ${lt_cv_dlopen_self+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 if test "$cross_compiling" = yes; then :
11377 lt_cv_dlopen_self=cross
11378 else
11379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380 lt_status=$lt_dlunknown
11381 cat > conftest.$ac_ext <<_LT_EOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384
11385 #if HAVE_DLFCN_H
11386 #include <dlfcn.h>
11387 #endif
11388
11389 #include <stdio.h>
11390
11391 #ifdef RTLD_GLOBAL
11392 # define LT_DLGLOBAL RTLD_GLOBAL
11393 #else
11394 # ifdef DL_GLOBAL
11395 # define LT_DLGLOBAL DL_GLOBAL
11396 # else
11397 # define LT_DLGLOBAL 0
11398 # endif
11399 #endif
11400
11401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402 find out it does not work in some platform. */
11403 #ifndef LT_DLLAZY_OR_NOW
11404 # ifdef RTLD_LAZY
11405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11406 # else
11407 # ifdef DL_LAZY
11408 # define LT_DLLAZY_OR_NOW DL_LAZY
11409 # else
11410 # ifdef RTLD_NOW
11411 # define LT_DLLAZY_OR_NOW RTLD_NOW
11412 # else
11413 # ifdef DL_NOW
11414 # define LT_DLLAZY_OR_NOW DL_NOW
11415 # else
11416 # define LT_DLLAZY_OR_NOW 0
11417 # endif
11418 # endif
11419 # endif
11420 # endif
11421 #endif
11422
11423 /* When -fvisbility=hidden is used, assume the code has been annotated
11424 correspondingly for the symbols needed. */
11425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426 int fnord () __attribute__((visibility("default")));
11427 #endif
11428
11429 int fnord () { return 42; }
11430 int main ()
11431 {
11432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433 int status = $lt_dlunknown;
11434
11435 if (self)
11436 {
11437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11438 else
11439 {
11440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11441 else puts (dlerror ());
11442 }
11443 /* dlclose (self); */
11444 }
11445 else
11446 puts (dlerror ());
11447
11448 return status;
11449 }
11450 _LT_EOF
11451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452 (eval $ac_link) 2>&5
11453 ac_status=$?
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456 (./conftest; exit; ) >&5 2>/dev/null
11457 lt_status=$?
11458 case x$lt_status in
11459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11462 esac
11463 else :
11464 # compilation failed
11465 lt_cv_dlopen_self=no
11466 fi
11467 fi
11468 rm -fr conftest*
11469
11470
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11473 $as_echo "$lt_cv_dlopen_self" >&6; }
11474
11475 if test "x$lt_cv_dlopen_self" = xyes; then
11476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11479 if ${lt_cv_dlopen_self_static+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test "$cross_compiling" = yes; then :
11483 lt_cv_dlopen_self_static=cross
11484 else
11485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11486 lt_status=$lt_dlunknown
11487 cat > conftest.$ac_ext <<_LT_EOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11490
11491 #if HAVE_DLFCN_H
11492 #include <dlfcn.h>
11493 #endif
11494
11495 #include <stdio.h>
11496
11497 #ifdef RTLD_GLOBAL
11498 # define LT_DLGLOBAL RTLD_GLOBAL
11499 #else
11500 # ifdef DL_GLOBAL
11501 # define LT_DLGLOBAL DL_GLOBAL
11502 # else
11503 # define LT_DLGLOBAL 0
11504 # endif
11505 #endif
11506
11507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11508 find out it does not work in some platform. */
11509 #ifndef LT_DLLAZY_OR_NOW
11510 # ifdef RTLD_LAZY
11511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11512 # else
11513 # ifdef DL_LAZY
11514 # define LT_DLLAZY_OR_NOW DL_LAZY
11515 # else
11516 # ifdef RTLD_NOW
11517 # define LT_DLLAZY_OR_NOW RTLD_NOW
11518 # else
11519 # ifdef DL_NOW
11520 # define LT_DLLAZY_OR_NOW DL_NOW
11521 # else
11522 # define LT_DLLAZY_OR_NOW 0
11523 # endif
11524 # endif
11525 # endif
11526 # endif
11527 #endif
11528
11529 /* When -fvisbility=hidden is used, assume the code has been annotated
11530 correspondingly for the symbols needed. */
11531 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11532 int fnord () __attribute__((visibility("default")));
11533 #endif
11534
11535 int fnord () { return 42; }
11536 int main ()
11537 {
11538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539 int status = $lt_dlunknown;
11540
11541 if (self)
11542 {
11543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11544 else
11545 {
11546 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11547 else puts (dlerror ());
11548 }
11549 /* dlclose (self); */
11550 }
11551 else
11552 puts (dlerror ());
11553
11554 return status;
11555 }
11556 _LT_EOF
11557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11558 (eval $ac_link) 2>&5
11559 ac_status=$?
11560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11562 (./conftest; exit; ) >&5 2>/dev/null
11563 lt_status=$?
11564 case x$lt_status in
11565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11568 esac
11569 else :
11570 # compilation failed
11571 lt_cv_dlopen_self_static=no
11572 fi
11573 fi
11574 rm -fr conftest*
11575
11576
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11580 fi
11581
11582 CPPFLAGS="$save_CPPFLAGS"
11583 LDFLAGS="$save_LDFLAGS"
11584 LIBS="$save_LIBS"
11585 ;;
11586 esac
11587
11588 case $lt_cv_dlopen_self in
11589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11590 *) enable_dlopen_self=unknown ;;
11591 esac
11592
11593 case $lt_cv_dlopen_self_static in
11594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11595 *) enable_dlopen_self_static=unknown ;;
11596 esac
11597 fi
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 striplib=
11616 old_striplib=
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 else
11625 # FIXME - insert some real tests, host_os isn't really good enough
11626 case $host_os in
11627 darwin*)
11628 if test -n "$STRIP" ; then
11629 striplib="$STRIP -x"
11630 old_striplib="$STRIP -S"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 fi
11637 ;;
11638 *)
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 ;;
11642 esac
11643 fi
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656 # Report which library types will actually be built
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11660 $as_echo "$can_build_shared" >&6; }
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11663 $as_echo_n "checking whether to build shared libraries... " >&6; }
11664 test "$can_build_shared" = "no" && enable_shared=no
11665
11666 # On AIX, shared libraries and static libraries use the same namespace, and
11667 # are all built from PIC.
11668 case $host_os in
11669 aix3*)
11670 test "$enable_shared" = yes && enable_static=no
11671 if test -n "$RANLIB"; then
11672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11673 postinstall_cmds='$RANLIB $lib'
11674 fi
11675 ;;
11676
11677 aix[4-9]*)
11678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11679 test "$enable_shared" = yes && enable_static=no
11680 fi
11681 ;;
11682 esac
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11684 $as_echo "$enable_shared" >&6; }
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11687 $as_echo_n "checking whether to build static libraries... " >&6; }
11688 # Make sure either enable_shared or enable_static is yes.
11689 test "$enable_shared" = yes || enable_static=yes
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11691 $as_echo "$enable_static" >&6; }
11692
11693
11694
11695
11696 fi
11697 ac_ext=c
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703 CC="$lt_save_CC"
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719 ac_config_commands="$ac_config_commands libtool"
11720
11721
11722
11723
11724 # Only expand once:
11725
11726
11727
11728 # Require X.Org macros 1.8 or later
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11741 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11742 if ${ac_cv_prog_cc_c99+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_cv_prog_cc_c99=no
11746 ac_save_CC=$CC
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 #include <stdarg.h>
11750 #include <stdbool.h>
11751 #include <stdlib.h>
11752 #include <wchar.h>
11753 #include <stdio.h>
11754
11755 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11756 #define debug(...) fprintf (stderr, __VA_ARGS__)
11757 #define showlist(...) puts (#__VA_ARGS__)
11758 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11759 static void
11760 test_varargs_macros (void)
11761 {
11762 int x = 1234;
11763 int y = 5678;
11764 debug ("Flag");
11765 debug ("X = %d\n", x);
11766 showlist (The first, second, and third items.);
11767 report (x>y, "x is %d but y is %d", x, y);
11768 }
11769
11770 // Check long long types.
11771 #define BIG64 18446744073709551615ull
11772 #define BIG32 4294967295ul
11773 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11774 #if !BIG_OK
11775 your preprocessor is broken;
11776 #endif
11777 #if BIG_OK
11778 #else
11779 your preprocessor is broken;
11780 #endif
11781 static long long int bignum = -9223372036854775807LL;
11782 static unsigned long long int ubignum = BIG64;
11783
11784 struct incomplete_array
11785 {
11786 int datasize;
11787 double data[];
11788 };
11789
11790 struct named_init {
11791 int number;
11792 const wchar_t *name;
11793 double average;
11794 };
11795
11796 typedef const char *ccp;
11797
11798 static inline int
11799 test_restrict (ccp restrict text)
11800 {
11801 // See if C++-style comments work.
11802 // Iterate through items via the restricted pointer.
11803 // Also check for declarations in for loops.
11804 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11805 continue;
11806 return 0;
11807 }
11808
11809 // Check varargs and va_copy.
11810 static void
11811 test_varargs (const char *format, ...)
11812 {
11813 va_list args;
11814 va_start (args, format);
11815 va_list args_copy;
11816 va_copy (args_copy, args);
11817
11818 const char *str;
11819 int number;
11820 float fnumber;
11821
11822 while (*format)
11823 {
11824 switch (*format++)
11825 {
11826 case 's': // string
11827 str = va_arg (args_copy, const char *);
11828 break;
11829 case 'd': // int
11830 number = va_arg (args_copy, int);
11831 break;
11832 case 'f': // float
11833 fnumber = va_arg (args_copy, double);
11834 break;
11835 default:
11836 break;
11837 }
11838 }
11839 va_end (args_copy);
11840 va_end (args);
11841 }
11842
11843 int
11844 main ()
11845 {
11846
11847 // Check bool.
11848 _Bool success = false;
11849
11850 // Check restrict.
11851 if (test_restrict ("String literal") == 0)
11852 success = true;
11853 char *restrict newvar = "Another string";
11854
11855 // Check varargs.
11856 test_varargs ("s, d' f .", "string", 65, 34.234);
11857 test_varargs_macros ();
11858
11859 // Check flexible array members.
11860 struct incomplete_array *ia =
11861 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11862 ia->datasize = 10;
11863 for (int i = 0; i < ia->datasize; ++i)
11864 ia->data[i] = i * 1.234;
11865
11866 // Check named initializers.
11867 struct named_init ni = {
11868 .number = 34,
11869 .name = L"Test wide string",
11870 .average = 543.34343,
11871 };
11872
11873 ni.number = 58;
11874
11875 int dynamic_array[ni.number];
11876 dynamic_array[ni.number - 1] = 543;
11877
11878 // work around unused variable warnings
11879 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11880 || dynamic_array[ni.number - 1] != 543);
11881
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11887 do
11888 CC="$ac_save_CC $ac_arg"
11889 if ac_fn_c_try_compile "$LINENO"; then :
11890 ac_cv_prog_cc_c99=$ac_arg
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext
11893 test "x$ac_cv_prog_cc_c99" != "xno" && break
11894 done
11895 rm -f conftest.$ac_ext
11896 CC=$ac_save_CC
11897
11898 fi
11899 # AC_CACHE_VAL
11900 case "x$ac_cv_prog_cc_c99" in
11901 x)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11903 $as_echo "none needed" >&6; } ;;
11904 xno)
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11906 $as_echo "unsupported" >&6; } ;;
11907 *)
11908 CC="$CC $ac_cv_prog_cc_c99"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11910 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11911 esac
11912 if test "x$ac_cv_prog_cc_c99" != xno; then :
11913
11914 fi
11915
11916
11917
11918
11919
11920
11921 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11922 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11923 CLANGCC="yes"
11924 else
11925 CLANGCC="no"
11926 fi
11927
11928 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11929 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11930 INTELCC="yes"
11931 else
11932 INTELCC="no"
11933 fi
11934
11935 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11936 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11937 SUNCC="yes"
11938 else
11939 SUNCC="no"
11940 fi
11941
11942
11943
11944
11945 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11946 if test -n "$ac_tool_prefix"; then
11947 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11948 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 case $PKG_CONFIG in
11955 [\\/]* | ?:[\\/]*)
11956 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11957 ;;
11958 *)
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11969 fi
11970 done
11971 done
11972 IFS=$as_save_IFS
11973
11974 ;;
11975 esac
11976 fi
11977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11978 if test -n "$PKG_CONFIG"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11980 $as_echo "$PKG_CONFIG" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 fi
11988 if test -z "$ac_cv_path_PKG_CONFIG"; then
11989 ac_pt_PKG_CONFIG=$PKG_CONFIG
11990 # Extract the first word of "pkg-config", so it can be a program name with args.
11991 set dummy pkg-config; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 case $ac_pt_PKG_CONFIG in
11998 [\\/]* | ?:[\\/]*)
11999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12000 ;;
12001 *)
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013 done
12014 done
12015 IFS=$as_save_IFS
12016
12017 ;;
12018 esac
12019 fi
12020 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12021 if test -n "$ac_pt_PKG_CONFIG"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12023 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12027 fi
12028
12029 if test "x$ac_pt_PKG_CONFIG" = x; then
12030 PKG_CONFIG=""
12031 else
12032 case $cross_compiling:$ac_tool_warned in
12033 yes:)
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12036 ac_tool_warned=yes ;;
12037 esac
12038 PKG_CONFIG=$ac_pt_PKG_CONFIG
12039 fi
12040 else
12041 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12042 fi
12043
12044 fi
12045 if test -n "$PKG_CONFIG"; then
12046 _pkg_min_version=0.9.0
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12048 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12049 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051 $as_echo "yes" >&6; }
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055 PKG_CONFIG=""
12056 fi
12057
12058 fi
12059
12060
12061
12062
12063
12064 # Check whether --enable-selective-werror was given.
12065 if test "${enable_selective_werror+set}" = set; then :
12066 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12067 else
12068 SELECTIVE_WERROR=yes
12069 fi
12070
12071
12072
12073
12074
12075 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12076 if test "x$SUNCC" = "xyes"; then
12077 BASE_CFLAGS="-v"
12078 else
12079 BASE_CFLAGS=""
12080 fi
12081
12082 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096 xorg_testset_save_CFLAGS="$CFLAGS"
12097
12098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107 int i;
12108 _ACEOF
12109 if ac_fn_c_try_compile "$LINENO"; then :
12110 xorg_cv_cc_flag_unknown_warning_option=yes
12111 else
12112 xorg_cv_cc_flag_unknown_warning_option=no
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12119 CFLAGS="$xorg_testset_save_CFLAGS"
12120 fi
12121
12122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12125 fi
12126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134 int i;
12135 _ACEOF
12136 if ac_fn_c_try_compile "$LINENO"; then :
12137 xorg_cv_cc_flag_unused_command_line_argument=yes
12138 else
12139 xorg_cv_cc_flag_unused_command_line_argument=no
12140 fi
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12146 CFLAGS="$xorg_testset_save_CFLAGS"
12147 fi
12148
12149 found="no"
12150
12151 if test $found = "no" ; then
12152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12154 fi
12155
12156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12158 fi
12159
12160 CFLAGS="$CFLAGS -Wall"
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12163 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12164 cacheid=xorg_cv_cc_flag__Wall
12165 if eval \${$cacheid+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 int i;
12171 int
12172 main ()
12173 {
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 eval $cacheid=yes
12181 else
12182 eval $cacheid=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 fi
12187
12188
12189 CFLAGS="$xorg_testset_save_CFLAGS"
12190
12191 eval supported=\$$cacheid
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12193 $as_echo "$supported" >&6; }
12194 if test "$supported" = "yes" ; then
12195 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12196 found="yes"
12197 fi
12198 fi
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214 xorg_testset_save_CFLAGS="$CFLAGS"
12215
12216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225 int i;
12226 _ACEOF
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228 xorg_cv_cc_flag_unknown_warning_option=yes
12229 else
12230 xorg_cv_cc_flag_unknown_warning_option=no
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12237 CFLAGS="$xorg_testset_save_CFLAGS"
12238 fi
12239
12240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12243 fi
12244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252 int i;
12253 _ACEOF
12254 if ac_fn_c_try_compile "$LINENO"; then :
12255 xorg_cv_cc_flag_unused_command_line_argument=yes
12256 else
12257 xorg_cv_cc_flag_unused_command_line_argument=no
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12264 CFLAGS="$xorg_testset_save_CFLAGS"
12265 fi
12266
12267 found="no"
12268
12269 if test $found = "no" ; then
12270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12272 fi
12273
12274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12276 fi
12277
12278 CFLAGS="$CFLAGS -Wpointer-arith"
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12281 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12282 cacheid=xorg_cv_cc_flag__Wpointer_arith
12283 if eval \${$cacheid+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 int i;
12289 int
12290 main ()
12291 {
12292
12293 ;
12294 return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 eval $cacheid=yes
12299 else
12300 eval $cacheid=no
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 fi
12305
12306
12307 CFLAGS="$xorg_testset_save_CFLAGS"
12308
12309 eval supported=\$$cacheid
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12311 $as_echo "$supported" >&6; }
12312 if test "$supported" = "yes" ; then
12313 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12314 found="yes"
12315 fi
12316 fi
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332 xorg_testset_save_CFLAGS="$CFLAGS"
12333
12334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 int i;
12344 _ACEOF
12345 if ac_fn_c_try_compile "$LINENO"; then :
12346 xorg_cv_cc_flag_unknown_warning_option=yes
12347 else
12348 xorg_cv_cc_flag_unknown_warning_option=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12355 CFLAGS="$xorg_testset_save_CFLAGS"
12356 fi
12357
12358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12361 fi
12362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 int i;
12371 _ACEOF
12372 if ac_fn_c_try_compile "$LINENO"; then :
12373 xorg_cv_cc_flag_unused_command_line_argument=yes
12374 else
12375 xorg_cv_cc_flag_unused_command_line_argument=no
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12380 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12382 CFLAGS="$xorg_testset_save_CFLAGS"
12383 fi
12384
12385 found="no"
12386
12387 if test $found = "no" ; then
12388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12390 fi
12391
12392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12394 fi
12395
12396 CFLAGS="$CFLAGS -Wmissing-declarations"
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12399 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12400 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12401 if eval \${$cacheid+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406 int i;
12407 int
12408 main ()
12409 {
12410
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 eval $cacheid=yes
12417 else
12418 eval $cacheid=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 fi
12423
12424
12425 CFLAGS="$xorg_testset_save_CFLAGS"
12426
12427 eval supported=\$$cacheid
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12429 $as_echo "$supported" >&6; }
12430 if test "$supported" = "yes" ; then
12431 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12432 found="yes"
12433 fi
12434 fi
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450 xorg_testset_save_CFLAGS="$CFLAGS"
12451
12452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 int i;
12462 _ACEOF
12463 if ac_fn_c_try_compile "$LINENO"; then :
12464 xorg_cv_cc_flag_unknown_warning_option=yes
12465 else
12466 xorg_cv_cc_flag_unknown_warning_option=no
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12473 CFLAGS="$xorg_testset_save_CFLAGS"
12474 fi
12475
12476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12479 fi
12480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 int i;
12489 _ACEOF
12490 if ac_fn_c_try_compile "$LINENO"; then :
12491 xorg_cv_cc_flag_unused_command_line_argument=yes
12492 else
12493 xorg_cv_cc_flag_unused_command_line_argument=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12500 CFLAGS="$xorg_testset_save_CFLAGS"
12501 fi
12502
12503 found="no"
12504
12505 if test $found = "no" ; then
12506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12508 fi
12509
12510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12512 fi
12513
12514 CFLAGS="$CFLAGS -Wformat=2"
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12517 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12518 cacheid=xorg_cv_cc_flag__Wformat_2
12519 if eval \${$cacheid+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524 int i;
12525 int
12526 main ()
12527 {
12528
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"; then :
12534 eval $cacheid=yes
12535 else
12536 eval $cacheid=no
12537 fi
12538 rm -f core conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 fi
12541
12542
12543 CFLAGS="$xorg_testset_save_CFLAGS"
12544
12545 eval supported=\$$cacheid
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12547 $as_echo "$supported" >&6; }
12548 if test "$supported" = "yes" ; then
12549 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12550 found="yes"
12551 fi
12552 fi
12553
12554 if test $found = "no" ; then
12555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12557 fi
12558
12559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12561 fi
12562
12563 CFLAGS="$CFLAGS -Wformat"
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12566 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12567 cacheid=xorg_cv_cc_flag__Wformat
12568 if eval \${$cacheid+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573 int i;
12574 int
12575 main ()
12576 {
12577
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 eval $cacheid=yes
12584 else
12585 eval $cacheid=no
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 fi
12590
12591
12592 CFLAGS="$xorg_testset_save_CFLAGS"
12593
12594 eval supported=\$$cacheid
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12596 $as_echo "$supported" >&6; }
12597 if test "$supported" = "yes" ; then
12598 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12599 found="yes"
12600 fi
12601 fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619 xorg_testset_save_CFLAGS="$CFLAGS"
12620
12621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 int i;
12631 _ACEOF
12632 if ac_fn_c_try_compile "$LINENO"; then :
12633 xorg_cv_cc_flag_unknown_warning_option=yes
12634 else
12635 xorg_cv_cc_flag_unknown_warning_option=no
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12642 CFLAGS="$xorg_testset_save_CFLAGS"
12643 fi
12644
12645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12648 fi
12649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657 int i;
12658 _ACEOF
12659 if ac_fn_c_try_compile "$LINENO"; then :
12660 xorg_cv_cc_flag_unused_command_line_argument=yes
12661 else
12662 xorg_cv_cc_flag_unused_command_line_argument=no
12663 fi
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12669 CFLAGS="$xorg_testset_save_CFLAGS"
12670 fi
12671
12672 found="no"
12673
12674 if test $found = "no" ; then
12675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12677 fi
12678
12679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12681 fi
12682
12683 CFLAGS="$CFLAGS -Wstrict-prototypes"
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12686 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12687 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12688 if eval \${$cacheid+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 int i;
12694 int
12695 main ()
12696 {
12697
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 eval $cacheid=yes
12704 else
12705 eval $cacheid=no
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 fi
12710
12711
12712 CFLAGS="$xorg_testset_save_CFLAGS"
12713
12714 eval supported=\$$cacheid
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12716 $as_echo "$supported" >&6; }
12717 if test "$supported" = "yes" ; then
12718 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12719 found="yes"
12720 fi
12721 fi
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737 xorg_testset_save_CFLAGS="$CFLAGS"
12738
12739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 int i;
12749 _ACEOF
12750 if ac_fn_c_try_compile "$LINENO"; then :
12751 xorg_cv_cc_flag_unknown_warning_option=yes
12752 else
12753 xorg_cv_cc_flag_unknown_warning_option=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12760 CFLAGS="$xorg_testset_save_CFLAGS"
12761 fi
12762
12763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12766 fi
12767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12771 $as_echo_n "(cached) " >&6
12772 else
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 int i;
12776 _ACEOF
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778 xorg_cv_cc_flag_unused_command_line_argument=yes
12779 else
12780 xorg_cv_cc_flag_unused_command_line_argument=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12787 CFLAGS="$xorg_testset_save_CFLAGS"
12788 fi
12789
12790 found="no"
12791
12792 if test $found = "no" ; then
12793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12795 fi
12796
12797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12799 fi
12800
12801 CFLAGS="$CFLAGS -Wmissing-prototypes"
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12804 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12805 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12806 if eval \${$cacheid+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 int i;
12812 int
12813 main ()
12814 {
12815
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 eval $cacheid=yes
12822 else
12823 eval $cacheid=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 fi
12828
12829
12830 CFLAGS="$xorg_testset_save_CFLAGS"
12831
12832 eval supported=\$$cacheid
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12834 $as_echo "$supported" >&6; }
12835 if test "$supported" = "yes" ; then
12836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12837 found="yes"
12838 fi
12839 fi
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855 xorg_testset_save_CFLAGS="$CFLAGS"
12856
12857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866 int i;
12867 _ACEOF
12868 if ac_fn_c_try_compile "$LINENO"; then :
12869 xorg_cv_cc_flag_unknown_warning_option=yes
12870 else
12871 xorg_cv_cc_flag_unknown_warning_option=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12878 CFLAGS="$xorg_testset_save_CFLAGS"
12879 fi
12880
12881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12884 fi
12885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 int i;
12894 _ACEOF
12895 if ac_fn_c_try_compile "$LINENO"; then :
12896 xorg_cv_cc_flag_unused_command_line_argument=yes
12897 else
12898 xorg_cv_cc_flag_unused_command_line_argument=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12905 CFLAGS="$xorg_testset_save_CFLAGS"
12906 fi
12907
12908 found="no"
12909
12910 if test $found = "no" ; then
12911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12913 fi
12914
12915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12917 fi
12918
12919 CFLAGS="$CFLAGS -Wnested-externs"
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12922 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12923 cacheid=xorg_cv_cc_flag__Wnested_externs
12924 if eval \${$cacheid+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12929 int i;
12930 int
12931 main ()
12932 {
12933
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 eval $cacheid=yes
12940 else
12941 eval $cacheid=no
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12945 fi
12946
12947
12948 CFLAGS="$xorg_testset_save_CFLAGS"
12949
12950 eval supported=\$$cacheid
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12952 $as_echo "$supported" >&6; }
12953 if test "$supported" = "yes" ; then
12954 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12955 found="yes"
12956 fi
12957 fi
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973 xorg_testset_save_CFLAGS="$CFLAGS"
12974
12975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984 int i;
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 xorg_cv_cc_flag_unknown_warning_option=yes
12988 else
12989 xorg_cv_cc_flag_unknown_warning_option=no
12990 fi
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12996 CFLAGS="$xorg_testset_save_CFLAGS"
12997 fi
12998
12999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13002 fi
13003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 int i;
13012 _ACEOF
13013 if ac_fn_c_try_compile "$LINENO"; then :
13014 xorg_cv_cc_flag_unused_command_line_argument=yes
13015 else
13016 xorg_cv_cc_flag_unused_command_line_argument=no
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13023 CFLAGS="$xorg_testset_save_CFLAGS"
13024 fi
13025
13026 found="no"
13027
13028 if test $found = "no" ; then
13029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13031 fi
13032
13033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13035 fi
13036
13037 CFLAGS="$CFLAGS -Wbad-function-cast"
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13040 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13041 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13042 if eval \${$cacheid+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 int i;
13048 int
13049 main ()
13050 {
13051
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 eval $cacheid=yes
13058 else
13059 eval $cacheid=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 fi
13064
13065
13066 CFLAGS="$xorg_testset_save_CFLAGS"
13067
13068 eval supported=\$$cacheid
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13070 $as_echo "$supported" >&6; }
13071 if test "$supported" = "yes" ; then
13072 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13073 found="yes"
13074 fi
13075 fi
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091 xorg_testset_save_CFLAGS="$CFLAGS"
13092
13093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13102 int i;
13103 _ACEOF
13104 if ac_fn_c_try_compile "$LINENO"; then :
13105 xorg_cv_cc_flag_unknown_warning_option=yes
13106 else
13107 xorg_cv_cc_flag_unknown_warning_option=no
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13114 CFLAGS="$xorg_testset_save_CFLAGS"
13115 fi
13116
13117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120 fi
13121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 int i;
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132 xorg_cv_cc_flag_unused_command_line_argument=yes
13133 else
13134 xorg_cv_cc_flag_unused_command_line_argument=no
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137 fi
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13141 CFLAGS="$xorg_testset_save_CFLAGS"
13142 fi
13143
13144 found="no"
13145
13146 if test $found = "no" ; then
13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149 fi
13150
13151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13153 fi
13154
13155 CFLAGS="$CFLAGS -Wold-style-definition"
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13158 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13159 cacheid=xorg_cv_cc_flag__Wold_style_definition
13160 if eval \${$cacheid+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 int i;
13166 int
13167 main ()
13168 {
13169
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 eval $cacheid=yes
13176 else
13177 eval $cacheid=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 fi
13182
13183
13184 CFLAGS="$xorg_testset_save_CFLAGS"
13185
13186 eval supported=\$$cacheid
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13188 $as_echo "$supported" >&6; }
13189 if test "$supported" = "yes" ; then
13190 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13191 found="yes"
13192 fi
13193 fi
13194
13195 if test $found = "no" ; then
13196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13198 fi
13199
13200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13202 fi
13203
13204 CFLAGS="$CFLAGS -fd"
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13207 $as_echo_n "checking if $CC supports -fd... " >&6; }
13208 cacheid=xorg_cv_cc_flag__fd
13209 if eval \${$cacheid+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 int i;
13215 int
13216 main ()
13217 {
13218
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 eval $cacheid=yes
13225 else
13226 eval $cacheid=no
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 fi
13231
13232
13233 CFLAGS="$xorg_testset_save_CFLAGS"
13234
13235 eval supported=\$$cacheid
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13237 $as_echo "$supported" >&6; }
13238 if test "$supported" = "yes" ; then
13239 BASE_CFLAGS="$BASE_CFLAGS -fd"
13240 found="yes"
13241 fi
13242 fi
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258 xorg_testset_save_CFLAGS="$CFLAGS"
13259
13260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13263 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13264 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 int i;
13270 _ACEOF
13271 if ac_fn_c_try_compile "$LINENO"; then :
13272 xorg_cv_cc_flag_unknown_warning_option=yes
13273 else
13274 xorg_cv_cc_flag_unknown_warning_option=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13279 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13281 CFLAGS="$xorg_testset_save_CFLAGS"
13282 fi
13283
13284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13287 fi
13288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13290 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13291 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 int i;
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 xorg_cv_cc_flag_unused_command_line_argument=yes
13300 else
13301 xorg_cv_cc_flag_unused_command_line_argument=no
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13306 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13308 CFLAGS="$xorg_testset_save_CFLAGS"
13309 fi
13310
13311 found="no"
13312
13313 if test $found = "no" ; then
13314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13316 fi
13317
13318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13320 fi
13321
13322 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13325 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13326 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13327 if eval \${$cacheid+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332 int i;
13333 int
13334 main ()
13335 {
13336
13337 ;
13338 return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342 eval $cacheid=yes
13343 else
13344 eval $cacheid=no
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 fi
13349
13350
13351 CFLAGS="$xorg_testset_save_CFLAGS"
13352
13353 eval supported=\$$cacheid
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13355 $as_echo "$supported" >&6; }
13356 if test "$supported" = "yes" ; then
13357 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13358 found="yes"
13359 fi
13360 fi
13361
13362
13363
13364
13365
13366 # This chunk adds additional warnings that could catch undesired effects.
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380 xorg_testset_save_CFLAGS="$CFLAGS"
13381
13382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13385 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13386 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 int i;
13392 _ACEOF
13393 if ac_fn_c_try_compile "$LINENO"; then :
13394 xorg_cv_cc_flag_unknown_warning_option=yes
13395 else
13396 xorg_cv_cc_flag_unknown_warning_option=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13401 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13403 CFLAGS="$xorg_testset_save_CFLAGS"
13404 fi
13405
13406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13409 fi
13410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13412 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13413 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 int i;
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 xorg_cv_cc_flag_unused_command_line_argument=yes
13422 else
13423 xorg_cv_cc_flag_unused_command_line_argument=no
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13428 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13430 CFLAGS="$xorg_testset_save_CFLAGS"
13431 fi
13432
13433 found="no"
13434
13435 if test $found = "no" ; then
13436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13438 fi
13439
13440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13442 fi
13443
13444 CFLAGS="$CFLAGS -Wunused"
13445
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13447 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13448 cacheid=xorg_cv_cc_flag__Wunused
13449 if eval \${$cacheid+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 int i;
13455 int
13456 main ()
13457 {
13458
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_link "$LINENO"; then :
13464 eval $cacheid=yes
13465 else
13466 eval $cacheid=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 fi
13471
13472
13473 CFLAGS="$xorg_testset_save_CFLAGS"
13474
13475 eval supported=\$$cacheid
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13477 $as_echo "$supported" >&6; }
13478 if test "$supported" = "yes" ; then
13479 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13480 found="yes"
13481 fi
13482 fi
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498 xorg_testset_save_CFLAGS="$CFLAGS"
13499
13500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13503 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13504 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509 int i;
13510 _ACEOF
13511 if ac_fn_c_try_compile "$LINENO"; then :
13512 xorg_cv_cc_flag_unknown_warning_option=yes
13513 else
13514 xorg_cv_cc_flag_unknown_warning_option=no
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13519 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13521 CFLAGS="$xorg_testset_save_CFLAGS"
13522 fi
13523
13524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527 fi
13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13530 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13531 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 int i;
13537 _ACEOF
13538 if ac_fn_c_try_compile "$LINENO"; then :
13539 xorg_cv_cc_flag_unused_command_line_argument=yes
13540 else
13541 xorg_cv_cc_flag_unused_command_line_argument=no
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13546 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13548 CFLAGS="$xorg_testset_save_CFLAGS"
13549 fi
13550
13551 found="no"
13552
13553 if test $found = "no" ; then
13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556 fi
13557
13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560 fi
13561
13562 CFLAGS="$CFLAGS -Wuninitialized"
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13565 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13566 cacheid=xorg_cv_cc_flag__Wuninitialized
13567 if eval \${$cacheid+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 int i;
13573 int
13574 main ()
13575 {
13576
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 eval $cacheid=yes
13583 else
13584 eval $cacheid=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 fi
13589
13590
13591 CFLAGS="$xorg_testset_save_CFLAGS"
13592
13593 eval supported=\$$cacheid
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13595 $as_echo "$supported" >&6; }
13596 if test "$supported" = "yes" ; then
13597 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13598 found="yes"
13599 fi
13600 fi
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616 xorg_testset_save_CFLAGS="$CFLAGS"
13617
13618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 int i;
13628 _ACEOF
13629 if ac_fn_c_try_compile "$LINENO"; then :
13630 xorg_cv_cc_flag_unknown_warning_option=yes
13631 else
13632 xorg_cv_cc_flag_unknown_warning_option=no
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13639 CFLAGS="$xorg_testset_save_CFLAGS"
13640 fi
13641
13642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13645 fi
13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 int i;
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 xorg_cv_cc_flag_unused_command_line_argument=yes
13658 else
13659 xorg_cv_cc_flag_unused_command_line_argument=no
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 fi
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13666 CFLAGS="$xorg_testset_save_CFLAGS"
13667 fi
13668
13669 found="no"
13670
13671 if test $found = "no" ; then
13672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 fi
13675
13676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13678 fi
13679
13680 CFLAGS="$CFLAGS -Wshadow"
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13683 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13684 cacheid=xorg_cv_cc_flag__Wshadow
13685 if eval \${$cacheid+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int i;
13691 int
13692 main ()
13693 {
13694
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 eval $cacheid=yes
13701 else
13702 eval $cacheid=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13706 fi
13707
13708
13709 CFLAGS="$xorg_testset_save_CFLAGS"
13710
13711 eval supported=\$$cacheid
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13713 $as_echo "$supported" >&6; }
13714 if test "$supported" = "yes" ; then
13715 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13716 found="yes"
13717 fi
13718 fi
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734 xorg_testset_save_CFLAGS="$CFLAGS"
13735
13736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 int i;
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 xorg_cv_cc_flag_unknown_warning_option=yes
13749 else
13750 xorg_cv_cc_flag_unknown_warning_option=no
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 fi
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13757 CFLAGS="$xorg_testset_save_CFLAGS"
13758 fi
13759
13760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763 fi
13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 int i;
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 xorg_cv_cc_flag_unused_command_line_argument=yes
13776 else
13777 xorg_cv_cc_flag_unused_command_line_argument=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13784 CFLAGS="$xorg_testset_save_CFLAGS"
13785 fi
13786
13787 found="no"
13788
13789 if test $found = "no" ; then
13790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13792 fi
13793
13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796 fi
13797
13798 CFLAGS="$CFLAGS -Wmissing-noreturn"
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13801 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13802 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13803 if eval \${$cacheid+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 int i;
13809 int
13810 main ()
13811 {
13812
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_link "$LINENO"; then :
13818 eval $cacheid=yes
13819 else
13820 eval $cacheid=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 fi
13825
13826
13827 CFLAGS="$xorg_testset_save_CFLAGS"
13828
13829 eval supported=\$$cacheid
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13831 $as_echo "$supported" >&6; }
13832 if test "$supported" = "yes" ; then
13833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13834 found="yes"
13835 fi
13836 fi
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852 xorg_testset_save_CFLAGS="$CFLAGS"
13853
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 int i;
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866 xorg_cv_cc_flag_unknown_warning_option=yes
13867 else
13868 xorg_cv_cc_flag_unknown_warning_option=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 fi
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875 CFLAGS="$xorg_testset_save_CFLAGS"
13876 fi
13877
13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881 fi
13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 int i;
13891 _ACEOF
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893 xorg_cv_cc_flag_unused_command_line_argument=yes
13894 else
13895 xorg_cv_cc_flag_unused_command_line_argument=no
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13902 CFLAGS="$xorg_testset_save_CFLAGS"
13903 fi
13904
13905 found="no"
13906
13907 if test $found = "no" ; then
13908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910 fi
13911
13912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13914 fi
13915
13916 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13919 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13920 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13921 if eval \${$cacheid+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13926 int i;
13927 int
13928 main ()
13929 {
13930
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_link "$LINENO"; then :
13936 eval $cacheid=yes
13937 else
13938 eval $cacheid=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 fi
13943
13944
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13946
13947 eval supported=\$$cacheid
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13949 $as_echo "$supported" >&6; }
13950 if test "$supported" = "yes" ; then
13951 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13952 found="yes"
13953 fi
13954 fi
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970 xorg_testset_save_CFLAGS="$CFLAGS"
13971
13972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 int i;
13982 _ACEOF
13983 if ac_fn_c_try_compile "$LINENO"; then :
13984 xorg_cv_cc_flag_unknown_warning_option=yes
13985 else
13986 xorg_cv_cc_flag_unknown_warning_option=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13993 CFLAGS="$xorg_testset_save_CFLAGS"
13994 fi
13995
13996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13999 fi
14000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 int i;
14009 _ACEOF
14010 if ac_fn_c_try_compile "$LINENO"; then :
14011 xorg_cv_cc_flag_unused_command_line_argument=yes
14012 else
14013 xorg_cv_cc_flag_unused_command_line_argument=no
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 fi
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14020 CFLAGS="$xorg_testset_save_CFLAGS"
14021 fi
14022
14023 found="no"
14024
14025 if test $found = "no" ; then
14026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028 fi
14029
14030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14032 fi
14033
14034 CFLAGS="$CFLAGS -Wredundant-decls"
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14037 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14038 cacheid=xorg_cv_cc_flag__Wredundant_decls
14039 if eval \${$cacheid+:} false; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 int i;
14045 int
14046 main ()
14047 {
14048
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 eval $cacheid=yes
14055 else
14056 eval $cacheid=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 fi
14061
14062
14063 CFLAGS="$xorg_testset_save_CFLAGS"
14064
14065 eval supported=\$$cacheid
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14067 $as_echo "$supported" >&6; }
14068 if test "$supported" = "yes" ; then
14069 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14070 found="yes"
14071 fi
14072 fi
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088 xorg_testset_save_CFLAGS="$CFLAGS"
14089
14090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 int i;
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 xorg_cv_cc_flag_unknown_warning_option=yes
14103 else
14104 xorg_cv_cc_flag_unknown_warning_option=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14111 CFLAGS="$xorg_testset_save_CFLAGS"
14112 fi
14113
14114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14117 fi
14118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126 int i;
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"; then :
14129 xorg_cv_cc_flag_unused_command_line_argument=yes
14130 else
14131 xorg_cv_cc_flag_unused_command_line_argument=no
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14138 CFLAGS="$xorg_testset_save_CFLAGS"
14139 fi
14140
14141 found="no"
14142
14143 if test $found = "no" ; then
14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14146 fi
14147
14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14150 fi
14151
14152 CFLAGS="$CFLAGS -Wlogical-op"
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14155 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14156 cacheid=xorg_cv_cc_flag__Wlogical_op
14157 if eval \${$cacheid+:} false; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 int i;
14163 int
14164 main ()
14165 {
14166
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 if ac_fn_c_try_link "$LINENO"; then :
14172 eval $cacheid=yes
14173 else
14174 eval $cacheid=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 fi
14179
14180
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14182
14183 eval supported=\$$cacheid
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14185 $as_echo "$supported" >&6; }
14186 if test "$supported" = "yes" ; then
14187 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14188 found="yes"
14189 fi
14190 fi
14191
14192
14193
14194 # These are currently disabled because they are noisy. They will be enabled
14195 # in the future once the codebase is sufficiently modernized to silence
14196 # them. For now, I don't want them to drown out the other warnings.
14197 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14198 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14199 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14200
14201 # Turn some warnings into errors, so we don't accidently get successful builds
14202 # when there are problems that should be fixed.
14203
14204 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218 xorg_testset_save_CFLAGS="$CFLAGS"
14219
14220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 int i;
14230 _ACEOF
14231 if ac_fn_c_try_compile "$LINENO"; then :
14232 xorg_cv_cc_flag_unknown_warning_option=yes
14233 else
14234 xorg_cv_cc_flag_unknown_warning_option=no
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 fi
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14241 CFLAGS="$xorg_testset_save_CFLAGS"
14242 fi
14243
14244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 fi
14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 int i;
14257 _ACEOF
14258 if ac_fn_c_try_compile "$LINENO"; then :
14259 xorg_cv_cc_flag_unused_command_line_argument=yes
14260 else
14261 xorg_cv_cc_flag_unused_command_line_argument=no
14262 fi
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14268 CFLAGS="$xorg_testset_save_CFLAGS"
14269 fi
14270
14271 found="no"
14272
14273 if test $found = "no" ; then
14274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14276 fi
14277
14278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14280 fi
14281
14282 CFLAGS="$CFLAGS -Werror=implicit"
14283
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14285 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14286 cacheid=xorg_cv_cc_flag__Werror_implicit
14287 if eval \${$cacheid+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14292 int i;
14293 int
14294 main ()
14295 {
14296
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 eval $cacheid=yes
14303 else
14304 eval $cacheid=no
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 fi
14309
14310
14311 CFLAGS="$xorg_testset_save_CFLAGS"
14312
14313 eval supported=\$$cacheid
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14315 $as_echo "$supported" >&6; }
14316 if test "$supported" = "yes" ; then
14317 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14318 found="yes"
14319 fi
14320 fi
14321
14322 if test $found = "no" ; then
14323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325 fi
14326
14327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14329 fi
14330
14331 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14332
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14334 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14335 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14336 if eval \${$cacheid+:} false; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 int i;
14342 int
14343 main ()
14344 {
14345
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_link "$LINENO"; then :
14351 eval $cacheid=yes
14352 else
14353 eval $cacheid=no
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 fi
14358
14359
14360 CFLAGS="$xorg_testset_save_CFLAGS"
14361
14362 eval supported=\$$cacheid
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14364 $as_echo "$supported" >&6; }
14365 if test "$supported" = "yes" ; then
14366 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14367 found="yes"
14368 fi
14369 fi
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385 xorg_testset_save_CFLAGS="$CFLAGS"
14386
14387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14390 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14391 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 int i;
14397 _ACEOF
14398 if ac_fn_c_try_compile "$LINENO"; then :
14399 xorg_cv_cc_flag_unknown_warning_option=yes
14400 else
14401 xorg_cv_cc_flag_unknown_warning_option=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14406 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14408 CFLAGS="$xorg_testset_save_CFLAGS"
14409 fi
14410
14411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14414 fi
14415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14417 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14418 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 int i;
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426 xorg_cv_cc_flag_unused_command_line_argument=yes
14427 else
14428 xorg_cv_cc_flag_unused_command_line_argument=no
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14433 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14435 CFLAGS="$xorg_testset_save_CFLAGS"
14436 fi
14437
14438 found="no"
14439
14440 if test $found = "no" ; then
14441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443 fi
14444
14445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14447 fi
14448
14449 CFLAGS="$CFLAGS -Werror=nonnull"
14450
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14452 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14453 cacheid=xorg_cv_cc_flag__Werror_nonnull
14454 if eval \${$cacheid+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 int i;
14460 int
14461 main ()
14462 {
14463
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_link "$LINENO"; then :
14469 eval $cacheid=yes
14470 else
14471 eval $cacheid=no
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 fi
14476
14477
14478 CFLAGS="$xorg_testset_save_CFLAGS"
14479
14480 eval supported=\$$cacheid
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14482 $as_echo "$supported" >&6; }
14483 if test "$supported" = "yes" ; then
14484 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14485 found="yes"
14486 fi
14487 fi
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503 xorg_testset_save_CFLAGS="$CFLAGS"
14504
14505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514 int i;
14515 _ACEOF
14516 if ac_fn_c_try_compile "$LINENO"; then :
14517 xorg_cv_cc_flag_unknown_warning_option=yes
14518 else
14519 xorg_cv_cc_flag_unknown_warning_option=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14526 CFLAGS="$xorg_testset_save_CFLAGS"
14527 fi
14528
14529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14532 fi
14533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 int i;
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 xorg_cv_cc_flag_unused_command_line_argument=yes
14545 else
14546 xorg_cv_cc_flag_unused_command_line_argument=no
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 fi
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14553 CFLAGS="$xorg_testset_save_CFLAGS"
14554 fi
14555
14556 found="no"
14557
14558 if test $found = "no" ; then
14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561 fi
14562
14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 fi
14566
14567 CFLAGS="$CFLAGS -Werror=init-self"
14568
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14570 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14571 cacheid=xorg_cv_cc_flag__Werror_init_self
14572 if eval \${$cacheid+:} false; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 int i;
14578 int
14579 main ()
14580 {
14581
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_link "$LINENO"; then :
14587 eval $cacheid=yes
14588 else
14589 eval $cacheid=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 fi
14594
14595
14596 CFLAGS="$xorg_testset_save_CFLAGS"
14597
14598 eval supported=\$$cacheid
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14600 $as_echo "$supported" >&6; }
14601 if test "$supported" = "yes" ; then
14602 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14603 found="yes"
14604 fi
14605 fi
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621 xorg_testset_save_CFLAGS="$CFLAGS"
14622
14623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 int i;
14633 _ACEOF
14634 if ac_fn_c_try_compile "$LINENO"; then :
14635 xorg_cv_cc_flag_unknown_warning_option=yes
14636 else
14637 xorg_cv_cc_flag_unknown_warning_option=no
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14644 CFLAGS="$xorg_testset_save_CFLAGS"
14645 fi
14646
14647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14650 fi
14651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14659 int i;
14660 _ACEOF
14661 if ac_fn_c_try_compile "$LINENO"; then :
14662 xorg_cv_cc_flag_unused_command_line_argument=yes
14663 else
14664 xorg_cv_cc_flag_unused_command_line_argument=no
14665 fi
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 fi
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14671 CFLAGS="$xorg_testset_save_CFLAGS"
14672 fi
14673
14674 found="no"
14675
14676 if test $found = "no" ; then
14677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14679 fi
14680
14681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683 fi
14684
14685 CFLAGS="$CFLAGS -Werror=main"
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14688 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14689 cacheid=xorg_cv_cc_flag__Werror_main
14690 if eval \${$cacheid+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695 int i;
14696 int
14697 main ()
14698 {
14699
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_link "$LINENO"; then :
14705 eval $cacheid=yes
14706 else
14707 eval $cacheid=no
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 fi
14712
14713
14714 CFLAGS="$xorg_testset_save_CFLAGS"
14715
14716 eval supported=\$$cacheid
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14718 $as_echo "$supported" >&6; }
14719 if test "$supported" = "yes" ; then
14720 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14721 found="yes"
14722 fi
14723 fi
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739 xorg_testset_save_CFLAGS="$CFLAGS"
14740
14741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 int i;
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"; then :
14753 xorg_cv_cc_flag_unknown_warning_option=yes
14754 else
14755 xorg_cv_cc_flag_unknown_warning_option=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14762 CFLAGS="$xorg_testset_save_CFLAGS"
14763 fi
14764
14765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768 fi
14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 int i;
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780 xorg_cv_cc_flag_unused_command_line_argument=yes
14781 else
14782 xorg_cv_cc_flag_unused_command_line_argument=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14789 CFLAGS="$xorg_testset_save_CFLAGS"
14790 fi
14791
14792 found="no"
14793
14794 if test $found = "no" ; then
14795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797 fi
14798
14799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14801 fi
14802
14803 CFLAGS="$CFLAGS -Werror=missing-braces"
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14806 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14807 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14808 if eval \${$cacheid+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 int i;
14814 int
14815 main ()
14816 {
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"; then :
14823 eval $cacheid=yes
14824 else
14825 eval $cacheid=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 fi
14830
14831
14832 CFLAGS="$xorg_testset_save_CFLAGS"
14833
14834 eval supported=\$$cacheid
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14836 $as_echo "$supported" >&6; }
14837 if test "$supported" = "yes" ; then
14838 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14839 found="yes"
14840 fi
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857 xorg_testset_save_CFLAGS="$CFLAGS"
14858
14859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 int i;
14869 _ACEOF
14870 if ac_fn_c_try_compile "$LINENO"; then :
14871 xorg_cv_cc_flag_unknown_warning_option=yes
14872 else
14873 xorg_cv_cc_flag_unknown_warning_option=no
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14880 CFLAGS="$xorg_testset_save_CFLAGS"
14881 fi
14882
14883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14886 fi
14887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895 int i;
14896 _ACEOF
14897 if ac_fn_c_try_compile "$LINENO"; then :
14898 xorg_cv_cc_flag_unused_command_line_argument=yes
14899 else
14900 xorg_cv_cc_flag_unused_command_line_argument=no
14901 fi
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14907 CFLAGS="$xorg_testset_save_CFLAGS"
14908 fi
14909
14910 found="no"
14911
14912 if test $found = "no" ; then
14913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915 fi
14916
14917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919 fi
14920
14921 CFLAGS="$CFLAGS -Werror=sequence-point"
14922
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14924 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14925 cacheid=xorg_cv_cc_flag__Werror_sequence_point
14926 if eval \${$cacheid+:} false; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 int i;
14932 int
14933 main ()
14934 {
14935
14936 ;
14937 return 0;
14938 }
14939 _ACEOF
14940 if ac_fn_c_try_link "$LINENO"; then :
14941 eval $cacheid=yes
14942 else
14943 eval $cacheid=no
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14947 fi
14948
14949
14950 CFLAGS="$xorg_testset_save_CFLAGS"
14951
14952 eval supported=\$$cacheid
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14954 $as_echo "$supported" >&6; }
14955 if test "$supported" = "yes" ; then
14956 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14957 found="yes"
14958 fi
14959 fi
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975 xorg_testset_save_CFLAGS="$CFLAGS"
14976
14977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 int i;
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"; then :
14989 xorg_cv_cc_flag_unknown_warning_option=yes
14990 else
14991 xorg_cv_cc_flag_unknown_warning_option=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 fi
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14998 CFLAGS="$xorg_testset_save_CFLAGS"
14999 fi
15000
15001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004 fi
15005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15009 $as_echo_n "(cached) " >&6
15010 else
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013 int i;
15014 _ACEOF
15015 if ac_fn_c_try_compile "$LINENO"; then :
15016 xorg_cv_cc_flag_unused_command_line_argument=yes
15017 else
15018 xorg_cv_cc_flag_unused_command_line_argument=no
15019 fi
15020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 fi
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15025 CFLAGS="$xorg_testset_save_CFLAGS"
15026 fi
15027
15028 found="no"
15029
15030 if test $found = "no" ; then
15031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15033 fi
15034
15035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037 fi
15038
15039 CFLAGS="$CFLAGS -Werror=return-type"
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15042 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15043 cacheid=xorg_cv_cc_flag__Werror_return_type
15044 if eval \${$cacheid+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 int i;
15050 int
15051 main ()
15052 {
15053
15054 ;
15055 return 0;
15056 }
15057 _ACEOF
15058 if ac_fn_c_try_link "$LINENO"; then :
15059 eval $cacheid=yes
15060 else
15061 eval $cacheid=no
15062 fi
15063 rm -f core conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
15065 fi
15066
15067
15068 CFLAGS="$xorg_testset_save_CFLAGS"
15069
15070 eval supported=\$$cacheid
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15072 $as_echo "$supported" >&6; }
15073 if test "$supported" = "yes" ; then
15074 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15075 found="yes"
15076 fi
15077 fi
15078
15079 if test $found = "no" ; then
15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 fi
15083
15084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086 fi
15087
15088 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15089
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15091 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15092 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15093 if eval \${$cacheid+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 int i;
15099 int
15100 main ()
15101 {
15102
15103 ;
15104 return 0;
15105 }
15106 _ACEOF
15107 if ac_fn_c_try_link "$LINENO"; then :
15108 eval $cacheid=yes
15109 else
15110 eval $cacheid=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15114 fi
15115
15116
15117 CFLAGS="$xorg_testset_save_CFLAGS"
15118
15119 eval supported=\$$cacheid
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15121 $as_echo "$supported" >&6; }
15122 if test "$supported" = "yes" ; then
15123 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15124 found="yes"
15125 fi
15126 fi
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 xorg_testset_save_CFLAGS="$CFLAGS"
15143
15144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15147 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15148 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 int i;
15154 _ACEOF
15155 if ac_fn_c_try_compile "$LINENO"; then :
15156 xorg_cv_cc_flag_unknown_warning_option=yes
15157 else
15158 xorg_cv_cc_flag_unknown_warning_option=no
15159 fi
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 fi
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15163 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15165 CFLAGS="$xorg_testset_save_CFLAGS"
15166 fi
15167
15168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171 fi
15172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15174 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15175 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 int i;
15181 _ACEOF
15182 if ac_fn_c_try_compile "$LINENO"; then :
15183 xorg_cv_cc_flag_unused_command_line_argument=yes
15184 else
15185 xorg_cv_cc_flag_unused_command_line_argument=no
15186 fi
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 fi
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15190 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15192 CFLAGS="$xorg_testset_save_CFLAGS"
15193 fi
15194
15195 found="no"
15196
15197 if test $found = "no" ; then
15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200 fi
15201
15202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204 fi
15205
15206 CFLAGS="$CFLAGS -Werror=trigraphs"
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15209 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15210 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15211 if eval \${$cacheid+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216 int i;
15217 int
15218 main ()
15219 {
15220
15221 ;
15222 return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_link "$LINENO"; then :
15226 eval $cacheid=yes
15227 else
15228 eval $cacheid=no
15229 fi
15230 rm -f core conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15232 fi
15233
15234
15235 CFLAGS="$xorg_testset_save_CFLAGS"
15236
15237 eval supported=\$$cacheid
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15239 $as_echo "$supported" >&6; }
15240 if test "$supported" = "yes" ; then
15241 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15242 found="yes"
15243 fi
15244 fi
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260 xorg_testset_save_CFLAGS="$CFLAGS"
15261
15262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 int i;
15272 _ACEOF
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 xorg_cv_cc_flag_unknown_warning_option=yes
15275 else
15276 xorg_cv_cc_flag_unknown_warning_option=no
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 fi
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15283 CFLAGS="$xorg_testset_save_CFLAGS"
15284 fi
15285
15286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289 fi
15290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 int i;
15299 _ACEOF
15300 if ac_fn_c_try_compile "$LINENO"; then :
15301 xorg_cv_cc_flag_unused_command_line_argument=yes
15302 else
15303 xorg_cv_cc_flag_unused_command_line_argument=no
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15310 CFLAGS="$xorg_testset_save_CFLAGS"
15311 fi
15312
15313 found="no"
15314
15315 if test $found = "no" ; then
15316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15318 fi
15319
15320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15322 fi
15323
15324 CFLAGS="$CFLAGS -Werror=array-bounds"
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15327 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15328 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15329 if eval \${$cacheid+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 int i;
15335 int
15336 main ()
15337 {
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_c_try_link "$LINENO"; then :
15344 eval $cacheid=yes
15345 else
15346 eval $cacheid=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350 fi
15351
15352
15353 CFLAGS="$xorg_testset_save_CFLAGS"
15354
15355 eval supported=\$$cacheid
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15357 $as_echo "$supported" >&6; }
15358 if test "$supported" = "yes" ; then
15359 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15360 found="yes"
15361 fi
15362 fi
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378 xorg_testset_save_CFLAGS="$CFLAGS"
15379
15380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 int i;
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392 xorg_cv_cc_flag_unknown_warning_option=yes
15393 else
15394 xorg_cv_cc_flag_unknown_warning_option=no
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15401 CFLAGS="$xorg_testset_save_CFLAGS"
15402 fi
15403
15404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15407 fi
15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15412 $as_echo_n "(cached) " >&6
15413 else
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416 int i;
15417 _ACEOF
15418 if ac_fn_c_try_compile "$LINENO"; then :
15419 xorg_cv_cc_flag_unused_command_line_argument=yes
15420 else
15421 xorg_cv_cc_flag_unused_command_line_argument=no
15422 fi
15423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424 fi
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15428 CFLAGS="$xorg_testset_save_CFLAGS"
15429 fi
15430
15431 found="no"
15432
15433 if test $found = "no" ; then
15434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15436 fi
15437
15438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15440 fi
15441
15442 CFLAGS="$CFLAGS -Werror=write-strings"
15443
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15445 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15446 cacheid=xorg_cv_cc_flag__Werror_write_strings
15447 if eval \${$cacheid+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449 else
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452 int i;
15453 int
15454 main ()
15455 {
15456
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_c_try_link "$LINENO"; then :
15462 eval $cacheid=yes
15463 else
15464 eval $cacheid=no
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468 fi
15469
15470
15471 CFLAGS="$xorg_testset_save_CFLAGS"
15472
15473 eval supported=\$$cacheid
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15475 $as_echo "$supported" >&6; }
15476 if test "$supported" = "yes" ; then
15477 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15478 found="yes"
15479 fi
15480 fi
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496 xorg_testset_save_CFLAGS="$CFLAGS"
15497
15498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 int i;
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510 xorg_cv_cc_flag_unknown_warning_option=yes
15511 else
15512 xorg_cv_cc_flag_unknown_warning_option=no
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 fi
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15519 CFLAGS="$xorg_testset_save_CFLAGS"
15520 fi
15521
15522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525 fi
15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15530 $as_echo_n "(cached) " >&6
15531 else
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 int i;
15535 _ACEOF
15536 if ac_fn_c_try_compile "$LINENO"; then :
15537 xorg_cv_cc_flag_unused_command_line_argument=yes
15538 else
15539 xorg_cv_cc_flag_unused_command_line_argument=no
15540 fi
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 fi
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15546 CFLAGS="$xorg_testset_save_CFLAGS"
15547 fi
15548
15549 found="no"
15550
15551 if test $found = "no" ; then
15552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15554 fi
15555
15556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558 fi
15559
15560 CFLAGS="$CFLAGS -Werror=address"
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15563 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15564 cacheid=xorg_cv_cc_flag__Werror_address
15565 if eval \${$cacheid+:} false; then :
15566 $as_echo_n "(cached) " >&6
15567 else
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 int i;
15571 int
15572 main ()
15573 {
15574
15575 ;
15576 return 0;
15577 }
15578 _ACEOF
15579 if ac_fn_c_try_link "$LINENO"; then :
15580 eval $cacheid=yes
15581 else
15582 eval $cacheid=no
15583 fi
15584 rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586 fi
15587
15588
15589 CFLAGS="$xorg_testset_save_CFLAGS"
15590
15591 eval supported=\$$cacheid
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15593 $as_echo "$supported" >&6; }
15594 if test "$supported" = "yes" ; then
15595 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15596 found="yes"
15597 fi
15598 fi
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614 xorg_testset_save_CFLAGS="$CFLAGS"
15615
15616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 int i;
15626 _ACEOF
15627 if ac_fn_c_try_compile "$LINENO"; then :
15628 xorg_cv_cc_flag_unknown_warning_option=yes
15629 else
15630 xorg_cv_cc_flag_unknown_warning_option=no
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633 fi
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15637 CFLAGS="$xorg_testset_save_CFLAGS"
15638 fi
15639
15640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15643 fi
15644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 int i;
15653 _ACEOF
15654 if ac_fn_c_try_compile "$LINENO"; then :
15655 xorg_cv_cc_flag_unused_command_line_argument=yes
15656 else
15657 xorg_cv_cc_flag_unused_command_line_argument=no
15658 fi
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15664 CFLAGS="$xorg_testset_save_CFLAGS"
15665 fi
15666
15667 found="no"
15668
15669 if test $found = "no" ; then
15670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672 fi
15673
15674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15676 fi
15677
15678 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15679
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15681 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15682 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15683 if eval \${$cacheid+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 int i;
15689 int
15690 main ()
15691 {
15692
15693 ;
15694 return 0;
15695 }
15696 _ACEOF
15697 if ac_fn_c_try_link "$LINENO"; then :
15698 eval $cacheid=yes
15699 else
15700 eval $cacheid=no
15701 fi
15702 rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704 fi
15705
15706
15707 CFLAGS="$xorg_testset_save_CFLAGS"
15708
15709 eval supported=\$$cacheid
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15711 $as_echo "$supported" >&6; }
15712 if test "$supported" = "yes" ; then
15713 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15714 found="yes"
15715 fi
15716 fi
15717
15718 if test $found = "no" ; then
15719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15721 fi
15722
15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15725 fi
15726
15727 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15730 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15731 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15732 if eval \${$cacheid+:} false; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 int i;
15738 int
15739 main ()
15740 {
15741
15742 ;
15743 return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_link "$LINENO"; then :
15747 eval $cacheid=yes
15748 else
15749 eval $cacheid=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext \
15752 conftest$ac_exeext conftest.$ac_ext
15753 fi
15754
15755
15756 CFLAGS="$xorg_testset_save_CFLAGS"
15757
15758 eval supported=\$$cacheid
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15760 $as_echo "$supported" >&6; }
15761 if test "$supported" = "yes" ; then
15762 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15763 found="yes"
15764 fi
15765 fi
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781 xorg_testset_save_CFLAGS="$CFLAGS"
15782
15783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15786 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15787 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 int i;
15793 _ACEOF
15794 if ac_fn_c_try_compile "$LINENO"; then :
15795 xorg_cv_cc_flag_unknown_warning_option=yes
15796 else
15797 xorg_cv_cc_flag_unknown_warning_option=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15802 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15804 CFLAGS="$xorg_testset_save_CFLAGS"
15805 fi
15806
15807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15810 fi
15811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15814 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15815 $as_echo_n "(cached) " >&6
15816 else
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15819 int i;
15820 _ACEOF
15821 if ac_fn_c_try_compile "$LINENO"; then :
15822 xorg_cv_cc_flag_unused_command_line_argument=yes
15823 else
15824 xorg_cv_cc_flag_unused_command_line_argument=no
15825 fi
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 fi
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15829 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15831 CFLAGS="$xorg_testset_save_CFLAGS"
15832 fi
15833
15834 found="no"
15835
15836 if test $found = "no" ; then
15837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15839 fi
15840
15841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15843 fi
15844
15845 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15848 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15849 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15850 if eval \${$cacheid+:} false; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 int i;
15856 int
15857 main ()
15858 {
15859
15860 ;
15861 return 0;
15862 }
15863 _ACEOF
15864 if ac_fn_c_try_link "$LINENO"; then :
15865 eval $cacheid=yes
15866 else
15867 eval $cacheid=no
15868 fi
15869 rm -f core conftest.err conftest.$ac_objext \
15870 conftest$ac_exeext conftest.$ac_ext
15871 fi
15872
15873
15874 CFLAGS="$xorg_testset_save_CFLAGS"
15875
15876 eval supported=\$$cacheid
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15878 $as_echo "$supported" >&6; }
15879 if test "$supported" = "yes" ; then
15880 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15881 found="yes"
15882 fi
15883 fi
15884
15885 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15886 else
15887 { $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
15888 $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;}
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902 xorg_testset_save_CFLAGS="$CFLAGS"
15903
15904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 int i;
15914 _ACEOF
15915 if ac_fn_c_try_compile "$LINENO"; then :
15916 xorg_cv_cc_flag_unknown_warning_option=yes
15917 else
15918 xorg_cv_cc_flag_unknown_warning_option=no
15919 fi
15920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15925 CFLAGS="$xorg_testset_save_CFLAGS"
15926 fi
15927
15928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931 fi
15932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 int i;
15941 _ACEOF
15942 if ac_fn_c_try_compile "$LINENO"; then :
15943 xorg_cv_cc_flag_unused_command_line_argument=yes
15944 else
15945 xorg_cv_cc_flag_unused_command_line_argument=no
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948 fi
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15952 CFLAGS="$xorg_testset_save_CFLAGS"
15953 fi
15954
15955 found="no"
15956
15957 if test $found = "no" ; then
15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960 fi
15961
15962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15964 fi
15965
15966 CFLAGS="$CFLAGS -Wimplicit"
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15969 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15970 cacheid=xorg_cv_cc_flag__Wimplicit
15971 if eval \${$cacheid+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 int i;
15977 int
15978 main ()
15979 {
15980
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"; then :
15986 eval $cacheid=yes
15987 else
15988 eval $cacheid=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
15992 fi
15993
15994
15995 CFLAGS="$xorg_testset_save_CFLAGS"
15996
15997 eval supported=\$$cacheid
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15999 $as_echo "$supported" >&6; }
16000 if test "$supported" = "yes" ; then
16001 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16002 found="yes"
16003 fi
16004 fi
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020 xorg_testset_save_CFLAGS="$CFLAGS"
16021
16022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16025 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16026 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16027 $as_echo_n "(cached) " >&6
16028 else
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031 int i;
16032 _ACEOF
16033 if ac_fn_c_try_compile "$LINENO"; then :
16034 xorg_cv_cc_flag_unknown_warning_option=yes
16035 else
16036 xorg_cv_cc_flag_unknown_warning_option=no
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039 fi
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16041 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16043 CFLAGS="$xorg_testset_save_CFLAGS"
16044 fi
16045
16046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16049 fi
16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16052 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16053 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 int i;
16059 _ACEOF
16060 if ac_fn_c_try_compile "$LINENO"; then :
16061 xorg_cv_cc_flag_unused_command_line_argument=yes
16062 else
16063 xorg_cv_cc_flag_unused_command_line_argument=no
16064 fi
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 fi
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16068 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16070 CFLAGS="$xorg_testset_save_CFLAGS"
16071 fi
16072
16073 found="no"
16074
16075 if test $found = "no" ; then
16076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16078 fi
16079
16080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16082 fi
16083
16084 CFLAGS="$CFLAGS -Wnonnull"
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16087 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16088 cacheid=xorg_cv_cc_flag__Wnonnull
16089 if eval \${$cacheid+:} false; then :
16090 $as_echo_n "(cached) " >&6
16091 else
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 int i;
16095 int
16096 main ()
16097 {
16098
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_link "$LINENO"; then :
16104 eval $cacheid=yes
16105 else
16106 eval $cacheid=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 fi
16111
16112
16113 CFLAGS="$xorg_testset_save_CFLAGS"
16114
16115 eval supported=\$$cacheid
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16117 $as_echo "$supported" >&6; }
16118 if test "$supported" = "yes" ; then
16119 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16120 found="yes"
16121 fi
16122 fi
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138 xorg_testset_save_CFLAGS="$CFLAGS"
16139
16140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16144 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149 int i;
16150 _ACEOF
16151 if ac_fn_c_try_compile "$LINENO"; then :
16152 xorg_cv_cc_flag_unknown_warning_option=yes
16153 else
16154 xorg_cv_cc_flag_unknown_warning_option=no
16155 fi
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 fi
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16159 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16161 CFLAGS="$xorg_testset_save_CFLAGS"
16162 fi
16163
16164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16167 fi
16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16170 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16171 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16172 $as_echo_n "(cached) " >&6
16173 else
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 int i;
16177 _ACEOF
16178 if ac_fn_c_try_compile "$LINENO"; then :
16179 xorg_cv_cc_flag_unused_command_line_argument=yes
16180 else
16181 xorg_cv_cc_flag_unused_command_line_argument=no
16182 fi
16183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 fi
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16186 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16188 CFLAGS="$xorg_testset_save_CFLAGS"
16189 fi
16190
16191 found="no"
16192
16193 if test $found = "no" ; then
16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196 fi
16197
16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16200 fi
16201
16202 CFLAGS="$CFLAGS -Winit-self"
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16205 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16206 cacheid=xorg_cv_cc_flag__Winit_self
16207 if eval \${$cacheid+:} false; then :
16208 $as_echo_n "(cached) " >&6
16209 else
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 int i;
16213 int
16214 main ()
16215 {
16216
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 if ac_fn_c_try_link "$LINENO"; then :
16222 eval $cacheid=yes
16223 else
16224 eval $cacheid=no
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 fi
16229
16230
16231 CFLAGS="$xorg_testset_save_CFLAGS"
16232
16233 eval supported=\$$cacheid
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16235 $as_echo "$supported" >&6; }
16236 if test "$supported" = "yes" ; then
16237 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16238 found="yes"
16239 fi
16240 fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256 xorg_testset_save_CFLAGS="$CFLAGS"
16257
16258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16261 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16262 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 int i;
16268 _ACEOF
16269 if ac_fn_c_try_compile "$LINENO"; then :
16270 xorg_cv_cc_flag_unknown_warning_option=yes
16271 else
16272 xorg_cv_cc_flag_unknown_warning_option=no
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 fi
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16277 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16279 CFLAGS="$xorg_testset_save_CFLAGS"
16280 fi
16281
16282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16285 fi
16286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16288 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16289 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 int i;
16295 _ACEOF
16296 if ac_fn_c_try_compile "$LINENO"; then :
16297 xorg_cv_cc_flag_unused_command_line_argument=yes
16298 else
16299 xorg_cv_cc_flag_unused_command_line_argument=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16304 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16306 CFLAGS="$xorg_testset_save_CFLAGS"
16307 fi
16308
16309 found="no"
16310
16311 if test $found = "no" ; then
16312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314 fi
16315
16316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318 fi
16319
16320 CFLAGS="$CFLAGS -Wmain"
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16323 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16324 cacheid=xorg_cv_cc_flag__Wmain
16325 if eval \${$cacheid+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327 else
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 int i;
16331 int
16332 main ()
16333 {
16334
16335 ;
16336 return 0;
16337 }
16338 _ACEOF
16339 if ac_fn_c_try_link "$LINENO"; then :
16340 eval $cacheid=yes
16341 else
16342 eval $cacheid=no
16343 fi
16344 rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
16346 fi
16347
16348
16349 CFLAGS="$xorg_testset_save_CFLAGS"
16350
16351 eval supported=\$$cacheid
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16353 $as_echo "$supported" >&6; }
16354 if test "$supported" = "yes" ; then
16355 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16356 found="yes"
16357 fi
16358 fi
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374 xorg_testset_save_CFLAGS="$CFLAGS"
16375
16376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16379 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16380 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 int i;
16386 _ACEOF
16387 if ac_fn_c_try_compile "$LINENO"; then :
16388 xorg_cv_cc_flag_unknown_warning_option=yes
16389 else
16390 xorg_cv_cc_flag_unknown_warning_option=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 fi
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16395 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398 fi
16399
16400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16403 fi
16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16406 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16407 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16408 $as_echo_n "(cached) " >&6
16409 else
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 int i;
16413 _ACEOF
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415 xorg_cv_cc_flag_unused_command_line_argument=yes
16416 else
16417 xorg_cv_cc_flag_unused_command_line_argument=no
16418 fi
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16422 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16424 CFLAGS="$xorg_testset_save_CFLAGS"
16425 fi
16426
16427 found="no"
16428
16429 if test $found = "no" ; then
16430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432 fi
16433
16434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16436 fi
16437
16438 CFLAGS="$CFLAGS -Wmissing-braces"
16439
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16441 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16442 cacheid=xorg_cv_cc_flag__Wmissing_braces
16443 if eval \${$cacheid+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 int i;
16449 int
16450 main ()
16451 {
16452
16453 ;
16454 return 0;
16455 }
16456 _ACEOF
16457 if ac_fn_c_try_link "$LINENO"; then :
16458 eval $cacheid=yes
16459 else
16460 eval $cacheid=no
16461 fi
16462 rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464 fi
16465
16466
16467 CFLAGS="$xorg_testset_save_CFLAGS"
16468
16469 eval supported=\$$cacheid
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16471 $as_echo "$supported" >&6; }
16472 if test "$supported" = "yes" ; then
16473 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16474 found="yes"
16475 fi
16476 fi
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492 xorg_testset_save_CFLAGS="$CFLAGS"
16493
16494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16498 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 int i;
16504 _ACEOF
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506 xorg_cv_cc_flag_unknown_warning_option=yes
16507 else
16508 xorg_cv_cc_flag_unknown_warning_option=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16513 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16515 CFLAGS="$xorg_testset_save_CFLAGS"
16516 fi
16517
16518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16521 fi
16522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16525 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16526 $as_echo_n "(cached) " >&6
16527 else
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 int i;
16531 _ACEOF
16532 if ac_fn_c_try_compile "$LINENO"; then :
16533 xorg_cv_cc_flag_unused_command_line_argument=yes
16534 else
16535 xorg_cv_cc_flag_unused_command_line_argument=no
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16540 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16542 CFLAGS="$xorg_testset_save_CFLAGS"
16543 fi
16544
16545 found="no"
16546
16547 if test $found = "no" ; then
16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550 fi
16551
16552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554 fi
16555
16556 CFLAGS="$CFLAGS -Wsequence-point"
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16559 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16560 cacheid=xorg_cv_cc_flag__Wsequence_point
16561 if eval \${$cacheid+:} false; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 int i;
16567 int
16568 main ()
16569 {
16570
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 eval $cacheid=yes
16577 else
16578 eval $cacheid=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext \
16581 conftest$ac_exeext conftest.$ac_ext
16582 fi
16583
16584
16585 CFLAGS="$xorg_testset_save_CFLAGS"
16586
16587 eval supported=\$$cacheid
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16589 $as_echo "$supported" >&6; }
16590 if test "$supported" = "yes" ; then
16591 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16592 found="yes"
16593 fi
16594 fi
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610 xorg_testset_save_CFLAGS="$CFLAGS"
16611
16612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16615 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16616 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621 int i;
16622 _ACEOF
16623 if ac_fn_c_try_compile "$LINENO"; then :
16624 xorg_cv_cc_flag_unknown_warning_option=yes
16625 else
16626 xorg_cv_cc_flag_unknown_warning_option=no
16627 fi
16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16631 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16633 CFLAGS="$xorg_testset_save_CFLAGS"
16634 fi
16635
16636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639 fi
16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16642 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16643 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16648 int i;
16649 _ACEOF
16650 if ac_fn_c_try_compile "$LINENO"; then :
16651 xorg_cv_cc_flag_unused_command_line_argument=yes
16652 else
16653 xorg_cv_cc_flag_unused_command_line_argument=no
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656 fi
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16658 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16660 CFLAGS="$xorg_testset_save_CFLAGS"
16661 fi
16662
16663 found="no"
16664
16665 if test $found = "no" ; then
16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668 fi
16669
16670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16672 fi
16673
16674 CFLAGS="$CFLAGS -Wreturn-type"
16675
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16677 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16678 cacheid=xorg_cv_cc_flag__Wreturn_type
16679 if eval \${$cacheid+:} false; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16684 int i;
16685 int
16686 main ()
16687 {
16688
16689 ;
16690 return 0;
16691 }
16692 _ACEOF
16693 if ac_fn_c_try_link "$LINENO"; then :
16694 eval $cacheid=yes
16695 else
16696 eval $cacheid=no
16697 fi
16698 rm -f core conftest.err conftest.$ac_objext \
16699 conftest$ac_exeext conftest.$ac_ext
16700 fi
16701
16702
16703 CFLAGS="$xorg_testset_save_CFLAGS"
16704
16705 eval supported=\$$cacheid
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16707 $as_echo "$supported" >&6; }
16708 if test "$supported" = "yes" ; then
16709 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16710 found="yes"
16711 fi
16712 fi
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728 xorg_testset_save_CFLAGS="$CFLAGS"
16729
16730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16733 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16734 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 int i;
16740 _ACEOF
16741 if ac_fn_c_try_compile "$LINENO"; then :
16742 xorg_cv_cc_flag_unknown_warning_option=yes
16743 else
16744 xorg_cv_cc_flag_unknown_warning_option=no
16745 fi
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 fi
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16749 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16751 CFLAGS="$xorg_testset_save_CFLAGS"
16752 fi
16753
16754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16757 fi
16758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16760 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16761 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766 int i;
16767 _ACEOF
16768 if ac_fn_c_try_compile "$LINENO"; then :
16769 xorg_cv_cc_flag_unused_command_line_argument=yes
16770 else
16771 xorg_cv_cc_flag_unused_command_line_argument=no
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 fi
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16776 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16778 CFLAGS="$xorg_testset_save_CFLAGS"
16779 fi
16780
16781 found="no"
16782
16783 if test $found = "no" ; then
16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786 fi
16787
16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790 fi
16791
16792 CFLAGS="$CFLAGS -Wtrigraphs"
16793
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16795 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16796 cacheid=xorg_cv_cc_flag__Wtrigraphs
16797 if eval \${$cacheid+:} false; then :
16798 $as_echo_n "(cached) " >&6
16799 else
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 int i;
16803 int
16804 main ()
16805 {
16806
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_link "$LINENO"; then :
16812 eval $cacheid=yes
16813 else
16814 eval $cacheid=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext \
16817 conftest$ac_exeext conftest.$ac_ext
16818 fi
16819
16820
16821 CFLAGS="$xorg_testset_save_CFLAGS"
16822
16823 eval supported=\$$cacheid
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16825 $as_echo "$supported" >&6; }
16826 if test "$supported" = "yes" ; then
16827 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16828 found="yes"
16829 fi
16830 fi
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846 xorg_testset_save_CFLAGS="$CFLAGS"
16847
16848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 _ACEOF
16859 if ac_fn_c_try_compile "$LINENO"; then :
16860 xorg_cv_cc_flag_unknown_warning_option=yes
16861 else
16862 xorg_cv_cc_flag_unknown_warning_option=no
16863 fi
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16869 CFLAGS="$xorg_testset_save_CFLAGS"
16870 fi
16871
16872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16875 fi
16876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 int i;
16885 _ACEOF
16886 if ac_fn_c_try_compile "$LINENO"; then :
16887 xorg_cv_cc_flag_unused_command_line_argument=yes
16888 else
16889 xorg_cv_cc_flag_unused_command_line_argument=no
16890 fi
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892 fi
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16896 CFLAGS="$xorg_testset_save_CFLAGS"
16897 fi
16898
16899 found="no"
16900
16901 if test $found = "no" ; then
16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904 fi
16905
16906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908 fi
16909
16910 CFLAGS="$CFLAGS -Warray-bounds"
16911
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16913 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16914 cacheid=xorg_cv_cc_flag__Warray_bounds
16915 if eval \${$cacheid+:} false; then :
16916 $as_echo_n "(cached) " >&6
16917 else
16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h. */
16920 int i;
16921 int
16922 main ()
16923 {
16924
16925 ;
16926 return 0;
16927 }
16928 _ACEOF
16929 if ac_fn_c_try_link "$LINENO"; then :
16930 eval $cacheid=yes
16931 else
16932 eval $cacheid=no
16933 fi
16934 rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936 fi
16937
16938
16939 CFLAGS="$xorg_testset_save_CFLAGS"
16940
16941 eval supported=\$$cacheid
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16943 $as_echo "$supported" >&6; }
16944 if test "$supported" = "yes" ; then
16945 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16946 found="yes"
16947 fi
16948 fi
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964 xorg_testset_save_CFLAGS="$CFLAGS"
16965
16966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16971 $as_echo_n "(cached) " >&6
16972 else
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 int i;
16976 _ACEOF
16977 if ac_fn_c_try_compile "$LINENO"; then :
16978 xorg_cv_cc_flag_unknown_warning_option=yes
16979 else
16980 xorg_cv_cc_flag_unknown_warning_option=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 fi
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16987 CFLAGS="$xorg_testset_save_CFLAGS"
16988 fi
16989
16990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993 fi
16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17002 int i;
17003 _ACEOF
17004 if ac_fn_c_try_compile "$LINENO"; then :
17005 xorg_cv_cc_flag_unused_command_line_argument=yes
17006 else
17007 xorg_cv_cc_flag_unused_command_line_argument=no
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17014 CFLAGS="$xorg_testset_save_CFLAGS"
17015 fi
17016
17017 found="no"
17018
17019 if test $found = "no" ; then
17020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17022 fi
17023
17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026 fi
17027
17028 CFLAGS="$CFLAGS -Wwrite-strings"
17029
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17031 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17032 cacheid=xorg_cv_cc_flag__Wwrite_strings
17033 if eval \${$cacheid+:} false; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 int i;
17039 int
17040 main ()
17041 {
17042
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 if ac_fn_c_try_link "$LINENO"; then :
17048 eval $cacheid=yes
17049 else
17050 eval $cacheid=no
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054 fi
17055
17056
17057 CFLAGS="$xorg_testset_save_CFLAGS"
17058
17059 eval supported=\$$cacheid
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17061 $as_echo "$supported" >&6; }
17062 if test "$supported" = "yes" ; then
17063 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17064 found="yes"
17065 fi
17066 fi
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082 xorg_testset_save_CFLAGS="$CFLAGS"
17083
17084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17093 int i;
17094 _ACEOF
17095 if ac_fn_c_try_compile "$LINENO"; then :
17096 xorg_cv_cc_flag_unknown_warning_option=yes
17097 else
17098 xorg_cv_cc_flag_unknown_warning_option=no
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101 fi
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17105 CFLAGS="$xorg_testset_save_CFLAGS"
17106 fi
17107
17108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111 fi
17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17116 $as_echo_n "(cached) " >&6
17117 else
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120 int i;
17121 _ACEOF
17122 if ac_fn_c_try_compile "$LINENO"; then :
17123 xorg_cv_cc_flag_unused_command_line_argument=yes
17124 else
17125 xorg_cv_cc_flag_unused_command_line_argument=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128 fi
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17132 CFLAGS="$xorg_testset_save_CFLAGS"
17133 fi
17134
17135 found="no"
17136
17137 if test $found = "no" ; then
17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140 fi
17141
17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144 fi
17145
17146 CFLAGS="$CFLAGS -Waddress"
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17149 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17150 cacheid=xorg_cv_cc_flag__Waddress
17151 if eval \${$cacheid+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156 int i;
17157 int
17158 main ()
17159 {
17160
17161 ;
17162 return 0;
17163 }
17164 _ACEOF
17165 if ac_fn_c_try_link "$LINENO"; then :
17166 eval $cacheid=yes
17167 else
17168 eval $cacheid=no
17169 fi
17170 rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17172 fi
17173
17174
17175 CFLAGS="$xorg_testset_save_CFLAGS"
17176
17177 eval supported=\$$cacheid
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17179 $as_echo "$supported" >&6; }
17180 if test "$supported" = "yes" ; then
17181 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17182 found="yes"
17183 fi
17184 fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200 xorg_testset_save_CFLAGS="$CFLAGS"
17201
17202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17211 int i;
17212 _ACEOF
17213 if ac_fn_c_try_compile "$LINENO"; then :
17214 xorg_cv_cc_flag_unknown_warning_option=yes
17215 else
17216 xorg_cv_cc_flag_unknown_warning_option=no
17217 fi
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17223 CFLAGS="$xorg_testset_save_CFLAGS"
17224 fi
17225
17226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17229 fi
17230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17238 int i;
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241 xorg_cv_cc_flag_unused_command_line_argument=yes
17242 else
17243 xorg_cv_cc_flag_unused_command_line_argument=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17250 CFLAGS="$xorg_testset_save_CFLAGS"
17251 fi
17252
17253 found="no"
17254
17255 if test $found = "no" ; then
17256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17258 fi
17259
17260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17262 fi
17263
17264 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17265
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17267 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17268 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17269 if eval \${$cacheid+:} false; then :
17270 $as_echo_n "(cached) " >&6
17271 else
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274 int i;
17275 int
17276 main ()
17277 {
17278
17279 ;
17280 return 0;
17281 }
17282 _ACEOF
17283 if ac_fn_c_try_link "$LINENO"; then :
17284 eval $cacheid=yes
17285 else
17286 eval $cacheid=no
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17290 fi
17291
17292
17293 CFLAGS="$xorg_testset_save_CFLAGS"
17294
17295 eval supported=\$$cacheid
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17297 $as_echo "$supported" >&6; }
17298 if test "$supported" = "yes" ; then
17299 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17300 found="yes"
17301 fi
17302 fi
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318 xorg_testset_save_CFLAGS="$CFLAGS"
17319
17320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 int i;
17330 _ACEOF
17331 if ac_fn_c_try_compile "$LINENO"; then :
17332 xorg_cv_cc_flag_unknown_warning_option=yes
17333 else
17334 xorg_cv_cc_flag_unknown_warning_option=no
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 fi
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17341 CFLAGS="$xorg_testset_save_CFLAGS"
17342 fi
17343
17344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17347 fi
17348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17352 $as_echo_n "(cached) " >&6
17353 else
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 int i;
17357 _ACEOF
17358 if ac_fn_c_try_compile "$LINENO"; then :
17359 xorg_cv_cc_flag_unused_command_line_argument=yes
17360 else
17361 xorg_cv_cc_flag_unused_command_line_argument=no
17362 fi
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 fi
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17368 CFLAGS="$xorg_testset_save_CFLAGS"
17369 fi
17370
17371 found="no"
17372
17373 if test $found = "no" ; then
17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376 fi
17377
17378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17380 fi
17381
17382 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17385 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17386 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17387 if eval \${$cacheid+:} false; then :
17388 $as_echo_n "(cached) " >&6
17389 else
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 int i;
17393 int
17394 main ()
17395 {
17396
17397 ;
17398 return 0;
17399 }
17400 _ACEOF
17401 if ac_fn_c_try_link "$LINENO"; then :
17402 eval $cacheid=yes
17403 else
17404 eval $cacheid=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 fi
17409
17410
17411 CFLAGS="$xorg_testset_save_CFLAGS"
17412
17413 eval supported=\$$cacheid
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17415 $as_echo "$supported" >&6; }
17416 if test "$supported" = "yes" ; then
17417 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17418 found="yes"
17419 fi
17420 fi
17421
17422
17423 fi
17424
17425
17426
17427
17428
17429
17430
17431 CWARNFLAGS="$BASE_CFLAGS"
17432 if test "x$GCC" = xyes ; then
17433 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17434 fi
17435
17436
17437
17438
17439
17440
17441
17442
17443 # Check whether --enable-strict-compilation was given.
17444 if test "${enable_strict_compilation+set}" = set; then :
17445 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17446 else
17447 STRICT_COMPILE=no
17448 fi
17449
17450
17451
17452
17453
17454
17455 STRICT_CFLAGS=""
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469 xorg_testset_save_CFLAGS="$CFLAGS"
17470
17471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17475 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17476 $as_echo_n "(cached) " >&6
17477 else
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"; then :
17483 xorg_cv_cc_flag_unknown_warning_option=yes
17484 else
17485 xorg_cv_cc_flag_unknown_warning_option=no
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 fi
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17490 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17492 CFLAGS="$xorg_testset_save_CFLAGS"
17493 fi
17494
17495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17498 fi
17499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17501 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17502 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507 int i;
17508 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"; then :
17510 xorg_cv_cc_flag_unused_command_line_argument=yes
17511 else
17512 xorg_cv_cc_flag_unused_command_line_argument=no
17513 fi
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 fi
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17517 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17519 CFLAGS="$xorg_testset_save_CFLAGS"
17520 fi
17521
17522 found="no"
17523
17524 if test $found = "no" ; then
17525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17527 fi
17528
17529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17531 fi
17532
17533 CFLAGS="$CFLAGS -pedantic"
17534
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17536 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17537 cacheid=xorg_cv_cc_flag__pedantic
17538 if eval \${$cacheid+:} false; then :
17539 $as_echo_n "(cached) " >&6
17540 else
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543 int i;
17544 int
17545 main ()
17546 {
17547
17548 ;
17549 return 0;
17550 }
17551 _ACEOF
17552 if ac_fn_c_try_link "$LINENO"; then :
17553 eval $cacheid=yes
17554 else
17555 eval $cacheid=no
17556 fi
17557 rm -f core conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17559 fi
17560
17561
17562 CFLAGS="$xorg_testset_save_CFLAGS"
17563
17564 eval supported=\$$cacheid
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17566 $as_echo "$supported" >&6; }
17567 if test "$supported" = "yes" ; then
17568 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17569 found="yes"
17570 fi
17571 fi
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587 xorg_testset_save_CFLAGS="$CFLAGS"
17588
17589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17592 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17593 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17594 $as_echo_n "(cached) " >&6
17595 else
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 int i;
17599 _ACEOF
17600 if ac_fn_c_try_compile "$LINENO"; then :
17601 xorg_cv_cc_flag_unknown_warning_option=yes
17602 else
17603 xorg_cv_cc_flag_unknown_warning_option=no
17604 fi
17605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606 fi
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17608 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17610 CFLAGS="$xorg_testset_save_CFLAGS"
17611 fi
17612
17613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17616 fi
17617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17619 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17620 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 int i;
17626 _ACEOF
17627 if ac_fn_c_try_compile "$LINENO"; then :
17628 xorg_cv_cc_flag_unused_command_line_argument=yes
17629 else
17630 xorg_cv_cc_flag_unused_command_line_argument=no
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17635 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17637 CFLAGS="$xorg_testset_save_CFLAGS"
17638 fi
17639
17640 found="no"
17641
17642 if test $found = "no" ; then
17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645 fi
17646
17647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649 fi
17650
17651 CFLAGS="$CFLAGS -Werror"
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17654 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17655 cacheid=xorg_cv_cc_flag__Werror
17656 if eval \${$cacheid+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17661 int i;
17662 int
17663 main ()
17664 {
17665
17666 ;
17667 return 0;
17668 }
17669 _ACEOF
17670 if ac_fn_c_try_link "$LINENO"; then :
17671 eval $cacheid=yes
17672 else
17673 eval $cacheid=no
17674 fi
17675 rm -f core conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677 fi
17678
17679
17680 CFLAGS="$xorg_testset_save_CFLAGS"
17681
17682 eval supported=\$$cacheid
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17684 $as_echo "$supported" >&6; }
17685 if test "$supported" = "yes" ; then
17686 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17687 found="yes"
17688 fi
17689 fi
17690
17691 if test $found = "no" ; then
17692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17694 fi
17695
17696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17698 fi
17699
17700 CFLAGS="$CFLAGS -errwarn"
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17703 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17704 cacheid=xorg_cv_cc_flag__errwarn
17705 if eval \${$cacheid+:} false; then :
17706 $as_echo_n "(cached) " >&6
17707 else
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 int i;
17711 int
17712 main ()
17713 {
17714
17715 ;
17716 return 0;
17717 }
17718 _ACEOF
17719 if ac_fn_c_try_link "$LINENO"; then :
17720 eval $cacheid=yes
17721 else
17722 eval $cacheid=no
17723 fi
17724 rm -f core conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
17726 fi
17727
17728
17729 CFLAGS="$xorg_testset_save_CFLAGS"
17730
17731 eval supported=\$$cacheid
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17733 $as_echo "$supported" >&6; }
17734 if test "$supported" = "yes" ; then
17735 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17736 found="yes"
17737 fi
17738 fi
17739
17740
17741
17742 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17743 # activate it with -Werror, so we add it here explicitly.
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757 xorg_testset_save_CFLAGS="$CFLAGS"
17758
17759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17762 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17763 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17764 $as_echo_n "(cached) " >&6
17765 else
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17768 int i;
17769 _ACEOF
17770 if ac_fn_c_try_compile "$LINENO"; then :
17771 xorg_cv_cc_flag_unknown_warning_option=yes
17772 else
17773 xorg_cv_cc_flag_unknown_warning_option=no
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17778 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17780 CFLAGS="$xorg_testset_save_CFLAGS"
17781 fi
17782
17783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786 fi
17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17789 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17790 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17791 $as_echo_n "(cached) " >&6
17792 else
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 int i;
17796 _ACEOF
17797 if ac_fn_c_try_compile "$LINENO"; then :
17798 xorg_cv_cc_flag_unused_command_line_argument=yes
17799 else
17800 xorg_cv_cc_flag_unused_command_line_argument=no
17801 fi
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17805 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17807 CFLAGS="$xorg_testset_save_CFLAGS"
17808 fi
17809
17810 found="no"
17811
17812 if test $found = "no" ; then
17813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17815 fi
17816
17817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17819 fi
17820
17821 CFLAGS="$CFLAGS -Werror=attributes"
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17824 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17825 cacheid=xorg_cv_cc_flag__Werror_attributes
17826 if eval \${$cacheid+:} false; then :
17827 $as_echo_n "(cached) " >&6
17828 else
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17831 int i;
17832 int
17833 main ()
17834 {
17835
17836 ;
17837 return 0;
17838 }
17839 _ACEOF
17840 if ac_fn_c_try_link "$LINENO"; then :
17841 eval $cacheid=yes
17842 else
17843 eval $cacheid=no
17844 fi
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 fi
17848
17849
17850 CFLAGS="$xorg_testset_save_CFLAGS"
17851
17852 eval supported=\$$cacheid
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17854 $as_echo "$supported" >&6; }
17855 if test "$supported" = "yes" ; then
17856 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17857 found="yes"
17858 fi
17859 fi
17860
17861
17862
17863 if test "x$STRICT_COMPILE" = "xyes"; then
17864 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17865 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17866 fi
17867
17868
17869
17870
17871
17872
17873 cat >>confdefs.h <<_ACEOF
17874 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17875 _ACEOF
17876
17877 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17878 if test "x$PVM" = "x"; then
17879 PVM="0"
17880 fi
17881
17882 cat >>confdefs.h <<_ACEOF
17883 #define PACKAGE_VERSION_MINOR $PVM
17884 _ACEOF
17885
17886 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17887 if test "x$PVP" = "x"; then
17888 PVP="0"
17889 fi
17890
17891 cat >>confdefs.h <<_ACEOF
17892 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17893 _ACEOF
17894
17895
17896
17897 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17898 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17899 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17900 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17901
17902
17903
17904
17905 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17906 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17907 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17908 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17909 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17910
17911
17912
17913
17914
17915
17916 if test x$APP_MAN_SUFFIX = x ; then
17917 APP_MAN_SUFFIX=1
17918 fi
17919 if test x$APP_MAN_DIR = x ; then
17920 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17921 fi
17922
17923 if test x$LIB_MAN_SUFFIX = x ; then
17924 LIB_MAN_SUFFIX=3
17925 fi
17926 if test x$LIB_MAN_DIR = x ; then
17927 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17928 fi
17929
17930 if test x$FILE_MAN_SUFFIX = x ; then
17931 case $host_os in
17932 solaris*) FILE_MAN_SUFFIX=4 ;;
17933 *) FILE_MAN_SUFFIX=5 ;;
17934 esac
17935 fi
17936 if test x$FILE_MAN_DIR = x ; then
17937 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17938 fi
17939
17940 if test x$MISC_MAN_SUFFIX = x ; then
17941 case $host_os in
17942 solaris*) MISC_MAN_SUFFIX=5 ;;
17943 *) MISC_MAN_SUFFIX=7 ;;
17944 esac
17945 fi
17946 if test x$MISC_MAN_DIR = x ; then
17947 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17948 fi
17949
17950 if test x$DRIVER_MAN_SUFFIX = x ; then
17951 case $host_os in
17952 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17953 *) DRIVER_MAN_SUFFIX=4 ;;
17954 esac
17955 fi
17956 if test x$DRIVER_MAN_DIR = x ; then
17957 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17958 fi
17959
17960 if test x$ADMIN_MAN_SUFFIX = x ; then
17961 case $host_os in
17962 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17963 *) ADMIN_MAN_SUFFIX=8 ;;
17964 esac
17965 fi
17966 if test x$ADMIN_MAN_DIR = x ; then
17967 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17968 fi
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 XORG_MAN_PAGE="X Version 11"
17985
17986 MAN_SUBSTS="\
17987 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17988 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17989 -e 's|__xservername__|Xorg|g' \
17990 -e 's|__xconfigfile__|xorg.conf|g' \
17991 -e 's|__projectroot__|\$(prefix)|g' \
17992 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17993 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17994 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17995 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17996 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17997 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17998 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17999
18000
18001
18002 # Check whether --enable-silent-rules was given.
18003 if test "${enable_silent_rules+set}" = set; then :
18004 enableval=$enable_silent_rules;
18005 fi
18006
18007 case $enable_silent_rules in # (((
18008 yes) AM_DEFAULT_VERBOSITY=0;;
18009 no) AM_DEFAULT_VERBOSITY=1;;
18010 *) AM_DEFAULT_VERBOSITY=0;;
18011 esac
18012 am_make=${MAKE-make}
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18014 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18015 if ${am_cv_make_support_nested_variables+:} false; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 if $as_echo 'TRUE=$(BAR$(V))
18019 BAR0=false
18020 BAR1=true
18021 V=1
18022 am__doit:
18023 @$(TRUE)
18024 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18025 am_cv_make_support_nested_variables=yes
18026 else
18027 am_cv_make_support_nested_variables=no
18028 fi
18029 fi
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18031 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18032 if test $am_cv_make_support_nested_variables = yes; then
18033 AM_V='$(V)'
18034 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18035 else
18036 AM_V=$AM_DEFAULT_VERBOSITY
18037 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18038 fi
18039 AM_BACKSLASH='\'
18040
18041
18042
18043 # Check whether --enable-malloc0returnsnull was given.
18044 if test "${enable_malloc0returnsnull+set}" = set; then :
18045 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18046 else
18047 MALLOC_ZERO_RETURNS_NULL=auto
18048 fi
18049
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18052 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18053 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18054 if ${xorg_cv_malloc0_returns_null+:} false; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 if test "$cross_compiling" = yes; then :
18058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18060 as_fn_error $? "cannot run test program while cross compiling
18061 See \`config.log' for more details" "$LINENO" 5; }
18062 else
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065
18066 #include <stdlib.h>
18067
18068 int
18069 main ()
18070 {
18071
18072 char *m0, *r0, *c0, *p;
18073 m0 = malloc(0);
18074 p = malloc(10);
18075 r0 = realloc(p,0);
18076 c0 = calloc(0,10);
18077 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18078
18079 ;
18080 return 0;
18081 }
18082 _ACEOF
18083 if ac_fn_c_try_run "$LINENO"; then :
18084 xorg_cv_malloc0_returns_null=yes
18085 else
18086 xorg_cv_malloc0_returns_null=no
18087 fi
18088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18089 conftest.$ac_objext conftest.beam conftest.$ac_ext
18090 fi
18091
18092 fi
18093
18094 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18097 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18098
18099 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18100 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18101 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18102 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18103 else
18104 MALLOC_ZERO_CFLAGS=""
18105 XMALLOC_ZERO_CFLAGS=""
18106 XTMALLOC_ZERO_CFLAGS=""
18107 fi
18108
18109
18110
18111
18112
18113
18114 # Obtain compiler/linker options for depedencies
18115
18116 pkg_failed=no
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5
18118 $as_echo_n "checking for FS... " >&6; }
18119
18120 if test -n "$FS_CFLAGS"; then
18121 pkg_cv_FS_CFLAGS="$FS_CFLAGS"
18122 elif test -n "$PKG_CONFIG"; then
18123 if test -n "$PKG_CONFIG" && \
18124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
18125 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
18126 ac_status=$?
18127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18128 test $ac_status = 0; }; then
18129 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
18130 else
18131 pkg_failed=yes
18132 fi
18133 else
18134 pkg_failed=untried
18135 fi
18136 if test -n "$FS_LIBS"; then
18137 pkg_cv_FS_LIBS="$FS_LIBS"
18138 elif test -n "$PKG_CONFIG"; then
18139 if test -n "$PKG_CONFIG" && \
18140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5
18141 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5
18142 ac_status=$?
18143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18144 test $ac_status = 0; }; then
18145 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null`
18146 else
18147 pkg_failed=yes
18148 fi
18149 else
18150 pkg_failed=untried
18151 fi
18152
18153
18154
18155 if test $pkg_failed = yes; then
18156
18157 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18158 _pkg_short_errors_supported=yes
18159 else
18160 _pkg_short_errors_supported=no
18161 fi
18162 if test $_pkg_short_errors_supported = yes; then
18163 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
18164 else
18165 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1`
18166 fi
18167 # Put the nasty error message in config.log where it belongs
18168 echo "$FS_PKG_ERRORS" >&5
18169
18170 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met:
18171
18172 $FS_PKG_ERRORS
18173
18174 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18175 installed software in a non-standard prefix.
18176
18177 Alternatively, you may set the environment variables FS_CFLAGS
18178 and FS_LIBS to avoid the need to call pkg-config.
18179 See the pkg-config man page for more details.
18180 " "$LINENO" 5
18181 elif test $pkg_failed = untried; then
18182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18184 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18185 is in your PATH or set the PKG_CONFIG environment variable to the full
18186 path to pkg-config.
18187
18188 Alternatively, you may set the environment variables FS_CFLAGS
18189 and FS_LIBS to avoid the need to call pkg-config.
18190 See the pkg-config man page for more details.
18191
18192 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18193 See \`config.log' for more details" "$LINENO" 5; }
18194 else
18195 FS_CFLAGS=$pkg_cv_FS_CFLAGS
18196 FS_LIBS=$pkg_cv_FS_LIBS
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18198 $as_echo "yes" >&6; }
18199 :
18200 fi
18201
18202 # Find needed libraries for TCP sockets (pre-pended in $LIBS)
18203
18204
18205 case $host_os in
18206 mingw*) unixdef="no" ;;
18207 *) unixdef="yes" ;;
18208 esac
18209 # Check whether --enable-unix-transport was given.
18210 if test "${enable_unix_transport+set}" = set; then :
18211 enableval=$enable_unix_transport; UNIXCONN=$enableval
18212 else
18213 UNIXCONN=$unixdef
18214 fi
18215
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18217 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18218 if test "$UNIXCONN" = "yes"; then
18219
18220 $as_echo "#define UNIXCONN 1" >>confdefs.h
18221
18222 fi
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18224 $as_echo "$UNIXCONN" >&6; }
18225 # Check whether --enable-tcp-transport was given.
18226 if test "${enable_tcp_transport+set}" = set; then :
18227 enableval=$enable_tcp_transport; TCPCONN=$enableval
18228 else
18229 TCPCONN=yes
18230 fi
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18233 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18235 $as_echo "$TCPCONN" >&6; }
18236 if test "$TCPCONN" = "yes"; then
18237
18238 $as_echo "#define TCPCONN 1" >>confdefs.h
18239
18240
18241 # SVR4 hides these in libraries other than libc
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18243 $as_echo_n "checking for library containing socket... " >&6; }
18244 if ${ac_cv_search_socket+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 ac_func_search_save_LIBS=$LIBS
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char socket ();
18258 int
18259 main ()
18260 {
18261 return socket ();
18262 ;
18263 return 0;
18264 }
18265 _ACEOF
18266 for ac_lib in '' socket; do
18267 if test -z "$ac_lib"; then
18268 ac_res="none required"
18269 else
18270 ac_res=-l$ac_lib
18271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18272 fi
18273 if ac_fn_c_try_link "$LINENO"; then :
18274 ac_cv_search_socket=$ac_res
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext
18278 if ${ac_cv_search_socket+:} false; then :
18279 break
18280 fi
18281 done
18282 if ${ac_cv_search_socket+:} false; then :
18283
18284 else
18285 ac_cv_search_socket=no
18286 fi
18287 rm conftest.$ac_ext
18288 LIBS=$ac_func_search_save_LIBS
18289 fi
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18291 $as_echo "$ac_cv_search_socket" >&6; }
18292 ac_res=$ac_cv_search_socket
18293 if test "$ac_res" != no; then :
18294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18295
18296 fi
18297
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18299 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18300 if ${ac_cv_search_gethostbyname+:} false; then :
18301 $as_echo_n "(cached) " >&6
18302 else
18303 ac_func_search_save_LIBS=$LIBS
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char gethostbyname ();
18314 int
18315 main ()
18316 {
18317 return gethostbyname ();
18318 ;
18319 return 0;
18320 }
18321 _ACEOF
18322 for ac_lib in '' nsl; do
18323 if test -z "$ac_lib"; then
18324 ac_res="none required"
18325 else
18326 ac_res=-l$ac_lib
18327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18328 fi
18329 if ac_fn_c_try_link "$LINENO"; then :
18330 ac_cv_search_gethostbyname=$ac_res
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext
18334 if ${ac_cv_search_gethostbyname+:} false; then :
18335 break
18336 fi
18337 done
18338 if ${ac_cv_search_gethostbyname+:} false; then :
18339
18340 else
18341 ac_cv_search_gethostbyname=no
18342 fi
18343 rm conftest.$ac_ext
18344 LIBS=$ac_func_search_save_LIBS
18345 fi
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18347 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18348 ac_res=$ac_cv_search_gethostbyname
18349 if test "$ac_res" != no; then :
18350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18351
18352 fi
18353
18354 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18356 $as_echo_n "checking for main in -lws2_32... " >&6; }
18357 if ${ac_cv_lib_ws2_32_main+:} false; then :
18358 $as_echo_n "(cached) " >&6
18359 else
18360 ac_check_lib_save_LIBS=$LIBS
18361 LIBS="-lws2_32 $LIBS"
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364
18365
18366 int
18367 main ()
18368 {
18369 return main ();
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_lib_ws2_32_main=yes
18376 else
18377 ac_cv_lib_ws2_32_main=no
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18384 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18385 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18386 cat >>confdefs.h <<_ACEOF
18387 #define HAVE_LIBWS2_32 1
18388 _ACEOF
18389
18390 LIBS="-lws2_32 $LIBS"
18391
18392 fi
18393
18394 fi
18395
18396 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18397 # Check whether --enable-ipv6 was given.
18398 if test "${enable_ipv6+set}" = set; then :
18399 enableval=$enable_ipv6; IPV6CONN=$enableval
18400 else
18401 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18402 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18403 IPV6CONN=yes
18404 else
18405 IPV6CONN=no
18406 fi
18407
18408 fi
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18411 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18412 if test "$IPV6CONN" = "yes"; then
18413
18414 $as_echo "#define IPv6 1" >>confdefs.h
18415
18416 fi
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18418 $as_echo "$IPV6CONN" >&6; }
18419
18420 # 4.3BSD-Reno added a new member to struct sockaddr_in
18421 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18422 #include <sys/types.h>
18423 #include <sys/socket.h>
18424 #include <netinet/in.h>
18425
18426 "
18427 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18428
18429 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18430
18431 fi
18432
18433
18434 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18435 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18436 $ac_includes_default
18437 #include <sys/socket.h>
18438 "
18439 if test "x$ac_cv_type_socklen_t" = xyes; then :
18440
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_SOCKLEN_T 1
18443 _ACEOF
18444
18445
18446 fi
18447
18448
18449 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
18450 # _XOPEN_SOURCE to get it (such as on Solaris)
18451 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18452 $ac_includes_default
18453 #include <sys/socket.h>
18454
18455 "
18456 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18457
18458 fi
18459
18460 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
18461 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
18462 unset ac_cv_member_struct_msghdr_msg_control
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
18464 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
18465 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18466 #define _XOPEN_SOURCE 600
18467 $ac_includes_default
18468 #include <sys/socket.h>
18469
18470 "
18471 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18472
18473 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
18474
18475
18476 fi
18477
18478 fi
18479 # If that didn't work, fall back to XPG5/UNIX98 with C89
18480 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
18481 unset ac_cv_member_struct_msghdr_msg_control
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
18483 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
18484 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
18485 #define _XOPEN_SOURCE 500
18486 $ac_includes_default
18487 #include <sys/socket.h>
18488
18489 "
18490 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
18491
18492 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
18493
18494
18495 fi
18496
18497 fi
18498
18499
18500
18501 fi
18502 case $host_os in
18503 solaris*|sco*|sysv4*) localdef="yes" ;;
18504 *) localdef="no" ;;
18505 esac
18506 # Check whether --enable-local-transport was given.
18507 if test "${enable_local_transport+set}" = set; then :
18508 enableval=$enable_local_transport; LOCALCONN=$enableval
18509 else
18510 LOCALCONN=$localdef
18511 fi
18512
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18514 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18516 $as_echo "$LOCALCONN" >&6; }
18517 if test "$LOCALCONN" = "yes"; then
18518
18519 $as_echo "#define LOCALCONN 1" >>confdefs.h
18520
18521 fi
18522
18523
18524
18525 # Checks for library functions.
18526 for ac_func in strlcpy
18527 do :
18528 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18529 if test "x$ac_cv_func_strlcpy" = xyes; then :
18530 cat >>confdefs.h <<_ACEOF
18531 #define HAVE_STRLCPY 1
18532 _ACEOF
18533
18534 fi
18535 done
18536
18537
18538 # Allow checking code with lint, sparse, etc.
18539
18540
18541
18542
18543
18544 # Check whether --with-lint was given.
18545 if test "${with_lint+set}" = set; then :
18546 withval=$with_lint; use_lint=$withval
18547 else
18548 use_lint=no
18549 fi
18550
18551
18552 # Obtain platform specific info like program name and options
18553 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18554 case $host_os in
18555 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18556 lint_name=splint
18557 lint_options="-badflag"
18558 ;;
18559 *freebsd* | *netbsd*)
18560 lint_name=lint
18561 lint_options="-u -b"
18562 ;;
18563 *solaris*)
18564 lint_name=lint
18565 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18566 ;;
18567 esac
18568
18569 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18570 if test "x$use_lint" = x"yes" ; then
18571 # Extract the first word of "$lint_name", so it can be a program name with args.
18572 set dummy $lint_name; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574 $as_echo_n "checking for $ac_word... " >&6; }
18575 if ${ac_cv_path_LINT+:} false; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 case $LINT in
18579 [\\/]* | ?:[\\/]*)
18580 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18581 ;;
18582 *)
18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 break 2
18593 fi
18594 done
18595 done
18596 IFS=$as_save_IFS
18597
18598 ;;
18599 esac
18600 fi
18601 LINT=$ac_cv_path_LINT
18602 if test -n "$LINT"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18604 $as_echo "$LINT" >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 fi
18609
18610
18611 if test "x$LINT" = "x"; then
18612 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18613 fi
18614 elif test "x$use_lint" = x"no" ; then
18615 if test "x$LINT" != "x"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18617 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18618 fi
18619 else
18620 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18621 fi
18622
18623 # User supplied flags override default flags
18624 if test "x$LINT_FLAGS" != "x"; then
18625 lint_options=$LINT_FLAGS
18626 fi
18627
18628 LINT_FLAGS=$lint_options
18629
18630 if test "x$LINT" != x; then
18631 LINT_TRUE=
18632 LINT_FALSE='#'
18633 else
18634 LINT_TRUE='#'
18635 LINT_FALSE=
18636 fi
18637
18638
18639
18640
18641
18642 # Check whether --enable-lint-library was given.
18643 if test "${enable_lint_library+set}" = set; then :
18644 enableval=$enable_lint_library; make_lint_lib=$enableval
18645 else
18646 make_lint_lib=no
18647 fi
18648
18649
18650 if test "x$make_lint_lib" = x"yes" ; then
18651 LINTLIB=llib-lFS.ln
18652 if test "x$LINT" = "x"; then
18653 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18654 fi
18655 elif test "x$make_lint_lib" != x"no" ; then
18656 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18657 fi
18658
18659
18660 if test x$make_lint_lib != xno; then
18661 MAKE_LINT_LIB_TRUE=
18662 MAKE_LINT_LIB_FALSE='#'
18663 else
18664 MAKE_LINT_LIB_TRUE='#'
18665 MAKE_LINT_LIB_FALSE=
18666 fi
18667
18668
18669
18670
18671 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc"
18672
18673 cat >confcache <<\_ACEOF
18674 # This file is a shell script that caches the results of configure
18675 # tests run on this system so they can be shared between configure
18676 # scripts and configure runs, see configure's option --config-cache.
18677 # It is not useful on other systems. If it contains results you don't
18678 # want to keep, you may remove or edit it.
18679 #
18680 # config.status only pays attention to the cache file if you give it
18681 # the --recheck option to rerun configure.
18682 #
18683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18685 # following values.
18686
18687 _ACEOF
18688
18689 # The following way of writing the cache mishandles newlines in values,
18690 # but we know of no workaround that is simple, portable, and efficient.
18691 # So, we kill variables containing newlines.
18692 # Ultrix sh set writes to stderr and can't be redirected directly,
18693 # and sets the high bit in the cache file unless we assign to the vars.
18694 (
18695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18696 eval ac_val=\$$ac_var
18697 case $ac_val in #(
18698 *${as_nl}*)
18699 case $ac_var in #(
18700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18702 esac
18703 case $ac_var in #(
18704 _ | IFS | as_nl) ;; #(
18705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18706 *) { eval $ac_var=; unset $ac_var;} ;;
18707 esac ;;
18708 esac
18709 done
18710
18711 (set) 2>&1 |
18712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18713 *${as_nl}ac_space=\ *)
18714 # `set' does not quote correctly, so add quotes: double-quote
18715 # substitution turns \\\\ into \\, and sed turns \\ into \.
18716 sed -n \
18717 "s/'/'\\\\''/g;
18718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18719 ;; #(
18720 *)
18721 # `set' quotes correctly as required by POSIX, so do not add quotes.
18722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18723 ;;
18724 esac |
18725 sort
18726 ) |
18727 sed '
18728 /^ac_cv_env_/b end
18729 t clear
18730 :clear
18731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18732 t end
18733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18734 :end' >>confcache
18735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18736 if test -w "$cache_file"; then
18737 if test "x$cache_file" != "x/dev/null"; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18739 $as_echo "$as_me: updating cache $cache_file" >&6;}
18740 if test ! -f "$cache_file" || test -h "$cache_file"; then
18741 cat confcache >"$cache_file"
18742 else
18743 case $cache_file in #(
18744 */* | ?:*)
18745 mv -f confcache "$cache_file"$$ &&
18746 mv -f "$cache_file"$$ "$cache_file" ;; #(
18747 *)
18748 mv -f confcache "$cache_file" ;;
18749 esac
18750 fi
18751 fi
18752 else
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18755 fi
18756 fi
18757 rm -f confcache
18758
18759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18760 # Let make expand exec_prefix.
18761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18762
18763 DEFS=-DHAVE_CONFIG_H
18764
18765 ac_libobjs=
18766 ac_ltlibobjs=
18767 U=
18768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18769 # 1. Remove the extension, and $U if already installed.
18770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18773 # will be set to the directory where LIBOBJS objects are built.
18774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18776 done
18777 LIBOBJS=$ac_libobjs
18778
18779 LTLIBOBJS=$ac_ltlibobjs
18780
18781
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18783 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18784 if test -n "$am_sleep_pid"; then
18785 # Hide warnings about reused PIDs.
18786 wait $am_sleep_pid 2>/dev/null
18787 fi
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18789 $as_echo "done" >&6; }
18790 if test -n "$EXEEXT"; then
18791 am__EXEEXT_TRUE=
18792 am__EXEEXT_FALSE='#'
18793 else
18794 am__EXEEXT_TRUE='#'
18795 am__EXEEXT_FALSE=
18796 fi
18797
18798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18799 as_fn_error $? "conditional \"AMDEP\" was never defined.
18800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18801 fi
18802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18805 fi
18806 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18807 as_fn_error $? "conditional \"LINT\" was never defined.
18808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18809 fi
18810 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18811 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18813 fi
18814
18815 : "${CONFIG_STATUS=./config.status}"
18816 ac_write_fail=0
18817 ac_clean_files_save=$ac_clean_files
18818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18821 as_write_fail=0
18822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18823 #! $SHELL
18824 # Generated by $as_me.
18825 # Run this file to recreate the current configuration.
18826 # Compiler output produced by configure, useful for debugging
18827 # configure, is in config.log if it exists.
18828
18829 debug=false
18830 ac_cs_recheck=false
18831 ac_cs_silent=false
18832
18833 SHELL=\${CONFIG_SHELL-$SHELL}
18834 export SHELL
18835 _ASEOF
18836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18837 ## -------------------- ##
18838 ## M4sh Initialization. ##
18839 ## -------------------- ##
18840
18841 # Be more Bourne compatible
18842 DUALCASE=1; export DUALCASE # for MKS sh
18843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18844 emulate sh
18845 NULLCMD=:
18846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18847 # is contrary to our usage. Disable this feature.
18848 alias -g '${1+"$@"}'='"$@"'
18849 setopt NO_GLOB_SUBST
18850 else
18851 case `(set -o) 2>/dev/null` in #(
18852 *posix*) :
18853 set -o posix ;; #(
18854 *) :
18855 ;;
18856 esac
18857 fi
18858
18859
18860 as_nl='
18861 '
18862 export as_nl
18863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18867 # Prefer a ksh shell builtin over an external printf program on Solaris,
18868 # but without wasting forks for bash or zsh.
18869 if test -z "$BASH_VERSION$ZSH_VERSION" \
18870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18871 as_echo='print -r --'
18872 as_echo_n='print -rn --'
18873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18874 as_echo='printf %s\n'
18875 as_echo_n='printf %s'
18876 else
18877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18879 as_echo_n='/usr/ucb/echo -n'
18880 else
18881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18882 as_echo_n_body='eval
18883 arg=$1;
18884 case $arg in #(
18885 *"$as_nl"*)
18886 expr "X$arg" : "X\\(.*\\)$as_nl";
18887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18888 esac;
18889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18890 '
18891 export as_echo_n_body
18892 as_echo_n='sh -c $as_echo_n_body as_echo'
18893 fi
18894 export as_echo_body
18895 as_echo='sh -c $as_echo_body as_echo'
18896 fi
18897
18898 # The user is always right.
18899 if test "${PATH_SEPARATOR+set}" != set; then
18900 PATH_SEPARATOR=:
18901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18903 PATH_SEPARATOR=';'
18904 }
18905 fi
18906
18907
18908 # IFS
18909 # We need space, tab and new line, in precisely that order. Quoting is
18910 # there to prevent editors from complaining about space-tab.
18911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18912 # splitting by setting IFS to empty value.)
18913 IFS=" "" $as_nl"
18914
18915 # Find who we are. Look in the path if we contain no directory separator.
18916 as_myself=
18917 case $0 in #((
18918 *[\\/]* ) as_myself=$0 ;;
18919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18920 for as_dir in $PATH
18921 do
18922 IFS=$as_save_IFS
18923 test -z "$as_dir" && as_dir=.
18924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18925 done
18926 IFS=$as_save_IFS
18927
18928 ;;
18929 esac
18930 # We did not find ourselves, most probably we were run as `sh COMMAND'
18931 # in which case we are not to be found in the path.
18932 if test "x$as_myself" = x; then
18933 as_myself=$0
18934 fi
18935 if test ! -f "$as_myself"; then
18936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18937 exit 1
18938 fi
18939
18940 # Unset variables that we do not need and which cause bugs (e.g. in
18941 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18942 # suppresses any "Segmentation fault" message there. '((' could
18943 # trigger a bug in pdksh 5.2.14.
18944 for as_var in BASH_ENV ENV MAIL MAILPATH
18945 do eval test x\${$as_var+set} = xset \
18946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18947 done
18948 PS1='$ '
18949 PS2='> '
18950 PS4='+ '
18951
18952 # NLS nuisances.
18953 LC_ALL=C
18954 export LC_ALL
18955 LANGUAGE=C
18956 export LANGUAGE
18957
18958 # CDPATH.
18959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18960
18961
18962 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18963 # ----------------------------------------
18964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18966 # script with STATUS, using 1 if that was 0.
18967 as_fn_error ()
18968 {
18969 as_status=$1; test $as_status -eq 0 && as_status=1
18970 if test "$4"; then
18971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18973 fi
18974 $as_echo "$as_me: error: $2" >&2
18975 as_fn_exit $as_status
18976 } # as_fn_error
18977
18978
18979 # as_fn_set_status STATUS
18980 # -----------------------
18981 # Set $? to STATUS, without forking.
18982 as_fn_set_status ()
18983 {
18984 return $1
18985 } # as_fn_set_status
18986
18987 # as_fn_exit STATUS
18988 # -----------------
18989 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18990 as_fn_exit ()
18991 {
18992 set +e
18993 as_fn_set_status $1
18994 exit $1
18995 } # as_fn_exit
18996
18997 # as_fn_unset VAR
18998 # ---------------
18999 # Portably unset VAR.
19000 as_fn_unset ()
19001 {
19002 { eval $1=; unset $1;}
19003 }
19004 as_unset=as_fn_unset
19005 # as_fn_append VAR VALUE
19006 # ----------------------
19007 # Append the text in VALUE to the end of the definition contained in VAR. Take
19008 # advantage of any shell optimizations that allow amortized linear growth over
19009 # repeated appends, instead of the typical quadratic growth present in naive
19010 # implementations.
19011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19012 eval 'as_fn_append ()
19013 {
19014 eval $1+=\$2
19015 }'
19016 else
19017 as_fn_append ()
19018 {
19019 eval $1=\$$1\$2
19020 }
19021 fi # as_fn_append
19022
19023 # as_fn_arith ARG...
19024 # ------------------
19025 # Perform arithmetic evaluation on the ARGs, and store the result in the
19026 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19027 # must be portable across $(()) and expr.
19028 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19029 eval 'as_fn_arith ()
19030 {
19031 as_val=$(( $* ))
19032 }'
19033 else
19034 as_fn_arith ()
19035 {
19036 as_val=`expr "$@" || test $? -eq 1`
19037 }
19038 fi # as_fn_arith
19039
19040
19041 if expr a : '\(a\)' >/dev/null 2>&1 &&
19042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19043 as_expr=expr
19044 else
19045 as_expr=false
19046 fi
19047
19048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19049 as_basename=basename
19050 else
19051 as_basename=false
19052 fi
19053
19054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19055 as_dirname=dirname
19056 else
19057 as_dirname=false
19058 fi
19059
19060 as_me=`$as_basename -- "$0" ||
19061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19062 X"$0" : 'X\(//\)$' \| \
19063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19064 $as_echo X/"$0" |
19065 sed '/^.*\/\([^/][^/]*\)\/*$/{
19066 s//\1/
19067 q
19068 }
19069 /^X\/\(\/\/\)$/{
19070 s//\1/
19071 q
19072 }
19073 /^X\/\(\/\).*/{
19074 s//\1/
19075 q
19076 }
19077 s/.*/./; q'`
19078
19079 # Avoid depending upon Character Ranges.
19080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19083 as_cr_digits='0123456789'
19084 as_cr_alnum=$as_cr_Letters$as_cr_digits
19085
19086 ECHO_C= ECHO_N= ECHO_T=
19087 case `echo -n x` in #(((((
19088 -n*)
19089 case `echo 'xy\c'` in
19090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19091 xy) ECHO_C='\c';;
19092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19093 ECHO_T=' ';;
19094 esac;;
19095 *)
19096 ECHO_N='-n';;
19097 esac
19098
19099 rm -f conf$$ conf$$.exe conf$$.file
19100 if test -d conf$$.dir; then
19101 rm -f conf$$.dir/conf$$.file
19102 else
19103 rm -f conf$$.dir
19104 mkdir conf$$.dir 2>/dev/null
19105 fi
19106 if (echo >conf$$.file) 2>/dev/null; then
19107 if ln -s conf$$.file conf$$ 2>/dev/null; then
19108 as_ln_s='ln -s'
19109 # ... but there are two gotchas:
19110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19112 # In both cases, we have to default to `cp -pR'.
19113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19114 as_ln_s='cp -pR'
19115 elif ln conf$$.file conf$$ 2>/dev/null; then
19116 as_ln_s=ln
19117 else
19118 as_ln_s='cp -pR'
19119 fi
19120 else
19121 as_ln_s='cp -pR'
19122 fi
19123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19124 rmdir conf$$.dir 2>/dev/null
19125
19126
19127 # as_fn_mkdir_p
19128 # -------------
19129 # Create "$as_dir" as a directory, including parents if necessary.
19130 as_fn_mkdir_p ()
19131 {
19132
19133 case $as_dir in #(
19134 -*) as_dir=./$as_dir;;
19135 esac
19136 test -d "$as_dir" || eval $as_mkdir_p || {
19137 as_dirs=
19138 while :; do
19139 case $as_dir in #(
19140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19141 *) as_qdir=$as_dir;;
19142 esac
19143 as_dirs="'$as_qdir' $as_dirs"
19144 as_dir=`$as_dirname -- "$as_dir" ||
19145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19146 X"$as_dir" : 'X\(//\)[^/]' \| \
19147 X"$as_dir" : 'X\(//\)$' \| \
19148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19149 $as_echo X"$as_dir" |
19150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19151 s//\1/
19152 q
19153 }
19154 /^X\(\/\/\)[^/].*/{
19155 s//\1/
19156 q
19157 }
19158 /^X\(\/\/\)$/{
19159 s//\1/
19160 q
19161 }
19162 /^X\(\/\).*/{
19163 s//\1/
19164 q
19165 }
19166 s/.*/./; q'`
19167 test -d "$as_dir" && break
19168 done
19169 test -z "$as_dirs" || eval "mkdir $as_dirs"
19170 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19171
19172
19173 } # as_fn_mkdir_p
19174 if mkdir -p . 2>/dev/null; then
19175 as_mkdir_p='mkdir -p "$as_dir"'
19176 else
19177 test -d ./-p && rmdir ./-p
19178 as_mkdir_p=false
19179 fi
19180
19181
19182 # as_fn_executable_p FILE
19183 # -----------------------
19184 # Test if FILE is an executable regular file.
19185 as_fn_executable_p ()
19186 {
19187 test -f "$1" && test -x "$1"
19188 } # as_fn_executable_p
19189 as_test_x='test -x'
19190 as_executable_p=as_fn_executable_p
19191
19192 # Sed expression to map a string onto a valid CPP name.
19193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19194
19195 # Sed expression to map a string onto a valid variable name.
19196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19197
19198
19199 exec 6>&1
19200 ## ----------------------------------- ##
19201 ## Main body of $CONFIG_STATUS script. ##
19202 ## ----------------------------------- ##
19203 _ASEOF
19204 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19205
19206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19207 # Save the log message, to keep $0 and so on meaningful, and to
19208 # report actual input values of CONFIG_FILES etc. instead of their
19209 # values after options handling.
19210 ac_log="
19211 This file was extended by libFS $as_me 1.0.7, which was
19212 generated by GNU Autoconf 2.69. Invocation command line was
19213
19214 CONFIG_FILES = $CONFIG_FILES
19215 CONFIG_HEADERS = $CONFIG_HEADERS
19216 CONFIG_LINKS = $CONFIG_LINKS
19217 CONFIG_COMMANDS = $CONFIG_COMMANDS
19218 $ $0 $@
19219
19220 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19221 "
19222
19223 _ACEOF
19224
19225 case $ac_config_files in *"
19226 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19227 esac
19228
19229 case $ac_config_headers in *"
19230 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19231 esac
19232
19233
19234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19235 # Files that config.status was made for.
19236 config_files="$ac_config_files"
19237 config_headers="$ac_config_headers"
19238 config_commands="$ac_config_commands"
19239
19240 _ACEOF
19241
19242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19243 ac_cs_usage="\
19244 \`$as_me' instantiates files and other configuration actions
19245 from templates according to the current configuration. Unless the files
19246 and actions are specified as TAGs, all are instantiated by default.
19247
19248 Usage: $0 [OPTION]... [TAG]...
19249
19250 -h, --help print this help, then exit
19251 -V, --version print version number and configuration settings, then exit
19252 --config print configuration, then exit
19253 -q, --quiet, --silent
19254 do not print progress messages
19255 -d, --debug don't remove temporary files
19256 --recheck update $as_me by reconfiguring in the same conditions
19257 --file=FILE[:TEMPLATE]
19258 instantiate the configuration file FILE
19259 --header=FILE[:TEMPLATE]
19260 instantiate the configuration header FILE
19261
19262 Configuration files:
19263 $config_files
19264
19265 Configuration headers:
19266 $config_headers
19267
19268 Configuration commands:
19269 $config_commands
19270
19271 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19272
19273 _ACEOF
19274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19275 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19276 ac_cs_version="\\
19277 libFS config.status 1.0.7
19278 configured by $0, generated by GNU Autoconf 2.69,
19279 with options \\"\$ac_cs_config\\"
19280
19281 Copyright (C) 2012 Free Software Foundation, Inc.
19282 This config.status script is free software; the Free Software Foundation
19283 gives unlimited permission to copy, distribute and modify it."
19284
19285 ac_pwd='$ac_pwd'
19286 srcdir='$srcdir'
19287 INSTALL='$INSTALL'
19288 MKDIR_P='$MKDIR_P'
19289 AWK='$AWK'
19290 test -n "\$AWK" || AWK=awk
19291 _ACEOF
19292
19293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19294 # The default lists apply if the user does not specify any file.
19295 ac_need_defaults=:
19296 while test $# != 0
19297 do
19298 case $1 in
19299 --*=?*)
19300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19302 ac_shift=:
19303 ;;
19304 --*=)
19305 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19306 ac_optarg=
19307 ac_shift=:
19308 ;;
19309 *)
19310 ac_option=$1
19311 ac_optarg=$2
19312 ac_shift=shift
19313 ;;
19314 esac
19315
19316 case $ac_option in
19317 # Handling of the options.
19318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19319 ac_cs_recheck=: ;;
19320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19321 $as_echo "$ac_cs_version"; exit ;;
19322 --config | --confi | --conf | --con | --co | --c )
19323 $as_echo "$ac_cs_config"; exit ;;
19324 --debug | --debu | --deb | --de | --d | -d )
19325 debug=: ;;
19326 --file | --fil | --fi | --f )
19327 $ac_shift
19328 case $ac_optarg in
19329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19330 '') as_fn_error $? "missing file argument" ;;
19331 esac
19332 as_fn_append CONFIG_FILES " '$ac_optarg'"
19333 ac_need_defaults=false;;
19334 --header | --heade | --head | --hea )
19335 $ac_shift
19336 case $ac_optarg in
19337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19338 esac
19339 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19340 ac_need_defaults=false;;
19341 --he | --h)
19342 # Conflict between --help and --header
19343 as_fn_error $? "ambiguous option: \`$1'
19344 Try \`$0 --help' for more information.";;
19345 --help | --hel | -h )
19346 $as_echo "$ac_cs_usage"; exit ;;
19347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19349 ac_cs_silent=: ;;
19350
19351 # This is an error.
19352 -*) as_fn_error $? "unrecognized option: \`$1'
19353 Try \`$0 --help' for more information." ;;
19354
19355 *) as_fn_append ac_config_targets " $1"
19356 ac_need_defaults=false ;;
19357
19358 esac
19359 shift
19360 done
19361
19362 ac_configure_extra_args=
19363
19364 if $ac_cs_silent; then
19365 exec 6>/dev/null
19366 ac_configure_extra_args="$ac_configure_extra_args --silent"
19367 fi
19368
19369 _ACEOF
19370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19371 if \$ac_cs_recheck; then
19372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19373 shift
19374 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19375 CONFIG_SHELL='$SHELL'
19376 export CONFIG_SHELL
19377 exec "\$@"
19378 fi
19379
19380 _ACEOF
19381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19382 exec 5>>config.log
19383 {
19384 echo
19385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19386 ## Running $as_me. ##
19387 _ASBOX
19388 $as_echo "$ac_log"
19389 } >&5
19390
19391 _ACEOF
19392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19393 #
19394 # INIT-COMMANDS
19395 #
19396 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19397
19398
19399 # The HP-UX ksh and POSIX shell print the target directory to stdout
19400 # if CDPATH is set.
19401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19402
19403 sed_quote_subst='$sed_quote_subst'
19404 double_quote_subst='$double_quote_subst'
19405 delay_variable_subst='$delay_variable_subst'
19406 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19407 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19408 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19409 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19410 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19411 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19412 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19413 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19414 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19415 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19416 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19417 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19418 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19419 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19420 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19421 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19422 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19423 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19424 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19425 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19426 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19427 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19428 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19429 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19430 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19431 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19432 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19433 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19434 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19435 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19436 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19437 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19438 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19439 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19440 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19441 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19442 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19443 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19444 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19445 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19446 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19447 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19448 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19449 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19450 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19451 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19452 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19453 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19454 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19455 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19456 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19457 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19458 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19459 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19460 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19461 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19462 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"`'
19463 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19464 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19465 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19466 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19467 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19468 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19469 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19470 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19471 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19472 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19473 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19474 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19475 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19476 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19477 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19478 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19479 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19480 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19481 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19482 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19483 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19484 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19485 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19486 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19487 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19488 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19489 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19490 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19491 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19492 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19493 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19494 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19495 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19496 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19497 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19498 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19499 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19500 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19501 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19502 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19503 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19504 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19505 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19506 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19507 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19508 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19509 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19510 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19511 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19512 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19513 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19514 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19515 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19516 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19517 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19518 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19519 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19520 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19521 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19522 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19523 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19524 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19525 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19526 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19527 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19528 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19529 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19530 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19531 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19532 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19533 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19534 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19535 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19536
19537 LTCC='$LTCC'
19538 LTCFLAGS='$LTCFLAGS'
19539 compiler='$compiler_DEFAULT'
19540
19541 # A function that is used when there is no print builtin or printf.
19542 func_fallback_echo ()
19543 {
19544 eval 'cat <<_LTECHO_EOF
19545 \$1
19546 _LTECHO_EOF'
19547 }
19548
19549 # Quote evaled strings.
19550 for var in SHELL \
19551 ECHO \
19552 PATH_SEPARATOR \
19553 SED \
19554 GREP \
19555 EGREP \
19556 FGREP \
19557 LD \
19558 NM \
19559 LN_S \
19560 lt_SP2NL \
19561 lt_NL2SP \
19562 reload_flag \
19563 OBJDUMP \
19564 deplibs_check_method \
19565 file_magic_cmd \
19566 file_magic_glob \
19567 want_nocaseglob \
19568 DLLTOOL \
19569 sharedlib_from_linklib_cmd \
19570 AR \
19571 AR_FLAGS \
19572 archiver_list_spec \
19573 STRIP \
19574 RANLIB \
19575 CC \
19576 CFLAGS \
19577 compiler \
19578 lt_cv_sys_global_symbol_pipe \
19579 lt_cv_sys_global_symbol_to_cdecl \
19580 lt_cv_sys_global_symbol_to_c_name_address \
19581 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19582 nm_file_list_spec \
19583 lt_prog_compiler_no_builtin_flag \
19584 lt_prog_compiler_pic \
19585 lt_prog_compiler_wl \
19586 lt_prog_compiler_static \
19587 lt_cv_prog_compiler_c_o \
19588 need_locks \
19589 MANIFEST_TOOL \
19590 DSYMUTIL \
19591 NMEDIT \
19592 LIPO \
19593 OTOOL \
19594 OTOOL64 \
19595 shrext_cmds \
19596 export_dynamic_flag_spec \
19597 whole_archive_flag_spec \
19598 compiler_needs_object \
19599 with_gnu_ld \
19600 allow_undefined_flag \
19601 no_undefined_flag \
19602 hardcode_libdir_flag_spec \
19603 hardcode_libdir_separator \
19604 exclude_expsyms \
19605 include_expsyms \
19606 file_list_spec \
19607 variables_saved_for_relink \
19608 libname_spec \
19609 library_names_spec \
19610 soname_spec \
19611 install_override_mode \
19612 finish_eval \
19613 old_striplib \
19614 striplib; do
19615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19616 *[\\\\\\\`\\"\\\$]*)
19617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19618 ;;
19619 *)
19620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19621 ;;
19622 esac
19623 done
19624
19625 # Double-quote double-evaled strings.
19626 for var in reload_cmds \
19627 old_postinstall_cmds \
19628 old_postuninstall_cmds \
19629 old_archive_cmds \
19630 extract_expsyms_cmds \
19631 old_archive_from_new_cmds \
19632 old_archive_from_expsyms_cmds \
19633 archive_cmds \
19634 archive_expsym_cmds \
19635 module_cmds \
19636 module_expsym_cmds \
19637 export_symbols_cmds \
19638 prelink_cmds \
19639 postlink_cmds \
19640 postinstall_cmds \
19641 postuninstall_cmds \
19642 finish_cmds \
19643 sys_lib_search_path_spec \
19644 sys_lib_dlsearch_path_spec; do
19645 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19646 *[\\\\\\\`\\"\\\$]*)
19647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19648 ;;
19649 *)
19650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19651 ;;
19652 esac
19653 done
19654
19655 ac_aux_dir='$ac_aux_dir'
19656 xsi_shell='$xsi_shell'
19657 lt_shell_append='$lt_shell_append'
19658
19659 # See if we are running on zsh, and set the options which allow our
19660 # commands through without removal of \ escapes INIT.
19661 if test -n "\${ZSH_VERSION+set}" ; then
19662 setopt NO_GLOB_SUBST
19663 fi
19664
19665
19666 PACKAGE='$PACKAGE'
19667 VERSION='$VERSION'
19668 TIMESTAMP='$TIMESTAMP'
19669 RM='$RM'
19670 ofile='$ofile'
19671
19672
19673
19674
19675 _ACEOF
19676
19677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678
19679 # Handling of arguments.
19680 for ac_config_target in $ac_config_targets
19681 do
19682 case $ac_config_target in
19683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19685 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19688 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19689 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
19690
19691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19692 esac
19693 done
19694
19695
19696 # If the user did not use the arguments to specify the items to instantiate,
19697 # then the envvar interface is used. Set only those that are not.
19698 # We use the long form for the default assignment because of an extremely
19699 # bizarre bug on SunOS 4.1.3.
19700 if $ac_need_defaults; then
19701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19704 fi
19705
19706 # Have a temporary directory for convenience. Make it in the build tree
19707 # simply because there is no reason against having it here, and in addition,
19708 # creating and moving files from /tmp can sometimes cause problems.
19709 # Hook for its removal unless debugging.
19710 # Note that there is a small window in which the directory will not be cleaned:
19711 # after its creation but before its name has been assigned to `$tmp'.
19712 $debug ||
19713 {
19714 tmp= ac_tmp=
19715 trap 'exit_status=$?
19716 : "${ac_tmp:=$tmp}"
19717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19718 ' 0
19719 trap 'as_fn_exit 1' 1 2 13 15
19720 }
19721 # Create a (secure) tmp directory for tmp files.
19722
19723 {
19724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19725 test -d "$tmp"
19726 } ||
19727 {
19728 tmp=./conf$$-$RANDOM
19729 (umask 077 && mkdir "$tmp")
19730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19731 ac_tmp=$tmp
19732
19733 # Set up the scripts for CONFIG_FILES section.
19734 # No need to generate them if there are no CONFIG_FILES.
19735 # This happens for instance with `./config.status config.h'.
19736 if test -n "$CONFIG_FILES"; then
19737
19738
19739 ac_cr=`echo X | tr X '\015'`
19740 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19741 # But we know of no other shell where ac_cr would be empty at this
19742 # point, so we can use a bashism as a fallback.
19743 if test "x$ac_cr" = x; then
19744 eval ac_cr=\$\'\\r\'
19745 fi
19746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19748 ac_cs_awk_cr='\\r'
19749 else
19750 ac_cs_awk_cr=$ac_cr
19751 fi
19752
19753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19754 _ACEOF
19755
19756
19757 {
19758 echo "cat >conf$$subs.awk <<_ACEOF" &&
19759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19760 echo "_ACEOF"
19761 } >conf$$subs.sh ||
19762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19764 ac_delim='%!_!# '
19765 for ac_last_try in false false false false false :; do
19766 . ./conf$$subs.sh ||
19767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19768
19769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19770 if test $ac_delim_n = $ac_delim_num; then
19771 break
19772 elif $ac_last_try; then
19773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19774 else
19775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19776 fi
19777 done
19778 rm -f conf$$subs.sh
19779
19780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19782 _ACEOF
19783 sed -n '
19784 h
19785 s/^/S["/; s/!.*/"]=/
19786 p
19787 g
19788 s/^[^!]*!//
19789 :repl
19790 t repl
19791 s/'"$ac_delim"'$//
19792 t delim
19793 :nl
19794 h
19795 s/\(.\{148\}\)..*/\1/
19796 t more1
19797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19798 p
19799 n
19800 b repl
19801 :more1
19802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19803 p
19804 g
19805 s/.\{148\}//
19806 t nl
19807 :delim
19808 h
19809 s/\(.\{148\}\)..*/\1/
19810 t more2
19811 s/["\\]/\\&/g; s/^/"/; s/$/"/
19812 p
19813 b
19814 :more2
19815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19816 p
19817 g
19818 s/.\{148\}//
19819 t delim
19820 ' <conf$$subs.awk | sed '
19821 /^[^""]/{
19822 N
19823 s/\n//
19824 }
19825 ' >>$CONFIG_STATUS || ac_write_fail=1
19826 rm -f conf$$subs.awk
19827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19828 _ACAWK
19829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19830 for (key in S) S_is_set[key] = 1
19831 FS = ""
19832
19833 }
19834 {
19835 line = $ 0
19836 nfields = split(line, field, "@")
19837 substed = 0
19838 len = length(field[1])
19839 for (i = 2; i < nfields; i++) {
19840 key = field[i]
19841 keylen = length(key)
19842 if (S_is_set[key]) {
19843 value = S[key]
19844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19845 len += length(value) + length(field[++i])
19846 substed = 1
19847 } else
19848 len += 1 + keylen
19849 }
19850
19851 print line
19852 }
19853
19854 _ACAWK
19855 _ACEOF
19856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19859 else
19860 cat
19861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19863 _ACEOF
19864
19865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19867 # trailing colons and then remove the whole line if VPATH becomes empty
19868 # (actually we leave an empty line to preserve line numbers).
19869 if test "x$srcdir" = x.; then
19870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19871 h
19872 s///
19873 s/^/:/
19874 s/[ ]*$/:/
19875 s/:\$(srcdir):/:/g
19876 s/:\${srcdir}:/:/g
19877 s/:@srcdir@:/:/g
19878 s/^:*//
19879 s/:*$//
19880 x
19881 s/\(=[ ]*\).*/\1/
19882 G
19883 s/\n//
19884 s/^[^=]*=[ ]*$//
19885 }'
19886 fi
19887
19888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19889 fi # test -n "$CONFIG_FILES"
19890
19891 # Set up the scripts for CONFIG_HEADERS section.
19892 # No need to generate them if there are no CONFIG_HEADERS.
19893 # This happens for instance with `./config.status Makefile'.
19894 if test -n "$CONFIG_HEADERS"; then
19895 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19896 BEGIN {
19897 _ACEOF
19898
19899 # Transform confdefs.h into an awk script `defines.awk', embedded as
19900 # here-document in config.status, that substitutes the proper values into
19901 # config.h.in to produce config.h.
19902
19903 # Create a delimiter string that does not exist in confdefs.h, to ease
19904 # handling of long lines.
19905 ac_delim='%!_!# '
19906 for ac_last_try in false false :; do
19907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19908 if test -z "$ac_tt"; then
19909 break
19910 elif $ac_last_try; then
19911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19912 else
19913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19914 fi
19915 done
19916
19917 # For the awk script, D is an array of macro values keyed by name,
19918 # likewise P contains macro parameters if any. Preserve backslash
19919 # newline sequences.
19920
19921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19922 sed -n '
19923 s/.\{148\}/&'"$ac_delim"'/g
19924 t rset
19925 :rset
19926 s/^[ ]*#[ ]*define[ ][ ]*/ /
19927 t def
19928 d
19929 :def
19930 s/\\$//
19931 t bsnl
19932 s/["\\]/\\&/g
19933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19934 D["\1"]=" \3"/p
19935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19936 d
19937 :bsnl
19938 s/["\\]/\\&/g
19939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19940 D["\1"]=" \3\\\\\\n"\\/p
19941 t cont
19942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19943 t cont
19944 d
19945 :cont
19946 n
19947 s/.\{148\}/&'"$ac_delim"'/g
19948 t clear
19949 :clear
19950 s/\\$//
19951 t bsnlc
19952 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19953 d
19954 :bsnlc
19955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19956 b cont
19957 ' <confdefs.h | sed '
19958 s/'"$ac_delim"'/"\\\
19959 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19960
19961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19962 for (key in D) D_is_set[key] = 1
19963 FS = ""
19964 }
19965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19966 line = \$ 0
19967 split(line, arg, " ")
19968 if (arg[1] == "#") {
19969 defundef = arg[2]
19970 mac1 = arg[3]
19971 } else {
19972 defundef = substr(arg[1], 2)
19973 mac1 = arg[2]
19974 }
19975 split(mac1, mac2, "(") #)
19976 macro = mac2[1]
19977 prefix = substr(line, 1, index(line, defundef) - 1)
19978 if (D_is_set[macro]) {
19979 # Preserve the white space surrounding the "#".
19980 print prefix "define", macro P[macro] D[macro]
19981 next
19982 } else {
19983 # Replace #undef with comments. This is necessary, for example,
19984 # in the case of _POSIX_SOURCE, which is predefined and required
19985 # on some systems where configure will not decide to define it.
19986 if (defundef == "undef") {
19987 print "/*", prefix defundef, macro, "*/"
19988 next
19989 }
19990 }
19991 }
19992 { print }
19993 _ACAWK
19994 _ACEOF
19995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19997 fi # test -n "$CONFIG_HEADERS"
19998
19999
20000 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20001 shift
20002 for ac_tag
20003 do
20004 case $ac_tag in
20005 :[FHLC]) ac_mode=$ac_tag; continue;;
20006 esac
20007 case $ac_mode$ac_tag in
20008 :[FHL]*:*);;
20009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20010 :[FH]-) ac_tag=-:-;;
20011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20012 esac
20013 ac_save_IFS=$IFS
20014 IFS=:
20015 set x $ac_tag
20016 IFS=$ac_save_IFS
20017 shift
20018 ac_file=$1
20019 shift
20020
20021 case $ac_mode in
20022 :L) ac_source=$1;;
20023 :[FH])
20024 ac_file_inputs=
20025 for ac_f
20026 do
20027 case $ac_f in
20028 -) ac_f="$ac_tmp/stdin";;
20029 *) # Look for the file first in the build tree, then in the source tree
20030 # (if the path is not absolute). The absolute path cannot be DOS-style,
20031 # because $ac_f cannot contain `:'.
20032 test -f "$ac_f" ||
20033 case $ac_f in
20034 [\\/$]*) false;;
20035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20036 esac ||
20037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20038 esac
20039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20040 as_fn_append ac_file_inputs " '$ac_f'"
20041 done
20042
20043 # Let's still pretend it is `configure' which instantiates (i.e., don't
20044 # use $as_me), people would be surprised to read:
20045 # /* config.h. Generated by config.status. */
20046 configure_input='Generated from '`
20047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20048 `' by configure.'
20049 if test x"$ac_file" != x-; then
20050 configure_input="$ac_file. $configure_input"
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20052 $as_echo "$as_me: creating $ac_file" >&6;}
20053 fi
20054 # Neutralize special characters interpreted by sed in replacement strings.
20055 case $configure_input in #(
20056 *\&* | *\|* | *\\* )
20057 ac_sed_conf_input=`$as_echo "$configure_input" |
20058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20059 *) ac_sed_conf_input=$configure_input;;
20060 esac
20061
20062 case $ac_tag in
20063 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20065 esac
20066 ;;
20067 esac
20068
20069 ac_dir=`$as_dirname -- "$ac_file" ||
20070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071 X"$ac_file" : 'X\(//\)[^/]' \| \
20072 X"$ac_file" : 'X\(//\)$' \| \
20073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20074 $as_echo X"$ac_file" |
20075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20076 s//\1/
20077 q
20078 }
20079 /^X\(\/\/\)[^/].*/{
20080 s//\1/
20081 q
20082 }
20083 /^X\(\/\/\)$/{
20084 s//\1/
20085 q
20086 }
20087 /^X\(\/\).*/{
20088 s//\1/
20089 q
20090 }
20091 s/.*/./; q'`
20092 as_dir="$ac_dir"; as_fn_mkdir_p
20093 ac_builddir=.
20094
20095 case "$ac_dir" in
20096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20097 *)
20098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20099 # A ".." for each directory in $ac_dir_suffix.
20100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20101 case $ac_top_builddir_sub in
20102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20104 esac ;;
20105 esac
20106 ac_abs_top_builddir=$ac_pwd
20107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20108 # for backward compatibility:
20109 ac_top_builddir=$ac_top_build_prefix
20110
20111 case $srcdir in
20112 .) # We are building in place.
20113 ac_srcdir=.
20114 ac_top_srcdir=$ac_top_builddir_sub
20115 ac_abs_top_srcdir=$ac_pwd ;;
20116 [\\/]* | ?:[\\/]* ) # Absolute name.
20117 ac_srcdir=$srcdir$ac_dir_suffix;
20118 ac_top_srcdir=$srcdir
20119 ac_abs_top_srcdir=$srcdir ;;
20120 *) # Relative name.
20121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20122 ac_top_srcdir=$ac_top_build_prefix$srcdir
20123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20124 esac
20125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20126
20127
20128 case $ac_mode in
20129 :F)
20130 #
20131 # CONFIG_FILE
20132 #
20133
20134 case $INSTALL in
20135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20137 esac
20138 ac_MKDIR_P=$MKDIR_P
20139 case $MKDIR_P in
20140 [\\/$]* | ?:[\\/]* ) ;;
20141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20142 esac
20143 _ACEOF
20144
20145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20146 # If the template does not know about datarootdir, expand it.
20147 # FIXME: This hack should be removed a few years after 2.60.
20148 ac_datarootdir_hack=; ac_datarootdir_seen=
20149 ac_sed_dataroot='
20150 /datarootdir/ {
20151 p
20152 q
20153 }
20154 /@datadir@/p
20155 /@docdir@/p
20156 /@infodir@/p
20157 /@localedir@/p
20158 /@mandir@/p'
20159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20160 *datarootdir*) ac_datarootdir_seen=yes;;
20161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20164 _ACEOF
20165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20166 ac_datarootdir_hack='
20167 s&@datadir@&$datadir&g
20168 s&@docdir@&$docdir&g
20169 s&@infodir@&$infodir&g
20170 s&@localedir@&$localedir&g
20171 s&@mandir@&$mandir&g
20172 s&\\\${datarootdir}&$datarootdir&g' ;;
20173 esac
20174 _ACEOF
20175
20176 # Neutralize VPATH when `$srcdir' = `.'.
20177 # Shell code in configure.ac might set extrasub.
20178 # FIXME: do we really want to maintain this feature?
20179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20180 ac_sed_extra="$ac_vpsub
20181 $extrasub
20182 _ACEOF
20183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20184 :t
20185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20186 s|@configure_input@|$ac_sed_conf_input|;t t
20187 s&@top_builddir@&$ac_top_builddir_sub&;t t
20188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20189 s&@srcdir@&$ac_srcdir&;t t
20190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20191 s&@top_srcdir@&$ac_top_srcdir&;t t
20192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20193 s&@builddir@&$ac_builddir&;t t
20194 s&@abs_builddir@&$ac_abs_builddir&;t t
20195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20196 s&@INSTALL@&$ac_INSTALL&;t t
20197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20198 $ac_datarootdir_hack
20199 "
20200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20202
20203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20206 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20208 which seems to be undefined. Please make sure it is defined" >&5
20209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20210 which seems to be undefined. Please make sure it is defined" >&2;}
20211
20212 rm -f "$ac_tmp/stdin"
20213 case $ac_file in
20214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20216 esac \
20217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20218 ;;
20219 :H)
20220 #
20221 # CONFIG_HEADER
20222 #
20223 if test x"$ac_file" != x-; then
20224 {
20225 $as_echo "/* $configure_input */" \
20226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20227 } >"$ac_tmp/config.h" \
20228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20232 else
20233 rm -f "$ac_file"
20234 mv "$ac_tmp/config.h" "$ac_file" \
20235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20236 fi
20237 else
20238 $as_echo "/* $configure_input */" \
20239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20240 || as_fn_error $? "could not create -" "$LINENO" 5
20241 fi
20242 # Compute "$ac_file"'s index in $config_headers.
20243 _am_arg="$ac_file"
20244 _am_stamp_count=1
20245 for _am_header in $config_headers :; do
20246 case $_am_header in
20247 $_am_arg | $_am_arg:* )
20248 break ;;
20249 * )
20250 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20251 esac
20252 done
20253 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20254 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20255 X"$_am_arg" : 'X\(//\)[^/]' \| \
20256 X"$_am_arg" : 'X\(//\)$' \| \
20257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20258 $as_echo X"$_am_arg" |
20259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20260 s//\1/
20261 q
20262 }
20263 /^X\(\/\/\)[^/].*/{
20264 s//\1/
20265 q
20266 }
20267 /^X\(\/\/\)$/{
20268 s//\1/
20269 q
20270 }
20271 /^X\(\/\).*/{
20272 s//\1/
20273 q
20274 }
20275 s/.*/./; q'`/stamp-h$_am_stamp_count
20276 ;;
20277
20278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20279 $as_echo "$as_me: executing $ac_file commands" >&6;}
20280 ;;
20281 esac
20282
20283
20284 case $ac_file$ac_mode in
20285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20286 # Older Autoconf quotes --file arguments for eval, but not when files
20287 # are listed without --file. Let's play safe and only enable the eval
20288 # if we detect the quoting.
20289 case $CONFIG_FILES in
20290 *\'*) eval set x "$CONFIG_FILES" ;;
20291 *) set x $CONFIG_FILES ;;
20292 esac
20293 shift
20294 for mf
20295 do
20296 # Strip MF so we end up with the name of the file.
20297 mf=`echo "$mf" | sed -e 's/:.*$//'`
20298 # Check whether this is an Automake generated Makefile or not.
20299 # We used to match only the files named 'Makefile.in', but
20300 # some people rename them; so instead we look at the file content.
20301 # Grep'ing the first line is not enough: some people post-process
20302 # each Makefile.in and add a new line on top of each file to say so.
20303 # Grep'ing the whole file is not good either: AIX grep has a line
20304 # limit of 2048, but all sed's we know have understand at least 4000.
20305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20306 dirpart=`$as_dirname -- "$mf" ||
20307 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20308 X"$mf" : 'X\(//\)[^/]' \| \
20309 X"$mf" : 'X\(//\)$' \| \
20310 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20311 $as_echo X"$mf" |
20312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20313 s//\1/
20314 q
20315 }
20316 /^X\(\/\/\)[^/].*/{
20317 s//\1/
20318 q
20319 }
20320 /^X\(\/\/\)$/{
20321 s//\1/
20322 q
20323 }
20324 /^X\(\/\).*/{
20325 s//\1/
20326 q
20327 }
20328 s/.*/./; q'`
20329 else
20330 continue
20331 fi
20332 # Extract the definition of DEPDIR, am__include, and am__quote
20333 # from the Makefile without running 'make'.
20334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20335 test -z "$DEPDIR" && continue
20336 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20337 test -z "$am__include" && continue
20338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20339 # Find all dependency output files, they are included files with
20340 # $(DEPDIR) in their names. We invoke sed twice because it is the
20341 # simplest approach to changing $(DEPDIR) to its actual value in the
20342 # expansion.
20343 for file in `sed -n "
20344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20346 # Make sure the directory exists.
20347 test -f "$dirpart/$file" && continue
20348 fdir=`$as_dirname -- "$file" ||
20349 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20350 X"$file" : 'X\(//\)[^/]' \| \
20351 X"$file" : 'X\(//\)$' \| \
20352 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20353 $as_echo X"$file" |
20354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20355 s//\1/
20356 q
20357 }
20358 /^X\(\/\/\)[^/].*/{
20359 s//\1/
20360 q
20361 }
20362 /^X\(\/\/\)$/{
20363 s//\1/
20364 q
20365 }
20366 /^X\(\/\).*/{
20367 s//\1/
20368 q
20369 }
20370 s/.*/./; q'`
20371 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20372 # echo "creating $dirpart/$file"
20373 echo '# dummy' > "$dirpart/$file"
20374 done
20375 done
20376 }
20377 ;;
20378 "libtool":C)
20379
20380 # See if we are running on zsh, and set the options which allow our
20381 # commands through without removal of \ escapes.
20382 if test -n "${ZSH_VERSION+set}" ; then
20383 setopt NO_GLOB_SUBST
20384 fi
20385
20386 cfgfile="${ofile}T"
20387 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20388 $RM "$cfgfile"
20389
20390 cat <<_LT_EOF >> "$cfgfile"
20391 #! $SHELL
20392
20393 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20394 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20396 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20397 #
20398 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20399 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20400 # Foundation, Inc.
20401 # Written by Gordon Matzigkeit, 1996
20402 #
20403 # This file is part of GNU Libtool.
20404 #
20405 # GNU Libtool is free software; you can redistribute it and/or
20406 # modify it under the terms of the GNU General Public License as
20407 # published by the Free Software Foundation; either version 2 of
20408 # the License, or (at your option) any later version.
20409 #
20410 # As a special exception to the GNU General Public License,
20411 # if you distribute this file as part of a program or library that
20412 # is built using GNU Libtool, you may include this file under the
20413 # same distribution terms that you use for the rest of that program.
20414 #
20415 # GNU Libtool is distributed in the hope that it will be useful,
20416 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20417 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20418 # GNU General Public License for more details.
20419 #
20420 # You should have received a copy of the GNU General Public License
20421 # along with GNU Libtool; see the file COPYING. If not, a copy
20422 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20423 # obtained by writing to the Free Software Foundation, Inc.,
20424 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20425
20426
20427 # The names of the tagged configurations supported by this script.
20428 available_tags=""
20429
20430 # ### BEGIN LIBTOOL CONFIG
20431
20432 # Which release of libtool.m4 was used?
20433 macro_version=$macro_version
20434 macro_revision=$macro_revision
20435
20436 # Whether or not to build shared libraries.
20437 build_libtool_libs=$enable_shared
20438
20439 # Whether or not to build static libraries.
20440 build_old_libs=$enable_static
20441
20442 # What type of objects to build.
20443 pic_mode=$pic_mode
20444
20445 # Whether or not to optimize for fast installation.
20446 fast_install=$enable_fast_install
20447
20448 # Shell to use when invoking shell scripts.
20449 SHELL=$lt_SHELL
20450
20451 # An echo program that protects backslashes.
20452 ECHO=$lt_ECHO
20453
20454 # The PATH separator for the build system.
20455 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20456
20457 # The host system.
20458 host_alias=$host_alias
20459 host=$host
20460 host_os=$host_os
20461
20462 # The build system.
20463 build_alias=$build_alias
20464 build=$build
20465 build_os=$build_os
20466
20467 # A sed program that does not truncate output.
20468 SED=$lt_SED
20469
20470 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20471 Xsed="\$SED -e 1s/^X//"
20472
20473 # A grep program that handles long lines.
20474 GREP=$lt_GREP
20475
20476 # An ERE matcher.
20477 EGREP=$lt_EGREP
20478
20479 # A literal string matcher.
20480 FGREP=$lt_FGREP
20481
20482 # A BSD- or MS-compatible name lister.
20483 NM=$lt_NM
20484
20485 # Whether we need soft or hard links.
20486 LN_S=$lt_LN_S
20487
20488 # What is the maximum length of a command?
20489 max_cmd_len=$max_cmd_len
20490
20491 # Object file suffix (normally "o").
20492 objext=$ac_objext
20493
20494 # Executable file suffix (normally "").
20495 exeext=$exeext
20496
20497 # whether the shell understands "unset".
20498 lt_unset=$lt_unset
20499
20500 # turn spaces into newlines.
20501 SP2NL=$lt_lt_SP2NL
20502
20503 # turn newlines into spaces.
20504 NL2SP=$lt_lt_NL2SP
20505
20506 # convert \$build file names to \$host format.
20507 to_host_file_cmd=$lt_cv_to_host_file_cmd
20508
20509 # convert \$build files to toolchain format.
20510 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20511
20512 # An object symbol dumper.
20513 OBJDUMP=$lt_OBJDUMP
20514
20515 # Method to check whether dependent libraries are shared objects.
20516 deplibs_check_method=$lt_deplibs_check_method
20517
20518 # Command to use when deplibs_check_method = "file_magic".
20519 file_magic_cmd=$lt_file_magic_cmd
20520
20521 # How to find potential files when deplibs_check_method = "file_magic".
20522 file_magic_glob=$lt_file_magic_glob
20523
20524 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20525 want_nocaseglob=$lt_want_nocaseglob
20526
20527 # DLL creation program.
20528 DLLTOOL=$lt_DLLTOOL
20529
20530 # Command to associate shared and link libraries.
20531 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20532
20533 # The archiver.
20534 AR=$lt_AR
20535
20536 # Flags to create an archive.
20537 AR_FLAGS=$lt_AR_FLAGS
20538
20539 # How to feed a file listing to the archiver.
20540 archiver_list_spec=$lt_archiver_list_spec
20541
20542 # A symbol stripping program.
20543 STRIP=$lt_STRIP
20544
20545 # Commands used to install an old-style archive.
20546 RANLIB=$lt_RANLIB
20547 old_postinstall_cmds=$lt_old_postinstall_cmds
20548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20549
20550 # Whether to use a lock for old archive extraction.
20551 lock_old_archive_extraction=$lock_old_archive_extraction
20552
20553 # A C compiler.
20554 LTCC=$lt_CC
20555
20556 # LTCC compiler flags.
20557 LTCFLAGS=$lt_CFLAGS
20558
20559 # Take the output of nm and produce a listing of raw symbols and C names.
20560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20561
20562 # Transform the output of nm in a proper C declaration.
20563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20564
20565 # Transform the output of nm in a C name address pair.
20566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20567
20568 # Transform the output of nm in a C name address pair when lib prefix is needed.
20569 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20570
20571 # Specify filename containing input files for \$NM.
20572 nm_file_list_spec=$lt_nm_file_list_spec
20573
20574 # The root where to search for dependent libraries,and in which our libraries should be installed.
20575 lt_sysroot=$lt_sysroot
20576
20577 # The name of the directory that contains temporary libtool files.
20578 objdir=$objdir
20579
20580 # Used to examine libraries when file_magic_cmd begins with "file".
20581 MAGIC_CMD=$MAGIC_CMD
20582
20583 # Must we lock files when doing compilation?
20584 need_locks=$lt_need_locks
20585
20586 # Manifest tool.
20587 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20588
20589 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20590 DSYMUTIL=$lt_DSYMUTIL
20591
20592 # Tool to change global to local symbols on Mac OS X.
20593 NMEDIT=$lt_NMEDIT
20594
20595 # Tool to manipulate fat objects and archives on Mac OS X.
20596 LIPO=$lt_LIPO
20597
20598 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20599 OTOOL=$lt_OTOOL
20600
20601 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20602 OTOOL64=$lt_OTOOL64
20603
20604 # Old archive suffix (normally "a").
20605 libext=$libext
20606
20607 # Shared library suffix (normally ".so").
20608 shrext_cmds=$lt_shrext_cmds
20609
20610 # The commands to extract the exported symbol list from a shared archive.
20611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20612
20613 # Variables whose values should be saved in libtool wrapper scripts and
20614 # restored at link time.
20615 variables_saved_for_relink=$lt_variables_saved_for_relink
20616
20617 # Do we need the "lib" prefix for modules?
20618 need_lib_prefix=$need_lib_prefix
20619
20620 # Do we need a version for libraries?
20621 need_version=$need_version
20622
20623 # Library versioning type.
20624 version_type=$version_type
20625
20626 # Shared library runtime path variable.
20627 runpath_var=$runpath_var
20628
20629 # Shared library path variable.
20630 shlibpath_var=$shlibpath_var
20631
20632 # Is shlibpath searched before the hard-coded library search path?
20633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20634
20635 # Format of library name prefix.
20636 libname_spec=$lt_libname_spec
20637
20638 # List of archive names. First name is the real one, the rest are links.
20639 # The last name is the one that the linker finds with -lNAME
20640 library_names_spec=$lt_library_names_spec
20641
20642 # The coded name of the library, if different from the real name.
20643 soname_spec=$lt_soname_spec
20644
20645 # Permission mode override for installation of shared libraries.
20646 install_override_mode=$lt_install_override_mode
20647
20648 # Command to use after installation of a shared archive.
20649 postinstall_cmds=$lt_postinstall_cmds
20650
20651 # Command to use after uninstallation of a shared archive.
20652 postuninstall_cmds=$lt_postuninstall_cmds
20653
20654 # Commands used to finish a libtool library installation in a directory.
20655 finish_cmds=$lt_finish_cmds
20656
20657 # As "finish_cmds", except a single script fragment to be evaled but
20658 # not shown.
20659 finish_eval=$lt_finish_eval
20660
20661 # Whether we should hardcode library paths into libraries.
20662 hardcode_into_libs=$hardcode_into_libs
20663
20664 # Compile-time system search path for libraries.
20665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20666
20667 # Run-time system search path for libraries.
20668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20669
20670 # Whether dlopen is supported.
20671 dlopen_support=$enable_dlopen
20672
20673 # Whether dlopen of programs is supported.
20674 dlopen_self=$enable_dlopen_self
20675
20676 # Whether dlopen of statically linked programs is supported.
20677 dlopen_self_static=$enable_dlopen_self_static
20678
20679 # Commands to strip libraries.
20680 old_striplib=$lt_old_striplib
20681 striplib=$lt_striplib
20682
20683
20684 # The linker used to build libraries.
20685 LD=$lt_LD
20686
20687 # How to create reloadable object files.
20688 reload_flag=$lt_reload_flag
20689 reload_cmds=$lt_reload_cmds
20690
20691 # Commands used to build an old-style archive.
20692 old_archive_cmds=$lt_old_archive_cmds
20693
20694 # A language specific compiler.
20695 CC=$lt_compiler
20696
20697 # Is the compiler the GNU compiler?
20698 with_gcc=$GCC
20699
20700 # Compiler flag to turn off builtin functions.
20701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20702
20703 # Additional compiler flags for building library objects.
20704 pic_flag=$lt_lt_prog_compiler_pic
20705
20706 # How to pass a linker flag through the compiler.
20707 wl=$lt_lt_prog_compiler_wl
20708
20709 # Compiler flag to prevent dynamic linking.
20710 link_static_flag=$lt_lt_prog_compiler_static
20711
20712 # Does compiler simultaneously support -c and -o options?
20713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20714
20715 # Whether or not to add -lc for building shared libraries.
20716 build_libtool_need_lc=$archive_cmds_need_lc
20717
20718 # Whether or not to disallow shared libs when runtime libs are static.
20719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20720
20721 # Compiler flag to allow reflexive dlopens.
20722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20723
20724 # Compiler flag to generate shared objects directly from archives.
20725 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20726
20727 # Whether the compiler copes with passing no objects directly.
20728 compiler_needs_object=$lt_compiler_needs_object
20729
20730 # Create an old-style archive from a shared archive.
20731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20732
20733 # Create a temporary old-style archive to link instead of a shared archive.
20734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20735
20736 # Commands used to build a shared archive.
20737 archive_cmds=$lt_archive_cmds
20738 archive_expsym_cmds=$lt_archive_expsym_cmds
20739
20740 # Commands used to build a loadable module if different from building
20741 # a shared archive.
20742 module_cmds=$lt_module_cmds
20743 module_expsym_cmds=$lt_module_expsym_cmds
20744
20745 # Whether we are building with GNU ld or not.
20746 with_gnu_ld=$lt_with_gnu_ld
20747
20748 # Flag that allows shared libraries with undefined symbols to be built.
20749 allow_undefined_flag=$lt_allow_undefined_flag
20750
20751 # Flag that enforces no undefined symbols.
20752 no_undefined_flag=$lt_no_undefined_flag
20753
20754 # Flag to hardcode \$libdir into a binary during linking.
20755 # This must work even if \$libdir does not exist
20756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20757
20758 # Whether we need a single "-rpath" flag with a separated argument.
20759 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20760
20761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20762 # DIR into the resulting binary.
20763 hardcode_direct=$hardcode_direct
20764
20765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20766 # DIR into the resulting binary and the resulting library dependency is
20767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20768 # library is relocated.
20769 hardcode_direct_absolute=$hardcode_direct_absolute
20770
20771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20772 # into the resulting binary.
20773 hardcode_minus_L=$hardcode_minus_L
20774
20775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20776 # into the resulting binary.
20777 hardcode_shlibpath_var=$hardcode_shlibpath_var
20778
20779 # Set to "yes" if building a shared library automatically hardcodes DIR
20780 # into the library and all subsequent libraries and executables linked
20781 # against it.
20782 hardcode_automatic=$hardcode_automatic
20783
20784 # Set to yes if linker adds runtime paths of dependent libraries
20785 # to runtime path list.
20786 inherit_rpath=$inherit_rpath
20787
20788 # Whether libtool must link a program against all its dependency libraries.
20789 link_all_deplibs=$link_all_deplibs
20790
20791 # Set to "yes" if exported symbols are required.
20792 always_export_symbols=$always_export_symbols
20793
20794 # The commands to list exported symbols.
20795 export_symbols_cmds=$lt_export_symbols_cmds
20796
20797 # Symbols that should not be listed in the preloaded symbols.
20798 exclude_expsyms=$lt_exclude_expsyms
20799
20800 # Symbols that must always be exported.
20801 include_expsyms=$lt_include_expsyms
20802
20803 # Commands necessary for linking programs (against libraries) with templates.
20804 prelink_cmds=$lt_prelink_cmds
20805
20806 # Commands necessary for finishing linking programs.
20807 postlink_cmds=$lt_postlink_cmds
20808
20809 # Specify filename containing input files.
20810 file_list_spec=$lt_file_list_spec
20811
20812 # How to hardcode a shared library path into an executable.
20813 hardcode_action=$hardcode_action
20814
20815 # ### END LIBTOOL CONFIG
20816
20817 _LT_EOF
20818
20819 case $host_os in
20820 aix3*)
20821 cat <<\_LT_EOF >> "$cfgfile"
20822 # AIX sometimes has problems with the GCC collect2 program. For some
20823 # reason, if we set the COLLECT_NAMES environment variable, the problems
20824 # vanish in a puff of smoke.
20825 if test "X${COLLECT_NAMES+set}" != Xset; then
20826 COLLECT_NAMES=
20827 export COLLECT_NAMES
20828 fi
20829 _LT_EOF
20830 ;;
20831 esac
20832
20833
20834 ltmain="$ac_aux_dir/ltmain.sh"
20835
20836
20837 # We use sed instead of cat because bash on DJGPP gets confused if
20838 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20839 # text mode, it properly converts lines to CR/LF. This bash problem
20840 # is reportedly fixed, but why not run on old versions too?
20841 sed '$q' "$ltmain" >> "$cfgfile" \
20842 || (rm -f "$cfgfile"; exit 1)
20843
20844 if test x"$xsi_shell" = xyes; then
20845 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20846 func_dirname ()\
20847 {\
20848 \ case ${1} in\
20849 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20850 \ * ) func_dirname_result="${3}" ;;\
20851 \ esac\
20852 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20853 && mv -f "$cfgfile.tmp" "$cfgfile" \
20854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20855 test 0 -eq $? || _lt_function_replace_fail=:
20856
20857
20858 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20859 func_basename ()\
20860 {\
20861 \ func_basename_result="${1##*/}"\
20862 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20863 && mv -f "$cfgfile.tmp" "$cfgfile" \
20864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20865 test 0 -eq $? || _lt_function_replace_fail=:
20866
20867
20868 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20869 func_dirname_and_basename ()\
20870 {\
20871 \ case ${1} in\
20872 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20873 \ * ) func_dirname_result="${3}" ;;\
20874 \ esac\
20875 \ func_basename_result="${1##*/}"\
20876 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20877 && mv -f "$cfgfile.tmp" "$cfgfile" \
20878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20879 test 0 -eq $? || _lt_function_replace_fail=:
20880
20881
20882 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20883 func_stripname ()\
20884 {\
20885 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20886 \ # positional parameters, so assign one to ordinary parameter first.\
20887 \ func_stripname_result=${3}\
20888 \ func_stripname_result=${func_stripname_result#"${1}"}\
20889 \ func_stripname_result=${func_stripname_result%"${2}"}\
20890 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20891 && mv -f "$cfgfile.tmp" "$cfgfile" \
20892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20893 test 0 -eq $? || _lt_function_replace_fail=:
20894
20895
20896 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20897 func_split_long_opt ()\
20898 {\
20899 \ func_split_long_opt_name=${1%%=*}\
20900 \ func_split_long_opt_arg=${1#*=}\
20901 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20902 && mv -f "$cfgfile.tmp" "$cfgfile" \
20903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20904 test 0 -eq $? || _lt_function_replace_fail=:
20905
20906
20907 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20908 func_split_short_opt ()\
20909 {\
20910 \ func_split_short_opt_arg=${1#??}\
20911 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20912 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20913 && mv -f "$cfgfile.tmp" "$cfgfile" \
20914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20915 test 0 -eq $? || _lt_function_replace_fail=:
20916
20917
20918 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20919 func_lo2o ()\
20920 {\
20921 \ case ${1} in\
20922 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20923 \ *) func_lo2o_result=${1} ;;\
20924 \ esac\
20925 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20926 && mv -f "$cfgfile.tmp" "$cfgfile" \
20927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20928 test 0 -eq $? || _lt_function_replace_fail=:
20929
20930
20931 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20932 func_xform ()\
20933 {\
20934 func_xform_result=${1%.*}.lo\
20935 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20936 && mv -f "$cfgfile.tmp" "$cfgfile" \
20937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20938 test 0 -eq $? || _lt_function_replace_fail=:
20939
20940
20941 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20942 func_arith ()\
20943 {\
20944 func_arith_result=$(( $* ))\
20945 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20946 && mv -f "$cfgfile.tmp" "$cfgfile" \
20947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20948 test 0 -eq $? || _lt_function_replace_fail=:
20949
20950
20951 sed -e '/^func_len ()$/,/^} # func_len /c\
20952 func_len ()\
20953 {\
20954 func_len_result=${#1}\
20955 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20956 && mv -f "$cfgfile.tmp" "$cfgfile" \
20957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20958 test 0 -eq $? || _lt_function_replace_fail=:
20959
20960 fi
20961
20962 if test x"$lt_shell_append" = xyes; then
20963 sed -e '/^func_append ()$/,/^} # func_append /c\
20964 func_append ()\
20965 {\
20966 eval "${1}+=\\${2}"\
20967 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20968 && mv -f "$cfgfile.tmp" "$cfgfile" \
20969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20970 test 0 -eq $? || _lt_function_replace_fail=:
20971
20972
20973 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20974 func_append_quoted ()\
20975 {\
20976 \ func_quote_for_eval "${2}"\
20977 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20978 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20979 && mv -f "$cfgfile.tmp" "$cfgfile" \
20980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20981 test 0 -eq $? || _lt_function_replace_fail=:
20982
20983
20984 # Save a `func_append' function call where possible by direct use of '+='
20985 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20986 && mv -f "$cfgfile.tmp" "$cfgfile" \
20987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20988 test 0 -eq $? || _lt_function_replace_fail=:
20989 else
20990 # Save a `func_append' function call even when '+=' is not available
20991 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20992 && mv -f "$cfgfile.tmp" "$cfgfile" \
20993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20994 test 0 -eq $? || _lt_function_replace_fail=:
20995 fi
20996
20997 if test x"$_lt_function_replace_fail" = x":"; then
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20999 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21000 fi
21001
21002
21003 mv -f "$cfgfile" "$ofile" ||
21004 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21005 chmod +x "$ofile"
21006
21007 ;;
21008
21009 esac
21010 done # for ac_tag
21011
21012
21013 as_fn_exit 0
21014 _ACEOF
21015 ac_clean_files=$ac_clean_files_save
21016
21017 test $ac_write_fail = 0 ||
21018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21019
21020
21021 # configure is writing to config.log, and then calls config.status.
21022 # config.status does its own redirection, appending to config.log.
21023 # Unfortunately, on DOS this fails, as config.log is still kept open
21024 # by configure, so config.status won't be able to write to it; its
21025 # output is simply discarded. So we exec the FD to /dev/null,
21026 # effectively closing config.log, so it can be properly (re)opened and
21027 # appended to by config.status. When coming back to configure, we
21028 # need to make the FD available again.
21029 if test "$no_create" != yes; then
21030 ac_cs_success=:
21031 ac_config_status_args=
21032 test "$silent" = yes &&
21033 ac_config_status_args="$ac_config_status_args --quiet"
21034 exec 5>/dev/null
21035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21036 exec 5>>config.log
21037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21038 # would make configure fail if this is the last instruction.
21039 $ac_cs_success || as_fn_exit 1
21040 fi
21041 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21043 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21044 fi
21045
21046