configure revision 1.1.1.14 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXi 1.7.9.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://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 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libXi'
653 PACKAGE_TARNAME='libXi'
654 PACKAGE_VERSION='1.7.9'
655 PACKAGE_STRING='libXi 1.7.9'
656 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 INSTALL_MANPAGES_FALSE
701 INSTALL_MANPAGES_TRUE
702 HAVE_DOCTOOLS_FALSE
703 HAVE_DOCTOOLS_TRUE
704 XFIXES_LIBS
705 XFIXES_CFLAGS
706 XI_LIBS
707 XI_CFLAGS
708 XTMALLOC_ZERO_CFLAGS
709 XMALLOC_ZERO_CFLAGS
710 MALLOC_ZERO_CFLAGS
711 HAVE_ASCIIDOC_FALSE
712 HAVE_ASCIIDOC_TRUE
713 ASCIIDOC
714 HAVE_STYLESHEETS_FALSE
715 HAVE_STYLESHEETS_TRUE
716 XSL_STYLESHEET
717 STYLESHEET_SRCDIR
718 XORG_SGML_PATH
719 HAVE_XSLTPROC_FALSE
720 HAVE_XSLTPROC_TRUE
721 XSLTPROC
722 HAVE_FOP_FALSE
723 HAVE_FOP_TRUE
724 FOP
725 HAVE_XMLTO_FALSE
726 HAVE_XMLTO_TRUE
727 HAVE_XMLTO_TEXT_FALSE
728 HAVE_XMLTO_TEXT_TRUE
729 XMLTO
730 ENABLE_SPECS_FALSE
731 ENABLE_SPECS_TRUE
732 ENABLE_DOCS_FALSE
733 ENABLE_DOCS_TRUE
734 MAN_SUBSTS
735 XORG_MAN_PAGE
736 ADMIN_MAN_DIR
737 DRIVER_MAN_DIR
738 MISC_MAN_DIR
739 FILE_MAN_DIR
740 LIB_MAN_DIR
741 APP_MAN_DIR
742 ADMIN_MAN_SUFFIX
743 DRIVER_MAN_SUFFIX
744 MISC_MAN_SUFFIX
745 FILE_MAN_SUFFIX
746 LIB_MAN_SUFFIX
747 APP_MAN_SUFFIX
748 INSTALL_CMD
749 PKG_CONFIG_LIBDIR
750 PKG_CONFIG_PATH
751 PKG_CONFIG
752 CHANGELOG_CMD
753 STRICT_CFLAGS
754 CWARNFLAGS
755 BASE_CFLAGS
756 CPP
757 LT_SYS_LIBRARY_PATH
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 MANIFEST_TOOL
764 RANLIB
765 ac_ct_AR
766 AR
767 DLLTOOL
768 OBJDUMP
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 EGREP
776 GREP
777 SED
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 host_os
796 host_vendor
797 host_cpu
798 host
799 build_os
800 build_vendor
801 build_cpu
802 build
803 LIBTOOL
804 AM_BACKSLASH
805 AM_DEFAULT_VERBOSITY
806 AM_DEFAULT_V
807 AM_V
808 am__untar
809 am__tar
810 AMTAR
811 am__leading_dot
812 SET_MAKE
813 AWK
814 mkdir_p
815 MKDIR_P
816 INSTALL_STRIP_PROGRAM
817 STRIP
818 install_sh
819 MAKEINFO
820 AUTOHEADER
821 AUTOMAKE
822 AUTOCONF
823 ACLOCAL
824 VERSION
825 PACKAGE
826 CYGPATH_W
827 am__isrc
828 INSTALL_DATA
829 INSTALL_SCRIPT
830 INSTALL_PROGRAM
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 localstatedir
851 sharedstatedir
852 sysconfdir
853 datadir
854 datarootdir
855 libexecdir
856 sbindir
857 bindir
858 program_transform_name
859 prefix
860 exec_prefix
861 PACKAGE_URL
862 PACKAGE_BUGREPORT
863 PACKAGE_STRING
864 PACKAGE_VERSION
865 PACKAGE_TARNAME
866 PACKAGE_NAME
867 PATH_SEPARATOR
868 SHELL'
869 ac_subst_files=''
870 ac_user_opts='
871 enable_option_checking
872 enable_silent_rules
873 enable_shared
874 enable_static
875 with_pic
876 enable_fast_install
877 with_aix_soname
878 enable_dependency_tracking
879 with_gnu_ld
880 with_sysroot
881 enable_libtool_lock
882 enable_selective_werror
883 enable_strict_compilation
884 enable_docs
885 enable_specs
886 with_xmlto
887 with_fop
888 with_xsltproc
889 with_asciidoc
890 enable_malloc0returnsnull
891 '
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 LT_SYS_LIBRARY_PATH
901 CPP
902 PKG_CONFIG
903 PKG_CONFIG_PATH
904 PKG_CONFIG_LIBDIR
905 XMLTO
906 FOP
907 XSLTPROC
908 ASCIIDOC
909 XI_CFLAGS
910 XI_LIBS
911 XFIXES_CFLAGS
912 XFIXES_LIBS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 ac_unrecognized_opts=
919 ac_unrecognized_sep=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1370 fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1417 fi
1418 else
1419 ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures libXi 1.7.9 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of libXi 1.7.9:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --enable-dependency-tracking
1538 do not reject slow dependency extractors
1539 --disable-dependency-tracking
1540 speeds up one-time build
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --disable-selective-werror
1543 Turn off selective compiler errors. (default:
1544 enabled)
1545 --enable-strict-compilation
1546 Enable all warnings from compiler and make them
1547 errors (default: disabled)
1548 --enable-docs Enable building the documentation (default: yes)
1549 --enable-specs Enable building the specs (default: yes)
1550 --enable-malloc0returnsnull
1551 malloc(0) returns NULL (default: auto)
1552
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-aix-soname=aix|svr4|both
1559 shared library versioning (aka "SONAME") variant to
1560 provide on AIX, [default=aix].
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1563 compiler's sysroot if not specified).
1564 --with-xmlto Use xmlto to regenerate documentation (default:
1565 auto)
1566 --with-fop Use fop to regenerate documentation (default: auto)
1567 --with-xsltproc Use xsltproc for the transformation of XML documents
1568 (default: auto)
1569 --with-asciidoc Use asciidoc to regenerate documentation (default:
1570 auto)
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 LT_SYS_LIBRARY_PATH
1581 User-defined run-time library search path.
1582 CPP C preprocessor
1583 PKG_CONFIG path to pkg-config utility
1584 PKG_CONFIG_PATH
1585 directories to add to pkg-config's search path
1586 PKG_CONFIG_LIBDIR
1587 path overriding pkg-config's built-in search path
1588 XMLTO Path to xmlto command
1589 FOP Path to fop command
1590 XSLTPROC Path to xsltproc command
1591 ASCIIDOC Path to asciidoc command
1592 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1593 XI_LIBS linker flags for XI, overriding pkg-config
1594 XFIXES_CFLAGS
1595 C compiler flags for XFIXES, overriding pkg-config
1596 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 libXi configure 1.7.9
1665 generated by GNU Autoconf 2.69
1666
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_compile
1715
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_link ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 test -x conftest$ac_exeext
1744 }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751 fi
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_link
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_cpp ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_cpp
1829
1830 # ac_fn_c_try_run LINENO
1831 # ----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833 # that executables *can* be run.
1834 ac_fn_c_try_run ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848 { { case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_try") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; }; }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: program exited with status $ac_status" >&5
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=$ac_status
1865 fi
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_run
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925 eval "$3=yes"
1926 else
1927 eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1940 # ---------------------------------------------
1941 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_decl ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 as_decl_name=`echo $2|sed 's/ *(.*//'`
1947 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1949 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 int
1957 main ()
1958 {
1959 #ifndef $as_decl_name
1960 #ifdef __cplusplus
1961 (void) $as_decl_use;
1962 #else
1963 (void) $as_decl_name;
1964 #endif
1965 #endif
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_decl
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1987
1988 It was created by libXi $as_me 1.7.9, which was
1989 generated by GNU Autoconf 2.69. Invocation command line was
1990
1991 $ $0 $@
1992
1993 _ACEOF
1994 exec 5>>config.log
1995 {
1996 cat <<_ASUNAME
1997 ## --------- ##
1998 ## Platform. ##
1999 ## --------- ##
2000
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009
2010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017
2018 _ASUNAME
2019
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2026 done
2027 IFS=$as_save_IFS
2028
2029 } >&5
2030
2031 cat >&5 <<_ACEOF
2032
2033
2034 ## ----------- ##
2035 ## Core tests. ##
2036 ## ----------- ##
2037
2038 _ACEOF
2039
2040
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_configure_args=
2047 ac_configure_args0=
2048 ac_configure_args1=
2049 ac_must_keep_next=false
2050 for ac_pass in 1 2
2051 do
2052 for ac_arg
2053 do
2054 case $ac_arg in
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2058 continue ;;
2059 *\'*)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 esac
2062 case $ac_pass in
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 2)
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2068 else
2069 case $ac_arg in
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076 esac
2077 ;;
2078 -* ) ac_must_keep_next=true ;;
2079 esac
2080 fi
2081 as_fn_append ac_configure_args " '$ac_arg'"
2082 ;;
2083 esac
2084 done
2085 done
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2088
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2096 {
2097 echo
2098
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2102 echo
2103 # The following way of writing the cache mishandles newlines in values,
2104 (
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in #(
2108 *${as_nl}*)
2109 case $ac_var in #(
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 esac
2113 case $ac_var in #(
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2117 esac ;;
2118 esac
2119 done
2120 (set) 2>&1 |
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2123 sed -n \
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 ;; #(
2127 *)
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ;;
2130 esac |
2131 sort
2132 )
2133 echo
2134
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2138 echo
2139 for ac_var in $ac_subst_vars
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2167 ## confdefs.h. ##
2168 ## ----------- ##"
2169 echo
2170 cat confdefs.h
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2176 } >&5
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 $as_echo "/* confdefs.h */" > confdefs.h
2190
2191 # Predefined preprocessor variables.
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2215 _ACEOF
2216
2217
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2220 ac_site_file1=NONE
2221 ac_site_file2=NONE
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2228 esac
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2232 else
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2235 fi
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 do
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2243 . "$ac_site_file" \
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5; }
2248 fi
2249 done
2250
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2257 case $cache_file in
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2260 esac
2261 fi
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 >$cache_file
2266 fi
2267
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317 done
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337 ac_config_headers="$ac_config_headers src/config.h"
2338
2339
2340 # Initialize Automake
2341 am__api_version='1.15'
2342
2343 ac_aux_dir=
2344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345 if test -f "$ac_dir/install-sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install-sh -c"
2348 break
2349 elif test -f "$ac_dir/install.sh"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/install.sh -c"
2352 break
2353 elif test -f "$ac_dir/shtool"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/shtool install -c"
2356 break
2357 fi
2358 done
2359 if test -z "$ac_aux_dir"; then
2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 fi
2362
2363 # These three variables are undocumented and unsupported,
2364 # and are intended to be withdrawn in a future Autoconf release.
2365 # They can cause serious problems if a builder's source tree is in a directory
2366 # whose full name contains unusual characters.
2367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
2371
2372 # Find a good install program. We prefer a C program (faster),
2373 # so one script is as good as another. But avoid the broken or
2374 # incompatible versions:
2375 # SysV /etc/install, /usr/sbin/install
2376 # SunOS /usr/etc/install
2377 # IRIX /sbin/install
2378 # AIX /bin/install
2379 # AmigaOS /C/install, which installs bootblocks on floppy discs
2380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383 # OS/2's system install, which has a completely different semantic
2384 # ./install, which can be erroneously created by make from ./install.sh.
2385 # Reject install programs that cannot install multiple files.
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2387 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2388 if test -z "$INSTALL"; then
2389 if ${ac_cv_path_install+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 # Account for people who put trailing slashes in PATH elements.
2398 case $as_dir/ in #((
2399 ./ | .// | /[cC]/* | \
2400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2401 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402 /usr/ucb/* ) ;;
2403 *)
2404 # OSF1 and SCO ODT 3.0 have their own names for install.
2405 # Don't use installbsd from OSF since it installs stuff as root
2406 # by default.
2407 for ac_prog in ginstall scoinst install; do
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2410 if test $ac_prog = install &&
2411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # AIX install. It has an incompatible calling convention.
2413 :
2414 elif test $ac_prog = install &&
2415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # program-specific install script used by HP pwplus--don't use.
2417 :
2418 else
2419 rm -rf conftest.one conftest.two conftest.dir
2420 echo one > conftest.one
2421 echo two > conftest.two
2422 mkdir conftest.dir
2423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2424 test -s conftest.one && test -s conftest.two &&
2425 test -s conftest.dir/conftest.one &&
2426 test -s conftest.dir/conftest.two
2427 then
2428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429 break 3
2430 fi
2431 fi
2432 fi
2433 done
2434 done
2435 ;;
2436 esac
2437
2438 done
2439 IFS=$as_save_IFS
2440
2441 rm -rf conftest.one conftest.two conftest.dir
2442
2443 fi
2444 if test "${ac_cv_path_install+set}" = set; then
2445 INSTALL=$ac_cv_path_install
2446 else
2447 # As a last resort, use the slow shell script. Don't cache a
2448 # value for INSTALL within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the value is a relative name.
2451 INSTALL=$ac_install_sh
2452 fi
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2455 $as_echo "$INSTALL" >&6; }
2456
2457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458 # It thinks the first close brace ends the variable substitution.
2459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2460
2461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2462
2463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2466 $as_echo_n "checking whether build environment is sane... " >&6; }
2467 # Reject unsafe characters in $srcdir or the absolute working directory
2468 # name. Accept space and tab only in the latter.
2469 am_lf='
2470 '
2471 case `pwd` in
2472 *[\\\"\#\$\&\'\`$am_lf]*)
2473 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2474 esac
2475 case $srcdir in
2476 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2477 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2478 esac
2479
2480 # Do 'set' in a subshell so we don't clobber the current shell's
2481 # arguments. Must try -L first in case configure is actually a
2482 # symlink; some systems play weird games with the mod time of symlinks
2483 # (eg FreeBSD returns the mod time of the symlink's containing
2484 # directory).
2485 if (
2486 am_has_slept=no
2487 for am_try in 1 2; do
2488 echo "timestamp, slept: $am_has_slept" > conftest.file
2489 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2490 if test "$*" = "X"; then
2491 # -L didn't work.
2492 set X `ls -t "$srcdir/configure" conftest.file`
2493 fi
2494 if test "$*" != "X $srcdir/configure conftest.file" \
2495 && test "$*" != "X conftest.file $srcdir/configure"; then
2496
2497 # If neither matched, then we have a broken ls. This can happen
2498 # if, for instance, CONFIG_SHELL is bash and it inherits a
2499 # broken ls alias from the environment. This has actually
2500 # happened. Such a system could not be considered "sane".
2501 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2502 alias in your environment" "$LINENO" 5
2503 fi
2504 if test "$2" = conftest.file || test $am_try -eq 2; then
2505 break
2506 fi
2507 # Just in case.
2508 sleep 1
2509 am_has_slept=yes
2510 done
2511 test "$2" = conftest.file
2512 )
2513 then
2514 # Ok.
2515 :
2516 else
2517 as_fn_error $? "newly created file is older than distributed files!
2518 Check your system clock" "$LINENO" 5
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521 $as_echo "yes" >&6; }
2522 # If we didn't sleep, we still need to ensure time stamps of config.status and
2523 # generated files are strictly newer.
2524 am_sleep_pid=
2525 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2526 ( sleep 1 ) &
2527 am_sleep_pid=$!
2528 fi
2529
2530 rm -f conftest.file
2531
2532 test "$program_prefix" != NONE &&
2533 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $.
2538 # By default was `s,x,x', remove it if useless.
2539 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2540 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541
2542 # Expand $ac_aux_dir to an absolute path.
2543 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2544
2545 if test x"${MISSING+set}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549 *)
2550 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551 esac
2552 fi
2553 # Use eval to expand $SHELL
2554 if eval "$MISSING --is-lightweight"; then
2555 am_missing_run="$MISSING "
2556 else
2557 am_missing_run=
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2559 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2560 fi
2561
2562 if test x"${install_sh+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566 *)
2567 install_sh="\${SHELL} $am_aux_dir/install-sh"
2568 esac
2569 fi
2570
2571 # Installed binaries are usually stripped using 'strip' when the user
2572 # run "make install-strip". However 'strip' might not be the right
2573 # tool to use in cross-compilation environments, therefore Automake
2574 # will honor the 'STRIP' environment variable to overrule this program.
2575 if test "$cross_compiling" != no; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_STRIP+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$STRIP"; then
2585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 STRIP=$ac_cv_prog_STRIP
2605 if test -n "$STRIP"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2607 $as_echo "$STRIP" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$ac_cv_prog_STRIP"; then
2616 ac_ct_STRIP=$STRIP
2617 # Extract the first word of "strip", so it can be a program name with args.
2618 set dummy strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$ac_ct_STRIP"; then
2625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_ac_ct_STRIP="strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645 if test -n "$ac_ct_STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2647 $as_echo "$ac_ct_STRIP" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653 if test "x$ac_ct_STRIP" = x; then
2654 STRIP=":"
2655 else
2656 case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662 STRIP=$ac_ct_STRIP
2663 fi
2664 else
2665 STRIP="$ac_cv_prog_STRIP"
2666 fi
2667
2668 fi
2669 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673 if test -z "$MKDIR_P"; then
2674 if ${ac_cv_path_mkdir+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in mkdir gmkdir; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2685 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686 'mkdir (GNU coreutils) '* | \
2687 'mkdir (coreutils) '* | \
2688 'mkdir (fileutils) '4.1*)
2689 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2690 break 3;;
2691 esac
2692 done
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698
2699 test -d ./--version && rmdir ./--version
2700 if test "${ac_cv_path_mkdir+set}" = set; then
2701 MKDIR_P="$ac_cv_path_mkdir -p"
2702 else
2703 # As a last resort, use the slow shell script. Don't cache a
2704 # value for MKDIR_P within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the value is a relative name.
2707 MKDIR_P="$ac_install_sh -d"
2708 fi
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711 $as_echo "$MKDIR_P" >&6; }
2712
2713 for ac_prog in gawk mawk nawk awk
2714 do
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_AWK+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$AWK"; then
2723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_AWK="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 AWK=$ac_cv_prog_AWK
2743 if test -n "$AWK"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2745 $as_echo "$AWK" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 test -n "$AWK" && break
2753 done
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2756 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757 set x ${MAKE-make}
2758 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2759 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat >conftest.make <<\_ACEOF
2763 SHELL = /bin/sh
2764 all:
2765 @echo '@@@%%%=$(MAKE)=@@@%%%'
2766 _ACEOF
2767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2768 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2769 *@@@%%%=?*=@@@%%%*)
2770 eval ac_cv_prog_make_${ac_make}_set=yes;;
2771 *)
2772 eval ac_cv_prog_make_${ac_make}_set=no;;
2773 esac
2774 rm -f conftest.make
2775 fi
2776 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778 $as_echo "yes" >&6; }
2779 SET_MAKE=
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 SET_MAKE="MAKE=${MAKE-make}"
2784 fi
2785
2786 rm -rf .tst 2>/dev/null
2787 mkdir .tst 2>/dev/null
2788 if test -d .tst; then
2789 am__leading_dot=.
2790 else
2791 am__leading_dot=_
2792 fi
2793 rmdir .tst 2>/dev/null
2794
2795 # Check whether --enable-silent-rules was given.
2796 if test "${enable_silent_rules+set}" = set; then :
2797 enableval=$enable_silent_rules;
2798 fi
2799
2800 case $enable_silent_rules in # (((
2801 yes) AM_DEFAULT_VERBOSITY=0;;
2802 no) AM_DEFAULT_VERBOSITY=1;;
2803 *) AM_DEFAULT_VERBOSITY=1;;
2804 esac
2805 am_make=${MAKE-make}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2808 if ${am_cv_make_support_nested_variables+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if $as_echo 'TRUE=$(BAR$(V))
2812 BAR0=false
2813 BAR1=true
2814 V=1
2815 am__doit:
2816 @$(TRUE)
2817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2818 am_cv_make_support_nested_variables=yes
2819 else
2820 am_cv_make_support_nested_variables=no
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2825 if test $am_cv_make_support_nested_variables = yes; then
2826 AM_V='$(V)'
2827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828 else
2829 AM_V=$AM_DEFAULT_VERBOSITY
2830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2831 fi
2832 AM_BACKSLASH='\'
2833
2834 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2835 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2836 # is not polluted with repeated "-I."
2837 am__isrc=' -I$(srcdir)'
2838 # test to see if srcdir already configured
2839 if test -f $srcdir/config.status; then
2840 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2841 fi
2842 fi
2843
2844 # test whether we have cygpath
2845 if test -z "$CYGPATH_W"; then
2846 if (cygpath --version) >/dev/null 2>/dev/null; then
2847 CYGPATH_W='cygpath -w'
2848 else
2849 CYGPATH_W=echo
2850 fi
2851 fi
2852
2853
2854 # Define the identity of the package.
2855 PACKAGE='libXi'
2856 VERSION='1.7.9'
2857
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE "$PACKAGE"
2861 _ACEOF
2862
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define VERSION "$VERSION"
2866 _ACEOF
2867
2868 # Some tools Automake needs.
2869
2870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2871
2872
2873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2874
2875
2876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2877
2878
2879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2880
2881
2882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2883
2884 # For better backward compatibility. To be removed once Automake 1.9.x
2885 # dies out for good. For more background, see:
2886 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2887 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2888 mkdir_p='$(MKDIR_P)'
2889
2890 # We need awk for the "check" target (and possibly the TAP driver). The
2891 # system "awk" is bad on some platforms.
2892 # Always define AMTAR for backward compatibility. Yes, it's still used
2893 # in the wild :-( We should find a proper way to deprecate it ...
2894 AMTAR='$${TAR-tar}'
2895
2896
2897 # We'll loop over all known methods to create a tar archive until one works.
2898 _am_tools='gnutar pax cpio none'
2899
2900 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2901
2902
2903
2904
2905
2906
2907 # POSIX will say in a future version that running "rm -f" with no argument
2908 # is OK; and we want to be able to make that assumption in our Makefile
2909 # recipes. So use an aggressive probe to check that the usage we want is
2910 # actually supported "in the wild" to an acceptable degree.
2911 # See automake bug#10828.
2912 # To make any issue more visible, cause the running configure to be aborted
2913 # by default if the 'rm' program in use doesn't match our expectations; the
2914 # user can still override this though.
2915 if rm -f && rm -fr && rm -rf; then : OK; else
2916 cat >&2 <<'END'
2917 Oops!
2918
2919 Your 'rm' program seems unable to run without file operands specified
2920 on the command line, even when the '-f' option is present. This is contrary
2921 to the behaviour of most rm programs out there, and not conforming with
2922 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2923
2924 Please tell bug-automake@gnu.org about your system, including the value
2925 of your $PATH and any error possibly output before this message. This
2926 can help us improve future automake versions.
2927
2928 END
2929 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2930 echo 'Configuration will proceed anyway, since you have set the' >&2
2931 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2932 echo >&2
2933 else
2934 cat >&2 <<'END'
2935 Aborting the configuration process, to ensure you take notice of the issue.
2936
2937 You can download and install GNU coreutils to get an 'rm' implementation
2938 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2939
2940 If you want to complete the configuration process using your problematic
2941 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2942 to "yes", and re-run configure.
2943
2944 END
2945 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2946 fi
2947 fi
2948
2949
2950 # Initialize libtool
2951 case `pwd` in
2952 *\ * | *\ *)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2955 esac
2956
2957
2958
2959 macro_version='2.4.6'
2960 macro_revision='2.4.6'
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974 ltmain=$ac_aux_dir/ltmain.sh
2975
2976 # Make sure we can run config.sub.
2977 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2978 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2981 $as_echo_n "checking build system type... " >&6; }
2982 if ${ac_cv_build+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 ac_build_alias=$build_alias
2986 test "x$ac_build_alias" = x &&
2987 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2988 test "x$ac_build_alias" = x &&
2989 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2990 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2992
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2995 $as_echo "$ac_cv_build" >&6; }
2996 case $ac_cv_build in
2997 *-*-*) ;;
2998 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2999 esac
3000 build=$ac_cv_build
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_build
3003 shift
3004 build_cpu=$1
3005 build_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 build_os=$*
3010 IFS=$ac_save_IFS
3011 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3012
3013
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3015 $as_echo_n "checking host system type... " >&6; }
3016 if ${ac_cv_host+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test "x$host_alias" = x; then
3020 ac_cv_host=$ac_cv_build
3021 else
3022 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3023 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3024 fi
3025
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3028 $as_echo "$ac_cv_host" >&6; }
3029 case $ac_cv_host in
3030 *-*-*) ;;
3031 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3032 esac
3033 host=$ac_cv_host
3034 ac_save_IFS=$IFS; IFS='-'
3035 set x $ac_cv_host
3036 shift
3037 host_cpu=$1
3038 host_vendor=$2
3039 shift; shift
3040 # Remember, the first character of IFS is used to create $*,
3041 # except with old shells:
3042 host_os=$*
3043 IFS=$ac_save_IFS
3044 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3045
3046
3047 # Backslashify metacharacters that are still active within
3048 # double-quoted strings.
3049 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3050
3051 # Same as above, but do not quote variable references.
3052 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3053
3054 # Sed substitution to delay expansion of an escaped shell variable in a
3055 # double_quote_subst'ed string.
3056 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3057
3058 # Sed substitution to delay expansion of an escaped single quote.
3059 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3060
3061 # Sed substitution to avoid accidental globbing in evaled expressions
3062 no_glob_subst='s/\*/\\\*/g'
3063
3064 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3069 $as_echo_n "checking how to print strings... " >&6; }
3070 # Test print first, because it will be a builtin if present.
3071 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3072 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3073 ECHO='print -r --'
3074 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3075 ECHO='printf %s\n'
3076 else
3077 # Use this function as a fallback that always works.
3078 func_fallback_echo ()
3079 {
3080 eval 'cat <<_LTECHO_EOF
3081 $1
3082 _LTECHO_EOF'
3083 }
3084 ECHO='func_fallback_echo'
3085 fi
3086
3087 # func_echo_all arg...
3088 # Invoke $ECHO with all args, space-separated.
3089 func_echo_all ()
3090 {
3091 $ECHO ""
3092 }
3093
3094 case $ECHO in
3095 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3096 $as_echo "printf" >&6; } ;;
3097 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3098 $as_echo "print -r" >&6; } ;;
3099 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3100 $as_echo "cat" >&6; } ;;
3101 esac
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116 DEPDIR="${am__leading_dot}deps"
3117
3118 ac_config_commands="$ac_config_commands depfiles"
3119
3120
3121 am_make=${MAKE-make}
3122 cat > confinc << 'END'
3123 am__doit:
3124 @echo this is the am__doit target
3125 .PHONY: am__doit
3126 END
3127 # If we don't find an include directive, just comment out the code.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3130 am__include="#"
3131 am__quote=
3132 _am_result=none
3133 # First try GNU make style include.
3134 echo "include confinc" > confmf
3135 # Ignore all kinds of additional output from 'make'.
3136 case `$am_make -s -f confmf 2> /dev/null` in #(
3137 *the\ am__doit\ target*)
3138 am__include=include
3139 am__quote=
3140 _am_result=GNU
3141 ;;
3142 esac
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145 echo '.include "confinc"' > confmf
3146 case `$am_make -s -f confmf 2> /dev/null` in #(
3147 *the\ am__doit\ target*)
3148 am__include=.include
3149 am__quote="\""
3150 _am_result=BSD
3151 ;;
3152 esac
3153 fi
3154
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3157 $as_echo "$_am_result" >&6; }
3158 rm -f confinc confmf
3159
3160 # Check whether --enable-dependency-tracking was given.
3161 if test "${enable_dependency_tracking+set}" = set; then :
3162 enableval=$enable_dependency_tracking;
3163 fi
3164
3165 if test "x$enable_dependency_tracking" != xno; then
3166 am_depcomp="$ac_aux_dir/depcomp"
3167 AMDEPBACKSLASH='\'
3168 am__nodep='_no'
3169 fi
3170 if test "x$enable_dependency_tracking" != xno; then
3171 AMDEP_TRUE=
3172 AMDEP_FALSE='#'
3173 else
3174 AMDEP_TRUE='#'
3175 AMDEP_FALSE=
3176 fi
3177
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 fi
3223 if test -z "$ac_cv_prog_CC"; then
3224 ac_ct_CC=$CC
3225 # Extract the first word of "gcc", so it can be a program name with args.
3226 set dummy gcc; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_CC="gcc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255 $as_echo "$ac_ct_CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3271 fi
3272 else
3273 CC="$ac_cv_prog_CC"
3274 fi
3275
3276 if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}cc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="${ac_tool_prefix}cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 fi
3317 if test -z "$CC"; then
3318 # Extract the first word of "cc", so it can be a program name with args.
3319 set dummy cc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 ac_prog_rejected=no
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3337 ac_prog_rejected=yes
3338 continue
3339 fi
3340 ac_cv_prog_CC="cc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 if test $ac_prog_rejected = yes; then
3349 # We found a bogon in the path, so make sure we never use it.
3350 set dummy $ac_cv_prog_CC
3351 shift
3352 if test $# != 0; then
3353 # We chose a different compiler from the bogus one.
3354 # However, it has the same basename, so the bogon will be chosen
3355 # first if we set CC to just the basename; use the full file name.
3356 shift
3357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358 fi
3359 fi
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 for ac_prog in cl.exe
3376 do
3377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_CC+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 test -n "$CC" && break
3415 done
3416 fi
3417 if test -z "$CC"; then
3418 ac_ct_CC=$CC
3419 for ac_prog in cl.exe
3420 do
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422 set dummy $ac_prog; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_ac_ct_CC="$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458 test -n "$ac_ct_CC" && break
3459 done
3460
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3471 fi
3472 fi
3473
3474 fi
3475
3476
3477 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details" "$LINENO" 5; }
3481
3482 # Provide some information about the compiler.
3483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 set X $ac_compile
3485 ac_compiler=$2
3486 for ac_option in --version -v -V -qversion; do
3487 { { ac_try="$ac_compiler $ac_option >&5"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495 ac_status=$?
3496 if test -s conftest.err; then
3497 sed '10a\
3498 ... rest of stderr output deleted ...
3499 10q' conftest.err >conftest.er1
3500 cat conftest.er1 >&5
3501 fi
3502 rm -f conftest.er1 conftest.err
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 done
3506
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3522 # of exeext.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524 $as_echo_n "checking whether the C compiler works... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530 ac_rmfiles=
3531 for ac_file in $ac_files
3532 do
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 esac
3537 done
3538 rm -f $ac_rmfiles
3539
3540 if { { ac_try="$ac_link_default"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link_default") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3555 # Autoconf.
3556 for ac_file in $ac_files ''
3557 do
3558 test -f "$ac_file" || continue
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561 ;;
3562 [ab].out )
3563 # We found the default executable, but exeext='' is most
3564 # certainly right.
3565 break;;
3566 *.* )
3567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568 then :; else
3569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570 fi
3571 # We set ac_cv_exeext here because the later test for it is not
3572 # safe: cross compilers may not add the suffix if given an `-o'
3573 # argument, so we may need to know it at that point already.
3574 # Even if this section looks crufty: it has the advantage of
3575 # actually working.
3576 break;;
3577 * )
3578 break;;
3579 esac
3580 done
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583 else
3584 ac_file=''
3585 fi
3586 if test -z "$ac_file"; then :
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error 77 "C compiler cannot create executables
3595 See \`config.log' for more details" "$LINENO" 5; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3601 $as_echo_n "checking for C compiler default output file name... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3603 $as_echo "$ac_file" >&6; }
3604 ac_exeext=$ac_cv_exeext
3605
3606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609 $as_echo_n "checking for suffix of executables... " >&6; }
3610 if { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; then :
3621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3623 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 # `rm'.
3625 for ac_file in conftest.exe conftest conftest.*; do
3626 test -f "$ac_file" || continue
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 break;;
3631 * ) break;;
3632 esac
3633 done
3634 else
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3638 See \`config.log' for more details" "$LINENO" 5; }
3639 fi
3640 rm -f conftest conftest$ac_cv_exeext
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642 $as_echo "$ac_cv_exeext" >&6; }
3643
3644 rm -f conftest.$ac_ext
3645 EXEEXT=$ac_cv_exeext
3646 ac_exeext=$EXEEXT
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <stdio.h>
3650 int
3651 main ()
3652 {
3653 FILE *f = fopen ("conftest.out", "w");
3654 return ferror (f) || fclose (f) != 0;
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files="$ac_clean_files conftest.out"
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664 $as_echo_n "checking whether we are cross compiling... " >&6; }
3665 if test "$cross_compiling" != yes; then
3666 { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }
3677 if { ac_try='./conftest$ac_cv_exeext'
3678 { { case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_try") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; }; then
3688 cross_compiling=no
3689 else
3690 if test "$cross_compiling" = maybe; then
3691 cross_compiling=yes
3692 else
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $? "cannot run C compiled programs.
3696 If you meant to cross compile, use \`--host'.
3697 See \`config.log' for more details" "$LINENO" 5; }
3698 fi
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702 $as_echo "$cross_compiling" >&6; }
3703
3704 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3705 ac_clean_files=$ac_clean_files_save
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3707 $as_echo_n "checking for suffix of object files... " >&6; }
3708 if ${ac_cv_objext+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.o conftest.obj
3723 if { { ac_try="$ac_compile"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compile") 2>&5
3731 ac_status=$?
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; then :
3734 for ac_file in conftest.o conftest.obj conftest.*; do
3735 test -f "$ac_file" || continue;
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739 break;;
3740 esac
3741 done
3742 else
3743 $as_echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot compute suffix of object files: cannot compile
3749 See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3754 $as_echo "$ac_cv_objext" >&6; }
3755 OBJEXT=$ac_cv_objext
3756 ac_objext=$OBJEXT
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3759 if ${ac_cv_c_compiler_gnu+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768 #ifndef __GNUC__
3769 choke me
3770 #endif
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_compiler_gnu=yes
3778 else
3779 ac_compiler_gnu=no
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3786 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3787 if test $ac_compiler_gnu = yes; then
3788 GCC=yes
3789 else
3790 GCC=
3791 fi
3792 ac_test_CFLAGS=${CFLAGS+set}
3793 ac_save_CFLAGS=$CFLAGS
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3795 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3796 if ${ac_cv_prog_cc_g+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 ac_save_c_werror_flag=$ac_c_werror_flag
3800 ac_c_werror_flag=yes
3801 ac_cv_prog_cc_g=no
3802 CFLAGS="-g"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_g=yes
3816 else
3817 CFLAGS=""
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830
3831 else
3832 ac_c_werror_flag=$ac_save_c_werror_flag
3833 CFLAGS="-g"
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv_prog_cc_g=yes
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_c_werror_flag=$ac_save_c_werror_flag
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3856 $as_echo "$ac_cv_prog_cc_g" >&6; }
3857 if test "$ac_test_CFLAGS" = set; then
3858 CFLAGS=$ac_save_CFLAGS
3859 elif test $ac_cv_prog_cc_g = yes; then
3860 if test "$GCC" = yes; then
3861 CFLAGS="-g -O2"
3862 else
3863 CFLAGS="-g"
3864 fi
3865 else
3866 if test "$GCC" = yes; then
3867 CFLAGS="-O2"
3868 else
3869 CFLAGS=
3870 fi
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3873 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3874 if ${ac_cv_prog_cc_c89+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_cv_prog_cc_c89=no
3878 ac_save_CC=$CC
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <stdarg.h>
3882 #include <stdio.h>
3883 struct stat;
3884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3885 struct buf { int x; };
3886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3887 static char *e (p, i)
3888 char **p;
3889 int i;
3890 {
3891 return p[i];
3892 }
3893 static char *f (char * (*g) (char **, int), char **p, ...)
3894 {
3895 char *s;
3896 va_list v;
3897 va_start (v,p);
3898 s = g (p, va_arg (v,int));
3899 va_end (v);
3900 return s;
3901 }
3902
3903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3904 function prototypes and stuff, but not '\xHH' hex character constants.
3905 These don't provoke an error unfortunately, instead are silently treated
3906 as 'x'. The following induces an error, until -std is added to get
3907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3908 array size at least. It's necessary to write '\x00'==0 to get something
3909 that's true only with -std. */
3910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911
3912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3913 inside strings and character constants. */
3914 #define FOO(x) 'x'
3915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916
3917 int test (int i, double x);
3918 struct s1 {int (*f) (int a);};
3919 struct s2 {int (*f) (double a);};
3920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3921 int argc;
3922 char **argv;
3923 int
3924 main ()
3925 {
3926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933 do
3934 CC="$ac_save_CC $ac_arg"
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_prog_cc_c89=$ac_arg
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext
3939 test "x$ac_cv_prog_cc_c89" != "xno" && break
3940 done
3941 rm -f conftest.$ac_ext
3942 CC=$ac_save_CC
3943
3944 fi
3945 # AC_CACHE_VAL
3946 case "x$ac_cv_prog_cc_c89" in
3947 x)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949 $as_echo "none needed" >&6; } ;;
3950 xno)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3952 $as_echo "unsupported" >&6; } ;;
3953 *)
3954 CC="$CC $ac_cv_prog_cc_c89"
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 esac
3958 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959
3960 fi
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3974 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3975 if ${am_cv_prog_cc_c_o+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main ()
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 # Make sure it works both with $CC and with simple cc.
3990 # Following AC_PROG_CC_C_O, we do the test twice because some
3991 # compilers refuse to overwrite an existing .o file with -o,
3992 # though they will create one.
3993 am_cv_prog_cc_c_o=yes
3994 for am_i in 1 2; do
3995 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3996 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } \
4000 && test -f conftest2.$ac_objext; then
4001 : OK
4002 else
4003 am_cv_prog_cc_c_o=no
4004 break
4005 fi
4006 done
4007 rm -f core conftest*
4008 unset am_i
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4011 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4012 if test "$am_cv_prog_cc_c_o" != yes; then
4013 # Losing compiler, so override with the script.
4014 # FIXME: It is wrong to rewrite CC.
4015 # But if we don't then we get into trouble of one sort or another.
4016 # A longer-term fix would be to have automake use am__CC in this case,
4017 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4018 CC="$am_aux_dir/compile $CC"
4019 fi
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026
4027 depcc="$CC" am_compiler_list=
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4030 $as_echo_n "checking dependency style of $depcc... " >&6; }
4031 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4035 # We make a subdir and do the tests there. Otherwise we can end up
4036 # making bogus files that we don't know about and never remove. For
4037 # instance it was reported that on HP-UX the gcc test will end up
4038 # making a dummy file named 'D' -- because '-MD' means "put the output
4039 # in D".
4040 rm -rf conftest.dir
4041 mkdir conftest.dir
4042 # Copy depcomp to subdir because otherwise we won't find it if we're
4043 # using a relative directory.
4044 cp "$am_depcomp" conftest.dir
4045 cd conftest.dir
4046 # We will build objects and dependencies in a subdirectory because
4047 # it helps to detect inapplicable dependency modes. For instance
4048 # both Tru64's cc and ICC support -MD to output dependencies as a
4049 # side effect of compilation, but ICC will put the dependencies in
4050 # the current directory while Tru64 will put them in the object
4051 # directory.
4052 mkdir sub
4053
4054 am_cv_CC_dependencies_compiler_type=none
4055 if test "$am_compiler_list" = ""; then
4056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4057 fi
4058 am__universal=false
4059 case " $depcc " in #(
4060 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4061 esac
4062
4063 for depmode in $am_compiler_list; do
4064 # Setup a source with many dependencies, because some compilers
4065 # like to wrap large dependency lists on column 80 (with \), and
4066 # we should not choose a depcomp mode which is confused by this.
4067 #
4068 # We need to recreate these files for each test, as the compiler may
4069 # overwrite some of them when testing with obscure command lines.
4070 # This happens at least with the AIX C compiler.
4071 : > sub/conftest.c
4072 for i in 1 2 3 4 5 6; do
4073 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4074 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4075 # Solaris 10 /bin/sh.
4076 echo '/* dummy */' > sub/conftst$i.h
4077 done
4078 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4079
4080 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4081 # mode. It turns out that the SunPro C++ compiler does not properly
4082 # handle '-M -o', and we need to detect this. Also, some Intel
4083 # versions had trouble with output in subdirs.
4084 am__obj=sub/conftest.${OBJEXT-o}
4085 am__minus_obj="-o $am__obj"
4086 case $depmode in
4087 gcc)
4088 # This depmode causes a compiler race in universal mode.
4089 test "$am__universal" = false || continue
4090 ;;
4091 nosideeffect)
4092 # After this tag, mechanisms are not by side-effect, so they'll
4093 # only be used when explicitly requested.
4094 if test "x$enable_dependency_tracking" = xyes; then
4095 continue
4096 else
4097 break
4098 fi
4099 ;;
4100 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4101 # This compiler won't grok '-c -o', but also, the minuso test has
4102 # not run yet. These depmodes are late enough in the game, and
4103 # so weak that their functioning should not be impacted.
4104 am__obj=conftest.${OBJEXT-o}
4105 am__minus_obj=
4106 ;;
4107 none) break ;;
4108 esac
4109 if depmode=$depmode \
4110 source=sub/conftest.c object=$am__obj \
4111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4112 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4113 >/dev/null 2>conftest.err &&
4114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4116 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4118 # icc doesn't choke on unknown options, it will just issue warnings
4119 # or remarks (even with -Werror). So we grep stderr for any message
4120 # that says an option was ignored or not supported.
4121 # When given -MP, icc 7.0 and 7.1 complain thusly:
4122 # icc: Command line warning: ignoring option '-M'; no argument required
4123 # The diagnosis changed in icc 8.0:
4124 # icc: Command line remark: option '-MP' not supported
4125 if (grep 'ignoring option' conftest.err ||
4126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4127 am_cv_CC_dependencies_compiler_type=$depmode
4128 break
4129 fi
4130 fi
4131 done
4132
4133 cd ..
4134 rm -rf conftest.dir
4135 else
4136 am_cv_CC_dependencies_compiler_type=none
4137 fi
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4141 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4143
4144 if
4145 test "x$enable_dependency_tracking" != xno \
4146 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4147 am__fastdepCC_TRUE=
4148 am__fastdepCC_FALSE='#'
4149 else
4150 am__fastdepCC_TRUE='#'
4151 am__fastdepCC_FALSE=
4152 fi
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157 if ${ac_cv_path_SED+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161 for ac_i in 1 2 3 4 5 6 7; do
4162 ac_script="$ac_script$as_nl$ac_script"
4163 done
4164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165 { ac_script=; unset ac_script;}
4166 if test -z "$SED"; then
4167 ac_path_SED_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in sed gsed; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177 as_fn_executable_p "$ac_path_SED" || continue
4178 # Check for GNU ac_path_SED and select it if it is found.
4179 # Check for GNU $ac_path_SED
4180 case `"$ac_path_SED" --version 2>&1` in
4181 *GNU*)
4182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4183 *)
4184 ac_count=0
4185 $as_echo_n 0123456789 >"conftest.in"
4186 while :
4187 do
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo '' >> "conftest.nl"
4192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_SED_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_SED="$ac_path_SED"
4198 ac_path_SED_max=$ac_count
4199 fi
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4202 done
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 esac
4205
4206 $ac_path_SED_found && break 3
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211 if test -z "$ac_cv_path_SED"; then
4212 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4213 fi
4214 else
4215 ac_cv_path_SED=$SED
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220 $as_echo "$ac_cv_path_SED" >&6; }
4221 SED="$ac_cv_path_SED"
4222 rm -f conftest.sed
4223
4224 test -z "$SED" && SED=sed
4225 Xsed="$SED -e 1s/^X//"
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239 if ${ac_cv_path_GREP+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -z "$GREP"; then
4243 ac_path_GREP_found=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_prog in grep ggrep; do
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253 as_fn_executable_p "$ac_path_GREP" || continue
4254 # Check for GNU ac_path_GREP and select it if it is found.
4255 # Check for GNU $ac_path_GREP
4256 case `"$ac_path_GREP" --version 2>&1` in
4257 *GNU*)
4258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 *)
4260 ac_count=0
4261 $as_echo_n 0123456789 >"conftest.in"
4262 while :
4263 do
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo 'GREP' >> "conftest.nl"
4268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270 as_fn_arith $ac_count + 1 && ac_count=$as_val
4271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_GREP="$ac_path_GREP"
4274 ac_path_GREP_max=$ac_count
4275 fi
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4278 done
4279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282 $ac_path_GREP_found && break 3
4283 done
4284 done
4285 done
4286 IFS=$as_save_IFS
4287 if test -z "$ac_cv_path_GREP"; then
4288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 fi
4290 else
4291 ac_cv_path_GREP=$GREP
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296 $as_echo "$ac_cv_path_GREP" >&6; }
4297 GREP="$ac_cv_path_GREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301 $as_echo_n "checking for egrep... " >&6; }
4302 if ${ac_cv_path_EGREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306 then ac_cv_path_EGREP="$GREP -E"
4307 else
4308 if test -z "$EGREP"; then
4309 ac_path_EGREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in egrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319 as_fn_executable_p "$ac_path_EGREP" || continue
4320 # Check for GNU ac_path_EGREP and select it if it is found.
4321 # Check for GNU $ac_path_EGREP
4322 case `"$ac_path_EGREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'EGREP' >> "conftest.nl"
4334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_EGREP="$ac_path_EGREP"
4340 ac_path_EGREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_EGREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_EGREP"; then
4354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_EGREP=$EGREP
4358 fi
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363 $as_echo "$ac_cv_path_EGREP" >&6; }
4364 EGREP="$ac_cv_path_EGREP"
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368 $as_echo_n "checking for fgrep... " >&6; }
4369 if ${ac_cv_path_FGREP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373 then ac_cv_path_FGREP="$GREP -F"
4374 else
4375 if test -z "$FGREP"; then
4376 ac_path_FGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in fgrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 as_fn_executable_p "$ac_path_FGREP" || continue
4387 # Check for GNU ac_path_FGREP and select it if it is found.
4388 # Check for GNU $ac_path_FGREP
4389 case `"$ac_path_FGREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4392 *)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'FGREP' >> "conftest.nl"
4401 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_FGREP="$ac_path_FGREP"
4407 ac_path_FGREP_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415 $ac_path_FGREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_FGREP"; then
4421 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422 fi
4423 else
4424 ac_cv_path_FGREP=$FGREP
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430 $as_echo "$ac_cv_path_FGREP" >&6; }
4431 FGREP="$ac_cv_path_FGREP"
4432
4433
4434 test -z "$GREP" && GREP=grep
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 # Check whether --with-gnu-ld was given.
4455 if test "${with_gnu_ld+set}" = set; then :
4456 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4457 else
4458 with_gnu_ld=no
4459 fi
4460
4461 ac_prog=ld
4462 if test yes = "$GCC"; then
4463 # Check if gcc -print-prog-name=ld gives a path.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4465 $as_echo_n "checking for ld used by $CC... " >&6; }
4466 case $host in
4467 *-*-mingw*)
4468 # gcc leaves a trailing carriage return, which upsets mingw
4469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4470 *)
4471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4472 esac
4473 case $ac_prog in
4474 # Accept absolute paths.
4475 [\\/]* | ?:[\\/]*)
4476 re_direlt='/[^/][^/]*/\.\./'
4477 # Canonicalize the pathname of ld
4478 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4479 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4480 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4481 done
4482 test -z "$LD" && LD=$ac_prog
4483 ;;
4484 "")
4485 # If it fails, then pretend we aren't using GCC.
4486 ac_prog=ld
4487 ;;
4488 *)
4489 # If it is relative, then search for the first ld in PATH.
4490 with_gnu_ld=unknown
4491 ;;
4492 esac
4493 elif test yes = "$with_gnu_ld"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4495 $as_echo_n "checking for GNU ld... " >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4498 $as_echo_n "checking for non-GNU ld... " >&6; }
4499 fi
4500 if ${lt_cv_path_LD+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -z "$LD"; then
4504 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4505 for ac_dir in $PATH; do
4506 IFS=$lt_save_ifs
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4509 lt_cv_path_LD=$ac_dir/$ac_prog
4510 # Check to see if the program is GNU ld. I'd rather use --version,
4511 # but apparently some variants of GNU ld only accept -v.
4512 # Break only if it was the GNU/non-GNU ld that we prefer.
4513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4514 *GNU* | *'with BFD'*)
4515 test no != "$with_gnu_ld" && break
4516 ;;
4517 *)
4518 test yes != "$with_gnu_ld" && break
4519 ;;
4520 esac
4521 fi
4522 done
4523 IFS=$lt_save_ifs
4524 else
4525 lt_cv_path_LD=$LD # Let the user override the test with a path.
4526 fi
4527 fi
4528
4529 LD=$lt_cv_path_LD
4530 if test -n "$LD"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4532 $as_echo "$LD" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4539 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4540 if ${lt_cv_prog_gnu_ld+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4544 case `$LD -v 2>&1 </dev/null` in
4545 *GNU* | *'with BFD'*)
4546 lt_cv_prog_gnu_ld=yes
4547 ;;
4548 *)
4549 lt_cv_prog_gnu_ld=no
4550 ;;
4551 esac
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4554 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4555 with_gnu_ld=$lt_cv_prog_gnu_ld
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4566 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4567 if ${lt_cv_path_NM+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$NM"; then
4571 # Let the user override the test.
4572 lt_cv_path_NM=$NM
4573 else
4574 lt_nm_to_check=${ac_tool_prefix}nm
4575 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4576 lt_nm_to_check="$lt_nm_to_check nm"
4577 fi
4578 for lt_tmp_nm in $lt_nm_to_check; do
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4581 IFS=$lt_save_ifs
4582 test -z "$ac_dir" && ac_dir=.
4583 tmp_nm=$ac_dir/$lt_tmp_nm
4584 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4585 # Check to see if the nm accepts a BSD-compat flag.
4586 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4587 # nm: unknown option "B" ignored
4588 # Tru64's nm complains that /dev/null is an invalid object file
4589 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4590 case $build_os in
4591 mingw*) lt_bad_file=conftest.nm/nofile ;;
4592 *) lt_bad_file=/dev/null ;;
4593 esac
4594 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4595 *$lt_bad_file* | *'Invalid file or object type'*)
4596 lt_cv_path_NM="$tmp_nm -B"
4597 break 2
4598 ;;
4599 *)
4600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601 */dev/null*)
4602 lt_cv_path_NM="$tmp_nm -p"
4603 break 2
4604 ;;
4605 *)
4606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607 continue # so that we can try to find one that supports BSD flags
4608 ;;
4609 esac
4610 ;;
4611 esac
4612 fi
4613 done
4614 IFS=$lt_save_ifs
4615 done
4616 : ${lt_cv_path_NM=no}
4617 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620 $as_echo "$lt_cv_path_NM" >&6; }
4621 if test no != "$lt_cv_path_NM"; then
4622 NM=$lt_cv_path_NM
4623 else
4624 # Didn't find any BSD compatible name lister, look for dumpbin.
4625 if test -n "$DUMPBIN"; then :
4626 # Let the user override the test.
4627 else
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in dumpbin "link -dump"
4630 do
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_DUMPBIN+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$DUMPBIN"; then
4639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 DUMPBIN=$ac_cv_prog_DUMPBIN
4659 if test -n "$DUMPBIN"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661 $as_echo "$DUMPBIN" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 test -n "$DUMPBIN" && break
4669 done
4670 fi
4671 if test -z "$DUMPBIN"; then
4672 ac_ct_DUMPBIN=$DUMPBIN
4673 for ac_prog in dumpbin "link -dump"
4674 do
4675 # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_DUMPBIN"; then
4683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705 $as_echo "$ac_ct_DUMPBIN" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 test -n "$ac_ct_DUMPBIN" && break
4713 done
4714
4715 if test "x$ac_ct_DUMPBIN" = x; then
4716 DUMPBIN=":"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 DUMPBIN=$ac_ct_DUMPBIN
4725 fi
4726 fi
4727
4728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4729 *COFF*)
4730 DUMPBIN="$DUMPBIN -symbols -headers"
4731 ;;
4732 *)
4733 DUMPBIN=:
4734 ;;
4735 esac
4736 fi
4737
4738 if test : != "$DUMPBIN"; then
4739 NM=$DUMPBIN
4740 fi
4741 fi
4742 test -z "$NM" && NM=nm
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751 if ${lt_cv_nm_interface+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 lt_cv_nm_interface="BSD nm"
4755 echo "int some_variable = 0;" > conftest.$ac_ext
4756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757 (eval "$ac_compile" 2>conftest.err)
4758 cat conftest.err >&5
4759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761 cat conftest.err >&5
4762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763 cat conftest.out >&5
4764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765 lt_cv_nm_interface="MS dumpbin"
4766 fi
4767 rm -f conftest*
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770 $as_echo "$lt_cv_nm_interface" >&6; }
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773 $as_echo_n "checking whether ln -s works... " >&6; }
4774 LN_S=$as_ln_s
4775 if test "$LN_S" = "ln -s"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780 $as_echo "no, using $LN_S" >&6; }
4781 fi
4782
4783 # find the maximum length of command line arguments
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4785 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4786 if ${lt_cv_sys_max_cmd_len+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 i=0
4790 teststring=ABCD
4791
4792 case $build_os in
4793 msdosdjgpp*)
4794 # On DJGPP, this test can blow up pretty badly due to problems in libc
4795 # (any single argument exceeding 2000 bytes causes a buffer overrun
4796 # during glob expansion). Even if it were fixed, the result of this
4797 # check would be larger than it should be.
4798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4799 ;;
4800
4801 gnu*)
4802 # Under GNU Hurd, this test is not required because there is
4803 # no limit to the length of command line arguments.
4804 # Libtool will interpret -1 as no limit whatsoever
4805 lt_cv_sys_max_cmd_len=-1;
4806 ;;
4807
4808 cygwin* | mingw* | cegcc*)
4809 # On Win9x/ME, this test blows up -- it succeeds, but takes
4810 # about 5 minutes as the teststring grows exponentially.
4811 # Worse, since 9x/ME are not pre-emptively multitasking,
4812 # you end up with a "frozen" computer, even though with patience
4813 # the test eventually succeeds (with a max line length of 256k).
4814 # Instead, let's just punt: use the minimum linelength reported by
4815 # all of the supported platforms: 8192 (on NT/2K/XP).
4816 lt_cv_sys_max_cmd_len=8192;
4817 ;;
4818
4819 mint*)
4820 # On MiNT this can take a long time and run out of memory.
4821 lt_cv_sys_max_cmd_len=8192;
4822 ;;
4823
4824 amigaos*)
4825 # On AmigaOS with pdksh, this test takes hours, literally.
4826 # So we just punt and use a minimum line length of 8192.
4827 lt_cv_sys_max_cmd_len=8192;
4828 ;;
4829
4830 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4831 # This has been around since 386BSD, at least. Likely further.
4832 if test -x /sbin/sysctl; then
4833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4834 elif test -x /usr/sbin/sysctl; then
4835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4836 else
4837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4838 fi
4839 # And add a safety zone
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4842 ;;
4843
4844 interix*)
4845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4846 lt_cv_sys_max_cmd_len=196608
4847 ;;
4848
4849 os2*)
4850 # The test takes a long time on OS/2.
4851 lt_cv_sys_max_cmd_len=8192
4852 ;;
4853
4854 osf*)
4855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857 # nice to cause kernel panics so lets avoid the loop below.
4858 # First set a reasonable default.
4859 lt_cv_sys_max_cmd_len=16384
4860 #
4861 if test -x /sbin/sysconfig; then
4862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 esac
4865 fi
4866 ;;
4867 sco3.2v5*)
4868 lt_cv_sys_max_cmd_len=102400
4869 ;;
4870 sysv5* | sco5v6* | sysv4.2uw2*)
4871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872 if test -n "$kargmax"; then
4873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4874 else
4875 lt_cv_sys_max_cmd_len=32768
4876 fi
4877 ;;
4878 *)
4879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880 if test -n "$lt_cv_sys_max_cmd_len" && \
4881 test undefined != "$lt_cv_sys_max_cmd_len"; then
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884 else
4885 # Make teststring a little bigger before we do anything with it.
4886 # a 1K string should be a reasonable start.
4887 for i in 1 2 3 4 5 6 7 8; do
4888 teststring=$teststring$teststring
4889 done
4890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4891 # If test is not a shell built-in, we'll probably end up computing a
4892 # maximum length that is only half of the actual maximum length, but
4893 # we can't tell.
4894 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4895 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4896 test 17 != "$i" # 1/2 MB should be enough
4897 do
4898 i=`expr $i + 1`
4899 teststring=$teststring$teststring
4900 done
4901 # Only check the string length outside the loop.
4902 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4903 teststring=
4904 # Add a significant safety factor because C++ compilers can tack on
4905 # massive amounts of additional arguments before passing them to the
4906 # linker. It appears as though 1/2 is a usable value.
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4908 fi
4909 ;;
4910 esac
4911
4912 fi
4913
4914 if test -n "$lt_cv_sys_max_cmd_len"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4916 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4919 $as_echo "none" >&6; }
4920 fi
4921 max_cmd_len=$lt_cv_sys_max_cmd_len
4922
4923
4924
4925
4926
4927
4928 : ${CP="cp -f"}
4929 : ${MV="mv -f"}
4930 : ${RM="rm -f"}
4931
4932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4933 lt_unset=unset
4934 else
4935 lt_unset=false
4936 fi
4937
4938
4939
4940
4941
4942 # test EBCDIC or ASCII
4943 case `echo X|tr X '\101'` in
4944 A) # ASCII based system
4945 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4946 lt_SP2NL='tr \040 \012'
4947 lt_NL2SP='tr \015\012 \040\040'
4948 ;;
4949 *) # EBCDIC based system
4950 lt_SP2NL='tr \100 \n'
4951 lt_NL2SP='tr \r\n \100\100'
4952 ;;
4953 esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4964 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4965 if ${lt_cv_to_host_file_cmd+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 case $host in
4969 *-*-mingw* )
4970 case $build in
4971 *-*-mingw* ) # actually msys
4972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4973 ;;
4974 *-*-cygwin* )
4975 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4976 ;;
4977 * ) # otherwise, assume *nix
4978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4979 ;;
4980 esac
4981 ;;
4982 *-*-cygwin* )
4983 case $build in
4984 *-*-mingw* ) # actually msys
4985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4986 ;;
4987 *-*-cygwin* )
4988 lt_cv_to_host_file_cmd=func_convert_file_noop
4989 ;;
4990 * ) # otherwise, assume *nix
4991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4992 ;;
4993 esac
4994 ;;
4995 * ) # unhandled hosts (and "normal" native builds)
4996 lt_cv_to_host_file_cmd=func_convert_file_noop
4997 ;;
4998 esac
4999
5000 fi
5001
5002 to_host_file_cmd=$lt_cv_to_host_file_cmd
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5004 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5011 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5012 if ${lt_cv_to_tool_file_cmd+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 #assume ordinary cross tools, or native build.
5016 lt_cv_to_tool_file_cmd=func_convert_file_noop
5017 case $host in
5018 *-*-mingw* )
5019 case $build in
5020 *-*-mingw* ) # actually msys
5021 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5022 ;;
5023 esac
5024 ;;
5025 esac
5026
5027 fi
5028
5029 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5031 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5032
5033
5034
5035
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5038 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5039 if ${lt_cv_ld_reload_flag+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 lt_cv_ld_reload_flag='-r'
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5045 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5046 reload_flag=$lt_cv_ld_reload_flag
5047 case $reload_flag in
5048 "" | " "*) ;;
5049 *) reload_flag=" $reload_flag" ;;
5050 esac
5051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5052 case $host_os in
5053 cygwin* | mingw* | pw32* | cegcc*)
5054 if test yes != "$GCC"; then
5055 reload_cmds=false
5056 fi
5057 ;;
5058 darwin*)
5059 if test yes = "$GCC"; then
5060 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5061 else
5062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063 fi
5064 ;;
5065 esac
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5077 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_OBJDUMP+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$OBJDUMP"; then
5084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 OBJDUMP=$ac_cv_prog_OBJDUMP
5104 if test -n "$OBJDUMP"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5106 $as_echo "$OBJDUMP" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112
5113 fi
5114 if test -z "$ac_cv_prog_OBJDUMP"; then
5115 ac_ct_OBJDUMP=$OBJDUMP
5116 # Extract the first word of "objdump", so it can be a program name with args.
5117 set dummy objdump; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$ac_ct_OBJDUMP"; then
5124 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5144 if test -n "$ac_ct_OBJDUMP"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5146 $as_echo "$ac_ct_OBJDUMP" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152 if test "x$ac_ct_OBJDUMP" = x; then
5153 OBJDUMP="false"
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5160 esac
5161 OBJDUMP=$ac_ct_OBJDUMP
5162 fi
5163 else
5164 OBJDUMP="$ac_cv_prog_OBJDUMP"
5165 fi
5166
5167 test -z "$OBJDUMP" && OBJDUMP=objdump
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5178 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5179 if ${lt_cv_deplibs_check_method+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 lt_cv_file_magic_cmd='$MAGIC_CMD'
5183 lt_cv_file_magic_test_file=
5184 lt_cv_deplibs_check_method='unknown'
5185 # Need to set the preceding variable on all platforms that support
5186 # interlibrary dependencies.
5187 # 'none' -- dependencies not supported.
5188 # 'unknown' -- same as none, but documents that we really don't know.
5189 # 'pass_all' -- all dependencies passed with no checks.
5190 # 'test_compile' -- check by making test program.
5191 # 'file_magic [[regex]]' -- check by looking for files in library path
5192 # that responds to the $file_magic_cmd with a given extended regex.
5193 # If you have 'file' or equivalent on your system and you're not sure
5194 # whether 'pass_all' will *always* work, you probably want this one.
5195
5196 case $host_os in
5197 aix[4-9]*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200
5201 beos*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204
5205 bsdi[45]*)
5206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5207 lt_cv_file_magic_cmd='/usr/bin/file -L'
5208 lt_cv_file_magic_test_file=/shlib/libc.so
5209 ;;
5210
5211 cygwin*)
5212 # func_win32_libid is a shell function defined in ltmain.sh
5213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5214 lt_cv_file_magic_cmd='func_win32_libid'
5215 ;;
5216
5217 mingw* | pw32*)
5218 # Base MSYS/MinGW do not provide the 'file' command needed by
5219 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5220 # unless we find 'file', for example because we are cross-compiling.
5221 if ( file / ) >/dev/null 2>&1; then
5222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223 lt_cv_file_magic_cmd='func_win32_libid'
5224 else
5225 # Keep this pattern in sync with the one in func_win32_libid.
5226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5227 lt_cv_file_magic_cmd='$OBJDUMP -f'
5228 fi
5229 ;;
5230
5231 cegcc*)
5232 # use the weaker test based on 'objdump'. See mingw*.
5233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 ;;
5236
5237 darwin* | rhapsody*)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 freebsd* | dragonfly*)
5242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243 case $host_cpu in
5244 i*86 )
5245 # Not sure whether the presence of OpenBSD here was a mistake.
5246 # Let's accept both of them until this is cleared up.
5247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250 ;;
5251 esac
5252 else
5253 lt_cv_deplibs_check_method=pass_all
5254 fi
5255 ;;
5256
5257 haiku*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 hpux10.20* | hpux11*)
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 case $host_cpu in
5264 ia64*)
5265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267 ;;
5268 hppa*64*)
5269 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]'
5270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271 ;;
5272 *)
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275 ;;
5276 esac
5277 ;;
5278
5279 interix[3-9]*)
5280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282 ;;
5283
5284 irix5* | irix6* | nonstopux*)
5285 case $LD in
5286 *-32|*"-32 ") libmagic=32-bit;;
5287 *-n32|*"-n32 ") libmagic=N32;;
5288 *-64|*"-64 ") libmagic=64-bit;;
5289 *) libmagic=never-match;;
5290 esac
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 # This must be glibc/ELF.
5295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 netbsd*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302 else
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304 fi
5305 ;;
5306
5307 newos6*)
5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309 lt_cv_file_magic_cmd=/usr/bin/file
5310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311 ;;
5312
5313 *nto* | *qnx*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317 openbsd* | bitrig*)
5318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320 else
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 fi
5323 ;;
5324
5325 osf3* | osf4* | osf5*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329 rdos*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 solaris*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340
5341 sysv4 | sysv4.3*)
5342 case $host_vendor in
5343 motorola)
5344 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]'
5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346 ;;
5347 ncr)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350 sequent)
5351 lt_cv_file_magic_cmd='/bin/file'
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353 ;;
5354 sni)
5355 lt_cv_file_magic_cmd='/bin/file'
5356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357 lt_cv_file_magic_test_file=/lib/libc.so
5358 ;;
5359 siemens)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362 pc)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 esac
5366 ;;
5367
5368 tpf*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371 os2*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374 esac
5375
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5378 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5379
5380 file_magic_glob=
5381 want_nocaseglob=no
5382 if test "$build" = "$host"; then
5383 case $host_os in
5384 mingw* | pw32*)
5385 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5386 want_nocaseglob=yes
5387 else
5388 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5389 fi
5390 ;;
5391 esac
5392 fi
5393
5394 file_magic_cmd=$lt_cv_file_magic_cmd
5395 deplibs_check_method=$lt_cv_deplibs_check_method
5396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_DLLTOOL+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$DLLTOOL"; then
5428 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 DLLTOOL=$ac_cv_prog_DLLTOOL
5448 if test -n "$DLLTOOL"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5450 $as_echo "$DLLTOOL" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 fi
5458 if test -z "$ac_cv_prog_DLLTOOL"; then
5459 ac_ct_DLLTOOL=$DLLTOOL
5460 # Extract the first word of "dlltool", so it can be a program name with args.
5461 set dummy dlltool; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_DLLTOOL"; then
5468 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5488 if test -n "$ac_ct_DLLTOOL"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5490 $as_echo "$ac_ct_DLLTOOL" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496 if test "x$ac_ct_DLLTOOL" = x; then
5497 DLLTOOL="false"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 DLLTOOL=$ac_ct_DLLTOOL
5506 fi
5507 else
5508 DLLTOOL="$ac_cv_prog_DLLTOOL"
5509 fi
5510
5511 test -z "$DLLTOOL" && DLLTOOL=dlltool
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5523 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5524 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 lt_cv_sharedlib_from_linklib_cmd='unknown'
5528
5529 case $host_os in
5530 cygwin* | mingw* | pw32* | cegcc*)
5531 # two different shell functions defined in ltmain.sh;
5532 # decide which one to use based on capabilities of $DLLTOOL
5533 case `$DLLTOOL --help 2>&1` in
5534 *--identify-strict*)
5535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5536 ;;
5537 *)
5538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5539 ;;
5540 esac
5541 ;;
5542 *)
5543 # fallback: assume linklib IS sharedlib
5544 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5545 ;;
5546 esac
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5550 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5551 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5552 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5553
5554
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562 for ac_prog in ar
5563 do
5564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_AR+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$AR"; then
5572 ac_cv_prog_AR="$AR" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 AR=$ac_cv_prog_AR
5592 if test -n "$AR"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5594 $as_echo "$AR" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 test -n "$AR" && break
5602 done
5603 fi
5604 if test -z "$AR"; then
5605 ac_ct_AR=$AR
5606 for ac_prog in ar
5607 do
5608 # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$ac_ct_AR"; then
5616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_ac_ct_AR="$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5636 if test -n "$ac_ct_AR"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5638 $as_echo "$ac_ct_AR" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 test -n "$ac_ct_AR" && break
5646 done
5647
5648 if test "x$ac_ct_AR" = x; then
5649 AR="false"
5650 else
5651 case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657 AR=$ac_ct_AR
5658 fi
5659 fi
5660
5661 : ${AR=ar}
5662 : ${AR_FLAGS=cru}
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5675 $as_echo_n "checking for archiver @FILE support... " >&6; }
5676 if ${lt_cv_ar_at_file+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 lt_cv_ar_at_file=no
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 echo conftest.$ac_objext > conftest.lst
5693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5695 (eval $lt_ar_try) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }
5699 if test 0 -eq "$ac_status"; then
5700 # Ensure the archiver fails upon bogus file names.
5701 rm -f conftest.$ac_objext libconftest.a
5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5703 (eval $lt_ar_try) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }
5707 if test 0 -ne "$ac_status"; then
5708 lt_cv_ar_at_file=@
5709 fi
5710 fi
5711 rm -f conftest.* libconftest.a
5712
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5718 $as_echo "$lt_cv_ar_at_file" >&6; }
5719
5720 if test no = "$lt_cv_ar_at_file"; then
5721 archiver_list_spec=
5722 else
5723 archiver_list_spec=$lt_cv_ar_at_file
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732 if test -n "$ac_tool_prefix"; then
5733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5734 set dummy ${ac_tool_prefix}strip; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_STRIP+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$STRIP"; then
5741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 STRIP=$ac_cv_prog_STRIP
5761 if test -n "$STRIP"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5763 $as_echo "$STRIP" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769
5770 fi
5771 if test -z "$ac_cv_prog_STRIP"; then
5772 ac_ct_STRIP=$STRIP
5773 # Extract the first word of "strip", so it can be a program name with args.
5774 set dummy strip; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if test -n "$ac_ct_STRIP"; then
5781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_ac_ct_STRIP="strip"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5801 if test -n "$ac_ct_STRIP"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5803 $as_echo "$ac_ct_STRIP" >&6; }
5804 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809 if test "x$ac_ct_STRIP" = x; then
5810 STRIP=":"
5811 else
5812 case $cross_compiling:$ac_tool_warned in
5813 yes:)
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816 ac_tool_warned=yes ;;
5817 esac
5818 STRIP=$ac_ct_STRIP
5819 fi
5820 else
5821 STRIP="$ac_cv_prog_STRIP"
5822 fi
5823
5824 test -z "$STRIP" && STRIP=:
5825
5826
5827
5828
5829
5830
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_RANLIB+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$RANLIB"; then
5840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 RANLIB=$ac_cv_prog_RANLIB
5860 if test -n "$RANLIB"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5862 $as_echo "$RANLIB" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5902 $as_echo "$ac_ct_RANLIB" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908 if test "x$ac_ct_RANLIB" = x; then
5909 RANLIB=":"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 RANLIB=$ac_ct_RANLIB
5918 fi
5919 else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 test -z "$RANLIB" && RANLIB=:
5924
5925
5926
5927
5928
5929
5930 # Determine commands to create old-style static archives.
5931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5932 old_postinstall_cmds='chmod 644 $oldlib'
5933 old_postuninstall_cmds=
5934
5935 if test -n "$RANLIB"; then
5936 case $host_os in
5937 bitrig* | openbsd*)
5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5939 ;;
5940 *)
5941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5942 ;;
5943 esac
5944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5945 fi
5946
5947 case $host_os in
5948 darwin*)
5949 lock_old_archive_extraction=yes ;;
5950 *)
5951 lock_old_archive_extraction=no ;;
5952 esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 # If no C compiler was specified, use CC.
5993 LTCC=${LTCC-"$CC"}
5994
5995 # If no C compiler flags were specified, use CFLAGS.
5996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5997
5998 # Allow CC to be a program name with arguments.
5999 compiler=$CC
6000
6001
6002 # Check for command to grab the raw symbol name followed by C symbol from nm.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6004 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6005 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008
6009 # These are sane defaults that work on at least a few old systems.
6010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6011
6012 # Character class describing NM global symbol codes.
6013 symcode='[BCDEGRST]'
6014
6015 # Regexp to match symbols that can be accessed directly from C.
6016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6017
6018 # Define system-specific variables.
6019 case $host_os in
6020 aix*)
6021 symcode='[BCDT]'
6022 ;;
6023 cygwin* | mingw* | pw32* | cegcc*)
6024 symcode='[ABCDGISTW]'
6025 ;;
6026 hpux*)
6027 if test ia64 = "$host_cpu"; then
6028 symcode='[ABCDEGRST]'
6029 fi
6030 ;;
6031 irix* | nonstopux*)
6032 symcode='[BCDEGRST]'
6033 ;;
6034 osf*)
6035 symcode='[BCDEGQRST]'
6036 ;;
6037 solaris*)
6038 symcode='[BDRT]'
6039 ;;
6040 sco3.2v5*)
6041 symcode='[DT]'
6042 ;;
6043 sysv4.2uw2*)
6044 symcode='[DT]'
6045 ;;
6046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6047 symcode='[ABDT]'
6048 ;;
6049 sysv4)
6050 symcode='[DFNSTU]'
6051 ;;
6052 esac
6053
6054 # If we're using GNU nm, then use its standard symbol codes.
6055 case `$NM -V 2>&1` in
6056 *GNU* | *'with BFD'*)
6057 symcode='[ABCDGIRSTW]' ;;
6058 esac
6059
6060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061 # Gets list of data symbols to import.
6062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6063 # Adjust the below global symbol transforms to fixup imported variables.
6064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6066 lt_c_name_lib_hook="\
6067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6069 else
6070 # Disable hooks by default.
6071 lt_cv_sys_global_symbol_to_import=
6072 lt_cdecl_hook=
6073 lt_c_name_hook=
6074 lt_c_name_lib_hook=
6075 fi
6076
6077 # Transform an extracted symbol line into a proper C declaration.
6078 # Some systems (esp. on ia64) link data and code symbols differently,
6079 # so use this general approach.
6080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6081 $lt_cdecl_hook\
6082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6084
6085 # Transform an extracted symbol line into symbol name and symbol address
6086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6087 $lt_c_name_hook\
6088 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6089 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6090
6091 # Transform an extracted symbol line into symbol name with lib prefix and
6092 # symbol address.
6093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6094 $lt_c_name_lib_hook\
6095 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6098
6099 # Handle CRLF in mingw tool chain
6100 opt_cr=
6101 case $build_os in
6102 mingw*)
6103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104 ;;
6105 esac
6106
6107 # Try without a prefix underscore, then with it.
6108 for ac_symprfx in "" "_"; do
6109
6110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6111 symxfrm="\\1 $ac_symprfx\\2 \\2"
6112
6113 # Write the raw and C identifiers.
6114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115 # Fake it for dumpbin and say T for any non-static function,
6116 # D for any global variable and I for any imported variable.
6117 # Also find C++ and __fastcall symbols from MSVC++,
6118 # which start with @ or ?.
6119 lt_cv_sys_global_symbol_pipe="$AWK '"\
6120 " {last_section=section; section=\$ 3};"\
6121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6124 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6125 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6126 " \$ 0!~/External *\|/{next};"\
6127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6128 " {if(hide[section]) next};"\
6129 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6130 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6131 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6132 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6133 " ' prfx=^$ac_symprfx"
6134 else
6135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6136 fi
6137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6138
6139 # Check to see that the pipe works correctly.
6140 pipe_works=no
6141
6142 rm -f conftest*
6143 cat > conftest.$ac_ext <<_LT_EOF
6144 #ifdef __cplusplus
6145 extern "C" {
6146 #endif
6147 char nm_test_var;
6148 void nm_test_func(void);
6149 void nm_test_func(void){}
6150 #ifdef __cplusplus
6151 }
6152 #endif
6153 int main(){nm_test_var='a';nm_test_func();return(0);}
6154 _LT_EOF
6155
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157 (eval $ac_compile) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
6161 # Now try to grab the symbols.
6162 nlist=conftest.nm
6163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6165 ac_status=$?
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; } && test -s "$nlist"; then
6168 # Try sorting and uniquifying the output.
6169 if sort "$nlist" | uniq > "$nlist"T; then
6170 mv -f "$nlist"T "$nlist"
6171 else
6172 rm -f "$nlist"T
6173 fi
6174
6175 # Make sure that we snagged all the symbols we need.
6176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6178 cat <<_LT_EOF > conftest.$ac_ext
6179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6180 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6181 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6182 relocations are performed -- see ld's documentation on pseudo-relocs. */
6183 # define LT_DLSYM_CONST
6184 #elif defined __osf__
6185 /* This system does not cope well with relocations in const data. */
6186 # define LT_DLSYM_CONST
6187 #else
6188 # define LT_DLSYM_CONST const
6189 #endif
6190
6191 #ifdef __cplusplus
6192 extern "C" {
6193 #endif
6194
6195 _LT_EOF
6196 # Now generate the symbol file.
6197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6198
6199 cat <<_LT_EOF >> conftest.$ac_ext
6200
6201 /* The mapping between symbol names and symbols. */
6202 LT_DLSYM_CONST struct {
6203 const char *name;
6204 void *address;
6205 }
6206 lt__PROGRAM__LTX_preloaded_symbols[] =
6207 {
6208 { "@PROGRAM@", (void *) 0 },
6209 _LT_EOF
6210 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6211 cat <<\_LT_EOF >> conftest.$ac_ext
6212 {0, (void *) 0}
6213 };
6214
6215 /* This works around a problem in FreeBSD linker */
6216 #ifdef FREEBSD_WORKAROUND
6217 static const void *lt_preloaded_setup() {
6218 return lt__PROGRAM__LTX_preloaded_symbols;
6219 }
6220 #endif
6221
6222 #ifdef __cplusplus
6223 }
6224 #endif
6225 _LT_EOF
6226 # Now try linking the two files.
6227 mv conftest.$ac_objext conftstm.$ac_objext
6228 lt_globsym_save_LIBS=$LIBS
6229 lt_globsym_save_CFLAGS=$CFLAGS
6230 LIBS=conftstm.$ac_objext
6231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6233 (eval $ac_link) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6237 pipe_works=yes
6238 fi
6239 LIBS=$lt_globsym_save_LIBS
6240 CFLAGS=$lt_globsym_save_CFLAGS
6241 else
6242 echo "cannot find nm_test_func in $nlist" >&5
6243 fi
6244 else
6245 echo "cannot find nm_test_var in $nlist" >&5
6246 fi
6247 else
6248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6249 fi
6250 else
6251 echo "$progname: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 fi
6254 rm -rf conftest* conftst*
6255
6256 # Do not use the global_symbol_pipe unless it works.
6257 if test yes = "$pipe_works"; then
6258 break
6259 else
6260 lt_cv_sys_global_symbol_pipe=
6261 fi
6262 done
6263
6264 fi
6265
6266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6267 lt_cv_sys_global_symbol_to_cdecl=
6268 fi
6269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6271 $as_echo "failed" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6274 $as_echo "ok" >&6; }
6275 fi
6276
6277 # Response file support.
6278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6279 nm_file_list_spec='@'
6280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6281 nm_file_list_spec='@'
6282 fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6321 $as_echo_n "checking for sysroot... " >&6; }
6322
6323 # Check whether --with-sysroot was given.
6324 if test "${with_sysroot+set}" = set; then :
6325 withval=$with_sysroot;
6326 else
6327 with_sysroot=no
6328 fi
6329
6330
6331 lt_sysroot=
6332 case $with_sysroot in #(
6333 yes)
6334 if test yes = "$GCC"; then
6335 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6336 fi
6337 ;; #(
6338 /*)
6339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6340 ;; #(
6341 no|'')
6342 ;; #(
6343 *)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6345 $as_echo "$with_sysroot" >&6; }
6346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6347 ;;
6348 esac
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6351 $as_echo "${lt_sysroot:-no}" >&6; }
6352
6353
6354
6355
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6358 $as_echo_n "checking for a working dd... " >&6; }
6359 if ${ac_cv_path_lt_DD+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 printf 0123456789abcdef0123456789abcdef >conftest.i
6363 cat conftest.i conftest.i >conftest2.i
6364 : ${lt_DD:=$DD}
6365 if test -z "$lt_DD"; then
6366 ac_path_lt_DD_found=false
6367 # Loop through the user's path and test for each of PROGNAME-LIST
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_prog in dd; do
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6376 as_fn_executable_p "$ac_path_lt_DD" || continue
6377 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6378 cmp -s conftest.i conftest.out \
6379 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6380 fi
6381 $ac_path_lt_DD_found && break 3
6382 done
6383 done
6384 done
6385 IFS=$as_save_IFS
6386 if test -z "$ac_cv_path_lt_DD"; then
6387 :
6388 fi
6389 else
6390 ac_cv_path_lt_DD=$lt_DD
6391 fi
6392
6393 rm -f conftest.i conftest2.i conftest.out
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6396 $as_echo "$ac_cv_path_lt_DD" >&6; }
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6400 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6401 if ${lt_cv_truncate_bin+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 printf 0123456789abcdef0123456789abcdef >conftest.i
6405 cat conftest.i conftest.i >conftest2.i
6406 lt_cv_truncate_bin=
6407 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6408 cmp -s conftest.i conftest.out \
6409 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6410 fi
6411 rm -f conftest.i conftest2.i conftest.out
6412 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6415 $as_echo "$lt_cv_truncate_bin" >&6; }
6416
6417
6418
6419
6420
6421
6422
6423 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6424 func_cc_basename ()
6425 {
6426 for cc_temp in $*""; do
6427 case $cc_temp in
6428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6430 \-*) ;;
6431 *) break;;
6432 esac
6433 done
6434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6435 }
6436
6437 # Check whether --enable-libtool-lock was given.
6438 if test "${enable_libtool_lock+set}" = set; then :
6439 enableval=$enable_libtool_lock;
6440 fi
6441
6442 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6443
6444 # Some flags need to be propagated to the compiler or linker for good
6445 # libtool support.
6446 case $host in
6447 ia64-*-hpux*)
6448 # Find out what ABI is being produced by ac_compile, and set mode
6449 # options accordingly.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *ELF-32*)
6458 HPUX_IA64_MODE=32
6459 ;;
6460 *ELF-64*)
6461 HPUX_IA64_MODE=64
6462 ;;
6463 esac
6464 fi
6465 rm -rf conftest*
6466 ;;
6467 *-*-irix6*)
6468 # Find out what ABI is being produced by ac_compile, and set linker
6469 # options accordingly.
6470 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 if test yes = "$lt_cv_prog_gnu_ld"; then
6477 case `/usr/bin/file conftest.$ac_objext` in
6478 *32-bit*)
6479 LD="${LD-ld} -melf32bsmip"
6480 ;;
6481 *N32*)
6482 LD="${LD-ld} -melf32bmipn32"
6483 ;;
6484 *64-bit*)
6485 LD="${LD-ld} -melf64bmip"
6486 ;;
6487 esac
6488 else
6489 case `/usr/bin/file conftest.$ac_objext` in
6490 *32-bit*)
6491 LD="${LD-ld} -32"
6492 ;;
6493 *N32*)
6494 LD="${LD-ld} -n32"
6495 ;;
6496 *64-bit*)
6497 LD="${LD-ld} -64"
6498 ;;
6499 esac
6500 fi
6501 fi
6502 rm -rf conftest*
6503 ;;
6504
6505 mips64*-*linux*)
6506 # Find out what ABI is being produced by ac_compile, and set linker
6507 # options accordingly.
6508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }; then
6514 emul=elf
6515 case `/usr/bin/file conftest.$ac_objext` in
6516 *32-bit*)
6517 emul="${emul}32"
6518 ;;
6519 *64-bit*)
6520 emul="${emul}64"
6521 ;;
6522 esac
6523 case `/usr/bin/file conftest.$ac_objext` in
6524 *MSB*)
6525 emul="${emul}btsmip"
6526 ;;
6527 *LSB*)
6528 emul="${emul}ltsmip"
6529 ;;
6530 esac
6531 case `/usr/bin/file conftest.$ac_objext` in
6532 *N32*)
6533 emul="${emul}n32"
6534 ;;
6535 esac
6536 LD="${LD-ld} -m $emul"
6537 fi
6538 rm -rf conftest*
6539 ;;
6540
6541 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6542 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6543 # Find out what ABI is being produced by ac_compile, and set linker
6544 # options accordingly. Note that the listed cases only cover the
6545 # situations where additional linker options are needed (such as when
6546 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6547 # vice versa); the common cases where no linker options are needed do
6548 # not appear in the list.
6549 echo 'int i;' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 case `/usr/bin/file conftest.o` in
6556 *32-bit*)
6557 case $host in
6558 x86_64-*kfreebsd*-gnu)
6559 LD="${LD-ld} -m elf_i386_fbsd"
6560 ;;
6561 x86_64-*linux*)
6562 case `/usr/bin/file conftest.o` in
6563 *x86-64*)
6564 LD="${LD-ld} -m elf32_x86_64"
6565 ;;
6566 *)
6567 LD="${LD-ld} -m elf_i386"
6568 ;;
6569 esac
6570 ;;
6571 powerpc64le-*linux*)
6572 LD="${LD-ld} -m elf32lppclinux"
6573 ;;
6574 powerpc64-*linux*)
6575 LD="${LD-ld} -m elf32ppclinux"
6576 ;;
6577 s390x-*linux*)
6578 LD="${LD-ld} -m elf_s390"
6579 ;;
6580 sparc64-*linux*)
6581 LD="${LD-ld} -m elf32_sparc"
6582 ;;
6583 esac
6584 ;;
6585 *64-bit*)
6586 case $host in
6587 x86_64-*kfreebsd*-gnu)
6588 LD="${LD-ld} -m elf_x86_64_fbsd"
6589 ;;
6590 x86_64-*linux*)
6591 LD="${LD-ld} -m elf_x86_64"
6592 ;;
6593 powerpcle-*linux*)
6594 LD="${LD-ld} -m elf64lppc"
6595 ;;
6596 powerpc-*linux*)
6597 LD="${LD-ld} -m elf64ppc"
6598 ;;
6599 s390*-*linux*|s390*-*tpf*)
6600 LD="${LD-ld} -m elf64_s390"
6601 ;;
6602 sparc*-*linux*)
6603 LD="${LD-ld} -m elf64_sparc"
6604 ;;
6605 esac
6606 ;;
6607 esac
6608 fi
6609 rm -rf conftest*
6610 ;;
6611
6612 *-*-sco3.2v5*)
6613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6614 SAVE_CFLAGS=$CFLAGS
6615 CFLAGS="$CFLAGS -belf"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6617 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6618 if ${lt_cv_cc_needs_belf+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 ac_ext=c
6622 ac_cpp='$CPP $CPPFLAGS'
6623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_link "$LINENO"; then :
6639 lt_cv_cc_needs_belf=yes
6640 else
6641 lt_cv_cc_needs_belf=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 ac_ext=c
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6653 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6654 if test yes != "$lt_cv_cc_needs_belf"; then
6655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6656 CFLAGS=$SAVE_CFLAGS
6657 fi
6658 ;;
6659 *-*solaris*)
6660 # Find out what ABI is being produced by ac_compile, and set linker
6661 # options accordingly.
6662 echo 'int i;' > conftest.$ac_ext
6663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664 (eval $ac_compile) 2>&5
6665 ac_status=$?
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }; then
6668 case `/usr/bin/file conftest.o` in
6669 *64-bit*)
6670 case $lt_cv_prog_gnu_ld in
6671 yes*)
6672 case $host in
6673 i?86-*-solaris*|x86_64-*-solaris*)
6674 LD="${LD-ld} -m elf_x86_64"
6675 ;;
6676 sparc*-*-solaris*)
6677 LD="${LD-ld} -m elf64_sparc"
6678 ;;
6679 esac
6680 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6681 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6682 LD=${LD-ld}_sol2
6683 fi
6684 ;;
6685 *)
6686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6687 LD="${LD-ld} -64"
6688 fi
6689 ;;
6690 esac
6691 ;;
6692 esac
6693 fi
6694 rm -rf conftest*
6695 ;;
6696 esac
6697
6698 need_locks=$enable_libtool_lock
6699
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}mt; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$MANIFEST_TOOL"; then
6709 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6729 if test -n "$MANIFEST_TOOL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6731 $as_echo "$MANIFEST_TOOL" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737
6738 fi
6739 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6741 # Extract the first word of "mt", so it can be a program name with args.
6742 set dummy mt; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$ac_ct_MANIFEST_TOOL"; then
6749 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6769 if test -n "$ac_ct_MANIFEST_TOOL"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6771 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6778 MANIFEST_TOOL=":"
6779 else
6780 case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6787 fi
6788 else
6789 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6790 fi
6791
6792 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6794 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6795 if ${lt_cv_path_mainfest_tool+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 lt_cv_path_mainfest_tool=no
6799 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6800 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6801 cat conftest.err >&5
6802 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6803 lt_cv_path_mainfest_tool=yes
6804 fi
6805 rm -f conftest*
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6808 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6809 if test yes != "$lt_cv_path_mainfest_tool"; then
6810 MANIFEST_TOOL=:
6811 fi
6812
6813
6814
6815
6816
6817
6818 case $host_os in
6819 rhapsody* | darwin*)
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$DSYMUTIL"; then
6829 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6849 if test -n "$DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6851 $as_echo "$DSYMUTIL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_DSYMUTIL"; then
6860 ac_ct_DSYMUTIL=$DSYMUTIL
6861 # Extract the first word of "dsymutil", so it can be a program name with args.
6862 set dummy dsymutil; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_DSYMUTIL"; then
6869 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6889 if test -n "$ac_ct_DSYMUTIL"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6891 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_DSYMUTIL" = x; then
6898 DSYMUTIL=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 DSYMUTIL=$ac_ct_DSYMUTIL
6907 fi
6908 else
6909 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6910 fi
6911
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_NMEDIT+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$NMEDIT"; then
6921 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 NMEDIT=$ac_cv_prog_NMEDIT
6941 if test -n "$NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6943 $as_echo "$NMEDIT" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_NMEDIT"; then
6952 ac_ct_NMEDIT=$NMEDIT
6953 # Extract the first word of "nmedit", so it can be a program name with args.
6954 set dummy nmedit; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_NMEDIT"; then
6961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6981 if test -n "$ac_ct_NMEDIT"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6983 $as_echo "$ac_ct_NMEDIT" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_NMEDIT" = x; then
6990 NMEDIT=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 NMEDIT=$ac_ct_NMEDIT
6999 fi
7000 else
7001 NMEDIT="$ac_cv_prog_NMEDIT"
7002 fi
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_LIPO+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$LIPO"; then
7013 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 LIPO=$ac_cv_prog_LIPO
7033 if test -n "$LIPO"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7035 $as_echo "$LIPO" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_LIPO"; then
7044 ac_ct_LIPO=$LIPO
7045 # Extract the first word of "lipo", so it can be a program name with args.
7046 set dummy lipo; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_LIPO"; then
7053 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_LIPO="lipo"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7073 if test -n "$ac_ct_LIPO"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7075 $as_echo "$ac_ct_LIPO" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_LIPO" = x; then
7082 LIPO=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 LIPO=$ac_ct_LIPO
7091 fi
7092 else
7093 LIPO="$ac_cv_prog_LIPO"
7094 fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}otool; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_OTOOL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$OTOOL"; then
7105 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 OTOOL=$ac_cv_prog_OTOOL
7125 if test -n "$OTOOL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7127 $as_echo "$OTOOL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_OTOOL"; then
7136 ac_ct_OTOOL=$OTOOL
7137 # Extract the first word of "otool", so it can be a program name with args.
7138 set dummy otool; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_OTOOL"; then
7145 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_OTOOL="otool"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7165 if test -n "$ac_ct_OTOOL"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7167 $as_echo "$ac_ct_OTOOL" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_OTOOL" = x; then
7174 OTOOL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 OTOOL=$ac_ct_OTOOL
7183 fi
7184 else
7185 OTOOL="$ac_cv_prog_OTOOL"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_OTOOL64+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$OTOOL64"; then
7197 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 OTOOL64=$ac_cv_prog_OTOOL64
7217 if test -n "$OTOOL64"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7219 $as_echo "$OTOOL64" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_OTOOL64"; then
7228 ac_ct_OTOOL64=$OTOOL64
7229 # Extract the first word of "otool64", so it can be a program name with args.
7230 set dummy otool64; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_OTOOL64"; then
7237 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_OTOOL64="otool64"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7257 if test -n "$ac_ct_OTOOL64"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7259 $as_echo "$ac_ct_OTOOL64" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_OTOOL64" = x; then
7266 OTOOL64=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 OTOOL64=$ac_ct_OTOOL64
7275 fi
7276 else
7277 OTOOL64="$ac_cv_prog_OTOOL64"
7278 fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7307 $as_echo_n "checking for -single_module linker flag... " >&6; }
7308 if ${lt_cv_apple_cc_single_mod+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 lt_cv_apple_cc_single_mod=no
7312 if test -z "$LT_MULTI_MODULE"; then
7313 # By default we will add the -single_module flag. You can override
7314 # by either setting the environment variable LT_MULTI_MODULE
7315 # non-empty at configure time, or by adding -multi_module to the
7316 # link flags.
7317 rm -rf libconftest.dylib*
7318 echo "int foo(void){return 1;}" > conftest.c
7319 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7320 -dynamiclib -Wl,-single_module conftest.c" >&5
7321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7322 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7323 _lt_result=$?
7324 # If there is a non-empty error log, and "single_module"
7325 # appears in it, assume the flag caused a linker warning
7326 if test -s conftest.err && $GREP single_module conftest.err; then
7327 cat conftest.err >&5
7328 # Otherwise, if the output was created with a 0 exit code from
7329 # the compiler, it worked.
7330 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7331 lt_cv_apple_cc_single_mod=yes
7332 else
7333 cat conftest.err >&5
7334 fi
7335 rm -rf libconftest.dylib*
7336 rm -f conftest.*
7337 fi
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7340 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7343 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7344 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 lt_cv_ld_exported_symbols_list=no
7348 save_LDFLAGS=$LDFLAGS
7349 echo "_main" > conftest.sym
7350 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353
7354 int
7355 main ()
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_link "$LINENO"; then :
7363 lt_cv_ld_exported_symbols_list=yes
7364 else
7365 lt_cv_ld_exported_symbols_list=no
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 LDFLAGS=$save_LDFLAGS
7370
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7373 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7376 $as_echo_n "checking for -force_load linker flag... " >&6; }
7377 if ${lt_cv_ld_force_load+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 lt_cv_ld_force_load=no
7381 cat > conftest.c << _LT_EOF
7382 int forced_loaded() { return 2;}
7383 _LT_EOF
7384 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7385 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7386 echo "$AR cru libconftest.a conftest.o" >&5
7387 $AR cru libconftest.a conftest.o 2>&5
7388 echo "$RANLIB libconftest.a" >&5
7389 $RANLIB libconftest.a 2>&5
7390 cat > conftest.c << _LT_EOF
7391 int main() { return 0;}
7392 _LT_EOF
7393 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7394 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7395 _lt_result=$?
7396 if test -s conftest.err && $GREP force_load conftest.err; then
7397 cat conftest.err >&5
7398 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7399 lt_cv_ld_force_load=yes
7400 else
7401 cat conftest.err >&5
7402 fi
7403 rm -f conftest.err libconftest.a conftest conftest.c
7404 rm -rf conftest.dSYM
7405
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7408 $as_echo "$lt_cv_ld_force_load" >&6; }
7409 case $host_os in
7410 rhapsody* | darwin1.[012])
7411 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7412 darwin1.*)
7413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414 darwin*) # darwin 5.x on
7415 # if running on 10.5 or later, the deployment target defaults
7416 # to the OS version, if on x86, and 10.4, the deployment
7417 # target defaults to 10.4. Don't you love it?
7418 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7419 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7420 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7421 10.[012][,.]*)
7422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7423 10.*)
7424 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7425 esac
7426 ;;
7427 esac
7428 if test yes = "$lt_cv_apple_cc_single_mod"; then
7429 _lt_dar_single_mod='$single_module'
7430 fi
7431 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7432 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7433 else
7434 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7435 fi
7436 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7437 _lt_dsymutil='~$DSYMUTIL $lib || :'
7438 else
7439 _lt_dsymutil=
7440 fi
7441 ;;
7442 esac
7443
7444 # func_munge_path_list VARIABLE PATH
7445 # -----------------------------------
7446 # VARIABLE is name of variable containing _space_ separated list of
7447 # directories to be munged by the contents of PATH, which is string
7448 # having a format:
7449 # "DIR[:DIR]:"
7450 # string "DIR[ DIR]" will be prepended to VARIABLE
7451 # ":DIR[:DIR]"
7452 # string "DIR[ DIR]" will be appended to VARIABLE
7453 # "DIRP[:DIRP]::[DIRA:]DIRA"
7454 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7455 # "DIRA[ DIRA]" will be appended to VARIABLE
7456 # "DIR[:DIR]"
7457 # VARIABLE will be replaced by "DIR[ DIR]"
7458 func_munge_path_list ()
7459 {
7460 case x$2 in
7461 x)
7462 ;;
7463 *:)
7464 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7465 ;;
7466 x:*)
7467 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7468 ;;
7469 *::*)
7470 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7471 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7472 ;;
7473 *)
7474 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7475 ;;
7476 esac
7477 }
7478
7479 ac_ext=c
7480 ac_cpp='$CPP $CPPFLAGS'
7481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7486 # On Suns, sometimes $CPP names a directory.
7487 if test -n "$CPP" && test -d "$CPP"; then
7488 CPP=
7489 fi
7490 if test -z "$CPP"; then
7491 if ${ac_cv_prog_CPP+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 # Double quotes because CPP needs to be expanded
7495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7496 do
7497 ac_preproc_ok=false
7498 for ac_c_preproc_warn_flag in '' yes
7499 do
7500 # Use a header file that comes with gcc, so configuring glibc
7501 # with a fresh cross-compiler works.
7502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503 # <limits.h> exists even on freestanding compilers.
7504 # On the NeXT, cc -E runs the code through the compiler's parser,
7505 # not just through cpp. "Syntax error" is here to catch this case.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #ifdef __STDC__
7509 # include <limits.h>
7510 #else
7511 # include <assert.h>
7512 #endif
7513 Syntax error
7514 _ACEOF
7515 if ac_fn_c_try_cpp "$LINENO"; then :
7516
7517 else
7518 # Broken: fails on valid input.
7519 continue
7520 fi
7521 rm -f conftest.err conftest.i conftest.$ac_ext
7522
7523 # OK, works on sane cases. Now check whether nonexistent headers
7524 # can be detected and how.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <ac_nonexistent.h>
7528 _ACEOF
7529 if ac_fn_c_try_cpp "$LINENO"; then :
7530 # Broken: success on invalid input.
7531 continue
7532 else
7533 # Passes both tests.
7534 ac_preproc_ok=:
7535 break
7536 fi
7537 rm -f conftest.err conftest.i conftest.$ac_ext
7538
7539 done
7540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7541 rm -f conftest.i conftest.err conftest.$ac_ext
7542 if $ac_preproc_ok; then :
7543 break
7544 fi
7545
7546 done
7547 ac_cv_prog_CPP=$CPP
7548
7549 fi
7550 CPP=$ac_cv_prog_CPP
7551 else
7552 ac_cv_prog_CPP=$CPP
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7555 $as_echo "$CPP" >&6; }
7556 ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7558 do
7559 # Use a header file that comes with gcc, so configuring glibc
7560 # with a fresh cross-compiler works.
7561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562 # <limits.h> exists even on freestanding compilers.
7563 # On the NeXT, cc -E runs the code through the compiler's parser,
7564 # not just through cpp. "Syntax error" is here to catch this case.
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572 Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7575
7576 else
7577 # Broken: fails on valid input.
7578 continue
7579 fi
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7581
7582 # OK, works on sane cases. Now check whether nonexistent headers
7583 # can be detected and how.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602
7603 else
7604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7607 See \`config.log' for more details" "$LINENO" 5; }
7608 fi
7609
7610 ac_ext=c
7611 ac_cpp='$CPP $CPPFLAGS'
7612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7618 $as_echo_n "checking for ANSI C header files... " >&6; }
7619 if ${ac_cv_header_stdc+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <stdlib.h>
7625 #include <stdarg.h>
7626 #include <string.h>
7627 #include <float.h>
7628
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 ac_cv_header_stdc=yes
7639 else
7640 ac_cv_header_stdc=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643
7644 if test $ac_cv_header_stdc = yes; then
7645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <string.h>
7649
7650 _ACEOF
7651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7652 $EGREP "memchr" >/dev/null 2>&1; then :
7653
7654 else
7655 ac_cv_header_stdc=no
7656 fi
7657 rm -f conftest*
7658
7659 fi
7660
7661 if test $ac_cv_header_stdc = yes; then
7662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <stdlib.h>
7666
7667 _ACEOF
7668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7669 $EGREP "free" >/dev/null 2>&1; then :
7670
7671 else
7672 ac_cv_header_stdc=no
7673 fi
7674 rm -f conftest*
7675
7676 fi
7677
7678 if test $ac_cv_header_stdc = yes; then
7679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7680 if test "$cross_compiling" = yes; then :
7681 :
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <ctype.h>
7686 #include <stdlib.h>
7687 #if ((' ' & 0x0FF) == 0x020)
7688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7690 #else
7691 # define ISLOWER(c) \
7692 (('a' <= (c) && (c) <= 'i') \
7693 || ('j' <= (c) && (c) <= 'r') \
7694 || ('s' <= (c) && (c) <= 'z'))
7695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7696 #endif
7697
7698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7699 int
7700 main ()
7701 {
7702 int i;
7703 for (i = 0; i < 256; i++)
7704 if (XOR (islower (i), ISLOWER (i))
7705 || toupper (i) != TOUPPER (i))
7706 return 2;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_run "$LINENO"; then :
7711
7712 else
7713 ac_cv_header_stdc=no
7714 fi
7715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7716 conftest.$ac_objext conftest.beam conftest.$ac_ext
7717 fi
7718
7719 fi
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7722 $as_echo "$ac_cv_header_stdc" >&6; }
7723 if test $ac_cv_header_stdc = yes; then
7724
7725 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7726
7727 fi
7728
7729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7731 inttypes.h stdint.h unistd.h
7732 do :
7733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7735 "
7736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7737 cat >>confdefs.h <<_ACEOF
7738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739 _ACEOF
7740
7741 fi
7742
7743 done
7744
7745
7746 for ac_header in dlfcn.h
7747 do :
7748 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7749 "
7750 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_DLFCN_H 1
7753 _ACEOF
7754
7755 fi
7756
7757 done
7758
7759
7760
7761
7762
7763 # Set options
7764
7765
7766
7767 enable_dlopen=no
7768
7769
7770 enable_win32_dll=no
7771
7772
7773 # Check whether --enable-shared was given.
7774 if test "${enable_shared+set}" = set; then :
7775 enableval=$enable_shared; p=${PACKAGE-default}
7776 case $enableval in
7777 yes) enable_shared=yes ;;
7778 no) enable_shared=no ;;
7779 *)
7780 enable_shared=no
7781 # Look at the argument we got. We use all the common list separators.
7782 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7783 for pkg in $enableval; do
7784 IFS=$lt_save_ifs
7785 if test "X$pkg" = "X$p"; then
7786 enable_shared=yes
7787 fi
7788 done
7789 IFS=$lt_save_ifs
7790 ;;
7791 esac
7792 else
7793 enable_shared=yes
7794 fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 # Check whether --enable-static was given.
7805 if test "${enable_static+set}" = set; then :
7806 enableval=$enable_static; p=${PACKAGE-default}
7807 case $enableval in
7808 yes) enable_static=yes ;;
7809 no) enable_static=no ;;
7810 *)
7811 enable_static=no
7812 # Look at the argument we got. We use all the common list separators.
7813 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7814 for pkg in $enableval; do
7815 IFS=$lt_save_ifs
7816 if test "X$pkg" = "X$p"; then
7817 enable_static=yes
7818 fi
7819 done
7820 IFS=$lt_save_ifs
7821 ;;
7822 esac
7823 else
7824 enable_static=yes
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 # Check whether --with-pic was given.
7837 if test "${with_pic+set}" = set; then :
7838 withval=$with_pic; lt_p=${PACKAGE-default}
7839 case $withval in
7840 yes|no) pic_mode=$withval ;;
7841 *)
7842 pic_mode=default
7843 # Look at the argument we got. We use all the common list separators.
7844 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7845 for lt_pkg in $withval; do
7846 IFS=$lt_save_ifs
7847 if test "X$lt_pkg" = "X$lt_p"; then
7848 pic_mode=yes
7849 fi
7850 done
7851 IFS=$lt_save_ifs
7852 ;;
7853 esac
7854 else
7855 pic_mode=default
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864
7865 # Check whether --enable-fast-install was given.
7866 if test "${enable_fast_install+set}" = set; then :
7867 enableval=$enable_fast_install; p=${PACKAGE-default}
7868 case $enableval in
7869 yes) enable_fast_install=yes ;;
7870 no) enable_fast_install=no ;;
7871 *)
7872 enable_fast_install=no
7873 # Look at the argument we got. We use all the common list separators.
7874 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7875 for pkg in $enableval; do
7876 IFS=$lt_save_ifs
7877 if test "X$pkg" = "X$p"; then
7878 enable_fast_install=yes
7879 fi
7880 done
7881 IFS=$lt_save_ifs
7882 ;;
7883 esac
7884 else
7885 enable_fast_install=yes
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895 shared_archive_member_spec=
7896 case $host,$enable_shared in
7897 power*-*-aix[5-9]*,yes)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7899 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7900
7901 # Check whether --with-aix-soname was given.
7902 if test "${with_aix_soname+set}" = set; then :
7903 withval=$with_aix_soname; case $withval in
7904 aix|svr4|both)
7905 ;;
7906 *)
7907 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7908 ;;
7909 esac
7910 lt_cv_with_aix_soname=$with_aix_soname
7911 else
7912 if ${lt_cv_with_aix_soname+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 lt_cv_with_aix_soname=aix
7916 fi
7917
7918 with_aix_soname=$lt_cv_with_aix_soname
7919 fi
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7922 $as_echo "$with_aix_soname" >&6; }
7923 if test aix != "$with_aix_soname"; then
7924 # For the AIX way of multilib, we name the shared archive member
7925 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7926 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7927 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7928 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7929 if test 64 = "${OBJECT_MODE-32}"; then
7930 shared_archive_member_spec=shr_64
7931 else
7932 shared_archive_member_spec=shr
7933 fi
7934 fi
7935 ;;
7936 *)
7937 with_aix_soname=aix
7938 ;;
7939 esac
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 # This can be used to rebuild libtool when needed
7951 LIBTOOL_DEPS=$ltmain
7952
7953 # Always use our own libtool.
7954 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 test -z "$LN_S" && LN_S="ln -s"
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 if test -n "${ZSH_VERSION+set}"; then
8001 setopt NO_GLOB_SUBST
8002 fi
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8005 $as_echo_n "checking for objdir... " >&6; }
8006 if ${lt_cv_objdir+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 rm -f .libs 2>/dev/null
8010 mkdir .libs 2>/dev/null
8011 if test -d .libs; then
8012 lt_cv_objdir=.libs
8013 else
8014 # MS-DOS does not allow filenames that begin with a dot.
8015 lt_cv_objdir=_libs
8016 fi
8017 rmdir .libs 2>/dev/null
8018 fi
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8020 $as_echo "$lt_cv_objdir" >&6; }
8021 objdir=$lt_cv_objdir
8022
8023
8024
8025
8026
8027 cat >>confdefs.h <<_ACEOF
8028 #define LT_OBJDIR "$lt_cv_objdir/"
8029 _ACEOF
8030
8031
8032
8033
8034 case $host_os in
8035 aix3*)
8036 # AIX sometimes has problems with the GCC collect2 program. For some
8037 # reason, if we set the COLLECT_NAMES environment variable, the problems
8038 # vanish in a puff of smoke.
8039 if test set != "${COLLECT_NAMES+set}"; then
8040 COLLECT_NAMES=
8041 export COLLECT_NAMES
8042 fi
8043 ;;
8044 esac
8045
8046 # Global variables:
8047 ofile=libtool
8048 can_build_shared=yes
8049
8050 # All known linkers require a '.a' archive for static linking (except MSVC,
8051 # which needs '.lib').
8052 libext=a
8053
8054 with_gnu_ld=$lt_cv_prog_gnu_ld
8055
8056 old_CC=$CC
8057 old_CFLAGS=$CFLAGS
8058
8059 # Set sane defaults for various variables
8060 test -z "$CC" && CC=cc
8061 test -z "$LTCC" && LTCC=$CC
8062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063 test -z "$LD" && LD=ld
8064 test -z "$ac_objext" && ac_objext=o
8065
8066 func_cc_basename $compiler
8067 cc_basename=$func_cc_basename_result
8068
8069
8070 # Only perform the check for file, if the check method requires it
8071 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8072 case $deplibs_check_method in
8073 file_magic*)
8074 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8076 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 case $MAGIC_CMD in
8081 [\\/*] | ?:[\\/]*)
8082 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8083 ;;
8084 *)
8085 lt_save_MAGIC_CMD=$MAGIC_CMD
8086 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8088 for ac_dir in $ac_dummy; do
8089 IFS=$lt_save_ifs
8090 test -z "$ac_dir" && ac_dir=.
8091 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8092 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8093 if test -n "$file_magic_test_file"; then
8094 case $deplibs_check_method in
8095 "file_magic "*)
8096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8097 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8099 $EGREP "$file_magic_regex" > /dev/null; then
8100 :
8101 else
8102 cat <<_LT_EOF 1>&2
8103
8104 *** Warning: the command libtool uses to detect shared libraries,
8105 *** $file_magic_cmd, produces output that libtool cannot recognize.
8106 *** The result is that libtool may fail to recognize shared libraries
8107 *** as such. This will affect the creation of libtool libraries that
8108 *** depend on shared libraries, but programs linked with such libtool
8109 *** libraries will work regardless of this problem. Nevertheless, you
8110 *** may want to report the problem to your system manager and/or to
8111 *** bug-libtool (at] gnu.org
8112
8113 _LT_EOF
8114 fi ;;
8115 esac
8116 fi
8117 break
8118 fi
8119 done
8120 IFS=$lt_save_ifs
8121 MAGIC_CMD=$lt_save_MAGIC_CMD
8122 ;;
8123 esac
8124 fi
8125
8126 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8127 if test -n "$MAGIC_CMD"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8129 $as_echo "$MAGIC_CMD" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135
8136
8137
8138
8139 if test -z "$lt_cv_path_MAGIC_CMD"; then
8140 if test -n "$ac_tool_prefix"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8142 $as_echo_n "checking for file... " >&6; }
8143 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 case $MAGIC_CMD in
8147 [\\/*] | ?:[\\/]*)
8148 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8149 ;;
8150 *)
8151 lt_save_MAGIC_CMD=$MAGIC_CMD
8152 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8154 for ac_dir in $ac_dummy; do
8155 IFS=$lt_save_ifs
8156 test -z "$ac_dir" && ac_dir=.
8157 if test -f "$ac_dir/file"; then
8158 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8159 if test -n "$file_magic_test_file"; then
8160 case $deplibs_check_method in
8161 "file_magic "*)
8162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8163 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8165 $EGREP "$file_magic_regex" > /dev/null; then
8166 :
8167 else
8168 cat <<_LT_EOF 1>&2
8169
8170 *** Warning: the command libtool uses to detect shared libraries,
8171 *** $file_magic_cmd, produces output that libtool cannot recognize.
8172 *** The result is that libtool may fail to recognize shared libraries
8173 *** as such. This will affect the creation of libtool libraries that
8174 *** depend on shared libraries, but programs linked with such libtool
8175 *** libraries will work regardless of this problem. Nevertheless, you
8176 *** may want to report the problem to your system manager and/or to
8177 *** bug-libtool (at] gnu.org
8178
8179 _LT_EOF
8180 fi ;;
8181 esac
8182 fi
8183 break
8184 fi
8185 done
8186 IFS=$lt_save_ifs
8187 MAGIC_CMD=$lt_save_MAGIC_CMD
8188 ;;
8189 esac
8190 fi
8191
8192 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8193 if test -n "$MAGIC_CMD"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8195 $as_echo "$MAGIC_CMD" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201
8202 else
8203 MAGIC_CMD=:
8204 fi
8205 fi
8206
8207 fi
8208 ;;
8209 esac
8210
8211 # Use C for the default configuration in the libtool script
8212
8213 lt_save_CC=$CC
8214 ac_ext=c
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221 # Source file extension for C test sources.
8222 ac_ext=c
8223
8224 # Object file extension for compiled C test sources.
8225 objext=o
8226 objext=$objext
8227
8228 # Code to be used in simple compile tests
8229 lt_simple_compile_test_code="int some_variable = 0;"
8230
8231 # Code to be used in simple link tests
8232 lt_simple_link_test_code='int main(){return(0);}'
8233
8234
8235
8236
8237
8238
8239
8240 # If no C compiler was specified, use CC.
8241 LTCC=${LTCC-"$CC"}
8242
8243 # If no C compiler flags were specified, use CFLAGS.
8244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8245
8246 # Allow CC to be a program name with arguments.
8247 compiler=$CC
8248
8249 # Save the default compiler, since it gets overwritten when the other
8250 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8251 compiler_DEFAULT=$CC
8252
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8258 $RM conftest*
8259
8260 ac_outfile=conftest.$ac_objext
8261 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8264 $RM -r conftest*
8265
8266
8267 if test -n "$compiler"; then
8268
8269 lt_prog_compiler_no_builtin_flag=
8270
8271 if test yes = "$GCC"; then
8272 case $cc_basename in
8273 nvcc*)
8274 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8275 *)
8276 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8277 esac
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 lt_cv_prog_compiler_rtti_exceptions=no
8285 ac_outfile=conftest.$ac_objext
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8288 # Insert the option either (1) after the last *FLAGS variable, or
8289 # (2) before a word containing "conftest.", or (3) at the end.
8290 # Note that $ac_compile itself does not contain backslashes and begins
8291 # with a dollar sign (not a hyphen), so the echo should work correctly.
8292 # The option is referenced via a variable to avoid confusing sed.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>conftest.err)
8299 ac_status=$?
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s "$ac_outfile"; then
8303 # The compiler can only warn and ignore the option if not recognized
8304 # So say no if there are warnings other than the usual output.
8305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308 lt_cv_prog_compiler_rtti_exceptions=yes
8309 fi
8310 fi
8311 $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316
8317 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8318 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319 else
8320 :
8321 fi
8322
8323 fi
8324
8325
8326
8327
8328
8329
8330 lt_prog_compiler_wl=
8331 lt_prog_compiler_pic=
8332 lt_prog_compiler_static=
8333
8334
8335 if test yes = "$GCC"; then
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_static='-static'
8338
8339 case $host_os in
8340 aix*)
8341 # All AIX code is PIC.
8342 if test ia64 = "$host_cpu"; then
8343 # AIX 5 now supports IA64 processor
8344 lt_prog_compiler_static='-Bstatic'
8345 fi
8346 lt_prog_compiler_pic='-fPIC'
8347 ;;
8348
8349 amigaos*)
8350 case $host_cpu in
8351 powerpc)
8352 # see comment about AmigaOS4 .so support
8353 lt_prog_compiler_pic='-fPIC'
8354 ;;
8355 m68k)
8356 # FIXME: we need at least 68020 code to build shared libraries, but
8357 # adding the '-m68020' flag to GCC prevents building anything better,
8358 # like '-m68040'.
8359 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8360 ;;
8361 esac
8362 ;;
8363
8364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8365 # PIC is the default for these OSes.
8366 ;;
8367
8368 mingw* | cygwin* | pw32* | os2* | cegcc*)
8369 # This hack is so that the source file can tell whether it is being
8370 # built for inclusion in a dll (and should export symbols for example).
8371 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8372 # (--disable-auto-import) libraries
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
8374 case $host_os in
8375 os2*)
8376 lt_prog_compiler_static='$wl-static'
8377 ;;
8378 esac
8379 ;;
8380
8381 darwin* | rhapsody*)
8382 # PIC is the default on this platform
8383 # Common symbols not allowed in MH_DYLIB files
8384 lt_prog_compiler_pic='-fno-common'
8385 ;;
8386
8387 haiku*)
8388 # PIC is the default for Haiku.
8389 # The "-static" flag exists, but is broken.
8390 lt_prog_compiler_static=
8391 ;;
8392
8393 hpux*)
8394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8396 # sets the default TLS model and affects inlining.
8397 case $host_cpu in
8398 hppa*64*)
8399 # +Z the default
8400 ;;
8401 *)
8402 lt_prog_compiler_pic='-fPIC'
8403 ;;
8404 esac
8405 ;;
8406
8407 interix[3-9]*)
8408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8409 # Instead, we relocate shared libraries at runtime.
8410 ;;
8411
8412 msdosdjgpp*)
8413 # Just because we use GCC doesn't mean we suddenly get shared libraries
8414 # on systems that don't support them.
8415 lt_prog_compiler_can_build_shared=no
8416 enable_shared=no
8417 ;;
8418
8419 *nto* | *qnx*)
8420 # QNX uses GNU C++, but need to define -shared option too, otherwise
8421 # it will coredump.
8422 lt_prog_compiler_pic='-fPIC -shared'
8423 ;;
8424
8425 sysv4*MP*)
8426 if test -d /usr/nec; then
8427 lt_prog_compiler_pic=-Kconform_pic
8428 fi
8429 ;;
8430
8431 *)
8432 lt_prog_compiler_pic='-fPIC'
8433 ;;
8434 esac
8435
8436 case $cc_basename in
8437 nvcc*) # Cuda Compiler Driver 2.2
8438 lt_prog_compiler_wl='-Xlinker '
8439 if test -n "$lt_prog_compiler_pic"; then
8440 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8441 fi
8442 ;;
8443 esac
8444 else
8445 # PORTME Check for flag to pass linker flags through the system compiler.
8446 case $host_os in
8447 aix*)
8448 lt_prog_compiler_wl='-Wl,'
8449 if test ia64 = "$host_cpu"; then
8450 # AIX 5 now supports IA64 processor
8451 lt_prog_compiler_static='-Bstatic'
8452 else
8453 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8454 fi
8455 ;;
8456
8457 darwin* | rhapsody*)
8458 # PIC is the default on this platform
8459 # Common symbols not allowed in MH_DYLIB files
8460 lt_prog_compiler_pic='-fno-common'
8461 case $cc_basename in
8462 nagfor*)
8463 # NAG Fortran compiler
8464 lt_prog_compiler_wl='-Wl,-Wl,,'
8465 lt_prog_compiler_pic='-PIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468 esac
8469 ;;
8470
8471 mingw* | cygwin* | pw32* | os2* | cegcc*)
8472 # This hack is so that the source file can tell whether it is being
8473 # built for inclusion in a dll (and should export symbols for example).
8474 lt_prog_compiler_pic='-DDLL_EXPORT'
8475 case $host_os in
8476 os2*)
8477 lt_prog_compiler_static='$wl-static'
8478 ;;
8479 esac
8480 ;;
8481
8482 hpux9* | hpux10* | hpux11*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8485 # not for PA HP-UX.
8486 case $host_cpu in
8487 hppa*64*|ia64*)
8488 # +Z the default
8489 ;;
8490 *)
8491 lt_prog_compiler_pic='+Z'
8492 ;;
8493 esac
8494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8495 lt_prog_compiler_static='$wl-a ${wl}archive'
8496 ;;
8497
8498 irix5* | irix6* | nonstopux*)
8499 lt_prog_compiler_wl='-Wl,'
8500 # PIC (with -KPIC) is the default.
8501 lt_prog_compiler_static='-non_shared'
8502 ;;
8503
8504 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8505 case $cc_basename in
8506 # old Intel for x86_64, which still supported -KPIC.
8507 ecc*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-static'
8511 ;;
8512 # icc used to be incompatible with GCC.
8513 # ICC 10 doesn't accept -KPIC any more.
8514 icc* | ifort*)
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-fPIC'
8517 lt_prog_compiler_static='-static'
8518 ;;
8519 # Lahey Fortran 8.1.
8520 lf95*)
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_pic='--shared'
8523 lt_prog_compiler_static='--static'
8524 ;;
8525 nagfor*)
8526 # NAG Fortran compiler
8527 lt_prog_compiler_wl='-Wl,-Wl,,'
8528 lt_prog_compiler_pic='-PIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531 tcc*)
8532 # Fabrice Bellard et al's Tiny C Compiler
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-fPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8538 # Portland Group compilers (*not* the Pentium gcc compiler,
8539 # which looks to be a dead project)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fpic'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544 ccc*)
8545 lt_prog_compiler_wl='-Wl,'
8546 # All Alpha code is PIC.
8547 lt_prog_compiler_static='-non_shared'
8548 ;;
8549 xl* | bgxl* | bgf* | mpixl*)
8550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-qpic'
8553 lt_prog_compiler_static='-qstaticlink'
8554 ;;
8555 *)
8556 case `$CC -V 2>&1 | sed 5q` in
8557 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl=''
8562 ;;
8563 *Sun\ F* | *Sun*Fortran*)
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 lt_prog_compiler_wl='-Qoption ld '
8567 ;;
8568 *Sun\ C*)
8569 # Sun C 5.9
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 lt_prog_compiler_wl='-Wl,'
8573 ;;
8574 *Intel*\ [CF]*Compiler*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fPIC'
8577 lt_prog_compiler_static='-static'
8578 ;;
8579 *Portland\ Group*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fpic'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584 esac
8585 ;;
8586 esac
8587 ;;
8588
8589 newsos6)
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 *nto* | *qnx*)
8595 # QNX uses GNU C++, but need to define -shared option too, otherwise
8596 # it will coredump.
8597 lt_prog_compiler_pic='-fPIC -shared'
8598 ;;
8599
8600 osf3* | osf4* | osf5*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All OSF/1 code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8604 ;;
8605
8606 rdos*)
8607 lt_prog_compiler_static='-non_shared'
8608 ;;
8609
8610 solaris*)
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 case $cc_basename in
8614 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8615 lt_prog_compiler_wl='-Qoption ld ';;
8616 *)
8617 lt_prog_compiler_wl='-Wl,';;
8618 esac
8619 ;;
8620
8621 sunos4*)
8622 lt_prog_compiler_wl='-Qoption ld '
8623 lt_prog_compiler_pic='-PIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626
8627 sysv4 | sysv4.2uw2* | sysv4.3*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec; then
8635 lt_prog_compiler_pic='-Kconform_pic'
8636 lt_prog_compiler_static='-Bstatic'
8637 fi
8638 ;;
8639
8640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645
8646 unicos*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_can_build_shared=no
8649 ;;
8650
8651 uts4*)
8652 lt_prog_compiler_pic='-pic'
8653 lt_prog_compiler_static='-Bstatic'
8654 ;;
8655
8656 *)
8657 lt_prog_compiler_can_build_shared=no
8658 ;;
8659 esac
8660 fi
8661
8662 case $host_os in
8663 # For platforms that do not support PIC, -DPIC is meaningless:
8664 *djgpp*)
8665 lt_prog_compiler_pic=
8666 ;;
8667 *)
8668 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669 ;;
8670 esac
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8674 if ${lt_cv_prog_compiler_pic+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8680 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8681 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8682
8683 #
8684 # Check to make sure the PIC flag actually works.
8685 #
8686 if test -n "$lt_prog_compiler_pic"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8689 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 lt_cv_prog_compiler_pic_works=no
8693 ac_outfile=conftest.$ac_objext
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8696 # Insert the option either (1) after the last *FLAGS variable, or
8697 # (2) before a word containing "conftest.", or (3) at the end.
8698 # Note that $ac_compile itself does not contain backslashes and begins
8699 # with a dollar sign (not a hyphen), so the echo should work correctly.
8700 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
8707 ac_status=$?
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 if (exit $ac_status) && test -s "$ac_outfile"; then
8711 # The compiler can only warn and ignore the option if not recognized
8712 # So say no if there are warnings other than the usual output.
8713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_pic_works=yes
8717 fi
8718 fi
8719 $RM conftest*
8720
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8724
8725 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8726 case $lt_prog_compiler_pic in
8727 "" | " "*) ;;
8728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8729 esac
8730 else
8731 lt_prog_compiler_pic=
8732 lt_prog_compiler_can_build_shared=no
8733 fi
8734
8735 fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 #
8748 # Check to make sure the static flag actually works.
8749 #
8750 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8752 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8753 if ${lt_cv_prog_compiler_static_works+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 lt_cv_prog_compiler_static_works=no
8757 save_LDFLAGS=$LDFLAGS
8758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8761 # The linker can only warn and ignore the option if not recognized
8762 # So say no if there are warnings
8763 if test -s conftest.err; then
8764 # Append any errors to the config.log.
8765 cat conftest.err 1>&5
8766 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768 if diff conftest.exp conftest.er2 >/dev/null; then
8769 lt_cv_prog_compiler_static_works=yes
8770 fi
8771 else
8772 lt_cv_prog_compiler_static_works=yes
8773 fi
8774 fi
8775 $RM -r conftest*
8776 LDFLAGS=$save_LDFLAGS
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8781
8782 if test yes = "$lt_cv_prog_compiler_static_works"; then
8783 :
8784 else
8785 lt_prog_compiler_static=
8786 fi
8787
8788
8789
8790
8791
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8796 if ${lt_cv_prog_compiler_c_o+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_c_o=no
8800 $RM -r conftest 2>/dev/null
8801 mkdir conftest
8802 cd conftest
8803 mkdir out
8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805
8806 lt_compiler_flag="-o out/conftest2.$ac_objext"
8807 # Insert the option either (1) after the last *FLAGS variable, or
8808 # (2) before a word containing "conftest.", or (3) at the end.
8809 # Note that $ac_compile itself does not contain backslashes and begins
8810 # with a dollar sign (not a hyphen), so the echo should work correctly.
8811 lt_compile=`echo "$ac_compile" | $SED \
8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814 -e 's:$: $lt_compiler_flag:'`
8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816 (eval "$lt_compile" 2>out/conftest.err)
8817 ac_status=$?
8818 cat out/conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8821 then
8822 # The compiler can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_c_o=yes
8828 fi
8829 fi
8830 chmod u+w . 2>&5
8831 $RM conftest*
8832 # SGI C++ compiler will create directory out/ii_files/ for
8833 # template instantiation
8834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8835 $RM out/* && rmdir out
8836 cd ..
8837 $RM -r conftest
8838 $RM conftest*
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8842 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8843
8844
8845
8846
8847
8848
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8851 if ${lt_cv_prog_compiler_c_o+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 lt_cv_prog_compiler_c_o=no
8855 $RM -r conftest 2>/dev/null
8856 mkdir conftest
8857 cd conftest
8858 mkdir out
8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860
8861 lt_compiler_flag="-o out/conftest2.$ac_objext"
8862 # Insert the option either (1) after the last *FLAGS variable, or
8863 # (2) before a word containing "conftest.", or (3) at the end.
8864 # Note that $ac_compile itself does not contain backslashes and begins
8865 # with a dollar sign (not a hyphen), so the echo should work correctly.
8866 lt_compile=`echo "$ac_compile" | $SED \
8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869 -e 's:$: $lt_compiler_flag:'`
8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871 (eval "$lt_compile" 2>out/conftest.err)
8872 ac_status=$?
8873 cat out/conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8876 then
8877 # The compiler can only warn and ignore the option if not recognized
8878 # So say no if there are warnings
8879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler_c_o=yes
8883 fi
8884 fi
8885 chmod u+w . 2>&5
8886 $RM conftest*
8887 # SGI C++ compiler will create directory out/ii_files/ for
8888 # template instantiation
8889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8890 $RM out/* && rmdir out
8891 cd ..
8892 $RM -r conftest
8893 $RM conftest*
8894
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8897 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898
8899
8900
8901
8902 hard_links=nottested
8903 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8904 # do not overwrite the value of need_locks provided by the user
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8906 $as_echo_n "checking if we can lock with hard links... " >&6; }
8907 hard_links=yes
8908 $RM conftest*
8909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910 touch conftest.a
8911 ln conftest.a conftest.b 2>&5 || hard_links=no
8912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8914 $as_echo "$hard_links" >&6; }
8915 if test no = "$hard_links"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8917 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8918 need_locks=warn
8919 fi
8920 else
8921 need_locks=no
8922 fi
8923
8924
8925
8926
8927
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8931
8932 runpath_var=
8933 allow_undefined_flag=
8934 always_export_symbols=no
8935 archive_cmds=
8936 archive_expsym_cmds=
8937 compiler_needs_object=no
8938 enable_shared_with_static_runtimes=no
8939 export_dynamic_flag_spec=
8940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941 hardcode_automatic=no
8942 hardcode_direct=no
8943 hardcode_direct_absolute=no
8944 hardcode_libdir_flag_spec=
8945 hardcode_libdir_separator=
8946 hardcode_minus_L=no
8947 hardcode_shlibpath_var=unsupported
8948 inherit_rpath=no
8949 link_all_deplibs=unknown
8950 module_cmds=
8951 module_expsym_cmds=
8952 old_archive_from_new_cmds=
8953 old_archive_from_expsyms_cmds=
8954 thread_safe_flag_spec=
8955 whole_archive_flag_spec=
8956 # include_expsyms should be a list of space-separated symbols to be *always*
8957 # included in the symbol list
8958 include_expsyms=
8959 # exclude_expsyms can be an extended regexp of symbols to exclude
8960 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8961 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8962 # as well as any symbol that contains 'd'.
8963 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8964 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8965 # platforms (ab)use it in PIC code, but their linkers get confused if
8966 # the symbol is explicitly referenced. Since portable code cannot
8967 # rely on this symbol name, it's probably fine to never include it in
8968 # preloaded symbol tables.
8969 # Exclude shared library initialization/finalization symbols.
8970 extract_expsyms_cmds=
8971
8972 case $host_os in
8973 cygwin* | mingw* | pw32* | cegcc*)
8974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8975 # When not using gcc, we currently assume that we are using
8976 # Microsoft Visual C++.
8977 if test yes != "$GCC"; then
8978 with_gnu_ld=no
8979 fi
8980 ;;
8981 interix*)
8982 # we just hope/assume this is gcc and not c89 (= MSVC++)
8983 with_gnu_ld=yes
8984 ;;
8985 openbsd* | bitrig*)
8986 with_gnu_ld=no
8987 ;;
8988 esac
8989
8990 ld_shlibs=yes
8991
8992 # On some targets, GNU ld is compatible enough with the native linker
8993 # that we're better off using the native interface for both.
8994 lt_use_gnu_ld_interface=no
8995 if test yes = "$with_gnu_ld"; then
8996 case $host_os in
8997 aix*)
8998 # The AIX port of GNU ld has always aspired to compatibility
8999 # with the native linker. However, as the warning in the GNU ld
9000 # block says, versions before 2.19.5* couldn't really create working
9001 # shared libraries, regardless of the interface used.
9002 case `$LD -v 2>&1` in
9003 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9004 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9005 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9006 *)
9007 lt_use_gnu_ld_interface=yes
9008 ;;
9009 esac
9010 ;;
9011 *)
9012 lt_use_gnu_ld_interface=yes
9013 ;;
9014 esac
9015 fi
9016
9017 if test yes = "$lt_use_gnu_ld_interface"; then
9018 # If archive_cmds runs LD, not CC, wlarc should be empty
9019 wlarc='$wl'
9020
9021 # Set some defaults for GNU ld with shared library support. These
9022 # are reset later if shared libraries are not supported. Putting them
9023 # here allows them to be overridden if necessary.
9024 runpath_var=LD_RUN_PATH
9025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9026 export_dynamic_flag_spec='$wl--export-dynamic'
9027 # ancient GNU ld didn't support --whole-archive et. al.
9028 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9029 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9030 else
9031 whole_archive_flag_spec=
9032 fi
9033 supports_anon_versioning=no
9034 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9035 *GNU\ gold*) supports_anon_versioning=yes ;;
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9039 *\ 2.11.*) ;; # other 2.11 versions
9040 *) supports_anon_versioning=yes ;;
9041 esac
9042
9043 # See if GNU ld supports shared libraries.
9044 case $host_os in
9045 aix[3-9]*)
9046 # On AIX/PPC, the GNU linker is very broken
9047 if test ia64 != "$host_cpu"; then
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: the GNU linker, at least up to release 2.19, is reported
9052 *** to be unable to reliably create shared libraries on AIX.
9053 *** Therefore, libtool is disabling shared libraries support. If you
9054 *** really care for shared libraries, you may want to install binutils
9055 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9056 *** You will then need to restart the configuration process.
9057
9058 _LT_EOF
9059 fi
9060 ;;
9061
9062 amigaos*)
9063 case $host_cpu in
9064 powerpc)
9065 # see comment about AmigaOS4 .so support
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9067 archive_expsym_cmds=''
9068 ;;
9069 m68k)
9070 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)'
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_minus_L=yes
9073 ;;
9074 esac
9075 ;;
9076
9077 beos*)
9078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9079 allow_undefined_flag=unsupported
9080 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9081 # support --undefined. This deserves some investigation. FIXME
9082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9083 else
9084 ld_shlibs=no
9085 fi
9086 ;;
9087
9088 cygwin* | mingw* | pw32* | cegcc*)
9089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9090 # as there is no search path for DLLs.
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 export_dynamic_flag_spec='$wl--export-all-symbols'
9093 allow_undefined_flag=unsupported
9094 always_export_symbols=no
9095 enable_shared_with_static_runtimes=yes
9096 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'
9097 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9098
9099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101 # If the export-symbols file already is a .def file, use it as
9102 # is; otherwise, prepend EXPORTS...
9103 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9104 cp $export_symbols $output_objdir/$soname.def;
9105 else
9106 echo EXPORTS > $output_objdir/$soname.def;
9107 cat $export_symbols >> $output_objdir/$soname.def;
9108 fi~
9109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9110 else
9111 ld_shlibs=no
9112 fi
9113 ;;
9114
9115 haiku*)
9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9117 link_all_deplibs=yes
9118 ;;
9119
9120 os2*)
9121 hardcode_libdir_flag_spec='-L$libdir'
9122 hardcode_minus_L=yes
9123 allow_undefined_flag=unsupported
9124 shrext_cmds=.dll
9125 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9128 $ECHO EXPORTS >> $output_objdir/$libname.def~
9129 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9131 emximp -o $lib $output_objdir/$libname.def'
9132 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9135 $ECHO EXPORTS >> $output_objdir/$libname.def~
9136 prefix_cmds="$SED"~
9137 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9138 prefix_cmds="$prefix_cmds -e 1d";
9139 fi~
9140 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9141 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9142 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9143 emximp -o $lib $output_objdir/$libname.def'
9144 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9145 enable_shared_with_static_runtimes=yes
9146 ;;
9147
9148 interix[3-9]*)
9149 hardcode_direct=no
9150 hardcode_shlibpath_var=no
9151 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9152 export_dynamic_flag_spec='$wl-E'
9153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9154 # Instead, shared libraries are loaded at an image base (0x10000000 by
9155 # default) and relocated if they conflict, which is a slow very memory
9156 # consuming and fragmenting process. To avoid this, we pick a random,
9157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9160 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'
9161 ;;
9162
9163 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9164 tmp_diet=no
9165 if test linux-dietlibc = "$host_os"; then
9166 case $cc_basename in
9167 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9168 esac
9169 fi
9170 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9171 && test no = "$tmp_diet"
9172 then
9173 tmp_addflag=' $pic_flag'
9174 tmp_sharedflag='-shared'
9175 case $cc_basename,$host_cpu in
9176 pgcc*) # Portland Group C compiler
9177 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'
9178 tmp_addflag=' $pic_flag'
9179 ;;
9180 pgf77* | pgf90* | pgf95* | pgfortran*)
9181 # Portland Group f77 and f90 compilers
9182 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'
9183 tmp_addflag=' $pic_flag -Mnomain' ;;
9184 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9185 tmp_addflag=' -i_dynamic' ;;
9186 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9187 tmp_addflag=' -i_dynamic -nofor_main' ;;
9188 ifc* | ifort*) # Intel Fortran compiler
9189 tmp_addflag=' -nofor_main' ;;
9190 lf95*) # Lahey Fortran 8.1
9191 whole_archive_flag_spec=
9192 tmp_sharedflag='--shared' ;;
9193 nagfor*) # NAGFOR 5.3
9194 tmp_sharedflag='-Wl,-shared' ;;
9195 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9196 tmp_sharedflag='-qmkshrobj'
9197 tmp_addflag= ;;
9198 nvcc*) # Cuda Compiler Driver 2.2
9199 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'
9200 compiler_needs_object=yes
9201 ;;
9202 esac
9203 case `$CC -V 2>&1 | sed 5q` in
9204 *Sun\ C*) # Sun C 5.9
9205 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'
9206 compiler_needs_object=yes
9207 tmp_sharedflag='-G' ;;
9208 *Sun\ F*) # Sun Fortran 8.3
9209 tmp_sharedflag='-G' ;;
9210 esac
9211 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9212
9213 if test yes = "$supports_anon_versioning"; then
9214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9216 echo "local: *; };" >> $output_objdir/$libname.ver~
9217 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9218 fi
9219
9220 case $cc_basename in
9221 tcc*)
9222 export_dynamic_flag_spec='-rdynamic'
9223 ;;
9224 xlf* | bgf* | bgxlf* | mpixlf*)
9225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9226 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9228 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9229 if test yes = "$supports_anon_versioning"; then
9230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232 echo "local: *; };" >> $output_objdir/$libname.ver~
9233 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9234 fi
9235 ;;
9236 esac
9237 else
9238 ld_shlibs=no
9239 fi
9240 ;;
9241
9242 netbsd*)
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9245 wlarc=
9246 else
9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9248 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9249 fi
9250 ;;
9251
9252 solaris*)
9253 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9254 ld_shlibs=no
9255 cat <<_LT_EOF 1>&2
9256
9257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9258 *** create shared libraries on Solaris systems. Therefore, libtool
9259 *** is disabling shared libraries support. We urge you to upgrade GNU
9260 *** binutils to release 2.9.1 or newer. Another option is to modify
9261 *** your PATH or compiler configuration so that the native linker is
9262 *** used, and then restart.
9263
9264 _LT_EOF
9265 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272
9273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9274 case `$LD -v 2>&1` in
9275 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9278
9279 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9280 *** reliably create shared libraries on SCO systems. Therefore, libtool
9281 *** is disabling shared libraries support. We urge you to upgrade GNU
9282 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9283 *** your PATH or compiler configuration so that the native linker is
9284 *** used, and then restart.
9285
9286 _LT_EOF
9287 ;;
9288 *)
9289 # For security reasons, it is highly recommended that you always
9290 # use absolute paths for naming shared libraries, and exclude the
9291 # DT_RUNPATH tag from executables and libraries. But doing so
9292 # requires that you compile everything twice, which is a pain.
9293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301 esac
9302 ;;
9303
9304 sunos4*)
9305 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306 wlarc=
9307 hardcode_direct=yes
9308 hardcode_shlibpath_var=no
9309 ;;
9310
9311 *)
9312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9315 else
9316 ld_shlibs=no
9317 fi
9318 ;;
9319 esac
9320
9321 if test no = "$ld_shlibs"; then
9322 runpath_var=
9323 hardcode_libdir_flag_spec=
9324 export_dynamic_flag_spec=
9325 whole_archive_flag_spec=
9326 fi
9327 else
9328 # PORTME fill in a description of your system's linker (not GNU ld)
9329 case $host_os in
9330 aix3*)
9331 allow_undefined_flag=unsupported
9332 always_export_symbols=yes
9333 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'
9334 # Note: this linker hardcodes the directories in LIBPATH if there
9335 # are no directories specified by -L.
9336 hardcode_minus_L=yes
9337 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9338 # Neither direct hardcoding nor static linking is supported with a
9339 # broken collect2.
9340 hardcode_direct=unsupported
9341 fi
9342 ;;
9343
9344 aix[4-9]*)
9345 if test ia64 = "$host_cpu"; then
9346 # On IA64, the linker does run time linking by default, so we don't
9347 # have to do anything special.
9348 aix_use_runtimelinking=no
9349 exp_sym_flag='-Bexport'
9350 no_entry_flag=
9351 else
9352 # If we're using GNU nm, then we don't want the "-C" option.
9353 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9354 # Without the "-l" option, or with the "-B" option, AIX nm treats
9355 # weak defined symbols like other global defined symbols, whereas
9356 # GNU nm marks them as "W".
9357 # While the 'weak' keyword is ignored in the Export File, we need
9358 # it in the Import File for the 'aix-soname' feature, so we have
9359 # to replace the "-B" option with "-P" for AIX nm.
9360 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9361 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9362 else
9363 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9364 fi
9365 aix_use_runtimelinking=no
9366
9367 # Test if we are trying to use run time linking or normal
9368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9369 # have runtime linking enabled, and use it for executables.
9370 # For shared libraries, we enable/disable runtime linking
9371 # depending on the kind of the shared library created -
9372 # when "with_aix_soname,aix_use_runtimelinking" is:
9373 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9374 # "aix,yes" lib.so shared, rtl:yes, for executables
9375 # lib.a static archive
9376 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9377 # lib.a(lib.so.V) shared, rtl:no, for executables
9378 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9379 # lib.a(lib.so.V) shared, rtl:no
9380 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9381 # lib.a static archive
9382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9383 for ld_flag in $LDFLAGS; do
9384 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9385 aix_use_runtimelinking=yes
9386 break
9387 fi
9388 done
9389 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9390 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9391 # so we don't have lib.a shared libs to link our executables.
9392 # We have to force runtime linking in this case.
9393 aix_use_runtimelinking=yes
9394 LDFLAGS="$LDFLAGS -Wl,-brtl"
9395 fi
9396 ;;
9397 esac
9398
9399 exp_sym_flag='-bexport'
9400 no_entry_flag='-bnoentry'
9401 fi
9402
9403 # When large executables or shared objects are built, AIX ld can
9404 # have problems creating the table of contents. If linking a library
9405 # or program results in "error TOC overflow" add -mminimal-toc to
9406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408
9409 archive_cmds=''
9410 hardcode_direct=yes
9411 hardcode_direct_absolute=yes
9412 hardcode_libdir_separator=':'
9413 link_all_deplibs=yes
9414 file_list_spec='$wl-f,'
9415 case $with_aix_soname,$aix_use_runtimelinking in
9416 aix,*) ;; # traditional, no import file
9417 svr4,* | *,yes) # use import file
9418 # The Import File defines what to hardcode.
9419 hardcode_direct=no
9420 hardcode_direct_absolute=no
9421 ;;
9422 esac
9423
9424 if test yes = "$GCC"; then
9425 case $host_os in aix4.[012]|aix4.[012].*)
9426 # We only want to do this on AIX 4.2 and lower, the check
9427 # below for broken collect2 doesn't work under 4.3+
9428 collect2name=`$CC -print-prog-name=collect2`
9429 if test -f "$collect2name" &&
9430 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9431 then
9432 # We have reworked collect2
9433 :
9434 else
9435 # We have old collect2
9436 hardcode_direct=unsupported
9437 # It fails to find uninstalled libraries when the uninstalled
9438 # path is not listed in the libpath. Setting hardcode_minus_L
9439 # to unsupported forces relinking
9440 hardcode_minus_L=yes
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_libdir_separator=
9443 fi
9444 ;;
9445 esac
9446 shared_flag='-shared'
9447 if test yes = "$aix_use_runtimelinking"; then
9448 shared_flag="$shared_flag "'$wl-G'
9449 fi
9450 # Need to ensure runtime linking is disabled for the traditional
9451 # shared library, or the linker may eventually find shared libraries
9452 # /with/ Import File - we do not want to mix them.
9453 shared_flag_aix='-shared'
9454 shared_flag_svr4='-shared $wl-G'
9455 else
9456 # not using gcc
9457 if test ia64 = "$host_cpu"; then
9458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9459 # chokes on -Wl,-G. The following line is correct:
9460 shared_flag='-G'
9461 else
9462 if test yes = "$aix_use_runtimelinking"; then
9463 shared_flag='$wl-G'
9464 else
9465 shared_flag='$wl-bM:SRE'
9466 fi
9467 shared_flag_aix='$wl-bM:SRE'
9468 shared_flag_svr4='$wl-G'
9469 fi
9470 fi
9471
9472 export_dynamic_flag_spec='$wl-bexpall'
9473 # It seems that -bexpall does not export symbols beginning with
9474 # underscore (_), so it is better to generate a list of symbols to export.
9475 always_export_symbols=yes
9476 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9477 # Warning - without using the other runtime loading flags (-brtl),
9478 # -berok will link without error, but may produce a broken library.
9479 allow_undefined_flag='-berok'
9480 # Determine the default libpath from the value encoded in an
9481 # empty executable.
9482 if test set = "${lt_cv_aix_libpath+set}"; then
9483 aix_libpath=$lt_cv_aix_libpath
9484 else
9485 if ${lt_cv_aix_libpath_+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490
9491 int
9492 main ()
9493 {
9494
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500
9501 lt_aix_libpath_sed='
9502 /Import File Strings/,/^$/ {
9503 /^0/ {
9504 s/^0 *\([^ ]*\) *$/\1/
9505 p
9506 }
9507 }'
9508 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509 # Check for a 64-bit object if we didn't find anything.
9510 if test -z "$lt_cv_aix_libpath_"; then
9511 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 fi
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 if test -z "$lt_cv_aix_libpath_"; then
9517 lt_cv_aix_libpath_=/usr/lib:/lib
9518 fi
9519
9520 fi
9521
9522 aix_libpath=$lt_cv_aix_libpath_
9523 fi
9524
9525 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9526 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9527 else
9528 if test ia64 = "$host_cpu"; then
9529 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9530 allow_undefined_flag="-z nodefs"
9531 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"
9532 else
9533 # Determine the default libpath from the value encoded in an
9534 # empty executable.
9535 if test set = "${lt_cv_aix_libpath+set}"; then
9536 aix_libpath=$lt_cv_aix_libpath
9537 else
9538 if ${lt_cv_aix_libpath_+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543
9544 int
9545 main ()
9546 {
9547
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553
9554 lt_aix_libpath_sed='
9555 /Import File Strings/,/^$/ {
9556 /^0/ {
9557 s/^0 *\([^ ]*\) *$/\1/
9558 p
9559 }
9560 }'
9561 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562 # Check for a 64-bit object if we didn't find anything.
9563 if test -z "$lt_cv_aix_libpath_"; then
9564 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565 fi
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 if test -z "$lt_cv_aix_libpath_"; then
9570 lt_cv_aix_libpath_=/usr/lib:/lib
9571 fi
9572
9573 fi
9574
9575 aix_libpath=$lt_cv_aix_libpath_
9576 fi
9577
9578 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9579 # Warning - without using the other run time loading flags,
9580 # -berok will link without error, but may produce a broken library.
9581 no_undefined_flag=' $wl-bernotok'
9582 allow_undefined_flag=' $wl-berok'
9583 if test yes = "$with_gnu_ld"; then
9584 # We only use this code for GNU lds that support --whole-archive.
9585 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9586 else
9587 # Exported symbols can be pulled into shared objects from archives
9588 whole_archive_flag_spec='$convenience'
9589 fi
9590 archive_cmds_need_lc=yes
9591 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9592 # -brtl affects multiple linker settings, -berok does not and is overridden later
9593 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9594 if test svr4 != "$with_aix_soname"; then
9595 # This is similar to how AIX traditionally builds its shared libraries.
9596 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9597 fi
9598 if test aix != "$with_aix_soname"; then
9599 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9600 else
9601 # used by -dlpreopen to get the symbols
9602 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9603 fi
9604 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9605 fi
9606 fi
9607 ;;
9608
9609 amigaos*)
9610 case $host_cpu in
9611 powerpc)
9612 # see comment about AmigaOS4 .so support
9613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9614 archive_expsym_cmds=''
9615 ;;
9616 m68k)
9617 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)'
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_minus_L=yes
9620 ;;
9621 esac
9622 ;;
9623
9624 bsdi[45]*)
9625 export_dynamic_flag_spec=-rdynamic
9626 ;;
9627
9628 cygwin* | mingw* | pw32* | cegcc*)
9629 # When not using gcc, we currently assume that we are using
9630 # Microsoft Visual C++.
9631 # hardcode_libdir_flag_spec is actually meaningless, as there is
9632 # no search path for DLLs.
9633 case $cc_basename in
9634 cl*)
9635 # Native MSVC
9636 hardcode_libdir_flag_spec=' '
9637 allow_undefined_flag=unsupported
9638 always_export_symbols=yes
9639 file_list_spec='@'
9640 # Tell ltmain to make .lib files, not .a files.
9641 libext=lib
9642 # Tell ltmain to make .dll files, not .so files.
9643 shrext_cmds=.dll
9644 # FIXME: Setting linknames here is a bad hack.
9645 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9646 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9647 cp "$export_symbols" "$output_objdir/$soname.def";
9648 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9649 else
9650 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9651 fi~
9652 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9653 linknames='
9654 # The linker will not automatically build a static lib if we build a DLL.
9655 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9656 enable_shared_with_static_runtimes=yes
9657 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9659 # Don't use ranlib
9660 old_postinstall_cmds='chmod 644 $oldlib'
9661 postlink_cmds='lt_outputfile="@OUTPUT@"~
9662 lt_tool_outputfile="@TOOL_OUTPUT@"~
9663 case $lt_outputfile in
9664 *.exe|*.EXE) ;;
9665 *)
9666 lt_outputfile=$lt_outputfile.exe
9667 lt_tool_outputfile=$lt_tool_outputfile.exe
9668 ;;
9669 esac~
9670 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9671 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672 $RM "$lt_outputfile.manifest";
9673 fi'
9674 ;;
9675 *)
9676 # Assume MSVC wrapper
9677 hardcode_libdir_flag_spec=' '
9678 allow_undefined_flag=unsupported
9679 # Tell ltmain to make .lib files, not .a files.
9680 libext=lib
9681 # Tell ltmain to make .dll files, not .so files.
9682 shrext_cmds=.dll
9683 # FIXME: Setting linknames here is a bad hack.
9684 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685 # The linker will automatically build a .lib file if we build a DLL.
9686 old_archive_from_new_cmds='true'
9687 # FIXME: Should let the user specify the lib program.
9688 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689 enable_shared_with_static_runtimes=yes
9690 ;;
9691 esac
9692 ;;
9693
9694 darwin* | rhapsody*)
9695
9696
9697 archive_cmds_need_lc=no
9698 hardcode_direct=no
9699 hardcode_automatic=yes
9700 hardcode_shlibpath_var=unsupported
9701 if test yes = "$lt_cv_ld_force_load"; then
9702 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\"`'
9703
9704 else
9705 whole_archive_flag_spec=''
9706 fi
9707 link_all_deplibs=yes
9708 allow_undefined_flag=$_lt_dar_allow_undefined
9709 case $cc_basename in
9710 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9711 *) _lt_dar_can_shared=$GCC ;;
9712 esac
9713 if test yes = "$_lt_dar_can_shared"; then
9714 output_verbose_link_cmd=func_echo_all
9715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9717 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"
9718 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"
9719
9720 else
9721 ld_shlibs=no
9722 fi
9723
9724 ;;
9725
9726 dgux*)
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9733 # support. Future versions do this automatically, but an explicit c++rt0.o
9734 # does not break anything, and helps significantly (at the cost of a little
9735 # extra space).
9736 freebsd2.2*)
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9738 hardcode_libdir_flag_spec='-R$libdir'
9739 hardcode_direct=yes
9740 hardcode_shlibpath_var=no
9741 ;;
9742
9743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9744 freebsd2.*)
9745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_direct=yes
9747 hardcode_minus_L=yes
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9752 freebsd* | dragonfly*)
9753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754 hardcode_libdir_flag_spec='-R$libdir'
9755 hardcode_direct=yes
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 hpux9*)
9760 if test yes = "$GCC"; then
9761 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9762 else
9763 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9764 fi
9765 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9766 hardcode_libdir_separator=:
9767 hardcode_direct=yes
9768
9769 # hardcode_minus_L: Not really in the search PATH,
9770 # but as the default location of the library.
9771 hardcode_minus_L=yes
9772 export_dynamic_flag_spec='$wl-E'
9773 ;;
9774
9775 hpux10*)
9776 if test yes,no = "$GCC,$with_gnu_ld"; then
9777 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778 else
9779 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780 fi
9781 if test no = "$with_gnu_ld"; then
9782 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9783 hardcode_libdir_separator=:
9784 hardcode_direct=yes
9785 hardcode_direct_absolute=yes
9786 export_dynamic_flag_spec='$wl-E'
9787 # hardcode_minus_L: Not really in the search PATH,
9788 # but as the default location of the library.
9789 hardcode_minus_L=yes
9790 fi
9791 ;;
9792
9793 hpux11*)
9794 if test yes,no = "$GCC,$with_gnu_ld"; then
9795 case $host_cpu in
9796 hppa*64*)
9797 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 ia64*)
9800 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801 ;;
9802 *)
9803 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 esac
9806 else
9807 case $host_cpu in
9808 hppa*64*)
9809 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 ;;
9811 ia64*)
9812 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 *)
9815
9816 # Older versions of the 11.00 compiler do not understand -b yet
9817 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819 $as_echo_n "checking if $CC understands -b... " >&6; }
9820 if ${lt_cv_prog_compiler__b+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 lt_cv_prog_compiler__b=no
9824 save_LDFLAGS=$LDFLAGS
9825 LDFLAGS="$LDFLAGS -b"
9826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828 # The linker can only warn and ignore the option if not recognized
9829 # So say no if there are warnings
9830 if test -s conftest.err; then
9831 # Append any errors to the config.log.
9832 cat conftest.err 1>&5
9833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835 if diff conftest.exp conftest.er2 >/dev/null; then
9836 lt_cv_prog_compiler__b=yes
9837 fi
9838 else
9839 lt_cv_prog_compiler__b=yes
9840 fi
9841 fi
9842 $RM -r conftest*
9843 LDFLAGS=$save_LDFLAGS
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9848
9849 if test yes = "$lt_cv_prog_compiler__b"; then
9850 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851 else
9852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853 fi
9854
9855 ;;
9856 esac
9857 fi
9858 if test no = "$with_gnu_ld"; then
9859 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9860 hardcode_libdir_separator=:
9861
9862 case $host_cpu in
9863 hppa*64*|ia64*)
9864 hardcode_direct=no
9865 hardcode_shlibpath_var=no
9866 ;;
9867 *)
9868 hardcode_direct=yes
9869 hardcode_direct_absolute=yes
9870 export_dynamic_flag_spec='$wl-E'
9871
9872 # hardcode_minus_L: Not really in the search PATH,
9873 # but as the default location of the library.
9874 hardcode_minus_L=yes
9875 ;;
9876 esac
9877 fi
9878 ;;
9879
9880 irix5* | irix6* | nonstopux*)
9881 if test yes = "$GCC"; then
9882 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'
9883 # Try to use the -exported_symbol ld option, if it does not
9884 # work, assume that -exports_file does not work either and
9885 # implicitly export all symbols.
9886 # This should be the same for all languages, so no per-tag cache variable.
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889 if ${lt_cv_irix_exported_symbol+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 save_LDFLAGS=$LDFLAGS
9893 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 int foo (void) { return 0; }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 lt_cv_irix_exported_symbol=yes
9900 else
9901 lt_cv_irix_exported_symbol=no
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LDFLAGS=$save_LDFLAGS
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909 if test yes = "$lt_cv_irix_exported_symbol"; then
9910 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'
9911 fi
9912 else
9913 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'
9914 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'
9915 fi
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9918 hardcode_libdir_separator=:
9919 inherit_rpath=yes
9920 link_all_deplibs=yes
9921 ;;
9922
9923 linux*)
9924 case $cc_basename in
9925 tcc*)
9926 # Fabrice Bellard et al's Tiny C Compiler
9927 ld_shlibs=yes
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 ;;
9930 esac
9931 ;;
9932
9933 netbsd*)
9934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9936 else
9937 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9938 fi
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 hardcode_direct=yes
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 newsos6)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_direct=yes
9947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9948 hardcode_libdir_separator=:
9949 hardcode_shlibpath_var=no
9950 ;;
9951
9952 *nto* | *qnx*)
9953 ;;
9954
9955 openbsd* | bitrig*)
9956 if test -f /usr/libexec/ld.so; then
9957 hardcode_direct=yes
9958 hardcode_shlibpath_var=no
9959 hardcode_direct_absolute=yes
9960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9963 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9964 export_dynamic_flag_spec='$wl-E'
9965 else
9966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9968 fi
9969 else
9970 ld_shlibs=no
9971 fi
9972 ;;
9973
9974 os2*)
9975 hardcode_libdir_flag_spec='-L$libdir'
9976 hardcode_minus_L=yes
9977 allow_undefined_flag=unsupported
9978 shrext_cmds=.dll
9979 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9982 $ECHO EXPORTS >> $output_objdir/$libname.def~
9983 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9985 emximp -o $lib $output_objdir/$libname.def'
9986 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9987 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9988 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9989 $ECHO EXPORTS >> $output_objdir/$libname.def~
9990 prefix_cmds="$SED"~
9991 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9992 prefix_cmds="$prefix_cmds -e 1d";
9993 fi~
9994 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9995 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9996 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9997 emximp -o $lib $output_objdir/$libname.def'
9998 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9999 enable_shared_with_static_runtimes=yes
10000 ;;
10001
10002 osf3*)
10003 if test yes = "$GCC"; then
10004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10005 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'
10006 else
10007 allow_undefined_flag=' -expect_unresolved \*'
10008 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'
10009 fi
10010 archive_cmds_need_lc='no'
10011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10012 hardcode_libdir_separator=:
10013 ;;
10014
10015 osf4* | osf5*) # as osf3* with the addition of -msym flag
10016 if test yes = "$GCC"; then
10017 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10018 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'
10019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020 else
10021 allow_undefined_flag=' -expect_unresolved \*'
10022 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'
10023 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~
10024 $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'
10025
10026 # Both c and cxx compiler support -rpath directly
10027 hardcode_libdir_flag_spec='-rpath $libdir'
10028 fi
10029 archive_cmds_need_lc='no'
10030 hardcode_libdir_separator=:
10031 ;;
10032
10033 solaris*)
10034 no_undefined_flag=' -z defs'
10035 if test yes = "$GCC"; then
10036 wlarc='$wl'
10037 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039 $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'
10040 else
10041 case `$CC -V 2>&1` in
10042 *"Compilers 5.0"*)
10043 wlarc=''
10044 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10047 ;;
10048 *)
10049 wlarc='$wl'
10050 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10053 ;;
10054 esac
10055 fi
10056 hardcode_libdir_flag_spec='-R$libdir'
10057 hardcode_shlibpath_var=no
10058 case $host_os in
10059 solaris2.[0-5] | solaris2.[0-5].*) ;;
10060 *)
10061 # The compiler driver will combine and reorder linker options,
10062 # but understands '-z linker_flag'. GCC discards it without '$wl',
10063 # but is careful enough not to reorder.
10064 # Supported since Solaris 2.6 (maybe 2.5.1?)
10065 if test yes = "$GCC"; then
10066 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10067 else
10068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10069 fi
10070 ;;
10071 esac
10072 link_all_deplibs=yes
10073 ;;
10074
10075 sunos4*)
10076 if test sequent = "$host_vendor"; then
10077 # Use $CC to link under sequent, because it throws in some extra .o
10078 # files that make .init and .fini sections work.
10079 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080 else
10081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10082 fi
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 hardcode_direct=yes
10085 hardcode_minus_L=yes
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 sysv4)
10090 case $host_vendor in
10091 sni)
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct=yes # is this really true???
10094 ;;
10095 siemens)
10096 ## LD is ld it makes a PLAMLIB
10097 ## CC just makes a GrossModule.
10098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10099 reload_cmds='$CC -r -o $output$reload_objs'
10100 hardcode_direct=no
10101 ;;
10102 motorola)
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10105 ;;
10106 esac
10107 runpath_var='LD_RUN_PATH'
10108 hardcode_shlibpath_var=no
10109 ;;
10110
10111 sysv4.3*)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_shlibpath_var=no
10114 export_dynamic_flag_spec='-Bexport'
10115 ;;
10116
10117 sysv4*MP*)
10118 if test -d /usr/nec; then
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_shlibpath_var=no
10121 runpath_var=LD_RUN_PATH
10122 hardcode_runpath_var=yes
10123 ld_shlibs=yes
10124 fi
10125 ;;
10126
10127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10128 no_undefined_flag='$wl-z,text'
10129 archive_cmds_need_lc=no
10130 hardcode_shlibpath_var=no
10131 runpath_var='LD_RUN_PATH'
10132
10133 if test yes = "$GCC"; then
10134 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 fi
10140 ;;
10141
10142 sysv5* | sco3.2v5* | sco5v6*)
10143 # Note: We CANNOT use -z defs as we might desire, because we do not
10144 # link with -lc, and that would cause any symbols used from libc to
10145 # always be unresolved, which means just about no library would
10146 # ever link correctly. If we're not using GNU ld we use -z text
10147 # though, which does catch some bad symbols but isn't as heavy-handed
10148 # as -z defs.
10149 no_undefined_flag='$wl-z,text'
10150 allow_undefined_flag='$wl-z,nodefs'
10151 archive_cmds_need_lc=no
10152 hardcode_shlibpath_var=no
10153 hardcode_libdir_flag_spec='$wl-R,$libdir'
10154 hardcode_libdir_separator=':'
10155 link_all_deplibs=yes
10156 export_dynamic_flag_spec='$wl-Bexport'
10157 runpath_var='LD_RUN_PATH'
10158
10159 if test yes = "$GCC"; then
10160 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 fi
10166 ;;
10167
10168 uts4*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_shlibpath_var=no
10172 ;;
10173
10174 *)
10175 ld_shlibs=no
10176 ;;
10177 esac
10178
10179 if test sni = "$host_vendor"; then
10180 case $host in
10181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10182 export_dynamic_flag_spec='$wl-Blargedynsym'
10183 ;;
10184 esac
10185 fi
10186 fi
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10189 $as_echo "$ld_shlibs" >&6; }
10190 test no = "$ld_shlibs" && can_build_shared=no
10191
10192 with_gnu_ld=$with_gnu_ld
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208 #
10209 # Do we need to explicitly link libc?
10210 #
10211 case "x$archive_cmds_need_lc" in
10212 x|xyes)
10213 # Assume -lc should be added
10214 archive_cmds_need_lc=yes
10215
10216 if test yes,yes = "$GCC,$enable_shared"; then
10217 case $archive_cmds in
10218 *'~'*)
10219 # FIXME: we may have to deal with multi-command sequences.
10220 ;;
10221 '$CC '*)
10222 # Test whether the compiler implicitly links with -lc since on some
10223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10224 # to ld, don't add -lc before -lgcc.
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 $RM conftest*
10231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234 (eval $ac_compile) 2>&5
10235 ac_status=$?
10236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237 test $ac_status = 0; } 2>conftest.err; then
10238 soname=conftest
10239 lib=conftest
10240 libobjs=conftest.$ac_objext
10241 deplibs=
10242 wl=$lt_prog_compiler_wl
10243 pic_flag=$lt_prog_compiler_pic
10244 compiler_flags=-v
10245 linker_flags=-v
10246 verstring=
10247 output_objdir=.
10248 libname=conftest
10249 lt_save_allow_undefined_flag=$allow_undefined_flag
10250 allow_undefined_flag=
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253 ac_status=$?
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; }
10256 then
10257 lt_cv_archive_cmds_need_lc=no
10258 else
10259 lt_cv_archive_cmds_need_lc=yes
10260 fi
10261 allow_undefined_flag=$lt_save_allow_undefined_flag
10262 else
10263 cat conftest.err 1>&5
10264 fi
10265 $RM conftest*
10266
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10271 ;;
10272 esac
10273 fi
10274 ;;
10275 esac
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
10431 if test yes = "$GCC"; then
10432 case $host_os in
10433 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10434 *) lt_awk_arg='/^libraries:/' ;;
10435 esac
10436 case $host_os in
10437 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10438 *) lt_sed_strip_eq='s|=/|/|g' ;;
10439 esac
10440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441 case $lt_search_path_spec in
10442 *\;*)
10443 # if the path contains ";" then we assume it to be the separator
10444 # otherwise default to the standard path separator (i.e. ":") - it is
10445 # assumed that no part of a normal pathname contains ";" but that should
10446 # okay in the real world where ";" in dirpaths is itself problematic.
10447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10448 ;;
10449 *)
10450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10451 ;;
10452 esac
10453 # Ok, now we have the path, separated by spaces, we can step through it
10454 # and add multilib dir if necessary...
10455 lt_tmp_lt_search_path_spec=
10456 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457 # ...but if some path component already ends with the multilib dir we assume
10458 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10459 case "$lt_multi_os_dir; $lt_search_path_spec " in
10460 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10461 lt_multi_os_dir=
10462 ;;
10463 esac
10464 for lt_sys_path in $lt_search_path_spec; do
10465 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10467 elif test -n "$lt_multi_os_dir"; then
10468 test -d "$lt_sys_path" && \
10469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10470 fi
10471 done
10472 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10473 BEGIN {RS = " "; FS = "/|\n";} {
10474 lt_foo = "";
10475 lt_count = 0;
10476 for (lt_i = NF; lt_i > 0; lt_i--) {
10477 if ($lt_i != "" && $lt_i != ".") {
10478 if ($lt_i == "..") {
10479 lt_count++;
10480 } else {
10481 if (lt_count == 0) {
10482 lt_foo = "/" $lt_i lt_foo;
10483 } else {
10484 lt_count--;
10485 }
10486 }
10487 }
10488 }
10489 if (lt_foo != "") { lt_freq[lt_foo]++; }
10490 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10491 }'`
10492 # AWK program above erroneously prepends '/' to C:/dos/paths
10493 # for these hosts.
10494 case $host_os in
10495 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10496 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10497 esac
10498 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10499 else
10500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10501 fi
10502 library_names_spec=
10503 libname_spec='lib$name'
10504 soname_spec=
10505 shrext_cmds=.so
10506 postinstall_cmds=
10507 postuninstall_cmds=
10508 finish_cmds=
10509 finish_eval=
10510 shlibpath_var=
10511 shlibpath_overrides_runpath=unknown
10512 version_type=none
10513 dynamic_linker="$host_os ld.so"
10514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10515 need_lib_prefix=unknown
10516 hardcode_into_libs=no
10517
10518 # when you set need_version to no, make sure it does not cause -set_version
10519 # flags to be left without arguments
10520 need_version=unknown
10521
10522
10523
10524 case $host_os in
10525 aix3*)
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10528 shlibpath_var=LIBPATH
10529
10530 # AIX 3 has no versioning support, so we append a major version to the name.
10531 soname_spec='$libname$release$shared_ext$major'
10532 ;;
10533
10534 aix[4-9]*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 need_lib_prefix=no
10537 need_version=no
10538 hardcode_into_libs=yes
10539 if test ia64 = "$host_cpu"; then
10540 # AIX 5 supports IA64
10541 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 else
10544 # With GCC up to 2.95.x, collect2 would create an import file
10545 # for dependence libraries. The import file would start with
10546 # the line '#! .'. This would cause the generated library to
10547 # depend on '.', always an invalid library. This was fixed in
10548 # development snapshots of GCC prior to 3.0.
10549 case $host_os in
10550 aix4 | aix4.[01] | aix4.[01].*)
10551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10552 echo ' yes '
10553 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10554 :
10555 else
10556 can_build_shared=no
10557 fi
10558 ;;
10559 esac
10560 # Using Import Files as archive members, it is possible to support
10561 # filename-based versioning of shared library archives on AIX. While
10562 # this would work for both with and without runtime linking, it will
10563 # prevent static linking of such archives. So we do filename-based
10564 # shared library versioning with .so extension only, which is used
10565 # when both runtime linking and shared linking is enabled.
10566 # Unfortunately, runtime linking may impact performance, so we do
10567 # not want this to be the default eventually. Also, we use the
10568 # versioned .so libs for executables only if there is the -brtl
10569 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10570 # To allow for filename-based versioning support, we need to create
10571 # libNAME.so.V as an archive file, containing:
10572 # *) an Import File, referring to the versioned filename of the
10573 # archive as well as the shared archive member, telling the
10574 # bitwidth (32 or 64) of that shared object, and providing the
10575 # list of exported symbols of that shared object, eventually
10576 # decorated with the 'weak' keyword
10577 # *) the shared object with the F_LOADONLY flag set, to really avoid
10578 # it being seen by the linker.
10579 # At run time we better use the real file rather than another symlink,
10580 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10581
10582 case $with_aix_soname,$aix_use_runtimelinking in
10583 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10584 # soname into executable. Probably we can add versioning support to
10585 # collect2, so additional links can be useful in future.
10586 aix,yes) # traditional libtool
10587 dynamic_linker='AIX unversionable lib.so'
10588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10589 # instead of lib<name>.a to let people know that these are not
10590 # typical AIX shared libraries.
10591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10592 ;;
10593 aix,no) # traditional AIX only
10594 dynamic_linker='AIX lib.a(lib.so.V)'
10595 # We preserve .a as extension for shared libraries through AIX4.2
10596 # and later when we are not doing run time linking.
10597 library_names_spec='$libname$release.a $libname.a'
10598 soname_spec='$libname$release$shared_ext$major'
10599 ;;
10600 svr4,*) # full svr4 only
10601 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10602 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10603 # We do not specify a path in Import Files, so LIBPATH fires.
10604 shlibpath_overrides_runpath=yes
10605 ;;
10606 *,yes) # both, prefer svr4
10607 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10608 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10609 # unpreferred sharedlib libNAME.a needs extra handling
10610 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10611 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10612 # We do not specify a path in Import Files, so LIBPATH fires.
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615 *,no) # both, prefer aix
10616 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10617 library_names_spec='$libname$release.a $libname.a'
10618 soname_spec='$libname$release$shared_ext$major'
10619 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10620 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10621 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10622 ;;
10623 esac
10624 shlibpath_var=LIBPATH
10625 fi
10626 ;;
10627
10628 amigaos*)
10629 case $host_cpu in
10630 powerpc)
10631 # Since July 2007 AmigaOS4 officially supports .so libraries.
10632 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10634 ;;
10635 m68k)
10636 library_names_spec='$libname.ixlibrary $libname.a'
10637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10638 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10639 ;;
10640 esac
10641 ;;
10642
10643 beos*)
10644 library_names_spec='$libname$shared_ext'
10645 dynamic_linker="$host_os ld.so"
10646 shlibpath_var=LIBRARY_PATH
10647 ;;
10648
10649 bsdi[45]*)
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 need_version=no
10652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653 soname_spec='$libname$release$shared_ext$major'
10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10658 # the default ld.so.conf also contains /usr/contrib/lib and
10659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10660 # libtool to hard-code these into programs
10661 ;;
10662
10663 cygwin* | mingw* | pw32* | cegcc*)
10664 version_type=windows
10665 shrext_cmds=.dll
10666 need_version=no
10667 need_lib_prefix=no
10668
10669 case $GCC,$cc_basename in
10670 yes,*)
10671 # gcc
10672 library_names_spec='$libname.dll.a'
10673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10674 postinstall_cmds='base_file=`basename \$file`~
10675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10676 dldir=$destdir/`dirname \$dlpath`~
10677 test -d \$dldir || mkdir -p \$dldir~
10678 $install_prog $dir/$dlname \$dldir/$dlname~
10679 chmod a+x \$dldir/$dlname~
10680 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10681 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10682 fi'
10683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10684 dlpath=$dir/\$dldll~
10685 $RM \$dlpath'
10686 shlibpath_overrides_runpath=yes
10687
10688 case $host_os in
10689 cygwin*)
10690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10691 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10692
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10694 ;;
10695 mingw* | cegcc*)
10696 # MinGW DLLs use traditional 'lib' prefix
10697 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10698 ;;
10699 pw32*)
10700 # pw32 DLLs use 'pw' prefix rather than 'lib'
10701 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10702 ;;
10703 esac
10704 dynamic_linker='Win32 ld.exe'
10705 ;;
10706
10707 *,cl*)
10708 # Native MSVC
10709 libname_spec='$name'
10710 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711 library_names_spec='$libname.dll.lib'
10712
10713 case $build_os in
10714 mingw*)
10715 sys_lib_search_path_spec=
10716 lt_save_ifs=$IFS
10717 IFS=';'
10718 for lt_path in $LIB
10719 do
10720 IFS=$lt_save_ifs
10721 # Let DOS variable expansion print the short 8.3 style file name.
10722 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10724 done
10725 IFS=$lt_save_ifs
10726 # Convert to MSYS style.
10727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10728 ;;
10729 cygwin*)
10730 # Convert to unix form, then to dos form, then back to unix form
10731 # but this time dos style (no spaces!) so that the unix form looks
10732 # like /cygdrive/c/PROGRA~1:/cygdr...
10733 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10734 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10735 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10736 ;;
10737 *)
10738 sys_lib_search_path_spec=$LIB
10739 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10740 # It is most probably a Windows format PATH.
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742 else
10743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10744 fi
10745 # FIXME: find the short name or the path components, as spaces are
10746 # common. (e.g. "Program Files" -> "PROGRA~1")
10747 ;;
10748 esac
10749
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751 postinstall_cmds='base_file=`basename \$file`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname'
10756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757 dlpath=$dir/\$dldll~
10758 $RM \$dlpath'
10759 shlibpath_overrides_runpath=yes
10760 dynamic_linker='Win32 link.exe'
10761 ;;
10762
10763 *)
10764 # Assume MSVC wrapper
10765 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10766 dynamic_linker='Win32 ld.exe'
10767 ;;
10768 esac
10769 # FIXME: first we should search . and the directory the executable is in
10770 shlibpath_var=PATH
10771 ;;
10772
10773 darwin* | rhapsody*)
10774 dynamic_linker="$host_os dyld"
10775 version_type=darwin
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10779 soname_spec='$libname$release$major$shared_ext'
10780 shlibpath_overrides_runpath=yes
10781 shlibpath_var=DYLD_LIBRARY_PATH
10782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10783
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10786 ;;
10787
10788 dgux*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10793 soname_spec='$libname$release$shared_ext$major'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 ;;
10796
10797 freebsd* | dragonfly*)
10798 # DragonFly does not have aout. When/if they implement a new
10799 # versioning mechanism, adjust this.
10800 if test -x /usr/bin/objformat; then
10801 objformat=`/usr/bin/objformat`
10802 else
10803 case $host_os in
10804 freebsd[23].*) objformat=aout ;;
10805 *) objformat=elf ;;
10806 esac
10807 fi
10808 version_type=freebsd-$objformat
10809 case $version_type in
10810 freebsd-elf*)
10811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812 soname_spec='$libname$release$shared_ext$major'
10813 need_version=no
10814 need_lib_prefix=no
10815 ;;
10816 freebsd-*)
10817 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10818 need_version=yes
10819 ;;
10820 esac
10821 shlibpath_var=LD_LIBRARY_PATH
10822 case $host_os in
10823 freebsd2.*)
10824 shlibpath_overrides_runpath=yes
10825 ;;
10826 freebsd3.[01]* | freebsdelf3.[01]*)
10827 shlibpath_overrides_runpath=yes
10828 hardcode_into_libs=yes
10829 ;;
10830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10832 shlibpath_overrides_runpath=no
10833 hardcode_into_libs=yes
10834 ;;
10835 *) # from 4.6 on, and DragonFly
10836 shlibpath_overrides_runpath=yes
10837 hardcode_into_libs=yes
10838 ;;
10839 esac
10840 ;;
10841
10842 haiku*)
10843 version_type=linux # correct to gnu/linux during the next big refactor
10844 need_lib_prefix=no
10845 need_version=no
10846 dynamic_linker="$host_os runtime_loader"
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848 soname_spec='$libname$release$shared_ext$major'
10849 shlibpath_var=LIBRARY_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10852 hardcode_into_libs=yes
10853 ;;
10854
10855 hpux9* | hpux10* | hpux11*)
10856 # Give a soname corresponding to the major version so that dld.sl refuses to
10857 # link against other versions.
10858 version_type=sunos
10859 need_lib_prefix=no
10860 need_version=no
10861 case $host_cpu in
10862 ia64*)
10863 shrext_cmds='.so'
10864 hardcode_into_libs=yes
10865 dynamic_linker="$host_os dld.so"
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 soname_spec='$libname$release$shared_ext$major'
10870 if test 32 = "$HPUX_IA64_MODE"; then
10871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10873 else
10874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10875 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10876 fi
10877 ;;
10878 hppa*64*)
10879 shrext_cmds='.sl'
10880 hardcode_into_libs=yes
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885 soname_spec='$libname$release$shared_ext$major'
10886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10888 ;;
10889 *)
10890 shrext_cmds='.sl'
10891 dynamic_linker="$host_os dld.sl"
10892 shlibpath_var=SHLIB_PATH
10893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895 soname_spec='$libname$release$shared_ext$major'
10896 ;;
10897 esac
10898 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10899 postinstall_cmds='chmod 555 $lib'
10900 # or fails outright, so override atomically:
10901 install_override_mode=555
10902 ;;
10903
10904 interix[3-9]*)
10905 version_type=linux # correct to gnu/linux during the next big refactor
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909 soname_spec='$libname$release$shared_ext$major'
10910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10914 ;;
10915
10916 irix5* | irix6* | nonstopux*)
10917 case $host_os in
10918 nonstopux*) version_type=nonstopux ;;
10919 *)
10920 if test yes = "$lt_cv_prog_gnu_ld"; then
10921 version_type=linux # correct to gnu/linux during the next big refactor
10922 else
10923 version_type=irix
10924 fi ;;
10925 esac
10926 need_lib_prefix=no
10927 need_version=no
10928 soname_spec='$libname$release$shared_ext$major'
10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10930 case $host_os in
10931 irix5* | nonstopux*)
10932 libsuff= shlibsuff=
10933 ;;
10934 *)
10935 case $LD in # libtool.m4 will add one of these switches to LD
10936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10937 libsuff= shlibsuff= libmagic=32-bit;;
10938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10939 libsuff=32 shlibsuff=N32 libmagic=N32;;
10940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10942 *) libsuff= shlibsuff= libmagic=never-match;;
10943 esac
10944 ;;
10945 esac
10946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10947 shlibpath_overrides_runpath=no
10948 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10949 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10950 hardcode_into_libs=yes
10951 ;;
10952
10953 # No shared lib support for Linux oldld, aout, or coff.
10954 linux*oldld* | linux*aout* | linux*coff*)
10955 dynamic_linker=no
10956 ;;
10957
10958 linux*android*)
10959 version_type=none # Android doesn't support versioned libraries.
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='$libname$release$shared_ext'
10963 soname_spec='$libname$release$shared_ext'
10964 finish_cmds=
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967
10968 # This implies no fast_install, which is unacceptable.
10969 # Some rework will be needed to allow for fast_install
10970 # before this can be enabled.
10971 hardcode_into_libs=yes
10972
10973 dynamic_linker='Android linker'
10974 # Don't embed -rpath directories since the linker doesn't support them.
10975 hardcode_libdir_flag_spec='-L$libdir'
10976 ;;
10977
10978 # This must be glibc/ELF.
10979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10980 version_type=linux # correct to gnu/linux during the next big refactor
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10984 soname_spec='$libname$release$shared_ext$major'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988
10989 # Some binutils ld are patched to set DT_RUNPATH
10990 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 lt_cv_shlibpath_overrides_runpath=no
10994 save_LDFLAGS=$LDFLAGS
10995 save_libdir=$libdir
10996 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10997 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000
11001 int
11002 main ()
11003 {
11004
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11011 lt_cv_shlibpath_overrides_runpath=yes
11012 fi
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LDFLAGS=$save_LDFLAGS
11017 libdir=$save_libdir
11018
11019 fi
11020
11021 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022
11023 # This implies no fast_install, which is unacceptable.
11024 # Some rework will be needed to allow for fast_install
11025 # before this can be enabled.
11026 hardcode_into_libs=yes
11027
11028 # Add ABI-specific directories to the system library path.
11029 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11030
11031 # Ideally, we could use ldconfig to report *all* directores which are
11032 # searched for libraries, however this is still not possible. Aside from not
11033 # being certain /sbin/ldconfig is available, command
11034 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11035 # even though it is searched at run-time. Try to do the best guess by
11036 # appending ld.so.conf contents (and includes) to the search path.
11037 if test -f /etc/ld.so.conf; then
11038 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' ' '`
11039 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11040 fi
11041
11042 # We used to test for /lib/ld.so.1 and disable shared libraries on
11043 # powerpc, because MkLinux only supported shared libraries with the
11044 # GNU dynamic linker. Since this was broken with cross compilers,
11045 # most powerpc-linux boxes support dynamic linking these days and
11046 # people can always --disable-shared, the test was removed, and we
11047 # assume the GNU/Linux dynamic linker is in use.
11048 dynamic_linker='GNU/Linux ld.so'
11049 ;;
11050
11051 netbsd*)
11052 version_type=sunos
11053 need_lib_prefix=no
11054 need_version=no
11055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11058 dynamic_linker='NetBSD (a.out) ld.so'
11059 else
11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 soname_spec='$libname$release$shared_ext$major'
11062 dynamic_linker='NetBSD ld.elf_so'
11063 fi
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 hardcode_into_libs=yes
11067 ;;
11068
11069 newsos6)
11070 version_type=linux # correct to gnu/linux during the next big refactor
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 ;;
11075
11076 *nto* | *qnx*)
11077 version_type=qnx
11078 need_lib_prefix=no
11079 need_version=no
11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081 soname_spec='$libname$release$shared_ext$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=no
11084 hardcode_into_libs=yes
11085 dynamic_linker='ldqnx.so'
11086 ;;
11087
11088 openbsd* | bitrig*)
11089 version_type=sunos
11090 sys_lib_dlsearch_path_spec=/usr/lib
11091 need_lib_prefix=no
11092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11093 need_version=no
11094 else
11095 need_version=yes
11096 fi
11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 ;;
11102
11103 os2*)
11104 libname_spec='$name'
11105 version_type=windows
11106 shrext_cmds=.dll
11107 need_version=no
11108 need_lib_prefix=no
11109 # OS/2 can only load a DLL with a base name of 8 characters or less.
11110 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11111 v=$($ECHO $release$versuffix | tr -d .-);
11112 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11113 $ECHO $n$v`$shared_ext'
11114 library_names_spec='${libname}_dll.$libext'
11115 dynamic_linker='OS/2 ld.exe'
11116 shlibpath_var=BEGINLIBPATH
11117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11119 postinstall_cmds='base_file=`basename \$file`~
11120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11121 dldir=$destdir/`dirname \$dlpath`~
11122 test -d \$dldir || mkdir -p \$dldir~
11123 $install_prog $dir/$dlname \$dldir/$dlname~
11124 chmod a+x \$dldir/$dlname~
11125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11127 fi'
11128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11129 dlpath=$dir/\$dldll~
11130 $RM \$dlpath'
11131 ;;
11132
11133 osf3* | osf4* | osf5*)
11134 version_type=osf
11135 need_lib_prefix=no
11136 need_version=no
11137 soname_spec='$libname$release$shared_ext$major'
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11142 ;;
11143
11144 rdos*)
11145 dynamic_linker=no
11146 ;;
11147
11148 solaris*)
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 # ldd complains unless libraries are executable
11158 postinstall_cmds='chmod +x $lib'
11159 ;;
11160
11161 sunos4*)
11162 version_type=sunos
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 if test yes = "$with_gnu_ld"; then
11168 need_lib_prefix=no
11169 fi
11170 need_version=yes
11171 ;;
11172
11173 sysv4 | sysv4.3*)
11174 version_type=linux # correct to gnu/linux during the next big refactor
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176 soname_spec='$libname$release$shared_ext$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 case $host_vendor in
11179 sni)
11180 shlibpath_overrides_runpath=no
11181 need_lib_prefix=no
11182 runpath_var=LD_RUN_PATH
11183 ;;
11184 siemens)
11185 need_lib_prefix=no
11186 ;;
11187 motorola)
11188 need_lib_prefix=no
11189 need_version=no
11190 shlibpath_overrides_runpath=no
11191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11192 ;;
11193 esac
11194 ;;
11195
11196 sysv4*MP*)
11197 if test -d /usr/nec; then
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11200 soname_spec='$libname$shared_ext.$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 fi
11203 ;;
11204
11205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11206 version_type=sco
11207 need_lib_prefix=no
11208 need_version=no
11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11210 soname_spec='$libname$release$shared_ext$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 shlibpath_overrides_runpath=yes
11213 hardcode_into_libs=yes
11214 if test yes = "$with_gnu_ld"; then
11215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11216 else
11217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11218 case $host_os in
11219 sco3.2v5*)
11220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11221 ;;
11222 esac
11223 fi
11224 sys_lib_dlsearch_path_spec='/usr/lib'
11225 ;;
11226
11227 tpf*)
11228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11229 version_type=linux # correct to gnu/linux during the next big refactor
11230 need_lib_prefix=no
11231 need_version=no
11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 shlibpath_overrides_runpath=no
11235 hardcode_into_libs=yes
11236 ;;
11237
11238 uts4*)
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec='$libname$release$shared_ext$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 ;;
11244
11245 *)
11246 dynamic_linker=no
11247 ;;
11248 esac
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11250 $as_echo "$dynamic_linker" >&6; }
11251 test no = "$dynamic_linker" && can_build_shared=no
11252
11253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254 if test yes = "$GCC"; then
11255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256 fi
11257
11258 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11259 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11260 fi
11261
11262 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11263 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11264 fi
11265
11266 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11267 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11268
11269 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11270 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11271
11272 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11273 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11372 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11373 hardcode_action=
11374 if test -n "$hardcode_libdir_flag_spec" ||
11375 test -n "$runpath_var" ||
11376 test yes = "$hardcode_automatic"; then
11377
11378 # We can hardcode non-existent directories.
11379 if test no != "$hardcode_direct" &&
11380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11381 # have to relink, otherwise we might link with an installed library
11382 # when we should be linking with a yet-to-be-installed one
11383 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11384 test no != "$hardcode_minus_L"; then
11385 # Linking always hardcodes the temporary library directory.
11386 hardcode_action=relink
11387 else
11388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11389 hardcode_action=immediate
11390 fi
11391 else
11392 # We cannot hardcode anything, or else we can only hardcode existing
11393 # directories.
11394 hardcode_action=unsupported
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11397 $as_echo "$hardcode_action" >&6; }
11398
11399 if test relink = "$hardcode_action" ||
11400 test yes = "$inherit_rpath"; then
11401 # Fast installation is not supported
11402 enable_fast_install=no
11403 elif test yes = "$shlibpath_overrides_runpath" ||
11404 test no = "$enable_shared"; then
11405 # Fast installation is not necessary
11406 enable_fast_install=needless
11407 fi
11408
11409
11410
11411
11412
11413
11414 if test yes != "$enable_dlopen"; then
11415 enable_dlopen=unknown
11416 enable_dlopen_self=unknown
11417 enable_dlopen_self_static=unknown
11418 else
11419 lt_cv_dlopen=no
11420 lt_cv_dlopen_libs=
11421
11422 case $host_os in
11423 beos*)
11424 lt_cv_dlopen=load_add_on
11425 lt_cv_dlopen_libs=
11426 lt_cv_dlopen_self=yes
11427 ;;
11428
11429 mingw* | pw32* | cegcc*)
11430 lt_cv_dlopen=LoadLibrary
11431 lt_cv_dlopen_libs=
11432 ;;
11433
11434 cygwin*)
11435 lt_cv_dlopen=dlopen
11436 lt_cv_dlopen_libs=
11437 ;;
11438
11439 darwin*)
11440 # if libdl is installed we need to link against it
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11443 if ${ac_cv_lib_dl_dlopen+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldl $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dlopen ();
11458 int
11459 main ()
11460 {
11461 return dlopen ();
11462 ;
11463 return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_dl_dlopen=yes
11468 else
11469 ac_cv_lib_dl_dlopen=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11478 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11479 else
11480
11481 lt_cv_dlopen=dyld
11482 lt_cv_dlopen_libs=
11483 lt_cv_dlopen_self=yes
11484
11485 fi
11486
11487 ;;
11488
11489 tpf*)
11490 # Don't try to run any link tests for TPF. We know it's impossible
11491 # because TPF is a cross-compiler, and we know how we open DSOs.
11492 lt_cv_dlopen=dlopen
11493 lt_cv_dlopen_libs=
11494 lt_cv_dlopen_self=no
11495 ;;
11496
11497 *)
11498 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11499 if test "x$ac_cv_func_shl_load" = xyes; then :
11500 lt_cv_dlopen=shl_load
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11503 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11504 if ${ac_cv_lib_dld_shl_load+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-ldld $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char shl_load ();
11519 int
11520 main ()
11521 {
11522 return shl_load ();
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 ac_cv_lib_dld_shl_load=yes
11529 else
11530 ac_cv_lib_dld_shl_load=no
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11537 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11538 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11539 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11540 else
11541 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11542 if test "x$ac_cv_func_dlopen" = xyes; then :
11543 lt_cv_dlopen=dlopen
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11546 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11547 if ${ac_cv_lib_dl_dlopen+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 ac_check_lib_save_LIBS=$LIBS
11551 LIBS="-ldl $LIBS"
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554
11555 /* Override any GCC internal prototype to avoid an error.
11556 Use char because int might match the return type of a GCC
11557 builtin and then its argument prototype would still apply. */
11558 #ifdef __cplusplus
11559 extern "C"
11560 #endif
11561 char dlopen ();
11562 int
11563 main ()
11564 {
11565 return dlopen ();
11566 ;
11567 return 0;
11568 }
11569 _ACEOF
11570 if ac_fn_c_try_link "$LINENO"; then :
11571 ac_cv_lib_dl_dlopen=yes
11572 else
11573 ac_cv_lib_dl_dlopen=no
11574 fi
11575 rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11581 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11582 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11585 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11586 if ${ac_cv_lib_svld_dlopen+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lsvld $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char dlopen ();
11601 int
11602 main ()
11603 {
11604 return dlopen ();
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_svld_dlopen=yes
11611 else
11612 ac_cv_lib_svld_dlopen=no
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11619 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11620 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11621 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11625 if ${ac_cv_lib_dld_dld_link+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-ldld $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char dld_link ();
11640 int
11641 main ()
11642 {
11643 return dld_link ();
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_lib_dld_dld_link=yes
11650 else
11651 ac_cv_lib_dld_dld_link=no
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11659 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11660 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11661 fi
11662
11663
11664 fi
11665
11666
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678 ;;
11679 esac
11680
11681 if test no = "$lt_cv_dlopen"; then
11682 enable_dlopen=no
11683 else
11684 enable_dlopen=yes
11685 fi
11686
11687 case $lt_cv_dlopen in
11688 dlopen)
11689 save_CPPFLAGS=$CPPFLAGS
11690 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11691
11692 save_LDFLAGS=$LDFLAGS
11693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11694
11695 save_LIBS=$LIBS
11696 LIBS="$lt_cv_dlopen_libs $LIBS"
11697
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11699 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11700 if ${lt_cv_dlopen_self+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 if test yes = "$cross_compiling"; then :
11704 lt_cv_dlopen_self=cross
11705 else
11706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11707 lt_status=$lt_dlunknown
11708 cat > conftest.$ac_ext <<_LT_EOF
11709 #line $LINENO "configure"
11710 #include "confdefs.h"
11711
11712 #if HAVE_DLFCN_H
11713 #include <dlfcn.h>
11714 #endif
11715
11716 #include <stdio.h>
11717
11718 #ifdef RTLD_GLOBAL
11719 # define LT_DLGLOBAL RTLD_GLOBAL
11720 #else
11721 # ifdef DL_GLOBAL
11722 # define LT_DLGLOBAL DL_GLOBAL
11723 # else
11724 # define LT_DLGLOBAL 0
11725 # endif
11726 #endif
11727
11728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11729 find out it does not work in some platform. */
11730 #ifndef LT_DLLAZY_OR_NOW
11731 # ifdef RTLD_LAZY
11732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11733 # else
11734 # ifdef DL_LAZY
11735 # define LT_DLLAZY_OR_NOW DL_LAZY
11736 # else
11737 # ifdef RTLD_NOW
11738 # define LT_DLLAZY_OR_NOW RTLD_NOW
11739 # else
11740 # ifdef DL_NOW
11741 # define LT_DLLAZY_OR_NOW DL_NOW
11742 # else
11743 # define LT_DLLAZY_OR_NOW 0
11744 # endif
11745 # endif
11746 # endif
11747 # endif
11748 #endif
11749
11750 /* When -fvisibility=hidden is used, assume the code has been annotated
11751 correspondingly for the symbols needed. */
11752 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11753 int fnord () __attribute__((visibility("default")));
11754 #endif
11755
11756 int fnord () { return 42; }
11757 int main ()
11758 {
11759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11760 int status = $lt_dlunknown;
11761
11762 if (self)
11763 {
11764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11765 else
11766 {
11767 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11768 else puts (dlerror ());
11769 }
11770 /* dlclose (self); */
11771 }
11772 else
11773 puts (dlerror ());
11774
11775 return status;
11776 }
11777 _LT_EOF
11778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11779 (eval $ac_link) 2>&5
11780 ac_status=$?
11781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11783 (./conftest; exit; ) >&5 2>/dev/null
11784 lt_status=$?
11785 case x$lt_status in
11786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11789 esac
11790 else :
11791 # compilation failed
11792 lt_cv_dlopen_self=no
11793 fi
11794 fi
11795 rm -fr conftest*
11796
11797
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11800 $as_echo "$lt_cv_dlopen_self" >&6; }
11801
11802 if test yes = "$lt_cv_dlopen_self"; then
11803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11805 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11806 if ${lt_cv_dlopen_self_static+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 if test yes = "$cross_compiling"; then :
11810 lt_cv_dlopen_self_static=cross
11811 else
11812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11813 lt_status=$lt_dlunknown
11814 cat > conftest.$ac_ext <<_LT_EOF
11815 #line $LINENO "configure"
11816 #include "confdefs.h"
11817
11818 #if HAVE_DLFCN_H
11819 #include <dlfcn.h>
11820 #endif
11821
11822 #include <stdio.h>
11823
11824 #ifdef RTLD_GLOBAL
11825 # define LT_DLGLOBAL RTLD_GLOBAL
11826 #else
11827 # ifdef DL_GLOBAL
11828 # define LT_DLGLOBAL DL_GLOBAL
11829 # else
11830 # define LT_DLGLOBAL 0
11831 # endif
11832 #endif
11833
11834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11835 find out it does not work in some platform. */
11836 #ifndef LT_DLLAZY_OR_NOW
11837 # ifdef RTLD_LAZY
11838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11839 # else
11840 # ifdef DL_LAZY
11841 # define LT_DLLAZY_OR_NOW DL_LAZY
11842 # else
11843 # ifdef RTLD_NOW
11844 # define LT_DLLAZY_OR_NOW RTLD_NOW
11845 # else
11846 # ifdef DL_NOW
11847 # define LT_DLLAZY_OR_NOW DL_NOW
11848 # else
11849 # define LT_DLLAZY_OR_NOW 0
11850 # endif
11851 # endif
11852 # endif
11853 # endif
11854 #endif
11855
11856 /* When -fvisibility=hidden is used, assume the code has been annotated
11857 correspondingly for the symbols needed. */
11858 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11859 int fnord () __attribute__((visibility("default")));
11860 #endif
11861
11862 int fnord () { return 42; }
11863 int main ()
11864 {
11865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11866 int status = $lt_dlunknown;
11867
11868 if (self)
11869 {
11870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11871 else
11872 {
11873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11874 else puts (dlerror ());
11875 }
11876 /* dlclose (self); */
11877 }
11878 else
11879 puts (dlerror ());
11880
11881 return status;
11882 }
11883 _LT_EOF
11884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11885 (eval $ac_link) 2>&5
11886 ac_status=$?
11887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11889 (./conftest; exit; ) >&5 2>/dev/null
11890 lt_status=$?
11891 case x$lt_status in
11892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11894 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11895 esac
11896 else :
11897 # compilation failed
11898 lt_cv_dlopen_self_static=no
11899 fi
11900 fi
11901 rm -fr conftest*
11902
11903
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11906 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11907 fi
11908
11909 CPPFLAGS=$save_CPPFLAGS
11910 LDFLAGS=$save_LDFLAGS
11911 LIBS=$save_LIBS
11912 ;;
11913 esac
11914
11915 case $lt_cv_dlopen_self in
11916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11917 *) enable_dlopen_self=unknown ;;
11918 esac
11919
11920 case $lt_cv_dlopen_self_static in
11921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11922 *) enable_dlopen_self_static=unknown ;;
11923 esac
11924 fi
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942 striplib=
11943 old_striplib=
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11946 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950 $as_echo "yes" >&6; }
11951 else
11952 # FIXME - insert some real tests, host_os isn't really good enough
11953 case $host_os in
11954 darwin*)
11955 if test -n "$STRIP"; then
11956 striplib="$STRIP -x"
11957 old_striplib="$STRIP -S"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959 $as_echo "yes" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964 ;;
11965 *)
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 ;;
11969 esac
11970 fi
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983 # Report what library types will actually be built
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11985 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11987 $as_echo "$can_build_shared" >&6; }
11988
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11990 $as_echo_n "checking whether to build shared libraries... " >&6; }
11991 test no = "$can_build_shared" && enable_shared=no
11992
11993 # On AIX, shared libraries and static libraries use the same namespace, and
11994 # are all built from PIC.
11995 case $host_os in
11996 aix3*)
11997 test yes = "$enable_shared" && enable_static=no
11998 if test -n "$RANLIB"; then
11999 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12000 postinstall_cmds='$RANLIB $lib'
12001 fi
12002 ;;
12003
12004 aix[4-9]*)
12005 if test ia64 != "$host_cpu"; then
12006 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12007 yes,aix,yes) ;; # shared object as lib.so file only
12008 yes,svr4,*) ;; # shared object as lib.so archive member only
12009 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12010 esac
12011 fi
12012 ;;
12013 esac
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12015 $as_echo "$enable_shared" >&6; }
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12018 $as_echo_n "checking whether to build static libraries... " >&6; }
12019 # Make sure either enable_shared or enable_static is yes.
12020 test yes = "$enable_shared" || enable_static=yes
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12022 $as_echo "$enable_static" >&6; }
12023
12024
12025
12026
12027 fi
12028 ac_ext=c
12029 ac_cpp='$CPP $CPPFLAGS'
12030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033
12034 CC=$lt_save_CC
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050 ac_config_commands="$ac_config_commands libtool"
12051
12052
12053
12054
12055 # Only expand once:
12056
12057
12058
12059 # Require xorg-macros minimum of 1.12 for DocBook external references
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12072 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12073 if ${ac_cv_prog_cc_c99+:} false; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 ac_cv_prog_cc_c99=no
12077 ac_save_CC=$CC
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include <stdarg.h>
12081 #include <stdbool.h>
12082 #include <stdlib.h>
12083 #include <wchar.h>
12084 #include <stdio.h>
12085
12086 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12087 #define debug(...) fprintf (stderr, __VA_ARGS__)
12088 #define showlist(...) puts (#__VA_ARGS__)
12089 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12090 static void
12091 test_varargs_macros (void)
12092 {
12093 int x = 1234;
12094 int y = 5678;
12095 debug ("Flag");
12096 debug ("X = %d\n", x);
12097 showlist (The first, second, and third items.);
12098 report (x>y, "x is %d but y is %d", x, y);
12099 }
12100
12101 // Check long long types.
12102 #define BIG64 18446744073709551615ull
12103 #define BIG32 4294967295ul
12104 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12105 #if !BIG_OK
12106 your preprocessor is broken;
12107 #endif
12108 #if BIG_OK
12109 #else
12110 your preprocessor is broken;
12111 #endif
12112 static long long int bignum = -9223372036854775807LL;
12113 static unsigned long long int ubignum = BIG64;
12114
12115 struct incomplete_array
12116 {
12117 int datasize;
12118 double data[];
12119 };
12120
12121 struct named_init {
12122 int number;
12123 const wchar_t *name;
12124 double average;
12125 };
12126
12127 typedef const char *ccp;
12128
12129 static inline int
12130 test_restrict (ccp restrict text)
12131 {
12132 // See if C++-style comments work.
12133 // Iterate through items via the restricted pointer.
12134 // Also check for declarations in for loops.
12135 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12136 continue;
12137 return 0;
12138 }
12139
12140 // Check varargs and va_copy.
12141 static void
12142 test_varargs (const char *format, ...)
12143 {
12144 va_list args;
12145 va_start (args, format);
12146 va_list args_copy;
12147 va_copy (args_copy, args);
12148
12149 const char *str;
12150 int number;
12151 float fnumber;
12152
12153 while (*format)
12154 {
12155 switch (*format++)
12156 {
12157 case 's': // string
12158 str = va_arg (args_copy, const char *);
12159 break;
12160 case 'd': // int
12161 number = va_arg (args_copy, int);
12162 break;
12163 case 'f': // float
12164 fnumber = va_arg (args_copy, double);
12165 break;
12166 default:
12167 break;
12168 }
12169 }
12170 va_end (args_copy);
12171 va_end (args);
12172 }
12173
12174 int
12175 main ()
12176 {
12177
12178 // Check bool.
12179 _Bool success = false;
12180
12181 // Check restrict.
12182 if (test_restrict ("String literal") == 0)
12183 success = true;
12184 char *restrict newvar = "Another string";
12185
12186 // Check varargs.
12187 test_varargs ("s, d' f .", "string", 65, 34.234);
12188 test_varargs_macros ();
12189
12190 // Check flexible array members.
12191 struct incomplete_array *ia =
12192 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12193 ia->datasize = 10;
12194 for (int i = 0; i < ia->datasize; ++i)
12195 ia->data[i] = i * 1.234;
12196
12197 // Check named initializers.
12198 struct named_init ni = {
12199 .number = 34,
12200 .name = L"Test wide string",
12201 .average = 543.34343,
12202 };
12203
12204 ni.number = 58;
12205
12206 int dynamic_array[ni.number];
12207 dynamic_array[ni.number - 1] = 543;
12208
12209 // work around unused variable warnings
12210 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12211 || dynamic_array[ni.number - 1] != 543);
12212
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12218 do
12219 CC="$ac_save_CC $ac_arg"
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221 ac_cv_prog_cc_c99=$ac_arg
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext
12224 test "x$ac_cv_prog_cc_c99" != "xno" && break
12225 done
12226 rm -f conftest.$ac_ext
12227 CC=$ac_save_CC
12228
12229 fi
12230 # AC_CACHE_VAL
12231 case "x$ac_cv_prog_cc_c99" in
12232 x)
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12234 $as_echo "none needed" >&6; } ;;
12235 xno)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12237 $as_echo "unsupported" >&6; } ;;
12238 *)
12239 CC="$CC $ac_cv_prog_cc_c99"
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12241 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12242 esac
12243 if test "x$ac_cv_prog_cc_c99" != xno; then :
12244
12245 fi
12246
12247
12248
12249
12250
12251
12252 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12253 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12254 CLANGCC="yes"
12255 else
12256 CLANGCC="no"
12257 fi
12258
12259 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12260 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12261 INTELCC="yes"
12262 else
12263 INTELCC="no"
12264 fi
12265
12266 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12267 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12268 SUNCC="yes"
12269 else
12270 SUNCC="no"
12271 fi
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12282 if test -n "$ac_tool_prefix"; then
12283 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 case $PKG_CONFIG in
12291 [\\/]* | ?:[\\/]*)
12292 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12293 ;;
12294 *)
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306 done
12307 done
12308 IFS=$as_save_IFS
12309
12310 ;;
12311 esac
12312 fi
12313 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12314 if test -n "$PKG_CONFIG"; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12316 $as_echo "$PKG_CONFIG" >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 fi
12321
12322
12323 fi
12324 if test -z "$ac_cv_path_PKG_CONFIG"; then
12325 ac_pt_PKG_CONFIG=$PKG_CONFIG
12326 # Extract the first word of "pkg-config", so it can be a program name with args.
12327 set dummy pkg-config; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 case $ac_pt_PKG_CONFIG in
12334 [\\/]* | ?:[\\/]*)
12335 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12336 ;;
12337 *)
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12340 do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347 break 2
12348 fi
12349 done
12350 done
12351 IFS=$as_save_IFS
12352
12353 ;;
12354 esac
12355 fi
12356 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12357 if test -n "$ac_pt_PKG_CONFIG"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12359 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364
12365 if test "x$ac_pt_PKG_CONFIG" = x; then
12366 PKG_CONFIG=""
12367 else
12368 case $cross_compiling:$ac_tool_warned in
12369 yes:)
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12372 ac_tool_warned=yes ;;
12373 esac
12374 PKG_CONFIG=$ac_pt_PKG_CONFIG
12375 fi
12376 else
12377 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12378 fi
12379
12380 fi
12381 if test -n "$PKG_CONFIG"; then
12382 _pkg_min_version=0.9.0
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12384 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12385 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387 $as_echo "yes" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 PKG_CONFIG=""
12392 fi
12393 fi
12394
12395
12396
12397
12398
12399 # Check whether --enable-selective-werror was given.
12400 if test "${enable_selective_werror+set}" = set; then :
12401 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12402 else
12403 SELECTIVE_WERROR=yes
12404 fi
12405
12406
12407
12408
12409
12410 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12411 if test "x$SUNCC" = "xyes"; then
12412 BASE_CFLAGS="-v"
12413 else
12414 BASE_CFLAGS=""
12415 fi
12416
12417 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 xorg_testset_save_CFLAGS="$CFLAGS"
12432
12433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 int i;
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 xorg_cv_cc_flag_unknown_warning_option=yes
12446 else
12447 xorg_cv_cc_flag_unknown_warning_option=no
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12454 CFLAGS="$xorg_testset_save_CFLAGS"
12455 fi
12456
12457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460 fi
12461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469 int i;
12470 _ACEOF
12471 if ac_fn_c_try_compile "$LINENO"; then :
12472 xorg_cv_cc_flag_unused_command_line_argument=yes
12473 else
12474 xorg_cv_cc_flag_unused_command_line_argument=no
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12481 CFLAGS="$xorg_testset_save_CFLAGS"
12482 fi
12483
12484 found="no"
12485
12486 if test $found = "no" ; then
12487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12489 fi
12490
12491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12493 fi
12494
12495 CFLAGS="$CFLAGS -Wall"
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12498 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12499 cacheid=xorg_cv_cc_flag__Wall
12500 if eval \${$cacheid+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505 int i;
12506 int
12507 main ()
12508 {
12509
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 eval $cacheid=yes
12516 else
12517 eval $cacheid=no
12518 fi
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 fi
12522
12523
12524 CFLAGS="$xorg_testset_save_CFLAGS"
12525
12526 eval supported=\$$cacheid
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12528 $as_echo "$supported" >&6; }
12529 if test "$supported" = "yes" ; then
12530 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12531 found="yes"
12532 fi
12533 fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549 xorg_testset_save_CFLAGS="$CFLAGS"
12550
12551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 int i;
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 xorg_cv_cc_flag_unknown_warning_option=yes
12564 else
12565 xorg_cv_cc_flag_unknown_warning_option=no
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12572 CFLAGS="$xorg_testset_save_CFLAGS"
12573 fi
12574
12575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12578 fi
12579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12583 $as_echo_n "(cached) " >&6
12584 else
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 int i;
12588 _ACEOF
12589 if ac_fn_c_try_compile "$LINENO"; then :
12590 xorg_cv_cc_flag_unused_command_line_argument=yes
12591 else
12592 xorg_cv_cc_flag_unused_command_line_argument=no
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12599 CFLAGS="$xorg_testset_save_CFLAGS"
12600 fi
12601
12602 found="no"
12603
12604 if test $found = "no" ; then
12605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12607 fi
12608
12609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12611 fi
12612
12613 CFLAGS="$CFLAGS -Wpointer-arith"
12614
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12616 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12617 cacheid=xorg_cv_cc_flag__Wpointer_arith
12618 if eval \${$cacheid+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 int i;
12624 int
12625 main ()
12626 {
12627
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12633 eval $cacheid=yes
12634 else
12635 eval $cacheid=no
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 fi
12640
12641
12642 CFLAGS="$xorg_testset_save_CFLAGS"
12643
12644 eval supported=\$$cacheid
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12646 $as_echo "$supported" >&6; }
12647 if test "$supported" = "yes" ; then
12648 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12649 found="yes"
12650 fi
12651 fi
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667 xorg_testset_save_CFLAGS="$CFLAGS"
12668
12669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12672 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12673 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 int i;
12679 _ACEOF
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681 xorg_cv_cc_flag_unknown_warning_option=yes
12682 else
12683 xorg_cv_cc_flag_unknown_warning_option=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12688 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12690 CFLAGS="$xorg_testset_save_CFLAGS"
12691 fi
12692
12693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12696 fi
12697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12699 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12700 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 int i;
12706 _ACEOF
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 xorg_cv_cc_flag_unused_command_line_argument=yes
12709 else
12710 xorg_cv_cc_flag_unused_command_line_argument=no
12711 fi
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12715 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12717 CFLAGS="$xorg_testset_save_CFLAGS"
12718 fi
12719
12720 found="no"
12721
12722 if test $found = "no" ; then
12723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12725 fi
12726
12727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12729 fi
12730
12731 CFLAGS="$CFLAGS -Wmissing-declarations"
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12734 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12735 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12736 if eval \${$cacheid+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 int i;
12742 int
12743 main ()
12744 {
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_link "$LINENO"; then :
12751 eval $cacheid=yes
12752 else
12753 eval $cacheid=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12757 fi
12758
12759
12760 CFLAGS="$xorg_testset_save_CFLAGS"
12761
12762 eval supported=\$$cacheid
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12764 $as_echo "$supported" >&6; }
12765 if test "$supported" = "yes" ; then
12766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12767 found="yes"
12768 fi
12769 fi
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785 xorg_testset_save_CFLAGS="$CFLAGS"
12786
12787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12790 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12791 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 int i;
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 xorg_cv_cc_flag_unknown_warning_option=yes
12800 else
12801 xorg_cv_cc_flag_unknown_warning_option=no
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12806 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12808 CFLAGS="$xorg_testset_save_CFLAGS"
12809 fi
12810
12811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12814 fi
12815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12817 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12818 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 int i;
12824 _ACEOF
12825 if ac_fn_c_try_compile "$LINENO"; then :
12826 xorg_cv_cc_flag_unused_command_line_argument=yes
12827 else
12828 xorg_cv_cc_flag_unused_command_line_argument=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12833 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12835 CFLAGS="$xorg_testset_save_CFLAGS"
12836 fi
12837
12838 found="no"
12839
12840 if test $found = "no" ; then
12841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12843 fi
12844
12845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12847 fi
12848
12849 CFLAGS="$CFLAGS -Wformat=2"
12850
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12852 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12853 cacheid=xorg_cv_cc_flag__Wformat_2
12854 if eval \${$cacheid+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 int i;
12860 int
12861 main ()
12862 {
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 eval $cacheid=yes
12870 else
12871 eval $cacheid=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 fi
12876
12877
12878 CFLAGS="$xorg_testset_save_CFLAGS"
12879
12880 eval supported=\$$cacheid
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12882 $as_echo "$supported" >&6; }
12883 if test "$supported" = "yes" ; then
12884 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12885 found="yes"
12886 fi
12887 fi
12888
12889 if test $found = "no" ; then
12890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12892 fi
12893
12894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12896 fi
12897
12898 CFLAGS="$CFLAGS -Wformat"
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12901 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12902 cacheid=xorg_cv_cc_flag__Wformat
12903 if eval \${$cacheid+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908 int i;
12909 int
12910 main ()
12911 {
12912
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_link "$LINENO"; then :
12918 eval $cacheid=yes
12919 else
12920 eval $cacheid=no
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924 fi
12925
12926
12927 CFLAGS="$xorg_testset_save_CFLAGS"
12928
12929 eval supported=\$$cacheid
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12931 $as_echo "$supported" >&6; }
12932 if test "$supported" = "yes" ; then
12933 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12934 found="yes"
12935 fi
12936 fi
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954 xorg_testset_save_CFLAGS="$CFLAGS"
12955
12956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965 int i;
12966 _ACEOF
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 xorg_cv_cc_flag_unknown_warning_option=yes
12969 else
12970 xorg_cv_cc_flag_unknown_warning_option=no
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12977 CFLAGS="$xorg_testset_save_CFLAGS"
12978 fi
12979
12980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12983 fi
12984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992 int i;
12993 _ACEOF
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 xorg_cv_cc_flag_unused_command_line_argument=yes
12996 else
12997 xorg_cv_cc_flag_unused_command_line_argument=no
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13004 CFLAGS="$xorg_testset_save_CFLAGS"
13005 fi
13006
13007 found="no"
13008
13009 if test $found = "no" ; then
13010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13012 fi
13013
13014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13016 fi
13017
13018 CFLAGS="$CFLAGS -Wstrict-prototypes"
13019
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13021 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13022 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13023 if eval \${$cacheid+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 int i;
13029 int
13030 main ()
13031 {
13032
13033 ;
13034 return 0;
13035 }
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 eval $cacheid=yes
13039 else
13040 eval $cacheid=no
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 fi
13045
13046
13047 CFLAGS="$xorg_testset_save_CFLAGS"
13048
13049 eval supported=\$$cacheid
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13051 $as_echo "$supported" >&6; }
13052 if test "$supported" = "yes" ; then
13053 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13054 found="yes"
13055 fi
13056 fi
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 xorg_testset_save_CFLAGS="$CFLAGS"
13073
13074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083 int i;
13084 _ACEOF
13085 if ac_fn_c_try_compile "$LINENO"; then :
13086 xorg_cv_cc_flag_unknown_warning_option=yes
13087 else
13088 xorg_cv_cc_flag_unknown_warning_option=no
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13095 CFLAGS="$xorg_testset_save_CFLAGS"
13096 fi
13097
13098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13101 fi
13102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 int i;
13111 _ACEOF
13112 if ac_fn_c_try_compile "$LINENO"; then :
13113 xorg_cv_cc_flag_unused_command_line_argument=yes
13114 else
13115 xorg_cv_cc_flag_unused_command_line_argument=no
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13122 CFLAGS="$xorg_testset_save_CFLAGS"
13123 fi
13124
13125 found="no"
13126
13127 if test $found = "no" ; then
13128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13130 fi
13131
13132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13134 fi
13135
13136 CFLAGS="$CFLAGS -Wmissing-prototypes"
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13139 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13140 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13141 if eval \${$cacheid+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 int i;
13147 int
13148 main ()
13149 {
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_link "$LINENO"; then :
13156 eval $cacheid=yes
13157 else
13158 eval $cacheid=no
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 fi
13163
13164
13165 CFLAGS="$xorg_testset_save_CFLAGS"
13166
13167 eval supported=\$$cacheid
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13169 $as_echo "$supported" >&6; }
13170 if test "$supported" = "yes" ; then
13171 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13172 found="yes"
13173 fi
13174 fi
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190 xorg_testset_save_CFLAGS="$CFLAGS"
13191
13192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 int i;
13202 _ACEOF
13203 if ac_fn_c_try_compile "$LINENO"; then :
13204 xorg_cv_cc_flag_unknown_warning_option=yes
13205 else
13206 xorg_cv_cc_flag_unknown_warning_option=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13213 CFLAGS="$xorg_testset_save_CFLAGS"
13214 fi
13215
13216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13219 fi
13220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 int i;
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 xorg_cv_cc_flag_unused_command_line_argument=yes
13232 else
13233 xorg_cv_cc_flag_unused_command_line_argument=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13240 CFLAGS="$xorg_testset_save_CFLAGS"
13241 fi
13242
13243 found="no"
13244
13245 if test $found = "no" ; then
13246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248 fi
13249
13250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13252 fi
13253
13254 CFLAGS="$CFLAGS -Wnested-externs"
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13257 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13258 cacheid=xorg_cv_cc_flag__Wnested_externs
13259 if eval \${$cacheid+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 int i;
13265 int
13266 main ()
13267 {
13268
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 eval $cacheid=yes
13275 else
13276 eval $cacheid=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 fi
13281
13282
13283 CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285 eval supported=\$$cacheid
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287 $as_echo "$supported" >&6; }
13288 if test "$supported" = "yes" ; then
13289 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13290 found="yes"
13291 fi
13292 fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308 xorg_testset_save_CFLAGS="$CFLAGS"
13309
13310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 int i;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13322 xorg_cv_cc_flag_unknown_warning_option=yes
13323 else
13324 xorg_cv_cc_flag_unknown_warning_option=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13331 CFLAGS="$xorg_testset_save_CFLAGS"
13332 fi
13333
13334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337 fi
13338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 int i;
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349 xorg_cv_cc_flag_unused_command_line_argument=yes
13350 else
13351 xorg_cv_cc_flag_unused_command_line_argument=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13358 CFLAGS="$xorg_testset_save_CFLAGS"
13359 fi
13360
13361 found="no"
13362
13363 if test $found = "no" ; then
13364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366 fi
13367
13368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13370 fi
13371
13372 CFLAGS="$CFLAGS -Wbad-function-cast"
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13375 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13376 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13377 if eval \${$cacheid+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 int i;
13383 int
13384 main ()
13385 {
13386
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 eval $cacheid=yes
13393 else
13394 eval $cacheid=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 fi
13399
13400
13401 CFLAGS="$xorg_testset_save_CFLAGS"
13402
13403 eval supported=\$$cacheid
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13405 $as_echo "$supported" >&6; }
13406 if test "$supported" = "yes" ; then
13407 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13408 found="yes"
13409 fi
13410 fi
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426 xorg_testset_save_CFLAGS="$CFLAGS"
13427
13428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 int i;
13438 _ACEOF
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 xorg_cv_cc_flag_unknown_warning_option=yes
13441 else
13442 xorg_cv_cc_flag_unknown_warning_option=no
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13449 CFLAGS="$xorg_testset_save_CFLAGS"
13450 fi
13451
13452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13455 fi
13456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464 int i;
13465 _ACEOF
13466 if ac_fn_c_try_compile "$LINENO"; then :
13467 xorg_cv_cc_flag_unused_command_line_argument=yes
13468 else
13469 xorg_cv_cc_flag_unused_command_line_argument=no
13470 fi
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 fi
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13476 CFLAGS="$xorg_testset_save_CFLAGS"
13477 fi
13478
13479 found="no"
13480
13481 if test $found = "no" ; then
13482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484 fi
13485
13486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13488 fi
13489
13490 CFLAGS="$CFLAGS -Wold-style-definition"
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13493 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13494 cacheid=xorg_cv_cc_flag__Wold_style_definition
13495 if eval \${$cacheid+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 int i;
13501 int
13502 main ()
13503 {
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_link "$LINENO"; then :
13510 eval $cacheid=yes
13511 else
13512 eval $cacheid=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 fi
13517
13518
13519 CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521 eval supported=\$$cacheid
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13523 $as_echo "$supported" >&6; }
13524 if test "$supported" = "yes" ; then
13525 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13526 found="yes"
13527 fi
13528 fi
13529
13530 if test $found = "no" ; then
13531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533 fi
13534
13535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537 fi
13538
13539 CFLAGS="$CFLAGS -fd"
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13542 $as_echo_n "checking if $CC supports -fd... " >&6; }
13543 cacheid=xorg_cv_cc_flag__fd
13544 if eval \${$cacheid+:} false; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549 int i;
13550 int
13551 main ()
13552 {
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 eval $cacheid=yes
13560 else
13561 eval $cacheid=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 fi
13566
13567
13568 CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570 eval supported=\$$cacheid
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572 $as_echo "$supported" >&6; }
13573 if test "$supported" = "yes" ; then
13574 BASE_CFLAGS="$BASE_CFLAGS -fd"
13575 found="yes"
13576 fi
13577 fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593 xorg_testset_save_CFLAGS="$CFLAGS"
13594
13595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 int i;
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 xorg_cv_cc_flag_unknown_warning_option=yes
13608 else
13609 xorg_cv_cc_flag_unknown_warning_option=no
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13616 CFLAGS="$xorg_testset_save_CFLAGS"
13617 fi
13618
13619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622 fi
13623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13627 $as_echo_n "(cached) " >&6
13628 else
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 int i;
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 xorg_cv_cc_flag_unused_command_line_argument=yes
13635 else
13636 xorg_cv_cc_flag_unused_command_line_argument=no
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13643 CFLAGS="$xorg_testset_save_CFLAGS"
13644 fi
13645
13646 found="no"
13647
13648 if test $found = "no" ; then
13649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651 fi
13652
13653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13655 fi
13656
13657 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13660 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13661 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13662 if eval \${$cacheid+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 int i;
13668 int
13669 main ()
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 eval $cacheid=yes
13678 else
13679 eval $cacheid=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 fi
13684
13685
13686 CFLAGS="$xorg_testset_save_CFLAGS"
13687
13688 eval supported=\$$cacheid
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13690 $as_echo "$supported" >&6; }
13691 if test "$supported" = "yes" ; then
13692 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13693 found="yes"
13694 fi
13695 fi
13696
13697
13698
13699
13700
13701 # This chunk adds additional warnings that could catch undesired effects.
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715 xorg_testset_save_CFLAGS="$CFLAGS"
13716
13717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 int i;
13727 _ACEOF
13728 if ac_fn_c_try_compile "$LINENO"; then :
13729 xorg_cv_cc_flag_unknown_warning_option=yes
13730 else
13731 xorg_cv_cc_flag_unknown_warning_option=no
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13738 CFLAGS="$xorg_testset_save_CFLAGS"
13739 fi
13740
13741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744 fi
13745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 int i;
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 xorg_cv_cc_flag_unused_command_line_argument=yes
13757 else
13758 xorg_cv_cc_flag_unused_command_line_argument=no
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13765 CFLAGS="$xorg_testset_save_CFLAGS"
13766 fi
13767
13768 found="no"
13769
13770 if test $found = "no" ; then
13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773 fi
13774
13775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13777 fi
13778
13779 CFLAGS="$CFLAGS -Wunused"
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13782 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13783 cacheid=xorg_cv_cc_flag__Wunused
13784 if eval \${$cacheid+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 int i;
13790 int
13791 main ()
13792 {
13793
13794 ;
13795 return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 eval $cacheid=yes
13800 else
13801 eval $cacheid=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 fi
13806
13807
13808 CFLAGS="$xorg_testset_save_CFLAGS"
13809
13810 eval supported=\$$cacheid
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13812 $as_echo "$supported" >&6; }
13813 if test "$supported" = "yes" ; then
13814 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13815 found="yes"
13816 fi
13817 fi
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833 xorg_testset_save_CFLAGS="$CFLAGS"
13834
13835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 int i;
13845 _ACEOF
13846 if ac_fn_c_try_compile "$LINENO"; then :
13847 xorg_cv_cc_flag_unknown_warning_option=yes
13848 else
13849 xorg_cv_cc_flag_unknown_warning_option=no
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13856 CFLAGS="$xorg_testset_save_CFLAGS"
13857 fi
13858
13859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862 fi
13863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int i;
13872 _ACEOF
13873 if ac_fn_c_try_compile "$LINENO"; then :
13874 xorg_cv_cc_flag_unused_command_line_argument=yes
13875 else
13876 xorg_cv_cc_flag_unused_command_line_argument=no
13877 fi
13878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13883 CFLAGS="$xorg_testset_save_CFLAGS"
13884 fi
13885
13886 found="no"
13887
13888 if test $found = "no" ; then
13889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13891 fi
13892
13893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13895 fi
13896
13897 CFLAGS="$CFLAGS -Wuninitialized"
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13900 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13901 cacheid=xorg_cv_cc_flag__Wuninitialized
13902 if eval \${$cacheid+:} false; then :
13903 $as_echo_n "(cached) " >&6
13904 else
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 int i;
13908 int
13909 main ()
13910 {
13911
13912 ;
13913 return 0;
13914 }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 eval $cacheid=yes
13918 else
13919 eval $cacheid=no
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 fi
13924
13925
13926 CFLAGS="$xorg_testset_save_CFLAGS"
13927
13928 eval supported=\$$cacheid
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13930 $as_echo "$supported" >&6; }
13931 if test "$supported" = "yes" ; then
13932 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13933 found="yes"
13934 fi
13935 fi
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 xorg_testset_save_CFLAGS="$CFLAGS"
13952
13953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962 int i;
13963 _ACEOF
13964 if ac_fn_c_try_compile "$LINENO"; then :
13965 xorg_cv_cc_flag_unknown_warning_option=yes
13966 else
13967 xorg_cv_cc_flag_unknown_warning_option=no
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13974 CFLAGS="$xorg_testset_save_CFLAGS"
13975 fi
13976
13977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980 fi
13981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 int i;
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992 xorg_cv_cc_flag_unused_command_line_argument=yes
13993 else
13994 xorg_cv_cc_flag_unused_command_line_argument=no
13995 fi
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14001 CFLAGS="$xorg_testset_save_CFLAGS"
14002 fi
14003
14004 found="no"
14005
14006 if test $found = "no" ; then
14007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14009 fi
14010
14011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14013 fi
14014
14015 CFLAGS="$CFLAGS -Wshadow"
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14018 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14019 cacheid=xorg_cv_cc_flag__Wshadow
14020 if eval \${$cacheid+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 int i;
14026 int
14027 main ()
14028 {
14029
14030 ;
14031 return 0;
14032 }
14033 _ACEOF
14034 if ac_fn_c_try_link "$LINENO"; then :
14035 eval $cacheid=yes
14036 else
14037 eval $cacheid=no
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 fi
14042
14043
14044 CFLAGS="$xorg_testset_save_CFLAGS"
14045
14046 eval supported=\$$cacheid
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14048 $as_echo "$supported" >&6; }
14049 if test "$supported" = "yes" ; then
14050 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14051 found="yes"
14052 fi
14053 fi
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069 xorg_testset_save_CFLAGS="$CFLAGS"
14070
14071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 int i;
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 xorg_cv_cc_flag_unknown_warning_option=yes
14084 else
14085 xorg_cv_cc_flag_unknown_warning_option=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14092 CFLAGS="$xorg_testset_save_CFLAGS"
14093 fi
14094
14095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098 fi
14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 int i;
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110 xorg_cv_cc_flag_unused_command_line_argument=yes
14111 else
14112 xorg_cv_cc_flag_unused_command_line_argument=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 fi
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14119 CFLAGS="$xorg_testset_save_CFLAGS"
14120 fi
14121
14122 found="no"
14123
14124 if test $found = "no" ; then
14125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14127 fi
14128
14129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14131 fi
14132
14133 CFLAGS="$CFLAGS -Wmissing-noreturn"
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14136 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14137 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14138 if eval \${$cacheid+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 int i;
14144 int
14145 main ()
14146 {
14147
14148 ;
14149 return 0;
14150 }
14151 _ACEOF
14152 if ac_fn_c_try_link "$LINENO"; then :
14153 eval $cacheid=yes
14154 else
14155 eval $cacheid=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 fi
14160
14161
14162 CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164 eval supported=\$$cacheid
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166 $as_echo "$supported" >&6; }
14167 if test "$supported" = "yes" ; then
14168 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14169 found="yes"
14170 fi
14171 fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187 xorg_testset_save_CFLAGS="$CFLAGS"
14188
14189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 int i;
14199 _ACEOF
14200 if ac_fn_c_try_compile "$LINENO"; then :
14201 xorg_cv_cc_flag_unknown_warning_option=yes
14202 else
14203 xorg_cv_cc_flag_unknown_warning_option=no
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14210 CFLAGS="$xorg_testset_save_CFLAGS"
14211 fi
14212
14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 fi
14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 int i;
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 xorg_cv_cc_flag_unused_command_line_argument=yes
14229 else
14230 xorg_cv_cc_flag_unused_command_line_argument=no
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14237 CFLAGS="$xorg_testset_save_CFLAGS"
14238 fi
14239
14240 found="no"
14241
14242 if test $found = "no" ; then
14243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14245 fi
14246
14247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249 fi
14250
14251 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14252
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14254 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14255 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14256 if eval \${$cacheid+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 int i;
14262 int
14263 main ()
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 eval $cacheid=yes
14272 else
14273 eval $cacheid=no
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277 fi
14278
14279
14280 CFLAGS="$xorg_testset_save_CFLAGS"
14281
14282 eval supported=\$$cacheid
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14284 $as_echo "$supported" >&6; }
14285 if test "$supported" = "yes" ; then
14286 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14287 found="yes"
14288 fi
14289 fi
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 xorg_testset_save_CFLAGS="$CFLAGS"
14306
14307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 int i;
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 xorg_cv_cc_flag_unknown_warning_option=yes
14320 else
14321 xorg_cv_cc_flag_unknown_warning_option=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14328 CFLAGS="$xorg_testset_save_CFLAGS"
14329 fi
14330
14331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334 fi
14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14343 int i;
14344 _ACEOF
14345 if ac_fn_c_try_compile "$LINENO"; then :
14346 xorg_cv_cc_flag_unused_command_line_argument=yes
14347 else
14348 xorg_cv_cc_flag_unused_command_line_argument=no
14349 fi
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14355 CFLAGS="$xorg_testset_save_CFLAGS"
14356 fi
14357
14358 found="no"
14359
14360 if test $found = "no" ; then
14361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14363 fi
14364
14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367 fi
14368
14369 CFLAGS="$CFLAGS -Wredundant-decls"
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14372 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14373 cacheid=xorg_cv_cc_flag__Wredundant_decls
14374 if eval \${$cacheid+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 int i;
14380 int
14381 main ()
14382 {
14383
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_link "$LINENO"; then :
14389 eval $cacheid=yes
14390 else
14391 eval $cacheid=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 fi
14396
14397
14398 CFLAGS="$xorg_testset_save_CFLAGS"
14399
14400 eval supported=\$$cacheid
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14402 $as_echo "$supported" >&6; }
14403 if test "$supported" = "yes" ; then
14404 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14405 found="yes"
14406 fi
14407 fi
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423 xorg_testset_save_CFLAGS="$CFLAGS"
14424
14425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 int i;
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"; then :
14437 xorg_cv_cc_flag_unknown_warning_option=yes
14438 else
14439 xorg_cv_cc_flag_unknown_warning_option=no
14440 fi
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14446 CFLAGS="$xorg_testset_save_CFLAGS"
14447 fi
14448
14449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452 fi
14453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 int i;
14462 _ACEOF
14463 if ac_fn_c_try_compile "$LINENO"; then :
14464 xorg_cv_cc_flag_unused_command_line_argument=yes
14465 else
14466 xorg_cv_cc_flag_unused_command_line_argument=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14473 CFLAGS="$xorg_testset_save_CFLAGS"
14474 fi
14475
14476 found="no"
14477
14478 if test $found = "no" ; then
14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481 fi
14482
14483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485 fi
14486
14487 CFLAGS="$CFLAGS -Wlogical-op"
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14490 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14491 cacheid=xorg_cv_cc_flag__Wlogical_op
14492 if eval \${$cacheid+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 int i;
14498 int
14499 main ()
14500 {
14501
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 if ac_fn_c_try_link "$LINENO"; then :
14507 eval $cacheid=yes
14508 else
14509 eval $cacheid=no
14510 fi
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14513 fi
14514
14515
14516 CFLAGS="$xorg_testset_save_CFLAGS"
14517
14518 eval supported=\$$cacheid
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14520 $as_echo "$supported" >&6; }
14521 if test "$supported" = "yes" ; then
14522 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14523 found="yes"
14524 fi
14525 fi
14526
14527
14528
14529 # These are currently disabled because they are noisy. They will be enabled
14530 # in the future once the codebase is sufficiently modernized to silence
14531 # them. For now, I don't want them to drown out the other warnings.
14532 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14533 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14534 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14535
14536 # Turn some warnings into errors, so we don't accidently get successful builds
14537 # when there are problems that should be fixed.
14538
14539 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553 xorg_testset_save_CFLAGS="$CFLAGS"
14554
14555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 int i;
14565 _ACEOF
14566 if ac_fn_c_try_compile "$LINENO"; then :
14567 xorg_cv_cc_flag_unknown_warning_option=yes
14568 else
14569 xorg_cv_cc_flag_unknown_warning_option=no
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14576 CFLAGS="$xorg_testset_save_CFLAGS"
14577 fi
14578
14579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582 fi
14583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14587 $as_echo_n "(cached) " >&6
14588 else
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 int i;
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 xorg_cv_cc_flag_unused_command_line_argument=yes
14595 else
14596 xorg_cv_cc_flag_unused_command_line_argument=no
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14603 CFLAGS="$xorg_testset_save_CFLAGS"
14604 fi
14605
14606 found="no"
14607
14608 if test $found = "no" ; then
14609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14611 fi
14612
14613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14615 fi
14616
14617 CFLAGS="$CFLAGS -Werror=implicit"
14618
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14620 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14621 cacheid=xorg_cv_cc_flag__Werror_implicit
14622 if eval \${$cacheid+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 int i;
14628 int
14629 main ()
14630 {
14631
14632 ;
14633 return 0;
14634 }
14635 _ACEOF
14636 if ac_fn_c_try_link "$LINENO"; then :
14637 eval $cacheid=yes
14638 else
14639 eval $cacheid=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 fi
14644
14645
14646 CFLAGS="$xorg_testset_save_CFLAGS"
14647
14648 eval supported=\$$cacheid
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14650 $as_echo "$supported" >&6; }
14651 if test "$supported" = "yes" ; then
14652 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14653 found="yes"
14654 fi
14655 fi
14656
14657 if test $found = "no" ; then
14658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660 fi
14661
14662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664 fi
14665
14666 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14669 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14670 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14671 if eval \${$cacheid+:} false; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 int i;
14677 int
14678 main ()
14679 {
14680
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 eval $cacheid=yes
14687 else
14688 eval $cacheid=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692 fi
14693
14694
14695 CFLAGS="$xorg_testset_save_CFLAGS"
14696
14697 eval supported=\$$cacheid
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14699 $as_echo "$supported" >&6; }
14700 if test "$supported" = "yes" ; then
14701 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14702 found="yes"
14703 fi
14704 fi
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720 xorg_testset_save_CFLAGS="$CFLAGS"
14721
14722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731 int i;
14732 _ACEOF
14733 if ac_fn_c_try_compile "$LINENO"; then :
14734 xorg_cv_cc_flag_unknown_warning_option=yes
14735 else
14736 xorg_cv_cc_flag_unknown_warning_option=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 fi
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14743 CFLAGS="$xorg_testset_save_CFLAGS"
14744 fi
14745
14746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749 fi
14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 int i;
14759 _ACEOF
14760 if ac_fn_c_try_compile "$LINENO"; then :
14761 xorg_cv_cc_flag_unused_command_line_argument=yes
14762 else
14763 xorg_cv_cc_flag_unused_command_line_argument=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14770 CFLAGS="$xorg_testset_save_CFLAGS"
14771 fi
14772
14773 found="no"
14774
14775 if test $found = "no" ; then
14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778 fi
14779
14780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782 fi
14783
14784 CFLAGS="$CFLAGS -Werror=nonnull"
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14787 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14788 cacheid=xorg_cv_cc_flag__Werror_nonnull
14789 if eval \${$cacheid+:} false; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 int i;
14795 int
14796 main ()
14797 {
14798
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_link "$LINENO"; then :
14804 eval $cacheid=yes
14805 else
14806 eval $cacheid=no
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810 fi
14811
14812
14813 CFLAGS="$xorg_testset_save_CFLAGS"
14814
14815 eval supported=\$$cacheid
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14817 $as_echo "$supported" >&6; }
14818 if test "$supported" = "yes" ; then
14819 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14820 found="yes"
14821 fi
14822 fi
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838 xorg_testset_save_CFLAGS="$CFLAGS"
14839
14840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 int i;
14850 _ACEOF
14851 if ac_fn_c_try_compile "$LINENO"; then :
14852 xorg_cv_cc_flag_unknown_warning_option=yes
14853 else
14854 xorg_cv_cc_flag_unknown_warning_option=no
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14861 CFLAGS="$xorg_testset_save_CFLAGS"
14862 fi
14863
14864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867 fi
14868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 int i;
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"; then :
14879 xorg_cv_cc_flag_unused_command_line_argument=yes
14880 else
14881 xorg_cv_cc_flag_unused_command_line_argument=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14888 CFLAGS="$xorg_testset_save_CFLAGS"
14889 fi
14890
14891 found="no"
14892
14893 if test $found = "no" ; then
14894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896 fi
14897
14898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14900 fi
14901
14902 CFLAGS="$CFLAGS -Werror=init-self"
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14905 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14906 cacheid=xorg_cv_cc_flag__Werror_init_self
14907 if eval \${$cacheid+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 int i;
14913 int
14914 main ()
14915 {
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 eval $cacheid=yes
14923 else
14924 eval $cacheid=no
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14928 fi
14929
14930
14931 CFLAGS="$xorg_testset_save_CFLAGS"
14932
14933 eval supported=\$$cacheid
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14935 $as_echo "$supported" >&6; }
14936 if test "$supported" = "yes" ; then
14937 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14938 found="yes"
14939 fi
14940 fi
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956 xorg_testset_save_CFLAGS="$CFLAGS"
14957
14958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 int i;
14968 _ACEOF
14969 if ac_fn_c_try_compile "$LINENO"; then :
14970 xorg_cv_cc_flag_unknown_warning_option=yes
14971 else
14972 xorg_cv_cc_flag_unknown_warning_option=no
14973 fi
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14979 CFLAGS="$xorg_testset_save_CFLAGS"
14980 fi
14981
14982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985 fi
14986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14990 $as_echo_n "(cached) " >&6
14991 else
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994 int i;
14995 _ACEOF
14996 if ac_fn_c_try_compile "$LINENO"; then :
14997 xorg_cv_cc_flag_unused_command_line_argument=yes
14998 else
14999 xorg_cv_cc_flag_unused_command_line_argument=no
15000 fi
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15006 CFLAGS="$xorg_testset_save_CFLAGS"
15007 fi
15008
15009 found="no"
15010
15011 if test $found = "no" ; then
15012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014 fi
15015
15016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018 fi
15019
15020 CFLAGS="$CFLAGS -Werror=main"
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15023 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15024 cacheid=xorg_cv_cc_flag__Werror_main
15025 if eval \${$cacheid+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 int i;
15031 int
15032 main ()
15033 {
15034
15035 ;
15036 return 0;
15037 }
15038 _ACEOF
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 eval $cacheid=yes
15041 else
15042 eval $cacheid=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 fi
15047
15048
15049 CFLAGS="$xorg_testset_save_CFLAGS"
15050
15051 eval supported=\$$cacheid
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15053 $as_echo "$supported" >&6; }
15054 if test "$supported" = "yes" ; then
15055 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15056 found="yes"
15057 fi
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074 xorg_testset_save_CFLAGS="$CFLAGS"
15075
15076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085 int i;
15086 _ACEOF
15087 if ac_fn_c_try_compile "$LINENO"; then :
15088 xorg_cv_cc_flag_unknown_warning_option=yes
15089 else
15090 xorg_cv_cc_flag_unknown_warning_option=no
15091 fi
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 fi
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15097 CFLAGS="$xorg_testset_save_CFLAGS"
15098 fi
15099
15100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103 fi
15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 int i;
15113 _ACEOF
15114 if ac_fn_c_try_compile "$LINENO"; then :
15115 xorg_cv_cc_flag_unused_command_line_argument=yes
15116 else
15117 xorg_cv_cc_flag_unused_command_line_argument=no
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 fi
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15124 CFLAGS="$xorg_testset_save_CFLAGS"
15125 fi
15126
15127 found="no"
15128
15129 if test $found = "no" ; then
15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132 fi
15133
15134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136 fi
15137
15138 CFLAGS="$CFLAGS -Werror=missing-braces"
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15141 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15142 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15143 if eval \${$cacheid+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 int i;
15149 int
15150 main ()
15151 {
15152
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_link "$LINENO"; then :
15158 eval $cacheid=yes
15159 else
15160 eval $cacheid=no
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15164 fi
15165
15166
15167 CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169 eval supported=\$$cacheid
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171 $as_echo "$supported" >&6; }
15172 if test "$supported" = "yes" ; then
15173 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15174 found="yes"
15175 fi
15176 fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 xorg_testset_save_CFLAGS="$CFLAGS"
15193
15194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 int i;
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206 xorg_cv_cc_flag_unknown_warning_option=yes
15207 else
15208 xorg_cv_cc_flag_unknown_warning_option=no
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15215 CFLAGS="$xorg_testset_save_CFLAGS"
15216 fi
15217
15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221 fi
15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 int i;
15231 _ACEOF
15232 if ac_fn_c_try_compile "$LINENO"; then :
15233 xorg_cv_cc_flag_unused_command_line_argument=yes
15234 else
15235 xorg_cv_cc_flag_unused_command_line_argument=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 fi
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15242 CFLAGS="$xorg_testset_save_CFLAGS"
15243 fi
15244
15245 found="no"
15246
15247 if test $found = "no" ; then
15248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15250 fi
15251
15252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15254 fi
15255
15256 CFLAGS="$CFLAGS -Werror=sequence-point"
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15259 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15260 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15261 if eval \${$cacheid+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 int i;
15267 int
15268 main ()
15269 {
15270
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 eval $cacheid=yes
15277 else
15278 eval $cacheid=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 fi
15283
15284
15285 CFLAGS="$xorg_testset_save_CFLAGS"
15286
15287 eval supported=\$$cacheid
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15289 $as_echo "$supported" >&6; }
15290 if test "$supported" = "yes" ; then
15291 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15292 found="yes"
15293 fi
15294 fi
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310 xorg_testset_save_CFLAGS="$CFLAGS"
15311
15312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 int i;
15322 _ACEOF
15323 if ac_fn_c_try_compile "$LINENO"; then :
15324 xorg_cv_cc_flag_unknown_warning_option=yes
15325 else
15326 xorg_cv_cc_flag_unknown_warning_option=no
15327 fi
15328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15333 CFLAGS="$xorg_testset_save_CFLAGS"
15334 fi
15335
15336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15339 fi
15340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15344 $as_echo_n "(cached) " >&6
15345 else
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 int i;
15349 _ACEOF
15350 if ac_fn_c_try_compile "$LINENO"; then :
15351 xorg_cv_cc_flag_unused_command_line_argument=yes
15352 else
15353 xorg_cv_cc_flag_unused_command_line_argument=no
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 fi
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15360 CFLAGS="$xorg_testset_save_CFLAGS"
15361 fi
15362
15363 found="no"
15364
15365 if test $found = "no" ; then
15366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 fi
15369
15370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372 fi
15373
15374 CFLAGS="$CFLAGS -Werror=return-type"
15375
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15377 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15378 cacheid=xorg_cv_cc_flag__Werror_return_type
15379 if eval \${$cacheid+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 int i;
15385 int
15386 main ()
15387 {
15388
15389 ;
15390 return 0;
15391 }
15392 _ACEOF
15393 if ac_fn_c_try_link "$LINENO"; then :
15394 eval $cacheid=yes
15395 else
15396 eval $cacheid=no
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 fi
15401
15402
15403 CFLAGS="$xorg_testset_save_CFLAGS"
15404
15405 eval supported=\$$cacheid
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15407 $as_echo "$supported" >&6; }
15408 if test "$supported" = "yes" ; then
15409 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15410 found="yes"
15411 fi
15412 fi
15413
15414 if test $found = "no" ; then
15415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417 fi
15418
15419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15421 fi
15422
15423 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15426 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15427 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15428 if eval \${$cacheid+:} false; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 int i;
15434 int
15435 main ()
15436 {
15437
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 if ac_fn_c_try_link "$LINENO"; then :
15443 eval $cacheid=yes
15444 else
15445 eval $cacheid=no
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 fi
15450
15451
15452 CFLAGS="$xorg_testset_save_CFLAGS"
15453
15454 eval supported=\$$cacheid
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15456 $as_echo "$supported" >&6; }
15457 if test "$supported" = "yes" ; then
15458 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15459 found="yes"
15460 fi
15461 fi
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477 xorg_testset_save_CFLAGS="$CFLAGS"
15478
15479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15484 $as_echo_n "(cached) " >&6
15485 else
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 int i;
15489 _ACEOF
15490 if ac_fn_c_try_compile "$LINENO"; then :
15491 xorg_cv_cc_flag_unknown_warning_option=yes
15492 else
15493 xorg_cv_cc_flag_unknown_warning_option=no
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15500 CFLAGS="$xorg_testset_save_CFLAGS"
15501 fi
15502
15503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15506 fi
15507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 int i;
15516 _ACEOF
15517 if ac_fn_c_try_compile "$LINENO"; then :
15518 xorg_cv_cc_flag_unused_command_line_argument=yes
15519 else
15520 xorg_cv_cc_flag_unused_command_line_argument=no
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 fi
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15527 CFLAGS="$xorg_testset_save_CFLAGS"
15528 fi
15529
15530 found="no"
15531
15532 if test $found = "no" ; then
15533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15535 fi
15536
15537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15539 fi
15540
15541 CFLAGS="$CFLAGS -Werror=trigraphs"
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15544 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15545 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15546 if eval \${$cacheid+:} false; then :
15547 $as_echo_n "(cached) " >&6
15548 else
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 int i;
15552 int
15553 main ()
15554 {
15555
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_c_try_link "$LINENO"; then :
15561 eval $cacheid=yes
15562 else
15563 eval $cacheid=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15567 fi
15568
15569
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571
15572 eval supported=\$$cacheid
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15574 $as_echo "$supported" >&6; }
15575 if test "$supported" = "yes" ; then
15576 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15577 found="yes"
15578 fi
15579 fi
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 xorg_testset_save_CFLAGS="$CFLAGS"
15596
15597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int i;
15607 _ACEOF
15608 if ac_fn_c_try_compile "$LINENO"; then :
15609 xorg_cv_cc_flag_unknown_warning_option=yes
15610 else
15611 xorg_cv_cc_flag_unknown_warning_option=no
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15618 CFLAGS="$xorg_testset_save_CFLAGS"
15619 fi
15620
15621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15624 fi
15625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 int i;
15634 _ACEOF
15635 if ac_fn_c_try_compile "$LINENO"; then :
15636 xorg_cv_cc_flag_unused_command_line_argument=yes
15637 else
15638 xorg_cv_cc_flag_unused_command_line_argument=no
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15645 CFLAGS="$xorg_testset_save_CFLAGS"
15646 fi
15647
15648 found="no"
15649
15650 if test $found = "no" ; then
15651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15657 fi
15658
15659 CFLAGS="$CFLAGS -Werror=array-bounds"
15660
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15662 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15663 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15664 if eval \${$cacheid+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 int i;
15670 int
15671 main ()
15672 {
15673
15674 ;
15675 return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_link "$LINENO"; then :
15679 eval $cacheid=yes
15680 else
15681 eval $cacheid=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 fi
15686
15687
15688 CFLAGS="$xorg_testset_save_CFLAGS"
15689
15690 eval supported=\$$cacheid
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15692 $as_echo "$supported" >&6; }
15693 if test "$supported" = "yes" ; then
15694 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15695 found="yes"
15696 fi
15697 fi
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713 xorg_testset_save_CFLAGS="$CFLAGS"
15714
15715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 int i;
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 xorg_cv_cc_flag_unknown_warning_option=yes
15728 else
15729 xorg_cv_cc_flag_unknown_warning_option=no
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 fi
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15736 CFLAGS="$xorg_testset_save_CFLAGS"
15737 fi
15738
15739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15742 fi
15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 int i;
15752 _ACEOF
15753 if ac_fn_c_try_compile "$LINENO"; then :
15754 xorg_cv_cc_flag_unused_command_line_argument=yes
15755 else
15756 xorg_cv_cc_flag_unused_command_line_argument=no
15757 fi
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15763 CFLAGS="$xorg_testset_save_CFLAGS"
15764 fi
15765
15766 found="no"
15767
15768 if test $found = "no" ; then
15769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771 fi
15772
15773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775 fi
15776
15777 CFLAGS="$CFLAGS -Werror=write-strings"
15778
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15780 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15781 cacheid=xorg_cv_cc_flag__Werror_write_strings
15782 if eval \${$cacheid+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15787 int i;
15788 int
15789 main ()
15790 {
15791
15792 ;
15793 return 0;
15794 }
15795 _ACEOF
15796 if ac_fn_c_try_link "$LINENO"; then :
15797 eval $cacheid=yes
15798 else
15799 eval $cacheid=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
15803 fi
15804
15805
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15807
15808 eval supported=\$$cacheid
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15810 $as_echo "$supported" >&6; }
15811 if test "$supported" = "yes" ; then
15812 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15813 found="yes"
15814 fi
15815 fi
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831 xorg_testset_save_CFLAGS="$CFLAGS"
15832
15833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 int i;
15843 _ACEOF
15844 if ac_fn_c_try_compile "$LINENO"; then :
15845 xorg_cv_cc_flag_unknown_warning_option=yes
15846 else
15847 xorg_cv_cc_flag_unknown_warning_option=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15854 CFLAGS="$xorg_testset_save_CFLAGS"
15855 fi
15856
15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15860 fi
15861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869 int i;
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"; then :
15872 xorg_cv_cc_flag_unused_command_line_argument=yes
15873 else
15874 xorg_cv_cc_flag_unused_command_line_argument=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15881 CFLAGS="$xorg_testset_save_CFLAGS"
15882 fi
15883
15884 found="no"
15885
15886 if test $found = "no" ; then
15887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889 fi
15890
15891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15893 fi
15894
15895 CFLAGS="$CFLAGS -Werror=address"
15896
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15898 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15899 cacheid=xorg_cv_cc_flag__Werror_address
15900 if eval \${$cacheid+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 int i;
15906 int
15907 main ()
15908 {
15909
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_link "$LINENO"; then :
15915 eval $cacheid=yes
15916 else
15917 eval $cacheid=no
15918 fi
15919 rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921 fi
15922
15923
15924 CFLAGS="$xorg_testset_save_CFLAGS"
15925
15926 eval supported=\$$cacheid
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15928 $as_echo "$supported" >&6; }
15929 if test "$supported" = "yes" ; then
15930 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15931 found="yes"
15932 fi
15933 fi
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949 xorg_testset_save_CFLAGS="$CFLAGS"
15950
15951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 int i;
15961 _ACEOF
15962 if ac_fn_c_try_compile "$LINENO"; then :
15963 xorg_cv_cc_flag_unknown_warning_option=yes
15964 else
15965 xorg_cv_cc_flag_unknown_warning_option=no
15966 fi
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15972 CFLAGS="$xorg_testset_save_CFLAGS"
15973 fi
15974
15975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15978 fi
15979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 int i;
15988 _ACEOF
15989 if ac_fn_c_try_compile "$LINENO"; then :
15990 xorg_cv_cc_flag_unused_command_line_argument=yes
15991 else
15992 xorg_cv_cc_flag_unused_command_line_argument=no
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15999 CFLAGS="$xorg_testset_save_CFLAGS"
16000 fi
16001
16002 found="no"
16003
16004 if test $found = "no" ; then
16005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007 fi
16008
16009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16011 fi
16012
16013 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16014
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16016 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16017 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16018 if eval \${$cacheid+:} false; then :
16019 $as_echo_n "(cached) " >&6
16020 else
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023 int i;
16024 int
16025 main ()
16026 {
16027
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033 eval $cacheid=yes
16034 else
16035 eval $cacheid=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 fi
16040
16041
16042 CFLAGS="$xorg_testset_save_CFLAGS"
16043
16044 eval supported=\$$cacheid
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16046 $as_echo "$supported" >&6; }
16047 if test "$supported" = "yes" ; then
16048 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16049 found="yes"
16050 fi
16051 fi
16052
16053 if test $found = "no" ; then
16054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056 fi
16057
16058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060 fi
16061
16062 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16063
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16065 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16066 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16067 if eval \${$cacheid+:} false; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 int i;
16073 int
16074 main ()
16075 {
16076
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082 eval $cacheid=yes
16083 else
16084 eval $cacheid=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16088 fi
16089
16090
16091 CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093 eval supported=\$$cacheid
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095 $as_echo "$supported" >&6; }
16096 if test "$supported" = "yes" ; then
16097 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16098 found="yes"
16099 fi
16100 fi
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116 xorg_testset_save_CFLAGS="$CFLAGS"
16117
16118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 int i;
16128 _ACEOF
16129 if ac_fn_c_try_compile "$LINENO"; then :
16130 xorg_cv_cc_flag_unknown_warning_option=yes
16131 else
16132 xorg_cv_cc_flag_unknown_warning_option=no
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16139 CFLAGS="$xorg_testset_save_CFLAGS"
16140 fi
16141
16142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145 fi
16146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 int i;
16155 _ACEOF
16156 if ac_fn_c_try_compile "$LINENO"; then :
16157 xorg_cv_cc_flag_unused_command_line_argument=yes
16158 else
16159 xorg_cv_cc_flag_unused_command_line_argument=no
16160 fi
16161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 fi
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16166 CFLAGS="$xorg_testset_save_CFLAGS"
16167 fi
16168
16169 found="no"
16170
16171 if test $found = "no" ; then
16172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16174 fi
16175
16176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178 fi
16179
16180 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16181
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16183 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16184 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16185 if eval \${$cacheid+:} false; then :
16186 $as_echo_n "(cached) " >&6
16187 else
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 int i;
16191 int
16192 main ()
16193 {
16194
16195 ;
16196 return 0;
16197 }
16198 _ACEOF
16199 if ac_fn_c_try_link "$LINENO"; then :
16200 eval $cacheid=yes
16201 else
16202 eval $cacheid=no
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16206 fi
16207
16208
16209 CFLAGS="$xorg_testset_save_CFLAGS"
16210
16211 eval supported=\$$cacheid
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16213 $as_echo "$supported" >&6; }
16214 if test "$supported" = "yes" ; then
16215 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16216 found="yes"
16217 fi
16218 fi
16219
16220 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16221 else
16222 { $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
16223 $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;}
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237 xorg_testset_save_CFLAGS="$CFLAGS"
16238
16239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16242 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16243 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248 int i;
16249 _ACEOF
16250 if ac_fn_c_try_compile "$LINENO"; then :
16251 xorg_cv_cc_flag_unknown_warning_option=yes
16252 else
16253 xorg_cv_cc_flag_unknown_warning_option=no
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16258 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16260 CFLAGS="$xorg_testset_save_CFLAGS"
16261 fi
16262
16263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266 fi
16267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16270 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 int i;
16276 _ACEOF
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278 xorg_cv_cc_flag_unused_command_line_argument=yes
16279 else
16280 xorg_cv_cc_flag_unused_command_line_argument=no
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 fi
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16285 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16287 CFLAGS="$xorg_testset_save_CFLAGS"
16288 fi
16289
16290 found="no"
16291
16292 if test $found = "no" ; then
16293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16295 fi
16296
16297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16299 fi
16300
16301 CFLAGS="$CFLAGS -Wimplicit"
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16304 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16305 cacheid=xorg_cv_cc_flag__Wimplicit
16306 if eval \${$cacheid+:} false; then :
16307 $as_echo_n "(cached) " >&6
16308 else
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 int i;
16312 int
16313 main ()
16314 {
16315
16316 ;
16317 return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"; then :
16321 eval $cacheid=yes
16322 else
16323 eval $cacheid=no
16324 fi
16325 rm -f core conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext
16327 fi
16328
16329
16330 CFLAGS="$xorg_testset_save_CFLAGS"
16331
16332 eval supported=\$$cacheid
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16334 $as_echo "$supported" >&6; }
16335 if test "$supported" = "yes" ; then
16336 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16337 found="yes"
16338 fi
16339 fi
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355 xorg_testset_save_CFLAGS="$CFLAGS"
16356
16357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16362 $as_echo_n "(cached) " >&6
16363 else
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 int i;
16367 _ACEOF
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 xorg_cv_cc_flag_unknown_warning_option=yes
16370 else
16371 xorg_cv_cc_flag_unknown_warning_option=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16378 CFLAGS="$xorg_testset_save_CFLAGS"
16379 fi
16380
16381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384 fi
16385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 int i;
16394 _ACEOF
16395 if ac_fn_c_try_compile "$LINENO"; then :
16396 xorg_cv_cc_flag_unused_command_line_argument=yes
16397 else
16398 xorg_cv_cc_flag_unused_command_line_argument=no
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16405 CFLAGS="$xorg_testset_save_CFLAGS"
16406 fi
16407
16408 found="no"
16409
16410 if test $found = "no" ; then
16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413 fi
16414
16415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16417 fi
16418
16419 CFLAGS="$CFLAGS -Wnonnull"
16420
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16422 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16423 cacheid=xorg_cv_cc_flag__Wnonnull
16424 if eval \${$cacheid+:} false; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 int i;
16430 int
16431 main ()
16432 {
16433
16434 ;
16435 return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_link "$LINENO"; then :
16439 eval $cacheid=yes
16440 else
16441 eval $cacheid=no
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 fi
16446
16447
16448 CFLAGS="$xorg_testset_save_CFLAGS"
16449
16450 eval supported=\$$cacheid
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16452 $as_echo "$supported" >&6; }
16453 if test "$supported" = "yes" ; then
16454 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16455 found="yes"
16456 fi
16457 fi
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473 xorg_testset_save_CFLAGS="$CFLAGS"
16474
16475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16479 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 int i;
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 xorg_cv_cc_flag_unknown_warning_option=yes
16488 else
16489 xorg_cv_cc_flag_unknown_warning_option=no
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16494 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16496 CFLAGS="$xorg_testset_save_CFLAGS"
16497 fi
16498
16499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502 fi
16503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16505 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16506 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 int i;
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"; then :
16514 xorg_cv_cc_flag_unused_command_line_argument=yes
16515 else
16516 xorg_cv_cc_flag_unused_command_line_argument=no
16517 fi
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16521 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16523 CFLAGS="$xorg_testset_save_CFLAGS"
16524 fi
16525
16526 found="no"
16527
16528 if test $found = "no" ; then
16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531 fi
16532
16533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16535 fi
16536
16537 CFLAGS="$CFLAGS -Winit-self"
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16540 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16541 cacheid=xorg_cv_cc_flag__Winit_self
16542 if eval \${$cacheid+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 int i;
16548 int
16549 main ()
16550 {
16551
16552 ;
16553 return 0;
16554 }
16555 _ACEOF
16556 if ac_fn_c_try_link "$LINENO"; then :
16557 eval $cacheid=yes
16558 else
16559 eval $cacheid=no
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 fi
16564
16565
16566 CFLAGS="$xorg_testset_save_CFLAGS"
16567
16568 eval supported=\$$cacheid
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16570 $as_echo "$supported" >&6; }
16571 if test "$supported" = "yes" ; then
16572 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16573 found="yes"
16574 fi
16575 fi
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591 xorg_testset_save_CFLAGS="$CFLAGS"
16592
16593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16596 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16597 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 int i;
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"; then :
16605 xorg_cv_cc_flag_unknown_warning_option=yes
16606 else
16607 xorg_cv_cc_flag_unknown_warning_option=no
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16612 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16614 CFLAGS="$xorg_testset_save_CFLAGS"
16615 fi
16616
16617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620 fi
16621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16623 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16624 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16629 int i;
16630 _ACEOF
16631 if ac_fn_c_try_compile "$LINENO"; then :
16632 xorg_cv_cc_flag_unused_command_line_argument=yes
16633 else
16634 xorg_cv_cc_flag_unused_command_line_argument=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16639 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16641 CFLAGS="$xorg_testset_save_CFLAGS"
16642 fi
16643
16644 found="no"
16645
16646 if test $found = "no" ; then
16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649 fi
16650
16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16653 fi
16654
16655 CFLAGS="$CFLAGS -Wmain"
16656
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16658 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16659 cacheid=xorg_cv_cc_flag__Wmain
16660 if eval \${$cacheid+:} false; then :
16661 $as_echo_n "(cached) " >&6
16662 else
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int i;
16666 int
16667 main ()
16668 {
16669
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_link "$LINENO"; then :
16675 eval $cacheid=yes
16676 else
16677 eval $cacheid=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 fi
16682
16683
16684 CFLAGS="$xorg_testset_save_CFLAGS"
16685
16686 eval supported=\$$cacheid
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16688 $as_echo "$supported" >&6; }
16689 if test "$supported" = "yes" ; then
16690 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16691 found="yes"
16692 fi
16693 fi
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709 xorg_testset_save_CFLAGS="$CFLAGS"
16710
16711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16714 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16715 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16716 $as_echo_n "(cached) " >&6
16717 else
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16720 int i;
16721 _ACEOF
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723 xorg_cv_cc_flag_unknown_warning_option=yes
16724 else
16725 xorg_cv_cc_flag_unknown_warning_option=no
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16730 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16732 CFLAGS="$xorg_testset_save_CFLAGS"
16733 fi
16734
16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738 fi
16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16741 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16742 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 int i;
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 xorg_cv_cc_flag_unused_command_line_argument=yes
16751 else
16752 xorg_cv_cc_flag_unused_command_line_argument=no
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16757 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16759 CFLAGS="$xorg_testset_save_CFLAGS"
16760 fi
16761
16762 found="no"
16763
16764 if test $found = "no" ; then
16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767 fi
16768
16769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16771 fi
16772
16773 CFLAGS="$CFLAGS -Wmissing-braces"
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16776 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16777 cacheid=xorg_cv_cc_flag__Wmissing_braces
16778 if eval \${$cacheid+:} false; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16783 int i;
16784 int
16785 main ()
16786 {
16787
16788 ;
16789 return 0;
16790 }
16791 _ACEOF
16792 if ac_fn_c_try_link "$LINENO"; then :
16793 eval $cacheid=yes
16794 else
16795 eval $cacheid=no
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799 fi
16800
16801
16802 CFLAGS="$xorg_testset_save_CFLAGS"
16803
16804 eval supported=\$$cacheid
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16806 $as_echo "$supported" >&6; }
16807 if test "$supported" = "yes" ; then
16808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16809 found="yes"
16810 fi
16811 fi
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827 xorg_testset_save_CFLAGS="$CFLAGS"
16828
16829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 int i;
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 xorg_cv_cc_flag_unknown_warning_option=yes
16842 else
16843 xorg_cv_cc_flag_unknown_warning_option=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16850 CFLAGS="$xorg_testset_save_CFLAGS"
16851 fi
16852
16853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856 fi
16857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 int i;
16866 _ACEOF
16867 if ac_fn_c_try_compile "$LINENO"; then :
16868 xorg_cv_cc_flag_unused_command_line_argument=yes
16869 else
16870 xorg_cv_cc_flag_unused_command_line_argument=no
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 fi
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16877 CFLAGS="$xorg_testset_save_CFLAGS"
16878 fi
16879
16880 found="no"
16881
16882 if test $found = "no" ; then
16883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16885 fi
16886
16887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16889 fi
16890
16891 CFLAGS="$CFLAGS -Wsequence-point"
16892
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16894 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16895 cacheid=xorg_cv_cc_flag__Wsequence_point
16896 if eval \${$cacheid+:} false; then :
16897 $as_echo_n "(cached) " >&6
16898 else
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 int i;
16902 int
16903 main ()
16904 {
16905
16906 ;
16907 return 0;
16908 }
16909 _ACEOF
16910 if ac_fn_c_try_link "$LINENO"; then :
16911 eval $cacheid=yes
16912 else
16913 eval $cacheid=no
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917 fi
16918
16919
16920 CFLAGS="$xorg_testset_save_CFLAGS"
16921
16922 eval supported=\$$cacheid
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16924 $as_echo "$supported" >&6; }
16925 if test "$supported" = "yes" ; then
16926 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16927 found="yes"
16928 fi
16929 fi
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945 xorg_testset_save_CFLAGS="$CFLAGS"
16946
16947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16952 $as_echo_n "(cached) " >&6
16953 else
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 int i;
16957 _ACEOF
16958 if ac_fn_c_try_compile "$LINENO"; then :
16959 xorg_cv_cc_flag_unknown_warning_option=yes
16960 else
16961 xorg_cv_cc_flag_unknown_warning_option=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16968 CFLAGS="$xorg_testset_save_CFLAGS"
16969 fi
16970
16971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974 fi
16975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16983 int i;
16984 _ACEOF
16985 if ac_fn_c_try_compile "$LINENO"; then :
16986 xorg_cv_cc_flag_unused_command_line_argument=yes
16987 else
16988 xorg_cv_cc_flag_unused_command_line_argument=no
16989 fi
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 fi
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16995 CFLAGS="$xorg_testset_save_CFLAGS"
16996 fi
16997
16998 found="no"
16999
17000 if test $found = "no" ; then
17001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17003 fi
17004
17005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007 fi
17008
17009 CFLAGS="$CFLAGS -Wreturn-type"
17010
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17012 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17013 cacheid=xorg_cv_cc_flag__Wreturn_type
17014 if eval \${$cacheid+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 int i;
17020 int
17021 main ()
17022 {
17023
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"; then :
17029 eval $cacheid=yes
17030 else
17031 eval $cacheid=no
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035 fi
17036
17037
17038 CFLAGS="$xorg_testset_save_CFLAGS"
17039
17040 eval supported=\$$cacheid
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17042 $as_echo "$supported" >&6; }
17043 if test "$supported" = "yes" ; then
17044 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17045 found="yes"
17046 fi
17047 fi
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063 xorg_testset_save_CFLAGS="$CFLAGS"
17064
17065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 int i;
17075 _ACEOF
17076 if ac_fn_c_try_compile "$LINENO"; then :
17077 xorg_cv_cc_flag_unknown_warning_option=yes
17078 else
17079 xorg_cv_cc_flag_unknown_warning_option=no
17080 fi
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 fi
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17086 CFLAGS="$xorg_testset_save_CFLAGS"
17087 fi
17088
17089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092 fi
17093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 _ACEOF
17103 if ac_fn_c_try_compile "$LINENO"; then :
17104 xorg_cv_cc_flag_unused_command_line_argument=yes
17105 else
17106 xorg_cv_cc_flag_unused_command_line_argument=no
17107 fi
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 fi
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17113 CFLAGS="$xorg_testset_save_CFLAGS"
17114 fi
17115
17116 found="no"
17117
17118 if test $found = "no" ; then
17119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 fi
17122
17123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17125 fi
17126
17127 CFLAGS="$CFLAGS -Wtrigraphs"
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17130 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17131 cacheid=xorg_cv_cc_flag__Wtrigraphs
17132 if eval \${$cacheid+:} false; then :
17133 $as_echo_n "(cached) " >&6
17134 else
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17137 int i;
17138 int
17139 main ()
17140 {
17141
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147 eval $cacheid=yes
17148 else
17149 eval $cacheid=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 fi
17154
17155
17156 CFLAGS="$xorg_testset_save_CFLAGS"
17157
17158 eval supported=\$$cacheid
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17160 $as_echo "$supported" >&6; }
17161 if test "$supported" = "yes" ; then
17162 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17163 found="yes"
17164 fi
17165 fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181 xorg_testset_save_CFLAGS="$CFLAGS"
17182
17183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17188 $as_echo_n "(cached) " >&6
17189 else
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 int i;
17193 _ACEOF
17194 if ac_fn_c_try_compile "$LINENO"; then :
17195 xorg_cv_cc_flag_unknown_warning_option=yes
17196 else
17197 xorg_cv_cc_flag_unknown_warning_option=no
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 fi
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204 CFLAGS="$xorg_testset_save_CFLAGS"
17205 fi
17206
17207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210 fi
17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219 int i;
17220 _ACEOF
17221 if ac_fn_c_try_compile "$LINENO"; then :
17222 xorg_cv_cc_flag_unused_command_line_argument=yes
17223 else
17224 xorg_cv_cc_flag_unused_command_line_argument=no
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17227 fi
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17231 CFLAGS="$xorg_testset_save_CFLAGS"
17232 fi
17233
17234 found="no"
17235
17236 if test $found = "no" ; then
17237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239 fi
17240
17241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243 fi
17244
17245 CFLAGS="$CFLAGS -Warray-bounds"
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17248 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17249 cacheid=xorg_cv_cc_flag__Warray_bounds
17250 if eval \${$cacheid+:} false; then :
17251 $as_echo_n "(cached) " >&6
17252 else
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17255 int i;
17256 int
17257 main ()
17258 {
17259
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 eval $cacheid=yes
17266 else
17267 eval $cacheid=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 fi
17272
17273
17274 CFLAGS="$xorg_testset_save_CFLAGS"
17275
17276 eval supported=\$$cacheid
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17278 $as_echo "$supported" >&6; }
17279 if test "$supported" = "yes" ; then
17280 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17281 found="yes"
17282 fi
17283 fi
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299 xorg_testset_save_CFLAGS="$CFLAGS"
17300
17301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307 else
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 int i;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 xorg_cv_cc_flag_unknown_warning_option=yes
17314 else
17315 xorg_cv_cc_flag_unknown_warning_option=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17322 CFLAGS="$xorg_testset_save_CFLAGS"
17323 fi
17324
17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328 fi
17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 int i;
17338 _ACEOF
17339 if ac_fn_c_try_compile "$LINENO"; then :
17340 xorg_cv_cc_flag_unused_command_line_argument=yes
17341 else
17342 xorg_cv_cc_flag_unused_command_line_argument=no
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17349 CFLAGS="$xorg_testset_save_CFLAGS"
17350 fi
17351
17352 found="no"
17353
17354 if test $found = "no" ; then
17355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17357 fi
17358
17359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17361 fi
17362
17363 CFLAGS="$CFLAGS -Wwrite-strings"
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17366 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17367 cacheid=xorg_cv_cc_flag__Wwrite_strings
17368 if eval \${$cacheid+:} false; then :
17369 $as_echo_n "(cached) " >&6
17370 else
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373 int i;
17374 int
17375 main ()
17376 {
17377
17378 ;
17379 return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383 eval $cacheid=yes
17384 else
17385 eval $cacheid=no
17386 fi
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17389 fi
17390
17391
17392 CFLAGS="$xorg_testset_save_CFLAGS"
17393
17394 eval supported=\$$cacheid
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17396 $as_echo "$supported" >&6; }
17397 if test "$supported" = "yes" ; then
17398 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17399 found="yes"
17400 fi
17401 fi
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417 xorg_testset_save_CFLAGS="$CFLAGS"
17418
17419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428 int i;
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 xorg_cv_cc_flag_unknown_warning_option=yes
17432 else
17433 xorg_cv_cc_flag_unknown_warning_option=no
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17440 CFLAGS="$xorg_testset_save_CFLAGS"
17441 fi
17442
17443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17446 fi
17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17451 $as_echo_n "(cached) " >&6
17452 else
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17455 int i;
17456 _ACEOF
17457 if ac_fn_c_try_compile "$LINENO"; then :
17458 xorg_cv_cc_flag_unused_command_line_argument=yes
17459 else
17460 xorg_cv_cc_flag_unused_command_line_argument=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17467 CFLAGS="$xorg_testset_save_CFLAGS"
17468 fi
17469
17470 found="no"
17471
17472 if test $found = "no" ; then
17473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17475 fi
17476
17477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17479 fi
17480
17481 CFLAGS="$CFLAGS -Waddress"
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17484 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17485 cacheid=xorg_cv_cc_flag__Waddress
17486 if eval \${$cacheid+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17491 int i;
17492 int
17493 main ()
17494 {
17495
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_link "$LINENO"; then :
17501 eval $cacheid=yes
17502 else
17503 eval $cacheid=no
17504 fi
17505 rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17507 fi
17508
17509
17510 CFLAGS="$xorg_testset_save_CFLAGS"
17511
17512 eval supported=\$$cacheid
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17514 $as_echo "$supported" >&6; }
17515 if test "$supported" = "yes" ; then
17516 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17517 found="yes"
17518 fi
17519 fi
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535 xorg_testset_save_CFLAGS="$CFLAGS"
17536
17537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 int i;
17547 _ACEOF
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 xorg_cv_cc_flag_unknown_warning_option=yes
17550 else
17551 xorg_cv_cc_flag_unknown_warning_option=no
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17558 CFLAGS="$xorg_testset_save_CFLAGS"
17559 fi
17560
17561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17564 fi
17565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17573 int i;
17574 _ACEOF
17575 if ac_fn_c_try_compile "$LINENO"; then :
17576 xorg_cv_cc_flag_unused_command_line_argument=yes
17577 else
17578 xorg_cv_cc_flag_unused_command_line_argument=no
17579 fi
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 fi
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17585 CFLAGS="$xorg_testset_save_CFLAGS"
17586 fi
17587
17588 found="no"
17589
17590 if test $found = "no" ; then
17591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17593 fi
17594
17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17597 fi
17598
17599 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17600
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17602 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17603 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17604 if eval \${$cacheid+:} false; then :
17605 $as_echo_n "(cached) " >&6
17606 else
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 int i;
17610 int
17611 main ()
17612 {
17613
17614 ;
17615 return 0;
17616 }
17617 _ACEOF
17618 if ac_fn_c_try_link "$LINENO"; then :
17619 eval $cacheid=yes
17620 else
17621 eval $cacheid=no
17622 fi
17623 rm -f core conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
17625 fi
17626
17627
17628 CFLAGS="$xorg_testset_save_CFLAGS"
17629
17630 eval supported=\$$cacheid
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17632 $as_echo "$supported" >&6; }
17633 if test "$supported" = "yes" ; then
17634 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17635 found="yes"
17636 fi
17637 fi
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653 xorg_testset_save_CFLAGS="$CFLAGS"
17654
17655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17660 $as_echo_n "(cached) " >&6
17661 else
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17664 int i;
17665 _ACEOF
17666 if ac_fn_c_try_compile "$LINENO"; then :
17667 xorg_cv_cc_flag_unknown_warning_option=yes
17668 else
17669 xorg_cv_cc_flag_unknown_warning_option=no
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17676 CFLAGS="$xorg_testset_save_CFLAGS"
17677 fi
17678
17679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17682 fi
17683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17687 $as_echo_n "(cached) " >&6
17688 else
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 int i;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694 xorg_cv_cc_flag_unused_command_line_argument=yes
17695 else
17696 xorg_cv_cc_flag_unused_command_line_argument=no
17697 fi
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17703 CFLAGS="$xorg_testset_save_CFLAGS"
17704 fi
17705
17706 found="no"
17707
17708 if test $found = "no" ; then
17709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711 fi
17712
17713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17715 fi
17716
17717 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17718
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17720 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17721 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17722 if eval \${$cacheid+:} false; then :
17723 $as_echo_n "(cached) " >&6
17724 else
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17727 int i;
17728 int
17729 main ()
17730 {
17731
17732 ;
17733 return 0;
17734 }
17735 _ACEOF
17736 if ac_fn_c_try_link "$LINENO"; then :
17737 eval $cacheid=yes
17738 else
17739 eval $cacheid=no
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext \
17742 conftest$ac_exeext conftest.$ac_ext
17743 fi
17744
17745
17746 CFLAGS="$xorg_testset_save_CFLAGS"
17747
17748 eval supported=\$$cacheid
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17750 $as_echo "$supported" >&6; }
17751 if test "$supported" = "yes" ; then
17752 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17753 found="yes"
17754 fi
17755 fi
17756
17757
17758 fi
17759
17760
17761
17762
17763
17764
17765
17766 CWARNFLAGS="$BASE_CFLAGS"
17767 if test "x$GCC" = xyes ; then
17768 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17769 fi
17770
17771
17772
17773
17774
17775
17776
17777
17778 # Check whether --enable-strict-compilation was given.
17779 if test "${enable_strict_compilation+set}" = set; then :
17780 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17781 else
17782 STRICT_COMPILE=no
17783 fi
17784
17785
17786
17787
17788
17789
17790 STRICT_CFLAGS=""
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804 xorg_testset_save_CFLAGS="$CFLAGS"
17805
17806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17815 int i;
17816 _ACEOF
17817 if ac_fn_c_try_compile "$LINENO"; then :
17818 xorg_cv_cc_flag_unknown_warning_option=yes
17819 else
17820 xorg_cv_cc_flag_unknown_warning_option=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823 fi
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17827 CFLAGS="$xorg_testset_save_CFLAGS"
17828 fi
17829
17830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17833 fi
17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17838 $as_echo_n "(cached) " >&6
17839 else
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842 int i;
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845 xorg_cv_cc_flag_unused_command_line_argument=yes
17846 else
17847 xorg_cv_cc_flag_unused_command_line_argument=no
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17854 CFLAGS="$xorg_testset_save_CFLAGS"
17855 fi
17856
17857 found="no"
17858
17859 if test $found = "no" ; then
17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862 fi
17863
17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17866 fi
17867
17868 CFLAGS="$CFLAGS -pedantic"
17869
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17871 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17872 cacheid=xorg_cv_cc_flag__pedantic
17873 if eval \${$cacheid+:} false; then :
17874 $as_echo_n "(cached) " >&6
17875 else
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 int i;
17879 int
17880 main ()
17881 {
17882
17883 ;
17884 return 0;
17885 }
17886 _ACEOF
17887 if ac_fn_c_try_link "$LINENO"; then :
17888 eval $cacheid=yes
17889 else
17890 eval $cacheid=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 fi
17895
17896
17897 CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899 eval supported=\$$cacheid
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901 $as_echo "$supported" >&6; }
17902 if test "$supported" = "yes" ; then
17903 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17904 found="yes"
17905 fi
17906 fi
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922 xorg_testset_save_CFLAGS="$CFLAGS"
17923
17924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17933 int i;
17934 _ACEOF
17935 if ac_fn_c_try_compile "$LINENO"; then :
17936 xorg_cv_cc_flag_unknown_warning_option=yes
17937 else
17938 xorg_cv_cc_flag_unknown_warning_option=no
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 fi
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17945 CFLAGS="$xorg_testset_save_CFLAGS"
17946 fi
17947
17948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17951 fi
17952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17956 $as_echo_n "(cached) " >&6
17957 else
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960 int i;
17961 _ACEOF
17962 if ac_fn_c_try_compile "$LINENO"; then :
17963 xorg_cv_cc_flag_unused_command_line_argument=yes
17964 else
17965 xorg_cv_cc_flag_unused_command_line_argument=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17972 CFLAGS="$xorg_testset_save_CFLAGS"
17973 fi
17974
17975 found="no"
17976
17977 if test $found = "no" ; then
17978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17980 fi
17981
17982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17984 fi
17985
17986 CFLAGS="$CFLAGS -Werror"
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17989 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17990 cacheid=xorg_cv_cc_flag__Werror
17991 if eval \${$cacheid+:} false; then :
17992 $as_echo_n "(cached) " >&6
17993 else
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 int i;
17997 int
17998 main ()
17999 {
18000
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18006 eval $cacheid=yes
18007 else
18008 eval $cacheid=no
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18012 fi
18013
18014
18015 CFLAGS="$xorg_testset_save_CFLAGS"
18016
18017 eval supported=\$$cacheid
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18019 $as_echo "$supported" >&6; }
18020 if test "$supported" = "yes" ; then
18021 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18022 found="yes"
18023 fi
18024 fi
18025
18026 if test $found = "no" ; then
18027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18029 fi
18030
18031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18033 fi
18034
18035 CFLAGS="$CFLAGS -errwarn"
18036
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18038 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18039 cacheid=xorg_cv_cc_flag__errwarn
18040 if eval \${$cacheid+:} false; then :
18041 $as_echo_n "(cached) " >&6
18042 else
18043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18045 int i;
18046 int
18047 main ()
18048 {
18049
18050 ;
18051 return 0;
18052 }
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"; then :
18055 eval $cacheid=yes
18056 else
18057 eval $cacheid=no
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061 fi
18062
18063
18064 CFLAGS="$xorg_testset_save_CFLAGS"
18065
18066 eval supported=\$$cacheid
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18068 $as_echo "$supported" >&6; }
18069 if test "$supported" = "yes" ; then
18070 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18071 found="yes"
18072 fi
18073 fi
18074
18075
18076
18077 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18078 # activate it with -Werror, so we add it here explicitly.
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092 xorg_testset_save_CFLAGS="$CFLAGS"
18093
18094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18099 $as_echo_n "(cached) " >&6
18100 else
18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18103 int i;
18104 _ACEOF
18105 if ac_fn_c_try_compile "$LINENO"; then :
18106 xorg_cv_cc_flag_unknown_warning_option=yes
18107 else
18108 xorg_cv_cc_flag_unknown_warning_option=no
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18115 CFLAGS="$xorg_testset_save_CFLAGS"
18116 fi
18117
18118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18121 fi
18122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 int i;
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"; then :
18133 xorg_cv_cc_flag_unused_command_line_argument=yes
18134 else
18135 xorg_cv_cc_flag_unused_command_line_argument=no
18136 fi
18137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 fi
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18142 CFLAGS="$xorg_testset_save_CFLAGS"
18143 fi
18144
18145 found="no"
18146
18147 if test $found = "no" ; then
18148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150 fi
18151
18152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154 fi
18155
18156 CFLAGS="$CFLAGS -Werror=attributes"
18157
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18159 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18160 cacheid=xorg_cv_cc_flag__Werror_attributes
18161 if eval \${$cacheid+:} false; then :
18162 $as_echo_n "(cached) " >&6
18163 else
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166 int i;
18167 int
18168 main ()
18169 {
18170
18171 ;
18172 return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_link "$LINENO"; then :
18176 eval $cacheid=yes
18177 else
18178 eval $cacheid=no
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18182 fi
18183
18184
18185 CFLAGS="$xorg_testset_save_CFLAGS"
18186
18187 eval supported=\$$cacheid
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18189 $as_echo "$supported" >&6; }
18190 if test "$supported" = "yes" ; then
18191 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18192 found="yes"
18193 fi
18194 fi
18195
18196
18197
18198 if test "x$STRICT_COMPILE" = "xyes"; then
18199 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18200 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18201 fi
18202
18203
18204
18205
18206
18207
18208 cat >>confdefs.h <<_ACEOF
18209 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18210 _ACEOF
18211
18212 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18213 if test "x$PVM" = "x"; then
18214 PVM="0"
18215 fi
18216
18217 cat >>confdefs.h <<_ACEOF
18218 #define PACKAGE_VERSION_MINOR $PVM
18219 _ACEOF
18220
18221 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18222 if test "x$PVP" = "x"; then
18223 PVP="0"
18224 fi
18225
18226 cat >>confdefs.h <<_ACEOF
18227 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18228 _ACEOF
18229
18230
18231
18232 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18233 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18234 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18235 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18236
18237
18238
18239
18240 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18241 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18242 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18243 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18244 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18245
18246
18247
18248
18249
18250
18251 if test x$APP_MAN_SUFFIX = x ; then
18252 APP_MAN_SUFFIX=1
18253 fi
18254 if test x$APP_MAN_DIR = x ; then
18255 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18256 fi
18257
18258 if test x$LIB_MAN_SUFFIX = x ; then
18259 LIB_MAN_SUFFIX=3
18260 fi
18261 if test x$LIB_MAN_DIR = x ; then
18262 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18263 fi
18264
18265 if test x$FILE_MAN_SUFFIX = x ; then
18266 case $host_os in
18267 solaris*) FILE_MAN_SUFFIX=4 ;;
18268 *) FILE_MAN_SUFFIX=5 ;;
18269 esac
18270 fi
18271 if test x$FILE_MAN_DIR = x ; then
18272 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18273 fi
18274
18275 if test x$MISC_MAN_SUFFIX = x ; then
18276 case $host_os in
18277 solaris*) MISC_MAN_SUFFIX=5 ;;
18278 *) MISC_MAN_SUFFIX=7 ;;
18279 esac
18280 fi
18281 if test x$MISC_MAN_DIR = x ; then
18282 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18283 fi
18284
18285 if test x$DRIVER_MAN_SUFFIX = x ; then
18286 case $host_os in
18287 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18288 *) DRIVER_MAN_SUFFIX=4 ;;
18289 esac
18290 fi
18291 if test x$DRIVER_MAN_DIR = x ; then
18292 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18293 fi
18294
18295 if test x$ADMIN_MAN_SUFFIX = x ; then
18296 case $host_os in
18297 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18298 *) ADMIN_MAN_SUFFIX=8 ;;
18299 esac
18300 fi
18301 if test x$ADMIN_MAN_DIR = x ; then
18302 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18303 fi
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319 XORG_MAN_PAGE="X Version 11"
18320
18321 MAN_SUBSTS="\
18322 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18323 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18324 -e 's|__xservername__|Xorg|g' \
18325 -e 's|__xconfigfile__|xorg.conf|g' \
18326 -e 's|__projectroot__|\$(prefix)|g' \
18327 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18328 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18329 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18330 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18331 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18332 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18333 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18334
18335
18336
18337 # Check whether --enable-silent-rules was given.
18338 if test "${enable_silent_rules+set}" = set; then :
18339 enableval=$enable_silent_rules;
18340 fi
18341
18342 case $enable_silent_rules in # (((
18343 yes) AM_DEFAULT_VERBOSITY=0;;
18344 no) AM_DEFAULT_VERBOSITY=1;;
18345 *) AM_DEFAULT_VERBOSITY=0;;
18346 esac
18347 am_make=${MAKE-make}
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18349 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18350 if ${am_cv_make_support_nested_variables+:} false; then :
18351 $as_echo_n "(cached) " >&6
18352 else
18353 if $as_echo 'TRUE=$(BAR$(V))
18354 BAR0=false
18355 BAR1=true
18356 V=1
18357 am__doit:
18358 @$(TRUE)
18359 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18360 am_cv_make_support_nested_variables=yes
18361 else
18362 am_cv_make_support_nested_variables=no
18363 fi
18364 fi
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18366 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18367 if test $am_cv_make_support_nested_variables = yes; then
18368 AM_V='$(V)'
18369 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18370 else
18371 AM_V=$AM_DEFAULT_VERBOSITY
18372 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18373 fi
18374 AM_BACKSLASH='\'
18375
18376
18377
18378
18379 # Check whether --enable-docs was given.
18380 if test "${enable_docs+set}" = set; then :
18381 enableval=$enable_docs; build_docs=$enableval
18382 else
18383 build_docs=yes
18384 fi
18385
18386
18387 if test x$build_docs = xyes; then
18388 ENABLE_DOCS_TRUE=
18389 ENABLE_DOCS_FALSE='#'
18390 else
18391 ENABLE_DOCS_TRUE='#'
18392 ENABLE_DOCS_FALSE=
18393 fi
18394
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18396 $as_echo_n "checking whether to build documentation... " >&6; }
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18398 $as_echo "$build_docs" >&6; }
18399
18400
18401
18402 # Check whether --enable-specs was given.
18403 if test "${enable_specs+set}" = set; then :
18404 enableval=$enable_specs; build_specs=$enableval
18405 else
18406 build_specs=yes
18407 fi
18408
18409
18410 if test x$build_specs = xyes; then
18411 ENABLE_SPECS_TRUE=
18412 ENABLE_SPECS_FALSE='#'
18413 else
18414 ENABLE_SPECS_TRUE='#'
18415 ENABLE_SPECS_FALSE=
18416 fi
18417
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18419 $as_echo_n "checking whether to build functional specifications... " >&6; }
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18421 $as_echo "$build_specs" >&6; }
18422
18423
18424
18425
18426
18427 # Check whether --with-xmlto was given.
18428 if test "${with_xmlto+set}" = set; then :
18429 withval=$with_xmlto; use_xmlto=$withval
18430 else
18431 use_xmlto=auto
18432 fi
18433
18434
18435
18436 if test "x$use_xmlto" = x"auto"; then
18437 # Extract the first word of "xmlto", so it can be a program name with args.
18438 set dummy xmlto; ac_word=$2
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18440 $as_echo_n "checking for $ac_word... " >&6; }
18441 if ${ac_cv_path_XMLTO+:} false; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 case $XMLTO in
18445 [\\/]* | ?:[\\/]*)
18446 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18447 ;;
18448 *)
18449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18450 for as_dir in $PATH
18451 do
18452 IFS=$as_save_IFS
18453 test -z "$as_dir" && as_dir=.
18454 for ac_exec_ext in '' $ac_executable_extensions; do
18455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18456 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18458 break 2
18459 fi
18460 done
18461 done
18462 IFS=$as_save_IFS
18463
18464 ;;
18465 esac
18466 fi
18467 XMLTO=$ac_cv_path_XMLTO
18468 if test -n "$XMLTO"; then
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18470 $as_echo "$XMLTO" >&6; }
18471 else
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18473 $as_echo "no" >&6; }
18474 fi
18475
18476
18477 if test "x$XMLTO" = "x"; then
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18479 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18480 have_xmlto=no
18481 else
18482 have_xmlto=yes
18483 fi
18484 elif test "x$use_xmlto" = x"yes" ; then
18485 # Extract the first word of "xmlto", so it can be a program name with args.
18486 set dummy xmlto; ac_word=$2
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18488 $as_echo_n "checking for $ac_word... " >&6; }
18489 if ${ac_cv_path_XMLTO+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 case $XMLTO in
18493 [\\/]* | ?:[\\/]*)
18494 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18495 ;;
18496 *)
18497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498 for as_dir in $PATH
18499 do
18500 IFS=$as_save_IFS
18501 test -z "$as_dir" && as_dir=.
18502 for ac_exec_ext in '' $ac_executable_extensions; do
18503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18506 break 2
18507 fi
18508 done
18509 done
18510 IFS=$as_save_IFS
18511
18512 ;;
18513 esac
18514 fi
18515 XMLTO=$ac_cv_path_XMLTO
18516 if test -n "$XMLTO"; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18518 $as_echo "$XMLTO" >&6; }
18519 else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521 $as_echo "no" >&6; }
18522 fi
18523
18524
18525 if test "x$XMLTO" = "x"; then
18526 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18527 fi
18528 have_xmlto=yes
18529 elif test "x$use_xmlto" = x"no" ; then
18530 if test "x$XMLTO" != "x"; then
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18532 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18533 fi
18534 have_xmlto=no
18535 else
18536 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18537 fi
18538
18539 # Test for a minimum version of xmlto, if provided.
18540 if test "$have_xmlto" = yes; then
18541 # scrape the xmlto version
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18543 $as_echo_n "checking the xmlto version... " >&6; }
18544 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18546 $as_echo "$xmlto_version" >&6; }
18547 as_arg_v1=$xmlto_version
18548 as_arg_v2=0.0.22
18549 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18550 case $? in #(
18551 1) :
18552 if test "x$use_xmlto" = xauto; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18554 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18555 have_xmlto=no
18556 else
18557 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18558 fi ;; #(
18559 0) :
18560 ;; #(
18561 2) :
18562 ;; #(
18563 *) :
18564 ;;
18565 esac
18566 fi
18567
18568 # Test for the ability of xmlto to generate a text target
18569 have_xmlto_text=no
18570 cat > conftest.xml << "EOF"
18571 EOF
18572 if test "$have_xmlto" = yes; then :
18573 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18574 have_xmlto_text=yes
18575 else
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18577 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18578 fi
18579 fi
18580 rm -f conftest.xml
18581 if test $have_xmlto_text = yes; then
18582 HAVE_XMLTO_TEXT_TRUE=
18583 HAVE_XMLTO_TEXT_FALSE='#'
18584 else
18585 HAVE_XMLTO_TEXT_TRUE='#'
18586 HAVE_XMLTO_TEXT_FALSE=
18587 fi
18588
18589 if test "$have_xmlto" = yes; then
18590 HAVE_XMLTO_TRUE=
18591 HAVE_XMLTO_FALSE='#'
18592 else
18593 HAVE_XMLTO_TRUE='#'
18594 HAVE_XMLTO_FALSE=
18595 fi
18596
18597
18598
18599
18600
18601
18602 # Check whether --with-fop was given.
18603 if test "${with_fop+set}" = set; then :
18604 withval=$with_fop; use_fop=$withval
18605 else
18606 use_fop=auto
18607 fi
18608
18609
18610
18611 if test "x$use_fop" = x"auto"; then
18612 # Extract the first word of "fop", so it can be a program name with args.
18613 set dummy fop; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_FOP+:} false; then :
18617 $as_echo_n "(cached) " >&6
18618 else
18619 case $FOP in
18620 [\\/]* | ?:[\\/]*)
18621 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18622 ;;
18623 *)
18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18626 do
18627 IFS=$as_save_IFS
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633 break 2
18634 fi
18635 done
18636 done
18637 IFS=$as_save_IFS
18638
18639 ;;
18640 esac
18641 fi
18642 FOP=$ac_cv_path_FOP
18643 if test -n "$FOP"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18645 $as_echo "$FOP" >&6; }
18646 else
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18649 fi
18650
18651
18652 if test "x$FOP" = "x"; then
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18654 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18655 have_fop=no
18656 else
18657 have_fop=yes
18658 fi
18659 elif test "x$use_fop" = x"yes" ; then
18660 # Extract the first word of "fop", so it can be a program name with args.
18661 set dummy fop; ac_word=$2
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18663 $as_echo_n "checking for $ac_word... " >&6; }
18664 if ${ac_cv_path_FOP+:} false; then :
18665 $as_echo_n "(cached) " >&6
18666 else
18667 case $FOP in
18668 [\\/]* | ?:[\\/]*)
18669 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18670 ;;
18671 *)
18672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18673 for as_dir in $PATH
18674 do
18675 IFS=$as_save_IFS
18676 test -z "$as_dir" && as_dir=.
18677 for ac_exec_ext in '' $ac_executable_extensions; do
18678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18679 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18681 break 2
18682 fi
18683 done
18684 done
18685 IFS=$as_save_IFS
18686
18687 ;;
18688 esac
18689 fi
18690 FOP=$ac_cv_path_FOP
18691 if test -n "$FOP"; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18693 $as_echo "$FOP" >&6; }
18694 else
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697 fi
18698
18699
18700 if test "x$FOP" = "x"; then
18701 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18702 fi
18703 have_fop=yes
18704 elif test "x$use_fop" = x"no" ; then
18705 if test "x$FOP" != "x"; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18707 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18708 fi
18709 have_fop=no
18710 else
18711 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18712 fi
18713
18714 # Test for a minimum version of fop, if provided.
18715
18716 if test "$have_fop" = yes; then
18717 HAVE_FOP_TRUE=
18718 HAVE_FOP_FALSE='#'
18719 else
18720 HAVE_FOP_TRUE='#'
18721 HAVE_FOP_FALSE=
18722 fi
18723
18724
18725
18726
18727 # Preserves the interface, should it be implemented later
18728
18729
18730
18731 # Check whether --with-xsltproc was given.
18732 if test "${with_xsltproc+set}" = set; then :
18733 withval=$with_xsltproc; use_xsltproc=$withval
18734 else
18735 use_xsltproc=auto
18736 fi
18737
18738
18739
18740 if test "x$use_xsltproc" = x"auto"; then
18741 # Extract the first word of "xsltproc", so it can be a program name with args.
18742 set dummy xsltproc; ac_word=$2
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18744 $as_echo_n "checking for $ac_word... " >&6; }
18745 if ${ac_cv_path_XSLTPROC+:} false; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 case $XSLTPROC in
18749 [\\/]* | ?:[\\/]*)
18750 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18751 ;;
18752 *)
18753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18755 do
18756 IFS=$as_save_IFS
18757 test -z "$as_dir" && as_dir=.
18758 for ac_exec_ext in '' $ac_executable_extensions; do
18759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762 break 2
18763 fi
18764 done
18765 done
18766 IFS=$as_save_IFS
18767
18768 ;;
18769 esac
18770 fi
18771 XSLTPROC=$ac_cv_path_XSLTPROC
18772 if test -n "$XSLTPROC"; then
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18774 $as_echo "$XSLTPROC" >&6; }
18775 else
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777 $as_echo "no" >&6; }
18778 fi
18779
18780
18781 if test "x$XSLTPROC" = "x"; then
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18783 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18784 have_xsltproc=no
18785 else
18786 have_xsltproc=yes
18787 fi
18788 elif test "x$use_xsltproc" = x"yes" ; then
18789 # Extract the first word of "xsltproc", so it can be a program name with args.
18790 set dummy xsltproc; ac_word=$2
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18792 $as_echo_n "checking for $ac_word... " >&6; }
18793 if ${ac_cv_path_XSLTPROC+:} false; then :
18794 $as_echo_n "(cached) " >&6
18795 else
18796 case $XSLTPROC in
18797 [\\/]* | ?:[\\/]*)
18798 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18799 ;;
18800 *)
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802 for as_dir in $PATH
18803 do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_exec_ext in '' $ac_executable_extensions; do
18807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 break 2
18811 fi
18812 done
18813 done
18814 IFS=$as_save_IFS
18815
18816 ;;
18817 esac
18818 fi
18819 XSLTPROC=$ac_cv_path_XSLTPROC
18820 if test -n "$XSLTPROC"; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18822 $as_echo "$XSLTPROC" >&6; }
18823 else
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18826 fi
18827
18828
18829 if test "x$XSLTPROC" = "x"; then
18830 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18831 fi
18832 have_xsltproc=yes
18833 elif test "x$use_xsltproc" = x"no" ; then
18834 if test "x$XSLTPROC" != "x"; then
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18836 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18837 fi
18838 have_xsltproc=no
18839 else
18840 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18841 fi
18842
18843 if test "$have_xsltproc" = yes; then
18844 HAVE_XSLTPROC_TRUE=
18845 HAVE_XSLTPROC_FALSE='#'
18846 else
18847 HAVE_XSLTPROC_TRUE='#'
18848 HAVE_XSLTPROC_FALSE=
18849 fi
18850
18851
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18854 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18855 XORG_SGML_PATH=
18856 if test -n "$PKG_CONFIG" && \
18857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18858 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18859 ac_status=$?
18860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18861 test $ac_status = 0; }; then
18862 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18863 else
18864 :
18865
18866 fi
18867
18868 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18869 # the path and the name of the doc stylesheet
18870 if test "x$XORG_SGML_PATH" != "x" ; then
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18872 $as_echo "$XORG_SGML_PATH" >&6; }
18873 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18874 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18875 else
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877 $as_echo "no" >&6; }
18878 fi
18879
18880
18881
18882
18883 if test "x$XSL_STYLESHEET" != "x"; then
18884 HAVE_STYLESHEETS_TRUE=
18885 HAVE_STYLESHEETS_FALSE='#'
18886 else
18887 HAVE_STYLESHEETS_TRUE='#'
18888 HAVE_STYLESHEETS_FALSE=
18889 fi
18890
18891
18892
18893
18894
18895
18896 # Check whether --with-asciidoc was given.
18897 if test "${with_asciidoc+set}" = set; then :
18898 withval=$with_asciidoc; use_asciidoc=$withval
18899 else
18900 use_asciidoc=auto
18901 fi
18902
18903
18904
18905 if test "x$use_asciidoc" = x"auto"; then
18906 # Extract the first word of "asciidoc", so it can be a program name with args.
18907 set dummy asciidoc; ac_word=$2
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18909 $as_echo_n "checking for $ac_word... " >&6; }
18910 if ${ac_cv_path_ASCIIDOC+:} false; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 case $ASCIIDOC in
18914 [\\/]* | ?:[\\/]*)
18915 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18916 ;;
18917 *)
18918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919 for as_dir in $PATH
18920 do
18921 IFS=$as_save_IFS
18922 test -z "$as_dir" && as_dir=.
18923 for ac_exec_ext in '' $ac_executable_extensions; do
18924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18927 break 2
18928 fi
18929 done
18930 done
18931 IFS=$as_save_IFS
18932
18933 ;;
18934 esac
18935 fi
18936 ASCIIDOC=$ac_cv_path_ASCIIDOC
18937 if test -n "$ASCIIDOC"; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18939 $as_echo "$ASCIIDOC" >&6; }
18940 else
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18942 $as_echo "no" >&6; }
18943 fi
18944
18945
18946 if test "x$ASCIIDOC" = "x"; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18948 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18949 have_asciidoc=no
18950 else
18951 have_asciidoc=yes
18952 fi
18953 elif test "x$use_asciidoc" = x"yes" ; then
18954 # Extract the first word of "asciidoc", so it can be a program name with args.
18955 set dummy asciidoc; ac_word=$2
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18957 $as_echo_n "checking for $ac_word... " >&6; }
18958 if ${ac_cv_path_ASCIIDOC+:} false; then :
18959 $as_echo_n "(cached) " >&6
18960 else
18961 case $ASCIIDOC in
18962 [\\/]* | ?:[\\/]*)
18963 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18964 ;;
18965 *)
18966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18967 for as_dir in $PATH
18968 do
18969 IFS=$as_save_IFS
18970 test -z "$as_dir" && as_dir=.
18971 for ac_exec_ext in '' $ac_executable_extensions; do
18972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18973 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18975 break 2
18976 fi
18977 done
18978 done
18979 IFS=$as_save_IFS
18980
18981 ;;
18982 esac
18983 fi
18984 ASCIIDOC=$ac_cv_path_ASCIIDOC
18985 if test -n "$ASCIIDOC"; then
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18987 $as_echo "$ASCIIDOC" >&6; }
18988 else
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990 $as_echo "no" >&6; }
18991 fi
18992
18993
18994 if test "x$ASCIIDOC" = "x"; then
18995 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18996 fi
18997 have_asciidoc=yes
18998 elif test "x$use_asciidoc" = x"no" ; then
18999 if test "x$ASCIIDOC" != "x"; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
19001 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
19002 fi
19003 have_asciidoc=no
19004 else
19005 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
19006 fi
19007 if test "$have_asciidoc" = yes; then
19008 # scrape the asciidoc version
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
19010 $as_echo_n "checking the asciidoc version... " >&6; }
19011 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
19013 $as_echo "$asciidoc_version" >&6; }
19014 as_arg_v1=$asciidoc_version
19015 as_arg_v2=8.4.5
19016 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19017 case $? in #(
19018 1) :
19019 if test "x$use_asciidoc" = xauto; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
19021 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
19022 have_asciidoc=no
19023 else
19024 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
19025 fi ;; #(
19026 0) :
19027 ;; #(
19028 2) :
19029 ;; #(
19030 *) :
19031 ;;
19032 esac
19033 fi
19034 if test "$have_asciidoc" = yes; then
19035 HAVE_ASCIIDOC_TRUE=
19036 HAVE_ASCIIDOC_FALSE='#'
19037 else
19038 HAVE_ASCIIDOC_TRUE='#'
19039 HAVE_ASCIIDOC_FALSE=
19040 fi
19041
19042
19043
19044 # Check whether --enable-malloc0returnsnull was given.
19045 if test "${enable_malloc0returnsnull+set}" = set; then :
19046 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19047 else
19048 MALLOC_ZERO_RETURNS_NULL=auto
19049 fi
19050
19051
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19053 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
19054 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19055 if ${xorg_cv_malloc0_returns_null+:} false; then :
19056 $as_echo_n "(cached) " >&6
19057 else
19058 if test "$cross_compiling" = yes; then :
19059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19061 as_fn_error $? "cannot run test program while cross compiling
19062 See \`config.log' for more details" "$LINENO" 5; }
19063 else
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19066
19067 #include <stdlib.h>
19068
19069 int
19070 main ()
19071 {
19072
19073 char *m0, *r0, *c0, *p;
19074 m0 = malloc(0);
19075 p = malloc(10);
19076 r0 = realloc(p,0);
19077 c0 = calloc(0,10);
19078 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19079
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 if ac_fn_c_try_run "$LINENO"; then :
19085 xorg_cv_malloc0_returns_null=yes
19086 else
19087 xorg_cv_malloc0_returns_null=no
19088 fi
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19090 conftest.$ac_objext conftest.beam conftest.$ac_ext
19091 fi
19092
19093 fi
19094
19095 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19098 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19099
19100 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19101 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19102 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19103 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19104 else
19105 MALLOC_ZERO_CFLAGS=""
19106 XMALLOC_ZERO_CFLAGS=""
19107 XTMALLOC_ZERO_CFLAGS=""
19108 fi
19109
19110
19111
19112
19113
19114
19115 # Obtain compiler/linker options for dependencies
19116
19117 pkg_failed=no
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
19119 $as_echo_n "checking for XI... " >&6; }
19120
19121 if test -n "$XI_CFLAGS"; then
19122 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19123 elif test -n "$PKG_CONFIG"; then
19124 if test -n "$PKG_CONFIG" && \
19125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
19126 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
19127 ac_status=$?
19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }; then
19130 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
19131 test "x$?" != "x0" && pkg_failed=yes
19132 else
19133 pkg_failed=yes
19134 fi
19135 else
19136 pkg_failed=untried
19137 fi
19138 if test -n "$XI_LIBS"; then
19139 pkg_cv_XI_LIBS="$XI_LIBS"
19140 elif test -n "$PKG_CONFIG"; then
19141 if test -n "$PKG_CONFIG" && \
19142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
19143 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
19144 ac_status=$?
19145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146 test $ac_status = 0; }; then
19147 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
19148 test "x$?" != "x0" && pkg_failed=yes
19149 else
19150 pkg_failed=yes
19151 fi
19152 else
19153 pkg_failed=untried
19154 fi
19155
19156
19157
19158 if test $pkg_failed = yes; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160 $as_echo "no" >&6; }
19161
19162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19163 _pkg_short_errors_supported=yes
19164 else
19165 _pkg_short_errors_supported=no
19166 fi
19167 if test $_pkg_short_errors_supported = yes; then
19168 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
19169 else
19170 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
19171 fi
19172 # Put the nasty error message in config.log where it belongs
19173 echo "$XI_PKG_ERRORS" >&5
19174
19175 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met:
19176
19177 $XI_PKG_ERRORS
19178
19179 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19180 installed software in a non-standard prefix.
19181
19182 Alternatively, you may set the environment variables XI_CFLAGS
19183 and XI_LIBS to avoid the need to call pkg-config.
19184 See the pkg-config man page for more details." "$LINENO" 5
19185 elif test $pkg_failed = untried; then
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187 $as_echo "no" >&6; }
19188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19190 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19191 is in your PATH or set the PKG_CONFIG environment variable to the full
19192 path to pkg-config.
19193
19194 Alternatively, you may set the environment variables XI_CFLAGS
19195 and XI_LIBS to avoid the need to call pkg-config.
19196 See the pkg-config man page for more details.
19197
19198 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19199 See \`config.log' for more details" "$LINENO" 5; }
19200 else
19201 XI_CFLAGS=$pkg_cv_XI_CFLAGS
19202 XI_LIBS=$pkg_cv_XI_LIBS
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19204 $as_echo "yes" >&6; }
19205
19206 fi
19207 # CFLAGS only for PointerBarrier typedef
19208
19209 pkg_failed=no
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
19211 $as_echo_n "checking for XFIXES... " >&6; }
19212
19213 if test -n "$XFIXES_CFLAGS"; then
19214 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
19215 elif test -n "$PKG_CONFIG"; then
19216 if test -n "$PKG_CONFIG" && \
19217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19218 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19219 ac_status=$?
19220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19221 test $ac_status = 0; }; then
19222 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
19223 test "x$?" != "x0" && pkg_failed=yes
19224 else
19225 pkg_failed=yes
19226 fi
19227 else
19228 pkg_failed=untried
19229 fi
19230 if test -n "$XFIXES_LIBS"; then
19231 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
19232 elif test -n "$PKG_CONFIG"; then
19233 if test -n "$PKG_CONFIG" && \
19234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19235 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19236 ac_status=$?
19237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19238 test $ac_status = 0; }; then
19239 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
19240 test "x$?" != "x0" && pkg_failed=yes
19241 else
19242 pkg_failed=yes
19243 fi
19244 else
19245 pkg_failed=untried
19246 fi
19247
19248
19249
19250 if test $pkg_failed = yes; then
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252 $as_echo "no" >&6; }
19253
19254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19255 _pkg_short_errors_supported=yes
19256 else
19257 _pkg_short_errors_supported=no
19258 fi
19259 if test $_pkg_short_errors_supported = yes; then
19260 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19261 else
19262 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19263 fi
19264 # Put the nasty error message in config.log where it belongs
19265 echo "$XFIXES_PKG_ERRORS" >&5
19266
19267 as_fn_error $? "Package requirements (xfixes >= 5) were not met:
19268
19269 $XFIXES_PKG_ERRORS
19270
19271 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19272 installed software in a non-standard prefix.
19273
19274 Alternatively, you may set the environment variables XFIXES_CFLAGS
19275 and XFIXES_LIBS to avoid the need to call pkg-config.
19276 See the pkg-config man page for more details." "$LINENO" 5
19277 elif test $pkg_failed = untried; then
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19279 $as_echo "no" >&6; }
19280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19282 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19283 is in your PATH or set the PKG_CONFIG environment variable to the full
19284 path to pkg-config.
19285
19286 Alternatively, you may set the environment variables XFIXES_CFLAGS
19287 and XFIXES_LIBS to avoid the need to call pkg-config.
19288 See the pkg-config man page for more details.
19289
19290 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19291 See \`config.log' for more details" "$LINENO" 5; }
19292 else
19293 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
19294 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19296 $as_echo "yes" >&6; }
19297
19298 fi
19299
19300 # Check for xmlto and asciidoc for man page conversion
19301 # (only needed by people building tarballs)
19302 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
19303 have_doctools=yes
19304 else
19305 have_doctools=no
19306 fi
19307 if test $have_doctools = yes; then
19308 HAVE_DOCTOOLS_TRUE=
19309 HAVE_DOCTOOLS_FALSE='#'
19310 else
19311 HAVE_DOCTOOLS_TRUE='#'
19312 HAVE_DOCTOOLS_FALSE=
19313 fi
19314
19315 if test $have_doctools = no; then
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
19317 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
19318 fi
19319
19320 # Determine if the source for man pages is available
19321 # It may already be present (tarball) or can be generated using doctools
19322 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
19323 test $have_doctools = yes; then
19324 INSTALL_MANPAGES_TRUE=
19325 INSTALL_MANPAGES_FALSE='#'
19326 else
19327 INSTALL_MANPAGES_TRUE='#'
19328 INSTALL_MANPAGES_FALSE=
19329 fi
19330
19331
19332 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
19333
19334 cat >confcache <<\_ACEOF
19335 # This file is a shell script that caches the results of configure
19336 # tests run on this system so they can be shared between configure
19337 # scripts and configure runs, see configure's option --config-cache.
19338 # It is not useful on other systems. If it contains results you don't
19339 # want to keep, you may remove or edit it.
19340 #
19341 # config.status only pays attention to the cache file if you give it
19342 # the --recheck option to rerun configure.
19343 #
19344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19346 # following values.
19347
19348 _ACEOF
19349
19350 # The following way of writing the cache mishandles newlines in values,
19351 # but we know of no workaround that is simple, portable, and efficient.
19352 # So, we kill variables containing newlines.
19353 # Ultrix sh set writes to stderr and can't be redirected directly,
19354 # and sets the high bit in the cache file unless we assign to the vars.
19355 (
19356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19357 eval ac_val=\$$ac_var
19358 case $ac_val in #(
19359 *${as_nl}*)
19360 case $ac_var in #(
19361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19362 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19363 esac
19364 case $ac_var in #(
19365 _ | IFS | as_nl) ;; #(
19366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19367 *) { eval $ac_var=; unset $ac_var;} ;;
19368 esac ;;
19369 esac
19370 done
19371
19372 (set) 2>&1 |
19373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19374 *${as_nl}ac_space=\ *)
19375 # `set' does not quote correctly, so add quotes: double-quote
19376 # substitution turns \\\\ into \\, and sed turns \\ into \.
19377 sed -n \
19378 "s/'/'\\\\''/g;
19379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19380 ;; #(
19381 *)
19382 # `set' quotes correctly as required by POSIX, so do not add quotes.
19383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19384 ;;
19385 esac |
19386 sort
19387 ) |
19388 sed '
19389 /^ac_cv_env_/b end
19390 t clear
19391 :clear
19392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19393 t end
19394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19395 :end' >>confcache
19396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19397 if test -w "$cache_file"; then
19398 if test "x$cache_file" != "x/dev/null"; then
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19400 $as_echo "$as_me: updating cache $cache_file" >&6;}
19401 if test ! -f "$cache_file" || test -h "$cache_file"; then
19402 cat confcache >"$cache_file"
19403 else
19404 case $cache_file in #(
19405 */* | ?:*)
19406 mv -f confcache "$cache_file"$$ &&
19407 mv -f "$cache_file"$$ "$cache_file" ;; #(
19408 *)
19409 mv -f confcache "$cache_file" ;;
19410 esac
19411 fi
19412 fi
19413 else
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19416 fi
19417 fi
19418 rm -f confcache
19419
19420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19421 # Let make expand exec_prefix.
19422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19423
19424 DEFS=-DHAVE_CONFIG_H
19425
19426 ac_libobjs=
19427 ac_ltlibobjs=
19428 U=
19429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19430 # 1. Remove the extension, and $U if already installed.
19431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19434 # will be set to the directory where LIBOBJS objects are built.
19435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19437 done
19438 LIBOBJS=$ac_libobjs
19439
19440 LTLIBOBJS=$ac_ltlibobjs
19441
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19444 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19445 if test -n "$am_sleep_pid"; then
19446 # Hide warnings about reused PIDs.
19447 wait $am_sleep_pid 2>/dev/null
19448 fi
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19450 $as_echo "done" >&6; }
19451 if test -n "$EXEEXT"; then
19452 am__EXEEXT_TRUE=
19453 am__EXEEXT_FALSE='#'
19454 else
19455 am__EXEEXT_TRUE='#'
19456 am__EXEEXT_FALSE=
19457 fi
19458
19459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19460 as_fn_error $? "conditional \"AMDEP\" was never defined.
19461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462 fi
19463 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19464 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19466 fi
19467 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19468 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19470 fi
19471 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19472 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19474 fi
19475 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19476 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19478 fi
19479 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19480 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19482 fi
19483 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19484 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19486 fi
19487 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19488 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19490 fi
19491 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19492 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19494 fi
19495 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19496 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19498 fi
19499 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19500 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19502 fi
19503 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19504 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19506 fi
19507
19508 : "${CONFIG_STATUS=./config.status}"
19509 ac_write_fail=0
19510 ac_clean_files_save=$ac_clean_files
19511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19513 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19514 as_write_fail=0
19515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19516 #! $SHELL
19517 # Generated by $as_me.
19518 # Run this file to recreate the current configuration.
19519 # Compiler output produced by configure, useful for debugging
19520 # configure, is in config.log if it exists.
19521
19522 debug=false
19523 ac_cs_recheck=false
19524 ac_cs_silent=false
19525
19526 SHELL=\${CONFIG_SHELL-$SHELL}
19527 export SHELL
19528 _ASEOF
19529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19530 ## -------------------- ##
19531 ## M4sh Initialization. ##
19532 ## -------------------- ##
19533
19534 # Be more Bourne compatible
19535 DUALCASE=1; export DUALCASE # for MKS sh
19536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19537 emulate sh
19538 NULLCMD=:
19539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19540 # is contrary to our usage. Disable this feature.
19541 alias -g '${1+"$@"}'='"$@"'
19542 setopt NO_GLOB_SUBST
19543 else
19544 case `(set -o) 2>/dev/null` in #(
19545 *posix*) :
19546 set -o posix ;; #(
19547 *) :
19548 ;;
19549 esac
19550 fi
19551
19552
19553 as_nl='
19554 '
19555 export as_nl
19556 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19557 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19560 # Prefer a ksh shell builtin over an external printf program on Solaris,
19561 # but without wasting forks for bash or zsh.
19562 if test -z "$BASH_VERSION$ZSH_VERSION" \
19563 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19564 as_echo='print -r --'
19565 as_echo_n='print -rn --'
19566 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19567 as_echo='printf %s\n'
19568 as_echo_n='printf %s'
19569 else
19570 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19571 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19572 as_echo_n='/usr/ucb/echo -n'
19573 else
19574 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19575 as_echo_n_body='eval
19576 arg=$1;
19577 case $arg in #(
19578 *"$as_nl"*)
19579 expr "X$arg" : "X\\(.*\\)$as_nl";
19580 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19581 esac;
19582 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19583 '
19584 export as_echo_n_body
19585 as_echo_n='sh -c $as_echo_n_body as_echo'
19586 fi
19587 export as_echo_body
19588 as_echo='sh -c $as_echo_body as_echo'
19589 fi
19590
19591 # The user is always right.
19592 if test "${PATH_SEPARATOR+set}" != set; then
19593 PATH_SEPARATOR=:
19594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19595 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19596 PATH_SEPARATOR=';'
19597 }
19598 fi
19599
19600
19601 # IFS
19602 # We need space, tab and new line, in precisely that order. Quoting is
19603 # there to prevent editors from complaining about space-tab.
19604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19605 # splitting by setting IFS to empty value.)
19606 IFS=" "" $as_nl"
19607
19608 # Find who we are. Look in the path if we contain no directory separator.
19609 as_myself=
19610 case $0 in #((
19611 *[\\/]* ) as_myself=$0 ;;
19612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19613 for as_dir in $PATH
19614 do
19615 IFS=$as_save_IFS
19616 test -z "$as_dir" && as_dir=.
19617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19618 done
19619 IFS=$as_save_IFS
19620
19621 ;;
19622 esac
19623 # We did not find ourselves, most probably we were run as `sh COMMAND'
19624 # in which case we are not to be found in the path.
19625 if test "x$as_myself" = x; then
19626 as_myself=$0
19627 fi
19628 if test ! -f "$as_myself"; then
19629 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19630 exit 1
19631 fi
19632
19633 # Unset variables that we do not need and which cause bugs (e.g. in
19634 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19635 # suppresses any "Segmentation fault" message there. '((' could
19636 # trigger a bug in pdksh 5.2.14.
19637 for as_var in BASH_ENV ENV MAIL MAILPATH
19638 do eval test x\${$as_var+set} = xset \
19639 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19640 done
19641 PS1='$ '
19642 PS2='> '
19643 PS4='+ '
19644
19645 # NLS nuisances.
19646 LC_ALL=C
19647 export LC_ALL
19648 LANGUAGE=C
19649 export LANGUAGE
19650
19651 # CDPATH.
19652 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19653
19654
19655 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19656 # ----------------------------------------
19657 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19658 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19659 # script with STATUS, using 1 if that was 0.
19660 as_fn_error ()
19661 {
19662 as_status=$1; test $as_status -eq 0 && as_status=1
19663 if test "$4"; then
19664 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19665 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19666 fi
19667 $as_echo "$as_me: error: $2" >&2
19668 as_fn_exit $as_status
19669 } # as_fn_error
19670
19671
19672 # as_fn_set_status STATUS
19673 # -----------------------
19674 # Set $? to STATUS, without forking.
19675 as_fn_set_status ()
19676 {
19677 return $1
19678 } # as_fn_set_status
19679
19680 # as_fn_exit STATUS
19681 # -----------------
19682 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19683 as_fn_exit ()
19684 {
19685 set +e
19686 as_fn_set_status $1
19687 exit $1
19688 } # as_fn_exit
19689
19690 # as_fn_unset VAR
19691 # ---------------
19692 # Portably unset VAR.
19693 as_fn_unset ()
19694 {
19695 { eval $1=; unset $1;}
19696 }
19697 as_unset=as_fn_unset
19698 # as_fn_append VAR VALUE
19699 # ----------------------
19700 # Append the text in VALUE to the end of the definition contained in VAR. Take
19701 # advantage of any shell optimizations that allow amortized linear growth over
19702 # repeated appends, instead of the typical quadratic growth present in naive
19703 # implementations.
19704 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19705 eval 'as_fn_append ()
19706 {
19707 eval $1+=\$2
19708 }'
19709 else
19710 as_fn_append ()
19711 {
19712 eval $1=\$$1\$2
19713 }
19714 fi # as_fn_append
19715
19716 # as_fn_arith ARG...
19717 # ------------------
19718 # Perform arithmetic evaluation on the ARGs, and store the result in the
19719 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19720 # must be portable across $(()) and expr.
19721 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19722 eval 'as_fn_arith ()
19723 {
19724 as_val=$(( $* ))
19725 }'
19726 else
19727 as_fn_arith ()
19728 {
19729 as_val=`expr "$@" || test $? -eq 1`
19730 }
19731 fi # as_fn_arith
19732
19733
19734 if expr a : '\(a\)' >/dev/null 2>&1 &&
19735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19736 as_expr=expr
19737 else
19738 as_expr=false
19739 fi
19740
19741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19742 as_basename=basename
19743 else
19744 as_basename=false
19745 fi
19746
19747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19748 as_dirname=dirname
19749 else
19750 as_dirname=false
19751 fi
19752
19753 as_me=`$as_basename -- "$0" ||
19754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19755 X"$0" : 'X\(//\)$' \| \
19756 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19757 $as_echo X/"$0" |
19758 sed '/^.*\/\([^/][^/]*\)\/*$/{
19759 s//\1/
19760 q
19761 }
19762 /^X\/\(\/\/\)$/{
19763 s//\1/
19764 q
19765 }
19766 /^X\/\(\/\).*/{
19767 s//\1/
19768 q
19769 }
19770 s/.*/./; q'`
19771
19772 # Avoid depending upon Character Ranges.
19773 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19774 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19775 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19776 as_cr_digits='0123456789'
19777 as_cr_alnum=$as_cr_Letters$as_cr_digits
19778
19779 ECHO_C= ECHO_N= ECHO_T=
19780 case `echo -n x` in #(((((
19781 -n*)
19782 case `echo 'xy\c'` in
19783 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19784 xy) ECHO_C='\c';;
19785 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19786 ECHO_T=' ';;
19787 esac;;
19788 *)
19789 ECHO_N='-n';;
19790 esac
19791
19792 rm -f conf$$ conf$$.exe conf$$.file
19793 if test -d conf$$.dir; then
19794 rm -f conf$$.dir/conf$$.file
19795 else
19796 rm -f conf$$.dir
19797 mkdir conf$$.dir 2>/dev/null
19798 fi
19799 if (echo >conf$$.file) 2>/dev/null; then
19800 if ln -s conf$$.file conf$$ 2>/dev/null; then
19801 as_ln_s='ln -s'
19802 # ... but there are two gotchas:
19803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19805 # In both cases, we have to default to `cp -pR'.
19806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19807 as_ln_s='cp -pR'
19808 elif ln conf$$.file conf$$ 2>/dev/null; then
19809 as_ln_s=ln
19810 else
19811 as_ln_s='cp -pR'
19812 fi
19813 else
19814 as_ln_s='cp -pR'
19815 fi
19816 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19817 rmdir conf$$.dir 2>/dev/null
19818
19819
19820 # as_fn_mkdir_p
19821 # -------------
19822 # Create "$as_dir" as a directory, including parents if necessary.
19823 as_fn_mkdir_p ()
19824 {
19825
19826 case $as_dir in #(
19827 -*) as_dir=./$as_dir;;
19828 esac
19829 test -d "$as_dir" || eval $as_mkdir_p || {
19830 as_dirs=
19831 while :; do
19832 case $as_dir in #(
19833 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19834 *) as_qdir=$as_dir;;
19835 esac
19836 as_dirs="'$as_qdir' $as_dirs"
19837 as_dir=`$as_dirname -- "$as_dir" ||
19838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19839 X"$as_dir" : 'X\(//\)[^/]' \| \
19840 X"$as_dir" : 'X\(//\)$' \| \
19841 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19842 $as_echo X"$as_dir" |
19843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19844 s//\1/
19845 q
19846 }
19847 /^X\(\/\/\)[^/].*/{
19848 s//\1/
19849 q
19850 }
19851 /^X\(\/\/\)$/{
19852 s//\1/
19853 q
19854 }
19855 /^X\(\/\).*/{
19856 s//\1/
19857 q
19858 }
19859 s/.*/./; q'`
19860 test -d "$as_dir" && break
19861 done
19862 test -z "$as_dirs" || eval "mkdir $as_dirs"
19863 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19864
19865
19866 } # as_fn_mkdir_p
19867 if mkdir -p . 2>/dev/null; then
19868 as_mkdir_p='mkdir -p "$as_dir"'
19869 else
19870 test -d ./-p && rmdir ./-p
19871 as_mkdir_p=false
19872 fi
19873
19874
19875 # as_fn_executable_p FILE
19876 # -----------------------
19877 # Test if FILE is an executable regular file.
19878 as_fn_executable_p ()
19879 {
19880 test -f "$1" && test -x "$1"
19881 } # as_fn_executable_p
19882 as_test_x='test -x'
19883 as_executable_p=as_fn_executable_p
19884
19885 # Sed expression to map a string onto a valid CPP name.
19886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19887
19888 # Sed expression to map a string onto a valid variable name.
19889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19890
19891
19892 exec 6>&1
19893 ## ----------------------------------- ##
19894 ## Main body of $CONFIG_STATUS script. ##
19895 ## ----------------------------------- ##
19896 _ASEOF
19897 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19898
19899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19900 # Save the log message, to keep $0 and so on meaningful, and to
19901 # report actual input values of CONFIG_FILES etc. instead of their
19902 # values after options handling.
19903 ac_log="
19904 This file was extended by libXi $as_me 1.7.9, which was
19905 generated by GNU Autoconf 2.69. Invocation command line was
19906
19907 CONFIG_FILES = $CONFIG_FILES
19908 CONFIG_HEADERS = $CONFIG_HEADERS
19909 CONFIG_LINKS = $CONFIG_LINKS
19910 CONFIG_COMMANDS = $CONFIG_COMMANDS
19911 $ $0 $@
19912
19913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19914 "
19915
19916 _ACEOF
19917
19918 case $ac_config_files in *"
19919 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19920 esac
19921
19922 case $ac_config_headers in *"
19923 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19924 esac
19925
19926
19927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19928 # Files that config.status was made for.
19929 config_files="$ac_config_files"
19930 config_headers="$ac_config_headers"
19931 config_commands="$ac_config_commands"
19932
19933 _ACEOF
19934
19935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19936 ac_cs_usage="\
19937 \`$as_me' instantiates files and other configuration actions
19938 from templates according to the current configuration. Unless the files
19939 and actions are specified as TAGs, all are instantiated by default.
19940
19941 Usage: $0 [OPTION]... [TAG]...
19942
19943 -h, --help print this help, then exit
19944 -V, --version print version number and configuration settings, then exit
19945 --config print configuration, then exit
19946 -q, --quiet, --silent
19947 do not print progress messages
19948 -d, --debug don't remove temporary files
19949 --recheck update $as_me by reconfiguring in the same conditions
19950 --file=FILE[:TEMPLATE]
19951 instantiate the configuration file FILE
19952 --header=FILE[:TEMPLATE]
19953 instantiate the configuration header FILE
19954
19955 Configuration files:
19956 $config_files
19957
19958 Configuration headers:
19959 $config_headers
19960
19961 Configuration commands:
19962 $config_commands
19963
19964 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19965
19966 _ACEOF
19967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19969 ac_cs_version="\\
19970 libXi config.status 1.7.9
19971 configured by $0, generated by GNU Autoconf 2.69,
19972 with options \\"\$ac_cs_config\\"
19973
19974 Copyright (C) 2012 Free Software Foundation, Inc.
19975 This config.status script is free software; the Free Software Foundation
19976 gives unlimited permission to copy, distribute and modify it."
19977
19978 ac_pwd='$ac_pwd'
19979 srcdir='$srcdir'
19980 INSTALL='$INSTALL'
19981 MKDIR_P='$MKDIR_P'
19982 AWK='$AWK'
19983 test -n "\$AWK" || AWK=awk
19984 _ACEOF
19985
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987 # The default lists apply if the user does not specify any file.
19988 ac_need_defaults=:
19989 while test $# != 0
19990 do
19991 case $1 in
19992 --*=?*)
19993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19995 ac_shift=:
19996 ;;
19997 --*=)
19998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19999 ac_optarg=
20000 ac_shift=:
20001 ;;
20002 *)
20003 ac_option=$1
20004 ac_optarg=$2
20005 ac_shift=shift
20006 ;;
20007 esac
20008
20009 case $ac_option in
20010 # Handling of the options.
20011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20012 ac_cs_recheck=: ;;
20013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20014 $as_echo "$ac_cs_version"; exit ;;
20015 --config | --confi | --conf | --con | --co | --c )
20016 $as_echo "$ac_cs_config"; exit ;;
20017 --debug | --debu | --deb | --de | --d | -d )
20018 debug=: ;;
20019 --file | --fil | --fi | --f )
20020 $ac_shift
20021 case $ac_optarg in
20022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20023 '') as_fn_error $? "missing file argument" ;;
20024 esac
20025 as_fn_append CONFIG_FILES " '$ac_optarg'"
20026 ac_need_defaults=false;;
20027 --header | --heade | --head | --hea )
20028 $ac_shift
20029 case $ac_optarg in
20030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20031 esac
20032 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20033 ac_need_defaults=false;;
20034 --he | --h)
20035 # Conflict between --help and --header
20036 as_fn_error $? "ambiguous option: \`$1'
20037 Try \`$0 --help' for more information.";;
20038 --help | --hel | -h )
20039 $as_echo "$ac_cs_usage"; exit ;;
20040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20042 ac_cs_silent=: ;;
20043
20044 # This is an error.
20045 -*) as_fn_error $? "unrecognized option: \`$1'
20046 Try \`$0 --help' for more information." ;;
20047
20048 *) as_fn_append ac_config_targets " $1"
20049 ac_need_defaults=false ;;
20050
20051 esac
20052 shift
20053 done
20054
20055 ac_configure_extra_args=
20056
20057 if $ac_cs_silent; then
20058 exec 6>/dev/null
20059 ac_configure_extra_args="$ac_configure_extra_args --silent"
20060 fi
20061
20062 _ACEOF
20063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20064 if \$ac_cs_recheck; then
20065 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20066 shift
20067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20068 CONFIG_SHELL='$SHELL'
20069 export CONFIG_SHELL
20070 exec "\$@"
20071 fi
20072
20073 _ACEOF
20074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20075 exec 5>>config.log
20076 {
20077 echo
20078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20079 ## Running $as_me. ##
20080 _ASBOX
20081 $as_echo "$ac_log"
20082 } >&5
20083
20084 _ACEOF
20085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20086 #
20087 # INIT-COMMANDS
20088 #
20089 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20090
20091
20092 # The HP-UX ksh and POSIX shell print the target directory to stdout
20093 # if CDPATH is set.
20094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20095
20096 sed_quote_subst='$sed_quote_subst'
20097 double_quote_subst='$double_quote_subst'
20098 delay_variable_subst='$delay_variable_subst'
20099 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20100 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20101 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20102 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20103 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20104 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20105 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20106 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20107 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20108 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20109 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20110 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20111 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20112 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20113 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20114 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20115 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20116 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20117 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20118 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20119 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20120 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20121 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20122 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20123 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20124 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20125 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20126 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20127 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20128 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20129 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20130 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20131 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20132 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20133 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20134 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20135 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20136 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20137 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20138 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20139 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20140 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20141 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20142 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20143 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20144 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20145 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20146 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20147 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20148 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20149 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20150 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20151 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20152 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20153 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20154 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20155 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20156 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20157 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"`'
20158 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20159 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20160 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20161 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20162 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20163 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20164 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20165 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20166 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20167 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20168 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20169 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20170 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20171 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20172 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20173 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20174 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20175 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20176 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20177 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20178 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20179 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20180 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20181 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20182 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20183 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20184 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20185 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20186 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20187 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20188 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20189 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20190 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20191 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20192 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20193 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20194 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20195 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20196 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20197 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20198 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20199 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20200 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20201 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20202 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20203 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20204 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20205 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20206 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20207 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20208 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20209 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20210 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20211 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20212 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20213 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20214 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20215 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20216 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20217 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20218 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20219 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20220 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20221 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20222 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20223 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20224 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20225 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20226 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20227 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20228 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20229 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20230 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20231 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20232 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20233 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20234
20235 LTCC='$LTCC'
20236 LTCFLAGS='$LTCFLAGS'
20237 compiler='$compiler_DEFAULT'
20238
20239 # A function that is used when there is no print builtin or printf.
20240 func_fallback_echo ()
20241 {
20242 eval 'cat <<_LTECHO_EOF
20243 \$1
20244 _LTECHO_EOF'
20245 }
20246
20247 # Quote evaled strings.
20248 for var in SHELL \
20249 ECHO \
20250 PATH_SEPARATOR \
20251 SED \
20252 GREP \
20253 EGREP \
20254 FGREP \
20255 LD \
20256 NM \
20257 LN_S \
20258 lt_SP2NL \
20259 lt_NL2SP \
20260 reload_flag \
20261 OBJDUMP \
20262 deplibs_check_method \
20263 file_magic_cmd \
20264 file_magic_glob \
20265 want_nocaseglob \
20266 DLLTOOL \
20267 sharedlib_from_linklib_cmd \
20268 AR \
20269 AR_FLAGS \
20270 archiver_list_spec \
20271 STRIP \
20272 RANLIB \
20273 CC \
20274 CFLAGS \
20275 compiler \
20276 lt_cv_sys_global_symbol_pipe \
20277 lt_cv_sys_global_symbol_to_cdecl \
20278 lt_cv_sys_global_symbol_to_import \
20279 lt_cv_sys_global_symbol_to_c_name_address \
20280 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20281 lt_cv_nm_interface \
20282 nm_file_list_spec \
20283 lt_cv_truncate_bin \
20284 lt_prog_compiler_no_builtin_flag \
20285 lt_prog_compiler_pic \
20286 lt_prog_compiler_wl \
20287 lt_prog_compiler_static \
20288 lt_cv_prog_compiler_c_o \
20289 need_locks \
20290 MANIFEST_TOOL \
20291 DSYMUTIL \
20292 NMEDIT \
20293 LIPO \
20294 OTOOL \
20295 OTOOL64 \
20296 shrext_cmds \
20297 export_dynamic_flag_spec \
20298 whole_archive_flag_spec \
20299 compiler_needs_object \
20300 with_gnu_ld \
20301 allow_undefined_flag \
20302 no_undefined_flag \
20303 hardcode_libdir_flag_spec \
20304 hardcode_libdir_separator \
20305 exclude_expsyms \
20306 include_expsyms \
20307 file_list_spec \
20308 variables_saved_for_relink \
20309 libname_spec \
20310 library_names_spec \
20311 soname_spec \
20312 install_override_mode \
20313 finish_eval \
20314 old_striplib \
20315 striplib; do
20316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20317 *[\\\\\\\`\\"\\\$]*)
20318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20319 ;;
20320 *)
20321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20322 ;;
20323 esac
20324 done
20325
20326 # Double-quote double-evaled strings.
20327 for var in reload_cmds \
20328 old_postinstall_cmds \
20329 old_postuninstall_cmds \
20330 old_archive_cmds \
20331 extract_expsyms_cmds \
20332 old_archive_from_new_cmds \
20333 old_archive_from_expsyms_cmds \
20334 archive_cmds \
20335 archive_expsym_cmds \
20336 module_cmds \
20337 module_expsym_cmds \
20338 export_symbols_cmds \
20339 prelink_cmds \
20340 postlink_cmds \
20341 postinstall_cmds \
20342 postuninstall_cmds \
20343 finish_cmds \
20344 sys_lib_search_path_spec \
20345 configure_time_dlsearch_path \
20346 configure_time_lt_sys_library_path; do
20347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20348 *[\\\\\\\`\\"\\\$]*)
20349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20350 ;;
20351 *)
20352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20353 ;;
20354 esac
20355 done
20356
20357 ac_aux_dir='$ac_aux_dir'
20358
20359 # See if we are running on zsh, and set the options that allow our
20360 # commands through without removal of \ escapes INIT.
20361 if test -n "\${ZSH_VERSION+set}"; then
20362 setopt NO_GLOB_SUBST
20363 fi
20364
20365
20366 PACKAGE='$PACKAGE'
20367 VERSION='$VERSION'
20368 RM='$RM'
20369 ofile='$ofile'
20370
20371
20372
20373
20374 _ACEOF
20375
20376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377
20378 # Handling of arguments.
20379 for ac_config_target in $ac_config_targets
20380 do
20381 case $ac_config_target in
20382 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20384 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20386 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20387 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20388 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20389 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20390
20391 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20392 esac
20393 done
20394
20395
20396 # If the user did not use the arguments to specify the items to instantiate,
20397 # then the envvar interface is used. Set only those that are not.
20398 # We use the long form for the default assignment because of an extremely
20399 # bizarre bug on SunOS 4.1.3.
20400 if $ac_need_defaults; then
20401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20404 fi
20405
20406 # Have a temporary directory for convenience. Make it in the build tree
20407 # simply because there is no reason against having it here, and in addition,
20408 # creating and moving files from /tmp can sometimes cause problems.
20409 # Hook for its removal unless debugging.
20410 # Note that there is a small window in which the directory will not be cleaned:
20411 # after its creation but before its name has been assigned to `$tmp'.
20412 $debug ||
20413 {
20414 tmp= ac_tmp=
20415 trap 'exit_status=$?
20416 : "${ac_tmp:=$tmp}"
20417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20418 ' 0
20419 trap 'as_fn_exit 1' 1 2 13 15
20420 }
20421 # Create a (secure) tmp directory for tmp files.
20422
20423 {
20424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20425 test -d "$tmp"
20426 } ||
20427 {
20428 tmp=./conf$$-$RANDOM
20429 (umask 077 && mkdir "$tmp")
20430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20431 ac_tmp=$tmp
20432
20433 # Set up the scripts for CONFIG_FILES section.
20434 # No need to generate them if there are no CONFIG_FILES.
20435 # This happens for instance with `./config.status config.h'.
20436 if test -n "$CONFIG_FILES"; then
20437
20438
20439 ac_cr=`echo X | tr X '\015'`
20440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20441 # But we know of no other shell where ac_cr would be empty at this
20442 # point, so we can use a bashism as a fallback.
20443 if test "x$ac_cr" = x; then
20444 eval ac_cr=\$\'\\r\'
20445 fi
20446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20448 ac_cs_awk_cr='\\r'
20449 else
20450 ac_cs_awk_cr=$ac_cr
20451 fi
20452
20453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20454 _ACEOF
20455
20456
20457 {
20458 echo "cat >conf$$subs.awk <<_ACEOF" &&
20459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20460 echo "_ACEOF"
20461 } >conf$$subs.sh ||
20462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20464 ac_delim='%!_!# '
20465 for ac_last_try in false false false false false :; do
20466 . ./conf$$subs.sh ||
20467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20468
20469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20470 if test $ac_delim_n = $ac_delim_num; then
20471 break
20472 elif $ac_last_try; then
20473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20474 else
20475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20476 fi
20477 done
20478 rm -f conf$$subs.sh
20479
20480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20482 _ACEOF
20483 sed -n '
20484 h
20485 s/^/S["/; s/!.*/"]=/
20486 p
20487 g
20488 s/^[^!]*!//
20489 :repl
20490 t repl
20491 s/'"$ac_delim"'$//
20492 t delim
20493 :nl
20494 h
20495 s/\(.\{148\}\)..*/\1/
20496 t more1
20497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20498 p
20499 n
20500 b repl
20501 :more1
20502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20503 p
20504 g
20505 s/.\{148\}//
20506 t nl
20507 :delim
20508 h
20509 s/\(.\{148\}\)..*/\1/
20510 t more2
20511 s/["\\]/\\&/g; s/^/"/; s/$/"/
20512 p
20513 b
20514 :more2
20515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20516 p
20517 g
20518 s/.\{148\}//
20519 t delim
20520 ' <conf$$subs.awk | sed '
20521 /^[^""]/{
20522 N
20523 s/\n//
20524 }
20525 ' >>$CONFIG_STATUS || ac_write_fail=1
20526 rm -f conf$$subs.awk
20527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20528 _ACAWK
20529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20530 for (key in S) S_is_set[key] = 1
20531 FS = ""
20532
20533 }
20534 {
20535 line = $ 0
20536 nfields = split(line, field, "@")
20537 substed = 0
20538 len = length(field[1])
20539 for (i = 2; i < nfields; i++) {
20540 key = field[i]
20541 keylen = length(key)
20542 if (S_is_set[key]) {
20543 value = S[key]
20544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20545 len += length(value) + length(field[++i])
20546 substed = 1
20547 } else
20548 len += 1 + keylen
20549 }
20550
20551 print line
20552 }
20553
20554 _ACAWK
20555 _ACEOF
20556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20559 else
20560 cat
20561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20563 _ACEOF
20564
20565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20567 # trailing colons and then remove the whole line if VPATH becomes empty
20568 # (actually we leave an empty line to preserve line numbers).
20569 if test "x$srcdir" = x.; then
20570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20571 h
20572 s///
20573 s/^/:/
20574 s/[ ]*$/:/
20575 s/:\$(srcdir):/:/g
20576 s/:\${srcdir}:/:/g
20577 s/:@srcdir@:/:/g
20578 s/^:*//
20579 s/:*$//
20580 x
20581 s/\(=[ ]*\).*/\1/
20582 G
20583 s/\n//
20584 s/^[^=]*=[ ]*$//
20585 }'
20586 fi
20587
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20589 fi # test -n "$CONFIG_FILES"
20590
20591 # Set up the scripts for CONFIG_HEADERS section.
20592 # No need to generate them if there are no CONFIG_HEADERS.
20593 # This happens for instance with `./config.status Makefile'.
20594 if test -n "$CONFIG_HEADERS"; then
20595 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20596 BEGIN {
20597 _ACEOF
20598
20599 # Transform confdefs.h into an awk script `defines.awk', embedded as
20600 # here-document in config.status, that substitutes the proper values into
20601 # config.h.in to produce config.h.
20602
20603 # Create a delimiter string that does not exist in confdefs.h, to ease
20604 # handling of long lines.
20605 ac_delim='%!_!# '
20606 for ac_last_try in false false :; do
20607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20608 if test -z "$ac_tt"; then
20609 break
20610 elif $ac_last_try; then
20611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20612 else
20613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20614 fi
20615 done
20616
20617 # For the awk script, D is an array of macro values keyed by name,
20618 # likewise P contains macro parameters if any. Preserve backslash
20619 # newline sequences.
20620
20621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20622 sed -n '
20623 s/.\{148\}/&'"$ac_delim"'/g
20624 t rset
20625 :rset
20626 s/^[ ]*#[ ]*define[ ][ ]*/ /
20627 t def
20628 d
20629 :def
20630 s/\\$//
20631 t bsnl
20632 s/["\\]/\\&/g
20633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20634 D["\1"]=" \3"/p
20635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20636 d
20637 :bsnl
20638 s/["\\]/\\&/g
20639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20640 D["\1"]=" \3\\\\\\n"\\/p
20641 t cont
20642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20643 t cont
20644 d
20645 :cont
20646 n
20647 s/.\{148\}/&'"$ac_delim"'/g
20648 t clear
20649 :clear
20650 s/\\$//
20651 t bsnlc
20652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20653 d
20654 :bsnlc
20655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20656 b cont
20657 ' <confdefs.h | sed '
20658 s/'"$ac_delim"'/"\\\
20659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20660
20661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20662 for (key in D) D_is_set[key] = 1
20663 FS = ""
20664 }
20665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20666 line = \$ 0
20667 split(line, arg, " ")
20668 if (arg[1] == "#") {
20669 defundef = arg[2]
20670 mac1 = arg[3]
20671 } else {
20672 defundef = substr(arg[1], 2)
20673 mac1 = arg[2]
20674 }
20675 split(mac1, mac2, "(") #)
20676 macro = mac2[1]
20677 prefix = substr(line, 1, index(line, defundef) - 1)
20678 if (D_is_set[macro]) {
20679 # Preserve the white space surrounding the "#".
20680 print prefix "define", macro P[macro] D[macro]
20681 next
20682 } else {
20683 # Replace #undef with comments. This is necessary, for example,
20684 # in the case of _POSIX_SOURCE, which is predefined and required
20685 # on some systems where configure will not decide to define it.
20686 if (defundef == "undef") {
20687 print "/*", prefix defundef, macro, "*/"
20688 next
20689 }
20690 }
20691 }
20692 { print }
20693 _ACAWK
20694 _ACEOF
20695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20697 fi # test -n "$CONFIG_HEADERS"
20698
20699
20700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20701 shift
20702 for ac_tag
20703 do
20704 case $ac_tag in
20705 :[FHLC]) ac_mode=$ac_tag; continue;;
20706 esac
20707 case $ac_mode$ac_tag in
20708 :[FHL]*:*);;
20709 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20710 :[FH]-) ac_tag=-:-;;
20711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20712 esac
20713 ac_save_IFS=$IFS
20714 IFS=:
20715 set x $ac_tag
20716 IFS=$ac_save_IFS
20717 shift
20718 ac_file=$1
20719 shift
20720
20721 case $ac_mode in
20722 :L) ac_source=$1;;
20723 :[FH])
20724 ac_file_inputs=
20725 for ac_f
20726 do
20727 case $ac_f in
20728 -) ac_f="$ac_tmp/stdin";;
20729 *) # Look for the file first in the build tree, then in the source tree
20730 # (if the path is not absolute). The absolute path cannot be DOS-style,
20731 # because $ac_f cannot contain `:'.
20732 test -f "$ac_f" ||
20733 case $ac_f in
20734 [\\/$]*) false;;
20735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20736 esac ||
20737 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20738 esac
20739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20740 as_fn_append ac_file_inputs " '$ac_f'"
20741 done
20742
20743 # Let's still pretend it is `configure' which instantiates (i.e., don't
20744 # use $as_me), people would be surprised to read:
20745 # /* config.h. Generated by config.status. */
20746 configure_input='Generated from '`
20747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20748 `' by configure.'
20749 if test x"$ac_file" != x-; then
20750 configure_input="$ac_file. $configure_input"
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20752 $as_echo "$as_me: creating $ac_file" >&6;}
20753 fi
20754 # Neutralize special characters interpreted by sed in replacement strings.
20755 case $configure_input in #(
20756 *\&* | *\|* | *\\* )
20757 ac_sed_conf_input=`$as_echo "$configure_input" |
20758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20759 *) ac_sed_conf_input=$configure_input;;
20760 esac
20761
20762 case $ac_tag in
20763 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20765 esac
20766 ;;
20767 esac
20768
20769 ac_dir=`$as_dirname -- "$ac_file" ||
20770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 X"$ac_file" : 'X\(//\)[^/]' \| \
20772 X"$ac_file" : 'X\(//\)$' \| \
20773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20774 $as_echo X"$ac_file" |
20775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20776 s//\1/
20777 q
20778 }
20779 /^X\(\/\/\)[^/].*/{
20780 s//\1/
20781 q
20782 }
20783 /^X\(\/\/\)$/{
20784 s//\1/
20785 q
20786 }
20787 /^X\(\/\).*/{
20788 s//\1/
20789 q
20790 }
20791 s/.*/./; q'`
20792 as_dir="$ac_dir"; as_fn_mkdir_p
20793 ac_builddir=.
20794
20795 case "$ac_dir" in
20796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20797 *)
20798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20799 # A ".." for each directory in $ac_dir_suffix.
20800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20801 case $ac_top_builddir_sub in
20802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20804 esac ;;
20805 esac
20806 ac_abs_top_builddir=$ac_pwd
20807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20808 # for backward compatibility:
20809 ac_top_builddir=$ac_top_build_prefix
20810
20811 case $srcdir in
20812 .) # We are building in place.
20813 ac_srcdir=.
20814 ac_top_srcdir=$ac_top_builddir_sub
20815 ac_abs_top_srcdir=$ac_pwd ;;
20816 [\\/]* | ?:[\\/]* ) # Absolute name.
20817 ac_srcdir=$srcdir$ac_dir_suffix;
20818 ac_top_srcdir=$srcdir
20819 ac_abs_top_srcdir=$srcdir ;;
20820 *) # Relative name.
20821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20822 ac_top_srcdir=$ac_top_build_prefix$srcdir
20823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20824 esac
20825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20826
20827
20828 case $ac_mode in
20829 :F)
20830 #
20831 # CONFIG_FILE
20832 #
20833
20834 case $INSTALL in
20835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20837 esac
20838 ac_MKDIR_P=$MKDIR_P
20839 case $MKDIR_P in
20840 [\\/$]* | ?:[\\/]* ) ;;
20841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20842 esac
20843 _ACEOF
20844
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846 # If the template does not know about datarootdir, expand it.
20847 # FIXME: This hack should be removed a few years after 2.60.
20848 ac_datarootdir_hack=; ac_datarootdir_seen=
20849 ac_sed_dataroot='
20850 /datarootdir/ {
20851 p
20852 q
20853 }
20854 /@datadir@/p
20855 /@docdir@/p
20856 /@infodir@/p
20857 /@localedir@/p
20858 /@mandir@/p'
20859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20860 *datarootdir*) ac_datarootdir_seen=yes;;
20861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20864 _ACEOF
20865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866 ac_datarootdir_hack='
20867 s&@datadir@&$datadir&g
20868 s&@docdir@&$docdir&g
20869 s&@infodir@&$infodir&g
20870 s&@localedir@&$localedir&g
20871 s&@mandir@&$mandir&g
20872 s&\\\${datarootdir}&$datarootdir&g' ;;
20873 esac
20874 _ACEOF
20875
20876 # Neutralize VPATH when `$srcdir' = `.'.
20877 # Shell code in configure.ac might set extrasub.
20878 # FIXME: do we really want to maintain this feature?
20879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20880 ac_sed_extra="$ac_vpsub
20881 $extrasub
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20884 :t
20885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20886 s|@configure_input@|$ac_sed_conf_input|;t t
20887 s&@top_builddir@&$ac_top_builddir_sub&;t t
20888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20889 s&@srcdir@&$ac_srcdir&;t t
20890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20891 s&@top_srcdir@&$ac_top_srcdir&;t t
20892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20893 s&@builddir@&$ac_builddir&;t t
20894 s&@abs_builddir@&$ac_abs_builddir&;t t
20895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20896 s&@INSTALL@&$ac_INSTALL&;t t
20897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20898 $ac_datarootdir_hack
20899 "
20900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20902
20903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20906 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20908 which seems to be undefined. Please make sure it is defined" >&5
20909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20910 which seems to be undefined. Please make sure it is defined" >&2;}
20911
20912 rm -f "$ac_tmp/stdin"
20913 case $ac_file in
20914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20916 esac \
20917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20918 ;;
20919 :H)
20920 #
20921 # CONFIG_HEADER
20922 #
20923 if test x"$ac_file" != x-; then
20924 {
20925 $as_echo "/* $configure_input */" \
20926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20927 } >"$ac_tmp/config.h" \
20928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20932 else
20933 rm -f "$ac_file"
20934 mv "$ac_tmp/config.h" "$ac_file" \
20935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936 fi
20937 else
20938 $as_echo "/* $configure_input */" \
20939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20940 || as_fn_error $? "could not create -" "$LINENO" 5
20941 fi
20942 # Compute "$ac_file"'s index in $config_headers.
20943 _am_arg="$ac_file"
20944 _am_stamp_count=1
20945 for _am_header in $config_headers :; do
20946 case $_am_header in
20947 $_am_arg | $_am_arg:* )
20948 break ;;
20949 * )
20950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20951 esac
20952 done
20953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955 X"$_am_arg" : 'X\(//\)[^/]' \| \
20956 X"$_am_arg" : 'X\(//\)$' \| \
20957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20958 $as_echo X"$_am_arg" |
20959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960 s//\1/
20961 q
20962 }
20963 /^X\(\/\/\)[^/].*/{
20964 s//\1/
20965 q
20966 }
20967 /^X\(\/\/\)$/{
20968 s//\1/
20969 q
20970 }
20971 /^X\(\/\).*/{
20972 s//\1/
20973 q
20974 }
20975 s/.*/./; q'`/stamp-h$_am_stamp_count
20976 ;;
20977
20978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20979 $as_echo "$as_me: executing $ac_file commands" >&6;}
20980 ;;
20981 esac
20982
20983
20984 case $ac_file$ac_mode in
20985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20986 # Older Autoconf quotes --file arguments for eval, but not when files
20987 # are listed without --file. Let's play safe and only enable the eval
20988 # if we detect the quoting.
20989 case $CONFIG_FILES in
20990 *\'*) eval set x "$CONFIG_FILES" ;;
20991 *) set x $CONFIG_FILES ;;
20992 esac
20993 shift
20994 for mf
20995 do
20996 # Strip MF so we end up with the name of the file.
20997 mf=`echo "$mf" | sed -e 's/:.*$//'`
20998 # Check whether this is an Automake generated Makefile or not.
20999 # We used to match only the files named 'Makefile.in', but
21000 # some people rename them; so instead we look at the file content.
21001 # Grep'ing the first line is not enough: some people post-process
21002 # each Makefile.in and add a new line on top of each file to say so.
21003 # Grep'ing the whole file is not good either: AIX grep has a line
21004 # limit of 2048, but all sed's we know have understand at least 4000.
21005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21006 dirpart=`$as_dirname -- "$mf" ||
21007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$mf" : 'X\(//\)[^/]' \| \
21009 X"$mf" : 'X\(//\)$' \| \
21010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21011 $as_echo X"$mf" |
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013 s//\1/
21014 q
21015 }
21016 /^X\(\/\/\)[^/].*/{
21017 s//\1/
21018 q
21019 }
21020 /^X\(\/\/\)$/{
21021 s//\1/
21022 q
21023 }
21024 /^X\(\/\).*/{
21025 s//\1/
21026 q
21027 }
21028 s/.*/./; q'`
21029 else
21030 continue
21031 fi
21032 # Extract the definition of DEPDIR, am__include, and am__quote
21033 # from the Makefile without running 'make'.
21034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035 test -z "$DEPDIR" && continue
21036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037 test -z "$am__include" && continue
21038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039 # Find all dependency output files, they are included files with
21040 # $(DEPDIR) in their names. We invoke sed twice because it is the
21041 # simplest approach to changing $(DEPDIR) to its actual value in the
21042 # expansion.
21043 for file in `sed -n "
21044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21046 # Make sure the directory exists.
21047 test -f "$dirpart/$file" && continue
21048 fdir=`$as_dirname -- "$file" ||
21049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050 X"$file" : 'X\(//\)[^/]' \| \
21051 X"$file" : 'X\(//\)$' \| \
21052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21053 $as_echo X"$file" |
21054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055 s//\1/
21056 q
21057 }
21058 /^X\(\/\/\)[^/].*/{
21059 s//\1/
21060 q
21061 }
21062 /^X\(\/\/\)$/{
21063 s//\1/
21064 q
21065 }
21066 /^X\(\/\).*/{
21067 s//\1/
21068 q
21069 }
21070 s/.*/./; q'`
21071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21072 # echo "creating $dirpart/$file"
21073 echo '# dummy' > "$dirpart/$file"
21074 done
21075 done
21076 }
21077 ;;
21078 "libtool":C)
21079
21080 # See if we are running on zsh, and set the options that allow our
21081 # commands through without removal of \ escapes.
21082 if test -n "${ZSH_VERSION+set}"; then
21083 setopt NO_GLOB_SUBST
21084 fi
21085
21086 cfgfile=${ofile}T
21087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21088 $RM "$cfgfile"
21089
21090 cat <<_LT_EOF >> "$cfgfile"
21091 #! $SHELL
21092 # Generated automatically by $as_me ($PACKAGE) $VERSION
21093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21095
21096 # Provide generalized library-building support services.
21097 # Written by Gordon Matzigkeit, 1996
21098
21099 # Copyright (C) 2014 Free Software Foundation, Inc.
21100 # This is free software; see the source for copying conditions. There is NO
21101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21102
21103 # GNU Libtool is free software; you can redistribute it and/or modify
21104 # it under the terms of the GNU General Public License as published by
21105 # the Free Software Foundation; either version 2 of of the License, or
21106 # (at your option) any later version.
21107 #
21108 # As a special exception to the GNU General Public License, if you
21109 # distribute this file as part of a program or library that is built
21110 # using GNU Libtool, you may include this file under the same
21111 # distribution terms that you use for the rest of that program.
21112 #
21113 # GNU Libtool is distributed in the hope that it will be useful, but
21114 # WITHOUT ANY WARRANTY; without even the implied warranty of
21115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21116 # GNU General Public License for more details.
21117 #
21118 # You should have received a copy of the GNU General Public License
21119 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21120
21121
21122 # The names of the tagged configurations supported by this script.
21123 available_tags=''
21124
21125 # Configured defaults for sys_lib_dlsearch_path munging.
21126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21127
21128 # ### BEGIN LIBTOOL CONFIG
21129
21130 # Which release of libtool.m4 was used?
21131 macro_version=$macro_version
21132 macro_revision=$macro_revision
21133
21134 # Whether or not to build shared libraries.
21135 build_libtool_libs=$enable_shared
21136
21137 # Whether or not to build static libraries.
21138 build_old_libs=$enable_static
21139
21140 # What type of objects to build.
21141 pic_mode=$pic_mode
21142
21143 # Whether or not to optimize for fast installation.
21144 fast_install=$enable_fast_install
21145
21146 # Shared archive member basename,for filename based shared library versioning on AIX.
21147 shared_archive_member_spec=$shared_archive_member_spec
21148
21149 # Shell to use when invoking shell scripts.
21150 SHELL=$lt_SHELL
21151
21152 # An echo program that protects backslashes.
21153 ECHO=$lt_ECHO
21154
21155 # The PATH separator for the build system.
21156 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21157
21158 # The host system.
21159 host_alias=$host_alias
21160 host=$host
21161 host_os=$host_os
21162
21163 # The build system.
21164 build_alias=$build_alias
21165 build=$build
21166 build_os=$build_os
21167
21168 # A sed program that does not truncate output.
21169 SED=$lt_SED
21170
21171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21172 Xsed="\$SED -e 1s/^X//"
21173
21174 # A grep program that handles long lines.
21175 GREP=$lt_GREP
21176
21177 # An ERE matcher.
21178 EGREP=$lt_EGREP
21179
21180 # A literal string matcher.
21181 FGREP=$lt_FGREP
21182
21183 # A BSD- or MS-compatible name lister.
21184 NM=$lt_NM
21185
21186 # Whether we need soft or hard links.
21187 LN_S=$lt_LN_S
21188
21189 # What is the maximum length of a command?
21190 max_cmd_len=$max_cmd_len
21191
21192 # Object file suffix (normally "o").
21193 objext=$ac_objext
21194
21195 # Executable file suffix (normally "").
21196 exeext=$exeext
21197
21198 # whether the shell understands "unset".
21199 lt_unset=$lt_unset
21200
21201 # turn spaces into newlines.
21202 SP2NL=$lt_lt_SP2NL
21203
21204 # turn newlines into spaces.
21205 NL2SP=$lt_lt_NL2SP
21206
21207 # convert \$build file names to \$host format.
21208 to_host_file_cmd=$lt_cv_to_host_file_cmd
21209
21210 # convert \$build files to toolchain format.
21211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21212
21213 # An object symbol dumper.
21214 OBJDUMP=$lt_OBJDUMP
21215
21216 # Method to check whether dependent libraries are shared objects.
21217 deplibs_check_method=$lt_deplibs_check_method
21218
21219 # Command to use when deplibs_check_method = "file_magic".
21220 file_magic_cmd=$lt_file_magic_cmd
21221
21222 # How to find potential files when deplibs_check_method = "file_magic".
21223 file_magic_glob=$lt_file_magic_glob
21224
21225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21226 want_nocaseglob=$lt_want_nocaseglob
21227
21228 # DLL creation program.
21229 DLLTOOL=$lt_DLLTOOL
21230
21231 # Command to associate shared and link libraries.
21232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21233
21234 # The archiver.
21235 AR=$lt_AR
21236
21237 # Flags to create an archive.
21238 AR_FLAGS=$lt_AR_FLAGS
21239
21240 # How to feed a file listing to the archiver.
21241 archiver_list_spec=$lt_archiver_list_spec
21242
21243 # A symbol stripping program.
21244 STRIP=$lt_STRIP
21245
21246 # Commands used to install an old-style archive.
21247 RANLIB=$lt_RANLIB
21248 old_postinstall_cmds=$lt_old_postinstall_cmds
21249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21250
21251 # Whether to use a lock for old archive extraction.
21252 lock_old_archive_extraction=$lock_old_archive_extraction
21253
21254 # A C compiler.
21255 LTCC=$lt_CC
21256
21257 # LTCC compiler flags.
21258 LTCFLAGS=$lt_CFLAGS
21259
21260 # Take the output of nm and produce a listing of raw symbols and C names.
21261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21262
21263 # Transform the output of nm in a proper C declaration.
21264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21265
21266 # Transform the output of nm into a list of symbols to manually relocate.
21267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21268
21269 # Transform the output of nm in a C name address pair.
21270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21271
21272 # Transform the output of nm in a C name address pair when lib prefix is needed.
21273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21274
21275 # The name lister interface.
21276 nm_interface=$lt_lt_cv_nm_interface
21277
21278 # Specify filename containing input files for \$NM.
21279 nm_file_list_spec=$lt_nm_file_list_spec
21280
21281 # The root where to search for dependent libraries,and where our libraries should be installed.
21282 lt_sysroot=$lt_sysroot
21283
21284 # Command to truncate a binary pipe.
21285 lt_truncate_bin=$lt_lt_cv_truncate_bin
21286
21287 # The name of the directory that contains temporary libtool files.
21288 objdir=$objdir
21289
21290 # Used to examine libraries when file_magic_cmd begins with "file".
21291 MAGIC_CMD=$MAGIC_CMD
21292
21293 # Must we lock files when doing compilation?
21294 need_locks=$lt_need_locks
21295
21296 # Manifest tool.
21297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21298
21299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21300 DSYMUTIL=$lt_DSYMUTIL
21301
21302 # Tool to change global to local symbols on Mac OS X.
21303 NMEDIT=$lt_NMEDIT
21304
21305 # Tool to manipulate fat objects and archives on Mac OS X.
21306 LIPO=$lt_LIPO
21307
21308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21309 OTOOL=$lt_OTOOL
21310
21311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21312 OTOOL64=$lt_OTOOL64
21313
21314 # Old archive suffix (normally "a").
21315 libext=$libext
21316
21317 # Shared library suffix (normally ".so").
21318 shrext_cmds=$lt_shrext_cmds
21319
21320 # The commands to extract the exported symbol list from a shared archive.
21321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21322
21323 # Variables whose values should be saved in libtool wrapper scripts and
21324 # restored at link time.
21325 variables_saved_for_relink=$lt_variables_saved_for_relink
21326
21327 # Do we need the "lib" prefix for modules?
21328 need_lib_prefix=$need_lib_prefix
21329
21330 # Do we need a version for libraries?
21331 need_version=$need_version
21332
21333 # Library versioning type.
21334 version_type=$version_type
21335
21336 # Shared library runtime path variable.
21337 runpath_var=$runpath_var
21338
21339 # Shared library path variable.
21340 shlibpath_var=$shlibpath_var
21341
21342 # Is shlibpath searched before the hard-coded library search path?
21343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21344
21345 # Format of library name prefix.
21346 libname_spec=$lt_libname_spec
21347
21348 # List of archive names. First name is the real one, the rest are links.
21349 # The last name is the one that the linker finds with -lNAME
21350 library_names_spec=$lt_library_names_spec
21351
21352 # The coded name of the library, if different from the real name.
21353 soname_spec=$lt_soname_spec
21354
21355 # Permission mode override for installation of shared libraries.
21356 install_override_mode=$lt_install_override_mode
21357
21358 # Command to use after installation of a shared archive.
21359 postinstall_cmds=$lt_postinstall_cmds
21360
21361 # Command to use after uninstallation of a shared archive.
21362 postuninstall_cmds=$lt_postuninstall_cmds
21363
21364 # Commands used to finish a libtool library installation in a directory.
21365 finish_cmds=$lt_finish_cmds
21366
21367 # As "finish_cmds", except a single script fragment to be evaled but
21368 # not shown.
21369 finish_eval=$lt_finish_eval
21370
21371 # Whether we should hardcode library paths into libraries.
21372 hardcode_into_libs=$hardcode_into_libs
21373
21374 # Compile-time system search path for libraries.
21375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21376
21377 # Detected run-time system search path for libraries.
21378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21379
21380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21382
21383 # Whether dlopen is supported.
21384 dlopen_support=$enable_dlopen
21385
21386 # Whether dlopen of programs is supported.
21387 dlopen_self=$enable_dlopen_self
21388
21389 # Whether dlopen of statically linked programs is supported.
21390 dlopen_self_static=$enable_dlopen_self_static
21391
21392 # Commands to strip libraries.
21393 old_striplib=$lt_old_striplib
21394 striplib=$lt_striplib
21395
21396
21397 # The linker used to build libraries.
21398 LD=$lt_LD
21399
21400 # How to create reloadable object files.
21401 reload_flag=$lt_reload_flag
21402 reload_cmds=$lt_reload_cmds
21403
21404 # Commands used to build an old-style archive.
21405 old_archive_cmds=$lt_old_archive_cmds
21406
21407 # A language specific compiler.
21408 CC=$lt_compiler
21409
21410 # Is the compiler the GNU compiler?
21411 with_gcc=$GCC
21412
21413 # Compiler flag to turn off builtin functions.
21414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21415
21416 # Additional compiler flags for building library objects.
21417 pic_flag=$lt_lt_prog_compiler_pic
21418
21419 # How to pass a linker flag through the compiler.
21420 wl=$lt_lt_prog_compiler_wl
21421
21422 # Compiler flag to prevent dynamic linking.
21423 link_static_flag=$lt_lt_prog_compiler_static
21424
21425 # Does compiler simultaneously support -c and -o options?
21426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21427
21428 # Whether or not to add -lc for building shared libraries.
21429 build_libtool_need_lc=$archive_cmds_need_lc
21430
21431 # Whether or not to disallow shared libs when runtime libs are static.
21432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21433
21434 # Compiler flag to allow reflexive dlopens.
21435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21436
21437 # Compiler flag to generate shared objects directly from archives.
21438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21439
21440 # Whether the compiler copes with passing no objects directly.
21441 compiler_needs_object=$lt_compiler_needs_object
21442
21443 # Create an old-style archive from a shared archive.
21444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21445
21446 # Create a temporary old-style archive to link instead of a shared archive.
21447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21448
21449 # Commands used to build a shared archive.
21450 archive_cmds=$lt_archive_cmds
21451 archive_expsym_cmds=$lt_archive_expsym_cmds
21452
21453 # Commands used to build a loadable module if different from building
21454 # a shared archive.
21455 module_cmds=$lt_module_cmds
21456 module_expsym_cmds=$lt_module_expsym_cmds
21457
21458 # Whether we are building with GNU ld or not.
21459 with_gnu_ld=$lt_with_gnu_ld
21460
21461 # Flag that allows shared libraries with undefined symbols to be built.
21462 allow_undefined_flag=$lt_allow_undefined_flag
21463
21464 # Flag that enforces no undefined symbols.
21465 no_undefined_flag=$lt_no_undefined_flag
21466
21467 # Flag to hardcode \$libdir into a binary during linking.
21468 # This must work even if \$libdir does not exist
21469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21470
21471 # Whether we need a single "-rpath" flag with a separated argument.
21472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21473
21474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21475 # DIR into the resulting binary.
21476 hardcode_direct=$hardcode_direct
21477
21478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21479 # DIR into the resulting binary and the resulting library dependency is
21480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21481 # library is relocated.
21482 hardcode_direct_absolute=$hardcode_direct_absolute
21483
21484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21485 # into the resulting binary.
21486 hardcode_minus_L=$hardcode_minus_L
21487
21488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21489 # into the resulting binary.
21490 hardcode_shlibpath_var=$hardcode_shlibpath_var
21491
21492 # Set to "yes" if building a shared library automatically hardcodes DIR
21493 # into the library and all subsequent libraries and executables linked
21494 # against it.
21495 hardcode_automatic=$hardcode_automatic
21496
21497 # Set to yes if linker adds runtime paths of dependent libraries
21498 # to runtime path list.
21499 inherit_rpath=$inherit_rpath
21500
21501 # Whether libtool must link a program against all its dependency libraries.
21502 link_all_deplibs=$link_all_deplibs
21503
21504 # Set to "yes" if exported symbols are required.
21505 always_export_symbols=$always_export_symbols
21506
21507 # The commands to list exported symbols.
21508 export_symbols_cmds=$lt_export_symbols_cmds
21509
21510 # Symbols that should not be listed in the preloaded symbols.
21511 exclude_expsyms=$lt_exclude_expsyms
21512
21513 # Symbols that must always be exported.
21514 include_expsyms=$lt_include_expsyms
21515
21516 # Commands necessary for linking programs (against libraries) with templates.
21517 prelink_cmds=$lt_prelink_cmds
21518
21519 # Commands necessary for finishing linking programs.
21520 postlink_cmds=$lt_postlink_cmds
21521
21522 # Specify filename containing input files.
21523 file_list_spec=$lt_file_list_spec
21524
21525 # How to hardcode a shared library path into an executable.
21526 hardcode_action=$hardcode_action
21527
21528 # ### END LIBTOOL CONFIG
21529
21530 _LT_EOF
21531
21532 cat <<'_LT_EOF' >> "$cfgfile"
21533
21534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21535
21536 # func_munge_path_list VARIABLE PATH
21537 # -----------------------------------
21538 # VARIABLE is name of variable containing _space_ separated list of
21539 # directories to be munged by the contents of PATH, which is string
21540 # having a format:
21541 # "DIR[:DIR]:"
21542 # string "DIR[ DIR]" will be prepended to VARIABLE
21543 # ":DIR[:DIR]"
21544 # string "DIR[ DIR]" will be appended to VARIABLE
21545 # "DIRP[:DIRP]::[DIRA:]DIRA"
21546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21547 # "DIRA[ DIRA]" will be appended to VARIABLE
21548 # "DIR[:DIR]"
21549 # VARIABLE will be replaced by "DIR[ DIR]"
21550 func_munge_path_list ()
21551 {
21552 case x$2 in
21553 x)
21554 ;;
21555 *:)
21556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21557 ;;
21558 x:*)
21559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21560 ;;
21561 *::*)
21562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21564 ;;
21565 *)
21566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21567 ;;
21568 esac
21569 }
21570
21571
21572 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21573 func_cc_basename ()
21574 {
21575 for cc_temp in $*""; do
21576 case $cc_temp in
21577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21579 \-*) ;;
21580 *) break;;
21581 esac
21582 done
21583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21584 }
21585
21586
21587 # ### END FUNCTIONS SHARED WITH CONFIGURE
21588
21589 _LT_EOF
21590
21591 case $host_os in
21592 aix3*)
21593 cat <<\_LT_EOF >> "$cfgfile"
21594 # AIX sometimes has problems with the GCC collect2 program. For some
21595 # reason, if we set the COLLECT_NAMES environment variable, the problems
21596 # vanish in a puff of smoke.
21597 if test set != "${COLLECT_NAMES+set}"; then
21598 COLLECT_NAMES=
21599 export COLLECT_NAMES
21600 fi
21601 _LT_EOF
21602 ;;
21603 esac
21604
21605
21606 ltmain=$ac_aux_dir/ltmain.sh
21607
21608
21609 # We use sed instead of cat because bash on DJGPP gets confused if
21610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21611 # text mode, it properly converts lines to CR/LF. This bash problem
21612 # is reportedly fixed, but why not run on old versions too?
21613 sed '$q' "$ltmain" >> "$cfgfile" \
21614 || (rm -f "$cfgfile"; exit 1)
21615
21616 mv -f "$cfgfile" "$ofile" ||
21617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21618 chmod +x "$ofile"
21619
21620 ;;
21621
21622 esac
21623 done # for ac_tag
21624
21625
21626 as_fn_exit 0
21627 _ACEOF
21628 ac_clean_files=$ac_clean_files_save
21629
21630 test $ac_write_fail = 0 ||
21631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21632
21633
21634 # configure is writing to config.log, and then calls config.status.
21635 # config.status does its own redirection, appending to config.log.
21636 # Unfortunately, on DOS this fails, as config.log is still kept open
21637 # by configure, so config.status won't be able to write to it; its
21638 # output is simply discarded. So we exec the FD to /dev/null,
21639 # effectively closing config.log, so it can be properly (re)opened and
21640 # appended to by config.status. When coming back to configure, we
21641 # need to make the FD available again.
21642 if test "$no_create" != yes; then
21643 ac_cs_success=:
21644 ac_config_status_args=
21645 test "$silent" = yes &&
21646 ac_config_status_args="$ac_config_status_args --quiet"
21647 exec 5>/dev/null
21648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21649 exec 5>>config.log
21650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21651 # would make configure fail if this is the last instruction.
21652 $ac_cs_success || as_fn_exit 1
21653 fi
21654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21657 fi
21658
21659