configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libSM 1.2.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550 as_awk_strverscmp='
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
553 END {
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565 if (d1 ~ /^0/) {
566 if (d2 ~ /^0/) {
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
571 }
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
575 d1 = -len1
576 d2 = -len2
577 } else {
578 # Otherwise, compare as strings.
579 d1 = "x" d1
580 d2 = "x" d2
581 }
582 } else {
583 # A fraction is less than an integer.
584 exit 1
585 }
586 } else {
587 if (d2 ~ /^0/) {
588 # An integer is greater than a fraction.
589 exit 2
590 } else {
591 # Compare two integers.
592 d1 += 0
593 d2 += 0
594 }
595 }
596 } else {
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600 }
601 if (d1 < d2) exit 1
602 if (d1 > d2) exit 2
603 }
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
608 }
609 '
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libSM'
633 PACKAGE_TARNAME='libSM'
634 PACKAGE_VERSION='1.2.2'
635 PACKAGE_STRING='libSM 1.2.2'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stdio.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef STDC_HEADERS
650 # include <stdlib.h>
651 # include <stddef.h>
652 #else
653 # ifdef HAVE_STDLIB_H
654 # include <stdlib.h>
655 # endif
656 #endif
657 #ifdef HAVE_STRING_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659 # include <memory.h>
660 # endif
661 # include <string.h>
662 #endif
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
665 #endif
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
668 #endif
669 #ifdef HAVE_STDINT_H
670 # include <stdint.h>
671 #endif
672 #ifdef HAVE_UNISTD_H
673 # include <unistd.h>
674 #endif"
675
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 WITH_LIBUUID_FALSE
681 WITH_LIBUUID_TRUE
682 LIBUUID_LIBS
683 LIBUUID_CFLAGS
684 SM_LIBS
685 SM_CFLAGS
686 HAVE_STYLESHEETS_FALSE
687 HAVE_STYLESHEETS_TRUE
688 XSL_STYLESHEET
689 STYLESHEET_SRCDIR
690 XORG_SGML_PATH
691 HAVE_XSLTPROC_FALSE
692 HAVE_XSLTPROC_TRUE
693 XSLTPROC
694 HAVE_FOP_FALSE
695 HAVE_FOP_TRUE
696 FOP
697 HAVE_XMLTO_FALSE
698 HAVE_XMLTO_TRUE
699 HAVE_XMLTO_TEXT_FALSE
700 HAVE_XMLTO_TEXT_TRUE
701 XMLTO
702 ENABLE_DOCS_FALSE
703 ENABLE_DOCS_TRUE
704 MAN_SUBSTS
705 XORG_MAN_PAGE
706 ADMIN_MAN_DIR
707 DRIVER_MAN_DIR
708 MISC_MAN_DIR
709 FILE_MAN_DIR
710 LIB_MAN_DIR
711 APP_MAN_DIR
712 ADMIN_MAN_SUFFIX
713 DRIVER_MAN_SUFFIX
714 MISC_MAN_SUFFIX
715 FILE_MAN_SUFFIX
716 LIB_MAN_SUFFIX
717 APP_MAN_SUFFIX
718 INSTALL_CMD
719 PKG_CONFIG
720 CHANGELOG_CMD
721 STRICT_CFLAGS
722 CWARNFLAGS
723 BASE_CFLAGS
724 CPP
725 OTOOL64
726 OTOOL
727 LIPO
728 NMEDIT
729 DSYMUTIL
730 MANIFEST_TOOL
731 RANLIB
732 ac_ct_AR
733 AR
734 DLLTOOL
735 OBJDUMP
736 LN_S
737 NM
738 ac_ct_DUMPBIN
739 DUMPBIN
740 LD
741 FGREP
742 EGREP
743 GREP
744 SED
745 am__fastdepCC_FALSE
746 am__fastdepCC_TRUE
747 CCDEPMODE
748 am__nodep
749 AMDEPBACKSLASH
750 AMDEP_FALSE
751 AMDEP_TRUE
752 am__quote
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 LIBTOOL
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL'
836 ac_subst_files=''
837 ac_user_opts='
838 enable_option_checking
839 enable_silent_rules
840 enable_shared
841 enable_static
842 with_pic
843 enable_fast_install
844 enable_dependency_tracking
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 enable_selective_werror
849 enable_strict_compilation
850 enable_docs
851 with_xmlto
852 with_fop
853 with_xsltproc
854 enable_unix_transport
855 enable_tcp_transport
856 enable_ipv6
857 enable_local_transport
858 with_libuuid
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CPP
869 PKG_CONFIG
870 XMLTO
871 FOP
872 XSLTPROC
873 SM_CFLAGS
874 SM_LIBS
875 LIBUUID_CFLAGS
876 LIBUUID_LIBS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used" >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures libSM 1.2.2 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of libSM 1.2.2:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-selective-werror
1509 Turn off selective compiler errors. (default:
1510 enabled)
1511 --enable-strict-compilation
1512 Enable all warnings from compiler and make them
1513 errors (default: disabled)
1514 --enable-docs Enable building the documentation (default: yes)
1515 --enable-unix-transport Enable UNIX domain socket transport
1516 --enable-tcp-transport Enable TCP socket transport
1517 --enable-ipv6 Enable IPv6 support
1518 --enable-local-transport
1519 Enable os-specific local transport
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1525 both]
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-sysroot=DIR Search for dependent libraries within DIR
1528 (or the compiler's sysroot if not specified).
1529 --with-xmlto Use xmlto to regenerate documentation (default:
1530 auto)
1531 --with-fop Use fop to regenerate documentation (default: auto)
1532 --with-xsltproc Use xsltproc for the transformation of XML documents
1533 (default: auto)
1534 --with-libuuid Build with libuuid support for client IDs
1535
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CPP C preprocessor
1545 PKG_CONFIG path to pkg-config utility
1546 XMLTO Path to xmlto command
1547 FOP Path to fop command
1548 XSLTPROC Path to xsltproc command
1549 SM_CFLAGS C compiler flags for SM, overriding pkg-config
1550 SM_LIBS linker flags for SM, overriding pkg-config
1551 LIBUUID_CFLAGS
1552 C compiler flags for LIBUUID, overriding pkg-config
1553 LIBUUID_LIBS
1554 linker flags for LIBUUID, overriding pkg-config
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 libSM configure 1.2.2
1623 generated by GNU Autoconf 2.68
1624
1625 Copyright (C) 2010 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_compile
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 $as_test_x conftest$ac_exeext
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists and can be compiled using the include files in
1723 # INCLUDES, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_compile ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \${$3+:} false; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 eval "$3=yes"
1739 else
1740 eval "$3=no"
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1846
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1851
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1857
1858 #undef $2
1859
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1873
1874 int
1875 main ()
1876 {
1877 return $2 ();
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_func
1896
1897 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1898 # ---------------------------------------------
1899 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_decl ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 as_decl_name=`echo $2|sed 's/ *(.*//'`
1905 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1907 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 #ifndef $as_decl_name
1918 #ifdef __cplusplus
1919 (void) $as_decl_use;
1920 #else
1921 (void) $as_decl_name;
1922 #endif
1923 #endif
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 eval "$3=yes"
1931 else
1932 eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941 } # ac_fn_c_check_decl
1942
1943 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1944 # ----------------------------------------------------
1945 # Tries to find if the field MEMBER exists in type AGGR, after including
1946 # INCLUDES, setting cache variable VAR accordingly.
1947 ac_fn_c_check_member ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1951 $as_echo_n "checking for $2.$3... " >&6; }
1952 if eval \${$4+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $5
1958 int
1959 main ()
1960 {
1961 static $2 ac_aggr;
1962 if (ac_aggr.$3)
1963 return 0;
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$4=yes"
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $5
1974 int
1975 main ()
1976 {
1977 static $2 ac_aggr;
1978 if (sizeof ac_aggr.$3)
1979 return 0;
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$4=yes"
1986 else
1987 eval "$4=no"
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$4
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_member
1999
2000 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001 # -------------------------------------------
2002 # Tests whether TYPE exists after having included INCLUDES, setting cache
2003 # variable VAR accordingly.
2004 ac_fn_c_check_type ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 eval "$3=no"
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 int
2017 main ()
2018 {
2019 if (sizeof ($2))
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2031 {
2032 if (sizeof (($2)))
2033 return 0;
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039
2040 else
2041 eval "$3=yes"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_type
2053 cat >config.log <<_ACEOF
2054 This file contains any messages produced by compilers while
2055 running configure, to aid debugging if configure makes a mistake.
2056
2057 It was created by libSM $as_me 1.2.2, which was
2058 generated by GNU Autoconf 2.68. Invocation command line was
2059
2060 $ $0 $@
2061
2062 _ACEOF
2063 exec 5>>config.log
2064 {
2065 cat <<_ASUNAME
2066 ## --------- ##
2067 ## Platform. ##
2068 ## --------- ##
2069
2070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2075
2076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2077 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2078
2079 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2080 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2082 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2083 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2084 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2085 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2086
2087 _ASUNAME
2088
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 $as_echo "PATH: $as_dir"
2095 done
2096 IFS=$as_save_IFS
2097
2098 } >&5
2099
2100 cat >&5 <<_ACEOF
2101
2102
2103 ## ----------- ##
2104 ## Core tests. ##
2105 ## ----------- ##
2106
2107 _ACEOF
2108
2109
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_configure_args=
2116 ac_configure_args0=
2117 ac_configure_args1=
2118 ac_must_keep_next=false
2119 for ac_pass in 1 2
2120 do
2121 for ac_arg
2122 do
2123 case $ac_arg in
2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126 | -silent | --silent | --silen | --sile | --sil)
2127 continue ;;
2128 *\'*)
2129 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 esac
2131 case $ac_pass in
2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133 2)
2134 as_fn_append ac_configure_args1 " '$ac_arg'"
2135 if test $ac_must_keep_next = true; then
2136 ac_must_keep_next=false # Got value, back to normal.
2137 else
2138 case $ac_arg in
2139 *=* | --config-cache | -C | -disable-* | --disable-* \
2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142 | -with-* | --with-* | -without-* | --without-* | --x)
2143 case "$ac_configure_args0 " in
2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145 esac
2146 ;;
2147 -* ) ac_must_keep_next=true ;;
2148 esac
2149 fi
2150 as_fn_append ac_configure_args " '$ac_arg'"
2151 ;;
2152 esac
2153 done
2154 done
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2157
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log. We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164 # Save into config.log some information that might help in debugging.
2165 {
2166 echo
2167
2168 $as_echo "## ---------------- ##
2169 ## Cache variables. ##
2170 ## ---------------- ##"
2171 echo
2172 # The following way of writing the cache mishandles newlines in values,
2173 (
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in #(
2177 *${as_nl}*)
2178 case $ac_var in #(
2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 esac
2182 case $ac_var in #(
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2186 esac ;;
2187 esac
2188 done
2189 (set) 2>&1 |
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2192 sed -n \
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 ;; #(
2196 *)
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 ;;
2199 esac |
2200 sort
2201 )
2202 echo
2203
2204 $as_echo "## ----------------- ##
2205 ## Output variables. ##
2206 ## ----------------- ##"
2207 echo
2208 for ac_var in $ac_subst_vars
2209 do
2210 eval ac_val=\$$ac_var
2211 case $ac_val in
2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213 esac
2214 $as_echo "$ac_var='\''$ac_val'\''"
2215 done | sort
2216 echo
2217
2218 if test -n "$ac_subst_files"; then
2219 $as_echo "## ------------------- ##
2220 ## File substitutions. ##
2221 ## ------------------- ##"
2222 echo
2223 for ac_var in $ac_subst_files
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2232 fi
2233
2234 if test -s confdefs.h; then
2235 $as_echo "## ----------- ##
2236 ## confdefs.h. ##
2237 ## ----------- ##"
2238 echo
2239 cat confdefs.h
2240 echo
2241 fi
2242 test "$ac_signal" != 0 &&
2243 $as_echo "$as_me: caught signal $ac_signal"
2244 $as_echo "$as_me: exit $exit_status"
2245 } >&5
2246 rm -f core *.core core.conftest.* &&
2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248 exit $exit_status
2249 ' 0
2250 for ac_signal in 1 2 13 15; do
2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 done
2253 ac_signal=0
2254
2255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2256 rm -f -r conftest* confdefs.h
2257
2258 $as_echo "/* confdefs.h */" > confdefs.h
2259
2260 # Predefined preprocessor variables.
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_NAME "$PACKAGE_NAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_STRING "$PACKAGE_STRING"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_URL "$PACKAGE_URL"
2284 _ACEOF
2285
2286
2287 # Let the site file select an alternate cache file if it wants to.
2288 # Prefer an explicitly selected file to automatically selected ones.
2289 ac_site_file1=NONE
2290 ac_site_file2=NONE
2291 if test -n "$CONFIG_SITE"; then
2292 # We do not want a PATH search for config.site.
2293 case $CONFIG_SITE in #((
2294 -*) ac_site_file1=./$CONFIG_SITE;;
2295 */*) ac_site_file1=$CONFIG_SITE;;
2296 *) ac_site_file1=./$CONFIG_SITE;;
2297 esac
2298 elif test "x$prefix" != xNONE; then
2299 ac_site_file1=$prefix/share/config.site
2300 ac_site_file2=$prefix/etc/config.site
2301 else
2302 ac_site_file1=$ac_default_prefix/share/config.site
2303 ac_site_file2=$ac_default_prefix/etc/config.site
2304 fi
2305 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306 do
2307 test "x$ac_site_file" = xNONE && continue
2308 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2311 sed 's/^/| /' "$ac_site_file" >&5
2312 . "$ac_site_file" \
2313 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 as_fn_error $? "failed to load site script $ac_site_file
2316 See \`config.log' for more details" "$LINENO" 5; }
2317 fi
2318 done
2319
2320 if test -r "$cache_file"; then
2321 # Some versions of bash will fail to source /dev/null (special files
2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 $as_echo "$as_me: loading cache $cache_file" >&6;}
2326 case $cache_file in
2327 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328 *) . "./$cache_file";;
2329 esac
2330 fi
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 >$cache_file
2335 fi
2336
2337 # Check that the precious variables saved in the cache have kept the same
2338 # value.
2339 ac_cache_corrupted=false
2340 for ac_var in $ac_precious_vars; do
2341 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2342 eval ac_new_set=\$ac_env_${ac_var}_set
2343 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2344 eval ac_new_val=\$ac_env_${ac_var}_value
2345 case $ac_old_set,$ac_new_set in
2346 set,)
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2350 ,set)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2353 ac_cache_corrupted=: ;;
2354 ,);;
2355 *)
2356 if test "x$ac_old_val" != "x$ac_new_val"; then
2357 # differences in whitespace do not lead to failure.
2358 ac_old_val_w=`echo x $ac_old_val`
2359 ac_new_val_w=`echo x $ac_new_val`
2360 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2362 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363 ac_cache_corrupted=:
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2366 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2367 eval $ac_var=\$ac_old_val
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2370 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2372 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2373 fi;;
2374 esac
2375 # Pass precious variables to config.status.
2376 if test "$ac_new_set" = set; then
2377 case $ac_new_val in
2378 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 *) ac_arg=$ac_var=$ac_new_val ;;
2380 esac
2381 case " $ac_configure_args " in
2382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2383 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2384 esac
2385 fi
2386 done
2387 if $ac_cache_corrupted; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2391 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2392 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2393 fi
2394 ## -------------------- ##
2395 ## Main body of script. ##
2396 ## -------------------- ##
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
2404
2405
2406 ac_config_headers="$ac_config_headers config.h"
2407
2408
2409 # Initialize Automake
2410 am__api_version='1.14'
2411
2412 ac_aux_dir=
2413 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2414 if test -f "$ac_dir/install-sh"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/install-sh -c"
2417 break
2418 elif test -f "$ac_dir/install.sh"; then
2419 ac_aux_dir=$ac_dir
2420 ac_install_sh="$ac_aux_dir/install.sh -c"
2421 break
2422 elif test -f "$ac_dir/shtool"; then
2423 ac_aux_dir=$ac_dir
2424 ac_install_sh="$ac_aux_dir/shtool install -c"
2425 break
2426 fi
2427 done
2428 if test -z "$ac_aux_dir"; then
2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2430 fi
2431
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2439
2440
2441 # Find a good install program. We prefer a C program (faster),
2442 # so one script is as good as another. But avoid the broken or
2443 # incompatible versions:
2444 # SysV /etc/install, /usr/sbin/install
2445 # SunOS /usr/etc/install
2446 # IRIX /sbin/install
2447 # AIX /bin/install
2448 # AmigaOS /C/install, which installs bootblocks on floppy discs
2449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452 # OS/2's system install, which has a completely different semantic
2453 # ./install, which can be erroneously created by make from ./install.sh.
2454 # Reject install programs that cannot install multiple files.
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2457 if test -z "$INSTALL"; then
2458 if ${ac_cv_path_install+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 # Account for people who put trailing slashes in PATH elements.
2467 case $as_dir/ in #((
2468 ./ | .// | /[cC]/* | \
2469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471 /usr/ucb/* ) ;;
2472 *)
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2475 # by default.
2476 for ac_prog in ginstall scoinst install; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2479 if test $ac_prog = install &&
2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2482 :
2483 elif test $ac_prog = install &&
2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2486 :
2487 else
2488 rm -rf conftest.one conftest.two conftest.dir
2489 echo one > conftest.one
2490 echo two > conftest.two
2491 mkdir conftest.dir
2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493 test -s conftest.one && test -s conftest.two &&
2494 test -s conftest.dir/conftest.one &&
2495 test -s conftest.dir/conftest.two
2496 then
2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498 break 3
2499 fi
2500 fi
2501 fi
2502 done
2503 done
2504 ;;
2505 esac
2506
2507 done
2508 IFS=$as_save_IFS
2509
2510 rm -rf conftest.one conftest.two conftest.dir
2511
2512 fi
2513 if test "${ac_cv_path_install+set}" = set; then
2514 INSTALL=$ac_cv_path_install
2515 else
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for INSTALL within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 INSTALL=$ac_install_sh
2521 fi
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524 $as_echo "$INSTALL" >&6; }
2525
2526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527 # It thinks the first close brace ends the variable substitution.
2528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529
2530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531
2532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2535 $as_echo_n "checking whether build environment is sane... " >&6; }
2536 # Reject unsafe characters in $srcdir or the absolute working directory
2537 # name. Accept space and tab only in the latter.
2538 am_lf='
2539 '
2540 case `pwd` in
2541 *[\\\"\#\$\&\'\`$am_lf]*)
2542 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2543 esac
2544 case $srcdir in
2545 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2546 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2547 esac
2548
2549 # Do 'set' in a subshell so we don't clobber the current shell's
2550 # arguments. Must try -L first in case configure is actually a
2551 # symlink; some systems play weird games with the mod time of symlinks
2552 # (eg FreeBSD returns the mod time of the symlink's containing
2553 # directory).
2554 if (
2555 am_has_slept=no
2556 for am_try in 1 2; do
2557 echo "timestamp, slept: $am_has_slept" > conftest.file
2558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2559 if test "$*" = "X"; then
2560 # -L didn't work.
2561 set X `ls -t "$srcdir/configure" conftest.file`
2562 fi
2563 if test "$*" != "X $srcdir/configure conftest.file" \
2564 && test "$*" != "X conftest.file $srcdir/configure"; then
2565
2566 # If neither matched, then we have a broken ls. This can happen
2567 # if, for instance, CONFIG_SHELL is bash and it inherits a
2568 # broken ls alias from the environment. This has actually
2569 # happened. Such a system could not be considered "sane".
2570 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2571 alias in your environment" "$LINENO" 5
2572 fi
2573 if test "$2" = conftest.file || test $am_try -eq 2; then
2574 break
2575 fi
2576 # Just in case.
2577 sleep 1
2578 am_has_slept=yes
2579 done
2580 test "$2" = conftest.file
2581 )
2582 then
2583 # Ok.
2584 :
2585 else
2586 as_fn_error $? "newly created file is older than distributed files!
2587 Check your system clock" "$LINENO" 5
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 # If we didn't sleep, we still need to ensure time stamps of config.status and
2592 # generated files are strictly newer.
2593 am_sleep_pid=
2594 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2595 ( sleep 1 ) &
2596 am_sleep_pid=$!
2597 fi
2598
2599 rm -f conftest.file
2600
2601 test "$program_prefix" != NONE &&
2602 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603 # Use a double $ so make ignores it.
2604 test "$program_suffix" != NONE &&
2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606 # Double any \ or $.
2607 # By default was `s,x,x', remove it if useless.
2608 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2610
2611 # expand $ac_aux_dir to an absolute path
2612 am_aux_dir=`cd $ac_aux_dir && pwd`
2613
2614 if test x"${MISSING+set}" != xset; then
2615 case $am_aux_dir in
2616 *\ * | *\ *)
2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2618 *)
2619 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620 esac
2621 fi
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --is-lightweight"; then
2624 am_missing_run="$MISSING "
2625 else
2626 am_missing_run=
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2628 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2629 fi
2630
2631 if test x"${install_sh}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2635 *)
2636 install_sh="\${SHELL} $am_aux_dir/install-sh"
2637 esac
2638 fi
2639
2640 # Installed binaries are usually stripped using 'strip' when the user
2641 # run "make install-strip". However 'strip' might not be the right
2642 # tool to use in cross-compilation environments, therefore Automake
2643 # will honor the 'STRIP' environment variable to overrule this program.
2644 if test "$cross_compiling" != no; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_STRIP+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$STRIP"; then
2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 STRIP=$ac_cv_prog_STRIP
2674 if test -n "$STRIP"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676 $as_echo "$STRIP" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$ac_cv_prog_STRIP"; then
2685 ac_ct_STRIP=$STRIP
2686 # Extract the first word of "strip", so it can be a program name with args.
2687 set dummy strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_STRIP"; then
2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_STRIP="strip"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714 if test -n "$ac_ct_STRIP"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716 $as_echo "$ac_ct_STRIP" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722 if test "x$ac_ct_STRIP" = x; then
2723 STRIP=":"
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 STRIP=$ac_ct_STRIP
2732 fi
2733 else
2734 STRIP="$ac_cv_prog_STRIP"
2735 fi
2736
2737 fi
2738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742 if test -z "$MKDIR_P"; then
2743 if ${ac_cv_path_mkdir+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_prog in mkdir gmkdir; do
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755 'mkdir (GNU coreutils) '* | \
2756 'mkdir (coreutils) '* | \
2757 'mkdir (fileutils) '4.1*)
2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759 break 3;;
2760 esac
2761 done
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767
2768 test -d ./--version && rmdir ./--version
2769 if test "${ac_cv_path_mkdir+set}" = set; then
2770 MKDIR_P="$ac_cv_path_mkdir -p"
2771 else
2772 # As a last resort, use the slow shell script. Don't cache a
2773 # value for MKDIR_P within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the value is a relative name.
2776 MKDIR_P="$ac_install_sh -d"
2777 fi
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780 $as_echo "$MKDIR_P" >&6; }
2781
2782 for ac_prog in gawk mawk nawk awk
2783 do
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_AWK+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$AWK"; then
2792 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_AWK="$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 AWK=$ac_cv_prog_AWK
2812 if test -n "$AWK"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2814 $as_echo "$AWK" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 test -n "$AWK" && break
2822 done
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2825 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2826 set x ${MAKE-make}
2827 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2828 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 cat >conftest.make <<\_ACEOF
2832 SHELL = /bin/sh
2833 all:
2834 @echo '@@@%%%=$(MAKE)=@@@%%%'
2835 _ACEOF
2836 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2838 *@@@%%%=?*=@@@%%%*)
2839 eval ac_cv_prog_make_${ac_make}_set=yes;;
2840 *)
2841 eval ac_cv_prog_make_${ac_make}_set=no;;
2842 esac
2843 rm -f conftest.make
2844 fi
2845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2847 $as_echo "yes" >&6; }
2848 SET_MAKE=
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 SET_MAKE="MAKE=${MAKE-make}"
2853 fi
2854
2855 rm -rf .tst 2>/dev/null
2856 mkdir .tst 2>/dev/null
2857 if test -d .tst; then
2858 am__leading_dot=.
2859 else
2860 am__leading_dot=_
2861 fi
2862 rmdir .tst 2>/dev/null
2863
2864 # Check whether --enable-silent-rules was given.
2865 if test "${enable_silent_rules+set}" = set; then :
2866 enableval=$enable_silent_rules;
2867 fi
2868
2869 case $enable_silent_rules in # (((
2870 yes) AM_DEFAULT_VERBOSITY=0;;
2871 no) AM_DEFAULT_VERBOSITY=1;;
2872 *) AM_DEFAULT_VERBOSITY=1;;
2873 esac
2874 am_make=${MAKE-make}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2876 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2877 if ${am_cv_make_support_nested_variables+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if $as_echo 'TRUE=$(BAR$(V))
2881 BAR0=false
2882 BAR1=true
2883 V=1
2884 am__doit:
2885 @$(TRUE)
2886 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2887 am_cv_make_support_nested_variables=yes
2888 else
2889 am_cv_make_support_nested_variables=no
2890 fi
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2893 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2894 if test $am_cv_make_support_nested_variables = yes; then
2895 AM_V='$(V)'
2896 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2897 else
2898 AM_V=$AM_DEFAULT_VERBOSITY
2899 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2900 fi
2901 AM_BACKSLASH='\'
2902
2903 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905 # is not polluted with repeated "-I."
2906 am__isrc=' -I$(srcdir)'
2907 # test to see if srcdir already configured
2908 if test -f $srcdir/config.status; then
2909 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2910 fi
2911 fi
2912
2913 # test whether we have cygpath
2914 if test -z "$CYGPATH_W"; then
2915 if (cygpath --version) >/dev/null 2>/dev/null; then
2916 CYGPATH_W='cygpath -w'
2917 else
2918 CYGPATH_W=echo
2919 fi
2920 fi
2921
2922
2923 # Define the identity of the package.
2924 PACKAGE='libSM'
2925 VERSION='1.2.2'
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE "$PACKAGE"
2930 _ACEOF
2931
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define VERSION "$VERSION"
2935 _ACEOF
2936
2937 # Some tools Automake needs.
2938
2939 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2940
2941
2942 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2943
2944
2945 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2946
2947
2948 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2949
2950
2951 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2952
2953 # For better backward compatibility. To be removed once Automake 1.9.x
2954 # dies out for good. For more background, see:
2955 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2956 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2957 mkdir_p='$(MKDIR_P)'
2958
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility. Yes, it's still used
2962 # in the wild :-( We should find a proper way to deprecate it ...
2963 AMTAR='$${TAR-tar}'
2964
2965
2966 # We'll loop over all known methods to create a tar archive until one works.
2967 _am_tools='gnutar pax cpio none'
2968
2969 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2970
2971
2972
2973
2974
2975
2976 # POSIX will say in a future version that running "rm -f" with no argument
2977 # is OK; and we want to be able to make that assumption in our Makefile
2978 # recipes. So use an aggressive probe to check that the usage we want is
2979 # actually supported "in the wild" to an acceptable degree.
2980 # See automake bug#10828.
2981 # To make any issue more visible, cause the running configure to be aborted
2982 # by default if the 'rm' program in use doesn't match our expectations; the
2983 # user can still override this though.
2984 if rm -f && rm -fr && rm -rf; then : OK; else
2985 cat >&2 <<'END'
2986 Oops!
2987
2988 Your 'rm' program seems unable to run without file operands specified
2989 on the command line, even when the '-f' option is present. This is contrary
2990 to the behaviour of most rm programs out there, and not conforming with
2991 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2992
2993 Please tell bug-automake@gnu.org about your system, including the value
2994 of your $PATH and any error possibly output before this message. This
2995 can help us improve future automake versions.
2996
2997 END
2998 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2999 echo 'Configuration will proceed anyway, since you have set the' >&2
3000 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3001 echo >&2
3002 else
3003 cat >&2 <<'END'
3004 Aborting the configuration process, to ensure you take notice of the issue.
3005
3006 You can download and install GNU coreutils to get an 'rm' implementation
3007 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3008
3009 If you want to complete the configuration process using your problematic
3010 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3011 to "yes", and re-run configure.
3012
3013 END
3014 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3015 fi
3016 fi
3017
3018 # Initialize libtool
3019 case `pwd` in
3020 *\ * | *\ *)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3022 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3023 esac
3024
3025
3026
3027 macro_version='2.4.2'
3028 macro_revision='1.3337'
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042 ltmain="$ac_aux_dir/ltmain.sh"
3043
3044 # Make sure we can run config.sub.
3045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3046 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3047
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3049 $as_echo_n "checking build system type... " >&6; }
3050 if ${ac_cv_build+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 ac_build_alias=$build_alias
3054 test "x$ac_build_alias" = x &&
3055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3056 test "x$ac_build_alias" = x &&
3057 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3060
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3063 $as_echo "$ac_cv_build" >&6; }
3064 case $ac_cv_build in
3065 *-*-*) ;;
3066 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3067 esac
3068 build=$ac_cv_build
3069 ac_save_IFS=$IFS; IFS='-'
3070 set x $ac_cv_build
3071 shift
3072 build_cpu=$1
3073 build_vendor=$2
3074 shift; shift
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3077 build_os=$*
3078 IFS=$ac_save_IFS
3079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3080
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3083 $as_echo_n "checking host system type... " >&6; }
3084 if ${ac_cv_host+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test "x$host_alias" = x; then
3088 ac_cv_host=$ac_cv_build
3089 else
3090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3091 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3092 fi
3093
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3096 $as_echo "$ac_cv_host" >&6; }
3097 case $ac_cv_host in
3098 *-*-*) ;;
3099 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3100 esac
3101 host=$ac_cv_host
3102 ac_save_IFS=$IFS; IFS='-'
3103 set x $ac_cv_host
3104 shift
3105 host_cpu=$1
3106 host_vendor=$2
3107 shift; shift
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3110 host_os=$*
3111 IFS=$ac_save_IFS
3112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3113
3114
3115 # Backslashify metacharacters that are still active within
3116 # double-quoted strings.
3117 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3118
3119 # Same as above, but do not quote variable references.
3120 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3121
3122 # Sed substitution to delay expansion of an escaped shell variable in a
3123 # double_quote_subst'ed string.
3124 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3125
3126 # Sed substitution to delay expansion of an escaped single quote.
3127 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3128
3129 # Sed substitution to avoid accidental globbing in evaled expressions
3130 no_glob_subst='s/\*/\\\*/g'
3131
3132 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3134 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3135
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3137 $as_echo_n "checking how to print strings... " >&6; }
3138 # Test print first, because it will be a builtin if present.
3139 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3140 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3141 ECHO='print -r --'
3142 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3143 ECHO='printf %s\n'
3144 else
3145 # Use this function as a fallback that always works.
3146 func_fallback_echo ()
3147 {
3148 eval 'cat <<_LTECHO_EOF
3149 $1
3150 _LTECHO_EOF'
3151 }
3152 ECHO='func_fallback_echo'
3153 fi
3154
3155 # func_echo_all arg...
3156 # Invoke $ECHO with all args, space-separated.
3157 func_echo_all ()
3158 {
3159 $ECHO ""
3160 }
3161
3162 case "$ECHO" in
3163 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3164 $as_echo "printf" >&6; } ;;
3165 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3166 $as_echo "print -r" >&6; } ;;
3167 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3168 $as_echo "cat" >&6; } ;;
3169 esac
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184 DEPDIR="${am__leading_dot}deps"
3185
3186 ac_config_commands="$ac_config_commands depfiles"
3187
3188
3189 am_make=${MAKE-make}
3190 cat > confinc << 'END'
3191 am__doit:
3192 @echo this is the am__doit target
3193 .PHONY: am__doit
3194 END
3195 # If we don't find an include directive, just comment out the code.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3197 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3198 am__include="#"
3199 am__quote=
3200 _am_result=none
3201 # First try GNU make style include.
3202 echo "include confinc" > confmf
3203 # Ignore all kinds of additional output from 'make'.
3204 case `$am_make -s -f confmf 2> /dev/null` in #(
3205 *the\ am__doit\ target*)
3206 am__include=include
3207 am__quote=
3208 _am_result=GNU
3209 ;;
3210 esac
3211 # Now try BSD make style include.
3212 if test "$am__include" = "#"; then
3213 echo '.include "confinc"' > confmf
3214 case `$am_make -s -f confmf 2> /dev/null` in #(
3215 *the\ am__doit\ target*)
3216 am__include=.include
3217 am__quote="\""
3218 _am_result=BSD
3219 ;;
3220 esac
3221 fi
3222
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3225 $as_echo "$_am_result" >&6; }
3226 rm -f confinc confmf
3227
3228 # Check whether --enable-dependency-tracking was given.
3229 if test "${enable_dependency_tracking+set}" = set; then :
3230 enableval=$enable_dependency_tracking;
3231 fi
3232
3233 if test "x$enable_dependency_tracking" != xno; then
3234 am_depcomp="$ac_aux_dir/depcomp"
3235 AMDEPBACKSLASH='\'
3236 am__nodep='_no'
3237 fi
3238 if test "x$enable_dependency_tracking" != xno; then
3239 AMDEP_TRUE=
3240 AMDEP_FALSE='#'
3241 else
3242 AMDEP_TRUE='#'
3243 AMDEP_FALSE=
3244 fi
3245
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 if test -z "$ac_cv_prog_CC"; then
3292 ac_ct_CC=$CC
3293 # Extract the first word of "gcc", so it can be a program name with args.
3294 set dummy gcc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_ac_ct_CC="gcc"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321 if test -n "$ac_ct_CC"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3323 $as_echo "$ac_ct_CC" >&6; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3339 fi
3340 else
3341 CC="$ac_cv_prog_CC"
3342 fi
3343
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}cc; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="${ac_tool_prefix}cc"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383 fi
3384 fi
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_CC+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 else
3396 ac_prog_rejected=no
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3405 ac_prog_rejected=yes
3406 continue
3407 fi
3408 ac_cv_prog_CC="cc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3419 shift
3420 if test $# != 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3424 shift
3425 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3426 fi
3427 fi
3428 fi
3429 fi
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 $as_echo "$CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439
3440 fi
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 for ac_prog in cl.exe
3444 do
3445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_prog_CC+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466 done
3467 done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482 test -n "$CC" && break
3483 done
3484 fi
3485 if test -z "$CC"; then
3486 ac_ct_CC=$CC
3487 for ac_prog in cl.exe
3488 do
3489 # Extract the first word of "$ac_prog", so it can be a program name with args.
3490 set dummy $ac_prog; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -n "$ac_ct_CC"; then
3497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_ac_ct_CC="$ac_prog"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3517 if test -n "$ac_ct_CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3519 $as_echo "$ac_ct_CC" >&6; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526 test -n "$ac_ct_CC" && break
3527 done
3528
3529 if test "x$ac_ct_CC" = x; then
3530 CC=""
3531 else
3532 case $cross_compiling:$ac_tool_warned in
3533 yes:)
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536 ac_tool_warned=yes ;;
3537 esac
3538 CC=$ac_ct_CC
3539 fi
3540 fi
3541
3542 fi
3543
3544
3545 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "no acceptable C compiler found in \$PATH
3548 See \`config.log' for more details" "$LINENO" 5; }
3549
3550 # Provide some information about the compiler.
3551 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3552 set X $ac_compile
3553 ac_compiler=$2
3554 for ac_option in --version -v -V -qversion; do
3555 { { ac_try="$ac_compiler $ac_option >&5"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3563 ac_status=$?
3564 if test -s conftest.err; then
3565 sed '10a\
3566 ... rest of stderr output deleted ...
3567 10q' conftest.err >conftest.er1
3568 cat conftest.er1 >&5
3569 fi
3570 rm -f conftest.er1 conftest.err
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 done
3574
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 ac_clean_files_save=$ac_clean_files
3587 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3588 # Try to create an executable without -o first, disregard a.out.
3589 # It will help us diagnose broken compilers, and finding out an intuition
3590 # of exeext.
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3594
3595 # The possible output files:
3596 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3597
3598 ac_rmfiles=
3599 for ac_file in $ac_files
3600 do
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3604 esac
3605 done
3606 rm -f $ac_rmfiles
3607
3608 if { { ac_try="$ac_link_default"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link_default") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3620 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3621 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3622 # so that the user can short-circuit this test for compilers unknown to
3623 # Autoconf.
3624 for ac_file in $ac_files ''
3625 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 ;;
3630 [ab].out )
3631 # We found the default executable, but exeext='' is most
3632 # certainly right.
3633 break;;
3634 *.* )
3635 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3636 then :; else
3637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3638 fi
3639 # We set ac_cv_exeext here because the later test for it is not
3640 # safe: cross compilers may not add the suffix if given an `-o'
3641 # argument, so we may need to know it at that point already.
3642 # Even if this section looks crufty: it has the advantage of
3643 # actually working.
3644 break;;
3645 * )
3646 break;;
3647 esac
3648 done
3649 test "$ac_cv_exeext" = no && ac_cv_exeext=
3650
3651 else
3652 ac_file=''
3653 fi
3654 if test -z "$ac_file"; then :
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error 77 "C compiler cannot create executables
3663 See \`config.log' for more details" "$LINENO" 5; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666 $as_echo "yes" >&6; }
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3669 $as_echo_n "checking for C compiler default output file name... " >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3671 $as_echo "$ac_file" >&6; }
3672 ac_exeext=$ac_cv_exeext
3673
3674 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3675 ac_clean_files=$ac_clean_files_save
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3677 $as_echo_n "checking for suffix of executables... " >&6; }
3678 if { { ac_try="$ac_link"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_link") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; then :
3689 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3690 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3691 # work properly (i.e., refer to `conftest.exe'), while it won't with
3692 # `rm'.
3693 for ac_file in conftest.exe conftest conftest.*; do
3694 test -f "$ac_file" || continue
3695 case $ac_file in
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3697 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698 break;;
3699 * ) break;;
3700 esac
3701 done
3702 else
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3706 See \`config.log' for more details" "$LINENO" 5; }
3707 fi
3708 rm -f conftest conftest$ac_cv_exeext
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3710 $as_echo "$ac_cv_exeext" >&6; }
3711
3712 rm -f conftest.$ac_ext
3713 EXEEXT=$ac_cv_exeext
3714 ac_exeext=$EXEEXT
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #include <stdio.h>
3718 int
3719 main ()
3720 {
3721 FILE *f = fopen ("conftest.out", "w");
3722 return ferror (f) || fclose (f) != 0;
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 ac_clean_files="$ac_clean_files conftest.out"
3729 # Check that the compiler produces executables we can run. If not, either
3730 # the compiler is broken, or we cross compile.
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3732 $as_echo_n "checking whether we are cross compiling... " >&6; }
3733 if test "$cross_compiling" != yes; then
3734 { { ac_try="$ac_link"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }
3745 if { ac_try='./conftest$ac_cv_exeext'
3746 { { case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_try") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; }; then
3756 cross_compiling=no
3757 else
3758 if test "$cross_compiling" = maybe; then
3759 cross_compiling=yes
3760 else
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot run C compiled programs.
3764 If you meant to cross compile, use \`--host'.
3765 See \`config.log' for more details" "$LINENO" 5; }
3766 fi
3767 fi
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3770 $as_echo "$cross_compiling" >&6; }
3771
3772 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3773 ac_clean_files=$ac_clean_files_save
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3775 $as_echo_n "checking for suffix of object files... " >&6; }
3776 if ${ac_cv_objext+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.o conftest.obj
3791 if { { ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compile") 2>&5
3799 ac_status=$?
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; then :
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3807 break;;
3808 esac
3809 done
3810 else
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error $? "cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details" "$LINENO" 5; }
3818 fi
3819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3822 $as_echo "$ac_cv_objext" >&6; }
3823 OBJEXT=$ac_cv_objext
3824 ac_objext=$OBJEXT
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3827 if ${ac_cv_c_compiler_gnu+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836 #ifndef __GNUC__
3837 choke me
3838 #endif
3839
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_compiler_gnu=yes
3846 else
3847 ac_compiler_gnu=no
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3855 if test $ac_compiler_gnu = yes; then
3856 GCC=yes
3857 else
3858 GCC=
3859 fi
3860 ac_test_CFLAGS=${CFLAGS+set}
3861 ac_save_CFLAGS=$CFLAGS
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3864 if ${ac_cv_prog_cc_g+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 ac_save_c_werror_flag=$ac_c_werror_flag
3868 ac_c_werror_flag=yes
3869 ac_cv_prog_cc_g=no
3870 CFLAGS="-g"
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873
3874 int
3875 main ()
3876 {
3877
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_cv_prog_cc_g=yes
3884 else
3885 CFLAGS=""
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898
3899 else
3900 ac_c_werror_flag=$ac_save_c_werror_flag
3901 CFLAGS="-g"
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_prog_cc_g=yes
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_c_werror_flag=$ac_save_c_werror_flag
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3924 $as_echo "$ac_cv_prog_cc_g" >&6; }
3925 if test "$ac_test_CFLAGS" = set; then
3926 CFLAGS=$ac_save_CFLAGS
3927 elif test $ac_cv_prog_cc_g = yes; then
3928 if test "$GCC" = yes; then
3929 CFLAGS="-g -O2"
3930 else
3931 CFLAGS="-g"
3932 fi
3933 else
3934 if test "$GCC" = yes; then
3935 CFLAGS="-O2"
3936 else
3937 CFLAGS=
3938 fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3942 if ${ac_cv_prog_cc_c89+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 ac_cv_prog_cc_c89=no
3946 ac_save_CC=$CC
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949 #include <stdarg.h>
3950 #include <stdio.h>
3951 #include <sys/types.h>
3952 #include <sys/stat.h>
3953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3954 struct buf { int x; };
3955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956 static char *e (p, i)
3957 char **p;
3958 int i;
3959 {
3960 return p[i];
3961 }
3962 static char *f (char * (*g) (char **, int), char **p, ...)
3963 {
3964 char *s;
3965 va_list v;
3966 va_start (v,p);
3967 s = g (p, va_arg (v,int));
3968 va_end (v);
3969 return s;
3970 }
3971
3972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3973 function prototypes and stuff, but not '\xHH' hex character constants.
3974 These don't provoke an error unfortunately, instead are silently treated
3975 as 'x'. The following induces an error, until -std is added to get
3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3977 array size at least. It's necessary to write '\x00'==0 to get something
3978 that's true only with -std. */
3979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980
3981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982 inside strings and character constants. */
3983 #define FOO(x) 'x'
3984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3985
3986 int test (int i, double x);
3987 struct s1 {int (*f) (int a);};
3988 struct s2 {int (*f) (double a);};
3989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990 int argc;
3991 char **argv;
3992 int
3993 main ()
3994 {
3995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 do
4003 CC="$ac_save_CC $ac_arg"
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_c89=$ac_arg
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext
4008 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 done
4010 rm -f conftest.$ac_ext
4011 CC=$ac_save_CC
4012
4013 fi
4014 # AC_CACHE_VAL
4015 case "x$ac_cv_prog_cc_c89" in
4016 x)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 $as_echo "none needed" >&6; } ;;
4019 xno)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;;
4022 *)
4023 CC="$CC $ac_cv_prog_cc_c89"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026 esac
4027 if test "x$ac_cv_prog_cc_c89" != xno; then :
4028
4029 fi
4030
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044 if ${am_cv_prog_cc_c_o+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 # Make sure it works both with $CC and with simple cc.
4059 # Following AC_PROG_CC_C_O, we do the test twice because some
4060 # compilers refuse to overwrite an existing .o file with -o,
4061 # though they will create one.
4062 am_cv_prog_cc_c_o=yes
4063 for am_i in 1 2; do
4064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } \
4069 && test -f conftest2.$ac_objext; then
4070 : OK
4071 else
4072 am_cv_prog_cc_c_o=no
4073 break
4074 fi
4075 done
4076 rm -f core conftest*
4077 unset am_i
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4081 if test "$am_cv_prog_cc_c_o" != yes; then
4082 # Losing compiler, so override with the script.
4083 # FIXME: It is wrong to rewrite CC.
4084 # But if we don't then we get into trouble of one sort or another.
4085 # A longer-term fix would be to have automake use am__CC in this case,
4086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087 CC="$am_aux_dir/compile $CC"
4088 fi
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096 depcc="$CC" am_compiler_list=
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named 'D' -- because '-MD' means "put the output
4108 # in D".
4109 rm -rf conftest.dir
4110 mkdir conftest.dir
4111 # Copy depcomp to subdir because otherwise we won't find it if we're
4112 # using a relative directory.
4113 cp "$am_depcomp" conftest.dir
4114 cd conftest.dir
4115 # We will build objects and dependencies in a subdirectory because
4116 # it helps to detect inapplicable dependency modes. For instance
4117 # both Tru64's cc and ICC support -MD to output dependencies as a
4118 # side effect of compilation, but ICC will put the dependencies in
4119 # the current directory while Tru64 will put them in the object
4120 # directory.
4121 mkdir sub
4122
4123 am_cv_CC_dependencies_compiler_type=none
4124 if test "$am_compiler_list" = ""; then
4125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4126 fi
4127 am__universal=false
4128 case " $depcc " in #(
4129 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4130 esac
4131
4132 for depmode in $am_compiler_list; do
4133 # Setup a source with many dependencies, because some compilers
4134 # like to wrap large dependency lists on column 80 (with \), and
4135 # we should not choose a depcomp mode which is confused by this.
4136 #
4137 # We need to recreate these files for each test, as the compiler may
4138 # overwrite some of them when testing with obscure command lines.
4139 # This happens at least with the AIX C compiler.
4140 : > sub/conftest.c
4141 for i in 1 2 3 4 5 6; do
4142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4143 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4144 # Solaris 10 /bin/sh.
4145 echo '/* dummy */' > sub/conftst$i.h
4146 done
4147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148
4149 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4150 # mode. It turns out that the SunPro C++ compiler does not properly
4151 # handle '-M -o', and we need to detect this. Also, some Intel
4152 # versions had trouble with output in subdirs.
4153 am__obj=sub/conftest.${OBJEXT-o}
4154 am__minus_obj="-o $am__obj"
4155 case $depmode in
4156 gcc)
4157 # This depmode causes a compiler race in universal mode.
4158 test "$am__universal" = false || continue
4159 ;;
4160 nosideeffect)
4161 # After this tag, mechanisms are not by side-effect, so they'll
4162 # only be used when explicitly requested.
4163 if test "x$enable_dependency_tracking" = xyes; then
4164 continue
4165 else
4166 break
4167 fi
4168 ;;
4169 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4170 # This compiler won't grok '-c -o', but also, the minuso test has
4171 # not run yet. These depmodes are late enough in the game, and
4172 # so weak that their functioning should not be impacted.
4173 am__obj=conftest.${OBJEXT-o}
4174 am__minus_obj=
4175 ;;
4176 none) break ;;
4177 esac
4178 if depmode=$depmode \
4179 source=sub/conftest.c object=$am__obj \
4180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4181 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4182 >/dev/null 2>conftest.err &&
4183 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4185 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4187 # icc doesn't choke on unknown options, it will just issue warnings
4188 # or remarks (even with -Werror). So we grep stderr for any message
4189 # that says an option was ignored or not supported.
4190 # When given -MP, icc 7.0 and 7.1 complain thusly:
4191 # icc: Command line warning: ignoring option '-M'; no argument required
4192 # The diagnosis changed in icc 8.0:
4193 # icc: Command line remark: option '-MP' not supported
4194 if (grep 'ignoring option' conftest.err ||
4195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4196 am_cv_CC_dependencies_compiler_type=$depmode
4197 break
4198 fi
4199 fi
4200 done
4201
4202 cd ..
4203 rm -rf conftest.dir
4204 else
4205 am_cv_CC_dependencies_compiler_type=none
4206 fi
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4210 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4212
4213 if
4214 test "x$enable_dependency_tracking" != xno \
4215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4216 am__fastdepCC_TRUE=
4217 am__fastdepCC_FALSE='#'
4218 else
4219 am__fastdepCC_TRUE='#'
4220 am__fastdepCC_FALSE=
4221 fi
4222
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4225 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4226 if ${ac_cv_path_SED+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4230 for ac_i in 1 2 3 4 5 6 7; do
4231 ac_script="$ac_script$as_nl$ac_script"
4232 done
4233 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4234 { ac_script=; unset ac_script;}
4235 if test -z "$SED"; then
4236 ac_path_SED_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_prog in sed gsed; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4246 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4247 # Check for GNU ac_path_SED and select it if it is found.
4248 # Check for GNU $ac_path_SED
4249 case `"$ac_path_SED" --version 2>&1` in
4250 *GNU*)
4251 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4252 *)
4253 ac_count=0
4254 $as_echo_n 0123456789 >"conftest.in"
4255 while :
4256 do
4257 cat "conftest.in" "conftest.in" >"conftest.tmp"
4258 mv "conftest.tmp" "conftest.in"
4259 cp "conftest.in" "conftest.nl"
4260 $as_echo '' >> "conftest.nl"
4261 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263 as_fn_arith $ac_count + 1 && ac_count=$as_val
4264 if test $ac_count -gt ${ac_path_SED_max-0}; then
4265 # Best one so far, save it but keep looking for a better one
4266 ac_cv_path_SED="$ac_path_SED"
4267 ac_path_SED_max=$ac_count
4268 fi
4269 # 10*(2^10) chars as input seems more than enough
4270 test $ac_count -gt 10 && break
4271 done
4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273 esac
4274
4275 $ac_path_SED_found && break 3
4276 done
4277 done
4278 done
4279 IFS=$as_save_IFS
4280 if test -z "$ac_cv_path_SED"; then
4281 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4282 fi
4283 else
4284 ac_cv_path_SED=$SED
4285 fi
4286
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4289 $as_echo "$ac_cv_path_SED" >&6; }
4290 SED="$ac_cv_path_SED"
4291 rm -f conftest.sed
4292
4293 test -z "$SED" && SED=sed
4294 Xsed="$SED -e 1s/^X//"
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4307 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4308 if ${ac_cv_path_GREP+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -z "$GREP"; then
4312 ac_path_GREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in grep ggrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4323 # Check for GNU ac_path_GREP and select it if it is found.
4324 # Check for GNU $ac_path_GREP
4325 case `"$ac_path_GREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4328 *)
4329 ac_count=0
4330 $as_echo_n 0123456789 >"conftest.in"
4331 while :
4332 do
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 $as_echo 'GREP' >> "conftest.nl"
4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 as_fn_arith $ac_count + 1 && ac_count=$as_val
4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_GREP="$ac_path_GREP"
4343 ac_path_GREP_max=$ac_count
4344 fi
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4350
4351 $ac_path_GREP_found && break 3
4352 done
4353 done
4354 done
4355 IFS=$as_save_IFS
4356 if test -z "$ac_cv_path_GREP"; then
4357 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 fi
4359 else
4360 ac_cv_path_GREP=$GREP
4361 fi
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4365 $as_echo "$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4370 $as_echo_n "checking for egrep... " >&6; }
4371 if ${ac_cv_path_EGREP+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4376 else
4377 if test -z "$EGREP"; then
4378 ac_path_EGREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in egrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4389 # Check for GNU ac_path_EGREP and select it if it is found.
4390 # Check for GNU $ac_path_EGREP
4391 case `"$ac_path_EGREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4394 *)
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4398 do
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'EGREP' >> "conftest.nl"
4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_EGREP="$ac_path_EGREP"
4409 ac_path_EGREP_max=$ac_count
4410 fi
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4416
4417 $ac_path_EGREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_EGREP"; then
4423 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424 fi
4425 else
4426 ac_cv_path_EGREP=$EGREP
4427 fi
4428
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4434
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4437 $as_echo_n "checking for fgrep... " >&6; }
4438 if ${ac_cv_path_FGREP+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4442 then ac_cv_path_FGREP="$GREP -F"
4443 else
4444 if test -z "$FGREP"; then
4445 ac_path_FGREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in fgrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4456 # Check for GNU ac_path_FGREP and select it if it is found.
4457 # Check for GNU $ac_path_FGREP
4458 case `"$ac_path_FGREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4461 *)
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4465 do
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'FGREP' >> "conftest.nl"
4470 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_FGREP="$ac_path_FGREP"
4476 ac_path_FGREP_max=$ac_count
4477 fi
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4483
4484 $ac_path_FGREP_found && break 3
4485 done
4486 done
4487 done
4488 IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_FGREP"; then
4490 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491 fi
4492 else
4493 ac_cv_path_FGREP=$FGREP
4494 fi
4495
4496 fi
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4499 $as_echo "$ac_cv_path_FGREP" >&6; }
4500 FGREP="$ac_cv_path_FGREP"
4501
4502
4503 test -z "$GREP" && GREP=grep
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523 # Check whether --with-gnu-ld was given.
4524 if test "${with_gnu_ld+set}" = set; then :
4525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4526 else
4527 with_gnu_ld=no
4528 fi
4529
4530 ac_prog=ld
4531 if test "$GCC" = yes; then
4532 # Check if gcc -print-prog-name=ld gives a path.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4534 $as_echo_n "checking for ld used by $CC... " >&6; }
4535 case $host in
4536 *-*-mingw*)
4537 # gcc leaves a trailing carriage return which upsets mingw
4538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4539 *)
4540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4541 esac
4542 case $ac_prog in
4543 # Accept absolute paths.
4544 [\\/]* | ?:[\\/]*)
4545 re_direlt='/[^/][^/]*/\.\./'
4546 # Canonicalize the pathname of ld
4547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4550 done
4551 test -z "$LD" && LD="$ac_prog"
4552 ;;
4553 "")
4554 # If it fails, then pretend we aren't using GCC.
4555 ac_prog=ld
4556 ;;
4557 *)
4558 # If it is relative, then search for the first ld in PATH.
4559 with_gnu_ld=unknown
4560 ;;
4561 esac
4562 elif test "$with_gnu_ld" = yes; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4564 $as_echo_n "checking for GNU ld... " >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4567 $as_echo_n "checking for non-GNU ld... " >&6; }
4568 fi
4569 if ${lt_cv_path_LD+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -z "$LD"; then
4573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4574 for ac_dir in $PATH; do
4575 IFS="$lt_save_ifs"
4576 test -z "$ac_dir" && ac_dir=.
4577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4578 lt_cv_path_LD="$ac_dir/$ac_prog"
4579 # Check to see if the program is GNU ld. I'd rather use --version,
4580 # but apparently some variants of GNU ld only accept -v.
4581 # Break only if it was the GNU/non-GNU ld that we prefer.
4582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584 test "$with_gnu_ld" != no && break
4585 ;;
4586 *)
4587 test "$with_gnu_ld" != yes && break
4588 ;;
4589 esac
4590 fi
4591 done
4592 IFS="$lt_save_ifs"
4593 else
4594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4595 fi
4596 fi
4597
4598 LD="$lt_cv_path_LD"
4599 if test -n "$LD"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4601 $as_echo "$LD" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4609 if ${lt_cv_prog_gnu_ld+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4613 case `$LD -v 2>&1 </dev/null` in
4614 *GNU* | *'with BFD'*)
4615 lt_cv_prog_gnu_ld=yes
4616 ;;
4617 *)
4618 lt_cv_prog_gnu_ld=no
4619 ;;
4620 esac
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4623 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4624 with_gnu_ld=$lt_cv_prog_gnu_ld
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4635 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4636 if ${lt_cv_path_NM+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$NM"; then
4640 # Let the user override the test.
4641 lt_cv_path_NM="$NM"
4642 else
4643 lt_nm_to_check="${ac_tool_prefix}nm"
4644 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4645 lt_nm_to_check="$lt_nm_to_check nm"
4646 fi
4647 for lt_tmp_nm in $lt_nm_to_check; do
4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4650 IFS="$lt_save_ifs"
4651 test -z "$ac_dir" && ac_dir=.
4652 tmp_nm="$ac_dir/$lt_tmp_nm"
4653 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4654 # Check to see if the nm accepts a BSD-compat flag.
4655 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4656 # nm: unknown option "B" ignored
4657 # Tru64's nm complains that /dev/null is an invalid object file
4658 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4659 */dev/null* | *'Invalid file or object type'*)
4660 lt_cv_path_NM="$tmp_nm -B"
4661 break
4662 ;;
4663 *)
4664 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4665 */dev/null*)
4666 lt_cv_path_NM="$tmp_nm -p"
4667 break
4668 ;;
4669 *)
4670 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4671 continue # so that we can try to find one that supports BSD flags
4672 ;;
4673 esac
4674 ;;
4675 esac
4676 fi
4677 done
4678 IFS="$lt_save_ifs"
4679 done
4680 : ${lt_cv_path_NM=no}
4681 fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4684 $as_echo "$lt_cv_path_NM" >&6; }
4685 if test "$lt_cv_path_NM" != "no"; then
4686 NM="$lt_cv_path_NM"
4687 else
4688 # Didn't find any BSD compatible name lister, look for dumpbin.
4689 if test -n "$DUMPBIN"; then :
4690 # Let the user override the test.
4691 else
4692 if test -n "$ac_tool_prefix"; then
4693 for ac_prog in dumpbin "link -dump"
4694 do
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_DUMPBIN+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$DUMPBIN"; then
4703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 DUMPBIN=$ac_cv_prog_DUMPBIN
4723 if test -n "$DUMPBIN"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4725 $as_echo "$DUMPBIN" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 test -n "$DUMPBIN" && break
4733 done
4734 fi
4735 if test -z "$DUMPBIN"; then
4736 ac_ct_DUMPBIN=$DUMPBIN
4737 for ac_prog in dumpbin "link -dump"
4738 do
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_DUMPBIN"; then
4747 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4767 if test -n "$ac_ct_DUMPBIN"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4769 $as_echo "$ac_ct_DUMPBIN" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775
4776 test -n "$ac_ct_DUMPBIN" && break
4777 done
4778
4779 if test "x$ac_ct_DUMPBIN" = x; then
4780 DUMPBIN=":"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786 ac_tool_warned=yes ;;
4787 esac
4788 DUMPBIN=$ac_ct_DUMPBIN
4789 fi
4790 fi
4791
4792 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4793 *COFF*)
4794 DUMPBIN="$DUMPBIN -symbols"
4795 ;;
4796 *)
4797 DUMPBIN=:
4798 ;;
4799 esac
4800 fi
4801
4802 if test "$DUMPBIN" != ":"; then
4803 NM="$DUMPBIN"
4804 fi
4805 fi
4806 test -z "$NM" && NM=nm
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4814 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4815 if ${lt_cv_nm_interface+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 lt_cv_nm_interface="BSD nm"
4819 echo "int some_variable = 0;" > conftest.$ac_ext
4820 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4821 (eval "$ac_compile" 2>conftest.err)
4822 cat conftest.err >&5
4823 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4825 cat conftest.err >&5
4826 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4827 cat conftest.out >&5
4828 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4829 lt_cv_nm_interface="MS dumpbin"
4830 fi
4831 rm -f conftest*
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4834 $as_echo "$lt_cv_nm_interface" >&6; }
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4838 LN_S=$as_ln_s
4839 if test "$LN_S" = "ln -s"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4845 fi
4846
4847 # find the maximum length of command line arguments
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4849 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4850 if ${lt_cv_sys_max_cmd_len+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 i=0
4854 teststring="ABCD"
4855
4856 case $build_os in
4857 msdosdjgpp*)
4858 # On DJGPP, this test can blow up pretty badly due to problems in libc
4859 # (any single argument exceeding 2000 bytes causes a buffer overrun
4860 # during glob expansion). Even if it were fixed, the result of this
4861 # check would be larger than it should be.
4862 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4863 ;;
4864
4865 gnu*)
4866 # Under GNU Hurd, this test is not required because there is
4867 # no limit to the length of command line arguments.
4868 # Libtool will interpret -1 as no limit whatsoever
4869 lt_cv_sys_max_cmd_len=-1;
4870 ;;
4871
4872 cygwin* | mingw* | cegcc*)
4873 # On Win9x/ME, this test blows up -- it succeeds, but takes
4874 # about 5 minutes as the teststring grows exponentially.
4875 # Worse, since 9x/ME are not pre-emptively multitasking,
4876 # you end up with a "frozen" computer, even though with patience
4877 # the test eventually succeeds (with a max line length of 256k).
4878 # Instead, let's just punt: use the minimum linelength reported by
4879 # all of the supported platforms: 8192 (on NT/2K/XP).
4880 lt_cv_sys_max_cmd_len=8192;
4881 ;;
4882
4883 mint*)
4884 # On MiNT this can take a long time and run out of memory.
4885 lt_cv_sys_max_cmd_len=8192;
4886 ;;
4887
4888 amigaos*)
4889 # On AmigaOS with pdksh, this test takes hours, literally.
4890 # So we just punt and use a minimum line length of 8192.
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4895 # This has been around since 386BSD, at least. Likely further.
4896 if test -x /sbin/sysctl; then
4897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4898 elif test -x /usr/sbin/sysctl; then
4899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4900 else
4901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4902 fi
4903 # And add a safety zone
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906 ;;
4907
4908 interix*)
4909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4910 lt_cv_sys_max_cmd_len=196608
4911 ;;
4912
4913 os2*)
4914 # The test takes a long time on OS/2.
4915 lt_cv_sys_max_cmd_len=8192
4916 ;;
4917
4918 osf*)
4919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4921 # nice to cause kernel panics so lets avoid the loop below.
4922 # First set a reasonable default.
4923 lt_cv_sys_max_cmd_len=16384
4924 #
4925 if test -x /sbin/sysconfig; then
4926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4927 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4928 esac
4929 fi
4930 ;;
4931 sco3.2v5*)
4932 lt_cv_sys_max_cmd_len=102400
4933 ;;
4934 sysv5* | sco5v6* | sysv4.2uw2*)
4935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4936 if test -n "$kargmax"; then
4937 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4938 else
4939 lt_cv_sys_max_cmd_len=32768
4940 fi
4941 ;;
4942 *)
4943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4944 if test -n "$lt_cv_sys_max_cmd_len"; then
4945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4947 else
4948 # Make teststring a little bigger before we do anything with it.
4949 # a 1K string should be a reasonable start.
4950 for i in 1 2 3 4 5 6 7 8 ; do
4951 teststring=$teststring$teststring
4952 done
4953 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4954 # If test is not a shell built-in, we'll probably end up computing a
4955 # maximum length that is only half of the actual maximum length, but
4956 # we can't tell.
4957 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4958 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4959 test $i != 17 # 1/2 MB should be enough
4960 do
4961 i=`expr $i + 1`
4962 teststring=$teststring$teststring
4963 done
4964 # Only check the string length outside the loop.
4965 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4966 teststring=
4967 # Add a significant safety factor because C++ compilers can tack on
4968 # massive amounts of additional arguments before passing them to the
4969 # linker. It appears as though 1/2 is a usable value.
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4971 fi
4972 ;;
4973 esac
4974
4975 fi
4976
4977 if test -n $lt_cv_sys_max_cmd_len ; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4979 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4982 $as_echo "none" >&6; }
4983 fi
4984 max_cmd_len=$lt_cv_sys_max_cmd_len
4985
4986
4987
4988
4989
4990
4991 : ${CP="cp -f"}
4992 : ${MV="mv -f"}
4993 : ${RM="rm -f"}
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4996 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4997 # Try some XSI features
4998 xsi_shell=no
4999 ( _lt_dummy="a/b/c"
5000 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5001 = c,a/b,b/c, \
5002 && eval 'test $(( 1 + 1 )) -eq 2 \
5003 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5004 && xsi_shell=yes
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5006 $as_echo "$xsi_shell" >&6; }
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5010 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5011 lt_shell_append=no
5012 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5013 >/dev/null 2>&1 \
5014 && lt_shell_append=yes
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5016 $as_echo "$lt_shell_append" >&6; }
5017
5018
5019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 lt_unset=unset
5021 else
5022 lt_unset=false
5023 fi
5024
5025
5026
5027
5028
5029 # test EBCDIC or ASCII
5030 case `echo X|tr X '\101'` in
5031 A) # ASCII based system
5032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5033 lt_SP2NL='tr \040 \012'
5034 lt_NL2SP='tr \015\012 \040\040'
5035 ;;
5036 *) # EBCDIC based system
5037 lt_SP2NL='tr \100 \n'
5038 lt_NL2SP='tr \r\n \100\100'
5039 ;;
5040 esac
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5051 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5052 if ${lt_cv_to_host_file_cmd+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 case $host in
5056 *-*-mingw* )
5057 case $build in
5058 *-*-mingw* ) # actually msys
5059 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5060 ;;
5061 *-*-cygwin* )
5062 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5063 ;;
5064 * ) # otherwise, assume *nix
5065 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5066 ;;
5067 esac
5068 ;;
5069 *-*-cygwin* )
5070 case $build in
5071 *-*-mingw* ) # actually msys
5072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5073 ;;
5074 *-*-cygwin* )
5075 lt_cv_to_host_file_cmd=func_convert_file_noop
5076 ;;
5077 * ) # otherwise, assume *nix
5078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079 ;;
5080 esac
5081 ;;
5082 * ) # unhandled hosts (and "normal" native builds)
5083 lt_cv_to_host_file_cmd=func_convert_file_noop
5084 ;;
5085 esac
5086
5087 fi
5088
5089 to_host_file_cmd=$lt_cv_to_host_file_cmd
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5091 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5098 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5099 if ${lt_cv_to_tool_file_cmd+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 #assume ordinary cross tools, or native build.
5103 lt_cv_to_tool_file_cmd=func_convert_file_noop
5104 case $host in
5105 *-*-mingw* )
5106 case $build in
5107 *-*-mingw* ) # actually msys
5108 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5109 ;;
5110 esac
5111 ;;
5112 esac
5113
5114 fi
5115
5116 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5118 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5119
5120
5121
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5125 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5126 if ${lt_cv_ld_reload_flag+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 lt_cv_ld_reload_flag='-r'
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5132 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5133 reload_flag=$lt_cv_ld_reload_flag
5134 case $reload_flag in
5135 "" | " "*) ;;
5136 *) reload_flag=" $reload_flag" ;;
5137 esac
5138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139 case $host_os in
5140 cygwin* | mingw* | pw32* | cegcc*)
5141 if test "$GCC" != yes; then
5142 reload_cmds=false
5143 fi
5144 ;;
5145 darwin*)
5146 if test "$GCC" = yes; then
5147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5148 else
5149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5150 fi
5151 ;;
5152 esac
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_OBJDUMP+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$OBJDUMP"; then
5171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 OBJDUMP=$ac_cv_prog_OBJDUMP
5191 if test -n "$OBJDUMP"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5193 $as_echo "$OBJDUMP" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_OBJDUMP"; then
5202 ac_ct_OBJDUMP=$OBJDUMP
5203 # Extract the first word of "objdump", so it can be a program name with args.
5204 set dummy objdump; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_OBJDUMP"; then
5211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5231 if test -n "$ac_ct_OBJDUMP"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5233 $as_echo "$ac_ct_OBJDUMP" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239 if test "x$ac_ct_OBJDUMP" = x; then
5240 OBJDUMP="false"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 OBJDUMP=$ac_ct_OBJDUMP
5249 fi
5250 else
5251 OBJDUMP="$ac_cv_prog_OBJDUMP"
5252 fi
5253
5254 test -z "$OBJDUMP" && OBJDUMP=objdump
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5265 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5266 if ${lt_cv_deplibs_check_method+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 lt_cv_file_magic_cmd='$MAGIC_CMD'
5270 lt_cv_file_magic_test_file=
5271 lt_cv_deplibs_check_method='unknown'
5272 # Need to set the preceding variable on all platforms that support
5273 # interlibrary dependencies.
5274 # 'none' -- dependencies not supported.
5275 # `unknown' -- same as none, but documents that we really don't know.
5276 # 'pass_all' -- all dependencies passed with no checks.
5277 # 'test_compile' -- check by making test program.
5278 # 'file_magic [[regex]]' -- check by looking for files in library path
5279 # which responds to the $file_magic_cmd with a given extended regex.
5280 # If you have `file' or equivalent on your system and you're not sure
5281 # whether `pass_all' will *always* work, you probably want this one.
5282
5283 case $host_os in
5284 aix[4-9]*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 beos*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 bsdi[45]*)
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5294 lt_cv_file_magic_cmd='/usr/bin/file -L'
5295 lt_cv_file_magic_test_file=/shlib/libc.so
5296 ;;
5297
5298 cygwin*)
5299 # func_win32_libid is a shell function defined in ltmain.sh
5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301 lt_cv_file_magic_cmd='func_win32_libid'
5302 ;;
5303
5304 mingw* | pw32*)
5305 # Base MSYS/MinGW do not provide the 'file' command needed by
5306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5307 # unless we find 'file', for example because we are cross-compiling.
5308 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5309 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5311 lt_cv_file_magic_cmd='func_win32_libid'
5312 else
5313 # Keep this pattern in sync with the one in func_win32_libid.
5314 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5315 lt_cv_file_magic_cmd='$OBJDUMP -f'
5316 fi
5317 ;;
5318
5319 cegcc*)
5320 # use the weaker test based on 'objdump'. See mingw*.
5321 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5322 lt_cv_file_magic_cmd='$OBJDUMP -f'
5323 ;;
5324
5325 darwin* | rhapsody*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329 freebsd* | dragonfly*)
5330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5331 case $host_cpu in
5332 i*86 )
5333 # Not sure whether the presence of OpenBSD here was a mistake.
5334 # Let's accept both of them until this is cleared up.
5335 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5336 lt_cv_file_magic_cmd=/usr/bin/file
5337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5338 ;;
5339 esac
5340 else
5341 lt_cv_deplibs_check_method=pass_all
5342 fi
5343 ;;
5344
5345 gnu*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 haiku*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 hpux10.20* | hpux11*)
5354 lt_cv_file_magic_cmd=/usr/bin/file
5355 case $host_cpu in
5356 ia64*)
5357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5358 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5359 ;;
5360 hppa*64*)
5361 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]'
5362 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5363 ;;
5364 *)
5365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5366 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5367 ;;
5368 esac
5369 ;;
5370
5371 interix[3-9]*)
5372 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5374 ;;
5375
5376 irix5* | irix6* | nonstopux*)
5377 case $LD in
5378 *-32|*"-32 ") libmagic=32-bit;;
5379 *-n32|*"-n32 ") libmagic=N32;;
5380 *-64|*"-64 ") libmagic=64-bit;;
5381 *) libmagic=never-match;;
5382 esac
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 # This must be glibc/ELF.
5387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391 netbsd*)
5392 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5394 else
5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5396 fi
5397 ;;
5398
5399 newos6*)
5400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5401 lt_cv_file_magic_cmd=/usr/bin/file
5402 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5403 ;;
5404
5405 *nto* | *qnx*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 openbsd*)
5410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5412 else
5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5414 fi
5415 ;;
5416
5417 osf3* | osf4* | osf5*)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420
5421 rdos*)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424
5425 solaris*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 sysv4 | sysv4.3*)
5434 case $host_vendor in
5435 motorola)
5436 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]'
5437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5438 ;;
5439 ncr)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5442 sequent)
5443 lt_cv_file_magic_cmd='/bin/file'
5444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5445 ;;
5446 sni)
5447 lt_cv_file_magic_cmd='/bin/file'
5448 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5449 lt_cv_file_magic_test_file=/lib/libc.so
5450 ;;
5451 siemens)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454 pc)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457 esac
5458 ;;
5459
5460 tpf*)
5461 lt_cv_deplibs_check_method=pass_all
5462 ;;
5463 esac
5464
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5468
5469 file_magic_glob=
5470 want_nocaseglob=no
5471 if test "$build" = "$host"; then
5472 case $host_os in
5473 mingw* | pw32*)
5474 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5475 want_nocaseglob=yes
5476 else
5477 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5478 fi
5479 ;;
5480 esac
5481 fi
5482
5483 file_magic_cmd=$lt_cv_file_magic_cmd
5484 deplibs_check_method=$lt_cv_deplibs_check_method
5485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 if test -n "$ac_tool_prefix"; then
5509 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_DLLTOOL+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$DLLTOOL"; then
5517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 DLLTOOL=$ac_cv_prog_DLLTOOL
5537 if test -n "$DLLTOOL"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5539 $as_echo "$DLLTOOL" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 fi
5547 if test -z "$ac_cv_prog_DLLTOOL"; then
5548 ac_ct_DLLTOOL=$DLLTOOL
5549 # Extract the first word of "dlltool", so it can be a program name with args.
5550 set dummy dlltool; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$ac_ct_DLLTOOL"; then
5557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5577 if test -n "$ac_ct_DLLTOOL"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5579 $as_echo "$ac_ct_DLLTOOL" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584
5585 if test "x$ac_ct_DLLTOOL" = x; then
5586 DLLTOOL="false"
5587 else
5588 case $cross_compiling:$ac_tool_warned in
5589 yes:)
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5593 esac
5594 DLLTOOL=$ac_ct_DLLTOOL
5595 fi
5596 else
5597 DLLTOOL="$ac_cv_prog_DLLTOOL"
5598 fi
5599
5600 test -z "$DLLTOOL" && DLLTOOL=dlltool
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 lt_cv_sharedlib_from_linklib_cmd='unknown'
5617
5618 case $host_os in
5619 cygwin* | mingw* | pw32* | cegcc*)
5620 # two different shell functions defined in ltmain.sh
5621 # decide which to use based on capabilities of $DLLTOOL
5622 case `$DLLTOOL --help 2>&1` in
5623 *--identify-strict*)
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5625 ;;
5626 *)
5627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5628 ;;
5629 esac
5630 ;;
5631 *)
5632 # fallback: assume linklib IS sharedlib
5633 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5634 ;;
5635 esac
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5642
5643
5644
5645
5646
5647
5648
5649
5650 if test -n "$ac_tool_prefix"; then
5651 for ac_prog in ar
5652 do
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_AR+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$AR"; then
5661 ac_cv_prog_AR="$AR" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 AR=$ac_cv_prog_AR
5681 if test -n "$AR"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5683 $as_echo "$AR" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689
5690 test -n "$AR" && break
5691 done
5692 fi
5693 if test -z "$AR"; then
5694 ac_ct_AR=$AR
5695 for ac_prog in ar
5696 do
5697 # Extract the first word of "$ac_prog", so it can be a program name with args.
5698 set dummy $ac_prog; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$ac_ct_AR"; then
5705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_ac_ct_AR="$ac_prog"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718 done
5719 done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5725 if test -n "$ac_ct_AR"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5727 $as_echo "$ac_ct_AR" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 test -n "$ac_ct_AR" && break
5735 done
5736
5737 if test "x$ac_ct_AR" = x; then
5738 AR="false"
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 AR=$ac_ct_AR
5747 fi
5748 fi
5749
5750 : ${AR=ar}
5751 : ${AR_FLAGS=cru}
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5764 $as_echo_n "checking for archiver @FILE support... " >&6; }
5765 if ${lt_cv_ar_at_file+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 lt_cv_ar_at_file=no
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771
5772 int
5773 main ()
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 echo conftest.$ac_objext > conftest.lst
5782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5784 (eval $lt_ar_try) 2>&5
5785 ac_status=$?
5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787 test $ac_status = 0; }
5788 if test "$ac_status" -eq 0; then
5789 # Ensure the archiver fails upon bogus file names.
5790 rm -f conftest.$ac_objext libconftest.a
5791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5792 (eval $lt_ar_try) 2>&5
5793 ac_status=$?
5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795 test $ac_status = 0; }
5796 if test "$ac_status" -ne 0; then
5797 lt_cv_ar_at_file=@
5798 fi
5799 fi
5800 rm -f conftest.* libconftest.a
5801
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5807 $as_echo "$lt_cv_ar_at_file" >&6; }
5808
5809 if test "x$lt_cv_ar_at_file" = xno; then
5810 archiver_list_spec=
5811 else
5812 archiver_list_spec=$lt_cv_ar_at_file
5813 fi
5814
5815
5816
5817
5818
5819
5820
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}strip; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_STRIP+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$STRIP"; then
5830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 STRIP=$ac_cv_prog_STRIP
5850 if test -n "$STRIP"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5852 $as_echo "$STRIP" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if test -z "$ac_cv_prog_STRIP"; then
5861 ac_ct_STRIP=$STRIP
5862 # Extract the first word of "strip", so it can be a program name with args.
5863 set dummy strip; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$ac_ct_STRIP"; then
5870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_STRIP="strip"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5890 if test -n "$ac_ct_STRIP"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5892 $as_echo "$ac_ct_STRIP" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898 if test "x$ac_ct_STRIP" = x; then
5899 STRIP=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907 STRIP=$ac_ct_STRIP
5908 fi
5909 else
5910 STRIP="$ac_cv_prog_STRIP"
5911 fi
5912
5913 test -z "$STRIP" && STRIP=:
5914
5915
5916
5917
5918
5919
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_RANLIB+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$RANLIB"; then
5929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 RANLIB=$ac_cv_prog_RANLIB
5949 if test -n "$RANLIB"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5951 $as_echo "$RANLIB" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957
5958 fi
5959 if test -z "$ac_cv_prog_RANLIB"; then
5960 ac_ct_RANLIB=$RANLIB
5961 # Extract the first word of "ranlib", so it can be a program name with args.
5962 set dummy ranlib; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$ac_ct_RANLIB"; then
5969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_RANLIB="ranlib"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5989 if test -n "$ac_ct_RANLIB"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5991 $as_echo "$ac_ct_RANLIB" >&6; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997 if test "x$ac_ct_RANLIB" = x; then
5998 RANLIB=":"
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006 RANLIB=$ac_ct_RANLIB
6007 fi
6008 else
6009 RANLIB="$ac_cv_prog_RANLIB"
6010 fi
6011
6012 test -z "$RANLIB" && RANLIB=:
6013
6014
6015
6016
6017
6018
6019 # Determine commands to create old-style static archives.
6020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6021 old_postinstall_cmds='chmod 644 $oldlib'
6022 old_postuninstall_cmds=
6023
6024 if test -n "$RANLIB"; then
6025 case $host_os in
6026 openbsd*)
6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6028 ;;
6029 *)
6030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6031 ;;
6032 esac
6033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6034 fi
6035
6036 case $host_os in
6037 darwin*)
6038 lock_old_archive_extraction=yes ;;
6039 *)
6040 lock_old_archive_extraction=no ;;
6041 esac
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 # If no C compiler was specified, use CC.
6082 LTCC=${LTCC-"$CC"}
6083
6084 # If no C compiler flags were specified, use CFLAGS.
6085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6086
6087 # Allow CC to be a program name with arguments.
6088 compiler=$CC
6089
6090
6091 # Check for command to grab the raw symbol name followed by C symbol from nm.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097
6098 # These are sane defaults that work on at least a few old systems.
6099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6100
6101 # Character class describing NM global symbol codes.
6102 symcode='[BCDEGRST]'
6103
6104 # Regexp to match symbols that can be accessed directly from C.
6105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6106
6107 # Define system-specific variables.
6108 case $host_os in
6109 aix*)
6110 symcode='[BCDT]'
6111 ;;
6112 cygwin* | mingw* | pw32* | cegcc*)
6113 symcode='[ABCDGISTW]'
6114 ;;
6115 hpux*)
6116 if test "$host_cpu" = ia64; then
6117 symcode='[ABCDEGRST]'
6118 fi
6119 ;;
6120 irix* | nonstopux*)
6121 symcode='[BCDEGRST]'
6122 ;;
6123 osf*)
6124 symcode='[BCDEGQRST]'
6125 ;;
6126 solaris*)
6127 symcode='[BDRT]'
6128 ;;
6129 sco3.2v5*)
6130 symcode='[DT]'
6131 ;;
6132 sysv4.2uw2*)
6133 symcode='[DT]'
6134 ;;
6135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6136 symcode='[ABDT]'
6137 ;;
6138 sysv4)
6139 symcode='[DFNSTU]'
6140 ;;
6141 esac
6142
6143 # If we're using GNU nm, then use its standard symbol codes.
6144 case `$NM -V 2>&1` in
6145 *GNU* | *'with BFD'*)
6146 symcode='[ABCDGIRSTW]' ;;
6147 esac
6148
6149 # Transform an extracted symbol line into a proper C declaration.
6150 # Some systems (esp. on ia64) link data and code symbols differently,
6151 # so use this general approach.
6152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6153
6154 # Transform an extracted symbol line into symbol name and symbol address
6155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6157
6158 # Handle CRLF in mingw tool chain
6159 opt_cr=
6160 case $build_os in
6161 mingw*)
6162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6163 ;;
6164 esac
6165
6166 # Try without a prefix underscore, then with it.
6167 for ac_symprfx in "" "_"; do
6168
6169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6170 symxfrm="\\1 $ac_symprfx\\2 \\2"
6171
6172 # Write the raw and C identifiers.
6173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6174 # Fake it for dumpbin and say T for any non-static function
6175 # and D for any global variable.
6176 # Also find C++ and __fastcall symbols from MSVC++,
6177 # which start with @ or ?.
6178 lt_cv_sys_global_symbol_pipe="$AWK '"\
6179 " {last_section=section; section=\$ 3};"\
6180 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6181 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6182 " \$ 0!~/External *\|/{next};"\
6183 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6184 " {if(hide[section]) next};"\
6185 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6186 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6187 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6188 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6189 " ' prfx=^$ac_symprfx"
6190 else
6191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6192 fi
6193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6194
6195 # Check to see that the pipe works correctly.
6196 pipe_works=no
6197
6198 rm -f conftest*
6199 cat > conftest.$ac_ext <<_LT_EOF
6200 #ifdef __cplusplus
6201 extern "C" {
6202 #endif
6203 char nm_test_var;
6204 void nm_test_func(void);
6205 void nm_test_func(void){}
6206 #ifdef __cplusplus
6207 }
6208 #endif
6209 int main(){nm_test_var='a';nm_test_func();return(0);}
6210 _LT_EOF
6211
6212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6213 (eval $ac_compile) 2>&5
6214 ac_status=$?
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; then
6217 # Now try to grab the symbols.
6218 nlist=conftest.nm
6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; } && test -s "$nlist"; then
6224 # Try sorting and uniquifying the output.
6225 if sort "$nlist" | uniq > "$nlist"T; then
6226 mv -f "$nlist"T "$nlist"
6227 else
6228 rm -f "$nlist"T
6229 fi
6230
6231 # Make sure that we snagged all the symbols we need.
6232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6234 cat <<_LT_EOF > conftest.$ac_ext
6235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6238 relocations are performed -- see ld's documentation on pseudo-relocs. */
6239 # define LT_DLSYM_CONST
6240 #elif defined(__osf__)
6241 /* This system does not cope well with relocations in const data. */
6242 # define LT_DLSYM_CONST
6243 #else
6244 # define LT_DLSYM_CONST const
6245 #endif
6246
6247 #ifdef __cplusplus
6248 extern "C" {
6249 #endif
6250
6251 _LT_EOF
6252 # Now generate the symbol file.
6253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6254
6255 cat <<_LT_EOF >> conftest.$ac_ext
6256
6257 /* The mapping between symbol names and symbols. */
6258 LT_DLSYM_CONST struct {
6259 const char *name;
6260 void *address;
6261 }
6262 lt__PROGRAM__LTX_preloaded_symbols[] =
6263 {
6264 { "@PROGRAM@", (void *) 0 },
6265 _LT_EOF
6266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6267 cat <<\_LT_EOF >> conftest.$ac_ext
6268 {0, (void *) 0}
6269 };
6270
6271 /* This works around a problem in FreeBSD linker */
6272 #ifdef FREEBSD_WORKAROUND
6273 static const void *lt_preloaded_setup() {
6274 return lt__PROGRAM__LTX_preloaded_symbols;
6275 }
6276 #endif
6277
6278 #ifdef __cplusplus
6279 }
6280 #endif
6281 _LT_EOF
6282 # Now try linking the two files.
6283 mv conftest.$ac_objext conftstm.$ac_objext
6284 lt_globsym_save_LIBS=$LIBS
6285 lt_globsym_save_CFLAGS=$CFLAGS
6286 LIBS="conftstm.$ac_objext"
6287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6289 (eval $ac_link) 2>&5
6290 ac_status=$?
6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6293 pipe_works=yes
6294 fi
6295 LIBS=$lt_globsym_save_LIBS
6296 CFLAGS=$lt_globsym_save_CFLAGS
6297 else
6298 echo "cannot find nm_test_func in $nlist" >&5
6299 fi
6300 else
6301 echo "cannot find nm_test_var in $nlist" >&5
6302 fi
6303 else
6304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6305 fi
6306 else
6307 echo "$progname: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 fi
6310 rm -rf conftest* conftst*
6311
6312 # Do not use the global_symbol_pipe unless it works.
6313 if test "$pipe_works" = yes; then
6314 break
6315 else
6316 lt_cv_sys_global_symbol_pipe=
6317 fi
6318 done
6319
6320 fi
6321
6322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6323 lt_cv_sys_global_symbol_to_cdecl=
6324 fi
6325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6327 $as_echo "failed" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6330 $as_echo "ok" >&6; }
6331 fi
6332
6333 # Response file support.
6334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6335 nm_file_list_spec='@'
6336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6337 nm_file_list_spec='@'
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6367 $as_echo_n "checking for sysroot... " >&6; }
6368
6369 # Check whether --with-sysroot was given.
6370 if test "${with_sysroot+set}" = set; then :
6371 withval=$with_sysroot;
6372 else
6373 with_sysroot=no
6374 fi
6375
6376
6377 lt_sysroot=
6378 case ${with_sysroot} in #(
6379 yes)
6380 if test "$GCC" = yes; then
6381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6382 fi
6383 ;; #(
6384 /*)
6385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6386 ;; #(
6387 no|'')
6388 ;; #(
6389 *)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6391 $as_echo "${with_sysroot}" >&6; }
6392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6393 ;;
6394 esac
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6397 $as_echo "${lt_sysroot:-no}" >&6; }
6398
6399
6400
6401
6402
6403 # Check whether --enable-libtool-lock was given.
6404 if test "${enable_libtool_lock+set}" = set; then :
6405 enableval=$enable_libtool_lock;
6406 fi
6407
6408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6409
6410 # Some flags need to be propagated to the compiler or linker for good
6411 # libtool support.
6412 case $host in
6413 ia64-*-hpux*)
6414 # Find out which ABI we are using.
6415 echo 'int i;' > conftest.$ac_ext
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 case `/usr/bin/file conftest.$ac_objext` in
6422 *ELF-32*)
6423 HPUX_IA64_MODE="32"
6424 ;;
6425 *ELF-64*)
6426 HPUX_IA64_MODE="64"
6427 ;;
6428 esac
6429 fi
6430 rm -rf conftest*
6431 ;;
6432 *-*-irix6*)
6433 # Find out which ABI we are using.
6434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436 (eval $ac_compile) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }; then
6440 if test "$lt_cv_prog_gnu_ld" = yes; then
6441 case `/usr/bin/file conftest.$ac_objext` in
6442 *32-bit*)
6443 LD="${LD-ld} -melf32bsmip"
6444 ;;
6445 *N32*)
6446 LD="${LD-ld} -melf32bmipn32"
6447 ;;
6448 *64-bit*)
6449 LD="${LD-ld} -melf64bmip"
6450 ;;
6451 esac
6452 else
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *32-bit*)
6455 LD="${LD-ld} -32"
6456 ;;
6457 *N32*)
6458 LD="${LD-ld} -n32"
6459 ;;
6460 *64-bit*)
6461 LD="${LD-ld} -64"
6462 ;;
6463 esac
6464 fi
6465 fi
6466 rm -rf conftest*
6467 ;;
6468
6469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6471 # Find out which ABI we are using.
6472 echo 'int i;' > conftest.$ac_ext
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 case `/usr/bin/file conftest.o` in
6479 *32-bit*)
6480 case $host in
6481 x86_64-*kfreebsd*-gnu)
6482 LD="${LD-ld} -m elf_i386_fbsd"
6483 ;;
6484 x86_64-*linux*)
6485 LD="${LD-ld} -m elf_i386"
6486 ;;
6487 ppc64-*linux*|powerpc64-*linux*)
6488 LD="${LD-ld} -m elf32ppclinux"
6489 ;;
6490 s390x-*linux*)
6491 LD="${LD-ld} -m elf_s390"
6492 ;;
6493 sparc64-*linux*)
6494 LD="${LD-ld} -m elf32_sparc"
6495 ;;
6496 esac
6497 ;;
6498 *64-bit*)
6499 case $host in
6500 x86_64-*kfreebsd*-gnu)
6501 LD="${LD-ld} -m elf_x86_64_fbsd"
6502 ;;
6503 x86_64-*linux*)
6504 LD="${LD-ld} -m elf_x86_64"
6505 ;;
6506 ppc*-*linux*|powerpc*-*linux*)
6507 LD="${LD-ld} -m elf64ppc"
6508 ;;
6509 s390*-*linux*|s390*-*tpf*)
6510 LD="${LD-ld} -m elf64_s390"
6511 ;;
6512 sparc*-*linux*)
6513 LD="${LD-ld} -m elf64_sparc"
6514 ;;
6515 esac
6516 ;;
6517 esac
6518 fi
6519 rm -rf conftest*
6520 ;;
6521
6522 *-*-sco3.2v5*)
6523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6524 SAVE_CFLAGS="$CFLAGS"
6525 CFLAGS="$CFLAGS -belf"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6528 if ${lt_cv_cc_needs_belf+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 ac_ext=c
6532 ac_cpp='$CPP $CPPFLAGS'
6533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539
6540 int
6541 main ()
6542 {
6543
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_link "$LINENO"; then :
6549 lt_cv_cc_needs_belf=yes
6550 else
6551 lt_cv_cc_needs_belf=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566 CFLAGS="$SAVE_CFLAGS"
6567 fi
6568 ;;
6569 *-*solaris*)
6570 # Find out which ABI we are using.
6571 echo 'int i;' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 case `/usr/bin/file conftest.o` in
6578 *64-bit*)
6579 case $lt_cv_prog_gnu_ld in
6580 yes*)
6581 case $host in
6582 i?86-*-solaris*)
6583 LD="${LD-ld} -m elf_x86_64"
6584 ;;
6585 sparc*-*-solaris*)
6586 LD="${LD-ld} -m elf64_sparc"
6587 ;;
6588 esac
6589 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6590 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6591 LD="${LD-ld}_sol2"
6592 fi
6593 ;;
6594 *)
6595 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6596 LD="${LD-ld} -64"
6597 fi
6598 ;;
6599 esac
6600 ;;
6601 esac
6602 fi
6603 rm -rf conftest*
6604 ;;
6605 esac
6606
6607 need_locks="$enable_libtool_lock"
6608
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}mt; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$MANIFEST_TOOL"; then
6618 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6638 if test -n "$MANIFEST_TOOL"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6640 $as_echo "$MANIFEST_TOOL" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6649 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6650 # Extract the first word of "mt", so it can be a program name with args.
6651 set dummy mt; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 if test -n "$ac_ct_MANIFEST_TOOL"; then
6658 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6678 if test -n "$ac_ct_MANIFEST_TOOL"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6680 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6687 MANIFEST_TOOL=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6696 fi
6697 else
6698 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6699 fi
6700
6701 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6703 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6704 if ${lt_cv_path_mainfest_tool+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 lt_cv_path_mainfest_tool=no
6708 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6709 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6710 cat conftest.err >&5
6711 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6712 lt_cv_path_mainfest_tool=yes
6713 fi
6714 rm -f conftest*
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6717 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6718 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6719 MANIFEST_TOOL=:
6720 fi
6721
6722
6723
6724
6725
6726
6727 case $host_os in
6728 rhapsody* | darwin*)
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$DSYMUTIL"; then
6738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6758 if test -n "$DSYMUTIL"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6760 $as_echo "$DSYMUTIL" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_DSYMUTIL"; then
6769 ac_ct_DSYMUTIL=$DSYMUTIL
6770 # Extract the first word of "dsymutil", so it can be a program name with args.
6771 set dummy dsymutil; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_DSYMUTIL"; then
6778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6798 if test -n "$ac_ct_DSYMUTIL"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6800 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806 if test "x$ac_ct_DSYMUTIL" = x; then
6807 DSYMUTIL=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 DSYMUTIL=$ac_ct_DSYMUTIL
6816 fi
6817 else
6818 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6819 fi
6820
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_NMEDIT+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$NMEDIT"; then
6830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 NMEDIT=$ac_cv_prog_NMEDIT
6850 if test -n "$NMEDIT"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6852 $as_echo "$NMEDIT" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_NMEDIT"; then
6861 ac_ct_NMEDIT=$NMEDIT
6862 # Extract the first word of "nmedit", so it can be a program name with args.
6863 set dummy nmedit; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_NMEDIT"; then
6870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6890 if test -n "$ac_ct_NMEDIT"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6892 $as_echo "$ac_ct_NMEDIT" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898 if test "x$ac_ct_NMEDIT" = x; then
6899 NMEDIT=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 NMEDIT=$ac_ct_NMEDIT
6908 fi
6909 else
6910 NMEDIT="$ac_cv_prog_NMEDIT"
6911 fi
6912
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_LIPO+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$LIPO"; then
6922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 LIPO=$ac_cv_prog_LIPO
6942 if test -n "$LIPO"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6944 $as_echo "$LIPO" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950
6951 fi
6952 if test -z "$ac_cv_prog_LIPO"; then
6953 ac_ct_LIPO=$LIPO
6954 # Extract the first word of "lipo", so it can be a program name with args.
6955 set dummy lipo; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_LIPO"; then
6962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_LIPO="lipo"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6982 if test -n "$ac_ct_LIPO"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6984 $as_echo "$ac_ct_LIPO" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990 if test "x$ac_ct_LIPO" = x; then
6991 LIPO=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 LIPO=$ac_ct_LIPO
7000 fi
7001 else
7002 LIPO="$ac_cv_prog_LIPO"
7003 fi
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}otool; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_OTOOL+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$OTOOL"; then
7014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 OTOOL=$ac_cv_prog_OTOOL
7034 if test -n "$OTOOL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7036 $as_echo "$OTOOL" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_OTOOL"; then
7045 ac_ct_OTOOL=$OTOOL
7046 # Extract the first word of "otool", so it can be a program name with args.
7047 set dummy otool; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_OTOOL"; then
7054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_OTOOL="otool"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7074 if test -n "$ac_ct_OTOOL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7076 $as_echo "$ac_ct_OTOOL" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_OTOOL" = x; then
7083 OTOOL=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 OTOOL=$ac_ct_OTOOL
7092 fi
7093 else
7094 OTOOL="$ac_cv_prog_OTOOL"
7095 fi
7096
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_OTOOL64+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$OTOOL64"; then
7106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 OTOOL64=$ac_cv_prog_OTOOL64
7126 if test -n "$OTOOL64"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7128 $as_echo "$OTOOL64" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134
7135 fi
7136 if test -z "$ac_cv_prog_OTOOL64"; then
7137 ac_ct_OTOOL64=$OTOOL64
7138 # Extract the first word of "otool64", so it can be a program name with args.
7139 set dummy otool64; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$ac_ct_OTOOL64"; then
7146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_OTOOL64="otool64"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7166 if test -n "$ac_ct_OTOOL64"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7168 $as_echo "$ac_ct_OTOOL64" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174 if test "x$ac_ct_OTOOL64" = x; then
7175 OTOOL64=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 OTOOL64=$ac_ct_OTOOL64
7184 fi
7185 else
7186 OTOOL64="$ac_cv_prog_OTOOL64"
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7216 $as_echo_n "checking for -single_module linker flag... " >&6; }
7217 if ${lt_cv_apple_cc_single_mod+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 lt_cv_apple_cc_single_mod=no
7221 if test -z "${LT_MULTI_MODULE}"; then
7222 # By default we will add the -single_module flag. You can override
7223 # by either setting the environment variable LT_MULTI_MODULE
7224 # non-empty at configure time, or by adding -multi_module to the
7225 # link flags.
7226 rm -rf libconftest.dylib*
7227 echo "int foo(void){return 1;}" > conftest.c
7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7229 -dynamiclib -Wl,-single_module conftest.c" >&5
7230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7232 _lt_result=$?
7233 # If there is a non-empty error log, and "single_module"
7234 # appears in it, assume the flag caused a linker warning
7235 if test -s conftest.err && $GREP single_module conftest.err; then
7236 cat conftest.err >&5
7237 # Otherwise, if the output was created with a 0 exit code from
7238 # the compiler, it worked.
7239 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7240 lt_cv_apple_cc_single_mod=yes
7241 else
7242 cat conftest.err >&5
7243 fi
7244 rm -rf libconftest.dylib*
7245 rm -f conftest.*
7246 fi
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7249 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7252 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7253 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 lt_cv_ld_exported_symbols_list=no
7257 save_LDFLAGS=$LDFLAGS
7258 echo "_main" > conftest.sym
7259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262
7263 int
7264 main ()
7265 {
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 lt_cv_ld_exported_symbols_list=yes
7273 else
7274 lt_cv_ld_exported_symbols_list=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7278 LDFLAGS="$save_LDFLAGS"
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7282 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7285 $as_echo_n "checking for -force_load linker flag... " >&6; }
7286 if ${lt_cv_ld_force_load+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 lt_cv_ld_force_load=no
7290 cat > conftest.c << _LT_EOF
7291 int forced_loaded() { return 2;}
7292 _LT_EOF
7293 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7294 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7295 echo "$AR cru libconftest.a conftest.o" >&5
7296 $AR cru libconftest.a conftest.o 2>&5
7297 echo "$RANLIB libconftest.a" >&5
7298 $RANLIB libconftest.a 2>&5
7299 cat > conftest.c << _LT_EOF
7300 int main() { return 0;}
7301 _LT_EOF
7302 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7303 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7304 _lt_result=$?
7305 if test -s conftest.err && $GREP force_load conftest.err; then
7306 cat conftest.err >&5
7307 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7308 lt_cv_ld_force_load=yes
7309 else
7310 cat conftest.err >&5
7311 fi
7312 rm -f conftest.err libconftest.a conftest conftest.c
7313 rm -rf conftest.dSYM
7314
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7317 $as_echo "$lt_cv_ld_force_load" >&6; }
7318 case $host_os in
7319 rhapsody* | darwin1.[012])
7320 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7321 darwin1.*)
7322 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7323 darwin*) # darwin 5.x on
7324 # if running on 10.5 or later, the deployment target defaults
7325 # to the OS version, if on x86, and 10.4, the deployment
7326 # target defaults to 10.4. Don't you love it?
7327 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7328 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7329 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7330 10.[012]*)
7331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7332 10.*)
7333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7334 esac
7335 ;;
7336 esac
7337 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7338 _lt_dar_single_mod='$single_module'
7339 fi
7340 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7341 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7342 else
7343 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7344 fi
7345 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7346 _lt_dsymutil='~$DSYMUTIL $lib || :'
7347 else
7348 _lt_dsymutil=
7349 fi
7350 ;;
7351 esac
7352
7353 ac_ext=c
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7359 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7360 # On Suns, sometimes $CPP names a directory.
7361 if test -n "$CPP" && test -d "$CPP"; then
7362 CPP=
7363 fi
7364 if test -z "$CPP"; then
7365 if ${ac_cv_prog_CPP+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 # Double quotes because CPP needs to be expanded
7369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7370 do
7371 ac_preproc_ok=false
7372 for ac_c_preproc_warn_flag in '' yes
7373 do
7374 # Use a header file that comes with gcc, so configuring glibc
7375 # with a fresh cross-compiler works.
7376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 # <limits.h> exists even on freestanding compilers.
7378 # On the NeXT, cc -E runs the code through the compiler's parser,
7379 # not just through cpp. "Syntax error" is here to catch this case.
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 #ifdef __STDC__
7383 # include <limits.h>
7384 #else
7385 # include <assert.h>
7386 #endif
7387 Syntax error
7388 _ACEOF
7389 if ac_fn_c_try_cpp "$LINENO"; then :
7390
7391 else
7392 # Broken: fails on valid input.
7393 continue
7394 fi
7395 rm -f conftest.err conftest.i conftest.$ac_ext
7396
7397 # OK, works on sane cases. Now check whether nonexistent headers
7398 # can be detected and how.
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <ac_nonexistent.h>
7402 _ACEOF
7403 if ac_fn_c_try_cpp "$LINENO"; then :
7404 # Broken: success on invalid input.
7405 continue
7406 else
7407 # Passes both tests.
7408 ac_preproc_ok=:
7409 break
7410 fi
7411 rm -f conftest.err conftest.i conftest.$ac_ext
7412
7413 done
7414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7415 rm -f conftest.i conftest.err conftest.$ac_ext
7416 if $ac_preproc_ok; then :
7417 break
7418 fi
7419
7420 done
7421 ac_cv_prog_CPP=$CPP
7422
7423 fi
7424 CPP=$ac_cv_prog_CPP
7425 else
7426 ac_cv_prog_CPP=$CPP
7427 fi
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7429 $as_echo "$CPP" >&6; }
7430 ac_preproc_ok=false
7431 for ac_c_preproc_warn_flag in '' yes
7432 do
7433 # Use a header file that comes with gcc, so configuring glibc
7434 # with a fresh cross-compiler works.
7435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7436 # <limits.h> exists even on freestanding compilers.
7437 # On the NeXT, cc -E runs the code through the compiler's parser,
7438 # not just through cpp. "Syntax error" is here to catch this case.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #ifdef __STDC__
7442 # include <limits.h>
7443 #else
7444 # include <assert.h>
7445 #endif
7446 Syntax error
7447 _ACEOF
7448 if ac_fn_c_try_cpp "$LINENO"; then :
7449
7450 else
7451 # Broken: fails on valid input.
7452 continue
7453 fi
7454 rm -f conftest.err conftest.i conftest.$ac_ext
7455
7456 # OK, works on sane cases. Now check whether nonexistent headers
7457 # can be detected and how.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <ac_nonexistent.h>
7461 _ACEOF
7462 if ac_fn_c_try_cpp "$LINENO"; then :
7463 # Broken: success on invalid input.
7464 continue
7465 else
7466 # Passes both tests.
7467 ac_preproc_ok=:
7468 break
7469 fi
7470 rm -f conftest.err conftest.i conftest.$ac_ext
7471
7472 done
7473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7474 rm -f conftest.i conftest.err conftest.$ac_ext
7475 if $ac_preproc_ok; then :
7476
7477 else
7478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7480 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7481 See \`config.log' for more details" "$LINENO" 5; }
7482 fi
7483
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7492 $as_echo_n "checking for ANSI C header files... " >&6; }
7493 if ${ac_cv_header_stdc+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 #include <stdlib.h>
7499 #include <stdarg.h>
7500 #include <string.h>
7501 #include <float.h>
7502
7503 int
7504 main ()
7505 {
7506
7507 ;
7508 return 0;
7509 }
7510 _ACEOF
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512 ac_cv_header_stdc=yes
7513 else
7514 ac_cv_header_stdc=no
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517
7518 if test $ac_cv_header_stdc = yes; then
7519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <string.h>
7523
7524 _ACEOF
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "memchr" >/dev/null 2>&1; then :
7527
7528 else
7529 ac_cv_header_stdc=no
7530 fi
7531 rm -f conftest*
7532
7533 fi
7534
7535 if test $ac_cv_header_stdc = yes; then
7536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #include <stdlib.h>
7540
7541 _ACEOF
7542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7543 $EGREP "free" >/dev/null 2>&1; then :
7544
7545 else
7546 ac_cv_header_stdc=no
7547 fi
7548 rm -f conftest*
7549
7550 fi
7551
7552 if test $ac_cv_header_stdc = yes; then
7553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7554 if test "$cross_compiling" = yes; then :
7555 :
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 #include <ctype.h>
7560 #include <stdlib.h>
7561 #if ((' ' & 0x0FF) == 0x020)
7562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7564 #else
7565 # define ISLOWER(c) \
7566 (('a' <= (c) && (c) <= 'i') \
7567 || ('j' <= (c) && (c) <= 'r') \
7568 || ('s' <= (c) && (c) <= 'z'))
7569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7570 #endif
7571
7572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7573 int
7574 main ()
7575 {
7576 int i;
7577 for (i = 0; i < 256; i++)
7578 if (XOR (islower (i), ISLOWER (i))
7579 || toupper (i) != TOUPPER (i))
7580 return 2;
7581 return 0;
7582 }
7583 _ACEOF
7584 if ac_fn_c_try_run "$LINENO"; then :
7585
7586 else
7587 ac_cv_header_stdc=no
7588 fi
7589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7590 conftest.$ac_objext conftest.beam conftest.$ac_ext
7591 fi
7592
7593 fi
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7596 $as_echo "$ac_cv_header_stdc" >&6; }
7597 if test $ac_cv_header_stdc = yes; then
7598
7599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7600
7601 fi
7602
7603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7605 inttypes.h stdint.h unistd.h
7606 do :
7607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7609 "
7610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7611 cat >>confdefs.h <<_ACEOF
7612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 _ACEOF
7614
7615 fi
7616
7617 done
7618
7619
7620 for ac_header in dlfcn.h
7621 do :
7622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7623 "
7624 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_DLFCN_H 1
7627 _ACEOF
7628
7629 fi
7630
7631 done
7632
7633
7634
7635
7636
7637 # Set options
7638
7639
7640
7641 enable_dlopen=no
7642
7643
7644 enable_win32_dll=no
7645
7646
7647 # Check whether --enable-shared was given.
7648 if test "${enable_shared+set}" = set; then :
7649 enableval=$enable_shared; p=${PACKAGE-default}
7650 case $enableval in
7651 yes) enable_shared=yes ;;
7652 no) enable_shared=no ;;
7653 *)
7654 enable_shared=no
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for pkg in $enableval; do
7658 IFS="$lt_save_ifs"
7659 if test "X$pkg" = "X$p"; then
7660 enable_shared=yes
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 ;;
7665 esac
7666 else
7667 enable_shared=yes
7668 fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 # Check whether --enable-static was given.
7679 if test "${enable_static+set}" = set; then :
7680 enableval=$enable_static; p=${PACKAGE-default}
7681 case $enableval in
7682 yes) enable_static=yes ;;
7683 no) enable_static=no ;;
7684 *)
7685 enable_static=no
7686 # Look at the argument we got. We use all the common list separators.
7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7688 for pkg in $enableval; do
7689 IFS="$lt_save_ifs"
7690 if test "X$pkg" = "X$p"; then
7691 enable_static=yes
7692 fi
7693 done
7694 IFS="$lt_save_ifs"
7695 ;;
7696 esac
7697 else
7698 enable_static=yes
7699 fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 # Check whether --with-pic was given.
7711 if test "${with_pic+set}" = set; then :
7712 withval=$with_pic; lt_p=${PACKAGE-default}
7713 case $withval in
7714 yes|no) pic_mode=$withval ;;
7715 *)
7716 pic_mode=default
7717 # Look at the argument we got. We use all the common list separators.
7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7719 for lt_pkg in $withval; do
7720 IFS="$lt_save_ifs"
7721 if test "X$lt_pkg" = "X$lt_p"; then
7722 pic_mode=yes
7723 fi
7724 done
7725 IFS="$lt_save_ifs"
7726 ;;
7727 esac
7728 else
7729 pic_mode=default
7730 fi
7731
7732
7733 test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --enable-fast-install was given.
7742 if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7758 ;;
7759 esac
7760 else
7761 enable_fast_install=yes
7762 fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 # This can be used to rebuild libtool when needed
7775 LIBTOOL_DEPS="$ltmain"
7776
7777 # Always use our own libtool.
7778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 test -z "$LN_S" && LN_S="ln -s"
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824 if test -n "${ZSH_VERSION+set}" ; then
7825 setopt NO_GLOB_SUBST
7826 fi
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7829 $as_echo_n "checking for objdir... " >&6; }
7830 if ${lt_cv_objdir+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 rm -f .libs 2>/dev/null
7834 mkdir .libs 2>/dev/null
7835 if test -d .libs; then
7836 lt_cv_objdir=.libs
7837 else
7838 # MS-DOS does not allow filenames that begin with a dot.
7839 lt_cv_objdir=_libs
7840 fi
7841 rmdir .libs 2>/dev/null
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7844 $as_echo "$lt_cv_objdir" >&6; }
7845 objdir=$lt_cv_objdir
7846
7847
7848
7849
7850
7851 cat >>confdefs.h <<_ACEOF
7852 #define LT_OBJDIR "$lt_cv_objdir/"
7853 _ACEOF
7854
7855
7856
7857
7858 case $host_os in
7859 aix3*)
7860 # AIX sometimes has problems with the GCC collect2 program. For some
7861 # reason, if we set the COLLECT_NAMES environment variable, the problems
7862 # vanish in a puff of smoke.
7863 if test "X${COLLECT_NAMES+set}" != Xset; then
7864 COLLECT_NAMES=
7865 export COLLECT_NAMES
7866 fi
7867 ;;
7868 esac
7869
7870 # Global variables:
7871 ofile=libtool
7872 can_build_shared=yes
7873
7874 # All known linkers require a `.a' archive for static linking (except MSVC,
7875 # which needs '.lib').
7876 libext=a
7877
7878 with_gnu_ld="$lt_cv_prog_gnu_ld"
7879
7880 old_CC="$CC"
7881 old_CFLAGS="$CFLAGS"
7882
7883 # Set sane defaults for various variables
7884 test -z "$CC" && CC=cc
7885 test -z "$LTCC" && LTCC=$CC
7886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7887 test -z "$LD" && LD=ld
7888 test -z "$ac_objext" && ac_objext=o
7889
7890 for cc_temp in $compiler""; do
7891 case $cc_temp in
7892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7894 \-*) ;;
7895 *) break;;
7896 esac
7897 done
7898 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7899
7900
7901 # Only perform the check for file, if the check method requires it
7902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7903 case $deplibs_check_method in
7904 file_magic*)
7905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7907 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 case $MAGIC_CMD in
7912 [\\/*] | ?:[\\/]*)
7913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 lt_save_MAGIC_CMD="$MAGIC_CMD"
7917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7919 for ac_dir in $ac_dummy; do
7920 IFS="$lt_save_ifs"
7921 test -z "$ac_dir" && ac_dir=.
7922 if test -f $ac_dir/${ac_tool_prefix}file; then
7923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7924 if test -n "$file_magic_test_file"; then
7925 case $deplibs_check_method in
7926 "file_magic "*)
7927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7930 $EGREP "$file_magic_regex" > /dev/null; then
7931 :
7932 else
7933 cat <<_LT_EOF 1>&2
7934
7935 *** Warning: the command libtool uses to detect shared libraries,
7936 *** $file_magic_cmd, produces output that libtool cannot recognize.
7937 *** The result is that libtool may fail to recognize shared libraries
7938 *** as such. This will affect the creation of libtool libraries that
7939 *** depend on shared libraries, but programs linked with such libtool
7940 *** libraries will work regardless of this problem. Nevertheless, you
7941 *** may want to report the problem to your system manager and/or to
7942 *** bug-libtool@gnu.org
7943
7944 _LT_EOF
7945 fi ;;
7946 esac
7947 fi
7948 break
7949 fi
7950 done
7951 IFS="$lt_save_ifs"
7952 MAGIC_CMD="$lt_save_MAGIC_CMD"
7953 ;;
7954 esac
7955 fi
7956
7957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958 if test -n "$MAGIC_CMD"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7960 $as_echo "$MAGIC_CMD" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966
7967
7968
7969
7970 if test -z "$lt_cv_path_MAGIC_CMD"; then
7971 if test -n "$ac_tool_prefix"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7973 $as_echo_n "checking for file... " >&6; }
7974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 case $MAGIC_CMD in
7978 [\\/*] | ?:[\\/]*)
7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 lt_save_MAGIC_CMD="$MAGIC_CMD"
7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985 for ac_dir in $ac_dummy; do
7986 IFS="$lt_save_ifs"
7987 test -z "$ac_dir" && ac_dir=.
7988 if test -f $ac_dir/file; then
7989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7990 if test -n "$file_magic_test_file"; then
7991 case $deplibs_check_method in
7992 "file_magic "*)
7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996 $EGREP "$file_magic_regex" > /dev/null; then
7997 :
7998 else
7999 cat <<_LT_EOF 1>&2
8000
8001 *** Warning: the command libtool uses to detect shared libraries,
8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
8003 *** The result is that libtool may fail to recognize shared libraries
8004 *** as such. This will affect the creation of libtool libraries that
8005 *** depend on shared libraries, but programs linked with such libtool
8006 *** libraries will work regardless of this problem. Nevertheless, you
8007 *** may want to report the problem to your system manager and/or to
8008 *** bug-libtool@gnu.org
8009
8010 _LT_EOF
8011 fi ;;
8012 esac
8013 fi
8014 break
8015 fi
8016 done
8017 IFS="$lt_save_ifs"
8018 MAGIC_CMD="$lt_save_MAGIC_CMD"
8019 ;;
8020 esac
8021 fi
8022
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if test -n "$MAGIC_CMD"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026 $as_echo "$MAGIC_CMD" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033 else
8034 MAGIC_CMD=:
8035 fi
8036 fi
8037
8038 fi
8039 ;;
8040 esac
8041
8042 # Use C for the default configuration in the libtool script
8043
8044 lt_save_CC="$CC"
8045 ac_ext=c
8046 ac_cpp='$CPP $CPPFLAGS'
8047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8050
8051
8052 # Source file extension for C test sources.
8053 ac_ext=c
8054
8055 # Object file extension for compiled C test sources.
8056 objext=o
8057 objext=$objext
8058
8059 # Code to be used in simple compile tests
8060 lt_simple_compile_test_code="int some_variable = 0;"
8061
8062 # Code to be used in simple link tests
8063 lt_simple_link_test_code='int main(){return(0);}'
8064
8065
8066
8067
8068
8069
8070
8071 # If no C compiler was specified, use CC.
8072 LTCC=${LTCC-"$CC"}
8073
8074 # If no C compiler flags were specified, use CFLAGS.
8075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8076
8077 # Allow CC to be a program name with arguments.
8078 compiler=$CC
8079
8080 # Save the default compiler, since it gets overwritten when the other
8081 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8082 compiler_DEFAULT=$CC
8083
8084 # save warnings/boilerplate of simple test code
8085 ac_outfile=conftest.$ac_objext
8086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088 _lt_compiler_boilerplate=`cat conftest.err`
8089 $RM conftest*
8090
8091 ac_outfile=conftest.$ac_objext
8092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8094 _lt_linker_boilerplate=`cat conftest.err`
8095 $RM -r conftest*
8096
8097
8098 if test -n "$compiler"; then
8099
8100 lt_prog_compiler_no_builtin_flag=
8101
8102 if test "$GCC" = yes; then
8103 case $cc_basename in
8104 nvcc*)
8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8106 *)
8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8108 esac
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 lt_cv_prog_compiler_rtti_exceptions=no
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8118 lt_compiler_flag="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err)
8130 ac_status=$?
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_rtti_exceptions=yes
8140 fi
8141 fi
8142 $RM conftest*
8143
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8147
8148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8150 else
8151 :
8152 fi
8153
8154 fi
8155
8156
8157
8158
8159
8160
8161 lt_prog_compiler_wl=
8162 lt_prog_compiler_pic=
8163 lt_prog_compiler_static=
8164
8165
8166 if test "$GCC" = yes; then
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_static='-static'
8169
8170 case $host_os in
8171 aix*)
8172 # All AIX code is PIC.
8173 if test "$host_cpu" = ia64; then
8174 # AIX 5 now supports IA64 processor
8175 lt_prog_compiler_static='-Bstatic'
8176 fi
8177 ;;
8178
8179 amigaos*)
8180 case $host_cpu in
8181 powerpc)
8182 # see comment about AmigaOS4 .so support
8183 lt_prog_compiler_pic='-fPIC'
8184 ;;
8185 m68k)
8186 # FIXME: we need at least 68020 code to build shared libraries, but
8187 # adding the `-m68020' flag to GCC prevents building anything better,
8188 # like `-m68040'.
8189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8190 ;;
8191 esac
8192 ;;
8193
8194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8195 # PIC is the default for these OSes.
8196 ;;
8197
8198 mingw* | cygwin* | pw32* | os2* | cegcc*)
8199 # This hack is so that the source file can tell whether it is being
8200 # built for inclusion in a dll (and should export symbols for example).
8201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8202 # (--disable-auto-import) libraries
8203 lt_prog_compiler_pic='-DDLL_EXPORT'
8204 ;;
8205
8206 darwin* | rhapsody*)
8207 # PIC is the default on this platform
8208 # Common symbols not allowed in MH_DYLIB files
8209 lt_prog_compiler_pic='-fno-common'
8210 ;;
8211
8212 haiku*)
8213 # PIC is the default for Haiku.
8214 # The "-static" flag exists, but is broken.
8215 lt_prog_compiler_static=
8216 ;;
8217
8218 hpux*)
8219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8221 # sets the default TLS model and affects inlining.
8222 case $host_cpu in
8223 hppa*64*)
8224 # +Z the default
8225 ;;
8226 *)
8227 lt_prog_compiler_pic='-fPIC'
8228 ;;
8229 esac
8230 ;;
8231
8232 interix[3-9]*)
8233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8234 # Instead, we relocate shared libraries at runtime.
8235 ;;
8236
8237 msdosdjgpp*)
8238 # Just because we use GCC doesn't mean we suddenly get shared libraries
8239 # on systems that don't support them.
8240 lt_prog_compiler_can_build_shared=no
8241 enable_shared=no
8242 ;;
8243
8244 *nto* | *qnx*)
8245 # QNX uses GNU C++, but need to define -shared option too, otherwise
8246 # it will coredump.
8247 lt_prog_compiler_pic='-fPIC -shared'
8248 ;;
8249
8250 sysv4*MP*)
8251 if test -d /usr/nec; then
8252 lt_prog_compiler_pic=-Kconform_pic
8253 fi
8254 ;;
8255
8256 *)
8257 lt_prog_compiler_pic='-fPIC'
8258 ;;
8259 esac
8260
8261 case $cc_basename in
8262 nvcc*) # Cuda Compiler Driver 2.2
8263 lt_prog_compiler_wl='-Xlinker '
8264 if test -n "$lt_prog_compiler_pic"; then
8265 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8266 fi
8267 ;;
8268 esac
8269 else
8270 # PORTME Check for flag to pass linker flags through the system compiler.
8271 case $host_os in
8272 aix*)
8273 lt_prog_compiler_wl='-Wl,'
8274 if test "$host_cpu" = ia64; then
8275 # AIX 5 now supports IA64 processor
8276 lt_prog_compiler_static='-Bstatic'
8277 else
8278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8279 fi
8280 ;;
8281
8282 mingw* | cygwin* | pw32* | os2* | cegcc*)
8283 # This hack is so that the source file can tell whether it is being
8284 # built for inclusion in a dll (and should export symbols for example).
8285 lt_prog_compiler_pic='-DDLL_EXPORT'
8286 ;;
8287
8288 hpux9* | hpux10* | hpux11*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8291 # not for PA HP-UX.
8292 case $host_cpu in
8293 hppa*64*|ia64*)
8294 # +Z the default
8295 ;;
8296 *)
8297 lt_prog_compiler_pic='+Z'
8298 ;;
8299 esac
8300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8301 lt_prog_compiler_static='${wl}-a ${wl}archive'
8302 ;;
8303
8304 irix5* | irix6* | nonstopux*)
8305 lt_prog_compiler_wl='-Wl,'
8306 # PIC (with -KPIC) is the default.
8307 lt_prog_compiler_static='-non_shared'
8308 ;;
8309
8310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8311 case $cc_basename in
8312 # old Intel for x86_64 which still supported -KPIC.
8313 ecc*)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-static'
8317 ;;
8318 # icc used to be incompatible with GCC.
8319 # ICC 10 doesn't accept -KPIC any more.
8320 icc* | ifort*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-fPIC'
8323 lt_prog_compiler_static='-static'
8324 ;;
8325 # Lahey Fortran 8.1.
8326 lf95*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='--shared'
8329 lt_prog_compiler_static='--static'
8330 ;;
8331 nagfor*)
8332 # NAG Fortran compiler
8333 lt_prog_compiler_wl='-Wl,-Wl,,'
8334 lt_prog_compiler_pic='-PIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 ;;
8337 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
8349 xl* | bgxl* | bgf* | mpixl*)
8350 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8358 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl=''
8362 ;;
8363 *Sun\ F* | *Sun*Fortran*)
8364 lt_prog_compiler_pic='-KPIC'
8365 lt_prog_compiler_static='-Bstatic'
8366 lt_prog_compiler_wl='-Qoption ld '
8367 ;;
8368 *Sun\ C*)
8369 # Sun C 5.9
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 lt_prog_compiler_wl='-Wl,'
8373 ;;
8374 *Intel*\ [CF]*Compiler*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-fPIC'
8377 lt_prog_compiler_static='-static'
8378 ;;
8379 *Portland\ Group*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-fpic'
8382 lt_prog_compiler_static='-Bstatic'
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 ;;
8388
8389 newsos6)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8399
8400 osf3* | osf4* | osf5*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # All OSF/1 code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8404 ;;
8405
8406 rdos*)
8407 lt_prog_compiler_static='-non_shared'
8408 ;;
8409
8410 solaris*)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 case $cc_basename in
8414 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8415 lt_prog_compiler_wl='-Qoption ld ';;
8416 *)
8417 lt_prog_compiler_wl='-Wl,';;
8418 esac
8419 ;;
8420
8421 sunos4*)
8422 lt_prog_compiler_wl='-Qoption ld '
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426
8427 sysv4 | sysv4.2uw2* | sysv4.3*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432
8433 sysv4*MP*)
8434 if test -d /usr/nec ;then
8435 lt_prog_compiler_pic='-Kconform_pic'
8436 lt_prog_compiler_static='-Bstatic'
8437 fi
8438 ;;
8439
8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 unicos*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_can_build_shared=no
8449 ;;
8450
8451 uts4*)
8452 lt_prog_compiler_pic='-pic'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455
8456 *)
8457 lt_prog_compiler_can_build_shared=no
8458 ;;
8459 esac
8460 fi
8461
8462 case $host_os in
8463 # For platforms which do not support PIC, -DPIC is meaningless:
8464 *djgpp*)
8465 lt_prog_compiler_pic=
8466 ;;
8467 *)
8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8469 ;;
8470 esac
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8473 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8474 if ${lt_cv_prog_compiler_pic+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8481 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8482
8483 #
8484 # Check to make sure the PIC flag actually works.
8485 #
8486 if test -n "$lt_prog_compiler_pic"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8488 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8489 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_prog_compiler_pic_works=no
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8496 # Insert the option either (1) after the last *FLAGS variable, or
8497 # (2) before a word containing "conftest.", or (3) at the end.
8498 # Note that $ac_compile itself does not contain backslashes and begins
8499 # with a dollar sign (not a hyphen), so the echo should work correctly.
8500 # The option is referenced via a variable to avoid confusing sed.
8501 lt_compile=`echo "$ac_compile" | $SED \
8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504 -e 's:$: $lt_compiler_flag:'`
8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506 (eval "$lt_compile" 2>conftest.err)
8507 ac_status=$?
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 if (exit $ac_status) && test -s "$ac_outfile"; then
8511 # The compiler can only warn and ignore the option if not recognized
8512 # So say no if there are warnings other than the usual output.
8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_pic_works=yes
8517 fi
8518 fi
8519 $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8523 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8524
8525 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8526 case $lt_prog_compiler_pic in
8527 "" | " "*) ;;
8528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8529 esac
8530 else
8531 lt_prog_compiler_pic=
8532 lt_prog_compiler_can_build_shared=no
8533 fi
8534
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 #
8548 # Check to make sure the static flag actually works.
8549 #
8550 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8552 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8553 if ${lt_cv_prog_compiler_static_works+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 lt_cv_prog_compiler_static_works=no
8557 save_LDFLAGS="$LDFLAGS"
8558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8561 # The linker can only warn and ignore the option if not recognized
8562 # So say no if there are warnings
8563 if test -s conftest.err; then
8564 # Append any errors to the config.log.
8565 cat conftest.err 1>&5
8566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8568 if diff conftest.exp conftest.er2 >/dev/null; then
8569 lt_cv_prog_compiler_static_works=yes
8570 fi
8571 else
8572 lt_cv_prog_compiler_static_works=yes
8573 fi
8574 fi
8575 $RM -r conftest*
8576 LDFLAGS="$save_LDFLAGS"
8577
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8580 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8581
8582 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8583 :
8584 else
8585 lt_prog_compiler_static=
8586 fi
8587
8588
8589
8590
8591
8592
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596 if ${lt_cv_prog_compiler_c_o+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 lt_cv_prog_compiler_c_o=no
8600 $RM -r conftest 2>/dev/null
8601 mkdir conftest
8602 cd conftest
8603 mkdir out
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606 lt_compiler_flag="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out/conftest.err)
8617 ac_status=$?
8618 cat out/conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621 then
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8627 lt_cv_prog_compiler_c_o=yes
8628 fi
8629 fi
8630 chmod u+w . 2>&5
8631 $RM conftest*
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8635 $RM out/* && rmdir out
8636 cd ..
8637 $RM -r conftest
8638 $RM conftest*
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8643
8644
8645
8646
8647
8648
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8651 if ${lt_cv_prog_compiler_c_o+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 lt_cv_prog_compiler_c_o=no
8655 $RM -r conftest 2>/dev/null
8656 mkdir conftest
8657 cd conftest
8658 mkdir out
8659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8660
8661 lt_compiler_flag="-o out/conftest2.$ac_objext"
8662 # Insert the option either (1) after the last *FLAGS variable, or
8663 # (2) before a word containing "conftest.", or (3) at the end.
8664 # Note that $ac_compile itself does not contain backslashes and begins
8665 # with a dollar sign (not a hyphen), so the echo should work correctly.
8666 lt_compile=`echo "$ac_compile" | $SED \
8667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8669 -e 's:$: $lt_compiler_flag:'`
8670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8671 (eval "$lt_compile" 2>out/conftest.err)
8672 ac_status=$?
8673 cat out/conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8676 then
8677 # The compiler can only warn and ignore the option if not recognized
8678 # So say no if there are warnings
8679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8682 lt_cv_prog_compiler_c_o=yes
8683 fi
8684 fi
8685 chmod u+w . 2>&5
8686 $RM conftest*
8687 # SGI C++ compiler will create directory out/ii_files/ for
8688 # template instantiation
8689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8690 $RM out/* && rmdir out
8691 cd ..
8692 $RM -r conftest
8693 $RM conftest*
8694
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8697 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8698
8699
8700
8701
8702 hard_links="nottested"
8703 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8704 # do not overwrite the value of need_locks provided by the user
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8706 $as_echo_n "checking if we can lock with hard links... " >&6; }
8707 hard_links=yes
8708 $RM conftest*
8709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8710 touch conftest.a
8711 ln conftest.a conftest.b 2>&5 || hard_links=no
8712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8714 $as_echo "$hard_links" >&6; }
8715 if test "$hard_links" = no; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8717 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8718 need_locks=warn
8719 fi
8720 else
8721 need_locks=no
8722 fi
8723
8724
8725
8726
8727
8728
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8731
8732 runpath_var=
8733 allow_undefined_flag=
8734 always_export_symbols=no
8735 archive_cmds=
8736 archive_expsym_cmds=
8737 compiler_needs_object=no
8738 enable_shared_with_static_runtimes=no
8739 export_dynamic_flag_spec=
8740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8741 hardcode_automatic=no
8742 hardcode_direct=no
8743 hardcode_direct_absolute=no
8744 hardcode_libdir_flag_spec=
8745 hardcode_libdir_separator=
8746 hardcode_minus_L=no
8747 hardcode_shlibpath_var=unsupported
8748 inherit_rpath=no
8749 link_all_deplibs=unknown
8750 module_cmds=
8751 module_expsym_cmds=
8752 old_archive_from_new_cmds=
8753 old_archive_from_expsyms_cmds=
8754 thread_safe_flag_spec=
8755 whole_archive_flag_spec=
8756 # include_expsyms should be a list of space-separated symbols to be *always*
8757 # included in the symbol list
8758 include_expsyms=
8759 # exclude_expsyms can be an extended regexp of symbols to exclude
8760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8762 # as well as any symbol that contains `d'.
8763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8765 # platforms (ab)use it in PIC code, but their linkers get confused if
8766 # the symbol is explicitly referenced. Since portable code cannot
8767 # rely on this symbol name, it's probably fine to never include it in
8768 # preloaded symbol tables.
8769 # Exclude shared library initialization/finalization symbols.
8770 extract_expsyms_cmds=
8771
8772 case $host_os in
8773 cygwin* | mingw* | pw32* | cegcc*)
8774 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8775 # When not using gcc, we currently assume that we are using
8776 # Microsoft Visual C++.
8777 if test "$GCC" != yes; then
8778 with_gnu_ld=no
8779 fi
8780 ;;
8781 interix*)
8782 # we just hope/assume this is gcc and not c89 (= MSVC++)
8783 with_gnu_ld=yes
8784 ;;
8785 openbsd*)
8786 with_gnu_ld=no
8787 ;;
8788 esac
8789
8790 ld_shlibs=yes
8791
8792 # On some targets, GNU ld is compatible enough with the native linker
8793 # that we're better off using the native interface for both.
8794 lt_use_gnu_ld_interface=no
8795 if test "$with_gnu_ld" = yes; then
8796 case $host_os in
8797 aix*)
8798 # The AIX port of GNU ld has always aspired to compatibility
8799 # with the native linker. However, as the warning in the GNU ld
8800 # block says, versions before 2.19.5* couldn't really create working
8801 # shared libraries, regardless of the interface used.
8802 case `$LD -v 2>&1` in
8803 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8804 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8805 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8806 *)
8807 lt_use_gnu_ld_interface=yes
8808 ;;
8809 esac
8810 ;;
8811 *)
8812 lt_use_gnu_ld_interface=yes
8813 ;;
8814 esac
8815 fi
8816
8817 if test "$lt_use_gnu_ld_interface" = yes; then
8818 # If archive_cmds runs LD, not CC, wlarc should be empty
8819 wlarc='${wl}'
8820
8821 # Set some defaults for GNU ld with shared library support. These
8822 # are reset later if shared libraries are not supported. Putting them
8823 # here allows them to be overridden if necessary.
8824 runpath_var=LD_RUN_PATH
8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8826 export_dynamic_flag_spec='${wl}--export-dynamic'
8827 # ancient GNU ld didn't support --whole-archive et. al.
8828 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8830 else
8831 whole_archive_flag_spec=
8832 fi
8833 supports_anon_versioning=no
8834 case `$LD -v 2>&1` in
8835 *GNU\ gold*) supports_anon_versioning=yes ;;
8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8839 *\ 2.11.*) ;; # other 2.11 versions
8840 *) supports_anon_versioning=yes ;;
8841 esac
8842
8843 # See if GNU ld supports shared libraries.
8844 case $host_os in
8845 aix[3-9]*)
8846 # On AIX/PPC, the GNU linker is very broken
8847 if test "$host_cpu" != ia64; then
8848 ld_shlibs=no
8849 cat <<_LT_EOF 1>&2
8850
8851 *** Warning: the GNU linker, at least up to release 2.19, is reported
8852 *** to be unable to reliably create shared libraries on AIX.
8853 *** Therefore, libtool is disabling shared libraries support. If you
8854 *** really care for shared libraries, you may want to install binutils
8855 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8856 *** You will then need to restart the configuration process.
8857
8858 _LT_EOF
8859 fi
8860 ;;
8861
8862 amigaos*)
8863 case $host_cpu in
8864 powerpc)
8865 # see comment about AmigaOS4 .so support
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds=''
8868 ;;
8869 m68k)
8870 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)'
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_minus_L=yes
8873 ;;
8874 esac
8875 ;;
8876
8877 beos*)
8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8879 allow_undefined_flag=unsupported
8880 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8881 # support --undefined. This deserves some investigation. FIXME
8882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 else
8884 ld_shlibs=no
8885 fi
8886 ;;
8887
8888 cygwin* | mingw* | pw32* | cegcc*)
8889 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8890 # as there is no search path for DLLs.
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 export_dynamic_flag_spec='${wl}--export-all-symbols'
8893 allow_undefined_flag=unsupported
8894 always_export_symbols=no
8895 enable_shared_with_static_runtimes=yes
8896 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'
8897 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8898
8899 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8901 # If the export-symbols file already is a .def file (1st line
8902 # is EXPORTS), use it as is; otherwise, prepend...
8903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8904 cp $export_symbols $output_objdir/$soname.def;
8905 else
8906 echo EXPORTS > $output_objdir/$soname.def;
8907 cat $export_symbols >> $output_objdir/$soname.def;
8908 fi~
8909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8910 else
8911 ld_shlibs=no
8912 fi
8913 ;;
8914
8915 haiku*)
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 link_all_deplibs=yes
8918 ;;
8919
8920 interix[3-9]*)
8921 hardcode_direct=no
8922 hardcode_shlibpath_var=no
8923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8924 export_dynamic_flag_spec='${wl}-E'
8925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8926 # Instead, shared libraries are loaded at an image base (0x10000000 by
8927 # default) and relocated if they conflict, which is a slow very memory
8928 # consuming and fragmenting process. To avoid this, we pick a random,
8929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8932 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'
8933 ;;
8934
8935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8936 tmp_diet=no
8937 if test "$host_os" = linux-dietlibc; then
8938 case $cc_basename in
8939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8940 esac
8941 fi
8942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8943 && test "$tmp_diet" = no
8944 then
8945 tmp_addflag=' $pic_flag'
8946 tmp_sharedflag='-shared'
8947 case $cc_basename,$host_cpu in
8948 pgcc*) # Portland Group C compiler
8949 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'
8950 tmp_addflag=' $pic_flag'
8951 ;;
8952 pgf77* | pgf90* | pgf95* | pgfortran*)
8953 # Portland Group f77 and f90 compilers
8954 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'
8955 tmp_addflag=' $pic_flag -Mnomain' ;;
8956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8957 tmp_addflag=' -i_dynamic' ;;
8958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8959 tmp_addflag=' -i_dynamic -nofor_main' ;;
8960 ifc* | ifort*) # Intel Fortran compiler
8961 tmp_addflag=' -nofor_main' ;;
8962 lf95*) # Lahey Fortran 8.1
8963 whole_archive_flag_spec=
8964 tmp_sharedflag='--shared' ;;
8965 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8966 tmp_sharedflag='-qmkshrobj'
8967 tmp_addflag= ;;
8968 nvcc*) # Cuda Compiler Driver 2.2
8969 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'
8970 compiler_needs_object=yes
8971 ;;
8972 esac
8973 case `$CC -V 2>&1 | sed 5q` in
8974 *Sun\ C*) # Sun C 5.9
8975 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'
8976 compiler_needs_object=yes
8977 tmp_sharedflag='-G' ;;
8978 *Sun\ F*) # Sun Fortran 8.3
8979 tmp_sharedflag='-G' ;;
8980 esac
8981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982
8983 if test "x$supports_anon_versioning" = xyes; then
8984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8986 echo "local: *; };" >> $output_objdir/$libname.ver~
8987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8988 fi
8989
8990 case $cc_basename in
8991 xlf* | bgf* | bgxlf* | mpixlf*)
8992 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8993 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8996 if test "x$supports_anon_versioning" = xyes; then
8997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999 echo "local: *; };" >> $output_objdir/$libname.ver~
9000 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9001 fi
9002 ;;
9003 esac
9004 else
9005 ld_shlibs=no
9006 fi
9007 ;;
9008
9009 netbsd*)
9010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9012 wlarc=
9013 else
9014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 fi
9017 ;;
9018
9019 solaris*)
9020 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9021 ld_shlibs=no
9022 cat <<_LT_EOF 1>&2
9023
9024 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9025 *** create shared libraries on Solaris systems. Therefore, libtool
9026 *** is disabling shared libraries support. We urge you to upgrade GNU
9027 *** binutils to release 2.9.1 or newer. Another option is to modify
9028 *** your PATH or compiler configuration so that the native linker is
9029 *** used, and then restart.
9030
9031 _LT_EOF
9032 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039
9040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9041 case `$LD -v 2>&1` in
9042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9043 ld_shlibs=no
9044 cat <<_LT_EOF 1>&2
9045
9046 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047 *** reliably create shared libraries on SCO systems. Therefore, libtool
9048 *** is disabling shared libraries support. We urge you to upgrade GNU
9049 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9050 *** your PATH or compiler configuration so that the native linker is
9051 *** used, and then restart.
9052
9053 _LT_EOF
9054 ;;
9055 *)
9056 # For security reasons, it is highly recommended that you always
9057 # use absolute paths for naming shared libraries, and exclude the
9058 # DT_RUNPATH tag from executables and libraries. But doing so
9059 # requires that you compile everything twice, which is a pain.
9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064 else
9065 ld_shlibs=no
9066 fi
9067 ;;
9068 esac
9069 ;;
9070
9071 sunos4*)
9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 wlarc=
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 *)
9079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9084 fi
9085 ;;
9086 esac
9087
9088 if test "$ld_shlibs" = no; then
9089 runpath_var=
9090 hardcode_libdir_flag_spec=
9091 export_dynamic_flag_spec=
9092 whole_archive_flag_spec=
9093 fi
9094 else
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9096 case $host_os in
9097 aix3*)
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=yes
9100 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'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9106 # broken collect2.
9107 hardcode_direct=unsupported
9108 fi
9109 ;;
9110
9111 aix[4-9]*)
9112 if test "$host_cpu" = ia64; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking=no
9116 exp_sym_flag='-Bexport'
9117 no_entry_flag=""
9118 else
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 # Also, AIX nm treats weak defined symbols like other global
9122 # defined symbols, whereas GNU nm marks them as "W".
9123 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9124 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9125 else
9126 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9127 fi
9128 aix_use_runtimelinking=no
9129
9130 # Test if we are trying to use run time linking or normal
9131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9132 # need to do runtime linking.
9133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9134 for ld_flag in $LDFLAGS; do
9135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9136 aix_use_runtimelinking=yes
9137 break
9138 fi
9139 done
9140 ;;
9141 esac
9142
9143 exp_sym_flag='-bexport'
9144 no_entry_flag='-bnoentry'
9145 fi
9146
9147 # When large executables or shared objects are built, AIX ld can
9148 # have problems creating the table of contents. If linking a library
9149 # or program results in "error TOC overflow" add -mminimal-toc to
9150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9152
9153 archive_cmds=''
9154 hardcode_direct=yes
9155 hardcode_direct_absolute=yes
9156 hardcode_libdir_separator=':'
9157 link_all_deplibs=yes
9158 file_list_spec='${wl}-f,'
9159
9160 if test "$GCC" = yes; then
9161 case $host_os in aix4.[012]|aix4.[012].*)
9162 # We only want to do this on AIX 4.2 and lower, the check
9163 # below for broken collect2 doesn't work under 4.3+
9164 collect2name=`${CC} -print-prog-name=collect2`
9165 if test -f "$collect2name" &&
9166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9167 then
9168 # We have reworked collect2
9169 :
9170 else
9171 # We have old collect2
9172 hardcode_direct=unsupported
9173 # It fails to find uninstalled libraries when the uninstalled
9174 # path is not listed in the libpath. Setting hardcode_minus_L
9175 # to unsupported forces relinking
9176 hardcode_minus_L=yes
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_libdir_separator=
9179 fi
9180 ;;
9181 esac
9182 shared_flag='-shared'
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag="$shared_flag "'${wl}-G'
9185 fi
9186 else
9187 # not using gcc
9188 if test "$host_cpu" = ia64; then
9189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9190 # chokes on -Wl,-G. The following line is correct:
9191 shared_flag='-G'
9192 else
9193 if test "$aix_use_runtimelinking" = yes; then
9194 shared_flag='${wl}-G'
9195 else
9196 shared_flag='${wl}-bM:SRE'
9197 fi
9198 fi
9199 fi
9200
9201 export_dynamic_flag_spec='${wl}-bexpall'
9202 # It seems that -bexpall does not export symbols beginning with
9203 # underscore (_), so it is better to generate a list of symbols to export.
9204 always_export_symbols=yes
9205 if test "$aix_use_runtimelinking" = yes; then
9206 # Warning - without using the other runtime loading flags (-brtl),
9207 # -berok will link without error, but may produce a broken library.
9208 allow_undefined_flag='-berok'
9209 # Determine the default libpath from the value encoded in an
9210 # empty executable.
9211 if test "${lt_cv_aix_libpath+set}" = set; then
9212 aix_libpath=$lt_cv_aix_libpath
9213 else
9214 if ${lt_cv_aix_libpath_+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219
9220 int
9221 main ()
9222 {
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"; then :
9229
9230 lt_aix_libpath_sed='
9231 /Import File Strings/,/^$/ {
9232 /^0/ {
9233 s/^0 *\([^ ]*\) *$/\1/
9234 p
9235 }
9236 }'
9237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 # Check for a 64-bit object if we didn't find anything.
9239 if test -z "$lt_cv_aix_libpath_"; then
9240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 fi
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test -z "$lt_cv_aix_libpath_"; then
9246 lt_cv_aix_libpath_="/usr/lib:/lib"
9247 fi
9248
9249 fi
9250
9251 aix_libpath=$lt_cv_aix_libpath_
9252 fi
9253
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9256 else
9257 if test "$host_cpu" = ia64; then
9258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259 allow_undefined_flag="-z nodefs"
9260 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"
9261 else
9262 # Determine the default libpath from the value encoded in an
9263 # empty executable.
9264 if test "${lt_cv_aix_libpath+set}" = set; then
9265 aix_libpath=$lt_cv_aix_libpath
9266 else
9267 if ${lt_cv_aix_libpath_+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272
9273 int
9274 main ()
9275 {
9276
9277 ;
9278 return 0;
9279 }
9280 _ACEOF
9281 if ac_fn_c_try_link "$LINENO"; then :
9282
9283 lt_aix_libpath_sed='
9284 /Import File Strings/,/^$/ {
9285 /^0/ {
9286 s/^0 *\([^ ]*\) *$/\1/
9287 p
9288 }
9289 }'
9290 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9291 # Check for a 64-bit object if we didn't find anything.
9292 if test -z "$lt_cv_aix_libpath_"; then
9293 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9294 fi
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 if test -z "$lt_cv_aix_libpath_"; then
9299 lt_cv_aix_libpath_="/usr/lib:/lib"
9300 fi
9301
9302 fi
9303
9304 aix_libpath=$lt_cv_aix_libpath_
9305 fi
9306
9307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308 # Warning - without using the other run time loading flags,
9309 # -berok will link without error, but may produce a broken library.
9310 no_undefined_flag=' ${wl}-bernotok'
9311 allow_undefined_flag=' ${wl}-berok'
9312 if test "$with_gnu_ld" = yes; then
9313 # We only use this code for GNU lds that support --whole-archive.
9314 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9315 else
9316 # Exported symbols can be pulled into shared objects from archives
9317 whole_archive_flag_spec='$convenience'
9318 fi
9319 archive_cmds_need_lc=yes
9320 # This is similar to how AIX traditionally builds its shared libraries.
9321 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9322 fi
9323 fi
9324 ;;
9325
9326 amigaos*)
9327 case $host_cpu in
9328 powerpc)
9329 # see comment about AmigaOS4 .so support
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds=''
9332 ;;
9333 m68k)
9334 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)'
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_minus_L=yes
9337 ;;
9338 esac
9339 ;;
9340
9341 bsdi[45]*)
9342 export_dynamic_flag_spec=-rdynamic
9343 ;;
9344
9345 cygwin* | mingw* | pw32* | cegcc*)
9346 # When not using gcc, we currently assume that we are using
9347 # Microsoft Visual C++.
9348 # hardcode_libdir_flag_spec is actually meaningless, as there is
9349 # no search path for DLLs.
9350 case $cc_basename in
9351 cl*)
9352 # Native MSVC
9353 hardcode_libdir_flag_spec=' '
9354 allow_undefined_flag=unsupported
9355 always_export_symbols=yes
9356 file_list_spec='@'
9357 # Tell ltmain to make .lib files, not .a files.
9358 libext=lib
9359 # Tell ltmain to make .dll files, not .so files.
9360 shrext_cmds=".dll"
9361 # FIXME: Setting linknames here is a bad hack.
9362 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9363 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9364 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9365 else
9366 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9367 fi~
9368 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9369 linknames='
9370 # The linker will not automatically build a static lib if we build a DLL.
9371 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9372 enable_shared_with_static_runtimes=yes
9373 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9375 # Don't use ranlib
9376 old_postinstall_cmds='chmod 644 $oldlib'
9377 postlink_cmds='lt_outputfile="@OUTPUT@"~
9378 lt_tool_outputfile="@TOOL_OUTPUT@"~
9379 case $lt_outputfile in
9380 *.exe|*.EXE) ;;
9381 *)
9382 lt_outputfile="$lt_outputfile.exe"
9383 lt_tool_outputfile="$lt_tool_outputfile.exe"
9384 ;;
9385 esac~
9386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9388 $RM "$lt_outputfile.manifest";
9389 fi'
9390 ;;
9391 *)
9392 # Assume MSVC wrapper
9393 hardcode_libdir_flag_spec=' '
9394 allow_undefined_flag=unsupported
9395 # Tell ltmain to make .lib files, not .a files.
9396 libext=lib
9397 # Tell ltmain to make .dll files, not .so files.
9398 shrext_cmds=".dll"
9399 # FIXME: Setting linknames here is a bad hack.
9400 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9401 # The linker will automatically build a .lib file if we build a DLL.
9402 old_archive_from_new_cmds='true'
9403 # FIXME: Should let the user specify the lib program.
9404 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9405 enable_shared_with_static_runtimes=yes
9406 ;;
9407 esac
9408 ;;
9409
9410 darwin* | rhapsody*)
9411
9412
9413 archive_cmds_need_lc=no
9414 hardcode_direct=no
9415 hardcode_automatic=yes
9416 hardcode_shlibpath_var=unsupported
9417 if test "$lt_cv_ld_force_load" = "yes"; then
9418 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\"`'
9419
9420 else
9421 whole_archive_flag_spec=''
9422 fi
9423 link_all_deplibs=yes
9424 allow_undefined_flag="$_lt_dar_allow_undefined"
9425 case $cc_basename in
9426 ifort*) _lt_dar_can_shared=yes ;;
9427 *) _lt_dar_can_shared=$GCC ;;
9428 esac
9429 if test "$_lt_dar_can_shared" = "yes"; then
9430 output_verbose_link_cmd=func_echo_all
9431 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9432 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9433 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}"
9434 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}"
9435
9436 else
9437 ld_shlibs=no
9438 fi
9439
9440 ;;
9441
9442 dgux*)
9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_libdir_flag_spec='-L$libdir'
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9449 # support. Future versions do this automatically, but an explicit c++rt0.o
9450 # does not break anything, and helps significantly (at the cost of a little
9451 # extra space).
9452 freebsd2.2*)
9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_direct=yes
9456 hardcode_shlibpath_var=no
9457 ;;
9458
9459 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9460 freebsd2.*)
9461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=yes
9463 hardcode_minus_L=yes
9464 hardcode_shlibpath_var=no
9465 ;;
9466
9467 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9468 freebsd* | dragonfly*)
9469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9470 hardcode_libdir_flag_spec='-R$libdir'
9471 hardcode_direct=yes
9472 hardcode_shlibpath_var=no
9473 ;;
9474
9475 hpux9*)
9476 if test "$GCC" = yes; then
9477 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9478 else
9479 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9480 fi
9481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482 hardcode_libdir_separator=:
9483 hardcode_direct=yes
9484
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489 ;;
9490
9491 hpux10*)
9492 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9493 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496 fi
9497 if test "$with_gnu_ld" = no; then
9498 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9499 hardcode_libdir_separator=:
9500 hardcode_direct=yes
9501 hardcode_direct_absolute=yes
9502 export_dynamic_flag_spec='${wl}-E'
9503 # hardcode_minus_L: Not really in the search PATH,
9504 # but as the default location of the library.
9505 hardcode_minus_L=yes
9506 fi
9507 ;;
9508
9509 hpux11*)
9510 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9511 case $host_cpu in
9512 hppa*64*)
9513 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 ;;
9515 ia64*)
9516 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9517 ;;
9518 *)
9519 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9520 ;;
9521 esac
9522 else
9523 case $host_cpu in
9524 hppa*64*)
9525 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 ;;
9527 ia64*)
9528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9529 ;;
9530 *)
9531
9532 # Older versions of the 11.00 compiler do not understand -b yet
9533 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9535 $as_echo_n "checking if $CC understands -b... " >&6; }
9536 if ${lt_cv_prog_compiler__b+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 lt_cv_prog_compiler__b=no
9540 save_LDFLAGS="$LDFLAGS"
9541 LDFLAGS="$LDFLAGS -b"
9542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9544 # The linker can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 if test -s conftest.err; then
9547 # Append any errors to the config.log.
9548 cat conftest.err 1>&5
9549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551 if diff conftest.exp conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler__b=yes
9553 fi
9554 else
9555 lt_cv_prog_compiler__b=yes
9556 fi
9557 fi
9558 $RM -r conftest*
9559 LDFLAGS="$save_LDFLAGS"
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9563 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9564
9565 if test x"$lt_cv_prog_compiler__b" = xyes; then
9566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567 else
9568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9569 fi
9570
9571 ;;
9572 esac
9573 fi
9574 if test "$with_gnu_ld" = no; then
9575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577
9578 case $host_cpu in
9579 hppa*64*|ia64*)
9580 hardcode_direct=no
9581 hardcode_shlibpath_var=no
9582 ;;
9583 *)
9584 hardcode_direct=yes
9585 hardcode_direct_absolute=yes
9586 export_dynamic_flag_spec='${wl}-E'
9587
9588 # hardcode_minus_L: Not really in the search PATH,
9589 # but as the default location of the library.
9590 hardcode_minus_L=yes
9591 ;;
9592 esac
9593 fi
9594 ;;
9595
9596 irix5* | irix6* | nonstopux*)
9597 if test "$GCC" = yes; then
9598 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'
9599 # Try to use the -exported_symbol ld option, if it does not
9600 # work, assume that -exports_file does not work either and
9601 # implicitly export all symbols.
9602 # This should be the same for all languages, so no per-tag cache variable.
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9604 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9605 if ${lt_cv_irix_exported_symbol+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 save_LDFLAGS="$LDFLAGS"
9609 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 int foo (void) { return 0; }
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 lt_cv_irix_exported_symbol=yes
9616 else
9617 lt_cv_irix_exported_symbol=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LDFLAGS="$save_LDFLAGS"
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9624 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9625 if test "$lt_cv_irix_exported_symbol" = yes; then
9626 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'
9627 fi
9628 else
9629 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'
9630 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'
9631 fi
9632 archive_cmds_need_lc='no'
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 hardcode_libdir_separator=:
9635 inherit_rpath=yes
9636 link_all_deplibs=yes
9637 ;;
9638
9639 netbsd*)
9640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9642 else
9643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9644 fi
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 newsos6)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct=yes
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 hardcode_libdir_separator=:
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 *nto* | *qnx*)
9659 ;;
9660
9661 openbsd*)
9662 if test -f /usr/libexec/ld.so; then
9663 hardcode_direct=yes
9664 hardcode_shlibpath_var=no
9665 hardcode_direct_absolute=yes
9666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9670 export_dynamic_flag_spec='${wl}-E'
9671 else
9672 case $host_os in
9673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 ;;
9677 *)
9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680 ;;
9681 esac
9682 fi
9683 else
9684 ld_shlibs=no
9685 fi
9686 ;;
9687
9688 os2*)
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 allow_undefined_flag=unsupported
9692 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9693 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9694 ;;
9695
9696 osf3*)
9697 if test "$GCC" = yes; then
9698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9699 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'
9700 else
9701 allow_undefined_flag=' -expect_unresolved \*'
9702 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'
9703 fi
9704 archive_cmds_need_lc='no'
9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706 hardcode_libdir_separator=:
9707 ;;
9708
9709 osf4* | osf5*) # as osf3* with the addition of -msym flag
9710 if test "$GCC" = yes; then
9711 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9712 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'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 else
9715 allow_undefined_flag=' -expect_unresolved \*'
9716 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'
9717 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~
9718 $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'
9719
9720 # Both c and cxx compiler support -rpath directly
9721 hardcode_libdir_flag_spec='-rpath $libdir'
9722 fi
9723 archive_cmds_need_lc='no'
9724 hardcode_libdir_separator=:
9725 ;;
9726
9727 solaris*)
9728 no_undefined_flag=' -z defs'
9729 if test "$GCC" = yes; then
9730 wlarc='${wl}'
9731 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9733 $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'
9734 else
9735 case `$CC -V 2>&1` in
9736 *"Compilers 5.0"*)
9737 wlarc=''
9738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9741 ;;
9742 *)
9743 wlarc='${wl}'
9744 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9746 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9747 ;;
9748 esac
9749 fi
9750 hardcode_libdir_flag_spec='-R$libdir'
9751 hardcode_shlibpath_var=no
9752 case $host_os in
9753 solaris2.[0-5] | solaris2.[0-5].*) ;;
9754 *)
9755 # The compiler driver will combine and reorder linker options,
9756 # but understands `-z linker_flag'. GCC discards it without `$wl',
9757 # but is careful enough not to reorder.
9758 # Supported since Solaris 2.6 (maybe 2.5.1?)
9759 if test "$GCC" = yes; then
9760 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9761 else
9762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9763 fi
9764 ;;
9765 esac
9766 link_all_deplibs=yes
9767 ;;
9768
9769 sunos4*)
9770 if test "x$host_vendor" = xsequent; then
9771 # Use $CC to link under sequent, because it throws in some extra .o
9772 # files that make .init and .fini sections work.
9773 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9774 else
9775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9776 fi
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_direct=yes
9779 hardcode_minus_L=yes
9780 hardcode_shlibpath_var=no
9781 ;;
9782
9783 sysv4)
9784 case $host_vendor in
9785 sni)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_direct=yes # is this really true???
9788 ;;
9789 siemens)
9790 ## LD is ld it makes a PLAMLIB
9791 ## CC just makes a GrossModule.
9792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9793 reload_cmds='$CC -r -o $output$reload_objs'
9794 hardcode_direct=no
9795 ;;
9796 motorola)
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9799 ;;
9800 esac
9801 runpath_var='LD_RUN_PATH'
9802 hardcode_shlibpath_var=no
9803 ;;
9804
9805 sysv4.3*)
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_shlibpath_var=no
9808 export_dynamic_flag_spec='-Bexport'
9809 ;;
9810
9811 sysv4*MP*)
9812 if test -d /usr/nec; then
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_shlibpath_var=no
9815 runpath_var=LD_RUN_PATH
9816 hardcode_runpath_var=yes
9817 ld_shlibs=yes
9818 fi
9819 ;;
9820
9821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9822 no_undefined_flag='${wl}-z,text'
9823 archive_cmds_need_lc=no
9824 hardcode_shlibpath_var=no
9825 runpath_var='LD_RUN_PATH'
9826
9827 if test "$GCC" = yes; then
9828 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 fi
9834 ;;
9835
9836 sysv5* | sco3.2v5* | sco5v6*)
9837 # Note: We can NOT use -z defs as we might desire, because we do not
9838 # link with -lc, and that would cause any symbols used from libc to
9839 # always be unresolved, which means just about no library would
9840 # ever link correctly. If we're not using GNU ld we use -z text
9841 # though, which does catch some bad symbols but isn't as heavy-handed
9842 # as -z defs.
9843 no_undefined_flag='${wl}-z,text'
9844 allow_undefined_flag='${wl}-z,nodefs'
9845 archive_cmds_need_lc=no
9846 hardcode_shlibpath_var=no
9847 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9848 hardcode_libdir_separator=':'
9849 link_all_deplibs=yes
9850 export_dynamic_flag_spec='${wl}-Bexport'
9851 runpath_var='LD_RUN_PATH'
9852
9853 if test "$GCC" = yes; then
9854 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 else
9857 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 fi
9860 ;;
9861
9862 uts4*)
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 *)
9869 ld_shlibs=no
9870 ;;
9871 esac
9872
9873 if test x$host_vendor = xsni; then
9874 case $host in
9875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9876 export_dynamic_flag_spec='${wl}-Blargedynsym'
9877 ;;
9878 esac
9879 fi
9880 fi
9881
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9883 $as_echo "$ld_shlibs" >&6; }
9884 test "$ld_shlibs" = no && can_build_shared=no
9885
9886 with_gnu_ld=$with_gnu_ld
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902 #
9903 # Do we need to explicitly link libc?
9904 #
9905 case "x$archive_cmds_need_lc" in
9906 x|xyes)
9907 # Assume -lc should be added
9908 archive_cmds_need_lc=yes
9909
9910 if test "$enable_shared" = yes && test "$GCC" = yes; then
9911 case $archive_cmds in
9912 *'~'*)
9913 # FIXME: we may have to deal with multi-command sequences.
9914 ;;
9915 '$CC '*)
9916 # Test whether the compiler implicitly links with -lc since on some
9917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9918 # to ld, don't add -lc before -lgcc.
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9920 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9921 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 $RM conftest*
9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926
9927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9928 (eval $ac_compile) 2>&5
9929 ac_status=$?
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; } 2>conftest.err; then
9932 soname=conftest
9933 lib=conftest
9934 libobjs=conftest.$ac_objext
9935 deplibs=
9936 wl=$lt_prog_compiler_wl
9937 pic_flag=$lt_prog_compiler_pic
9938 compiler_flags=-v
9939 linker_flags=-v
9940 verstring=
9941 output_objdir=.
9942 libname=conftest
9943 lt_save_allow_undefined_flag=$allow_undefined_flag
9944 allow_undefined_flag=
9945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9946 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9947 ac_status=$?
9948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9949 test $ac_status = 0; }
9950 then
9951 lt_cv_archive_cmds_need_lc=no
9952 else
9953 lt_cv_archive_cmds_need_lc=yes
9954 fi
9955 allow_undefined_flag=$lt_save_allow_undefined_flag
9956 else
9957 cat conftest.err 1>&5
9958 fi
9959 $RM conftest*
9960
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9963 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9964 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9965 ;;
9966 esac
9967 fi
9968 ;;
9969 esac
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10123 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10124
10125 if test "$GCC" = yes; then
10126 case $host_os in
10127 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10128 *) lt_awk_arg="/^libraries:/" ;;
10129 esac
10130 case $host_os in
10131 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10132 *) lt_sed_strip_eq="s,=/,/,g" ;;
10133 esac
10134 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10135 case $lt_search_path_spec in
10136 *\;*)
10137 # if the path contains ";" then we assume it to be the separator
10138 # otherwise default to the standard path separator (i.e. ":") - it is
10139 # assumed that no part of a normal pathname contains ";" but that should
10140 # okay in the real world where ";" in dirpaths is itself problematic.
10141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10142 ;;
10143 *)
10144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10145 ;;
10146 esac
10147 # Ok, now we have the path, separated by spaces, we can step through it
10148 # and add multilib dir if necessary.
10149 lt_tmp_lt_search_path_spec=
10150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10151 for lt_sys_path in $lt_search_path_spec; do
10152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10154 else
10155 test -d "$lt_sys_path" && \
10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10157 fi
10158 done
10159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10160 BEGIN {RS=" "; FS="/|\n";} {
10161 lt_foo="";
10162 lt_count=0;
10163 for (lt_i = NF; lt_i > 0; lt_i--) {
10164 if ($lt_i != "" && $lt_i != ".") {
10165 if ($lt_i == "..") {
10166 lt_count++;
10167 } else {
10168 if (lt_count == 0) {
10169 lt_foo="/" $lt_i lt_foo;
10170 } else {
10171 lt_count--;
10172 }
10173 }
10174 }
10175 }
10176 if (lt_foo != "") { lt_freq[lt_foo]++; }
10177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10178 }'`
10179 # AWK program above erroneously prepends '/' to C:/dos/paths
10180 # for these hosts.
10181 case $host_os in
10182 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10183 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10184 esac
10185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10186 else
10187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10188 fi
10189 library_names_spec=
10190 libname_spec='lib$name'
10191 soname_spec=
10192 shrext_cmds=".so"
10193 postinstall_cmds=
10194 postuninstall_cmds=
10195 finish_cmds=
10196 finish_eval=
10197 shlibpath_var=
10198 shlibpath_overrides_runpath=unknown
10199 version_type=none
10200 dynamic_linker="$host_os ld.so"
10201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10202 need_lib_prefix=unknown
10203 hardcode_into_libs=no
10204
10205 # when you set need_version to no, make sure it does not cause -set_version
10206 # flags to be left without arguments
10207 need_version=unknown
10208
10209 case $host_os in
10210 aix3*)
10211 version_type=linux # correct to gnu/linux during the next big refactor
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10213 shlibpath_var=LIBPATH
10214
10215 # AIX 3 has no versioning support, so we append a major version to the name.
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 ;;
10218
10219 aix[4-9]*)
10220 version_type=linux # correct to gnu/linux during the next big refactor
10221 need_lib_prefix=no
10222 need_version=no
10223 hardcode_into_libs=yes
10224 if test "$host_cpu" = ia64; then
10225 # AIX 5 supports IA64
10226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 else
10229 # With GCC up to 2.95.x, collect2 would create an import file
10230 # for dependence libraries. The import file would start with
10231 # the line `#! .'. This would cause the generated library to
10232 # depend on `.', always an invalid library. This was fixed in
10233 # development snapshots of GCC prior to 3.0.
10234 case $host_os in
10235 aix4 | aix4.[01] | aix4.[01].*)
10236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10237 echo ' yes '
10238 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10239 :
10240 else
10241 can_build_shared=no
10242 fi
10243 ;;
10244 esac
10245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10246 # soname into executable. Probably we can add versioning support to
10247 # collect2, so additional links can be useful in future.
10248 if test "$aix_use_runtimelinking" = yes; then
10249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10250 # instead of lib<name>.a to let people know that these are not
10251 # typical AIX shared libraries.
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 else
10254 # We preserve .a as extension for shared libraries through AIX4.2
10255 # and later when we are not doing run time linking.
10256 library_names_spec='${libname}${release}.a $libname.a'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 fi
10259 shlibpath_var=LIBPATH
10260 fi
10261 ;;
10262
10263 amigaos*)
10264 case $host_cpu in
10265 powerpc)
10266 # Since July 2007 AmigaOS4 officially supports .so libraries.
10267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 ;;
10270 m68k)
10271 library_names_spec='$libname.ixlibrary $libname.a'
10272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10273 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10274 ;;
10275 esac
10276 ;;
10277
10278 beos*)
10279 library_names_spec='${libname}${shared_ext}'
10280 dynamic_linker="$host_os ld.so"
10281 shlibpath_var=LIBRARY_PATH
10282 ;;
10283
10284 bsdi[45]*)
10285 version_type=linux # correct to gnu/linux during the next big refactor
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10293 # the default ld.so.conf also contains /usr/contrib/lib and
10294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10295 # libtool to hard-code these into programs
10296 ;;
10297
10298 cygwin* | mingw* | pw32* | cegcc*)
10299 version_type=windows
10300 shrext_cmds=".dll"
10301 need_version=no
10302 need_lib_prefix=no
10303
10304 case $GCC,$cc_basename in
10305 yes,*)
10306 # gcc
10307 library_names_spec='$libname.dll.a'
10308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10309 postinstall_cmds='base_file=`basename \${file}`~
10310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10311 dldir=$destdir/`dirname \$dlpath`~
10312 test -d \$dldir || mkdir -p \$dldir~
10313 $install_prog $dir/$dlname \$dldir/$dlname~
10314 chmod a+x \$dldir/$dlname~
10315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10317 fi'
10318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10319 dlpath=$dir/\$dldll~
10320 $RM \$dlpath'
10321 shlibpath_overrides_runpath=yes
10322
10323 case $host_os in
10324 cygwin*)
10325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10327
10328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10329 ;;
10330 mingw* | cegcc*)
10331 # MinGW DLLs use traditional 'lib' prefix
10332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333 ;;
10334 pw32*)
10335 # pw32 DLLs use 'pw' prefix rather than 'lib'
10336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337 ;;
10338 esac
10339 dynamic_linker='Win32 ld.exe'
10340 ;;
10341
10342 *,cl*)
10343 # Native MSVC
10344 libname_spec='$name'
10345 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10346 library_names_spec='${libname}.dll.lib'
10347
10348 case $build_os in
10349 mingw*)
10350 sys_lib_search_path_spec=
10351 lt_save_ifs=$IFS
10352 IFS=';'
10353 for lt_path in $LIB
10354 do
10355 IFS=$lt_save_ifs
10356 # Let DOS variable expansion print the short 8.3 style file name.
10357 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10358 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10359 done
10360 IFS=$lt_save_ifs
10361 # Convert to MSYS style.
10362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10363 ;;
10364 cygwin*)
10365 # Convert to unix form, then to dos form, then back to unix form
10366 # but this time dos style (no spaces!) so that the unix form looks
10367 # like /cygdrive/c/PROGRA~1:/cygdr...
10368 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10369 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10370 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10371 ;;
10372 *)
10373 sys_lib_search_path_spec="$LIB"
10374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10375 # It is most probably a Windows format PATH.
10376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10377 else
10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10379 fi
10380 # FIXME: find the short name or the path components, as spaces are
10381 # common. (e.g. "Program Files" -> "PROGRA~1")
10382 ;;
10383 esac
10384
10385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10386 postinstall_cmds='base_file=`basename \${file}`~
10387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10388 dldir=$destdir/`dirname \$dlpath`~
10389 test -d \$dldir || mkdir -p \$dldir~
10390 $install_prog $dir/$dlname \$dldir/$dlname'
10391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10392 dlpath=$dir/\$dldll~
10393 $RM \$dlpath'
10394 shlibpath_overrides_runpath=yes
10395 dynamic_linker='Win32 link.exe'
10396 ;;
10397
10398 *)
10399 # Assume MSVC wrapper
10400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10401 dynamic_linker='Win32 ld.exe'
10402 ;;
10403 esac
10404 # FIXME: first we should search . and the directory the executable is in
10405 shlibpath_var=PATH
10406 ;;
10407
10408 darwin* | rhapsody*)
10409 dynamic_linker="$host_os dyld"
10410 version_type=darwin
10411 need_lib_prefix=no
10412 need_version=no
10413 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10414 soname_spec='${libname}${release}${major}$shared_ext'
10415 shlibpath_overrides_runpath=yes
10416 shlibpath_var=DYLD_LIBRARY_PATH
10417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10418
10419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10421 ;;
10422
10423 dgux*)
10424 version_type=linux # correct to gnu/linux during the next big refactor
10425 need_lib_prefix=no
10426 need_version=no
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 ;;
10431
10432 freebsd* | dragonfly*)
10433 # DragonFly does not have aout. When/if they implement a new
10434 # versioning mechanism, adjust this.
10435 if test -x /usr/bin/objformat; then
10436 objformat=`/usr/bin/objformat`
10437 else
10438 case $host_os in
10439 freebsd[23].*) objformat=aout ;;
10440 *) objformat=elf ;;
10441 esac
10442 fi
10443 version_type=freebsd-$objformat
10444 case $version_type in
10445 freebsd-elf*)
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10447 need_version=no
10448 need_lib_prefix=no
10449 ;;
10450 freebsd-*)
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10452 need_version=yes
10453 ;;
10454 esac
10455 shlibpath_var=LD_LIBRARY_PATH
10456 case $host_os in
10457 freebsd2.*)
10458 shlibpath_overrides_runpath=yes
10459 ;;
10460 freebsd3.[01]* | freebsdelf3.[01]*)
10461 shlibpath_overrides_runpath=yes
10462 hardcode_into_libs=yes
10463 ;;
10464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10466 shlibpath_overrides_runpath=no
10467 hardcode_into_libs=yes
10468 ;;
10469 *) # from 4.6 on, and DragonFly
10470 shlibpath_overrides_runpath=yes
10471 hardcode_into_libs=yes
10472 ;;
10473 esac
10474 ;;
10475
10476 gnu*)
10477 version_type=linux # correct to gnu/linux during the next big refactor
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=no
10484 hardcode_into_libs=yes
10485 ;;
10486
10487 haiku*)
10488 version_type=linux # correct to gnu/linux during the next big refactor
10489 need_lib_prefix=no
10490 need_version=no
10491 dynamic_linker="$host_os runtime_loader"
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10497 hardcode_into_libs=yes
10498 ;;
10499
10500 hpux9* | hpux10* | hpux11*)
10501 # Give a soname corresponding to the major version so that dld.sl refuses to
10502 # link against other versions.
10503 version_type=sunos
10504 need_lib_prefix=no
10505 need_version=no
10506 case $host_cpu in
10507 ia64*)
10508 shrext_cmds='.so'
10509 hardcode_into_libs=yes
10510 dynamic_linker="$host_os dld.so"
10511 shlibpath_var=LD_LIBRARY_PATH
10512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 if test "X$HPUX_IA64_MODE" = X32; then
10516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10517 else
10518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10519 fi
10520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521 ;;
10522 hppa*64*)
10523 shrext_cmds='.sl'
10524 hardcode_into_libs=yes
10525 dynamic_linker="$host_os dld.sl"
10526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10532 ;;
10533 *)
10534 shrext_cmds='.sl'
10535 dynamic_linker="$host_os dld.sl"
10536 shlibpath_var=SHLIB_PATH
10537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 ;;
10541 esac
10542 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10543 postinstall_cmds='chmod 555 $lib'
10544 # or fails outright, so override atomically:
10545 install_override_mode=555
10546 ;;
10547
10548 interix[3-9]*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 ;;
10559
10560 irix5* | irix6* | nonstopux*)
10561 case $host_os in
10562 nonstopux*) version_type=nonstopux ;;
10563 *)
10564 if test "$lt_cv_prog_gnu_ld" = yes; then
10565 version_type=linux # correct to gnu/linux during the next big refactor
10566 else
10567 version_type=irix
10568 fi ;;
10569 esac
10570 need_lib_prefix=no
10571 need_version=no
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10574 case $host_os in
10575 irix5* | nonstopux*)
10576 libsuff= shlibsuff=
10577 ;;
10578 *)
10579 case $LD in # libtool.m4 will add one of these switches to LD
10580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10581 libsuff= shlibsuff= libmagic=32-bit;;
10582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10583 libsuff=32 shlibsuff=N32 libmagic=N32;;
10584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10585 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10586 *) libsuff= shlibsuff= libmagic=never-match;;
10587 esac
10588 ;;
10589 esac
10590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10591 shlibpath_overrides_runpath=no
10592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10594 hardcode_into_libs=yes
10595 ;;
10596
10597 # No shared lib support for Linux oldld, aout, or coff.
10598 linux*oldld* | linux*aout* | linux*coff*)
10599 dynamic_linker=no
10600 ;;
10601
10602 # This must be glibc/ELF.
10603 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10604 version_type=linux # correct to gnu/linux during the next big refactor
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=no
10612
10613 # Some binutils ld are patched to set DT_RUNPATH
10614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 lt_cv_shlibpath_overrides_runpath=no
10618 save_LDFLAGS=$LDFLAGS
10619 save_libdir=$libdir
10620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624
10625 int
10626 main ()
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"; then :
10634 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10635 lt_cv_shlibpath_overrides_runpath=yes
10636 fi
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LDFLAGS=$save_LDFLAGS
10641 libdir=$save_libdir
10642
10643 fi
10644
10645 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10646
10647 # This implies no fast_install, which is unacceptable.
10648 # Some rework will be needed to allow for fast_install
10649 # before this can be enabled.
10650 hardcode_into_libs=yes
10651
10652 # Append ld.so.conf contents to the search path
10653 if test -f /etc/ld.so.conf; then
10654 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' ' '`
10655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10656 fi
10657
10658 # We used to test for /lib/ld.so.1 and disable shared libraries on
10659 # powerpc, because MkLinux only supported shared libraries with the
10660 # GNU dynamic linker. Since this was broken with cross compilers,
10661 # most powerpc-linux boxes support dynamic linking these days and
10662 # people can always --disable-shared, the test was removed, and we
10663 # assume the GNU/Linux dynamic linker is in use.
10664 dynamic_linker='GNU/Linux ld.so'
10665 ;;
10666
10667 netbsd*)
10668 version_type=sunos
10669 need_lib_prefix=no
10670 need_version=no
10671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10674 dynamic_linker='NetBSD (a.out) ld.so'
10675 else
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 dynamic_linker='NetBSD ld.elf_so'
10679 fi
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10683 ;;
10684
10685 newsos6)
10686 version_type=linux # correct to gnu/linux during the next big refactor
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 ;;
10691
10692 *nto* | *qnx*)
10693 version_type=qnx
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10701 dynamic_linker='ldqnx.so'
10702 ;;
10703
10704 openbsd*)
10705 version_type=sunos
10706 sys_lib_dlsearch_path_spec="/usr/lib"
10707 need_lib_prefix=no
10708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10709 case $host_os in
10710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10711 *) need_version=no ;;
10712 esac
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10717 case $host_os in
10718 openbsd2.[89] | openbsd2.[89].*)
10719 shlibpath_overrides_runpath=no
10720 ;;
10721 *)
10722 shlibpath_overrides_runpath=yes
10723 ;;
10724 esac
10725 else
10726 shlibpath_overrides_runpath=yes
10727 fi
10728 ;;
10729
10730 os2*)
10731 libname_spec='$name'
10732 shrext_cmds=".dll"
10733 need_lib_prefix=no
10734 library_names_spec='$libname${shared_ext} $libname.a'
10735 dynamic_linker='OS/2 ld.exe'
10736 shlibpath_var=LIBPATH
10737 ;;
10738
10739 osf3* | osf4* | osf5*)
10740 version_type=osf
10741 need_lib_prefix=no
10742 need_version=no
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10748 ;;
10749
10750 rdos*)
10751 dynamic_linker=no
10752 ;;
10753
10754 solaris*)
10755 version_type=linux # correct to gnu/linux during the next big refactor
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=yes
10762 hardcode_into_libs=yes
10763 # ldd complains unless libraries are executable
10764 postinstall_cmds='chmod +x $lib'
10765 ;;
10766
10767 sunos4*)
10768 version_type=sunos
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 shlibpath_overrides_runpath=yes
10773 if test "$with_gnu_ld" = yes; then
10774 need_lib_prefix=no
10775 fi
10776 need_version=yes
10777 ;;
10778
10779 sysv4 | sysv4.3*)
10780 version_type=linux # correct to gnu/linux during the next big refactor
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 case $host_vendor in
10785 sni)
10786 shlibpath_overrides_runpath=no
10787 need_lib_prefix=no
10788 runpath_var=LD_RUN_PATH
10789 ;;
10790 siemens)
10791 need_lib_prefix=no
10792 ;;
10793 motorola)
10794 need_lib_prefix=no
10795 need_version=no
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10798 ;;
10799 esac
10800 ;;
10801
10802 sysv4*MP*)
10803 if test -d /usr/nec ;then
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10806 soname_spec='$libname${shared_ext}.$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 fi
10809 ;;
10810
10811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10812 version_type=freebsd-elf
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 if test "$with_gnu_ld" = yes; then
10821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10822 else
10823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10824 case $host_os in
10825 sco3.2v5*)
10826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10827 ;;
10828 esac
10829 fi
10830 sys_lib_dlsearch_path_spec='/usr/lib'
10831 ;;
10832
10833 tpf*)
10834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10835 version_type=linux # correct to gnu/linux during the next big refactor
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 ;;
10843
10844 uts4*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 ;;
10850
10851 *)
10852 dynamic_linker=no
10853 ;;
10854 esac
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10856 $as_echo "$dynamic_linker" >&6; }
10857 test "$dynamic_linker" = no && can_build_shared=no
10858
10859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10860 if test "$GCC" = yes; then
10861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10862 fi
10863
10864 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10866 fi
10867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10869 fi
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10963 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10964 hardcode_action=
10965 if test -n "$hardcode_libdir_flag_spec" ||
10966 test -n "$runpath_var" ||
10967 test "X$hardcode_automatic" = "Xyes" ; then
10968
10969 # We can hardcode non-existent directories.
10970 if test "$hardcode_direct" != no &&
10971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10972 # have to relink, otherwise we might link with an installed library
10973 # when we should be linking with a yet-to-be-installed one
10974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10975 test "$hardcode_minus_L" != no; then
10976 # Linking always hardcodes the temporary library directory.
10977 hardcode_action=relink
10978 else
10979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10980 hardcode_action=immediate
10981 fi
10982 else
10983 # We cannot hardcode anything, or else we can only hardcode existing
10984 # directories.
10985 hardcode_action=unsupported
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10988 $as_echo "$hardcode_action" >&6; }
10989
10990 if test "$hardcode_action" = relink ||
10991 test "$inherit_rpath" = yes; then
10992 # Fast installation is not supported
10993 enable_fast_install=no
10994 elif test "$shlibpath_overrides_runpath" = yes ||
10995 test "$enable_shared" = no; then
10996 # Fast installation is not necessary
10997 enable_fast_install=needless
10998 fi
10999
11000
11001
11002
11003
11004
11005 if test "x$enable_dlopen" != xyes; then
11006 enable_dlopen=unknown
11007 enable_dlopen_self=unknown
11008 enable_dlopen_self_static=unknown
11009 else
11010 lt_cv_dlopen=no
11011 lt_cv_dlopen_libs=
11012
11013 case $host_os in
11014 beos*)
11015 lt_cv_dlopen="load_add_on"
11016 lt_cv_dlopen_libs=
11017 lt_cv_dlopen_self=yes
11018 ;;
11019
11020 mingw* | pw32* | cegcc*)
11021 lt_cv_dlopen="LoadLibrary"
11022 lt_cv_dlopen_libs=
11023 ;;
11024
11025 cygwin*)
11026 lt_cv_dlopen="dlopen"
11027 lt_cv_dlopen_libs=
11028 ;;
11029
11030 darwin*)
11031 # if libdl is installed we need to link against it
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11034 if ${ac_cv_lib_dl_dlopen+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ldl $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char dlopen ();
11049 int
11050 main ()
11051 {
11052 return dlopen ();
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_dl_dlopen=yes
11059 else
11060 ac_cv_lib_dl_dlopen=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11070 else
11071
11072 lt_cv_dlopen="dyld"
11073 lt_cv_dlopen_libs=
11074 lt_cv_dlopen_self=yes
11075
11076 fi
11077
11078 ;;
11079
11080 *)
11081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11082 if test "x$ac_cv_func_shl_load" = xyes; then :
11083 lt_cv_dlopen="shl_load"
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11087 if ${ac_cv_lib_dld_shl_load+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 ac_check_lib_save_LIBS=$LIBS
11091 LIBS="-ldld $LIBS"
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11094
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char shl_load ();
11102 int
11103 main ()
11104 {
11105 return shl_load ();
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 if ac_fn_c_try_link "$LINENO"; then :
11111 ac_cv_lib_dld_shl_load=yes
11112 else
11113 ac_cv_lib_dld_shl_load=no
11114 fi
11115 rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11118 fi
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11123 else
11124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11125 if test "x$ac_cv_func_dlopen" = xyes; then :
11126 lt_cv_dlopen="dlopen"
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11130 if ${ac_cv_lib_dl_dlopen+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 ac_check_lib_save_LIBS=$LIBS
11134 LIBS="-ldl $LIBS"
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11137
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char dlopen ();
11145 int
11146 main ()
11147 {
11148 return dlopen ();
11149 ;
11150 return 0;
11151 }
11152 _ACEOF
11153 if ac_fn_c_try_link "$LINENO"; then :
11154 ac_cv_lib_dl_dlopen=yes
11155 else
11156 ac_cv_lib_dl_dlopen=no
11157 fi
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11169 if ${ac_cv_lib_svld_dlopen+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-lsvld $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char dlopen ();
11184 int
11185 main ()
11186 {
11187 return dlopen ();
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 ac_cv_lib_svld_dlopen=yes
11194 else
11195 ac_cv_lib_svld_dlopen=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11208 if ${ac_cv_lib_dld_dld_link+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-ldld $LIBS"
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char dld_link ();
11223 int
11224 main ()
11225 {
11226 return dld_link ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"; then :
11232 ac_cv_lib_dld_dld_link=yes
11233 else
11234 ac_cv_lib_dld_dld_link=no
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_lib_save_LIBS
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11244 fi
11245
11246
11247 fi
11248
11249
11250 fi
11251
11252
11253 fi
11254
11255
11256 fi
11257
11258
11259 fi
11260
11261 ;;
11262 esac
11263
11264 if test "x$lt_cv_dlopen" != xno; then
11265 enable_dlopen=yes
11266 else
11267 enable_dlopen=no
11268 fi
11269
11270 case $lt_cv_dlopen in
11271 dlopen)
11272 save_CPPFLAGS="$CPPFLAGS"
11273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11274
11275 save_LDFLAGS="$LDFLAGS"
11276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11277
11278 save_LIBS="$LIBS"
11279 LIBS="$lt_cv_dlopen_libs $LIBS"
11280
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11283 if ${lt_cv_dlopen_self+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 if test "$cross_compiling" = yes; then :
11287 lt_cv_dlopen_self=cross
11288 else
11289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11290 lt_status=$lt_dlunknown
11291 cat > conftest.$ac_ext <<_LT_EOF
11292 #line $LINENO "configure"
11293 #include "confdefs.h"
11294
11295 #if HAVE_DLFCN_H
11296 #include <dlfcn.h>
11297 #endif
11298
11299 #include <stdio.h>
11300
11301 #ifdef RTLD_GLOBAL
11302 # define LT_DLGLOBAL RTLD_GLOBAL
11303 #else
11304 # ifdef DL_GLOBAL
11305 # define LT_DLGLOBAL DL_GLOBAL
11306 # else
11307 # define LT_DLGLOBAL 0
11308 # endif
11309 #endif
11310
11311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11312 find out it does not work in some platform. */
11313 #ifndef LT_DLLAZY_OR_NOW
11314 # ifdef RTLD_LAZY
11315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11316 # else
11317 # ifdef DL_LAZY
11318 # define LT_DLLAZY_OR_NOW DL_LAZY
11319 # else
11320 # ifdef RTLD_NOW
11321 # define LT_DLLAZY_OR_NOW RTLD_NOW
11322 # else
11323 # ifdef DL_NOW
11324 # define LT_DLLAZY_OR_NOW DL_NOW
11325 # else
11326 # define LT_DLLAZY_OR_NOW 0
11327 # endif
11328 # endif
11329 # endif
11330 # endif
11331 #endif
11332
11333 /* When -fvisbility=hidden is used, assume the code has been annotated
11334 correspondingly for the symbols needed. */
11335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11336 int fnord () __attribute__((visibility("default")));
11337 #endif
11338
11339 int fnord () { return 42; }
11340 int main ()
11341 {
11342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11343 int status = $lt_dlunknown;
11344
11345 if (self)
11346 {
11347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11348 else
11349 {
11350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11351 else puts (dlerror ());
11352 }
11353 /* dlclose (self); */
11354 }
11355 else
11356 puts (dlerror ());
11357
11358 return status;
11359 }
11360 _LT_EOF
11361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11362 (eval $ac_link) 2>&5
11363 ac_status=$?
11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11366 (./conftest; exit; ) >&5 2>/dev/null
11367 lt_status=$?
11368 case x$lt_status in
11369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11372 esac
11373 else :
11374 # compilation failed
11375 lt_cv_dlopen_self=no
11376 fi
11377 fi
11378 rm -fr conftest*
11379
11380
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11383 $as_echo "$lt_cv_dlopen_self" >&6; }
11384
11385 if test "x$lt_cv_dlopen_self" = xyes; then
11386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11388 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11389 if ${lt_cv_dlopen_self_static+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 if test "$cross_compiling" = yes; then :
11393 lt_cv_dlopen_self_static=cross
11394 else
11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11396 lt_status=$lt_dlunknown
11397 cat > conftest.$ac_ext <<_LT_EOF
11398 #line $LINENO "configure"
11399 #include "confdefs.h"
11400
11401 #if HAVE_DLFCN_H
11402 #include <dlfcn.h>
11403 #endif
11404
11405 #include <stdio.h>
11406
11407 #ifdef RTLD_GLOBAL
11408 # define LT_DLGLOBAL RTLD_GLOBAL
11409 #else
11410 # ifdef DL_GLOBAL
11411 # define LT_DLGLOBAL DL_GLOBAL
11412 # else
11413 # define LT_DLGLOBAL 0
11414 # endif
11415 #endif
11416
11417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11418 find out it does not work in some platform. */
11419 #ifndef LT_DLLAZY_OR_NOW
11420 # ifdef RTLD_LAZY
11421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11422 # else
11423 # ifdef DL_LAZY
11424 # define LT_DLLAZY_OR_NOW DL_LAZY
11425 # else
11426 # ifdef RTLD_NOW
11427 # define LT_DLLAZY_OR_NOW RTLD_NOW
11428 # else
11429 # ifdef DL_NOW
11430 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # else
11432 # define LT_DLLAZY_OR_NOW 0
11433 # endif
11434 # endif
11435 # endif
11436 # endif
11437 #endif
11438
11439 /* When -fvisbility=hidden is used, assume the code has been annotated
11440 correspondingly for the symbols needed. */
11441 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11442 int fnord () __attribute__((visibility("default")));
11443 #endif
11444
11445 int fnord () { return 42; }
11446 int main ()
11447 {
11448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11449 int status = $lt_dlunknown;
11450
11451 if (self)
11452 {
11453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11454 else
11455 {
11456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11457 else puts (dlerror ());
11458 }
11459 /* dlclose (self); */
11460 }
11461 else
11462 puts (dlerror ());
11463
11464 return status;
11465 }
11466 _LT_EOF
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11468 (eval $ac_link) 2>&5
11469 ac_status=$?
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11472 (./conftest; exit; ) >&5 2>/dev/null
11473 lt_status=$?
11474 case x$lt_status in
11475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11478 esac
11479 else :
11480 # compilation failed
11481 lt_cv_dlopen_self_static=no
11482 fi
11483 fi
11484 rm -fr conftest*
11485
11486
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11489 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11490 fi
11491
11492 CPPFLAGS="$save_CPPFLAGS"
11493 LDFLAGS="$save_LDFLAGS"
11494 LIBS="$save_LIBS"
11495 ;;
11496 esac
11497
11498 case $lt_cv_dlopen_self in
11499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11500 *) enable_dlopen_self=unknown ;;
11501 esac
11502
11503 case $lt_cv_dlopen_self_static in
11504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11505 *) enable_dlopen_self_static=unknown ;;
11506 esac
11507 fi
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525 striplib=
11526 old_striplib=
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11528 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11529 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11533 $as_echo "yes" >&6; }
11534 else
11535 # FIXME - insert some real tests, host_os isn't really good enough
11536 case $host_os in
11537 darwin*)
11538 if test -n "$STRIP" ; then
11539 striplib="$STRIP -x"
11540 old_striplib="$STRIP -S"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547 ;;
11548 *)
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 ;;
11552 esac
11553 fi
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566 # Report which library types will actually be built
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11568 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11570 $as_echo "$can_build_shared" >&6; }
11571
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11573 $as_echo_n "checking whether to build shared libraries... " >&6; }
11574 test "$can_build_shared" = "no" && enable_shared=no
11575
11576 # On AIX, shared libraries and static libraries use the same namespace, and
11577 # are all built from PIC.
11578 case $host_os in
11579 aix3*)
11580 test "$enable_shared" = yes && enable_static=no
11581 if test -n "$RANLIB"; then
11582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11583 postinstall_cmds='$RANLIB $lib'
11584 fi
11585 ;;
11586
11587 aix[4-9]*)
11588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11589 test "$enable_shared" = yes && enable_static=no
11590 fi
11591 ;;
11592 esac
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11594 $as_echo "$enable_shared" >&6; }
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11597 $as_echo_n "checking whether to build static libraries... " >&6; }
11598 # Make sure either enable_shared or enable_static is yes.
11599 test "$enable_shared" = yes || enable_static=yes
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11601 $as_echo "$enable_static" >&6; }
11602
11603
11604
11605
11606 fi
11607 ac_ext=c
11608 ac_cpp='$CPP $CPPFLAGS'
11609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11612
11613 CC="$lt_save_CC"
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 ac_config_commands="$ac_config_commands libtool"
11630
11631
11632
11633
11634 # Only expand once:
11635
11636
11637
11638 # Require xorg-macros minimum of 1.12 for DocBook external references
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11651 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11652 if ${ac_cv_prog_cc_c99+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 ac_cv_prog_cc_c99=no
11656 ac_save_CC=$CC
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <stdarg.h>
11660 #include <stdbool.h>
11661 #include <stdlib.h>
11662 #include <wchar.h>
11663 #include <stdio.h>
11664
11665 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11666 #define debug(...) fprintf (stderr, __VA_ARGS__)
11667 #define showlist(...) puts (#__VA_ARGS__)
11668 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11669 static void
11670 test_varargs_macros (void)
11671 {
11672 int x = 1234;
11673 int y = 5678;
11674 debug ("Flag");
11675 debug ("X = %d\n", x);
11676 showlist (The first, second, and third items.);
11677 report (x>y, "x is %d but y is %d", x, y);
11678 }
11679
11680 // Check long long types.
11681 #define BIG64 18446744073709551615ull
11682 #define BIG32 4294967295ul
11683 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11684 #if !BIG_OK
11685 your preprocessor is broken;
11686 #endif
11687 #if BIG_OK
11688 #else
11689 your preprocessor is broken;
11690 #endif
11691 static long long int bignum = -9223372036854775807LL;
11692 static unsigned long long int ubignum = BIG64;
11693
11694 struct incomplete_array
11695 {
11696 int datasize;
11697 double data[];
11698 };
11699
11700 struct named_init {
11701 int number;
11702 const wchar_t *name;
11703 double average;
11704 };
11705
11706 typedef const char *ccp;
11707
11708 static inline int
11709 test_restrict (ccp restrict text)
11710 {
11711 // See if C++-style comments work.
11712 // Iterate through items via the restricted pointer.
11713 // Also check for declarations in for loops.
11714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11715 continue;
11716 return 0;
11717 }
11718
11719 // Check varargs and va_copy.
11720 static void
11721 test_varargs (const char *format, ...)
11722 {
11723 va_list args;
11724 va_start (args, format);
11725 va_list args_copy;
11726 va_copy (args_copy, args);
11727
11728 const char *str;
11729 int number;
11730 float fnumber;
11731
11732 while (*format)
11733 {
11734 switch (*format++)
11735 {
11736 case 's': // string
11737 str = va_arg (args_copy, const char *);
11738 break;
11739 case 'd': // int
11740 number = va_arg (args_copy, int);
11741 break;
11742 case 'f': // float
11743 fnumber = va_arg (args_copy, double);
11744 break;
11745 default:
11746 break;
11747 }
11748 }
11749 va_end (args_copy);
11750 va_end (args);
11751 }
11752
11753 int
11754 main ()
11755 {
11756
11757 // Check bool.
11758 _Bool success = false;
11759
11760 // Check restrict.
11761 if (test_restrict ("String literal") == 0)
11762 success = true;
11763 char *restrict newvar = "Another string";
11764
11765 // Check varargs.
11766 test_varargs ("s, d' f .", "string", 65, 34.234);
11767 test_varargs_macros ();
11768
11769 // Check flexible array members.
11770 struct incomplete_array *ia =
11771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11772 ia->datasize = 10;
11773 for (int i = 0; i < ia->datasize; ++i)
11774 ia->data[i] = i * 1.234;
11775
11776 // Check named initializers.
11777 struct named_init ni = {
11778 .number = 34,
11779 .name = L"Test wide string",
11780 .average = 543.34343,
11781 };
11782
11783 ni.number = 58;
11784
11785 int dynamic_array[ni.number];
11786 dynamic_array[ni.number - 1] = 543;
11787
11788 // work around unused variable warnings
11789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11790 || dynamic_array[ni.number - 1] != 543);
11791
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11797 do
11798 CC="$ac_save_CC $ac_arg"
11799 if ac_fn_c_try_compile "$LINENO"; then :
11800 ac_cv_prog_cc_c99=$ac_arg
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext
11803 test "x$ac_cv_prog_cc_c99" != "xno" && break
11804 done
11805 rm -f conftest.$ac_ext
11806 CC=$ac_save_CC
11807
11808 fi
11809 # AC_CACHE_VAL
11810 case "x$ac_cv_prog_cc_c99" in
11811 x)
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11813 $as_echo "none needed" >&6; } ;;
11814 xno)
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11816 $as_echo "unsupported" >&6; } ;;
11817 *)
11818 CC="$CC $ac_cv_prog_cc_c99"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11820 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11821 esac
11822 if test "x$ac_cv_prog_cc_c99" != xno; then :
11823
11824 fi
11825
11826
11827
11828
11829
11830
11831 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11832 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11833 CLANGCC="yes"
11834 else
11835 CLANGCC="no"
11836 fi
11837
11838 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11839 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11840 INTELCC="yes"
11841 else
11842 INTELCC="no"
11843 fi
11844
11845 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11846 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11847 SUNCC="yes"
11848 else
11849 SUNCC="no"
11850 fi
11851
11852
11853
11854
11855 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11856 if test -n "$ac_tool_prefix"; then
11857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 case $PKG_CONFIG in
11865 [\\/]* | ?:[\\/]*)
11866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11867 ;;
11868 *)
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $PATH
11871 do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11879 fi
11880 done
11881 done
11882 IFS=$as_save_IFS
11883
11884 ;;
11885 esac
11886 fi
11887 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11888 if test -n "$PKG_CONFIG"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11890 $as_echo "$PKG_CONFIG" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897 fi
11898 if test -z "$ac_cv_path_PKG_CONFIG"; then
11899 ac_pt_PKG_CONFIG=$PKG_CONFIG
11900 # Extract the first word of "pkg-config", so it can be a program name with args.
11901 set dummy pkg-config; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 case $ac_pt_PKG_CONFIG in
11908 [\\/]* | ?:[\\/]*)
11909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11910 ;;
11911 *)
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 ;;
11928 esac
11929 fi
11930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11931 if test -n "$ac_pt_PKG_CONFIG"; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11933 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11934 else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938
11939 if test "x$ac_pt_PKG_CONFIG" = x; then
11940 PKG_CONFIG=""
11941 else
11942 case $cross_compiling:$ac_tool_warned in
11943 yes:)
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11946 ac_tool_warned=yes ;;
11947 esac
11948 PKG_CONFIG=$ac_pt_PKG_CONFIG
11949 fi
11950 else
11951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11952 fi
11953
11954 fi
11955 if test -n "$PKG_CONFIG"; then
11956 _pkg_min_version=0.9.0
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11958 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 PKG_CONFIG=""
11966 fi
11967
11968 fi
11969
11970
11971
11972
11973
11974 # Check whether --enable-selective-werror was given.
11975 if test "${enable_selective_werror+set}" = set; then :
11976 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11977 else
11978 SELECTIVE_WERROR=yes
11979 fi
11980
11981
11982
11983
11984
11985 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11986 if test "x$SUNCC" = "xyes"; then
11987 BASE_CFLAGS="-v"
11988 else
11989 BASE_CFLAGS=""
11990 fi
11991
11992 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006 xorg_testset_save_CFLAGS="$CFLAGS"
12007
12008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12011 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12012 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 int i;
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 xorg_cv_cc_flag_unknown_warning_option=yes
12021 else
12022 xorg_cv_cc_flag_unknown_warning_option=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12027 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12029 CFLAGS="$xorg_testset_save_CFLAGS"
12030 fi
12031
12032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12035 fi
12036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12038 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12039 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 int i;
12045 _ACEOF
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047 xorg_cv_cc_flag_unused_command_line_argument=yes
12048 else
12049 xorg_cv_cc_flag_unused_command_line_argument=no
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12054 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12056 CFLAGS="$xorg_testset_save_CFLAGS"
12057 fi
12058
12059 found="no"
12060
12061 if test $found = "no" ; then
12062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12064 fi
12065
12066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12068 fi
12069
12070 CFLAGS="$CFLAGS -Wall"
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12073 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12074 cacheid=xorg_cv_cc_flag__Wall
12075 if eval \${$cacheid+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 int i;
12081 int
12082 main ()
12083 {
12084
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 eval $cacheid=yes
12091 else
12092 eval $cacheid=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 fi
12097
12098
12099 CFLAGS="$xorg_testset_save_CFLAGS"
12100
12101 eval supported=\$$cacheid
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12103 $as_echo "$supported" >&6; }
12104 if test "$supported" = "yes" ; then
12105 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12106 found="yes"
12107 fi
12108 fi
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124 xorg_testset_save_CFLAGS="$CFLAGS"
12125
12126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 int i;
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138 xorg_cv_cc_flag_unknown_warning_option=yes
12139 else
12140 xorg_cv_cc_flag_unknown_warning_option=no
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12147 CFLAGS="$xorg_testset_save_CFLAGS"
12148 fi
12149
12150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12153 fi
12154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 int i;
12163 _ACEOF
12164 if ac_fn_c_try_compile "$LINENO"; then :
12165 xorg_cv_cc_flag_unused_command_line_argument=yes
12166 else
12167 xorg_cv_cc_flag_unused_command_line_argument=no
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12174 CFLAGS="$xorg_testset_save_CFLAGS"
12175 fi
12176
12177 found="no"
12178
12179 if test $found = "no" ; then
12180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12182 fi
12183
12184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12186 fi
12187
12188 CFLAGS="$CFLAGS -Wpointer-arith"
12189
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12191 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12192 cacheid=xorg_cv_cc_flag__Wpointer_arith
12193 if eval \${$cacheid+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 int i;
12199 int
12200 main ()
12201 {
12202
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 eval $cacheid=yes
12209 else
12210 eval $cacheid=no
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 fi
12215
12216
12217 CFLAGS="$xorg_testset_save_CFLAGS"
12218
12219 eval supported=\$$cacheid
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12221 $as_echo "$supported" >&6; }
12222 if test "$supported" = "yes" ; then
12223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12224 found="yes"
12225 fi
12226 fi
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242 xorg_testset_save_CFLAGS="$CFLAGS"
12243
12244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12248 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 int i;
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 xorg_cv_cc_flag_unknown_warning_option=yes
12257 else
12258 xorg_cv_cc_flag_unknown_warning_option=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12263 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12265 CFLAGS="$xorg_testset_save_CFLAGS"
12266 fi
12267
12268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12271 fi
12272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12274 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12275 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 int i;
12281 _ACEOF
12282 if ac_fn_c_try_compile "$LINENO"; then :
12283 xorg_cv_cc_flag_unused_command_line_argument=yes
12284 else
12285 xorg_cv_cc_flag_unused_command_line_argument=no
12286 fi
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12290 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12292 CFLAGS="$xorg_testset_save_CFLAGS"
12293 fi
12294
12295 found="no"
12296
12297 if test $found = "no" ; then
12298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12300 fi
12301
12302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12304 fi
12305
12306 CFLAGS="$CFLAGS -Wmissing-declarations"
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12309 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12310 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12311 if eval \${$cacheid+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 int i;
12317 int
12318 main ()
12319 {
12320
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 eval $cacheid=yes
12327 else
12328 eval $cacheid=no
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 fi
12333
12334
12335 CFLAGS="$xorg_testset_save_CFLAGS"
12336
12337 eval supported=\$$cacheid
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12339 $as_echo "$supported" >&6; }
12340 if test "$supported" = "yes" ; then
12341 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12342 found="yes"
12343 fi
12344 fi
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360 xorg_testset_save_CFLAGS="$CFLAGS"
12361
12362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12365 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12366 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 int i;
12372 _ACEOF
12373 if ac_fn_c_try_compile "$LINENO"; then :
12374 xorg_cv_cc_flag_unknown_warning_option=yes
12375 else
12376 xorg_cv_cc_flag_unknown_warning_option=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12381 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12383 CFLAGS="$xorg_testset_save_CFLAGS"
12384 fi
12385
12386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12389 fi
12390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12392 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12393 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 int i;
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 xorg_cv_cc_flag_unused_command_line_argument=yes
12402 else
12403 xorg_cv_cc_flag_unused_command_line_argument=no
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12408 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12410 CFLAGS="$xorg_testset_save_CFLAGS"
12411 fi
12412
12413 found="no"
12414
12415 if test $found = "no" ; then
12416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12418 fi
12419
12420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12422 fi
12423
12424 CFLAGS="$CFLAGS -Wformat=2"
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12427 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12428 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12429 if eval \${$cacheid+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 int i;
12435 int
12436 main ()
12437 {
12438
12439 ;
12440 return 0;
12441 }
12442 _ACEOF
12443 if ac_fn_c_try_link "$LINENO"; then :
12444 eval $cacheid=yes
12445 else
12446 eval $cacheid=no
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 fi
12451
12452
12453 CFLAGS="$xorg_testset_save_CFLAGS"
12454
12455 eval supported=\$$cacheid
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12457 $as_echo "$supported" >&6; }
12458 if test "$supported" = "yes" ; then
12459 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12460 found="yes"
12461 fi
12462 fi
12463
12464 if test $found = "no" ; then
12465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12467 fi
12468
12469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12471 fi
12472
12473 CFLAGS="$CFLAGS -Wformat"
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12476 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12477 cacheid=xorg_cv_cc_flag__Wformat
12478 if eval \${$cacheid+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 int i;
12484 int
12485 main ()
12486 {
12487
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 if ac_fn_c_try_link "$LINENO"; then :
12493 eval $cacheid=yes
12494 else
12495 eval $cacheid=no
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12499 fi
12500
12501
12502 CFLAGS="$xorg_testset_save_CFLAGS"
12503
12504 eval supported=\$$cacheid
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12506 $as_echo "$supported" >&6; }
12507 if test "$supported" = "yes" ; then
12508 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12509 found="yes"
12510 fi
12511 fi
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529 xorg_testset_save_CFLAGS="$CFLAGS"
12530
12531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540 int i;
12541 _ACEOF
12542 if ac_fn_c_try_compile "$LINENO"; then :
12543 xorg_cv_cc_flag_unknown_warning_option=yes
12544 else
12545 xorg_cv_cc_flag_unknown_warning_option=no
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12552 CFLAGS="$xorg_testset_save_CFLAGS"
12553 fi
12554
12555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12558 fi
12559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 int i;
12568 _ACEOF
12569 if ac_fn_c_try_compile "$LINENO"; then :
12570 xorg_cv_cc_flag_unused_command_line_argument=yes
12571 else
12572 xorg_cv_cc_flag_unused_command_line_argument=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12579 CFLAGS="$xorg_testset_save_CFLAGS"
12580 fi
12581
12582 found="no"
12583
12584 if test $found = "no" ; then
12585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12587 fi
12588
12589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12591 fi
12592
12593 CFLAGS="$CFLAGS -Wstrict-prototypes"
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12596 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12597 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12598 if eval \${$cacheid+:} false; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 int i;
12604 int
12605 main ()
12606 {
12607
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_c_try_link "$LINENO"; then :
12613 eval $cacheid=yes
12614 else
12615 eval $cacheid=no
12616 fi
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619 fi
12620
12621
12622 CFLAGS="$xorg_testset_save_CFLAGS"
12623
12624 eval supported=\$$cacheid
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12626 $as_echo "$supported" >&6; }
12627 if test "$supported" = "yes" ; then
12628 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12629 found="yes"
12630 fi
12631 fi
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647 xorg_testset_save_CFLAGS="$CFLAGS"
12648
12649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 int i;
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 xorg_cv_cc_flag_unknown_warning_option=yes
12662 else
12663 xorg_cv_cc_flag_unknown_warning_option=no
12664 fi
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12670 CFLAGS="$xorg_testset_save_CFLAGS"
12671 fi
12672
12673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12676 fi
12677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685 int i;
12686 _ACEOF
12687 if ac_fn_c_try_compile "$LINENO"; then :
12688 xorg_cv_cc_flag_unused_command_line_argument=yes
12689 else
12690 xorg_cv_cc_flag_unused_command_line_argument=no
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12697 CFLAGS="$xorg_testset_save_CFLAGS"
12698 fi
12699
12700 found="no"
12701
12702 if test $found = "no" ; then
12703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12705 fi
12706
12707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12709 fi
12710
12711 CFLAGS="$CFLAGS -Wmissing-prototypes"
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12714 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12715 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12716 if eval \${$cacheid+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 int i;
12722 int
12723 main ()
12724 {
12725
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 eval $cacheid=yes
12732 else
12733 eval $cacheid=no
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 fi
12738
12739
12740 CFLAGS="$xorg_testset_save_CFLAGS"
12741
12742 eval supported=\$$cacheid
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12744 $as_echo "$supported" >&6; }
12745 if test "$supported" = "yes" ; then
12746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12747 found="yes"
12748 fi
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 xorg_testset_save_CFLAGS="$CFLAGS"
12766
12767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12771 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 int i;
12777 _ACEOF
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779 xorg_cv_cc_flag_unknown_warning_option=yes
12780 else
12781 xorg_cv_cc_flag_unknown_warning_option=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12786 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12788 CFLAGS="$xorg_testset_save_CFLAGS"
12789 fi
12790
12791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12794 fi
12795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12798 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803 int i;
12804 _ACEOF
12805 if ac_fn_c_try_compile "$LINENO"; then :
12806 xorg_cv_cc_flag_unused_command_line_argument=yes
12807 else
12808 xorg_cv_cc_flag_unused_command_line_argument=no
12809 fi
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 fi
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12813 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12815 CFLAGS="$xorg_testset_save_CFLAGS"
12816 fi
12817
12818 found="no"
12819
12820 if test $found = "no" ; then
12821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12823 fi
12824
12825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12827 fi
12828
12829 CFLAGS="$CFLAGS -Wnested-externs"
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12832 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12833 cacheid=xorg_cv_cc_flag__Wnested_externs
12834 if eval \${$cacheid+:} false; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 int i;
12840 int
12841 main ()
12842 {
12843
12844 ;
12845 return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_link "$LINENO"; then :
12849 eval $cacheid=yes
12850 else
12851 eval $cacheid=no
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext \
12854 conftest$ac_exeext conftest.$ac_ext
12855 fi
12856
12857
12858 CFLAGS="$xorg_testset_save_CFLAGS"
12859
12860 eval supported=\$$cacheid
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12862 $as_echo "$supported" >&6; }
12863 if test "$supported" = "yes" ; then
12864 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12865 found="yes"
12866 fi
12867 fi
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883 xorg_testset_save_CFLAGS="$CFLAGS"
12884
12885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12888 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12889 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894 int i;
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897 xorg_cv_cc_flag_unknown_warning_option=yes
12898 else
12899 xorg_cv_cc_flag_unknown_warning_option=no
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12904 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12906 CFLAGS="$xorg_testset_save_CFLAGS"
12907 fi
12908
12909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12912 fi
12913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12915 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12916 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 int i;
12922 _ACEOF
12923 if ac_fn_c_try_compile "$LINENO"; then :
12924 xorg_cv_cc_flag_unused_command_line_argument=yes
12925 else
12926 xorg_cv_cc_flag_unused_command_line_argument=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12931 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12933 CFLAGS="$xorg_testset_save_CFLAGS"
12934 fi
12935
12936 found="no"
12937
12938 if test $found = "no" ; then
12939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12941 fi
12942
12943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12945 fi
12946
12947 CFLAGS="$CFLAGS -Wbad-function-cast"
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12950 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12951 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12952 if eval \${$cacheid+:} false; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 int i;
12958 int
12959 main ()
12960 {
12961
12962 ;
12963 return 0;
12964 }
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 eval $cacheid=yes
12968 else
12969 eval $cacheid=no
12970 fi
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 fi
12974
12975
12976 CFLAGS="$xorg_testset_save_CFLAGS"
12977
12978 eval supported=\$$cacheid
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12980 $as_echo "$supported" >&6; }
12981 if test "$supported" = "yes" ; then
12982 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12983 found="yes"
12984 fi
12985 fi
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001 xorg_testset_save_CFLAGS="$CFLAGS"
13002
13003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13006 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13007 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 int i;
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 xorg_cv_cc_flag_unknown_warning_option=yes
13016 else
13017 xorg_cv_cc_flag_unknown_warning_option=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13022 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13024 CFLAGS="$xorg_testset_save_CFLAGS"
13025 fi
13026
13027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13030 fi
13031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13033 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13034 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 int i;
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042 xorg_cv_cc_flag_unused_command_line_argument=yes
13043 else
13044 xorg_cv_cc_flag_unused_command_line_argument=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13049 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13051 CFLAGS="$xorg_testset_save_CFLAGS"
13052 fi
13053
13054 found="no"
13055
13056 if test $found = "no" ; then
13057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13059 fi
13060
13061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063 fi
13064
13065 CFLAGS="$CFLAGS -Wold-style-definition"
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13068 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13069 cacheid=xorg_cv_cc_flag__Wold_style_definition
13070 if eval \${$cacheid+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 int i;
13076 int
13077 main ()
13078 {
13079
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_link "$LINENO"; then :
13085 eval $cacheid=yes
13086 else
13087 eval $cacheid=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 fi
13092
13093
13094 CFLAGS="$xorg_testset_save_CFLAGS"
13095
13096 eval supported=\$$cacheid
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13098 $as_echo "$supported" >&6; }
13099 if test "$supported" = "yes" ; then
13100 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13101 found="yes"
13102 fi
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119 xorg_testset_save_CFLAGS="$CFLAGS"
13120
13121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13124 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13125 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130 int i;
13131 _ACEOF
13132 if ac_fn_c_try_compile "$LINENO"; then :
13133 xorg_cv_cc_flag_unknown_warning_option=yes
13134 else
13135 xorg_cv_cc_flag_unknown_warning_option=no
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13140 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13142 CFLAGS="$xorg_testset_save_CFLAGS"
13143 fi
13144
13145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13148 fi
13149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13151 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13152 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 int i;
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 xorg_cv_cc_flag_unused_command_line_argument=yes
13161 else
13162 xorg_cv_cc_flag_unused_command_line_argument=no
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13167 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13169 CFLAGS="$xorg_testset_save_CFLAGS"
13170 fi
13171
13172 found="no"
13173
13174 if test $found = "no" ; then
13175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13177 fi
13178
13179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181 fi
13182
13183 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13186 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13187 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13188 if eval \${$cacheid+:} false; then :
13189 $as_echo_n "(cached) " >&6
13190 else
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13193 int i;
13194 int
13195 main ()
13196 {
13197
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 eval $cacheid=yes
13204 else
13205 eval $cacheid=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 fi
13210
13211
13212 CFLAGS="$xorg_testset_save_CFLAGS"
13213
13214 eval supported=\$$cacheid
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13216 $as_echo "$supported" >&6; }
13217 if test "$supported" = "yes" ; then
13218 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13219 found="yes"
13220 fi
13221 fi
13222
13223
13224
13225
13226
13227 # This chunk adds additional warnings that could catch undesired effects.
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241 xorg_testset_save_CFLAGS="$CFLAGS"
13242
13243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13246 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13247 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 int i;
13253 _ACEOF
13254 if ac_fn_c_try_compile "$LINENO"; then :
13255 xorg_cv_cc_flag_unknown_warning_option=yes
13256 else
13257 xorg_cv_cc_flag_unknown_warning_option=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13262 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13264 CFLAGS="$xorg_testset_save_CFLAGS"
13265 fi
13266
13267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13270 fi
13271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13273 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13274 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 int i;
13280 _ACEOF
13281 if ac_fn_c_try_compile "$LINENO"; then :
13282 xorg_cv_cc_flag_unused_command_line_argument=yes
13283 else
13284 xorg_cv_cc_flag_unused_command_line_argument=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13289 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13291 CFLAGS="$xorg_testset_save_CFLAGS"
13292 fi
13293
13294 found="no"
13295
13296 if test $found = "no" ; then
13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299 fi
13300
13301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303 fi
13304
13305 CFLAGS="$CFLAGS -Wunused"
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13308 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13309 cacheid=xorg_cv_cc_flag__Wunused
13310 if eval \${$cacheid+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 int i;
13316 int
13317 main ()
13318 {
13319
13320 ;
13321 return 0;
13322 }
13323 _ACEOF
13324 if ac_fn_c_try_link "$LINENO"; then :
13325 eval $cacheid=yes
13326 else
13327 eval $cacheid=no
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 fi
13332
13333
13334 CFLAGS="$xorg_testset_save_CFLAGS"
13335
13336 eval supported=\$$cacheid
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13338 $as_echo "$supported" >&6; }
13339 if test "$supported" = "yes" ; then
13340 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13341 found="yes"
13342 fi
13343 fi
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359 xorg_testset_save_CFLAGS="$CFLAGS"
13360
13361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 int i;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 xorg_cv_cc_flag_unknown_warning_option=yes
13374 else
13375 xorg_cv_cc_flag_unknown_warning_option=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13382 CFLAGS="$xorg_testset_save_CFLAGS"
13383 fi
13384
13385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13388 fi
13389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397 int i;
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400 xorg_cv_cc_flag_unused_command_line_argument=yes
13401 else
13402 xorg_cv_cc_flag_unused_command_line_argument=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13409 CFLAGS="$xorg_testset_save_CFLAGS"
13410 fi
13411
13412 found="no"
13413
13414 if test $found = "no" ; then
13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417 fi
13418
13419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13421 fi
13422
13423 CFLAGS="$CFLAGS -Wuninitialized"
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13426 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13427 cacheid=xorg_cv_cc_flag__Wuninitialized
13428 if eval \${$cacheid+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433 int i;
13434 int
13435 main ()
13436 {
13437
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 eval $cacheid=yes
13444 else
13445 eval $cacheid=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 fi
13450
13451
13452 CFLAGS="$xorg_testset_save_CFLAGS"
13453
13454 eval supported=\$$cacheid
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13456 $as_echo "$supported" >&6; }
13457 if test "$supported" = "yes" ; then
13458 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13459 found="yes"
13460 fi
13461 fi
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477 xorg_testset_save_CFLAGS="$CFLAGS"
13478
13479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 int i;
13489 _ACEOF
13490 if ac_fn_c_try_compile "$LINENO"; then :
13491 xorg_cv_cc_flag_unknown_warning_option=yes
13492 else
13493 xorg_cv_cc_flag_unknown_warning_option=no
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13500 CFLAGS="$xorg_testset_save_CFLAGS"
13501 fi
13502
13503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13506 fi
13507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 int i;
13516 _ACEOF
13517 if ac_fn_c_try_compile "$LINENO"; then :
13518 xorg_cv_cc_flag_unused_command_line_argument=yes
13519 else
13520 xorg_cv_cc_flag_unused_command_line_argument=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13527 CFLAGS="$xorg_testset_save_CFLAGS"
13528 fi
13529
13530 found="no"
13531
13532 if test $found = "no" ; then
13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535 fi
13536
13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13539 fi
13540
13541 CFLAGS="$CFLAGS -Wshadow"
13542
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13544 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13545 cacheid=xorg_cv_cc_flag__Wshadow
13546 if eval \${$cacheid+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 int i;
13552 int
13553 main ()
13554 {
13555
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561 eval $cacheid=yes
13562 else
13563 eval $cacheid=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567 fi
13568
13569
13570 CFLAGS="$xorg_testset_save_CFLAGS"
13571
13572 eval supported=\$$cacheid
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13574 $as_echo "$supported" >&6; }
13575 if test "$supported" = "yes" ; then
13576 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13577 found="yes"
13578 fi
13579 fi
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595 xorg_testset_save_CFLAGS="$CFLAGS"
13596
13597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 int i;
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 xorg_cv_cc_flag_unknown_warning_option=yes
13610 else
13611 xorg_cv_cc_flag_unknown_warning_option=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13618 CFLAGS="$xorg_testset_save_CFLAGS"
13619 fi
13620
13621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13624 fi
13625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 int i;
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 xorg_cv_cc_flag_unused_command_line_argument=yes
13637 else
13638 xorg_cv_cc_flag_unused_command_line_argument=no
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13645 CFLAGS="$xorg_testset_save_CFLAGS"
13646 fi
13647
13648 found="no"
13649
13650 if test $found = "no" ; then
13651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13653 fi
13654
13655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13657 fi
13658
13659 CFLAGS="$CFLAGS -Wcast-qual"
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13662 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13663 cacheid=xorg_cv_cc_flag__Wcast_qual
13664 if eval \${$cacheid+:} false; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 int i;
13670 int
13671 main ()
13672 {
13673
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 eval $cacheid=yes
13680 else
13681 eval $cacheid=no
13682 fi
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13685 fi
13686
13687
13688 CFLAGS="$xorg_testset_save_CFLAGS"
13689
13690 eval supported=\$$cacheid
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13692 $as_echo "$supported" >&6; }
13693 if test "$supported" = "yes" ; then
13694 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13695 found="yes"
13696 fi
13697 fi
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 xorg_testset_save_CFLAGS="$CFLAGS"
13714
13715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 int i;
13725 _ACEOF
13726 if ac_fn_c_try_compile "$LINENO"; then :
13727 xorg_cv_cc_flag_unknown_warning_option=yes
13728 else
13729 xorg_cv_cc_flag_unknown_warning_option=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13736 CFLAGS="$xorg_testset_save_CFLAGS"
13737 fi
13738
13739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13742 fi
13743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 int i;
13752 _ACEOF
13753 if ac_fn_c_try_compile "$LINENO"; then :
13754 xorg_cv_cc_flag_unused_command_line_argument=yes
13755 else
13756 xorg_cv_cc_flag_unused_command_line_argument=no
13757 fi
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13763 CFLAGS="$xorg_testset_save_CFLAGS"
13764 fi
13765
13766 found="no"
13767
13768 if test $found = "no" ; then
13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771 fi
13772
13773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13775 fi
13776
13777 CFLAGS="$CFLAGS -Wmissing-noreturn"
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13780 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13781 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13782 if eval \${$cacheid+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 int i;
13788 int
13789 main ()
13790 {
13791
13792 ;
13793 return 0;
13794 }
13795 _ACEOF
13796 if ac_fn_c_try_link "$LINENO"; then :
13797 eval $cacheid=yes
13798 else
13799 eval $cacheid=no
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 fi
13804
13805
13806 CFLAGS="$xorg_testset_save_CFLAGS"
13807
13808 eval supported=\$$cacheid
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13810 $as_echo "$supported" >&6; }
13811 if test "$supported" = "yes" ; then
13812 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13813 found="yes"
13814 fi
13815 fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831 xorg_testset_save_CFLAGS="$CFLAGS"
13832
13833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 int i;
13843 _ACEOF
13844 if ac_fn_c_try_compile "$LINENO"; then :
13845 xorg_cv_cc_flag_unknown_warning_option=yes
13846 else
13847 xorg_cv_cc_flag_unknown_warning_option=no
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850 fi
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13854 CFLAGS="$xorg_testset_save_CFLAGS"
13855 fi
13856
13857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13860 fi
13861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 int i;
13870 _ACEOF
13871 if ac_fn_c_try_compile "$LINENO"; then :
13872 xorg_cv_cc_flag_unused_command_line_argument=yes
13873 else
13874 xorg_cv_cc_flag_unused_command_line_argument=no
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13881 CFLAGS="$xorg_testset_save_CFLAGS"
13882 fi
13883
13884 found="no"
13885
13886 if test $found = "no" ; then
13887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13889 fi
13890
13891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13893 fi
13894
13895 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13898 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13899 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13900 if eval \${$cacheid+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 int i;
13906 int
13907 main ()
13908 {
13909
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 eval $cacheid=yes
13916 else
13917 eval $cacheid=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 fi
13922
13923
13924 CFLAGS="$xorg_testset_save_CFLAGS"
13925
13926 eval supported=\$$cacheid
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13928 $as_echo "$supported" >&6; }
13929 if test "$supported" = "yes" ; then
13930 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13931 found="yes"
13932 fi
13933 fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 xorg_testset_save_CFLAGS="$CFLAGS"
13950
13951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"; then :
13963 xorg_cv_cc_flag_unknown_warning_option=yes
13964 else
13965 xorg_cv_cc_flag_unknown_warning_option=no
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13972 CFLAGS="$xorg_testset_save_CFLAGS"
13973 fi
13974
13975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13978 fi
13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 int i;
13988 _ACEOF
13989 if ac_fn_c_try_compile "$LINENO"; then :
13990 xorg_cv_cc_flag_unused_command_line_argument=yes
13991 else
13992 xorg_cv_cc_flag_unused_command_line_argument=no
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 fi
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13999 CFLAGS="$xorg_testset_save_CFLAGS"
14000 fi
14001
14002 found="no"
14003
14004 if test $found = "no" ; then
14005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007 fi
14008
14009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14011 fi
14012
14013 CFLAGS="$CFLAGS -Wredundant-decls"
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14016 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14017 cacheid=xorg_cv_cc_flag__Wredundant_decls
14018 if eval \${$cacheid+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 int i;
14024 int
14025 main ()
14026 {
14027
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 eval $cacheid=yes
14034 else
14035 eval $cacheid=no
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 fi
14040
14041
14042 CFLAGS="$xorg_testset_save_CFLAGS"
14043
14044 eval supported=\$$cacheid
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14046 $as_echo "$supported" >&6; }
14047 if test "$supported" = "yes" ; then
14048 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14049 found="yes"
14050 fi
14051 fi
14052
14053
14054
14055 # These are currently disabled because they are noisy. They will be enabled
14056 # in the future once the codebase is sufficiently modernized to silence
14057 # them. For now, I don't want them to drown out the other warnings.
14058 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
14059 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14060 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14061
14062 # Turn some warnings into errors, so we don't accidently get successful builds
14063 # when there are problems that should be fixed.
14064
14065 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 xorg_cv_cc_flag_unknown_warning_option=yes
14094 else
14095 xorg_cv_cc_flag_unknown_warning_option=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14102 CFLAGS="$xorg_testset_save_CFLAGS"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 xorg_cv_cc_flag_unused_command_line_argument=yes
14121 else
14122 xorg_cv_cc_flag_unused_command_line_argument=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130 fi
14131
14132 found="no"
14133
14134 if test $found = "no" ; then
14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137 fi
14138
14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14141 fi
14142
14143 CFLAGS="$CFLAGS -Werror=implicit"
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14146 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14147 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14148 if eval \${$cacheid+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 int
14155 main ()
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 eval $cacheid=yes
14164 else
14165 eval $cacheid=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi
14170
14171
14172 CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174 eval supported=\$$cacheid
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176 $as_echo "$supported" >&6; }
14177 if test "$supported" = "yes" ; then
14178 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14179 found="yes"
14180 fi
14181 fi
14182
14183 if test $found = "no" ; then
14184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186 fi
14187
14188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14190 fi
14191
14192 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14195 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14196 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14197 if eval \${$cacheid+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202 int i;
14203 int
14204 main ()
14205 {
14206
14207 ;
14208 return 0;
14209 }
14210 _ACEOF
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 eval $cacheid=yes
14213 else
14214 eval $cacheid=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
14218 fi
14219
14220
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222
14223 eval supported=\$$cacheid
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14225 $as_echo "$supported" >&6; }
14226 if test "$supported" = "yes" ; then
14227 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14228 found="yes"
14229 fi
14230 fi
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246 xorg_testset_save_CFLAGS="$CFLAGS"
14247
14248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14251 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14252 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 int i;
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 xorg_cv_cc_flag_unknown_warning_option=yes
14261 else
14262 xorg_cv_cc_flag_unknown_warning_option=no
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14267 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14269 CFLAGS="$xorg_testset_save_CFLAGS"
14270 fi
14271
14272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14275 fi
14276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14278 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14279 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 int i;
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287 xorg_cv_cc_flag_unused_command_line_argument=yes
14288 else
14289 xorg_cv_cc_flag_unused_command_line_argument=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14294 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14296 CFLAGS="$xorg_testset_save_CFLAGS"
14297 fi
14298
14299 found="no"
14300
14301 if test $found = "no" ; then
14302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14304 fi
14305
14306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14308 fi
14309
14310 CFLAGS="$CFLAGS -Werror=nonnull"
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14313 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14314 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14315 if eval \${$cacheid+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320 int i;
14321 int
14322 main ()
14323 {
14324
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 eval $cacheid=yes
14331 else
14332 eval $cacheid=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 fi
14337
14338
14339 CFLAGS="$xorg_testset_save_CFLAGS"
14340
14341 eval supported=\$$cacheid
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14343 $as_echo "$supported" >&6; }
14344 if test "$supported" = "yes" ; then
14345 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14346 found="yes"
14347 fi
14348 fi
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364 xorg_testset_save_CFLAGS="$CFLAGS"
14365
14366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14369 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14370 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14375 int i;
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378 xorg_cv_cc_flag_unknown_warning_option=yes
14379 else
14380 xorg_cv_cc_flag_unknown_warning_option=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14385 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14387 CFLAGS="$xorg_testset_save_CFLAGS"
14388 fi
14389
14390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14393 fi
14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14396 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14397 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14398 $as_echo_n "(cached) " >&6
14399 else
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 int i;
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 xorg_cv_cc_flag_unused_command_line_argument=yes
14406 else
14407 xorg_cv_cc_flag_unused_command_line_argument=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14412 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14414 CFLAGS="$xorg_testset_save_CFLAGS"
14415 fi
14416
14417 found="no"
14418
14419 if test $found = "no" ; then
14420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14422 fi
14423
14424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14426 fi
14427
14428 CFLAGS="$CFLAGS -Werror=init-self"
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14431 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14432 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14433 if eval \${$cacheid+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 int i;
14439 int
14440 main ()
14441 {
14442
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 if ac_fn_c_try_link "$LINENO"; then :
14448 eval $cacheid=yes
14449 else
14450 eval $cacheid=no
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454 fi
14455
14456
14457 CFLAGS="$xorg_testset_save_CFLAGS"
14458
14459 eval supported=\$$cacheid
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14461 $as_echo "$supported" >&6; }
14462 if test "$supported" = "yes" ; then
14463 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14464 found="yes"
14465 fi
14466 fi
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482 xorg_testset_save_CFLAGS="$CFLAGS"
14483
14484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14487 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14488 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493 int i;
14494 _ACEOF
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496 xorg_cv_cc_flag_unknown_warning_option=yes
14497 else
14498 xorg_cv_cc_flag_unknown_warning_option=no
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14503 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14505 CFLAGS="$xorg_testset_save_CFLAGS"
14506 fi
14507
14508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14511 fi
14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14514 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14515 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 _ACEOF
14522 if ac_fn_c_try_compile "$LINENO"; then :
14523 xorg_cv_cc_flag_unused_command_line_argument=yes
14524 else
14525 xorg_cv_cc_flag_unused_command_line_argument=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14530 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533 fi
14534
14535 found="no"
14536
14537 if test $found = "no" ; then
14538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14540 fi
14541
14542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14544 fi
14545
14546 CFLAGS="$CFLAGS -Werror=main"
14547
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14549 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14550 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14551 if eval \${$cacheid+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556 int i;
14557 int
14558 main ()
14559 {
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"; then :
14566 eval $cacheid=yes
14567 else
14568 eval $cacheid=no
14569 fi
14570 rm -f core conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14572 fi
14573
14574
14575 CFLAGS="$xorg_testset_save_CFLAGS"
14576
14577 eval supported=\$$cacheid
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14579 $as_echo "$supported" >&6; }
14580 if test "$supported" = "yes" ; then
14581 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14582 found="yes"
14583 fi
14584 fi
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 xorg_testset_save_CFLAGS="$CFLAGS"
14601
14602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 int i;
14612 _ACEOF
14613 if ac_fn_c_try_compile "$LINENO"; then :
14614 xorg_cv_cc_flag_unknown_warning_option=yes
14615 else
14616 xorg_cv_cc_flag_unknown_warning_option=no
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 fi
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14623 CFLAGS="$xorg_testset_save_CFLAGS"
14624 fi
14625
14626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14629 fi
14630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 int i;
14639 _ACEOF
14640 if ac_fn_c_try_compile "$LINENO"; then :
14641 xorg_cv_cc_flag_unused_command_line_argument=yes
14642 else
14643 xorg_cv_cc_flag_unused_command_line_argument=no
14644 fi
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14650 CFLAGS="$xorg_testset_save_CFLAGS"
14651 fi
14652
14653 found="no"
14654
14655 if test $found = "no" ; then
14656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14658 fi
14659
14660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14662 fi
14663
14664 CFLAGS="$CFLAGS -Werror=missing-braces"
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14667 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14668 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14669 if eval \${$cacheid+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 int i;
14675 int
14676 main ()
14677 {
14678
14679 ;
14680 return 0;
14681 }
14682 _ACEOF
14683 if ac_fn_c_try_link "$LINENO"; then :
14684 eval $cacheid=yes
14685 else
14686 eval $cacheid=no
14687 fi
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14690 fi
14691
14692
14693 CFLAGS="$xorg_testset_save_CFLAGS"
14694
14695 eval supported=\$$cacheid
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14697 $as_echo "$supported" >&6; }
14698 if test "$supported" = "yes" ; then
14699 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14700 found="yes"
14701 fi
14702 fi
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718 xorg_testset_save_CFLAGS="$CFLAGS"
14719
14720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 int i;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"; then :
14732 xorg_cv_cc_flag_unknown_warning_option=yes
14733 else
14734 xorg_cv_cc_flag_unknown_warning_option=no
14735 fi
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14741 CFLAGS="$xorg_testset_save_CFLAGS"
14742 fi
14743
14744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747 fi
14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 int i;
14757 _ACEOF
14758 if ac_fn_c_try_compile "$LINENO"; then :
14759 xorg_cv_cc_flag_unused_command_line_argument=yes
14760 else
14761 xorg_cv_cc_flag_unused_command_line_argument=no
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14768 CFLAGS="$xorg_testset_save_CFLAGS"
14769 fi
14770
14771 found="no"
14772
14773 if test $found = "no" ; then
14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14776 fi
14777
14778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14780 fi
14781
14782 CFLAGS="$CFLAGS -Werror=sequence-point"
14783
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14785 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14786 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14787 if eval \${$cacheid+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 int i;
14793 int
14794 main ()
14795 {
14796
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 eval $cacheid=yes
14803 else
14804 eval $cacheid=no
14805 fi
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 fi
14809
14810
14811 CFLAGS="$xorg_testset_save_CFLAGS"
14812
14813 eval supported=\$$cacheid
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14815 $as_echo "$supported" >&6; }
14816 if test "$supported" = "yes" ; then
14817 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14818 found="yes"
14819 fi
14820 fi
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836 xorg_testset_save_CFLAGS="$CFLAGS"
14837
14838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14847 int i;
14848 _ACEOF
14849 if ac_fn_c_try_compile "$LINENO"; then :
14850 xorg_cv_cc_flag_unknown_warning_option=yes
14851 else
14852 xorg_cv_cc_flag_unknown_warning_option=no
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 fi
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14859 CFLAGS="$xorg_testset_save_CFLAGS"
14860 fi
14861
14862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14865 fi
14866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 int i;
14875 _ACEOF
14876 if ac_fn_c_try_compile "$LINENO"; then :
14877 xorg_cv_cc_flag_unused_command_line_argument=yes
14878 else
14879 xorg_cv_cc_flag_unused_command_line_argument=no
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882 fi
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14886 CFLAGS="$xorg_testset_save_CFLAGS"
14887 fi
14888
14889 found="no"
14890
14891 if test $found = "no" ; then
14892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894 fi
14895
14896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14898 fi
14899
14900 CFLAGS="$CFLAGS -Werror=return-type"
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14903 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14904 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14905 if eval \${$cacheid+:} false; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 int i;
14911 int
14912 main ()
14913 {
14914
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_link "$LINENO"; then :
14920 eval $cacheid=yes
14921 else
14922 eval $cacheid=no
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 fi
14927
14928
14929 CFLAGS="$xorg_testset_save_CFLAGS"
14930
14931 eval supported=\$$cacheid
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14933 $as_echo "$supported" >&6; }
14934 if test "$supported" = "yes" ; then
14935 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14936 found="yes"
14937 fi
14938 fi
14939
14940 if test $found = "no" ; then
14941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14943 fi
14944
14945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14947 fi
14948
14949 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14950
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14952 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14953 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14954 if eval \${$cacheid+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14959 int i;
14960 int
14961 main ()
14962 {
14963
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 if ac_fn_c_try_link "$LINENO"; then :
14969 eval $cacheid=yes
14970 else
14971 eval $cacheid=no
14972 fi
14973 rm -f core conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
14975 fi
14976
14977
14978 CFLAGS="$xorg_testset_save_CFLAGS"
14979
14980 eval supported=\$$cacheid
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14982 $as_echo "$supported" >&6; }
14983 if test "$supported" = "yes" ; then
14984 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14985 found="yes"
14986 fi
14987 fi
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003 xorg_testset_save_CFLAGS="$CFLAGS"
15004
15005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 int i;
15015 _ACEOF
15016 if ac_fn_c_try_compile "$LINENO"; then :
15017 xorg_cv_cc_flag_unknown_warning_option=yes
15018 else
15019 xorg_cv_cc_flag_unknown_warning_option=no
15020 fi
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 fi
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15026 CFLAGS="$xorg_testset_save_CFLAGS"
15027 fi
15028
15029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15032 fi
15033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15041 int i;
15042 _ACEOF
15043 if ac_fn_c_try_compile "$LINENO"; then :
15044 xorg_cv_cc_flag_unused_command_line_argument=yes
15045 else
15046 xorg_cv_cc_flag_unused_command_line_argument=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15053 CFLAGS="$xorg_testset_save_CFLAGS"
15054 fi
15055
15056 found="no"
15057
15058 if test $found = "no" ; then
15059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15061 fi
15062
15063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065 fi
15066
15067 CFLAGS="$CFLAGS -Werror=trigraphs"
15068
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15070 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15071 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15072 if eval \${$cacheid+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077 int i;
15078 int
15079 main ()
15080 {
15081
15082 ;
15083 return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"; then :
15087 eval $cacheid=yes
15088 else
15089 eval $cacheid=no
15090 fi
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 fi
15094
15095
15096 CFLAGS="$xorg_testset_save_CFLAGS"
15097
15098 eval supported=\$$cacheid
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15100 $as_echo "$supported" >&6; }
15101 if test "$supported" = "yes" ; then
15102 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15103 found="yes"
15104 fi
15105 fi
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121 xorg_testset_save_CFLAGS="$CFLAGS"
15122
15123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15132 int i;
15133 _ACEOF
15134 if ac_fn_c_try_compile "$LINENO"; then :
15135 xorg_cv_cc_flag_unknown_warning_option=yes
15136 else
15137 xorg_cv_cc_flag_unknown_warning_option=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15144 CFLAGS="$xorg_testset_save_CFLAGS"
15145 fi
15146
15147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15150 fi
15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 int i;
15160 _ACEOF
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 xorg_cv_cc_flag_unused_command_line_argument=yes
15163 else
15164 xorg_cv_cc_flag_unused_command_line_argument=no
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15171 CFLAGS="$xorg_testset_save_CFLAGS"
15172 fi
15173
15174 found="no"
15175
15176 if test $found = "no" ; then
15177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15179 fi
15180
15181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183 fi
15184
15185 CFLAGS="$CFLAGS -Werror=array-bounds"
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15188 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15189 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15190 if eval \${$cacheid+:} false; then :
15191 $as_echo_n "(cached) " >&6
15192 else
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 int i;
15196 int
15197 main ()
15198 {
15199
15200 ;
15201 return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_link "$LINENO"; then :
15205 eval $cacheid=yes
15206 else
15207 eval $cacheid=no
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext \
15210 conftest$ac_exeext conftest.$ac_ext
15211 fi
15212
15213
15214 CFLAGS="$xorg_testset_save_CFLAGS"
15215
15216 eval supported=\$$cacheid
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15218 $as_echo "$supported" >&6; }
15219 if test "$supported" = "yes" ; then
15220 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15221 found="yes"
15222 fi
15223 fi
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239 xorg_testset_save_CFLAGS="$CFLAGS"
15240
15241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15250 int i;
15251 _ACEOF
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 xorg_cv_cc_flag_unknown_warning_option=yes
15254 else
15255 xorg_cv_cc_flag_unknown_warning_option=no
15256 fi
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 fi
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15262 CFLAGS="$xorg_testset_save_CFLAGS"
15263 fi
15264
15265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268 fi
15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 int i;
15278 _ACEOF
15279 if ac_fn_c_try_compile "$LINENO"; then :
15280 xorg_cv_cc_flag_unused_command_line_argument=yes
15281 else
15282 xorg_cv_cc_flag_unused_command_line_argument=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15289 CFLAGS="$xorg_testset_save_CFLAGS"
15290 fi
15291
15292 found="no"
15293
15294 if test $found = "no" ; then
15295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15297 fi
15298
15299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301 fi
15302
15303 CFLAGS="$CFLAGS -Werror=write-strings"
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15306 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15307 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15308 if eval \${$cacheid+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 int i;
15314 int
15315 main ()
15316 {
15317
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_link "$LINENO"; then :
15323 eval $cacheid=yes
15324 else
15325 eval $cacheid=no
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
15329 fi
15330
15331
15332 CFLAGS="$xorg_testset_save_CFLAGS"
15333
15334 eval supported=\$$cacheid
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15336 $as_echo "$supported" >&6; }
15337 if test "$supported" = "yes" ; then
15338 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15339 found="yes"
15340 fi
15341 fi
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357 xorg_testset_save_CFLAGS="$CFLAGS"
15358
15359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 int i;
15369 _ACEOF
15370 if ac_fn_c_try_compile "$LINENO"; then :
15371 xorg_cv_cc_flag_unknown_warning_option=yes
15372 else
15373 xorg_cv_cc_flag_unknown_warning_option=no
15374 fi
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376 fi
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15380 CFLAGS="$xorg_testset_save_CFLAGS"
15381 fi
15382
15383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15386 fi
15387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395 int i;
15396 _ACEOF
15397 if ac_fn_c_try_compile "$LINENO"; then :
15398 xorg_cv_cc_flag_unused_command_line_argument=yes
15399 else
15400 xorg_cv_cc_flag_unused_command_line_argument=no
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15407 CFLAGS="$xorg_testset_save_CFLAGS"
15408 fi
15409
15410 found="no"
15411
15412 if test $found = "no" ; then
15413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15415 fi
15416
15417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15419 fi
15420
15421 CFLAGS="$CFLAGS -Werror=address"
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15424 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15425 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15426 if eval \${$cacheid+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428 else
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 int i;
15432 int
15433 main ()
15434 {
15435
15436 ;
15437 return 0;
15438 }
15439 _ACEOF
15440 if ac_fn_c_try_link "$LINENO"; then :
15441 eval $cacheid=yes
15442 else
15443 eval $cacheid=no
15444 fi
15445 rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15447 fi
15448
15449
15450 CFLAGS="$xorg_testset_save_CFLAGS"
15451
15452 eval supported=\$$cacheid
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15454 $as_echo "$supported" >&6; }
15455 if test "$supported" = "yes" ; then
15456 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15457 found="yes"
15458 fi
15459 fi
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475 xorg_testset_save_CFLAGS="$CFLAGS"
15476
15477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486 int i;
15487 _ACEOF
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489 xorg_cv_cc_flag_unknown_warning_option=yes
15490 else
15491 xorg_cv_cc_flag_unknown_warning_option=no
15492 fi
15493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15498 CFLAGS="$xorg_testset_save_CFLAGS"
15499 fi
15500
15501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15504 fi
15505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15509 $as_echo_n "(cached) " >&6
15510 else
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 int i;
15514 _ACEOF
15515 if ac_fn_c_try_compile "$LINENO"; then :
15516 xorg_cv_cc_flag_unused_command_line_argument=yes
15517 else
15518 xorg_cv_cc_flag_unused_command_line_argument=no
15519 fi
15520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521 fi
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15525 CFLAGS="$xorg_testset_save_CFLAGS"
15526 fi
15527
15528 found="no"
15529
15530 if test $found = "no" ; then
15531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15533 fi
15534
15535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15537 fi
15538
15539 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15540
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15542 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15543 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15544 if eval \${$cacheid+:} false; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 int i;
15550 int
15551 main ()
15552 {
15553
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"; then :
15559 eval $cacheid=yes
15560 else
15561 eval $cacheid=no
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 fi
15566
15567
15568 CFLAGS="$xorg_testset_save_CFLAGS"
15569
15570 eval supported=\$$cacheid
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15572 $as_echo "$supported" >&6; }
15573 if test "$supported" = "yes" ; then
15574 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15575 found="yes"
15576 fi
15577 fi
15578
15579 if test $found = "no" ; then
15580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15582 fi
15583
15584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586 fi
15587
15588 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15589
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15591 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15592 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15593 if eval \${$cacheid+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 int i;
15599 int
15600 main ()
15601 {
15602
15603 ;
15604 return 0;
15605 }
15606 _ACEOF
15607 if ac_fn_c_try_link "$LINENO"; then :
15608 eval $cacheid=yes
15609 else
15610 eval $cacheid=no
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 fi
15615
15616
15617 CFLAGS="$xorg_testset_save_CFLAGS"
15618
15619 eval supported=\$$cacheid
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621 $as_echo "$supported" >&6; }
15622 if test "$supported" = "yes" ; then
15623 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15624 found="yes"
15625 fi
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642 xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 int i;
15654 _ACEOF
15655 if ac_fn_c_try_compile "$LINENO"; then :
15656 xorg_cv_cc_flag_unknown_warning_option=yes
15657 else
15658 xorg_cv_cc_flag_unknown_warning_option=no
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15665 CFLAGS="$xorg_testset_save_CFLAGS"
15666 fi
15667
15668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671 fi
15672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 _ACEOF
15682 if ac_fn_c_try_compile "$LINENO"; then :
15683 xorg_cv_cc_flag_unused_command_line_argument=yes
15684 else
15685 xorg_cv_cc_flag_unused_command_line_argument=no
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15692 CFLAGS="$xorg_testset_save_CFLAGS"
15693 fi
15694
15695 found="no"
15696
15697 if test $found = "no" ; then
15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700 fi
15701
15702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704 fi
15705
15706 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15709 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15711 if eval \${$cacheid+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 int i;
15717 int
15718 main ()
15719 {
15720
15721 ;
15722 return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_link "$LINENO"; then :
15726 eval $cacheid=yes
15727 else
15728 eval $cacheid=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15732 fi
15733
15734
15735 CFLAGS="$xorg_testset_save_CFLAGS"
15736
15737 eval supported=\$$cacheid
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15739 $as_echo "$supported" >&6; }
15740 if test "$supported" = "yes" ; then
15741 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15742 found="yes"
15743 fi
15744 fi
15745
15746 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15747 else
15748 { $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
15749 $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;}
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763 xorg_testset_save_CFLAGS="$CFLAGS"
15764
15765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 int i;
15775 _ACEOF
15776 if ac_fn_c_try_compile "$LINENO"; then :
15777 xorg_cv_cc_flag_unknown_warning_option=yes
15778 else
15779 xorg_cv_cc_flag_unknown_warning_option=no
15780 fi
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15786 CFLAGS="$xorg_testset_save_CFLAGS"
15787 fi
15788
15789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15792 fi
15793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15797 $as_echo_n "(cached) " >&6
15798 else
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 int i;
15802 _ACEOF
15803 if ac_fn_c_try_compile "$LINENO"; then :
15804 xorg_cv_cc_flag_unused_command_line_argument=yes
15805 else
15806 xorg_cv_cc_flag_unused_command_line_argument=no
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 fi
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15813 CFLAGS="$xorg_testset_save_CFLAGS"
15814 fi
15815
15816 found="no"
15817
15818 if test $found = "no" ; then
15819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821 fi
15822
15823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825 fi
15826
15827 CFLAGS="$CFLAGS -Wimplicit"
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15830 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15831 cacheid=xorg_cv_cc_flag__Wimplicit
15832 if eval \${$cacheid+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15837 int i;
15838 int
15839 main ()
15840 {
15841
15842 ;
15843 return 0;
15844 }
15845 _ACEOF
15846 if ac_fn_c_try_link "$LINENO"; then :
15847 eval $cacheid=yes
15848 else
15849 eval $cacheid=no
15850 fi
15851 rm -f core conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 fi
15854
15855
15856 CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858 eval supported=\$$cacheid
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860 $as_echo "$supported" >&6; }
15861 if test "$supported" = "yes" ; then
15862 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15863 found="yes"
15864 fi
15865 fi
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881 xorg_testset_save_CFLAGS="$CFLAGS"
15882
15883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15886 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15887 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15888 $as_echo_n "(cached) " >&6
15889 else
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 int i;
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895 xorg_cv_cc_flag_unknown_warning_option=yes
15896 else
15897 xorg_cv_cc_flag_unknown_warning_option=no
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 fi
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15902 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15904 CFLAGS="$xorg_testset_save_CFLAGS"
15905 fi
15906
15907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15910 fi
15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15913 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15914 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 int i;
15920 _ACEOF
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 xorg_cv_cc_flag_unused_command_line_argument=yes
15923 else
15924 xorg_cv_cc_flag_unused_command_line_argument=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927 fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15929 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15931 CFLAGS="$xorg_testset_save_CFLAGS"
15932 fi
15933
15934 found="no"
15935
15936 if test $found = "no" ; then
15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939 fi
15940
15941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15943 fi
15944
15945 CFLAGS="$CFLAGS -Wnonnull"
15946
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15948 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15949 cacheid=xorg_cv_cc_flag__Wnonnull
15950 if eval \${$cacheid+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952 else
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 int i;
15956 int
15957 main ()
15958 {
15959
15960 ;
15961 return 0;
15962 }
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15965 eval $cacheid=yes
15966 else
15967 eval $cacheid=no
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 fi
15972
15973
15974 CFLAGS="$xorg_testset_save_CFLAGS"
15975
15976 eval supported=\$$cacheid
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15978 $as_echo "$supported" >&6; }
15979 if test "$supported" = "yes" ; then
15980 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15981 found="yes"
15982 fi
15983 fi
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999 xorg_testset_save_CFLAGS="$CFLAGS"
16000
16001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16004 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16005 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 int i;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 xorg_cv_cc_flag_unknown_warning_option=yes
16014 else
16015 xorg_cv_cc_flag_unknown_warning_option=no
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16020 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16022 CFLAGS="$xorg_testset_save_CFLAGS"
16023 fi
16024
16025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 fi
16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16031 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16032 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037 int i;
16038 _ACEOF
16039 if ac_fn_c_try_compile "$LINENO"; then :
16040 xorg_cv_cc_flag_unused_command_line_argument=yes
16041 else
16042 xorg_cv_cc_flag_unused_command_line_argument=no
16043 fi
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16047 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16049 CFLAGS="$xorg_testset_save_CFLAGS"
16050 fi
16051
16052 found="no"
16053
16054 if test $found = "no" ; then
16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057 fi
16058
16059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16061 fi
16062
16063 CFLAGS="$CFLAGS -Winit-self"
16064
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16066 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16067 cacheid=xorg_cv_cc_flag__Winit_self
16068 if eval \${$cacheid+:} false; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 int i;
16074 int
16075 main ()
16076 {
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083 eval $cacheid=yes
16084 else
16085 eval $cacheid=no
16086 fi
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 fi
16090
16091
16092 CFLAGS="$xorg_testset_save_CFLAGS"
16093
16094 eval supported=\$$cacheid
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16096 $as_echo "$supported" >&6; }
16097 if test "$supported" = "yes" ; then
16098 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16099 found="yes"
16100 fi
16101 fi
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117 xorg_testset_save_CFLAGS="$CFLAGS"
16118
16119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 int i;
16129 _ACEOF
16130 if ac_fn_c_try_compile "$LINENO"; then :
16131 xorg_cv_cc_flag_unknown_warning_option=yes
16132 else
16133 xorg_cv_cc_flag_unknown_warning_option=no
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16140 CFLAGS="$xorg_testset_save_CFLAGS"
16141 fi
16142
16143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16146 fi
16147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 _ACEOF
16157 if ac_fn_c_try_compile "$LINENO"; then :
16158 xorg_cv_cc_flag_unused_command_line_argument=yes
16159 else
16160 xorg_cv_cc_flag_unused_command_line_argument=no
16161 fi
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16167 CFLAGS="$xorg_testset_save_CFLAGS"
16168 fi
16169
16170 found="no"
16171
16172 if test $found = "no" ; then
16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175 fi
16176
16177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16179 fi
16180
16181 CFLAGS="$CFLAGS -Wmain"
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16184 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16185 cacheid=xorg_cv_cc_flag__Wmain
16186 if eval \${$cacheid+:} false; then :
16187 $as_echo_n "(cached) " >&6
16188 else
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 int i;
16192 int
16193 main ()
16194 {
16195
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 if ac_fn_c_try_link "$LINENO"; then :
16201 eval $cacheid=yes
16202 else
16203 eval $cacheid=no
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16207 fi
16208
16209
16210 CFLAGS="$xorg_testset_save_CFLAGS"
16211
16212 eval supported=\$$cacheid
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16214 $as_echo "$supported" >&6; }
16215 if test "$supported" = "yes" ; then
16216 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16217 found="yes"
16218 fi
16219 fi
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235 xorg_testset_save_CFLAGS="$CFLAGS"
16236
16237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16240 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16241 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16242 $as_echo_n "(cached) " >&6
16243 else
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 int i;
16247 _ACEOF
16248 if ac_fn_c_try_compile "$LINENO"; then :
16249 xorg_cv_cc_flag_unknown_warning_option=yes
16250 else
16251 xorg_cv_cc_flag_unknown_warning_option=no
16252 fi
16253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16256 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16258 CFLAGS="$xorg_testset_save_CFLAGS"
16259 fi
16260
16261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16264 fi
16265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16267 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16268 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16269 $as_echo_n "(cached) " >&6
16270 else
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16273 int i;
16274 _ACEOF
16275 if ac_fn_c_try_compile "$LINENO"; then :
16276 xorg_cv_cc_flag_unused_command_line_argument=yes
16277 else
16278 xorg_cv_cc_flag_unused_command_line_argument=no
16279 fi
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16283 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16285 CFLAGS="$xorg_testset_save_CFLAGS"
16286 fi
16287
16288 found="no"
16289
16290 if test $found = "no" ; then
16291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293 fi
16294
16295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16297 fi
16298
16299 CFLAGS="$CFLAGS -Wmissing-braces"
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16302 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16303 cacheid=xorg_cv_cc_flag__Wmissing_braces
16304 if eval \${$cacheid+:} false; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 int i;
16310 int
16311 main ()
16312 {
16313
16314 ;
16315 return 0;
16316 }
16317 _ACEOF
16318 if ac_fn_c_try_link "$LINENO"; then :
16319 eval $cacheid=yes
16320 else
16321 eval $cacheid=no
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16325 fi
16326
16327
16328 CFLAGS="$xorg_testset_save_CFLAGS"
16329
16330 eval supported=\$$cacheid
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16332 $as_echo "$supported" >&6; }
16333 if test "$supported" = "yes" ; then
16334 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16335 found="yes"
16336 fi
16337 fi
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353 xorg_testset_save_CFLAGS="$CFLAGS"
16354
16355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16358 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16359 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364 int i;
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"; then :
16367 xorg_cv_cc_flag_unknown_warning_option=yes
16368 else
16369 xorg_cv_cc_flag_unknown_warning_option=no
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16374 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16376 CFLAGS="$xorg_testset_save_CFLAGS"
16377 fi
16378
16379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16382 fi
16383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16385 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16386 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 int i;
16392 _ACEOF
16393 if ac_fn_c_try_compile "$LINENO"; then :
16394 xorg_cv_cc_flag_unused_command_line_argument=yes
16395 else
16396 xorg_cv_cc_flag_unused_command_line_argument=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16401 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16403 CFLAGS="$xorg_testset_save_CFLAGS"
16404 fi
16405
16406 found="no"
16407
16408 if test $found = "no" ; then
16409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411 fi
16412
16413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16415 fi
16416
16417 CFLAGS="$CFLAGS -Wsequence-point"
16418
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16420 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16421 cacheid=xorg_cv_cc_flag__Wsequence_point
16422 if eval \${$cacheid+:} false; then :
16423 $as_echo_n "(cached) " >&6
16424 else
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427 int i;
16428 int
16429 main ()
16430 {
16431
16432 ;
16433 return 0;
16434 }
16435 _ACEOF
16436 if ac_fn_c_try_link "$LINENO"; then :
16437 eval $cacheid=yes
16438 else
16439 eval $cacheid=no
16440 fi
16441 rm -f core conftest.err conftest.$ac_objext \
16442 conftest$ac_exeext conftest.$ac_ext
16443 fi
16444
16445
16446 CFLAGS="$xorg_testset_save_CFLAGS"
16447
16448 eval supported=\$$cacheid
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16450 $as_echo "$supported" >&6; }
16451 if test "$supported" = "yes" ; then
16452 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16453 found="yes"
16454 fi
16455 fi
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471 xorg_testset_save_CFLAGS="$CFLAGS"
16472
16473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482 int i;
16483 _ACEOF
16484 if ac_fn_c_try_compile "$LINENO"; then :
16485 xorg_cv_cc_flag_unknown_warning_option=yes
16486 else
16487 xorg_cv_cc_flag_unknown_warning_option=no
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 fi
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16494 CFLAGS="$xorg_testset_save_CFLAGS"
16495 fi
16496
16497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16500 fi
16501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 int i;
16510 _ACEOF
16511 if ac_fn_c_try_compile "$LINENO"; then :
16512 xorg_cv_cc_flag_unused_command_line_argument=yes
16513 else
16514 xorg_cv_cc_flag_unused_command_line_argument=no
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16521 CFLAGS="$xorg_testset_save_CFLAGS"
16522 fi
16523
16524 found="no"
16525
16526 if test $found = "no" ; then
16527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16529 fi
16530
16531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533 fi
16534
16535 CFLAGS="$CFLAGS -Wreturn-type"
16536
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16538 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16539 cacheid=xorg_cv_cc_flag__Wreturn_type
16540 if eval \${$cacheid+:} false; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 int i;
16546 int
16547 main ()
16548 {
16549
16550 ;
16551 return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"; then :
16555 eval $cacheid=yes
16556 else
16557 eval $cacheid=no
16558 fi
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16561 fi
16562
16563
16564 CFLAGS="$xorg_testset_save_CFLAGS"
16565
16566 eval supported=\$$cacheid
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16568 $as_echo "$supported" >&6; }
16569 if test "$supported" = "yes" ; then
16570 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16571 found="yes"
16572 fi
16573 fi
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589 xorg_testset_save_CFLAGS="$CFLAGS"
16590
16591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16596 $as_echo_n "(cached) " >&6
16597 else
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 int i;
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603 xorg_cv_cc_flag_unknown_warning_option=yes
16604 else
16605 xorg_cv_cc_flag_unknown_warning_option=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 fi
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16612 CFLAGS="$xorg_testset_save_CFLAGS"
16613 fi
16614
16615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16618 fi
16619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627 int i;
16628 _ACEOF
16629 if ac_fn_c_try_compile "$LINENO"; then :
16630 xorg_cv_cc_flag_unused_command_line_argument=yes
16631 else
16632 xorg_cv_cc_flag_unused_command_line_argument=no
16633 fi
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16639 CFLAGS="$xorg_testset_save_CFLAGS"
16640 fi
16641
16642 found="no"
16643
16644 if test $found = "no" ; then
16645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16647 fi
16648
16649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16651 fi
16652
16653 CFLAGS="$CFLAGS -Wtrigraphs"
16654
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16656 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16657 cacheid=xorg_cv_cc_flag__Wtrigraphs
16658 if eval \${$cacheid+:} false; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 int i;
16664 int
16665 main ()
16666 {
16667
16668 ;
16669 return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_link "$LINENO"; then :
16673 eval $cacheid=yes
16674 else
16675 eval $cacheid=no
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679 fi
16680
16681
16682 CFLAGS="$xorg_testset_save_CFLAGS"
16683
16684 eval supported=\$$cacheid
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16686 $as_echo "$supported" >&6; }
16687 if test "$supported" = "yes" ; then
16688 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16689 found="yes"
16690 fi
16691 fi
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707 xorg_testset_save_CFLAGS="$CFLAGS"
16708
16709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16712 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16713 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718 int i;
16719 _ACEOF
16720 if ac_fn_c_try_compile "$LINENO"; then :
16721 xorg_cv_cc_flag_unknown_warning_option=yes
16722 else
16723 xorg_cv_cc_flag_unknown_warning_option=no
16724 fi
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 fi
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16728 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16730 CFLAGS="$xorg_testset_save_CFLAGS"
16731 fi
16732
16733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16736 fi
16737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16739 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16740 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16741 $as_echo_n "(cached) " >&6
16742 else
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16745 int i;
16746 _ACEOF
16747 if ac_fn_c_try_compile "$LINENO"; then :
16748 xorg_cv_cc_flag_unused_command_line_argument=yes
16749 else
16750 xorg_cv_cc_flag_unused_command_line_argument=no
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 fi
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16755 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16757 CFLAGS="$xorg_testset_save_CFLAGS"
16758 fi
16759
16760 found="no"
16761
16762 if test $found = "no" ; then
16763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16765 fi
16766
16767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16769 fi
16770
16771 CFLAGS="$CFLAGS -Warray-bounds"
16772
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16774 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16775 cacheid=xorg_cv_cc_flag__Warray_bounds
16776 if eval \${$cacheid+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 int i;
16782 int
16783 main ()
16784 {
16785
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 if ac_fn_c_try_link "$LINENO"; then :
16791 eval $cacheid=yes
16792 else
16793 eval $cacheid=no
16794 fi
16795 rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797 fi
16798
16799
16800 CFLAGS="$xorg_testset_save_CFLAGS"
16801
16802 eval supported=\$$cacheid
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16804 $as_echo "$supported" >&6; }
16805 if test "$supported" = "yes" ; then
16806 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16807 found="yes"
16808 fi
16809 fi
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825 xorg_testset_save_CFLAGS="$CFLAGS"
16826
16827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16830 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16831 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16836 int i;
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"; then :
16839 xorg_cv_cc_flag_unknown_warning_option=yes
16840 else
16841 xorg_cv_cc_flag_unknown_warning_option=no
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 fi
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16846 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16848 CFLAGS="$xorg_testset_save_CFLAGS"
16849 fi
16850
16851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16854 fi
16855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16857 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16858 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863 int i;
16864 _ACEOF
16865 if ac_fn_c_try_compile "$LINENO"; then :
16866 xorg_cv_cc_flag_unused_command_line_argument=yes
16867 else
16868 xorg_cv_cc_flag_unused_command_line_argument=no
16869 fi
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 fi
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16873 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16875 CFLAGS="$xorg_testset_save_CFLAGS"
16876 fi
16877
16878 found="no"
16879
16880 if test $found = "no" ; then
16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16883 fi
16884
16885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16887 fi
16888
16889 CFLAGS="$CFLAGS -Wwrite-strings"
16890
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16892 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16893 cacheid=xorg_cv_cc_flag__Wwrite_strings
16894 if eval \${$cacheid+:} false; then :
16895 $as_echo_n "(cached) " >&6
16896 else
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899 int i;
16900 int
16901 main ()
16902 {
16903
16904 ;
16905 return 0;
16906 }
16907 _ACEOF
16908 if ac_fn_c_try_link "$LINENO"; then :
16909 eval $cacheid=yes
16910 else
16911 eval $cacheid=no
16912 fi
16913 rm -f core conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16915 fi
16916
16917
16918 CFLAGS="$xorg_testset_save_CFLAGS"
16919
16920 eval supported=\$$cacheid
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16922 $as_echo "$supported" >&6; }
16923 if test "$supported" = "yes" ; then
16924 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16925 found="yes"
16926 fi
16927 fi
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943 xorg_testset_save_CFLAGS="$CFLAGS"
16944
16945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16948 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16949 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16954 int i;
16955 _ACEOF
16956 if ac_fn_c_try_compile "$LINENO"; then :
16957 xorg_cv_cc_flag_unknown_warning_option=yes
16958 else
16959 xorg_cv_cc_flag_unknown_warning_option=no
16960 fi
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 fi
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16964 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16966 CFLAGS="$xorg_testset_save_CFLAGS"
16967 fi
16968
16969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16972 fi
16973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16975 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16976 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16977 $as_echo_n "(cached) " >&6
16978 else
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 int i;
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"; then :
16984 xorg_cv_cc_flag_unused_command_line_argument=yes
16985 else
16986 xorg_cv_cc_flag_unused_command_line_argument=no
16987 fi
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 fi
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16991 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16993 CFLAGS="$xorg_testset_save_CFLAGS"
16994 fi
16995
16996 found="no"
16997
16998 if test $found = "no" ; then
16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17001 fi
17002
17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17005 fi
17006
17007 CFLAGS="$CFLAGS -Waddress"
17008
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17010 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17011 cacheid=xorg_cv_cc_flag__Waddress
17012 if eval \${$cacheid+:} false; then :
17013 $as_echo_n "(cached) " >&6
17014 else
17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h. */
17017 int i;
17018 int
17019 main ()
17020 {
17021
17022 ;
17023 return 0;
17024 }
17025 _ACEOF
17026 if ac_fn_c_try_link "$LINENO"; then :
17027 eval $cacheid=yes
17028 else
17029 eval $cacheid=no
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
17033 fi
17034
17035
17036 CFLAGS="$xorg_testset_save_CFLAGS"
17037
17038 eval supported=\$$cacheid
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17040 $as_echo "$supported" >&6; }
17041 if test "$supported" = "yes" ; then
17042 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17043 found="yes"
17044 fi
17045 fi
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061 xorg_testset_save_CFLAGS="$CFLAGS"
17062
17063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17066 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17067 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17068 $as_echo_n "(cached) " >&6
17069 else
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17072 int i;
17073 _ACEOF
17074 if ac_fn_c_try_compile "$LINENO"; then :
17075 xorg_cv_cc_flag_unknown_warning_option=yes
17076 else
17077 xorg_cv_cc_flag_unknown_warning_option=no
17078 fi
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17082 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17084 CFLAGS="$xorg_testset_save_CFLAGS"
17085 fi
17086
17087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17090 fi
17091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17093 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17094 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17095 $as_echo_n "(cached) " >&6
17096 else
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17099 int i;
17100 _ACEOF
17101 if ac_fn_c_try_compile "$LINENO"; then :
17102 xorg_cv_cc_flag_unused_command_line_argument=yes
17103 else
17104 xorg_cv_cc_flag_unused_command_line_argument=no
17105 fi
17106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17109 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17111 CFLAGS="$xorg_testset_save_CFLAGS"
17112 fi
17113
17114 found="no"
17115
17116 if test $found = "no" ; then
17117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119 fi
17120
17121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123 fi
17124
17125 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17128 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17129 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17130 if eval \${$cacheid+:} false; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17135 int i;
17136 int
17137 main ()
17138 {
17139
17140 ;
17141 return 0;
17142 }
17143 _ACEOF
17144 if ac_fn_c_try_link "$LINENO"; then :
17145 eval $cacheid=yes
17146 else
17147 eval $cacheid=no
17148 fi
17149 rm -f core conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17151 fi
17152
17153
17154 CFLAGS="$xorg_testset_save_CFLAGS"
17155
17156 eval supported=\$$cacheid
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17158 $as_echo "$supported" >&6; }
17159 if test "$supported" = "yes" ; then
17160 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17161 found="yes"
17162 fi
17163 fi
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179 xorg_testset_save_CFLAGS="$CFLAGS"
17180
17181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17184 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17185 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 int i;
17191 _ACEOF
17192 if ac_fn_c_try_compile "$LINENO"; then :
17193 xorg_cv_cc_flag_unknown_warning_option=yes
17194 else
17195 xorg_cv_cc_flag_unknown_warning_option=no
17196 fi
17197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198 fi
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17200 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17202 CFLAGS="$xorg_testset_save_CFLAGS"
17203 fi
17204
17205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17208 fi
17209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17211 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17212 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17213 $as_echo_n "(cached) " >&6
17214 else
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17217 int i;
17218 _ACEOF
17219 if ac_fn_c_try_compile "$LINENO"; then :
17220 xorg_cv_cc_flag_unused_command_line_argument=yes
17221 else
17222 xorg_cv_cc_flag_unused_command_line_argument=no
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17227 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17229 CFLAGS="$xorg_testset_save_CFLAGS"
17230 fi
17231
17232 found="no"
17233
17234 if test $found = "no" ; then
17235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237 fi
17238
17239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17241 fi
17242
17243 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17244
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17246 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17247 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17248 if eval \${$cacheid+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 int i;
17254 int
17255 main ()
17256 {
17257
17258 ;
17259 return 0;
17260 }
17261 _ACEOF
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 eval $cacheid=yes
17264 else
17265 eval $cacheid=no
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 fi
17270
17271
17272 CFLAGS="$xorg_testset_save_CFLAGS"
17273
17274 eval supported=\$$cacheid
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17276 $as_echo "$supported" >&6; }
17277 if test "$supported" = "yes" ; then
17278 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17279 found="yes"
17280 fi
17281 fi
17282
17283
17284 fi
17285
17286
17287
17288
17289
17290
17291
17292 CWARNFLAGS="$BASE_CFLAGS"
17293 if test "x$GCC" = xyes ; then
17294 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17295 fi
17296
17297
17298
17299
17300
17301
17302
17303
17304 # Check whether --enable-strict-compilation was given.
17305 if test "${enable_strict_compilation+set}" = set; then :
17306 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17307 else
17308 STRICT_COMPILE=no
17309 fi
17310
17311
17312
17313
17314
17315
17316 STRICT_CFLAGS=""
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330 xorg_testset_save_CFLAGS="$CFLAGS"
17331
17332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341 int i;
17342 _ACEOF
17343 if ac_fn_c_try_compile "$LINENO"; then :
17344 xorg_cv_cc_flag_unknown_warning_option=yes
17345 else
17346 xorg_cv_cc_flag_unknown_warning_option=no
17347 fi
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17353 CFLAGS="$xorg_testset_save_CFLAGS"
17354 fi
17355
17356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359 fi
17360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17364 $as_echo_n "(cached) " >&6
17365 else
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 int i;
17369 _ACEOF
17370 if ac_fn_c_try_compile "$LINENO"; then :
17371 xorg_cv_cc_flag_unused_command_line_argument=yes
17372 else
17373 xorg_cv_cc_flag_unused_command_line_argument=no
17374 fi
17375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 fi
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17380 CFLAGS="$xorg_testset_save_CFLAGS"
17381 fi
17382
17383 found="no"
17384
17385 if test $found = "no" ; then
17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388 fi
17389
17390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17392 fi
17393
17394 CFLAGS="$CFLAGS -pedantic"
17395
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17397 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17398 cacheid=xorg_cv_cc_flag__pedantic
17399 if eval \${$cacheid+:} false; then :
17400 $as_echo_n "(cached) " >&6
17401 else
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404 int i;
17405 int
17406 main ()
17407 {
17408
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 if ac_fn_c_try_link "$LINENO"; then :
17414 eval $cacheid=yes
17415 else
17416 eval $cacheid=no
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420 fi
17421
17422
17423 CFLAGS="$xorg_testset_save_CFLAGS"
17424
17425 eval supported=\$$cacheid
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17427 $as_echo "$supported" >&6; }
17428 if test "$supported" = "yes" ; then
17429 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17430 found="yes"
17431 fi
17432 fi
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448 xorg_testset_save_CFLAGS="$CFLAGS"
17449
17450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17455 $as_echo_n "(cached) " >&6
17456 else
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17459 int i;
17460 _ACEOF
17461 if ac_fn_c_try_compile "$LINENO"; then :
17462 xorg_cv_cc_flag_unknown_warning_option=yes
17463 else
17464 xorg_cv_cc_flag_unknown_warning_option=no
17465 fi
17466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467 fi
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17471 CFLAGS="$xorg_testset_save_CFLAGS"
17472 fi
17473
17474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477 fi
17478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 int i;
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489 xorg_cv_cc_flag_unused_command_line_argument=yes
17490 else
17491 xorg_cv_cc_flag_unused_command_line_argument=no
17492 fi
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494 fi
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17498 CFLAGS="$xorg_testset_save_CFLAGS"
17499 fi
17500
17501 found="no"
17502
17503 if test $found = "no" ; then
17504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17506 fi
17507
17508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17510 fi
17511
17512 CFLAGS="$CFLAGS -Werror"
17513
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17515 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17516 cacheid=xorg_cv_cc_flag__Werror
17517 if eval \${$cacheid+:} false; then :
17518 $as_echo_n "(cached) " >&6
17519 else
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 int i;
17523 int
17524 main ()
17525 {
17526
17527 ;
17528 return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532 eval $cacheid=yes
17533 else
17534 eval $cacheid=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 fi
17539
17540
17541 CFLAGS="$xorg_testset_save_CFLAGS"
17542
17543 eval supported=\$$cacheid
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17545 $as_echo "$supported" >&6; }
17546 if test "$supported" = "yes" ; then
17547 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17548 found="yes"
17549 fi
17550 fi
17551
17552 if test $found = "no" ; then
17553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17555 fi
17556
17557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17559 fi
17560
17561 CFLAGS="$CFLAGS -errwarn"
17562
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17564 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17565 cacheid=xorg_cv_cc_flag__errwarn
17566 if eval \${$cacheid+:} false; then :
17567 $as_echo_n "(cached) " >&6
17568 else
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 int i;
17572 int
17573 main ()
17574 {
17575
17576 ;
17577 return 0;
17578 }
17579 _ACEOF
17580 if ac_fn_c_try_link "$LINENO"; then :
17581 eval $cacheid=yes
17582 else
17583 eval $cacheid=no
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17587 fi
17588
17589
17590 CFLAGS="$xorg_testset_save_CFLAGS"
17591
17592 eval supported=\$$cacheid
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17594 $as_echo "$supported" >&6; }
17595 if test "$supported" = "yes" ; then
17596 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17597 found="yes"
17598 fi
17599 fi
17600
17601
17602
17603 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17604 # activate it with -Werror, so we add it here explicitly.
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618 xorg_testset_save_CFLAGS="$CFLAGS"
17619
17620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17625 $as_echo_n "(cached) " >&6
17626 else
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629 int i;
17630 _ACEOF
17631 if ac_fn_c_try_compile "$LINENO"; then :
17632 xorg_cv_cc_flag_unknown_warning_option=yes
17633 else
17634 xorg_cv_cc_flag_unknown_warning_option=no
17635 fi
17636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637 fi
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17641 CFLAGS="$xorg_testset_save_CFLAGS"
17642 fi
17643
17644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17647 fi
17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 int i;
17657 _ACEOF
17658 if ac_fn_c_try_compile "$LINENO"; then :
17659 xorg_cv_cc_flag_unused_command_line_argument=yes
17660 else
17661 xorg_cv_cc_flag_unused_command_line_argument=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 fi
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669 fi
17670
17671 found="no"
17672
17673 if test $found = "no" ; then
17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680 fi
17681
17682 CFLAGS="$CFLAGS -Werror=attributes"
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17685 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17686 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17687 if eval \${$cacheid+:} false; then :
17688 $as_echo_n "(cached) " >&6
17689 else
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 int
17694 main ()
17695 {
17696
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 eval $cacheid=yes
17703 else
17704 eval $cacheid=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 fi
17709
17710
17711 CFLAGS="$xorg_testset_save_CFLAGS"
17712
17713 eval supported=\$$cacheid
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17715 $as_echo "$supported" >&6; }
17716 if test "$supported" = "yes" ; then
17717 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17718 found="yes"
17719 fi
17720 fi
17721
17722
17723
17724 if test "x$STRICT_COMPILE" = "xyes"; then
17725 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17726 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17727 fi
17728
17729
17730
17731
17732
17733
17734 cat >>confdefs.h <<_ACEOF
17735 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17736 _ACEOF
17737
17738 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17739 if test "x$PVM" = "x"; then
17740 PVM="0"
17741 fi
17742
17743 cat >>confdefs.h <<_ACEOF
17744 #define PACKAGE_VERSION_MINOR $PVM
17745 _ACEOF
17746
17747 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17748 if test "x$PVP" = "x"; then
17749 PVP="0"
17750 fi
17751
17752 cat >>confdefs.h <<_ACEOF
17753 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17754 _ACEOF
17755
17756
17757
17758 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17759 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17760 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17761 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17762
17763
17764
17765
17766 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17767 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17768 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17769 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17770 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17771
17772
17773
17774
17775
17776
17777 if test x$APP_MAN_SUFFIX = x ; then
17778 APP_MAN_SUFFIX=1
17779 fi
17780 if test x$APP_MAN_DIR = x ; then
17781 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17782 fi
17783
17784 if test x$LIB_MAN_SUFFIX = x ; then
17785 LIB_MAN_SUFFIX=3
17786 fi
17787 if test x$LIB_MAN_DIR = x ; then
17788 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17789 fi
17790
17791 if test x$FILE_MAN_SUFFIX = x ; then
17792 case $host_os in
17793 solaris*) FILE_MAN_SUFFIX=4 ;;
17794 *) FILE_MAN_SUFFIX=5 ;;
17795 esac
17796 fi
17797 if test x$FILE_MAN_DIR = x ; then
17798 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17799 fi
17800
17801 if test x$MISC_MAN_SUFFIX = x ; then
17802 case $host_os in
17803 solaris*) MISC_MAN_SUFFIX=5 ;;
17804 *) MISC_MAN_SUFFIX=7 ;;
17805 esac
17806 fi
17807 if test x$MISC_MAN_DIR = x ; then
17808 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17809 fi
17810
17811 if test x$DRIVER_MAN_SUFFIX = x ; then
17812 case $host_os in
17813 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17814 *) DRIVER_MAN_SUFFIX=4 ;;
17815 esac
17816 fi
17817 if test x$DRIVER_MAN_DIR = x ; then
17818 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17819 fi
17820
17821 if test x$ADMIN_MAN_SUFFIX = x ; then
17822 case $host_os in
17823 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17824 *) ADMIN_MAN_SUFFIX=8 ;;
17825 esac
17826 fi
17827 if test x$ADMIN_MAN_DIR = x ; then
17828 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17829 fi
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845 XORG_MAN_PAGE="X Version 11"
17846
17847 MAN_SUBSTS="\
17848 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17849 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17850 -e 's|__xservername__|Xorg|g' \
17851 -e 's|__xconfigfile__|xorg.conf|g' \
17852 -e 's|__projectroot__|\$(prefix)|g' \
17853 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17854 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17855 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17856 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17857 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17858 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17859 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17860
17861
17862
17863 # Check whether --enable-silent-rules was given.
17864 if test "${enable_silent_rules+set}" = set; then :
17865 enableval=$enable_silent_rules;
17866 fi
17867
17868 case $enable_silent_rules in # (((
17869 yes) AM_DEFAULT_VERBOSITY=0;;
17870 no) AM_DEFAULT_VERBOSITY=1;;
17871 *) AM_DEFAULT_VERBOSITY=0;;
17872 esac
17873 am_make=${MAKE-make}
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17875 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17876 if ${am_cv_make_support_nested_variables+:} false; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 if $as_echo 'TRUE=$(BAR$(V))
17880 BAR0=false
17881 BAR1=true
17882 V=1
17883 am__doit:
17884 @$(TRUE)
17885 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17886 am_cv_make_support_nested_variables=yes
17887 else
17888 am_cv_make_support_nested_variables=no
17889 fi
17890 fi
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17892 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17893 if test $am_cv_make_support_nested_variables = yes; then
17894 AM_V='$(V)'
17895 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17896 else
17897 AM_V=$AM_DEFAULT_VERBOSITY
17898 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17899 fi
17900 AM_BACKSLASH='\'
17901
17902
17903
17904
17905 # Check whether --enable-docs was given.
17906 if test "${enable_docs+set}" = set; then :
17907 enableval=$enable_docs; build_docs=$enableval
17908 else
17909 build_docs=yes
17910 fi
17911
17912
17913 if test x$build_docs = xyes; then
17914 ENABLE_DOCS_TRUE=
17915 ENABLE_DOCS_FALSE='#'
17916 else
17917 ENABLE_DOCS_TRUE='#'
17918 ENABLE_DOCS_FALSE=
17919 fi
17920
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17922 $as_echo_n "checking whether to build documentation... " >&6; }
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17924 $as_echo "$build_docs" >&6; }
17925
17926
17927
17928
17929
17930 # Check whether --with-xmlto was given.
17931 if test "${with_xmlto+set}" = set; then :
17932 withval=$with_xmlto; use_xmlto=$withval
17933 else
17934 use_xmlto=auto
17935 fi
17936
17937
17938
17939 if test "x$use_xmlto" = x"auto"; then
17940 # Extract the first word of "xmlto", so it can be a program name with args.
17941 set dummy xmlto; ac_word=$2
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17943 $as_echo_n "checking for $ac_word... " >&6; }
17944 if ${ac_cv_path_XMLTO+:} false; then :
17945 $as_echo_n "(cached) " >&6
17946 else
17947 case $XMLTO in
17948 [\\/]* | ?:[\\/]*)
17949 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17950 ;;
17951 *)
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17954 do
17955 IFS=$as_save_IFS
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17959 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17961 break 2
17962 fi
17963 done
17964 done
17965 IFS=$as_save_IFS
17966
17967 ;;
17968 esac
17969 fi
17970 XMLTO=$ac_cv_path_XMLTO
17971 if test -n "$XMLTO"; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17973 $as_echo "$XMLTO" >&6; }
17974 else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977 fi
17978
17979
17980 if test "x$XMLTO" = "x"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17982 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17983 have_xmlto=no
17984 else
17985 have_xmlto=yes
17986 fi
17987 elif test "x$use_xmlto" = x"yes" ; then
17988 # Extract the first word of "xmlto", so it can be a program name with args.
17989 set dummy xmlto; ac_word=$2
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17991 $as_echo_n "checking for $ac_word... " >&6; }
17992 if ${ac_cv_path_XMLTO+:} false; then :
17993 $as_echo_n "(cached) " >&6
17994 else
17995 case $XMLTO in
17996 [\\/]* | ?:[\\/]*)
17997 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17998 ;;
17999 *)
18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001 for as_dir in $PATH
18002 do
18003 IFS=$as_save_IFS
18004 test -z "$as_dir" && as_dir=.
18005 for ac_exec_ext in '' $ac_executable_extensions; do
18006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18007 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 break 2
18010 fi
18011 done
18012 done
18013 IFS=$as_save_IFS
18014
18015 ;;
18016 esac
18017 fi
18018 XMLTO=$ac_cv_path_XMLTO
18019 if test -n "$XMLTO"; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18021 $as_echo "$XMLTO" >&6; }
18022 else
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18025 fi
18026
18027
18028 if test "x$XMLTO" = "x"; then
18029 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18030 fi
18031 have_xmlto=yes
18032 elif test "x$use_xmlto" = x"no" ; then
18033 if test "x$XMLTO" != "x"; then
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18035 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18036 fi
18037 have_xmlto=no
18038 else
18039 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18040 fi
18041
18042 # Test for a minimum version of xmlto, if provided.
18043 if test "$have_xmlto" = yes; then
18044 # scrape the xmlto version
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18046 $as_echo_n "checking the xmlto version... " >&6; }
18047 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18049 $as_echo "$xmlto_version" >&6; }
18050 as_arg_v1=$xmlto_version
18051 as_arg_v2=0.0.22
18052 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18053 case $? in #(
18054 1) :
18055 if test "x$use_xmlto" = xauto; then
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18057 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18058 have_xmlto=no
18059 else
18060 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18061 fi ;; #(
18062 0) :
18063 ;; #(
18064 2) :
18065 ;; #(
18066 *) :
18067 ;;
18068 esac
18069 fi
18070
18071 # Test for the ability of xmlto to generate a text target
18072 have_xmlto_text=no
18073 cat > conftest.xml << "EOF"
18074 EOF
18075 if test "$have_xmlto" = yes; then :
18076 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18077 have_xmlto_text=yes
18078 else
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18080 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18081 fi
18082 fi
18083 rm -f conftest.xml
18084 if test $have_xmlto_text = yes; then
18085 HAVE_XMLTO_TEXT_TRUE=
18086 HAVE_XMLTO_TEXT_FALSE='#'
18087 else
18088 HAVE_XMLTO_TEXT_TRUE='#'
18089 HAVE_XMLTO_TEXT_FALSE=
18090 fi
18091
18092 if test "$have_xmlto" = yes; then
18093 HAVE_XMLTO_TRUE=
18094 HAVE_XMLTO_FALSE='#'
18095 else
18096 HAVE_XMLTO_TRUE='#'
18097 HAVE_XMLTO_FALSE=
18098 fi
18099
18100
18101
18102
18103
18104
18105 # Check whether --with-fop was given.
18106 if test "${with_fop+set}" = set; then :
18107 withval=$with_fop; use_fop=$withval
18108 else
18109 use_fop=auto
18110 fi
18111
18112
18113
18114 if test "x$use_fop" = x"auto"; then
18115 # Extract the first word of "fop", so it can be a program name with args.
18116 set dummy fop; ac_word=$2
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18118 $as_echo_n "checking for $ac_word... " >&6; }
18119 if ${ac_cv_path_FOP+:} false; then :
18120 $as_echo_n "(cached) " >&6
18121 else
18122 case $FOP in
18123 [\\/]* | ?:[\\/]*)
18124 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18125 ;;
18126 *)
18127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18128 for as_dir in $PATH
18129 do
18130 IFS=$as_save_IFS
18131 test -z "$as_dir" && as_dir=.
18132 for ac_exec_ext in '' $ac_executable_extensions; do
18133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18134 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18136 break 2
18137 fi
18138 done
18139 done
18140 IFS=$as_save_IFS
18141
18142 ;;
18143 esac
18144 fi
18145 FOP=$ac_cv_path_FOP
18146 if test -n "$FOP"; then
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18148 $as_echo "$FOP" >&6; }
18149 else
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18151 $as_echo "no" >&6; }
18152 fi
18153
18154
18155 if test "x$FOP" = "x"; then
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18157 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18158 have_fop=no
18159 else
18160 have_fop=yes
18161 fi
18162 elif test "x$use_fop" = x"yes" ; then
18163 # Extract the first word of "fop", so it can be a program name with args.
18164 set dummy fop; ac_word=$2
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18166 $as_echo_n "checking for $ac_word... " >&6; }
18167 if ${ac_cv_path_FOP+:} false; then :
18168 $as_echo_n "(cached) " >&6
18169 else
18170 case $FOP in
18171 [\\/]* | ?:[\\/]*)
18172 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18173 ;;
18174 *)
18175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18176 for as_dir in $PATH
18177 do
18178 IFS=$as_save_IFS
18179 test -z "$as_dir" && as_dir=.
18180 for ac_exec_ext in '' $ac_executable_extensions; do
18181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18182 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18184 break 2
18185 fi
18186 done
18187 done
18188 IFS=$as_save_IFS
18189
18190 ;;
18191 esac
18192 fi
18193 FOP=$ac_cv_path_FOP
18194 if test -n "$FOP"; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18196 $as_echo "$FOP" >&6; }
18197 else
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199 $as_echo "no" >&6; }
18200 fi
18201
18202
18203 if test "x$FOP" = "x"; then
18204 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18205 fi
18206 have_fop=yes
18207 elif test "x$use_fop" = x"no" ; then
18208 if test "x$FOP" != "x"; then
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18210 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18211 fi
18212 have_fop=no
18213 else
18214 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18215 fi
18216
18217 # Test for a minimum version of fop, if provided.
18218
18219 if test "$have_fop" = yes; then
18220 HAVE_FOP_TRUE=
18221 HAVE_FOP_FALSE='#'
18222 else
18223 HAVE_FOP_TRUE='#'
18224 HAVE_FOP_FALSE=
18225 fi
18226
18227
18228
18229
18230 # Preserves the interface, should it be implemented later
18231
18232
18233
18234 # Check whether --with-xsltproc was given.
18235 if test "${with_xsltproc+set}" = set; then :
18236 withval=$with_xsltproc; use_xsltproc=$withval
18237 else
18238 use_xsltproc=auto
18239 fi
18240
18241
18242
18243 if test "x$use_xsltproc" = x"auto"; then
18244 # Extract the first word of "xsltproc", so it can be a program name with args.
18245 set dummy xsltproc; ac_word=$2
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18247 $as_echo_n "checking for $ac_word... " >&6; }
18248 if ${ac_cv_path_XSLTPROC+:} false; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251 case $XSLTPROC in
18252 [\\/]* | ?:[\\/]*)
18253 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18254 ;;
18255 *)
18256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18257 for as_dir in $PATH
18258 do
18259 IFS=$as_save_IFS
18260 test -z "$as_dir" && as_dir=.
18261 for ac_exec_ext in '' $ac_executable_extensions; do
18262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18263 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18265 break 2
18266 fi
18267 done
18268 done
18269 IFS=$as_save_IFS
18270
18271 ;;
18272 esac
18273 fi
18274 XSLTPROC=$ac_cv_path_XSLTPROC
18275 if test -n "$XSLTPROC"; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18277 $as_echo "$XSLTPROC" >&6; }
18278 else
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280 $as_echo "no" >&6; }
18281 fi
18282
18283
18284 if test "x$XSLTPROC" = "x"; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18286 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18287 have_xsltproc=no
18288 else
18289 have_xsltproc=yes
18290 fi
18291 elif test "x$use_xsltproc" = x"yes" ; then
18292 # Extract the first word of "xsltproc", so it can be a program name with args.
18293 set dummy xsltproc; ac_word=$2
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18295 $as_echo_n "checking for $ac_word... " >&6; }
18296 if ${ac_cv_path_XSLTPROC+:} false; then :
18297 $as_echo_n "(cached) " >&6
18298 else
18299 case $XSLTPROC in
18300 [\\/]* | ?:[\\/]*)
18301 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18302 ;;
18303 *)
18304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18305 for as_dir in $PATH
18306 do
18307 IFS=$as_save_IFS
18308 test -z "$as_dir" && as_dir=.
18309 for ac_exec_ext in '' $ac_executable_extensions; do
18310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18311 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18313 break 2
18314 fi
18315 done
18316 done
18317 IFS=$as_save_IFS
18318
18319 ;;
18320 esac
18321 fi
18322 XSLTPROC=$ac_cv_path_XSLTPROC
18323 if test -n "$XSLTPROC"; then
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18325 $as_echo "$XSLTPROC" >&6; }
18326 else
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329 fi
18330
18331
18332 if test "x$XSLTPROC" = "x"; then
18333 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18334 fi
18335 have_xsltproc=yes
18336 elif test "x$use_xsltproc" = x"no" ; then
18337 if test "x$XSLTPROC" != "x"; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18339 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18340 fi
18341 have_xsltproc=no
18342 else
18343 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18344 fi
18345
18346 if test "$have_xsltproc" = yes; then
18347 HAVE_XSLTPROC_TRUE=
18348 HAVE_XSLTPROC_FALSE='#'
18349 else
18350 HAVE_XSLTPROC_TRUE='#'
18351 HAVE_XSLTPROC_FALSE=
18352 fi
18353
18354
18355
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18357 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18358 XORG_SGML_PATH=
18359 if test -n "$PKG_CONFIG" && \
18360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18361 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18362 ac_status=$?
18363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18364 test $ac_status = 0; }; then
18365 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18366 else
18367 :
18368
18369 fi
18370
18371 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18372 # the path and the name of the doc stylesheet
18373 if test "x$XORG_SGML_PATH" != "x" ; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18375 $as_echo "$XORG_SGML_PATH" >&6; }
18376 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18377 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18378 else
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 fi
18382
18383
18384
18385
18386 if test "x$XSL_STYLESHEET" != "x"; then
18387 HAVE_STYLESHEETS_TRUE=
18388 HAVE_STYLESHEETS_FALSE='#'
18389 else
18390 HAVE_STYLESHEETS_TRUE='#'
18391 HAVE_STYLESHEETS_FALSE=
18392 fi
18393
18394
18395
18396 # Obtain compiler/linker options for depedencies
18397
18398 pkg_failed=no
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5
18400 $as_echo_n "checking for SM... " >&6; }
18401
18402 if test -n "$SM_CFLAGS"; then
18403 pkg_cv_SM_CFLAGS="$SM_CFLAGS"
18404 elif test -n "$PKG_CONFIG"; then
18405 if test -n "$PKG_CONFIG" && \
18406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5
18407 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5
18408 ac_status=$?
18409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18410 test $ac_status = 0; }; then
18411 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto xtrans" 2>/dev/null`
18412 else
18413 pkg_failed=yes
18414 fi
18415 else
18416 pkg_failed=untried
18417 fi
18418 if test -n "$SM_LIBS"; then
18419 pkg_cv_SM_LIBS="$SM_LIBS"
18420 elif test -n "$PKG_CONFIG"; then
18421 if test -n "$PKG_CONFIG" && \
18422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5
18423 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5
18424 ac_status=$?
18425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18426 test $ac_status = 0; }; then
18427 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto xtrans" 2>/dev/null`
18428 else
18429 pkg_failed=yes
18430 fi
18431 else
18432 pkg_failed=untried
18433 fi
18434
18435
18436
18437 if test $pkg_failed = yes; then
18438
18439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18440 _pkg_short_errors_supported=yes
18441 else
18442 _pkg_short_errors_supported=no
18443 fi
18444 if test $_pkg_short_errors_supported = yes; then
18445 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1`
18446 else
18447 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice >= 1.0.5 xproto xtrans" 2>&1`
18448 fi
18449 # Put the nasty error message in config.log where it belongs
18450 echo "$SM_PKG_ERRORS" >&5
18451
18452 as_fn_error $? "Package requirements (ice >= 1.0.5 xproto xtrans) were not met:
18453
18454 $SM_PKG_ERRORS
18455
18456 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18457 installed software in a non-standard prefix.
18458
18459 Alternatively, you may set the environment variables SM_CFLAGS
18460 and SM_LIBS to avoid the need to call pkg-config.
18461 See the pkg-config man page for more details.
18462 " "$LINENO" 5
18463 elif test $pkg_failed = untried; then
18464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18466 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18467 is in your PATH or set the PKG_CONFIG environment variable to the full
18468 path to pkg-config.
18469
18470 Alternatively, you may set the environment variables SM_CFLAGS
18471 and SM_LIBS to avoid the need to call pkg-config.
18472 See the pkg-config man page for more details.
18473
18474 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18475 See \`config.log' for more details" "$LINENO" 5; }
18476 else
18477 SM_CFLAGS=$pkg_cv_SM_CFLAGS
18478 SM_LIBS=$pkg_cv_SM_LIBS
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18480 $as_echo "yes" >&6; }
18481 :
18482 fi
18483
18484 # Needed to check for TCP & IPv6 support and set flags appropriately
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18486 $as_echo_n "checking return type of signal handlers... " >&6; }
18487 if ${ac_cv_type_signal+:} false; then :
18488 $as_echo_n "(cached) " >&6
18489 else
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 #include <sys/types.h>
18493 #include <signal.h>
18494
18495 int
18496 main ()
18497 {
18498 return *(signal (0, 0)) (0) == 1;
18499 ;
18500 return 0;
18501 }
18502 _ACEOF
18503 if ac_fn_c_try_compile "$LINENO"; then :
18504 ac_cv_type_signal=int
18505 else
18506 ac_cv_type_signal=void
18507 fi
18508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18509 fi
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18511 $as_echo "$ac_cv_type_signal" >&6; }
18512
18513 cat >>confdefs.h <<_ACEOF
18514 #define RETSIGTYPE $ac_cv_type_signal
18515 _ACEOF
18516
18517
18518
18519
18520
18521 case $host_os in
18522 mingw*) unixdef="no" ;;
18523 *) unixdef="yes" ;;
18524 esac
18525 # Check whether --enable-unix-transport was given.
18526 if test "${enable_unix_transport+set}" = set; then :
18527 enableval=$enable_unix_transport; UNIXCONN=$enableval
18528 else
18529 UNIXCONN=$unixdef
18530 fi
18531
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18533 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18534 if test "$UNIXCONN" = "yes"; then
18535
18536 $as_echo "#define UNIXCONN 1" >>confdefs.h
18537
18538 fi
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18540 $as_echo "$UNIXCONN" >&6; }
18541 # Check whether --enable-tcp-transport was given.
18542 if test "${enable_tcp_transport+set}" = set; then :
18543 enableval=$enable_tcp_transport; TCPCONN=$enableval
18544 else
18545 TCPCONN=yes
18546 fi
18547
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18549 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18551 $as_echo "$TCPCONN" >&6; }
18552 if test "$TCPCONN" = "yes"; then
18553
18554 $as_echo "#define TCPCONN 1" >>confdefs.h
18555
18556
18557 # SVR4 hides these in libraries other than libc
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18559 $as_echo_n "checking for library containing socket... " >&6; }
18560 if ${ac_cv_search_socket+:} false; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 ac_func_search_save_LIBS=$LIBS
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566
18567 /* Override any GCC internal prototype to avoid an error.
18568 Use char because int might match the return type of a GCC
18569 builtin and then its argument prototype would still apply. */
18570 #ifdef __cplusplus
18571 extern "C"
18572 #endif
18573 char socket ();
18574 int
18575 main ()
18576 {
18577 return socket ();
18578 ;
18579 return 0;
18580 }
18581 _ACEOF
18582 for ac_lib in '' socket; do
18583 if test -z "$ac_lib"; then
18584 ac_res="none required"
18585 else
18586 ac_res=-l$ac_lib
18587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18588 fi
18589 if ac_fn_c_try_link "$LINENO"; then :
18590 ac_cv_search_socket=$ac_res
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext \
18593 conftest$ac_exeext
18594 if ${ac_cv_search_socket+:} false; then :
18595 break
18596 fi
18597 done
18598 if ${ac_cv_search_socket+:} false; then :
18599
18600 else
18601 ac_cv_search_socket=no
18602 fi
18603 rm conftest.$ac_ext
18604 LIBS=$ac_func_search_save_LIBS
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18607 $as_echo "$ac_cv_search_socket" >&6; }
18608 ac_res=$ac_cv_search_socket
18609 if test "$ac_res" != no; then :
18610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18611
18612 fi
18613
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18615 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18616 if ${ac_cv_search_gethostbyname+:} false; then :
18617 $as_echo_n "(cached) " >&6
18618 else
18619 ac_func_search_save_LIBS=$LIBS
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18622
18623 /* Override any GCC internal prototype to avoid an error.
18624 Use char because int might match the return type of a GCC
18625 builtin and then its argument prototype would still apply. */
18626 #ifdef __cplusplus
18627 extern "C"
18628 #endif
18629 char gethostbyname ();
18630 int
18631 main ()
18632 {
18633 return gethostbyname ();
18634 ;
18635 return 0;
18636 }
18637 _ACEOF
18638 for ac_lib in '' nsl; do
18639 if test -z "$ac_lib"; then
18640 ac_res="none required"
18641 else
18642 ac_res=-l$ac_lib
18643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18644 fi
18645 if ac_fn_c_try_link "$LINENO"; then :
18646 ac_cv_search_gethostbyname=$ac_res
18647 fi
18648 rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext
18650 if ${ac_cv_search_gethostbyname+:} false; then :
18651 break
18652 fi
18653 done
18654 if ${ac_cv_search_gethostbyname+:} false; then :
18655
18656 else
18657 ac_cv_search_gethostbyname=no
18658 fi
18659 rm conftest.$ac_ext
18660 LIBS=$ac_func_search_save_LIBS
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18663 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18664 ac_res=$ac_cv_search_gethostbyname
18665 if test "$ac_res" != no; then :
18666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18667
18668 fi
18669
18670 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18672 $as_echo_n "checking for main in -lws2_32... " >&6; }
18673 if ${ac_cv_lib_ws2_32_main+:} false; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 ac_check_lib_save_LIBS=$LIBS
18677 LIBS="-lws2_32 $LIBS"
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680
18681
18682 int
18683 main ()
18684 {
18685 return main ();
18686 ;
18687 return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_link "$LINENO"; then :
18691 ac_cv_lib_ws2_32_main=yes
18692 else
18693 ac_cv_lib_ws2_32_main=no
18694 fi
18695 rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18698 fi
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18700 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18701 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_LIBWS2_32 1
18704 _ACEOF
18705
18706 LIBS="-lws2_32 $LIBS"
18707
18708 fi
18709 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18710
18711 fi
18712
18713 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18714 # Check whether --enable-ipv6 was given.
18715 if test "${enable_ipv6+set}" = set; then :
18716 enableval=$enable_ipv6; IPV6CONN=$enableval
18717 else
18718 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18719 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18720 IPV6CONN=yes
18721 else
18722 IPV6CONN=no
18723 fi
18724
18725 fi
18726
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18728 $as_echo_n "checking if IPv6 support should be built... " >&6; }
18729 if test "$IPV6CONN" = "yes"; then
18730
18731 $as_echo "#define IPv6 1" >>confdefs.h
18732
18733 fi
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18735 $as_echo "$IPV6CONN" >&6; }
18736
18737 # 4.3BSD-Reno added a new member to struct sockaddr_in
18738 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18739 #include <sys/types.h>
18740 #include <sys/socket.h>
18741 #include <netinet/in.h>
18742
18743 "
18744 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18745
18746 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18747
18748 fi
18749
18750
18751 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18752 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18753 $ac_includes_default
18754 #include <sys/socket.h>
18755 "
18756 if test "x$ac_cv_type_socklen_t" = xyes; then :
18757
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_SOCKLEN_T 1
18760 _ACEOF
18761
18762
18763 fi
18764
18765
18766
18767 fi
18768 case $host_os in
18769 solaris*|sco*|sysv4*) localdef="yes" ;;
18770 *) localdef="no" ;;
18771 esac
18772 # Check whether --enable-local-transport was given.
18773 if test "${enable_local_transport+set}" = set; then :
18774 enableval=$enable_local_transport; LOCALCONN=$enableval
18775 else
18776 LOCALCONN=$localdef
18777 fi
18778
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18780 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18782 $as_echo "$LOCALCONN" >&6; }
18783 if test "$LOCALCONN" = "yes"; then
18784
18785 $as_echo "#define LOCALCONN 1" >>confdefs.h
18786
18787 fi
18788
18789
18790
18791
18792 # Check whether --with-libuuid was given.
18793 if test "${with_libuuid+set}" = set; then :
18794 withval=$with_libuuid;
18795 fi
18796
18797
18798 for ac_func in uuid_create
18799 do :
18800 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
18801 if test "x$ac_cv_func_uuid_create" = xyes; then :
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_UUID_CREATE 1
18804 _ACEOF
18805
18806 else
18807
18808 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
18809
18810 pkg_failed=no
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
18812 $as_echo_n "checking for LIBUUID... " >&6; }
18813
18814 if test -n "$LIBUUID_CFLAGS"; then
18815 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
18816 elif test -n "$PKG_CONFIG"; then
18817 if test -n "$PKG_CONFIG" && \
18818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18819 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18820 ac_status=$?
18821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18822 test $ac_status = 0; }; then
18823 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
18824 else
18825 pkg_failed=yes
18826 fi
18827 else
18828 pkg_failed=untried
18829 fi
18830 if test -n "$LIBUUID_LIBS"; then
18831 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
18832 elif test -n "$PKG_CONFIG"; then
18833 if test -n "$PKG_CONFIG" && \
18834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18835 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18836 ac_status=$?
18837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18838 test $ac_status = 0; }; then
18839 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
18840 else
18841 pkg_failed=yes
18842 fi
18843 else
18844 pkg_failed=untried
18845 fi
18846
18847
18848
18849 if test $pkg_failed = yes; then
18850
18851 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18852 _pkg_short_errors_supported=yes
18853 else
18854 _pkg_short_errors_supported=no
18855 fi
18856 if test $_pkg_short_errors_supported = yes; then
18857 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1`
18858 else
18859 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1`
18860 fi
18861 # Put the nasty error message in config.log where it belongs
18862 echo "$LIBUUID_PKG_ERRORS" >&5
18863
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18865 $as_echo "no" >&6; }
18866 HAVE_LIBUUID=no
18867 elif test $pkg_failed = untried; then
18868 HAVE_LIBUUID=no
18869 else
18870 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
18871 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18873 $as_echo "yes" >&6; }
18874 HAVE_LIBUUID=yes
18875 fi
18876 fi
18877 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
18878 as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5
18879 fi
18880
18881 fi
18882 done
18883
18884
18885 if test x"$HAVE_LIBUUID" = xyes; then
18886 WITH_LIBUUID_TRUE=
18887 WITH_LIBUUID_FALSE='#'
18888 else
18889 WITH_LIBUUID_TRUE='#'
18890 WITH_LIBUUID_FALSE=
18891 fi
18892
18893
18894 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc"
18895
18896 cat >confcache <<\_ACEOF
18897 # This file is a shell script that caches the results of configure
18898 # tests run on this system so they can be shared between configure
18899 # scripts and configure runs, see configure's option --config-cache.
18900 # It is not useful on other systems. If it contains results you don't
18901 # want to keep, you may remove or edit it.
18902 #
18903 # config.status only pays attention to the cache file if you give it
18904 # the --recheck option to rerun configure.
18905 #
18906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18908 # following values.
18909
18910 _ACEOF
18911
18912 # The following way of writing the cache mishandles newlines in values,
18913 # but we know of no workaround that is simple, portable, and efficient.
18914 # So, we kill variables containing newlines.
18915 # Ultrix sh set writes to stderr and can't be redirected directly,
18916 # and sets the high bit in the cache file unless we assign to the vars.
18917 (
18918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18919 eval ac_val=\$$ac_var
18920 case $ac_val in #(
18921 *${as_nl}*)
18922 case $ac_var in #(
18923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18925 esac
18926 case $ac_var in #(
18927 _ | IFS | as_nl) ;; #(
18928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18929 *) { eval $ac_var=; unset $ac_var;} ;;
18930 esac ;;
18931 esac
18932 done
18933
18934 (set) 2>&1 |
18935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18936 *${as_nl}ac_space=\ *)
18937 # `set' does not quote correctly, so add quotes: double-quote
18938 # substitution turns \\\\ into \\, and sed turns \\ into \.
18939 sed -n \
18940 "s/'/'\\\\''/g;
18941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18942 ;; #(
18943 *)
18944 # `set' quotes correctly as required by POSIX, so do not add quotes.
18945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18946 ;;
18947 esac |
18948 sort
18949 ) |
18950 sed '
18951 /^ac_cv_env_/b end
18952 t clear
18953 :clear
18954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18955 t end
18956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18957 :end' >>confcache
18958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18959 if test -w "$cache_file"; then
18960 if test "x$cache_file" != "x/dev/null"; then
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18962 $as_echo "$as_me: updating cache $cache_file" >&6;}
18963 if test ! -f "$cache_file" || test -h "$cache_file"; then
18964 cat confcache >"$cache_file"
18965 else
18966 case $cache_file in #(
18967 */* | ?:*)
18968 mv -f confcache "$cache_file"$$ &&
18969 mv -f "$cache_file"$$ "$cache_file" ;; #(
18970 *)
18971 mv -f confcache "$cache_file" ;;
18972 esac
18973 fi
18974 fi
18975 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18978 fi
18979 fi
18980 rm -f confcache
18981
18982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18983 # Let make expand exec_prefix.
18984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18985
18986 DEFS=-DHAVE_CONFIG_H
18987
18988 ac_libobjs=
18989 ac_ltlibobjs=
18990 U=
18991 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18992 # 1. Remove the extension, and $U if already installed.
18993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18996 # will be set to the directory where LIBOBJS objects are built.
18997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18999 done
19000 LIBOBJS=$ac_libobjs
19001
19002 LTLIBOBJS=$ac_ltlibobjs
19003
19004
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19006 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19007 if test -n "$am_sleep_pid"; then
19008 # Hide warnings about reused PIDs.
19009 wait $am_sleep_pid 2>/dev/null
19010 fi
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19012 $as_echo "done" >&6; }
19013 if test -n "$EXEEXT"; then
19014 am__EXEEXT_TRUE=
19015 am__EXEEXT_FALSE='#'
19016 else
19017 am__EXEEXT_TRUE='#'
19018 am__EXEEXT_FALSE=
19019 fi
19020
19021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19022 as_fn_error $? "conditional \"AMDEP\" was never defined.
19023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19024 fi
19025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19028 fi
19029 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19030 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19032 fi
19033 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19034 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19036 fi
19037 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19038 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19040 fi
19041 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19042 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044 fi
19045 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19046 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048 fi
19049 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19050 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19052 fi
19053 if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then
19054 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined.
19055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19056 fi
19057
19058 : "${CONFIG_STATUS=./config.status}"
19059 ac_write_fail=0
19060 ac_clean_files_save=$ac_clean_files
19061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19063 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19064 as_write_fail=0
19065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19066 #! $SHELL
19067 # Generated by $as_me.
19068 # Run this file to recreate the current configuration.
19069 # Compiler output produced by configure, useful for debugging
19070 # configure, is in config.log if it exists.
19071
19072 debug=false
19073 ac_cs_recheck=false
19074 ac_cs_silent=false
19075
19076 SHELL=\${CONFIG_SHELL-$SHELL}
19077 export SHELL
19078 _ASEOF
19079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19080 ## -------------------- ##
19081 ## M4sh Initialization. ##
19082 ## -------------------- ##
19083
19084 # Be more Bourne compatible
19085 DUALCASE=1; export DUALCASE # for MKS sh
19086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19087 emulate sh
19088 NULLCMD=:
19089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19090 # is contrary to our usage. Disable this feature.
19091 alias -g '${1+"$@"}'='"$@"'
19092 setopt NO_GLOB_SUBST
19093 else
19094 case `(set -o) 2>/dev/null` in #(
19095 *posix*) :
19096 set -o posix ;; #(
19097 *) :
19098 ;;
19099 esac
19100 fi
19101
19102
19103 as_nl='
19104 '
19105 export as_nl
19106 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19107 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19110 # Prefer a ksh shell builtin over an external printf program on Solaris,
19111 # but without wasting forks for bash or zsh.
19112 if test -z "$BASH_VERSION$ZSH_VERSION" \
19113 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19114 as_echo='print -r --'
19115 as_echo_n='print -rn --'
19116 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19117 as_echo='printf %s\n'
19118 as_echo_n='printf %s'
19119 else
19120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19122 as_echo_n='/usr/ucb/echo -n'
19123 else
19124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19125 as_echo_n_body='eval
19126 arg=$1;
19127 case $arg in #(
19128 *"$as_nl"*)
19129 expr "X$arg" : "X\\(.*\\)$as_nl";
19130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19131 esac;
19132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19133 '
19134 export as_echo_n_body
19135 as_echo_n='sh -c $as_echo_n_body as_echo'
19136 fi
19137 export as_echo_body
19138 as_echo='sh -c $as_echo_body as_echo'
19139 fi
19140
19141 # The user is always right.
19142 if test "${PATH_SEPARATOR+set}" != set; then
19143 PATH_SEPARATOR=:
19144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19146 PATH_SEPARATOR=';'
19147 }
19148 fi
19149
19150
19151 # IFS
19152 # We need space, tab and new line, in precisely that order. Quoting is
19153 # there to prevent editors from complaining about space-tab.
19154 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19155 # splitting by setting IFS to empty value.)
19156 IFS=" "" $as_nl"
19157
19158 # Find who we are. Look in the path if we contain no directory separator.
19159 as_myself=
19160 case $0 in #((
19161 *[\\/]* ) as_myself=$0 ;;
19162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19163 for as_dir in $PATH
19164 do
19165 IFS=$as_save_IFS
19166 test -z "$as_dir" && as_dir=.
19167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19168 done
19169 IFS=$as_save_IFS
19170
19171 ;;
19172 esac
19173 # We did not find ourselves, most probably we were run as `sh COMMAND'
19174 # in which case we are not to be found in the path.
19175 if test "x$as_myself" = x; then
19176 as_myself=$0
19177 fi
19178 if test ! -f "$as_myself"; then
19179 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19180 exit 1
19181 fi
19182
19183 # Unset variables that we do not need and which cause bugs (e.g. in
19184 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19185 # suppresses any "Segmentation fault" message there. '((' could
19186 # trigger a bug in pdksh 5.2.14.
19187 for as_var in BASH_ENV ENV MAIL MAILPATH
19188 do eval test x\${$as_var+set} = xset \
19189 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19190 done
19191 PS1='$ '
19192 PS2='> '
19193 PS4='+ '
19194
19195 # NLS nuisances.
19196 LC_ALL=C
19197 export LC_ALL
19198 LANGUAGE=C
19199 export LANGUAGE
19200
19201 # CDPATH.
19202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19203
19204
19205 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19206 # ----------------------------------------
19207 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19208 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19209 # script with STATUS, using 1 if that was 0.
19210 as_fn_error ()
19211 {
19212 as_status=$1; test $as_status -eq 0 && as_status=1
19213 if test "$4"; then
19214 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19215 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19216 fi
19217 $as_echo "$as_me: error: $2" >&2
19218 as_fn_exit $as_status
19219 } # as_fn_error
19220
19221
19222 # as_fn_set_status STATUS
19223 # -----------------------
19224 # Set $? to STATUS, without forking.
19225 as_fn_set_status ()
19226 {
19227 return $1
19228 } # as_fn_set_status
19229
19230 # as_fn_exit STATUS
19231 # -----------------
19232 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19233 as_fn_exit ()
19234 {
19235 set +e
19236 as_fn_set_status $1
19237 exit $1
19238 } # as_fn_exit
19239
19240 # as_fn_unset VAR
19241 # ---------------
19242 # Portably unset VAR.
19243 as_fn_unset ()
19244 {
19245 { eval $1=; unset $1;}
19246 }
19247 as_unset=as_fn_unset
19248 # as_fn_append VAR VALUE
19249 # ----------------------
19250 # Append the text in VALUE to the end of the definition contained in VAR. Take
19251 # advantage of any shell optimizations that allow amortized linear growth over
19252 # repeated appends, instead of the typical quadratic growth present in naive
19253 # implementations.
19254 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19255 eval 'as_fn_append ()
19256 {
19257 eval $1+=\$2
19258 }'
19259 else
19260 as_fn_append ()
19261 {
19262 eval $1=\$$1\$2
19263 }
19264 fi # as_fn_append
19265
19266 # as_fn_arith ARG...
19267 # ------------------
19268 # Perform arithmetic evaluation on the ARGs, and store the result in the
19269 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19270 # must be portable across $(()) and expr.
19271 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19272 eval 'as_fn_arith ()
19273 {
19274 as_val=$(( $* ))
19275 }'
19276 else
19277 as_fn_arith ()
19278 {
19279 as_val=`expr "$@" || test $? -eq 1`
19280 }
19281 fi # as_fn_arith
19282
19283
19284 if expr a : '\(a\)' >/dev/null 2>&1 &&
19285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19286 as_expr=expr
19287 else
19288 as_expr=false
19289 fi
19290
19291 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19292 as_basename=basename
19293 else
19294 as_basename=false
19295 fi
19296
19297 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19298 as_dirname=dirname
19299 else
19300 as_dirname=false
19301 fi
19302
19303 as_me=`$as_basename -- "$0" ||
19304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19305 X"$0" : 'X\(//\)$' \| \
19306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19307 $as_echo X/"$0" |
19308 sed '/^.*\/\([^/][^/]*\)\/*$/{
19309 s//\1/
19310 q
19311 }
19312 /^X\/\(\/\/\)$/{
19313 s//\1/
19314 q
19315 }
19316 /^X\/\(\/\).*/{
19317 s//\1/
19318 q
19319 }
19320 s/.*/./; q'`
19321
19322 # Avoid depending upon Character Ranges.
19323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19326 as_cr_digits='0123456789'
19327 as_cr_alnum=$as_cr_Letters$as_cr_digits
19328
19329 ECHO_C= ECHO_N= ECHO_T=
19330 case `echo -n x` in #(((((
19331 -n*)
19332 case `echo 'xy\c'` in
19333 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19334 xy) ECHO_C='\c';;
19335 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19336 ECHO_T=' ';;
19337 esac;;
19338 *)
19339 ECHO_N='-n';;
19340 esac
19341
19342 rm -f conf$$ conf$$.exe conf$$.file
19343 if test -d conf$$.dir; then
19344 rm -f conf$$.dir/conf$$.file
19345 else
19346 rm -f conf$$.dir
19347 mkdir conf$$.dir 2>/dev/null
19348 fi
19349 if (echo >conf$$.file) 2>/dev/null; then
19350 if ln -s conf$$.file conf$$ 2>/dev/null; then
19351 as_ln_s='ln -s'
19352 # ... but there are two gotchas:
19353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19355 # In both cases, we have to default to `cp -p'.
19356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19357 as_ln_s='cp -p'
19358 elif ln conf$$.file conf$$ 2>/dev/null; then
19359 as_ln_s=ln
19360 else
19361 as_ln_s='cp -p'
19362 fi
19363 else
19364 as_ln_s='cp -p'
19365 fi
19366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19367 rmdir conf$$.dir 2>/dev/null
19368
19369
19370 # as_fn_mkdir_p
19371 # -------------
19372 # Create "$as_dir" as a directory, including parents if necessary.
19373 as_fn_mkdir_p ()
19374 {
19375
19376 case $as_dir in #(
19377 -*) as_dir=./$as_dir;;
19378 esac
19379 test -d "$as_dir" || eval $as_mkdir_p || {
19380 as_dirs=
19381 while :; do
19382 case $as_dir in #(
19383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19384 *) as_qdir=$as_dir;;
19385 esac
19386 as_dirs="'$as_qdir' $as_dirs"
19387 as_dir=`$as_dirname -- "$as_dir" ||
19388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19389 X"$as_dir" : 'X\(//\)[^/]' \| \
19390 X"$as_dir" : 'X\(//\)$' \| \
19391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19392 $as_echo X"$as_dir" |
19393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19394 s//\1/
19395 q
19396 }
19397 /^X\(\/\/\)[^/].*/{
19398 s//\1/
19399 q
19400 }
19401 /^X\(\/\/\)$/{
19402 s//\1/
19403 q
19404 }
19405 /^X\(\/\).*/{
19406 s//\1/
19407 q
19408 }
19409 s/.*/./; q'`
19410 test -d "$as_dir" && break
19411 done
19412 test -z "$as_dirs" || eval "mkdir $as_dirs"
19413 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19414
19415
19416 } # as_fn_mkdir_p
19417 if mkdir -p . 2>/dev/null; then
19418 as_mkdir_p='mkdir -p "$as_dir"'
19419 else
19420 test -d ./-p && rmdir ./-p
19421 as_mkdir_p=false
19422 fi
19423
19424 if test -x / >/dev/null 2>&1; then
19425 as_test_x='test -x'
19426 else
19427 if ls -dL / >/dev/null 2>&1; then
19428 as_ls_L_option=L
19429 else
19430 as_ls_L_option=
19431 fi
19432 as_test_x='
19433 eval sh -c '\''
19434 if test -d "$1"; then
19435 test -d "$1/.";
19436 else
19437 case $1 in #(
19438 -*)set "./$1";;
19439 esac;
19440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19441 ???[sx]*):;;*)false;;esac;fi
19442 '\'' sh
19443 '
19444 fi
19445 as_executable_p=$as_test_x
19446
19447 # Sed expression to map a string onto a valid CPP name.
19448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19449
19450 # Sed expression to map a string onto a valid variable name.
19451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19452
19453
19454 exec 6>&1
19455 ## ----------------------------------- ##
19456 ## Main body of $CONFIG_STATUS script. ##
19457 ## ----------------------------------- ##
19458 _ASEOF
19459 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19460
19461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19462 # Save the log message, to keep $0 and so on meaningful, and to
19463 # report actual input values of CONFIG_FILES etc. instead of their
19464 # values after options handling.
19465 ac_log="
19466 This file was extended by libSM $as_me 1.2.2, which was
19467 generated by GNU Autoconf 2.68. Invocation command line was
19468
19469 CONFIG_FILES = $CONFIG_FILES
19470 CONFIG_HEADERS = $CONFIG_HEADERS
19471 CONFIG_LINKS = $CONFIG_LINKS
19472 CONFIG_COMMANDS = $CONFIG_COMMANDS
19473 $ $0 $@
19474
19475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19476 "
19477
19478 _ACEOF
19479
19480 case $ac_config_files in *"
19481 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19482 esac
19483
19484 case $ac_config_headers in *"
19485 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19486 esac
19487
19488
19489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19490 # Files that config.status was made for.
19491 config_files="$ac_config_files"
19492 config_headers="$ac_config_headers"
19493 config_commands="$ac_config_commands"
19494
19495 _ACEOF
19496
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498 ac_cs_usage="\
19499 \`$as_me' instantiates files and other configuration actions
19500 from templates according to the current configuration. Unless the files
19501 and actions are specified as TAGs, all are instantiated by default.
19502
19503 Usage: $0 [OPTION]... [TAG]...
19504
19505 -h, --help print this help, then exit
19506 -V, --version print version number and configuration settings, then exit
19507 --config print configuration, then exit
19508 -q, --quiet, --silent
19509 do not print progress messages
19510 -d, --debug don't remove temporary files
19511 --recheck update $as_me by reconfiguring in the same conditions
19512 --file=FILE[:TEMPLATE]
19513 instantiate the configuration file FILE
19514 --header=FILE[:TEMPLATE]
19515 instantiate the configuration header FILE
19516
19517 Configuration files:
19518 $config_files
19519
19520 Configuration headers:
19521 $config_headers
19522
19523 Configuration commands:
19524 $config_commands
19525
19526 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19527
19528 _ACEOF
19529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19530 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19531 ac_cs_version="\\
19532 libSM config.status 1.2.2
19533 configured by $0, generated by GNU Autoconf 2.68,
19534 with options \\"\$ac_cs_config\\"
19535
19536 Copyright (C) 2010 Free Software Foundation, Inc.
19537 This config.status script is free software; the Free Software Foundation
19538 gives unlimited permission to copy, distribute and modify it."
19539
19540 ac_pwd='$ac_pwd'
19541 srcdir='$srcdir'
19542 INSTALL='$INSTALL'
19543 MKDIR_P='$MKDIR_P'
19544 AWK='$AWK'
19545 test -n "\$AWK" || AWK=awk
19546 _ACEOF
19547
19548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19549 # The default lists apply if the user does not specify any file.
19550 ac_need_defaults=:
19551 while test $# != 0
19552 do
19553 case $1 in
19554 --*=?*)
19555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19557 ac_shift=:
19558 ;;
19559 --*=)
19560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19561 ac_optarg=
19562 ac_shift=:
19563 ;;
19564 *)
19565 ac_option=$1
19566 ac_optarg=$2
19567 ac_shift=shift
19568 ;;
19569 esac
19570
19571 case $ac_option in
19572 # Handling of the options.
19573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19574 ac_cs_recheck=: ;;
19575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19576 $as_echo "$ac_cs_version"; exit ;;
19577 --config | --confi | --conf | --con | --co | --c )
19578 $as_echo "$ac_cs_config"; exit ;;
19579 --debug | --debu | --deb | --de | --d | -d )
19580 debug=: ;;
19581 --file | --fil | --fi | --f )
19582 $ac_shift
19583 case $ac_optarg in
19584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19585 '') as_fn_error $? "missing file argument" ;;
19586 esac
19587 as_fn_append CONFIG_FILES " '$ac_optarg'"
19588 ac_need_defaults=false;;
19589 --header | --heade | --head | --hea )
19590 $ac_shift
19591 case $ac_optarg in
19592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19593 esac
19594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19595 ac_need_defaults=false;;
19596 --he | --h)
19597 # Conflict between --help and --header
19598 as_fn_error $? "ambiguous option: \`$1'
19599 Try \`$0 --help' for more information.";;
19600 --help | --hel | -h )
19601 $as_echo "$ac_cs_usage"; exit ;;
19602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19604 ac_cs_silent=: ;;
19605
19606 # This is an error.
19607 -*) as_fn_error $? "unrecognized option: \`$1'
19608 Try \`$0 --help' for more information." ;;
19609
19610 *) as_fn_append ac_config_targets " $1"
19611 ac_need_defaults=false ;;
19612
19613 esac
19614 shift
19615 done
19616
19617 ac_configure_extra_args=
19618
19619 if $ac_cs_silent; then
19620 exec 6>/dev/null
19621 ac_configure_extra_args="$ac_configure_extra_args --silent"
19622 fi
19623
19624 _ACEOF
19625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19626 if \$ac_cs_recheck; then
19627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19628 shift
19629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19630 CONFIG_SHELL='$SHELL'
19631 export CONFIG_SHELL
19632 exec "\$@"
19633 fi
19634
19635 _ACEOF
19636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19637 exec 5>>config.log
19638 {
19639 echo
19640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19641 ## Running $as_me. ##
19642 _ASBOX
19643 $as_echo "$ac_log"
19644 } >&5
19645
19646 _ACEOF
19647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19648 #
19649 # INIT-COMMANDS
19650 #
19651 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19652
19653
19654 # The HP-UX ksh and POSIX shell print the target directory to stdout
19655 # if CDPATH is set.
19656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19657
19658 sed_quote_subst='$sed_quote_subst'
19659 double_quote_subst='$double_quote_subst'
19660 delay_variable_subst='$delay_variable_subst'
19661 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19662 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19663 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19664 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19665 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19666 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19667 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19668 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19669 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19670 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19671 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19672 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19673 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19674 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19675 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19676 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19677 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19678 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19679 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19680 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19681 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19682 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19683 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19684 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19685 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19686 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19687 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19688 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19689 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19690 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19691 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19692 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19693 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19694 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19695 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19696 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19697 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19698 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19699 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19700 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19701 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19702 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19703 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19704 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19705 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19706 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19707 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19708 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19709 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19710 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19711 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19712 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19713 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19714 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19716 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19717 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"`'
19718 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19719 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19720 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19721 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19722 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19723 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19724 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19725 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19726 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19727 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19728 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19729 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19730 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19731 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19732 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19733 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19734 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19735 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19736 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19737 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19738 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19739 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19740 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19741 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19742 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19743 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19744 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19745 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19746 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19747 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19748 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19749 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19750 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19751 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19752 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19753 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19754 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19755 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19756 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19757 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19758 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19759 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19760 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19761 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19762 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19763 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19764 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19765 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19766 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19767 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19768 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19769 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19770 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19771 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19772 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19773 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19774 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19775 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19776 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19777 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19778 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19779 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19780 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19781 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19782 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19783 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19784 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19785 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19786 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19787 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19788 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19789 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19790 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19791
19792 LTCC='$LTCC'
19793 LTCFLAGS='$LTCFLAGS'
19794 compiler='$compiler_DEFAULT'
19795
19796 # A function that is used when there is no print builtin or printf.
19797 func_fallback_echo ()
19798 {
19799 eval 'cat <<_LTECHO_EOF
19800 \$1
19801 _LTECHO_EOF'
19802 }
19803
19804 # Quote evaled strings.
19805 for var in SHELL \
19806 ECHO \
19807 PATH_SEPARATOR \
19808 SED \
19809 GREP \
19810 EGREP \
19811 FGREP \
19812 LD \
19813 NM \
19814 LN_S \
19815 lt_SP2NL \
19816 lt_NL2SP \
19817 reload_flag \
19818 OBJDUMP \
19819 deplibs_check_method \
19820 file_magic_cmd \
19821 file_magic_glob \
19822 want_nocaseglob \
19823 DLLTOOL \
19824 sharedlib_from_linklib_cmd \
19825 AR \
19826 AR_FLAGS \
19827 archiver_list_spec \
19828 STRIP \
19829 RANLIB \
19830 CC \
19831 CFLAGS \
19832 compiler \
19833 lt_cv_sys_global_symbol_pipe \
19834 lt_cv_sys_global_symbol_to_cdecl \
19835 lt_cv_sys_global_symbol_to_c_name_address \
19836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19837 nm_file_list_spec \
19838 lt_prog_compiler_no_builtin_flag \
19839 lt_prog_compiler_pic \
19840 lt_prog_compiler_wl \
19841 lt_prog_compiler_static \
19842 lt_cv_prog_compiler_c_o \
19843 need_locks \
19844 MANIFEST_TOOL \
19845 DSYMUTIL \
19846 NMEDIT \
19847 LIPO \
19848 OTOOL \
19849 OTOOL64 \
19850 shrext_cmds \
19851 export_dynamic_flag_spec \
19852 whole_archive_flag_spec \
19853 compiler_needs_object \
19854 with_gnu_ld \
19855 allow_undefined_flag \
19856 no_undefined_flag \
19857 hardcode_libdir_flag_spec \
19858 hardcode_libdir_separator \
19859 exclude_expsyms \
19860 include_expsyms \
19861 file_list_spec \
19862 variables_saved_for_relink \
19863 libname_spec \
19864 library_names_spec \
19865 soname_spec \
19866 install_override_mode \
19867 finish_eval \
19868 old_striplib \
19869 striplib; do
19870 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19871 *[\\\\\\\`\\"\\\$]*)
19872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19873 ;;
19874 *)
19875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19876 ;;
19877 esac
19878 done
19879
19880 # Double-quote double-evaled strings.
19881 for var in reload_cmds \
19882 old_postinstall_cmds \
19883 old_postuninstall_cmds \
19884 old_archive_cmds \
19885 extract_expsyms_cmds \
19886 old_archive_from_new_cmds \
19887 old_archive_from_expsyms_cmds \
19888 archive_cmds \
19889 archive_expsym_cmds \
19890 module_cmds \
19891 module_expsym_cmds \
19892 export_symbols_cmds \
19893 prelink_cmds \
19894 postlink_cmds \
19895 postinstall_cmds \
19896 postuninstall_cmds \
19897 finish_cmds \
19898 sys_lib_search_path_spec \
19899 sys_lib_dlsearch_path_spec; do
19900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19901 *[\\\\\\\`\\"\\\$]*)
19902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19903 ;;
19904 *)
19905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19906 ;;
19907 esac
19908 done
19909
19910 ac_aux_dir='$ac_aux_dir'
19911 xsi_shell='$xsi_shell'
19912 lt_shell_append='$lt_shell_append'
19913
19914 # See if we are running on zsh, and set the options which allow our
19915 # commands through without removal of \ escapes INIT.
19916 if test -n "\${ZSH_VERSION+set}" ; then
19917 setopt NO_GLOB_SUBST
19918 fi
19919
19920
19921 PACKAGE='$PACKAGE'
19922 VERSION='$VERSION'
19923 TIMESTAMP='$TIMESTAMP'
19924 RM='$RM'
19925 ofile='$ofile'
19926
19927
19928
19929
19930 _ACEOF
19931
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933
19934 # Handling of arguments.
19935 for ac_config_target in $ac_config_targets
19936 do
19937 case $ac_config_target in
19938 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19942 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19943 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19944 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;;
19945
19946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19947 esac
19948 done
19949
19950
19951 # If the user did not use the arguments to specify the items to instantiate,
19952 # then the envvar interface is used. Set only those that are not.
19953 # We use the long form for the default assignment because of an extremely
19954 # bizarre bug on SunOS 4.1.3.
19955 if $ac_need_defaults; then
19956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19959 fi
19960
19961 # Have a temporary directory for convenience. Make it in the build tree
19962 # simply because there is no reason against having it here, and in addition,
19963 # creating and moving files from /tmp can sometimes cause problems.
19964 # Hook for its removal unless debugging.
19965 # Note that there is a small window in which the directory will not be cleaned:
19966 # after its creation but before its name has been assigned to `$tmp'.
19967 $debug ||
19968 {
19969 tmp= ac_tmp=
19970 trap 'exit_status=$?
19971 : "${ac_tmp:=$tmp}"
19972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19973 ' 0
19974 trap 'as_fn_exit 1' 1 2 13 15
19975 }
19976 # Create a (secure) tmp directory for tmp files.
19977
19978 {
19979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19980 test -d "$tmp"
19981 } ||
19982 {
19983 tmp=./conf$$-$RANDOM
19984 (umask 077 && mkdir "$tmp")
19985 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19986 ac_tmp=$tmp
19987
19988 # Set up the scripts for CONFIG_FILES section.
19989 # No need to generate them if there are no CONFIG_FILES.
19990 # This happens for instance with `./config.status config.h'.
19991 if test -n "$CONFIG_FILES"; then
19992
19993
19994 ac_cr=`echo X | tr X '\015'`
19995 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19996 # But we know of no other shell where ac_cr would be empty at this
19997 # point, so we can use a bashism as a fallback.
19998 if test "x$ac_cr" = x; then
19999 eval ac_cr=\$\'\\r\'
20000 fi
20001 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20002 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20003 ac_cs_awk_cr='\\r'
20004 else
20005 ac_cs_awk_cr=$ac_cr
20006 fi
20007
20008 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20009 _ACEOF
20010
20011
20012 {
20013 echo "cat >conf$$subs.awk <<_ACEOF" &&
20014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20015 echo "_ACEOF"
20016 } >conf$$subs.sh ||
20017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20019 ac_delim='%!_!# '
20020 for ac_last_try in false false false false false :; do
20021 . ./conf$$subs.sh ||
20022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20023
20024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20025 if test $ac_delim_n = $ac_delim_num; then
20026 break
20027 elif $ac_last_try; then
20028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20029 else
20030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20031 fi
20032 done
20033 rm -f conf$$subs.sh
20034
20035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20036 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20037 _ACEOF
20038 sed -n '
20039 h
20040 s/^/S["/; s/!.*/"]=/
20041 p
20042 g
20043 s/^[^!]*!//
20044 :repl
20045 t repl
20046 s/'"$ac_delim"'$//
20047 t delim
20048 :nl
20049 h
20050 s/\(.\{148\}\)..*/\1/
20051 t more1
20052 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20053 p
20054 n
20055 b repl
20056 :more1
20057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20058 p
20059 g
20060 s/.\{148\}//
20061 t nl
20062 :delim
20063 h
20064 s/\(.\{148\}\)..*/\1/
20065 t more2
20066 s/["\\]/\\&/g; s/^/"/; s/$/"/
20067 p
20068 b
20069 :more2
20070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20071 p
20072 g
20073 s/.\{148\}//
20074 t delim
20075 ' <conf$$subs.awk | sed '
20076 /^[^""]/{
20077 N
20078 s/\n//
20079 }
20080 ' >>$CONFIG_STATUS || ac_write_fail=1
20081 rm -f conf$$subs.awk
20082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20083 _ACAWK
20084 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20085 for (key in S) S_is_set[key] = 1
20086 FS = ""
20087
20088 }
20089 {
20090 line = $ 0
20091 nfields = split(line, field, "@")
20092 substed = 0
20093 len = length(field[1])
20094 for (i = 2; i < nfields; i++) {
20095 key = field[i]
20096 keylen = length(key)
20097 if (S_is_set[key]) {
20098 value = S[key]
20099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20100 len += length(value) + length(field[++i])
20101 substed = 1
20102 } else
20103 len += 1 + keylen
20104 }
20105
20106 print line
20107 }
20108
20109 _ACAWK
20110 _ACEOF
20111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20112 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20114 else
20115 cat
20116 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20118 _ACEOF
20119
20120 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20121 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20122 # trailing colons and then remove the whole line if VPATH becomes empty
20123 # (actually we leave an empty line to preserve line numbers).
20124 if test "x$srcdir" = x.; then
20125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20126 h
20127 s///
20128 s/^/:/
20129 s/[ ]*$/:/
20130 s/:\$(srcdir):/:/g
20131 s/:\${srcdir}:/:/g
20132 s/:@srcdir@:/:/g
20133 s/^:*//
20134 s/:*$//
20135 x
20136 s/\(=[ ]*\).*/\1/
20137 G
20138 s/\n//
20139 s/^[^=]*=[ ]*$//
20140 }'
20141 fi
20142
20143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20144 fi # test -n "$CONFIG_FILES"
20145
20146 # Set up the scripts for CONFIG_HEADERS section.
20147 # No need to generate them if there are no CONFIG_HEADERS.
20148 # This happens for instance with `./config.status Makefile'.
20149 if test -n "$CONFIG_HEADERS"; then
20150 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20151 BEGIN {
20152 _ACEOF
20153
20154 # Transform confdefs.h into an awk script `defines.awk', embedded as
20155 # here-document in config.status, that substitutes the proper values into
20156 # config.h.in to produce config.h.
20157
20158 # Create a delimiter string that does not exist in confdefs.h, to ease
20159 # handling of long lines.
20160 ac_delim='%!_!# '
20161 for ac_last_try in false false :; do
20162 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20163 if test -z "$ac_tt"; then
20164 break
20165 elif $ac_last_try; then
20166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20167 else
20168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20169 fi
20170 done
20171
20172 # For the awk script, D is an array of macro values keyed by name,
20173 # likewise P contains macro parameters if any. Preserve backslash
20174 # newline sequences.
20175
20176 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20177 sed -n '
20178 s/.\{148\}/&'"$ac_delim"'/g
20179 t rset
20180 :rset
20181 s/^[ ]*#[ ]*define[ ][ ]*/ /
20182 t def
20183 d
20184 :def
20185 s/\\$//
20186 t bsnl
20187 s/["\\]/\\&/g
20188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20189 D["\1"]=" \3"/p
20190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20191 d
20192 :bsnl
20193 s/["\\]/\\&/g
20194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20195 D["\1"]=" \3\\\\\\n"\\/p
20196 t cont
20197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20198 t cont
20199 d
20200 :cont
20201 n
20202 s/.\{148\}/&'"$ac_delim"'/g
20203 t clear
20204 :clear
20205 s/\\$//
20206 t bsnlc
20207 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20208 d
20209 :bsnlc
20210 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20211 b cont
20212 ' <confdefs.h | sed '
20213 s/'"$ac_delim"'/"\\\
20214 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20215
20216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20217 for (key in D) D_is_set[key] = 1
20218 FS = ""
20219 }
20220 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20221 line = \$ 0
20222 split(line, arg, " ")
20223 if (arg[1] == "#") {
20224 defundef = arg[2]
20225 mac1 = arg[3]
20226 } else {
20227 defundef = substr(arg[1], 2)
20228 mac1 = arg[2]
20229 }
20230 split(mac1, mac2, "(") #)
20231 macro = mac2[1]
20232 prefix = substr(line, 1, index(line, defundef) - 1)
20233 if (D_is_set[macro]) {
20234 # Preserve the white space surrounding the "#".
20235 print prefix "define", macro P[macro] D[macro]
20236 next
20237 } else {
20238 # Replace #undef with comments. This is necessary, for example,
20239 # in the case of _POSIX_SOURCE, which is predefined and required
20240 # on some systems where configure will not decide to define it.
20241 if (defundef == "undef") {
20242 print "/*", prefix defundef, macro, "*/"
20243 next
20244 }
20245 }
20246 }
20247 { print }
20248 _ACAWK
20249 _ACEOF
20250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20252 fi # test -n "$CONFIG_HEADERS"
20253
20254
20255 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20256 shift
20257 for ac_tag
20258 do
20259 case $ac_tag in
20260 :[FHLC]) ac_mode=$ac_tag; continue;;
20261 esac
20262 case $ac_mode$ac_tag in
20263 :[FHL]*:*);;
20264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20265 :[FH]-) ac_tag=-:-;;
20266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20267 esac
20268 ac_save_IFS=$IFS
20269 IFS=:
20270 set x $ac_tag
20271 IFS=$ac_save_IFS
20272 shift
20273 ac_file=$1
20274 shift
20275
20276 case $ac_mode in
20277 :L) ac_source=$1;;
20278 :[FH])
20279 ac_file_inputs=
20280 for ac_f
20281 do
20282 case $ac_f in
20283 -) ac_f="$ac_tmp/stdin";;
20284 *) # Look for the file first in the build tree, then in the source tree
20285 # (if the path is not absolute). The absolute path cannot be DOS-style,
20286 # because $ac_f cannot contain `:'.
20287 test -f "$ac_f" ||
20288 case $ac_f in
20289 [\\/$]*) false;;
20290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20291 esac ||
20292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20293 esac
20294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20295 as_fn_append ac_file_inputs " '$ac_f'"
20296 done
20297
20298 # Let's still pretend it is `configure' which instantiates (i.e., don't
20299 # use $as_me), people would be surprised to read:
20300 # /* config.h. Generated by config.status. */
20301 configure_input='Generated from '`
20302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20303 `' by configure.'
20304 if test x"$ac_file" != x-; then
20305 configure_input="$ac_file. $configure_input"
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20307 $as_echo "$as_me: creating $ac_file" >&6;}
20308 fi
20309 # Neutralize special characters interpreted by sed in replacement strings.
20310 case $configure_input in #(
20311 *\&* | *\|* | *\\* )
20312 ac_sed_conf_input=`$as_echo "$configure_input" |
20313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20314 *) ac_sed_conf_input=$configure_input;;
20315 esac
20316
20317 case $ac_tag in
20318 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20320 esac
20321 ;;
20322 esac
20323
20324 ac_dir=`$as_dirname -- "$ac_file" ||
20325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20326 X"$ac_file" : 'X\(//\)[^/]' \| \
20327 X"$ac_file" : 'X\(//\)$' \| \
20328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20329 $as_echo X"$ac_file" |
20330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20331 s//\1/
20332 q
20333 }
20334 /^X\(\/\/\)[^/].*/{
20335 s//\1/
20336 q
20337 }
20338 /^X\(\/\/\)$/{
20339 s//\1/
20340 q
20341 }
20342 /^X\(\/\).*/{
20343 s//\1/
20344 q
20345 }
20346 s/.*/./; q'`
20347 as_dir="$ac_dir"; as_fn_mkdir_p
20348 ac_builddir=.
20349
20350 case "$ac_dir" in
20351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20352 *)
20353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20354 # A ".." for each directory in $ac_dir_suffix.
20355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20356 case $ac_top_builddir_sub in
20357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20359 esac ;;
20360 esac
20361 ac_abs_top_builddir=$ac_pwd
20362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20363 # for backward compatibility:
20364 ac_top_builddir=$ac_top_build_prefix
20365
20366 case $srcdir in
20367 .) # We are building in place.
20368 ac_srcdir=.
20369 ac_top_srcdir=$ac_top_builddir_sub
20370 ac_abs_top_srcdir=$ac_pwd ;;
20371 [\\/]* | ?:[\\/]* ) # Absolute name.
20372 ac_srcdir=$srcdir$ac_dir_suffix;
20373 ac_top_srcdir=$srcdir
20374 ac_abs_top_srcdir=$srcdir ;;
20375 *) # Relative name.
20376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20377 ac_top_srcdir=$ac_top_build_prefix$srcdir
20378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20379 esac
20380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20381
20382
20383 case $ac_mode in
20384 :F)
20385 #
20386 # CONFIG_FILE
20387 #
20388
20389 case $INSTALL in
20390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20392 esac
20393 ac_MKDIR_P=$MKDIR_P
20394 case $MKDIR_P in
20395 [\\/$]* | ?:[\\/]* ) ;;
20396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20397 esac
20398 _ACEOF
20399
20400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20401 # If the template does not know about datarootdir, expand it.
20402 # FIXME: This hack should be removed a few years after 2.60.
20403 ac_datarootdir_hack=; ac_datarootdir_seen=
20404 ac_sed_dataroot='
20405 /datarootdir/ {
20406 p
20407 q
20408 }
20409 /@datadir@/p
20410 /@docdir@/p
20411 /@infodir@/p
20412 /@localedir@/p
20413 /@mandir@/p'
20414 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20415 *datarootdir*) ac_datarootdir_seen=yes;;
20416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20418 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20419 _ACEOF
20420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20421 ac_datarootdir_hack='
20422 s&@datadir@&$datadir&g
20423 s&@docdir@&$docdir&g
20424 s&@infodir@&$infodir&g
20425 s&@localedir@&$localedir&g
20426 s&@mandir@&$mandir&g
20427 s&\\\${datarootdir}&$datarootdir&g' ;;
20428 esac
20429 _ACEOF
20430
20431 # Neutralize VPATH when `$srcdir' = `.'.
20432 # Shell code in configure.ac might set extrasub.
20433 # FIXME: do we really want to maintain this feature?
20434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20435 ac_sed_extra="$ac_vpsub
20436 $extrasub
20437 _ACEOF
20438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20439 :t
20440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20441 s|@configure_input@|$ac_sed_conf_input|;t t
20442 s&@top_builddir@&$ac_top_builddir_sub&;t t
20443 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20444 s&@srcdir@&$ac_srcdir&;t t
20445 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20446 s&@top_srcdir@&$ac_top_srcdir&;t t
20447 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20448 s&@builddir@&$ac_builddir&;t t
20449 s&@abs_builddir@&$ac_abs_builddir&;t t
20450 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20451 s&@INSTALL@&$ac_INSTALL&;t t
20452 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20453 $ac_datarootdir_hack
20454 "
20455 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20457
20458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20461 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20463 which seems to be undefined. Please make sure it is defined" >&5
20464 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20465 which seems to be undefined. Please make sure it is defined" >&2;}
20466
20467 rm -f "$ac_tmp/stdin"
20468 case $ac_file in
20469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20471 esac \
20472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20473 ;;
20474 :H)
20475 #
20476 # CONFIG_HEADER
20477 #
20478 if test x"$ac_file" != x-; then
20479 {
20480 $as_echo "/* $configure_input */" \
20481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20482 } >"$ac_tmp/config.h" \
20483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20486 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20487 else
20488 rm -f "$ac_file"
20489 mv "$ac_tmp/config.h" "$ac_file" \
20490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20491 fi
20492 else
20493 $as_echo "/* $configure_input */" \
20494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20495 || as_fn_error $? "could not create -" "$LINENO" 5
20496 fi
20497 # Compute "$ac_file"'s index in $config_headers.
20498 _am_arg="$ac_file"
20499 _am_stamp_count=1
20500 for _am_header in $config_headers :; do
20501 case $_am_header in
20502 $_am_arg | $_am_arg:* )
20503 break ;;
20504 * )
20505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20506 esac
20507 done
20508 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20509 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510 X"$_am_arg" : 'X\(//\)[^/]' \| \
20511 X"$_am_arg" : 'X\(//\)$' \| \
20512 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20513 $as_echo X"$_am_arg" |
20514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20515 s//\1/
20516 q
20517 }
20518 /^X\(\/\/\)[^/].*/{
20519 s//\1/
20520 q
20521 }
20522 /^X\(\/\/\)$/{
20523 s//\1/
20524 q
20525 }
20526 /^X\(\/\).*/{
20527 s//\1/
20528 q
20529 }
20530 s/.*/./; q'`/stamp-h$_am_stamp_count
20531 ;;
20532
20533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20534 $as_echo "$as_me: executing $ac_file commands" >&6;}
20535 ;;
20536 esac
20537
20538
20539 case $ac_file$ac_mode in
20540 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20541 # Older Autoconf quotes --file arguments for eval, but not when files
20542 # are listed without --file. Let's play safe and only enable the eval
20543 # if we detect the quoting.
20544 case $CONFIG_FILES in
20545 *\'*) eval set x "$CONFIG_FILES" ;;
20546 *) set x $CONFIG_FILES ;;
20547 esac
20548 shift
20549 for mf
20550 do
20551 # Strip MF so we end up with the name of the file.
20552 mf=`echo "$mf" | sed -e 's/:.*$//'`
20553 # Check whether this is an Automake generated Makefile or not.
20554 # We used to match only the files named 'Makefile.in', but
20555 # some people rename them; so instead we look at the file content.
20556 # Grep'ing the first line is not enough: some people post-process
20557 # each Makefile.in and add a new line on top of each file to say so.
20558 # Grep'ing the whole file is not good either: AIX grep has a line
20559 # limit of 2048, but all sed's we know have understand at least 4000.
20560 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20561 dirpart=`$as_dirname -- "$mf" ||
20562 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20563 X"$mf" : 'X\(//\)[^/]' \| \
20564 X"$mf" : 'X\(//\)$' \| \
20565 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20566 $as_echo X"$mf" |
20567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20568 s//\1/
20569 q
20570 }
20571 /^X\(\/\/\)[^/].*/{
20572 s//\1/
20573 q
20574 }
20575 /^X\(\/\/\)$/{
20576 s//\1/
20577 q
20578 }
20579 /^X\(\/\).*/{
20580 s//\1/
20581 q
20582 }
20583 s/.*/./; q'`
20584 else
20585 continue
20586 fi
20587 # Extract the definition of DEPDIR, am__include, and am__quote
20588 # from the Makefile without running 'make'.
20589 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20590 test -z "$DEPDIR" && continue
20591 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20592 test -z "$am__include" && continue
20593 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20594 # Find all dependency output files, they are included files with
20595 # $(DEPDIR) in their names. We invoke sed twice because it is the
20596 # simplest approach to changing $(DEPDIR) to its actual value in the
20597 # expansion.
20598 for file in `sed -n "
20599 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20600 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20601 # Make sure the directory exists.
20602 test -f "$dirpart/$file" && continue
20603 fdir=`$as_dirname -- "$file" ||
20604 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20605 X"$file" : 'X\(//\)[^/]' \| \
20606 X"$file" : 'X\(//\)$' \| \
20607 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20608 $as_echo X"$file" |
20609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20610 s//\1/
20611 q
20612 }
20613 /^X\(\/\/\)[^/].*/{
20614 s//\1/
20615 q
20616 }
20617 /^X\(\/\/\)$/{
20618 s//\1/
20619 q
20620 }
20621 /^X\(\/\).*/{
20622 s//\1/
20623 q
20624 }
20625 s/.*/./; q'`
20626 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20627 # echo "creating $dirpart/$file"
20628 echo '# dummy' > "$dirpart/$file"
20629 done
20630 done
20631 }
20632 ;;
20633 "libtool":C)
20634
20635 # See if we are running on zsh, and set the options which allow our
20636 # commands through without removal of \ escapes.
20637 if test -n "${ZSH_VERSION+set}" ; then
20638 setopt NO_GLOB_SUBST
20639 fi
20640
20641 cfgfile="${ofile}T"
20642 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20643 $RM "$cfgfile"
20644
20645 cat <<_LT_EOF >> "$cfgfile"
20646 #! $SHELL
20647
20648 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20649 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20652 #
20653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20654 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20655 # Foundation, Inc.
20656 # Written by Gordon Matzigkeit, 1996
20657 #
20658 # This file is part of GNU Libtool.
20659 #
20660 # GNU Libtool is free software; you can redistribute it and/or
20661 # modify it under the terms of the GNU General Public License as
20662 # published by the Free Software Foundation; either version 2 of
20663 # the License, or (at your option) any later version.
20664 #
20665 # As a special exception to the GNU General Public License,
20666 # if you distribute this file as part of a program or library that
20667 # is built using GNU Libtool, you may include this file under the
20668 # same distribution terms that you use for the rest of that program.
20669 #
20670 # GNU Libtool is distributed in the hope that it will be useful,
20671 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20672 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20673 # GNU General Public License for more details.
20674 #
20675 # You should have received a copy of the GNU General Public License
20676 # along with GNU Libtool; see the file COPYING. If not, a copy
20677 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20678 # obtained by writing to the Free Software Foundation, Inc.,
20679 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20680
20681
20682 # The names of the tagged configurations supported by this script.
20683 available_tags=""
20684
20685 # ### BEGIN LIBTOOL CONFIG
20686
20687 # Which release of libtool.m4 was used?
20688 macro_version=$macro_version
20689 macro_revision=$macro_revision
20690
20691 # Whether or not to build shared libraries.
20692 build_libtool_libs=$enable_shared
20693
20694 # Whether or not to build static libraries.
20695 build_old_libs=$enable_static
20696
20697 # What type of objects to build.
20698 pic_mode=$pic_mode
20699
20700 # Whether or not to optimize for fast installation.
20701 fast_install=$enable_fast_install
20702
20703 # Shell to use when invoking shell scripts.
20704 SHELL=$lt_SHELL
20705
20706 # An echo program that protects backslashes.
20707 ECHO=$lt_ECHO
20708
20709 # The PATH separator for the build system.
20710 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20711
20712 # The host system.
20713 host_alias=$host_alias
20714 host=$host
20715 host_os=$host_os
20716
20717 # The build system.
20718 build_alias=$build_alias
20719 build=$build
20720 build_os=$build_os
20721
20722 # A sed program that does not truncate output.
20723 SED=$lt_SED
20724
20725 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20726 Xsed="\$SED -e 1s/^X//"
20727
20728 # A grep program that handles long lines.
20729 GREP=$lt_GREP
20730
20731 # An ERE matcher.
20732 EGREP=$lt_EGREP
20733
20734 # A literal string matcher.
20735 FGREP=$lt_FGREP
20736
20737 # A BSD- or MS-compatible name lister.
20738 NM=$lt_NM
20739
20740 # Whether we need soft or hard links.
20741 LN_S=$lt_LN_S
20742
20743 # What is the maximum length of a command?
20744 max_cmd_len=$max_cmd_len
20745
20746 # Object file suffix (normally "o").
20747 objext=$ac_objext
20748
20749 # Executable file suffix (normally "").
20750 exeext=$exeext
20751
20752 # whether the shell understands "unset".
20753 lt_unset=$lt_unset
20754
20755 # turn spaces into newlines.
20756 SP2NL=$lt_lt_SP2NL
20757
20758 # turn newlines into spaces.
20759 NL2SP=$lt_lt_NL2SP
20760
20761 # convert \$build file names to \$host format.
20762 to_host_file_cmd=$lt_cv_to_host_file_cmd
20763
20764 # convert \$build files to toolchain format.
20765 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20766
20767 # An object symbol dumper.
20768 OBJDUMP=$lt_OBJDUMP
20769
20770 # Method to check whether dependent libraries are shared objects.
20771 deplibs_check_method=$lt_deplibs_check_method
20772
20773 # Command to use when deplibs_check_method = "file_magic".
20774 file_magic_cmd=$lt_file_magic_cmd
20775
20776 # How to find potential files when deplibs_check_method = "file_magic".
20777 file_magic_glob=$lt_file_magic_glob
20778
20779 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20780 want_nocaseglob=$lt_want_nocaseglob
20781
20782 # DLL creation program.
20783 DLLTOOL=$lt_DLLTOOL
20784
20785 # Command to associate shared and link libraries.
20786 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20787
20788 # The archiver.
20789 AR=$lt_AR
20790
20791 # Flags to create an archive.
20792 AR_FLAGS=$lt_AR_FLAGS
20793
20794 # How to feed a file listing to the archiver.
20795 archiver_list_spec=$lt_archiver_list_spec
20796
20797 # A symbol stripping program.
20798 STRIP=$lt_STRIP
20799
20800 # Commands used to install an old-style archive.
20801 RANLIB=$lt_RANLIB
20802 old_postinstall_cmds=$lt_old_postinstall_cmds
20803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20804
20805 # Whether to use a lock for old archive extraction.
20806 lock_old_archive_extraction=$lock_old_archive_extraction
20807
20808 # A C compiler.
20809 LTCC=$lt_CC
20810
20811 # LTCC compiler flags.
20812 LTCFLAGS=$lt_CFLAGS
20813
20814 # Take the output of nm and produce a listing of raw symbols and C names.
20815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20816
20817 # Transform the output of nm in a proper C declaration.
20818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20819
20820 # Transform the output of nm in a C name address pair.
20821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20822
20823 # Transform the output of nm in a C name address pair when lib prefix is needed.
20824 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20825
20826 # Specify filename containing input files for \$NM.
20827 nm_file_list_spec=$lt_nm_file_list_spec
20828
20829 # The root where to search for dependent libraries,and in which our libraries should be installed.
20830 lt_sysroot=$lt_sysroot
20831
20832 # The name of the directory that contains temporary libtool files.
20833 objdir=$objdir
20834
20835 # Used to examine libraries when file_magic_cmd begins with "file".
20836 MAGIC_CMD=$MAGIC_CMD
20837
20838 # Must we lock files when doing compilation?
20839 need_locks=$lt_need_locks
20840
20841 # Manifest tool.
20842 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20843
20844 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20845 DSYMUTIL=$lt_DSYMUTIL
20846
20847 # Tool to change global to local symbols on Mac OS X.
20848 NMEDIT=$lt_NMEDIT
20849
20850 # Tool to manipulate fat objects and archives on Mac OS X.
20851 LIPO=$lt_LIPO
20852
20853 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20854 OTOOL=$lt_OTOOL
20855
20856 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20857 OTOOL64=$lt_OTOOL64
20858
20859 # Old archive suffix (normally "a").
20860 libext=$libext
20861
20862 # Shared library suffix (normally ".so").
20863 shrext_cmds=$lt_shrext_cmds
20864
20865 # The commands to extract the exported symbol list from a shared archive.
20866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20867
20868 # Variables whose values should be saved in libtool wrapper scripts and
20869 # restored at link time.
20870 variables_saved_for_relink=$lt_variables_saved_for_relink
20871
20872 # Do we need the "lib" prefix for modules?
20873 need_lib_prefix=$need_lib_prefix
20874
20875 # Do we need a version for libraries?
20876 need_version=$need_version
20877
20878 # Library versioning type.
20879 version_type=$version_type
20880
20881 # Shared library runtime path variable.
20882 runpath_var=$runpath_var
20883
20884 # Shared library path variable.
20885 shlibpath_var=$shlibpath_var
20886
20887 # Is shlibpath searched before the hard-coded library search path?
20888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20889
20890 # Format of library name prefix.
20891 libname_spec=$lt_libname_spec
20892
20893 # List of archive names. First name is the real one, the rest are links.
20894 # The last name is the one that the linker finds with -lNAME
20895 library_names_spec=$lt_library_names_spec
20896
20897 # The coded name of the library, if different from the real name.
20898 soname_spec=$lt_soname_spec
20899
20900 # Permission mode override for installation of shared libraries.
20901 install_override_mode=$lt_install_override_mode
20902
20903 # Command to use after installation of a shared archive.
20904 postinstall_cmds=$lt_postinstall_cmds
20905
20906 # Command to use after uninstallation of a shared archive.
20907 postuninstall_cmds=$lt_postuninstall_cmds
20908
20909 # Commands used to finish a libtool library installation in a directory.
20910 finish_cmds=$lt_finish_cmds
20911
20912 # As "finish_cmds", except a single script fragment to be evaled but
20913 # not shown.
20914 finish_eval=$lt_finish_eval
20915
20916 # Whether we should hardcode library paths into libraries.
20917 hardcode_into_libs=$hardcode_into_libs
20918
20919 # Compile-time system search path for libraries.
20920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20921
20922 # Run-time system search path for libraries.
20923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20924
20925 # Whether dlopen is supported.
20926 dlopen_support=$enable_dlopen
20927
20928 # Whether dlopen of programs is supported.
20929 dlopen_self=$enable_dlopen_self
20930
20931 # Whether dlopen of statically linked programs is supported.
20932 dlopen_self_static=$enable_dlopen_self_static
20933
20934 # Commands to strip libraries.
20935 old_striplib=$lt_old_striplib
20936 striplib=$lt_striplib
20937
20938
20939 # The linker used to build libraries.
20940 LD=$lt_LD
20941
20942 # How to create reloadable object files.
20943 reload_flag=$lt_reload_flag
20944 reload_cmds=$lt_reload_cmds
20945
20946 # Commands used to build an old-style archive.
20947 old_archive_cmds=$lt_old_archive_cmds
20948
20949 # A language specific compiler.
20950 CC=$lt_compiler
20951
20952 # Is the compiler the GNU compiler?
20953 with_gcc=$GCC
20954
20955 # Compiler flag to turn off builtin functions.
20956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20957
20958 # Additional compiler flags for building library objects.
20959 pic_flag=$lt_lt_prog_compiler_pic
20960
20961 # How to pass a linker flag through the compiler.
20962 wl=$lt_lt_prog_compiler_wl
20963
20964 # Compiler flag to prevent dynamic linking.
20965 link_static_flag=$lt_lt_prog_compiler_static
20966
20967 # Does compiler simultaneously support -c and -o options?
20968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20969
20970 # Whether or not to add -lc for building shared libraries.
20971 build_libtool_need_lc=$archive_cmds_need_lc
20972
20973 # Whether or not to disallow shared libs when runtime libs are static.
20974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20975
20976 # Compiler flag to allow reflexive dlopens.
20977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20978
20979 # Compiler flag to generate shared objects directly from archives.
20980 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20981
20982 # Whether the compiler copes with passing no objects directly.
20983 compiler_needs_object=$lt_compiler_needs_object
20984
20985 # Create an old-style archive from a shared archive.
20986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20987
20988 # Create a temporary old-style archive to link instead of a shared archive.
20989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20990
20991 # Commands used to build a shared archive.
20992 archive_cmds=$lt_archive_cmds
20993 archive_expsym_cmds=$lt_archive_expsym_cmds
20994
20995 # Commands used to build a loadable module if different from building
20996 # a shared archive.
20997 module_cmds=$lt_module_cmds
20998 module_expsym_cmds=$lt_module_expsym_cmds
20999
21000 # Whether we are building with GNU ld or not.
21001 with_gnu_ld=$lt_with_gnu_ld
21002
21003 # Flag that allows shared libraries with undefined symbols to be built.
21004 allow_undefined_flag=$lt_allow_undefined_flag
21005
21006 # Flag that enforces no undefined symbols.
21007 no_undefined_flag=$lt_no_undefined_flag
21008
21009 # Flag to hardcode \$libdir into a binary during linking.
21010 # This must work even if \$libdir does not exist
21011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21012
21013 # Whether we need a single "-rpath" flag with a separated argument.
21014 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21015
21016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21017 # DIR into the resulting binary.
21018 hardcode_direct=$hardcode_direct
21019
21020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21021 # DIR into the resulting binary and the resulting library dependency is
21022 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21023 # library is relocated.
21024 hardcode_direct_absolute=$hardcode_direct_absolute
21025
21026 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21027 # into the resulting binary.
21028 hardcode_minus_L=$hardcode_minus_L
21029
21030 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21031 # into the resulting binary.
21032 hardcode_shlibpath_var=$hardcode_shlibpath_var
21033
21034 # Set to "yes" if building a shared library automatically hardcodes DIR
21035 # into the library and all subsequent libraries and executables linked
21036 # against it.
21037 hardcode_automatic=$hardcode_automatic
21038
21039 # Set to yes if linker adds runtime paths of dependent libraries
21040 # to runtime path list.
21041 inherit_rpath=$inherit_rpath
21042
21043 # Whether libtool must link a program against all its dependency libraries.
21044 link_all_deplibs=$link_all_deplibs
21045
21046 # Set to "yes" if exported symbols are required.
21047 always_export_symbols=$always_export_symbols
21048
21049 # The commands to list exported symbols.
21050 export_symbols_cmds=$lt_export_symbols_cmds
21051
21052 # Symbols that should not be listed in the preloaded symbols.
21053 exclude_expsyms=$lt_exclude_expsyms
21054
21055 # Symbols that must always be exported.
21056 include_expsyms=$lt_include_expsyms
21057
21058 # Commands necessary for linking programs (against libraries) with templates.
21059 prelink_cmds=$lt_prelink_cmds
21060
21061 # Commands necessary for finishing linking programs.
21062 postlink_cmds=$lt_postlink_cmds
21063
21064 # Specify filename containing input files.
21065 file_list_spec=$lt_file_list_spec
21066
21067 # How to hardcode a shared library path into an executable.
21068 hardcode_action=$hardcode_action
21069
21070 # ### END LIBTOOL CONFIG
21071
21072 _LT_EOF
21073
21074 case $host_os in
21075 aix3*)
21076 cat <<\_LT_EOF >> "$cfgfile"
21077 # AIX sometimes has problems with the GCC collect2 program. For some
21078 # reason, if we set the COLLECT_NAMES environment variable, the problems
21079 # vanish in a puff of smoke.
21080 if test "X${COLLECT_NAMES+set}" != Xset; then
21081 COLLECT_NAMES=
21082 export COLLECT_NAMES
21083 fi
21084 _LT_EOF
21085 ;;
21086 esac
21087
21088
21089 ltmain="$ac_aux_dir/ltmain.sh"
21090
21091
21092 # We use sed instead of cat because bash on DJGPP gets confused if
21093 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21094 # text mode, it properly converts lines to CR/LF. This bash problem
21095 # is reportedly fixed, but why not run on old versions too?
21096 sed '$q' "$ltmain" >> "$cfgfile" \
21097 || (rm -f "$cfgfile"; exit 1)
21098
21099 if test x"$xsi_shell" = xyes; then
21100 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21101 func_dirname ()\
21102 {\
21103 \ case ${1} in\
21104 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21105 \ * ) func_dirname_result="${3}" ;;\
21106 \ esac\
21107 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21108 && mv -f "$cfgfile.tmp" "$cfgfile" \
21109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21110 test 0 -eq $? || _lt_function_replace_fail=:
21111
21112
21113 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21114 func_basename ()\
21115 {\
21116 \ func_basename_result="${1##*/}"\
21117 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21118 && mv -f "$cfgfile.tmp" "$cfgfile" \
21119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21120 test 0 -eq $? || _lt_function_replace_fail=:
21121
21122
21123 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21124 func_dirname_and_basename ()\
21125 {\
21126 \ case ${1} in\
21127 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21128 \ * ) func_dirname_result="${3}" ;;\
21129 \ esac\
21130 \ func_basename_result="${1##*/}"\
21131 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21132 && mv -f "$cfgfile.tmp" "$cfgfile" \
21133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21134 test 0 -eq $? || _lt_function_replace_fail=:
21135
21136
21137 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21138 func_stripname ()\
21139 {\
21140 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21141 \ # positional parameters, so assign one to ordinary parameter first.\
21142 \ func_stripname_result=${3}\
21143 \ func_stripname_result=${func_stripname_result#"${1}"}\
21144 \ func_stripname_result=${func_stripname_result%"${2}"}\
21145 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21146 && mv -f "$cfgfile.tmp" "$cfgfile" \
21147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21148 test 0 -eq $? || _lt_function_replace_fail=:
21149
21150
21151 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21152 func_split_long_opt ()\
21153 {\
21154 \ func_split_long_opt_name=${1%%=*}\
21155 \ func_split_long_opt_arg=${1#*=}\
21156 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21157 && mv -f "$cfgfile.tmp" "$cfgfile" \
21158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21159 test 0 -eq $? || _lt_function_replace_fail=:
21160
21161
21162 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21163 func_split_short_opt ()\
21164 {\
21165 \ func_split_short_opt_arg=${1#??}\
21166 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21167 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21168 && mv -f "$cfgfile.tmp" "$cfgfile" \
21169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21170 test 0 -eq $? || _lt_function_replace_fail=:
21171
21172
21173 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21174 func_lo2o ()\
21175 {\
21176 \ case ${1} in\
21177 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21178 \ *) func_lo2o_result=${1} ;;\
21179 \ esac\
21180 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21181 && mv -f "$cfgfile.tmp" "$cfgfile" \
21182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21183 test 0 -eq $? || _lt_function_replace_fail=:
21184
21185
21186 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21187 func_xform ()\
21188 {\
21189 func_xform_result=${1%.*}.lo\
21190 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21191 && mv -f "$cfgfile.tmp" "$cfgfile" \
21192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21193 test 0 -eq $? || _lt_function_replace_fail=:
21194
21195
21196 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21197 func_arith ()\
21198 {\
21199 func_arith_result=$(( $* ))\
21200 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21201 && mv -f "$cfgfile.tmp" "$cfgfile" \
21202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21203 test 0 -eq $? || _lt_function_replace_fail=:
21204
21205
21206 sed -e '/^func_len ()$/,/^} # func_len /c\
21207 func_len ()\
21208 {\
21209 func_len_result=${#1}\
21210 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21211 && mv -f "$cfgfile.tmp" "$cfgfile" \
21212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21213 test 0 -eq $? || _lt_function_replace_fail=:
21214
21215 fi
21216
21217 if test x"$lt_shell_append" = xyes; then
21218 sed -e '/^func_append ()$/,/^} # func_append /c\
21219 func_append ()\
21220 {\
21221 eval "${1}+=\\${2}"\
21222 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21223 && mv -f "$cfgfile.tmp" "$cfgfile" \
21224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21225 test 0 -eq $? || _lt_function_replace_fail=:
21226
21227
21228 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21229 func_append_quoted ()\
21230 {\
21231 \ func_quote_for_eval "${2}"\
21232 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21233 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21234 && mv -f "$cfgfile.tmp" "$cfgfile" \
21235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21236 test 0 -eq $? || _lt_function_replace_fail=:
21237
21238
21239 # Save a `func_append' function call where possible by direct use of '+='
21240 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21241 && mv -f "$cfgfile.tmp" "$cfgfile" \
21242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21243 test 0 -eq $? || _lt_function_replace_fail=:
21244 else
21245 # Save a `func_append' function call even when '+=' is not available
21246 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21247 && mv -f "$cfgfile.tmp" "$cfgfile" \
21248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21249 test 0 -eq $? || _lt_function_replace_fail=:
21250 fi
21251
21252 if test x"$_lt_function_replace_fail" = x":"; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21254 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21255 fi
21256
21257
21258 mv -f "$cfgfile" "$ofile" ||
21259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21260 chmod +x "$ofile"
21261
21262 ;;
21263
21264 esac
21265 done # for ac_tag
21266
21267
21268 as_fn_exit 0
21269 _ACEOF
21270 ac_clean_files=$ac_clean_files_save
21271
21272 test $ac_write_fail = 0 ||
21273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21274
21275
21276 # configure is writing to config.log, and then calls config.status.
21277 # config.status does its own redirection, appending to config.log.
21278 # Unfortunately, on DOS this fails, as config.log is still kept open
21279 # by configure, so config.status won't be able to write to it; its
21280 # output is simply discarded. So we exec the FD to /dev/null,
21281 # effectively closing config.log, so it can be properly (re)opened and
21282 # appended to by config.status. When coming back to configure, we
21283 # need to make the FD available again.
21284 if test "$no_create" != yes; then
21285 ac_cs_success=:
21286 ac_config_status_args=
21287 test "$silent" = yes &&
21288 ac_config_status_args="$ac_config_status_args --quiet"
21289 exec 5>/dev/null
21290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21291 exec 5>>config.log
21292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21293 # would make configure fail if this is the last instruction.
21294 $ac_cs_success || as_fn_exit 1
21295 fi
21296 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21298 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21299 fi
21300
21301